1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-3d4e48cf-BNc2DG3K.js","assets/transform-B837rVOA.js","assets/svgDrawCommon-08f97a94-BM49xfnL.js","assets/percentages-BXMCSKIN-_NHo2nJY.js","assets/feature-templates-BSHV-HiE.js","assets/vendor-lucide-Bc3ddNi8.js","assets/vendor-react-2ERg8RO7.js","assets/vendor-supabase-DIYF34q8.js","assets/feature-ideation-CSxS5rmx.js","assets/feature-ideation-BTr1OiDZ.css","assets/floating-ui.react-dom-BxKIIEeE.js","assets/usePlanEditorState-De3yjZZv.js","assets/percentages-BXMCSKIN-BcAUh2Nm.css","assets/flowDiagram-66a62f08-hRupu9Ue.js","assets/flowDb-956e92f1-4bwyx37K.js","assets/graph-DZ2QgIy9.js","assets/layout-C6e4_JBo.js","assets/styles-c10674c1-Dvg0YoCA.js","assets/index-3862675e-C1wjPV1x.js","assets/clone-CxcFjcpQ.js","assets/edges-e0da2a9e-BUYAiVrx.js","assets/createText-2e5e7dd3-DVFnVt0q.js","assets/line-Bt7h2S0I.js","assets/array-DusRkYqa.js","assets/path-XqgjCJY3.js","assets/channel-DNf-e5gw.js","assets/flowDiagram-v2-96b9c2cf-0mgMyeC2.js","assets/erDiagram-9861fffd-DFtl-eHJ.js","assets/gitGraphDiagram-72cf32ee-DlgOzwjC.js","assets/ganttDiagram-c361ad54-DJ2UA2l2.js","assets/linear-BGoOivus.js","assets/value-zVh8lmkM.js","assets/init-CxlUC8jA.js","assets/infoDiagram-f8f76790-BadoACh5.js","assets/pieDiagram-8a3498a8-BC4pAcyO.js","assets/arc-DUwgBTie.js","assets/ordinal-CeiP5NBH.js","assets/quadrantDiagram-120e2f19-D3dy5iYQ.js","assets/xychartDiagram-e933f94c-48PLJUko.js","assets/requirementDiagram-deff3bca-Mvkvh_9U.js","assets/sequenceDiagram-704730f1-DnWTdwip.js","assets/classDiagram-70f12bd4-C8G-FZA4.js","assets/styles-9a916d00-BT-5OBOp.js","assets/classDiagram-v2-f2320105-BdMWoDCE.js","assets/stateDiagram-587899a1-DvR0EAHb.js","assets/styles-6aaf32cf-myp4ZyVN.js","assets/stateDiagram-v2-d93cdb3a-BrEbL9f-.js","assets/journeyDiagram-49397b02-C6wgF2sk.js","assets/flowchart-elk-definition-4a651766-DWhJey7o.js","assets/_commonjs-dynamic-modules-DZ58S3ye.js","assets/timeline-definition-85554ec2-B5cR-QP5.js","assets/mindmap-definition-fc14e90a-ayvL0yhy.js","assets/sankeyDiagram-04a897e0-CQsejjxn.js","assets/Tableau10-C8sAmMCw.js","assets/blockDiagram-38ab4fdb-uHppHnqO.js"])))=>i.map(i=>d[i]); 2import{_ as Z}from"./feature-templates-BSHV-HiE.js";import{g as ol}from"./vendor-react-2ERg8RO7.js";import{d as nl}from"./percentages-BXMCSKIN-_NHo2nJY.js";import{s as kt}from"./transform-B837rVOA.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"c0678a0915691bbe1700d7b7f4daeb2355974dbf"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="26bd7116-ff75-47fd-b9e9-adb65dc19cef",t._sentryDebugIdIdentifier="sentry-dbid-26bd7116-ff75-47fd-b9e9-adb65dc19cef")}catch{}})();const Vi=20,sl={rect:"rectangle",circle:"ellipse"},Uo={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${Vi*1.25}px`},maxEdges:500,maxTextSize:5e4};class Ki{constructor({converter:e}){this.convert=(i,r)=>this.converter(i,{...r,fontSize:r.fontSize||Vi}),this.converter=e}}var le;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond"})(le||(le={}));var Ir;(function(t){t.COLOR="color"})(Ir||(Ir={}));var Te;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})(Te||(Te={}));var We={},Go;function al(){if(Go)return We;Go=1,Object.defineProperty(We,"__esModule",{value:!0}),We.removeMarkdown=void 0;var t=function(e,i){i===void 0&&(i={listUnicodeChar:""}),i=i||{},i.listUnicodeChar=i.hasOwnProperty("listUnicodeChar")?i.listUnicodeChar:!1,i.stripListLeaders=i.hasOwnProperty("stripListLeaders")?i.stripListLeaders:!0,i.gfm=i.hasOwnProperty("gfm")?i.gfm:!0,i.useImgAltText=i.hasOwnProperty("useImgAltText")?i.useImgAltText:!0,i.preserveLinks=i.hasOwnProperty("preserveLinks")?i.preserveLinks:!1;var r=e||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{i.stripListLeaders&&(i.listUnicodeChar?r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,i.listUnicodeChar+" $1"):r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),i.gfm&&(r=r.replace(/\n={2,}/g,` 3`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),i.preserveLinks&&(r=r.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),r=r.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}
3\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,i.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,` 4 5`).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,` 6 7`)}catch(o){return console.error(o),e}return r};return We.removeMarkdown=t,We}var ll=al();const cl={arrow_circle:{endArrowhead:"dot"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"dot",startArrowhead:"dot"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},hl=t=>cl[t],_i=t=>{let e=t.text;return t.labelType==="markdown"&&(e=ll.removeMarkdown(t.text)),ul(e)},ul=t=>{const e=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return t.replace(e,"")},dl=t=>{const e={};return Object.keys(t).forEach(i=>{var r;switch(i){case Te.FILL:{e.backgroundColor=t[i],e.fillStyle="solid";break}case Te.STROKE:{e.strokeColor=t[i];break}case Te.STROKE_WIDTH:{e.strokeWidth=Number((r=t[i])==null?void 0:r.split("px")[0]);break}case Te.STROKE_DASHARRAY:{e.strokeStyle="dashed";break}}}),e},fl=t=>{const e={};return Object.keys(t).forEach(i=>{switch(i){case Ir.COLOR:{e.strokeColor=t[i];break}}}),e},gl=t=>{const e={};t.subGraphs.map(r=>{r.nodeIds.forEach(o=>{e[r.id]={id:r.id,parent:null,isLeaf:!1},e[o]={id:o,parent:r.id,isLeaf:t.vertices[o]!==void 0}})});const i={};return[...Object.keys(t.vertices),...t.subGraphs.map(r=>r.id)].forEach(r=>{if(!e[r])return;let o=e[r];const s=[];for(o.isLeaf||s.push(`subgraph_group_${o.id}`);o.parent;)s.push(`subgraph_group_${o.parent}`),o=e[o.parent];i[r]=s}),{getGroupIds:r=>i[r]||[],getParentId:r=>e[r]?e[r].parent:null}},pl=new Ki({converter:(t,e)=>{const i=[],r=e.fontSize,{getGroupIds:o,getParentId:s}=gl(t);return t.subGraphs.reverse().forEach(n=>{const a=o(n.id),l={id:n.id,type:"rectangle",groupIds:a,x:n.x,y:n.y,width:n.width,height:n.height,label:{groupIds:a,text:_i(n),fontSize:r,verticalAlign:"top"}};i.push(l)}),Object.values(t.vertices).forEach(n=>{if(!n)return;const a=o(n.id),l=dl(n.containerStyle),h=fl(n.labelStyle);let d={id:n.id,type:"rectangle",groupIds:a,x:n.x,y:n.y,width:n.width,height:n.height,strokeWidth:2,label:{groupIds:a,text:_i(n),fontSize:r,...h},link:n.link||null,...l};switch(n.type){case le.STADIUM:{d={...d,roundness:{type:3}};break}case le.ROUND:{d={...d,roundness:{type:3}};break}case le.DOUBLECIRCLE:{a.push(`doublecircle_${n.id}}`);const c={type:"ellipse",groupIds:a,x:n.x+5,y:n.y+5,width:n.width-10,height:n.height-10,strokeWidth:2,roundness:{type:3},label:{groupIds:a,text:_i(n),fontSize:r}};d={...d,groupIds:a,type:"ellipse"},i.push(c);break}case le.CIRCLE:{d.type="ellipse";break}case le.DIAMOND:{d.type="diamond";break}}i.push(d)}
7),t.edges.forEach(n=>{let a=[];const l=s(n.start),h=s(n.end);l&&l===h&&(a=o(l));const{startX:d,startY:f,reflectionPoints:c}=n,g=c.map(q=>[q.x-c[0].x,q.y-c[0].y]),m=hl(n.type),b={id:`${n.start}_${n.end}`,type:"arrow",groupIds:a,x:d,y:f,strokeWidth:n.stroke==="thick"?4:2,strokeStyle:n.stroke==="dotted"?"dashed":void 0,points:g,...n.text?{label:{text:_i(n),fontSize:r,groupIds:a}}:{},roundness:{type:2},...m},I=i.find(q=>q.id===n.start),x=i.find(q=>q.id===n.end);!I||!x||(b.start={id:I.id||""},b.end={id:x.id||""},i.push(b))}),{elements:i}}});let Ut=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,i)=>(i&=63,i<36?e+=i.toString(36):i<62?e+=(i-26).toString(36).toUpperCase():i>62?e+="-":e+="_",e),"");const ml=new Ki({converter:t=>{const e=Ut(),{width:i,height:r}=t,o={type:"image",x:0,y:0,width:i,height:r,status:"saved",fileId:e};return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[o]}}}),Vr=t=>t.replace(/\\n/g,` 8`),Ze=t=>{const e={type:"line",x:t.startX,y:t.startY,points:[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},Oi=t=>{const e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:Vr(t.text)||"",fontSize:t.fontSize,verticalAlign:"middle"};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},Ve=t=>{var r,o,s,n;let e={};t.type==="rectangle"&&t.subtype==="activation"&&(e={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:{text:Vr(((r=t==null?void 0:t.label)==null?void 0:r.text)||""),fontSize:(o=t==null?void 0:t.label)==null?void 0:o.fontSize,verticalAlign:((s=t.label)==null?void 0:s.verticalAlign)||"middle",strokeColor:((n=t.label)==null?void 0:n.color)||"#000",groupIds:t.groupId?[t.groupId]:[]},strokeStyle:t==null?void 0:t.strokeStyle,strokeWidth:t==null?void 0:t.strokeWidth,strokeColor:t==null?void 0:t.strokeColor,backgroundColor:t==null?void 0:t.bgColor,fillStyle:"solid",...e};return t.groupId&&Object.assign(i,{groupIds:[t.groupId]}),i},Qn=t=>{var i;const e={type:"arrow",x:t.startX,y:t.startY,points:t.points||[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:(t==null?void 0:t.strokeStyle)||"solid",endArrowhead:(t==null?void 0:t.endArrowhead)||null,startArrowhead:(t==null?void 0:t.startArrowhead)||null,label:{text:Vr(((i=t==null?void 0:t.label)==null?void 0:i.text)||""),fontSize:16},roundness:{type:2},start:t.start,end:t.end};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),e},yl=new Ki({converter:t=>{const e=[],i=[];if(Object.values(t.nodes).forEach(r=>{!r||!r.length||r.forEach(o=>{let s;switch(o.type){case"line":s=Ze(o);break;case"rectangle":case"ellipse":s=Ve(o);break;case"text":s=Oi(o);break;default:throw`unknown type ${o.type}`}o.type==="rectangle"&&(o==null?void 0:o.subtype)==="activation"?i.push(s):e.push(s)})}),Object.values(t.lines).forEach(r=>{r&&e.push(Ze(r))}),Object.values(t.arrows).forEach(r=>{r&&(e.push(Qn(r)),r.sequenceNumber&&e.push(Ve(r.sequenceNumber)))}),e.push(...i),t.loops){const{lines:r,texts:o,nodes:s}=t.loops;r.forEach(n=>{e.push(Ze(n))}),o.forEach(n=>{e.push(Oi(n))}),s.forEach(n=>{e.push(Ve(n))})}return t.groups&&t.groups.forEach(r=>{const{actorKeys:o,name:s}=r;let n=1/0,a=1/0,l=0,h=0;if(!o.length)return;e.filter(v=>{if(v.id){const U=v.id.indexOf("-"),$=v.id.substring(0,U);return o.includes($)}}).forEach(v=>{if(v.x===void 0||v.y===void 0||v.width===void 0||v.height===void 0)throw new Error(`Actor attributes missing ${v}`);n=Math.min(n,v.x),a=Math.min(a,v.y),l=Math.max(l,v.x+v.width),h=Math.max(h,v.y+v.height)});const f=10,c=n-f,g=a-f,m=l-n+f*2,_=h-a+f*2,b=Ut(),I=Ve({type:"rectangle",x:c,y:g,width:m,height:_,bgColor:r.fill,id:b});e.unshift(I);const x=Ut(),q=[b];e.forEach(v=>{if(v.type!=="frame"){if(v.x===void 0||v.y===void 0||v.width===void 0||v.height===void 0)throw new Error(`Element attributes missing ${v}`);if(v.x>=n&&v.x+v.width<=l&&v.y>=a&&v.y+v.height<=h){const U=v.id||Ut();v.id||Object.assign(v,{id:U}),q.push(U)}}});const y={type:"frame",id:x,name:s,children:q};e.push(y)}),{elements:e}}}),Cl=new Ki({converter:t=>{const e=[];
8return Object.values(t.nodes).forEach(i=>{!i||!i.length||i.forEach(r=>{let o;switch(r.type){case"line":o=Ze(r);break;case"rectangle":case"ellipse":o=Ve(r);break;case"text":o=Oi(r);break;default:throw`unknown type ${r.type}`}e.push(o)})}),Object.values(t.lines).forEach(i=>{i&&e.push(Ze(i))}),Object.values(t.arrows).forEach(i=>{if(!i)return;const r=Qn(i);e.push(r)}),Object.values(t.text).forEach(i=>{const r=Oi(i);e.push(r)}),Object.values(t.namespaces).forEach(i=>{const r=Object.keys(i.classes),o=[...r],s=[...t.lines,...t.arrows,...t.text];r.forEach(a=>{const l=s.filter(h=>h.metadata&&h.metadata.classId===a).map(h=>h.id);l.length&&o.push(...l)});const n={type:"frame",id:Ut(),name:i.id,children:o};e.push(n)}),{elements:e}}}),_l=(t,e={})=>{switch(t.type){case"graphImage":return ml.convert(t,e);case"flowchart":return pl.convert(t,e);case"sequence":return yl.convert(t,e);case"class":return Cl.convert(t,e);default:throw new Error(`graphToExcalidraw: unknown graph type "${t.type}, only flowcharts are supported!"`)}};function bl(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var o=r.reduce(function(a,l){var h=l.match(/\n([\t ]+|(?!\s).)/g);return h?a.concat(h.map(function(d){var f,c;return(c=(f=d.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&c!==void 0?c:0})):a},[]);if(o.length){var s=new RegExp(` 9[ ]{`+Math.min.apply(Math,o)+"}","g");r=r.map(function(a){return a.replace(s,` 10`)})}r[0]=r[0].replace(/^\r?\n/,"");var n=r[0];return e.forEach(function(a,l){var h=n.match(/(?:^|\n)( *)$/),d=h?h[1]:"",f=a;typeof a=="string"&&a.includes(` 11`)&&(f=String(a).split(` 12`).map(function(c,g){return g===0?c:""+d+c}).join(` 13`)),n+=f+r[l+1]}),n}var vi={exports:{}},xl=vi.exports,Xo;function Tl(){return Xo||(Xo=1,(function(t,e){(function(i,r){t.exports=r()})(xl,(function(){var i=1e3,r=6e4,o=36e5,s="millisecond",n="second",a="minute",l="hour",h="day",d="week",f="month",c="quarter",g="year",m="date",_="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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,x={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(N){var A=["th","st","nd","rd"],T=N%100;return"["+N+(A[(T-20)%10]||A[T]||A[0])+"]"}},q=function(N,A,T){var L=String(N);return!L||L.length>=A?N:""+Array(A+1-L.length).join(T)+N},y={s:q,z:function(N){var A=-N.utcOffset(),T=Math.abs(A),L=Math.floor(T/60),k=T%60;return(A<=0?"+":"-")+q(L,2,"0")+":"+q(k,2,"0")},m:function N(A,T){if(A.date()<T.date())return-N(T,A);var L=12*(T.year()-A.year())+(T.month()-A.month()),k=A.clone().add(L,f),M=T-k<0,W=A.clone().add(L+(M?-1:1),f);return+(-(L+(T-k)/(M?k-W:W-k))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:g,w:d,d:h,D:m,h:l,m:a,s:n,ms:s,Q:c}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},v="en",U={};U[v]=x;var $="$isDayjsObject",tt=function(N){return N instanceof et||!(!N||!N[$])},ot=function N(A,T,L){var k;if(!A)return v;if(typeof A=="string"){var M=A.toLowerCase();U[M]&&(k=M),T&&(U[M]=T,k=M);var W=A.split("-");if(!k&&W.length>1)return N(W[0])}else{var z=A.name;U[z]=A,k=z}return!L&&k&&(v=k),k||!L&&v},j=function(N,A){if(tt(N))return N.clone();var T=typeof A=="object"?A:{};return T.date=N,T.args=arguments,new et(T)},B=y;B.l=ot,B.i=tt,B.w=function(N,A){return j(N,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var et=(function(){function N(T){this.$L=ot(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[$]=!0}var A=N.prototype;return A.parse=function(T){this.$d=(function(L){var k=L.date,M=L.utc;if(k===null)return new Date(NaN);if(B.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var W=k.match(b);if(W){var z=W[2]-1||0,K=(W[7]||"0").substring(0,3);return M?new Date(Date.UTC(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,K)):new Date(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,K)}}return new Date(k)})(T),this.init()},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},A.$utils=function(){return B},A.isValid=function(){return this.$d.toString()!==_},A.isSame=function(T,L){var k=j(T);return this.startOf(L)<=k&&k<=this.endOf(L)},A.isAfter=function(T,L){return j(T)<this.startOf(L)},A.isBefore=function(T,L){return this.endOf(L)<j(T)},A.$g=function(T,L,k){return B.u(T)?this[L]:this.set(k,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,L){var k=this,M=!!B.u(L)||L,W=B.p(T),z=function(Bt,nt){var Lt=B.w(k.$u?Date.UTC(k.$y,nt,Bt):new Date(k.$y,nt,Bt),k);return M?Lt:Lt.endOf(h)},K=function(Bt,nt){return B.w(k.toDate()[Bt].apply(k.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(nt)),k)},Y=this.$W,it=this.$M,G=this.$D,xt="set"+(this.$u?"UTC":"");switch(W){case g:return M?z(1,0):z(31,11);case f:return M?z(1,it):z(0,it+1);case d:var wt=this.$locale().weekStart||0,Kt=(Y<wt?Y+7:Y)-wt;
vendor: 24,185 bytes, line 13
13return z(M?G-Kt:G+(6-Kt),it);case h:case m:return K(xt+"Hours",0);case l:return K(xt+"Minutes",1);case a:return K(xt+"Seconds",2);case n:return K(xt+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,L){var k,M=B.p(T),W="set"+(this.$u?"UTC":""),z=(k={},k[h]=W+"Date",k[m]=W+"Date",k[f]=W+"Month",k[g]=W+"FullYear",k[l]=W+"Hours",k[a]=W+"Minutes",k[n]=W+"Seconds",k[s]=W+"Milliseconds",k)[M],K=M===h?this.$D+(L-this.$W):L;if(M===f||M===g){var Y=this.clone().set(m,1);Y.$d[z](K),Y.init(),this.$d=Y.set(m,Math.min(this.$D,Y.daysInMonth())).$d}else z&&this.$d[z](K);return this.init(),this},A.set=function(T,L){return this.clone().$set(T,L)},A.get=function(T){return this[B.p(T)]()},A.add=function(T,L){var k,M=this;T=Number(T);var W=B.p(L),z=function(it){var G=j(M);return B.w(G.date(G.date()+Math.round(it*T)),M)};if(W===f)return this.set(f,this.$M+T);if(W===g)return this.set(g,this.$y+T);if(W===h)return z(1);if(W===d)return z(7);var K=(k={},k[a]=r,k[l]=o,k[n]=i,k)[W]||1,Y=this.$d.getTime()+T*K;return B.w(Y,this)},A.subtract=function(T,L){return this.add(-1*T,L)},A.format=function(T){var L=this,k=this.$locale();if(!this.isValid())return k.invalidDate||_;var M=T||"YYYY-MM-DDTHH:mm:ssZ",W=B.z(this),z=this.$H,K=this.$m,Y=this.$M,it=k.weekdays,G=k.months,xt=k.meridiem,wt=function(nt,Lt,Tt,Zt){return nt&&(nt[Lt]||nt(L,M))||Tt[Lt].slice(0,Zt)},Kt=function(nt){return B.s(z%12||12,nt,"0")},Bt=xt||function(nt,Lt,Tt){var Zt=nt<12?"AM":"PM";return Tt?Zt.toLowerCase():Zt};return M.replace(I,(function(nt,Lt){return Lt||(function(Tt){switch(Tt){case"YY":return String(L.$y).slice(-2);case"YYYY":return B.s(L.$y,4,"0");case"M":return Y+1;case"MM":return B.s(Y+1,2,"0");case"MMM":return wt(k.monthsShort,Y,G,3);case"MMMM":return wt(G,Y);case"D":return L.$D;case"DD":return B.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return wt(k.weekdaysMin,L.$W,it,2);case"ddd":return wt(k.weekdaysShort,L.$W,it,3);case"dddd":return it[L.$W];case"H":return String(z);case"HH":return B.s(z,2,"0");case"h":return Kt(1);case"hh":return Kt(2);case"a":return Bt(z,K,!0);case"A":return Bt(z,K,!1);case"m":return String(K);case"mm":return B.s(K,2,"0");case"s":return String(L.$s);case"ss":return B.s(L.$s,2,"0");case"SSS":return B.s(L.$ms,3,"0");case"Z":return W}return null})(nt)||W.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,L,k){var M,W=this,z=B.p(L),K=j(T),Y=(K.utcOffset()-this.utcOffset())*r,it=this-K,G=function(){return B.m(W,K)};switch(z){case g:M=G()/12;break;case f:M=G();break;case c:M=G()/3;break;case d:M=(it-Y)/6048e5;break;case h:M=(it-Y)/864e5;break;case l:M=it/o;break;case a:M=it/r;break;case n:M=it/i;break;default:M=it}return k?M:B.a(M)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return U[this.$L]},A.locale=function(T,L){if(!T)return this.$L;var k=this.clone(),M=ot(T,L,!0);return M&&(k.$L=M),k},A.clone=function(){return B.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},N})(),Vt=et.prototype;return j.prototype=Vt,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",h],["$M",f],["$y",g],["$D",m]].forEach((function(N){Vt[N[1]]=function(A){return this.$g(A,N[0],N[1])}})),j.extend=function(N,A){return N.$i||(N(A,et,j),N.$i=!0),j},j.locale=ot,j.isDayjs=tt,j.unix=function(N){return j(1e3*N)},j.en=U[v],j.Ls=U,j.p={},j}))})(vi)),vi.exports}var Sl=Tl();const kl=ol(Sl),PC=Math.abs,NC=Math.atan2,RC=Math.cos,qC=Math.max,zC=Math.min,WC=Math.sin,jC=Math.sqrt,Vo=1e-12,Kr=Math.PI,Ko=Kr/2,YC=2*Kr;function HC(t){return t>1?0:t<-1?Kr:Math.acos(t)}function UC(t){return t>=1?Ko:t<=-1?-Ko:Math.asin(t)}function ts(t){this._context=t}ts.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function vl(t){return new ts(t)}class es{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function Al(t){return new es(t,!0)}function wl(t){return new es(t,!1)}function ie(){}function Ii(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Zi(t){this._context=t}Zi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ii(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ii(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Bl(t){return new Zi(t)}function is(t){this._context=t}is.prototype={areaStart:ie,areaEnd:ie,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ii(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ll(t){return new is(t)}function rs(t){this._context=t}rs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:Ii(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function El(t){return new rs(t)}function os(t,e){this._basis=new Zi(t),this._beta=e}os.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],o=e[0],s=t[i]-r,n=e[i]-o,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*s),this._beta*e[a]+(1-this._beta)*(o+l*n));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Fl=(function t(e){function i(r){return e===1?new Zi(r):new os(r,e)}return i.beta=function(r){return t(+r)},i})(.85);function Mi(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Zr(t,e){this._context=t,this._k=(1-e)/6}Zr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Mi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Mi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ol=(function t(e){function i(r){return new Zr(r,e)}return i.tension=function(r){return t(+r)},i})(0);function Jr(t,e){this._context=t,this._k=(1-e)/6}Jr.prototype={areaStart:ie,areaEnd:ie,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Mi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Il=(function t(e){function i(r){return new Jr(r,e)}return i.tension=function(r){return t(+r)},i})(0);function Qr(t,e){this._context=t,this._k=(1-e)/6}Qr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ml=(function t(e){function i(r){return new Qr(r,e)}return i.tension=function(r){return t(+r)},i})(0);function to(t,e,i){var r=t._x1,o=t._y1,s=t._x2,n=t._y2;if(t._l01_a>Vo){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Vo){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/d,n=(n*h+t._y1*t._l23_2a-i*t._l12_2a)/d}t._context.bezierCurveTo(r,o,s,n,t._x2,t._y2)}function ns(t,e){this._context=t,this._alpha=e}ns.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:to(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Dl=(function t(e){function i(r){return e?new ns(r,e):new Zr(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function ss(t,e){this._context=t,this._alpha=e}ss.prototype={areaStart:ie,areaEnd:ie,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:to(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $l=(function t(e){function i(r){return e?new ss(r,e):new Jr(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function as(t,e){this._context=t,this._alpha=e}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:to(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Pl=(function t(e){function i(r){return e?new as(r,e):new Qr(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function ls(t){this._context=t}ls.prototype={areaStart:ie,areaEnd:ie,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Nl(t){return new ls(t)}function Zo(t){return t<0?-1:1}function Jo(t,e,i){var r=t._x1-t._x0,o=e-t._x1,s=(t._y1-t._y0)/(r||o<0&&-0),n=(i-t._y1)/(o||r<0&&-0),a=(s*o+n*r)/(r+o);return(Zo(s)+Zo(n))*Math.min(Math.abs(s),Math.abs(n),.5*Math.abs(a))||0}function Qo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function _r(t,e,i){var r=t._x0,o=t._y0,s=t._x1,n=t._y1,a=(s-r)/3;t._context.bezierCurveTo(r+a,o+a*e,s-a,n-a*i,s,n)}function Di(t){this._context=t}Di.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:_r(this,this._t0,Qo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,_r(this,Qo(this,i=Jo(this,t,e)),i);break;default:_r(this,this._t0,i=Jo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function cs(t){this._context=new hs(t)}(cs.prototype=Object.create(Di.prototype)).point=function(t,e){Di.prototype.point.call(this,e,t)};function hs(t){this._context=t}hs.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,o,s){this._context.bezierCurveTo(e,t,r,i,s,o)}};function Rl(t){return new Di(t)}function ql(t){return new cs(t)}function us(t){this._context=t}us.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=tn(t),o=tn(e),s=0,n=1;n<i;++s,++n)this._context.bezierCurveTo(r[0][s],o[0][s],r[1][s],o[1][s],t[n],e[n]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function tn(t){var e,i=t.length-1,r,o=new Array(i),s=new Array(i),n=new Array(i);for(o[0]=0,s[0]=2,n[0]=t[0]+2*t[1],e=1;e<i-1;++e)o[e]=1,s[e]=4,n[e]=4*t[e]+2*t[e+1];for(o[i-1]=2,s[i-1]=7,n[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=o[e]/s[e-1],s[e]-=r,n[e]-=r*n[e-1];for(o[i-1]=n[i-1]/s[i-1],e=i-2;e>=0;--e)o[e]=(n[e]-o[e+1])/s[e];for(s[i-1]=(t[i]+o[i-1])/2,e=0;e<i-1;++e)s[e]=2*t[e+1]-o[e+1];return[o,s]}function zl(t){return new us(t)}function Ji(t,e){this._context=t,this._t=e}Ji.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function Wl(t){return new Ji(t,.5)}function jl(t){return new Ji(t,0)}function Yl(t){return new Ji(t,1)}/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:ds,setPrototypeOf:en,isFrozen:Hl,getPrototypeOf:Ul,getOwnPropertyDescriptor:Gl}=Object;let{freeze:pt,seal:vt,create:fs}=Object,{apply:Mr,construct:Dr}=typeof Reflect<"u"&&Reflect;pt||(pt=function(e){return e});vt||(vt=function(e){return e});Mr||(Mr=function(e,i,r){return e.apply(i,r)});Dr||(Dr=function(e,i){return new e(...i)});const bi=bt(Array.prototype.forEach),rn=bt(Array.prototype.pop),je=bt(Array.prototype.push),Ai=bt(String.prototype.toLowerCase),br=bt(String.prototype.toString),on=bt(String.prototype.match),Ye=bt(String.prototype.replace),Xl=bt(String.prototype.indexOf),Vl=bt(String.prototype.trim),Et=bt(Object.prototype.hasOwnProperty),dt=bt(RegExp.prototype.test),He=Kl(TypeError);function bt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return Mr(t,e,r)}}function Kl(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Dr(t,i)}}function H(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ai;en&&en(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=i(o);s!==o&&(Hl(e)||(e[r]=s),o=s)}t[o]=!0}return t}function Zl(t){for(let e=0;e<t.length;e++)Et(t,e)||(t[e]=null);return t}function se(t){const e=fs(null);for(const[i,r]of ds(t))Et(t,i)&&(Array.isArray(r)?e[i]=Zl(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=se(r):e[i]=r);return e}function Ue(t,e){for(;t!==null;){const r=Gl(t,e);if(r){if(r.get)return bt(r.get);if(typeof r.value=="function")return bt(r.value)}t=Ul(t)}function i(){return null}return i}const nn=pt(["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"]),xr=pt(["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"]),Tr=pt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Jl=pt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sr=pt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ql=pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sn=pt(["#text"]),an=pt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
13spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),kr=pt(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ln=pt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xi=pt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tc=vt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ec=vt(/<%[\w\W]*|[\w\W]*%>/gm),ic=vt(/\${[\w\W]*}/gm),rc=vt(/^data-[\-\w.\u00B7-\uFFFF]/),oc=vt(/^aria-[\-\w]+$/),gs=vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nc=vt(/^(?:\w+script|data):/i),sc=vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ps=vt(/^html$/i),ac=vt(/^[a-z][.\w]*(-[.\w]+)+$/i);var cn=Object.freeze({__proto__:null,MUSTACHE_EXPR:tc,ERB_EXPR:ec,TMPLIT_EXPR:ic,DATA_ATTR:rc,ARIA_ATTR:oc,IS_ALLOWED_URI:gs,IS_SCRIPT_OR_DATA:nc,ATTR_WHITESPACE:sc,DOCTYPE_NAME:ps,CUSTOM_ELEMENT:ac});const Ge={element:1,text:3,progressingInstruction:7,comment:8,document:9},lc=function(){return typeof window>"u"?null:window},cc=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(r=i.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(n){return n},createScriptURL(n){return n}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function ms(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lc();const e=E=>ms(E);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==Ge.document)return e.isSupported=!1,e;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:n,Node:a,Element:l,NodeFilter:h,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:c,trustedTypes:g}=t,m=l.prototype,_=Ue(m,"cloneNode"),b=Ue(m,"remove"),I=Ue(m,"nextSibling"),x=Ue(m,"childNodes"),q=Ue(m,"parentNode");if(typeof n=="function"){const E=i.createElement("template");E.content&&E.content.ownerDocument&&(i=E.content.ownerDocument)}let y,v="";const{implementation:U,createNodeIterator:$,createDocumentFragment:tt,getElementsByTagName:ot}=i,{importNode:j}=r;let B={};e.isSupported=typeof ds=="function"&&typeof q=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:et,ERB_EXPR:Vt,TMPLIT_EXPR:N,DATA_ATTR:A,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:k,CUSTOM_ELEMENT:M}=cn;let{IS_ALLOWED_URI:W}=cn,z=null;const K=H({},[...nn,...xr,...Tr,...Sr,...sn]);let Y=null;const it=H({},[...an,...kr,...ln,...xi]);let G=Object.seal(fs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xt=null,wt=null,Kt=!0,Bt=!0,nt=!1,Lt=!0,Tt=!1,Zt=!0,ne=!1,dr=!1,fr=!1,me=!1,gi=!1,pi=!1,vo=!0,Ao=!1;const Ka="user-content-";let gr=!0,Re=!1,ye={},Ce=null;const wo=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Bo=null;const Lo=H({},["audio","video","img","source","image","track"]);let pr=null;const Eo=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mi="http://www.w3.org/1998/Math/MathML",yi="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let _e=zt,mr=!1,yr=null;const Za=H({},[mi,yi,zt],br);let qe=null;const Ja=["application/xhtml+xml","text/html"],Qa="text/html";let rt=null,be=null;const tl=i.createElement("form"),Fo=function(u){return u instanceof RegExp||u instanceof Function},Cr=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(be&&be===u)){if((!u||typeof u!="object")&&(u={}
vendor: 7,214 bytes, line 13
13),u=se(u),qe=Ja.indexOf(u.PARSER_MEDIA_TYPE)===-1?Qa:u.PARSER_MEDIA_TYPE,rt=qe==="application/xhtml+xml"?br:Ai,z=Et(u,"ALLOWED_TAGS")?H({},u.ALLOWED_TAGS,rt):K,Y=Et(u,"ALLOWED_ATTR")?H({},u.ALLOWED_ATTR,rt):it,yr=Et(u,"ALLOWED_NAMESPACES")?H({},u.ALLOWED_NAMESPACES,br):Za,pr=Et(u,"ADD_URI_SAFE_ATTR")?H(se(Eo),u.ADD_URI_SAFE_ATTR,rt):Eo,Bo=Et(u,"ADD_DATA_URI_TAGS")?H(se(Lo),u.ADD_DATA_URI_TAGS,rt):Lo,Ce=Et(u,"FORBID_CONTENTS")?H({},u.FORBID_CONTENTS,rt):wo,xt=Et(u,"FORBID_TAGS")?H({},u.FORBID_TAGS,rt):{},wt=Et(u,"FORBID_ATTR")?H({},u.FORBID_ATTR,rt):{},ye=Et(u,"USE_PROFILES")?u.USE_PROFILES:!1,Kt=u.ALLOW_ARIA_ATTR!==!1,Bt=u.ALLOW_DATA_ATTR!==!1,nt=u.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Tt=u.SAFE_FOR_TEMPLATES||!1,Zt=u.SAFE_FOR_XML!==!1,ne=u.WHOLE_DOCUMENT||!1,me=u.RETURN_DOM||!1,gi=u.RETURN_DOM_FRAGMENT||!1,pi=u.RETURN_TRUSTED_TYPE||!1,fr=u.FORCE_BODY||!1,vo=u.SANITIZE_DOM!==!1,Ao=u.SANITIZE_NAMED_PROPS||!1,gr=u.KEEP_CONTENT!==!1,Re=u.IN_PLACE||!1,W=u.ALLOWED_URI_REGEXP||gs,_e=u.NAMESPACE||zt,G=u.CUSTOM_ELEMENT_HANDLING||{},u.CUSTOM_ELEMENT_HANDLING&&Fo(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=u.CUSTOM_ELEMENT_HANDLING.tagNameCheck),u.CUSTOM_ELEMENT_HANDLING&&Fo(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),u.CUSTOM_ELEMENT_HANDLING&&typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(G.allowCustomizedBuiltInElements=u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Tt&&(Bt=!1),gi&&(me=!0),ye&&(z=H({},sn),Y=[],ye.html===!0&&(H(z,nn),H(Y,an)),ye.svg===!0&&(H(z,xr),H(Y,kr),H(Y,xi)),ye.svgFilters===!0&&(H(z,Tr),H(Y,kr),H(Y,xi)),ye.mathMl===!0&&(H(z,Sr),H(Y,ln),H(Y,xi))),u.ADD_TAGS&&(z===K&&(z=se(z)),H(z,u.ADD_TAGS,rt)),u.ADD_ATTR&&(Y===it&&(Y=se(Y)),H(Y,u.ADD_ATTR,rt)),u.ADD_URI_SAFE_ATTR&&H(pr,u.ADD_URI_SAFE_ATTR,rt),u.FORBID_CONTENTS&&(Ce===wo&&(Ce=se(Ce)),H(Ce,u.FORBID_CONTENTS,rt)),gr&&(z["#text"]=!0),ne&&H(z,["html","head","body"]),z.table&&(H(z,["tbody"]),delete xt.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=u.TRUSTED_TYPES_POLICY,v=y.createHTML("")}else y===void 0&&(y=cc(g,o)),y!==null&&typeof v=="string"&&(v=y.createHTML(""));pt&&pt(u),be=u}},Oo=H({},["mi","mo","mn","ms","mtext"]),Io=H({},["foreignobject","annotation-xml"]),el=H({},["title","style","font","a","script"]),Mo=H({},[...xr,...Tr,...Jl]),Do=H({},[...Sr,...Ql]),il=function(u){let C=q(u);(!C||!C.tagName)&&(C={namespaceURI:_e,tagName:"template"});const w=Ai(u.tagName),X=Ai(C.tagName);return yr[u.namespaceURI]?u.namespaceURI===yi?C.namespaceURI===zt?w==="svg":C.namespaceURI===mi?w==="svg"&&(X==="annotation-xml"||Oo[X]):!!Mo[w]:u.namespaceURI===mi?C.namespaceURI===zt?w==="math":C.namespaceURI===yi?w==="math"&&Io[X]:!!Do[w]:u.namespaceURI===zt?C.namespaceURI===yi&&!Io[X]||C.namespaceURI===mi&&!Oo[X]?!1:!Do[w]&&(el[w]||!Mo[w]):!!(qe==="application/xhtml+xml"&&yr[u.namespaceURI]):!1},Ot=function(u){je(e.removed,{element:u});try{q(u).removeChild(u)}catch{b(u)}},Ci=function(u,C){try{je(e.removed,{attribute:C.getAttributeNode(u),from:C})}catch{je(e.removed,{attribute:null,from:C})}if(C.removeAttribute(u),u==="is"&&!Y[u])if(me||gi)try{Ot(C)}catch{}else try{C.setAttribute(u,"")}catch{}},$o=function(u){let C=null,w=null;if(fr)u="<remove></remove>"+u;else{const st=on(u,/^[\r\n\t ]+/);w=st&&st[0]}qe==="application/xhtml+xml"&&_e===zt&&(u='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+u+"</body></html>");const X=y?y.createHTML(u):u;if(_e===zt)try{C=new c().parseFromString(X,qe)}catch{}if(!C||!C.documentElement){C=U.createDocument(_e,"template",null);try{C.documentElement.innerHTML=mr?v:X}catch{}}const at=C.body||C.documentElement;return u&&w&&at.insertBefore(i.createTextNode(w),at.childNodes[0]||null),_e===zt?ot.call(C,ne?"html":"body")[0]:ne?C.documentElement:at},Po=function(u){return $.call(u.ownerDocument||u,u,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},No=function(u){return u instanceof f&&(typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||!(u.attributes instanceof d)||typeof u.removeAttribute!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function")},Ro=function(u){return typeof a=="function"&&u instanceof a},Wt=function(u,C,w){B[u]&&bi(B[u],X=>{X.call(e,C,w,be)})},qo=function(u){let C=null;if(Wt("beforeSanitizeElements",u,null),No(u))return Ot(u),!0;const w=rt(u.nodeName);if(Wt("uponSanitizeElement",u,{tagName:w,allowedTags:z}),u.hasChildNodes()&&!Ro(u.firstElementChild)&&dt(/<[/\w]/g,u.innerHTML)&&dt(/<[/\w]/g,u.textContent)||u.nodeType===Ge.progressingInstruction||Zt&&u.nodeType===Ge.comment&&dt(/<[/\w]/g,u.data))return Ot(u),!0;if(!z[w]||xt[w]){if(!xt[w]&&Wo(w)&&(G.tagNameCheck instanceof RegExp&&dt(G.tagNameCheck,w)||G.tagNameCheck instanceof Function&&G.tagNameCheck(w)))return!1;if(gr&&!Ce[w]){const X=q(u)||u.parentNode,at=x(u)||u.childNodes;if(at&&X){const st=at.length;for(let mt=st-1;mt>=0;--mt){const It=_(at[mt],!0);It.__removalCount=(u.__removalCount||0)+1,X.insertBefore(It,I(u))}}}return Ot(u),!0}return u instanceof l&&!il(u)||(w==="noscript"||w==="noembed"||w==="noframes")&&dt(/<\/no(script|embed|frames)/i,u.innerHTML)?(Ot(u),!0):(Tt&&u.nodeType===Ge.text&&(C=u.textContent,bi([et,Vt,N],X=>{C=Ye(C,X," ")}),u.textContent!==C&&(je(e.removed,{element:u.cloneNode()}),u.textContent=C)),Wt("afterSanitizeElements",u,null),!1)},zo=function(u,C,w){if(vo&&(C==="id"||C==="name")&&(w in i||w in tl))return!1;if(!(Bt&&!wt[C]&&dt(A,C))){if(!(Kt&&dt(T,C))){if(!Y[C]||wt[C]){if(!(Wo(u)&&(G.tagNameCheck instanceof RegExp&&dt(G.tagNameCheck,u)||G.tagNameCheck instanceof Function&&G.tagNameCheck(u))&&(G.attributeNameCheck instanceof RegExp&&dt(G.attributeNameCheck,C)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(C))||C==="is"&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&dt(G.tagNameCheck,w)||G.tagNameCheck instanceof Function&&G.tagNameCheck(w))))return!1}else if(!pr[C]){if(!dt(W,Ye(w,k,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&u!=="script"&&Xl(w,"data:")===0&&Bo[u])){if(!(nt&&!dt(L,Ye(w,k,"")))){if(w)return!1}}}}}}return!0},Wo=function(u){return u!=="annotation-xml"&&on(u,M)},jo=function(u){Wt("beforeSanitizeAttributes",u,null);const{attributes:C}=u;if(!C)return;const w={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y};let X=C.length;for(;X--;){const at=C[X],{name:st,namespaceURI:mt,value:It}=at,ze=rt(st);let ut=st==="value"?It:Vl(It);if(w.attrName=ze,w.attrValue=ut,w.keepAttr=!0,w.forceKeepAttr=void 0,Wt("uponSanitizeAttribute",u,w),ut=w.attrValue,Zt&&dt(/((--!?|])>)|<\/(style|title)/i,ut)){Ci(st,u);continue}if(w.forceKeepAttr||(Ci(st,u),!w.keepAttr))continue;if(!Lt&&dt(/\/>/i,ut)){Ci(st,u);continue}Tt&&bi([et,Vt,N],Ho=>{ut=Ye(ut,Ho," ")}
13);const Yo=rt(u.nodeName);if(zo(Yo,ze,ut)){if(Ao&&(ze==="id"||ze==="name")&&(Ci(st,u),ut=Ka+ut),y&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!mt)switch(g.getAttributeType(Yo,ze)){case"TrustedHTML":{ut=y.createHTML(ut);break}case"TrustedScriptURL":{ut=y.createScriptURL(ut);break}}try{mt?u.setAttributeNS(mt,st,ut):u.setAttribute(st,ut),No(u)?Ot(u):rn(e.removed)}catch{}}}Wt("afterSanitizeAttributes",u,null)},rl=function E(u){let C=null;const w=Po(u);for(Wt("beforeSanitizeShadowDOM",u,null);C=w.nextNode();)Wt("uponSanitizeShadowNode",C,null),!qo(C)&&(C.content instanceof s&&E(C.content),jo(C));Wt("afterSanitizeShadowDOM",u,null)};return e.sanitize=function(E){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,w=null,X=null,at=null;if(mr=!E,mr&&(E="<!-->"),typeof E!="string"&&!Ro(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw He("dirty is not a string, aborting")}else throw He("toString is not a function");if(!e.isSupported)return E;if(dr||Cr(u),e.removed=[],typeof E=="string"&&(Re=!1),Re){if(E.nodeName){const It=rt(E.nodeName);if(!z[It]||xt[It])throw He("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof a)C=$o("<!---->"),w=C.ownerDocument.importNode(E,!0),w.nodeType===Ge.element&&w.nodeName==="BODY"||w.nodeName==="HTML"?C=w:C.appendChild(w);else{if(!me&&!Tt&&!ne&&E.indexOf("<")===-1)return y&&pi?y.createHTML(E):E;if(C=$o(E),!C)return me?null:pi?v:""}C&&fr&&Ot(C.firstChild);const st=Po(Re?E:C);for(;X=st.nextNode();)qo(X)||(X.content instanceof s&&rl(X.content),jo(X));if(Re)return E;if(me){if(gi)for(at=tt.call(C.ownerDocument);C.firstChild;)at.appendChild(C.firstChild);else at=C;return(Y.shadowroot||Y.shadowrootmode)&&(at=j.call(r,at,!0)),at}let mt=ne?C.outerHTML:C.innerHTML;return ne&&z["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&dt(ps,C.ownerDocument.doctype.name)&&(mt="<!DOCTYPE "+C.ownerDocument.doctype.name+`> 14`+mt),Tt&&bi([et,Vt,N],It=>{mt=Ye(mt,It," ")}),y&&pi?y.createHTML(mt):mt},e.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cr(E),dr=!0},e.clearConfig=function(){be=null,dr=!1},e.isValidAttribute=function(E,u,C){be||Cr({});const w=rt(E),X=rt(u);return zo(w,X,C)},e.addHook=function(E,u){typeof u=="function"&&(B[E]=B[E]||[],je(B[E],u))},e.removeHook=function(E){if(B[E])return rn(B[E])},e.removeHooks=function(E){B[E]&&(B[E]=[])},e.removeAllHooks=function(){B={}},e}var Be=ms();const wi={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const o=i<.5?i*(1+e):i+e-i*e,s=2*i-o;switch(r){case"r":return wi.hue2rgb(s,o,t+1/3)*255;case"g":return wi.hue2rgb(s,o,t)*255;case"b":return wi.hue2rgb(s,o,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const o=Math.max(t,e,i),s=Math.min(t,e,i),n=(o+s)/2;if(r==="l")return n*100;if(o===s)return 0;const a=o-s,l=n>.5?a/(2-o-s):a/(o+s);if(r==="s")return l*100;switch(o){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},hc={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},uc={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},R={channel:wi,lang:hc,unit:uc},Qt={};for(let t=0;t<=255;t++)Qt[t]=R.unit.dec2hex(t);const lt={ALL:0,RGB:1,HSL:2};class dc{constructor(){this.type=lt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=lt.ALL}is(e){return this.type===e}}class fc{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new dc}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=lt.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:o}=e;i===void 0&&(e.h=R.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=R.channel.rgb2hsl(e,"s")),o===void 0&&(e.l=R.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:o}=e;i===void 0&&(e.r=R.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=R.channel.hsl2rgb(e,"g")),o===void 0&&(e.b=R.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),R.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),R.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),R.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),R.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),R.channel.rgb2hsl(e,"s"))}
vendor: 15,315 bytes, line 14
14get l(){const e=this.data,i=e.l;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),R.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(lt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(lt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(lt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(lt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(lt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(lt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Qi=new fc({r:0,g:0,b:0,a:0},"transparent"),ve={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(ve.re);if(!e)return;const i=e[1],r=parseInt(i,16),o=i.length,s=o%4===0,n=o>4,a=n?1:17,l=n?8:4,h=s?0:-1,d=n?255:15;return Qi.set({r:(r>>l*(h+3)&d)*a,g:(r>>l*(h+2)&d)*a,b:(r>>l*(h+1)&d)*a,a:s?(r&d)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:o}=t;return o<1?`#${Qt[Math.round(e)]}${Qt[Math.round(i)]}${Qt[Math.round(r)]}${Qt[Math.round(o*255)]}`:`#${Qt[Math.round(e)]}${Qt[Math.round(i)]}${Qt[Math.round(r)]}`}},ce={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(ce.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return R.channel.clamp.h(parseFloat(i)*.9);case"rad":return R.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return R.channel.clamp.h(parseFloat(i)*360)}}return R.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(ce.re);if(!i)return;const[,r,o,s,n,a]=i;return Qi.set({h:ce._hue2deg(r),s:R.channel.clamp.s(parseFloat(o)),l:R.channel.clamp.l(parseFloat(s)),a:n?R.channel.clamp.a(a?parseFloat(n)/100:parseFloat(n)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:o}=t;return o<1?`hsla(${R.lang.round(e)}, ${R.lang.round(i)}%, ${R.lang.round(r)}%, ${o})`:`hsl(${R.lang.round(e)}, ${R.lang.round(i)}%, ${R.lang.round(r)}%)`}},Je={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Je.colors[t];if(e)return ve.parse(e)},stringify:t=>{const e=ve.stringify(t);for(const i in Je.colors)if(Je.colors[i]===e)return i}},Ke={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Ke.re);if(!i)return;const[,r,o,s,n,a,l,h,d]=i;return Qi.set({r:R.channel.clamp.r(o?parseFloat(r)*2.55:parseFloat(r)),g:R.channel.clamp.g(n?parseFloat(s)*2.55:parseFloat(s)),b:R.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:h?R.channel.clamp.a(d?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:o}=t;return o<1?`rgba(${R.lang.round(e)}, ${R.lang.round(i)}, ${R.lang.round(r)}, ${R.lang.round(o)})`:`rgb(${R.lang.round(e)}, ${R.lang.round(i)}, ${R.lang.round(r)})`}},Pt={format:{keyword:Je,hex:ve,rgb:Ke,rgba:Ke,hsl:ce,hsla:ce},parse:t=>{if(typeof t!="string")return t;const e=ve.parse(t)||Ke.parse(t)||ce.parse(t)||Je.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(lt.HSL)||t.data.r===void 0?ce.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Ke.stringify(t):ve.stringify(t)},ys=(t,e)=>{const i=Pt.parse(t);for(const r in e)i[r]=R.channel.clamp[r](e[r]);return Pt.stringify(i)},Qe=(t,e,i=0,r=1)=>{if(typeof t!="number")return ys(t,{a:e});const o=Qi.set({r:R.channel.clamp.r(t),g:R.channel.clamp.g(e),b:R.channel.clamp.b(i),a:R.channel.clamp.a(r)});return Pt.stringify(o)},gc=t=>{const{r:e,g:i,b:r}=Pt.parse(t),o=.2126*R.channel.toLinear(e)+.7152*R.channel.toLinear(i)+.0722*R.channel.toLinear(r);return R.lang.round(o)},pc=t=>gc(t)>=.5,hi=t=>!pc(t),Cs=(t,e,i)=>{const r=Pt.parse(t),o=r[e],s=R.channel.clamp[e](o+i);return o!==s&&(r[e]=s),Pt.stringify(r)},F=(t,e)=>Cs(t,"l",e),P=(t,e)=>Cs(t,"l",-e),p=(t,e)=>{const i=Pt.parse(t),r={};for(const o in e)e[o]&&(r[o]=i[o]+e[o]);return ys(t,r)},mc=(t,e,i=50)=>{const{r,g:o,b:s,a:n}=Pt.parse(t),{r:a,g:l,b:h,a:d}=Pt.parse(e),f=i/100,c=f*2-1,g=n-d,_=((c*g===-1?c:(c+g)/(1+c*g))+1)/2,b=1-_,I=r*_+a*b,x=o*_+l*b,q=s*_+h*b,y=n*f+d*(1-f);return Qe(I,x,q,y)},S=(t,e=100)=>{const i=Pt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,mc(i,t,e)};var _s=typeof global=="object"&&global&&global.Object===Object&&global,yc=typeof self=="object"&&self&&self.Object===Object&&self,qt=_s||yc||Function("return this")(),$i=qt.Symbol,bs=Object.prototype,Cc=bs.hasOwnProperty,_c=bs.toString,Xe=$i?$i.toStringTag:void 0;function bc(t){var e=Cc.call(t,Xe),i=t[Xe];try{t[Xe]=void 0;var r=!0}catch{}var o=_c.call(t);return r&&(e?t[Xe]=i:delete t[Xe]),o}var xc=Object.prototype,Tc=xc.toString;function Sc(t){return Tc.call(t)}var kc="[object Null]",vc="[object Undefined]",hn=$i?$i.toStringTag:void 0;function De(t){return t==null?t===void 0?vc:kc:hn&&hn in Object(t)?bc(t):Sc(t)}function fe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ac="[object AsyncFunction]",wc="[object Function]",Bc="[object GeneratorFunction]",Lc="[object Proxy]";function eo(t){if(!fe(t))return!1;var e=De(t);return e==wc||e==Bc||e==Ac||e==Lc}var vr=qt["__core-js_shared__"],un=(function(){var t=/[^.]+$/.exec(vr&&vr.keys&&vr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Ec(t){return!!un&&un in t}var Fc=Function.prototype,Oc=Fc.toString;function ge(t){if(t!=null){try{return Oc.call(t)}catch{}try{return t+""}catch{}}return""}var Ic=/[\\^$.*+?()[\]{}|]/g,Mc=/^\[object .+?Constructor\]$/,Dc=Function.prototype,$c=Object.prototype,Pc=Dc.toString,Nc=$c.hasOwnProperty,Rc=RegExp("^"+Pc.call(Nc).replace(Ic,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qc(t){if(!fe(t)||Ec(t))return!1;var e=eo(t)?Rc:Mc;return e.test(ge(t))}function zc(t,e){return t==null?void 0:t[e]}function pe(t,e){var i=zc(t,e);return qc(i)?i:void 0}var oi=pe(Object,"create");function Wc(){this.__data__=oi?oi(null):{},this.size=0}function jc(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Yc="__lodash_hash_undefined__",Hc=Object.prototype,Uc=Hc.hasOwnProperty;function Gc(t){var e=this.__data__;if(oi){var i=e[t];return i===Yc?void 0:i}return Uc.call(e,t)?e[t]:void 0}var Xc=Object.prototype,Vc=Xc.hasOwnProperty;function Kc(t){var e=this.__data__;return oi?e[t]!==void 0:Vc.call(e,t)}var Zc="__lodash_hash_undefined__";function Jc(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=oi&&e===void 0?Zc:e,this}function ue(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ue.prototype.clear=Wc;ue.prototype.delete=jc;ue.prototype.get=Gc;ue.prototype.has=Kc;ue.prototype.set=Jc;function Qc(){this.__data__=[],this.size=0}function tr(t,e){return t===e||t!==t&&e!==e}function er(t,e){for(var i=t.length;i--;)if(tr(t[i][0],e))return i;return-1}var th=Array.prototype,eh=th.splice;function ih(t){var e=this.__data__,i=er(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():eh.call(e,i,1),--this.size,!0}function rh(t){var e=this.__data__,i=er(e,t);return i<0?void 0:e[i][1]}function oh(t){return er(this.__data__,t)>-1}function nh(t,e){var i=this.__data__,r=er(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Xt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Xt.prototype.clear=Qc;Xt.prototype.delete=ih;Xt.prototype.get=rh;Xt.prototype.has=oh;Xt.prototype.set=nh;var ni=pe(qt,"Map");function sh(){this.size=0,this.__data__={hash:new ue,map:new(ni||Xt),string:new ue}}function ah(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ir(t,e){var i=t.__data__;return ah(e)?i[typeof e=="string"?"string":"hash"]:i.map}function lh(t){var e=ir(this,t).delete(t);return this.size-=e?1:0,e}function ch(t){return ir(this,t).get(t)}function hh(t){return ir(this,t).has(t)}function uh(t,e){var i=ir(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function oe(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}oe.prototype.clear=sh;oe.prototype.delete=lh;oe.prototype.get=ch;oe.prototype.has=hh;oe.prototype.set=uh;var dh="Expected a function";function ui(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(dh);var i=function(){var r=arguments,o=e?e.apply(this,r):r[0],s=i.cache;if(s.has(o))return s.get(o);var n=t.apply(this,r);return i.cache=s.set(o,n)||s,n};return i.cache=new(ui.Cache||oe),i}ui.Cache=oe;function fh(){this.__data__=new Xt,this.size=0}function gh(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function ph(t){return this.__data__.get(t)}function mh(t){return this.__data__.has(t)}var yh=200;function Ch(t,e){var i=this.__data__;if(i instanceof Xt){var r=i.__data__;if(!ni||r.length<yh-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new oe(r)}return i.set(t,e),this.size=i.size,this}function $e(t){var e=this.__data__=new Xt(t);this.size=e.size}$e.prototype.clear=fh;$e.prototype.delete=gh;$e.prototype.get=ph;$e.prototype.has=mh;$e.prototype.set=Ch;var Pi=(function(){try{var t=pe(Object,"defineProperty");return t({},"",{}),t}catch{}})();function io(t,e,i){e=="__proto__"&&Pi?Pi(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function $r(t,e,i){(i!==void 0&&!tr(t[e],i)||i===void 0&&!(e in t))&&io(t,e,i)}function _h(t){return function(e,i,r){for(var o=-1,s=Object(e),n=r(e),a=n.length;a--;){var l=n[++o];if(i(s[l],l,s)===!1)break}return e}}var bh=_h(),xs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dn=xs&&typeof module=="object"&&module&&!module.nodeType&&module,xh=dn&&dn.exports===xs,fn=xh?qt.Buffer:void 0,gn=fn?fn.allocUnsafe:void 0;function Th(t,e){if(e)return t.slice();var i=t.length,r=gn?gn(i):new t.constructor(i);return t.copy(r),r}var pn=qt.Uint8Array;function Sh(t){var e=new t.constructor(t.byteLength);return new pn(e).set(new pn(t)),e}function kh(t,e){var i=e?Sh(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function vh(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var mn=Object.create,Ah=(function(){function t(){}return function(e){if(!fe(e))return{};if(mn)return mn(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}})();function Ts(t,e){return function(i){return t(e(i))}}var Ss=Ts(Object.getPrototypeOf,Object),wh=Object.prototype;function rr(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||wh;return t===i}function Bh(t){return typeof t.constructor=="function"&&!rr(t)?Ah(Ss(t)):{}}function di(t){return t!=null&&typeof t=="object"}var Lh="[object Arguments]";function yn(t){return di(t)&&De(t)==Lh}var ks=Object.prototype,Eh=ks.hasOwnProperty,Fh=ks.propertyIsEnumerable,Ni=yn((function(){return arguments})())?yn:function(t){return di(t)&&Eh.call(t,"callee")&&!Fh.call(t,"callee")},Ri=Array.isArray,Oh=9007199254740991;function vs(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Oh}function or(t){return t!=null&&vs(t.length)&&!eo(t)}function Ih(t){return di(t)&&or(t)}function Mh(){return!1}var As=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cn=As&&typeof module=="object"&&module&&!module.nodeType&&module,Dh=Cn&&Cn.exports===As,_n=Dh?qt.Buffer:void 0,$h=_n?_n.isBuffer:void 0,ro=$h||Mh,Ph="[object Object]",Nh=Function.prototype,Rh=Object.prototype,ws=Nh.toString,qh=Rh.hasOwnProperty,zh=ws.call(Object);function Wh(t){if(!di(t)||De(t)!=Ph)return!1;var e=Ss(t);if(e===null)return!0;var i=qh.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&ws.call(i)==zh}var jh="[object Arguments]",Yh="[object Array]",Hh="[object Boolean]",Uh="[object Date]",Gh="[object Error]",Xh="[object Function]",Vh="[object Map]",Kh="[object Number]",Zh="[object Object]",Jh="[object RegExp]",Qh="[object Set]",tu="[object String]",eu="[object WeakMap]",iu="[object ArrayBuffer]",ru="[object DataView]",ou="[object Float32Array]",nu="[object Float64Array
14]",su="[object Int8Array]",au="[object Int16Array]",lu="[object Int32Array]",cu="[object Uint8Array]",hu="[object Uint8ClampedArray]",uu="[object Uint16Array]",du="[object Uint32Array]",V={};V[ou]=V[nu]=V[su]=V[au]=V[lu]=V[cu]=V[hu]=V[uu]=V[du]=!0;V[jh]=V[Yh]=V[iu]=V[Hh]=V[ru]=V[Uh]=V[Gh]=V[Xh]=V[Vh]=V[Kh]=V[Zh]=V[Jh]=V[Qh]=V[tu]=V[eu]=!1;function fu(t){return di(t)&&vs(t.length)&&!!V[De(t)]}function gu(t){return function(e){return t(e)}}var Bs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ti=Bs&&typeof module=="object"&&module&&!module.nodeType&&module,pu=ti&&ti.exports===Bs,Ar=pu&&_s.process,bn=(function(){try{var t=ti&&ti.require&&ti.require("util").types;return t||Ar&&Ar.binding&&Ar.binding("util")}catch{}})(),xn=bn&&bn.isTypedArray,oo=xn?gu(xn):fu;function Pr(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var mu=Object.prototype,yu=mu.hasOwnProperty;function Cu(t,e,i){var r=t[e];(!(yu.call(t,e)&&tr(r,i))||i===void 0&&!(e in t))&&io(t,e,i)}function _u(t,e,i,r){var o=!i;i||(i={});for(var s=-1,n=e.length;++s<n;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),o?io(i,a,l):Cu(i,a,l)}return i}function bu(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var xu=9007199254740991,Tu=/^(?:0|[1-9]\d*)$/;function Ls(t,e){var i=typeof t;return e=e??xu,!!e&&(i=="number"||i!="symbol"&&Tu.test(t))&&t>-1&&t%1==0&&t<e}var Su=Object.prototype,ku=Su.hasOwnProperty;function vu(t,e){var i=Ri(t),r=!i&&Ni(t),o=!i&&!r&&ro(t),s=!i&&!r&&!o&&oo(t),n=i||r||o||s,a=n?bu(t.length,String):[],l=a.length;for(var h in t)(e||ku.call(t,h))&&!(n&&(h=="length"||o&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Ls(h,l)))&&a.push(h);return a}function Au(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var wu=Object.prototype,Bu=wu.hasOwnProperty;function Lu(t){if(!fe(t))return Au(t);var e=rr(t),i=[];for(var r in t)r=="constructor"&&(e||!Bu.call(t,r))||i.push(r);return i}function Es(t){return or(t)?vu(t,!0):Lu(t)}function Eu(t){return _u(t,Es(t))}function Fu(t,e,i,r,o,s,n){var a=Pr(t,i),l=Pr(e,i),h=n.get(l);if(h){$r(t,i,h);return}var d=s?s(a,l,i+"",t,e,n):void 0,f=d===void 0;if(f){var c=Ri(l),g=!c&&ro(l),m=!c&&!g&&oo(l);d=l,c||g||m?Ri(a)?d=a:Ih(a)?d=vh(a):g?(f=!1,d=Th(l,!0)):m?(f=!1,d=kh(l,!0)):d=[]:Wh(l)||Ni(l)?(d=a,Ni(a)?d=Eu(a):(!fe(a)||eo(a))&&(d=Bh(l))):f=!1}f&&(n.set(l,d),o(d,l,r,s,n),n.delete(l)),$r(t,i,d)}function Fs(t,e,i,r,o){t!==e&&bh(e,function(s,n){if(o||(o=new $e),fe(s))Fu(t,e,n,i,Fs,r,o);else{var a=r?r(Pr(t,n),s,n+"",t,e,o):void 0;a===void 0&&(a=s),$r(t,n,a)}},Es)}function Os(t){return t}function Ou(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var Tn=Math.max;function Iu(t,e,i){return e=Tn(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,s=Tn(r.length-e,0),n=Array(s);++o<s;)n[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=i(n),Ou(t,this,a)}}function Mu(t){return function(){return t}}var Du=Pi?function(t,e){return Pi(t,"toString",{configurable:!0,enumerable:!1,value:Mu(e),writable:!0})}:Os,$u=800,Pu=16,Nu=Date.now;function Ru(t){var e=0,i=0;return function(){var r=Nu(),o=Pu-(r-i);if(i=r,o>0){if(++e>=$u)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var qu=Ru(Du);function zu(t,e){return qu(Iu(t,e,Os),t+"")}function Wu(t,e,i){if(!fe(i))return!1;var r=typeof e;return(r=="number"?or(i)&&Ls(e,i.length):r=="string"&&e in i)?tr(i[e],t):!1}function ju(t){return zu(function(e,i){var r=-1,o=i.length,s=o>1?i[o-1]:void 0,n=o>2?i[2]:void 0;for(s=t.length>3&&typeof s=="function"?(o--,s):void 0,n&&Wu(i[0],i[1],n)&&(s=o<3?void 0:s,o=1),e=Object(e);++r<o;){var a=i[r];a&&t(e,a,r,s)}return e})}var Yu=ju(function(t,e,i){Fs(t,e,i)}),Is="comm",Ms="rule",Ds="decl",Hu="@import",Uu="@namespace",Gu="@keyframes",Xu="@layer",$s=Math.abs,no=String.fromCharCode;function Ps(t){return t.trim()}function Bi(t,e,i){return t.replace(e,i)}function Vu(t,e,i){return t.indexOf(e,i)}function Ae(t,e){return t.charCodeAt(e)|0}function Le(t,e,i){return t.slice(e,i)}function Dt(t){return t.length}function Ku(t){return t.length}function Ti(t,e){return e.push(t),t}var nr=1,Ee=1,Ns=0,At=0,J=0,Pe="";function so(t,e,i,r,o,s,n,a){return{value:t,root:e,parent:i,type:r,props:o,children:s,line:nr,column:Ee,length:n,return:"",siblings:a}}function Zu(){return J}function Ju(){return J=At>0?Ae(Pe,--At):0,Ee--,J===10&&(Ee=1,nr--),J}function Ft(){return J=At<Ns?Ae(Pe,At++):0,Ee++,J===10&&(Ee=1,nr++),J}function te(){return Ae(Pe,At)}function Li(){return At}function sr(t,e){return Le(Pe,t,e)}function si(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qu(t){return nr=Ee=1,Ns=Dt(Pe=t),At=0,[]}function td(t){return Pe="",t}function wr(t){return Ps(sr(At-1,Nr(t===91?t+2:t===40?t+1:t)))}function ed(t){for(;
vendor: 5,085 bytes, line 14
14(J=te())&&J<33;)Ft();return si(t)>2||si(J)>3?"":" "}function id(t,e){for(;--e&&Ft()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return sr(t,Li()+(e<6&&te()==32&&Ft()==32))}function Nr(t){for(;Ft();)switch(J){case t:return At;case 34:case 39:t!==34&&t!==39&&Nr(J);break;case 40:t===41&&Nr(t);break;case 92:Ft();break}return At}function rd(t,e){for(;Ft()&&t+J!==57;)if(t+J===84&&te()===47)break;return"/*"+sr(e,At-1)+"*"+no(t===47?t:Ft())}function od(t){for(;!si(te());)Ft();return sr(t,At)}function nd(t){return td(Ei("",null,null,null,[""],t=Qu(t),0,[0],t))}function Ei(t,e,i,r,o,s,n,a,l){for(var h=0,d=0,f=n,c=0,g=0,m=0,_=1,b=1,I=1,x=0,q="",y=o,v=s,U=r,$=q;b;)switch(m=x,x=Ft()){case 40:if(m!=108&&Ae($,f-1)==58){Vu($+=Bi(wr(x),"&","&\f"),"&\f",$s(h?a[h-1]:0))!=-1&&(I=-1);break}case 34:case 39:case 91:$+=wr(x);break;case 9:case 10:case 13:case 32:$+=ed(m);break;case 92:$+=id(Li()-1,7);continue;case 47:switch(te()){case 42:case 47:Ti(sd(rd(Ft(),Li()),e,i,l),l),(si(m||1)==5||si(te()||1)==5)&&Dt($)&&Le($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*_:a[h++]=Dt($)*I;case 125*_:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+d:I==-1&&($=Bi($,/\f/g,"")),g>0&&(Dt($)-f||_===0&&m===47)&&Ti(g>32?kn($+";",r,i,f-1,l):kn(Bi($," ","")+";",r,i,f-2,l),l);break;case 59:$+=";";default:if(Ti(U=Sn($,e,i,h,d,o,a,q,y=[],v=[],f,s),s),x===123)if(d===0)Ei($,e,U,U,y,s,f,a,v);else{switch(c){case 99:if(Ae($,3)===110)break;case 108:if(Ae($,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Ei(t,U,U,r&&Ti(Sn(t,U,U,0,0,o,a,q,o,y=[],f,v),v),o,v,f,a,r?y:v):Ei($,U,U,U,[""],v,0,a,v)}}h=d=g=0,_=I=1,q=$="",f=n;break;case 58:f=1+Dt($),g=m;default:if(_<1){if(x==123)--_;else if(x==125&&_++==0&&Ju()==125)continue}switch($+=no(x),x*_){case 38:I=d>0?1:($+="\f",-1);break;case 44:a[h++]=(Dt($)-1)*I,I=1;break;case 64:te()===45&&($+=wr(Ft())),c=te(),d=f=Dt(q=$+=od(Li())),x++;break;case 45:m===45&&Dt($)==2&&(_=0)}}return s}function Sn(t,e,i,r,o,s,n,a,l,h,d,f){for(var c=o-1,g=o===0?s:[""],m=Ku(g),_=0,b=0,I=0;_<r;++_)for(var x=0,q=Le(t,c+1,c=$s(b=n[_])),y=t;x<m;++x)(y=Ps(b>0?g[x]+" "+q:Bi(q,/&\f/g,g[x])))&&(l[I++]=y);return so(t,e,i,o===0?Ms:a,l,h,d,f)}function sd(t,e,i,r){return so(t,e,i,Is,no(Zu()),Le(t,2,-2),0,r)}function kn(t,e,i,r,o){return so(t,e,i,Ds,Le(t,0,r),Le(t,r+1,-1),r,o)}function Rr(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function ad(t,e,i,r){switch(t.type){case Xu:if(t.children.length)break;case Hu:case Uu:case Ds:return t.return=t.return||t.value;case Is:return"";case Gu:return t.return=t.value+"{"+Rr(t.children,r)+"}";case Ms:if(!Dt(t.value=t.props.join(",")))return""}return Dt(i=Rr(t.children,r))?t.return=t.value+"{"+i+"}":""}var ld=Ts(Object.keys,Object),cd=Object.prototype,hd=cd.hasOwnProperty;function ud(t){if(!rr(t))return ld(t);var e=[];for(var i in Object(t))hd.call(t,i)&&i!="constructor"&&e.push(i);return e}var qr=pe(qt,"DataView"),zr=pe(qt,"Promise"),Wr=pe(qt,"Set"),jr=pe(qt,"WeakMap"),vn="[object Map]",dd="[object Object]",An="[object Promise]",wn="[object Set]",Bn="[object WeakMap]",Ln="[object DataView]",fd=ge(qr),gd=ge(ni),pd=ge(zr),md=ge(Wr),yd=ge(jr),ae=De;(qr&&ae(new qr(new ArrayBuffer(1)))!=Ln||ni&&ae(new ni)!=vn||zr&&ae(zr.resolve())!=An||Wr&&ae(new Wr)!=wn||jr&&ae(new jr)!=Bn)&&(ae=function(t){var e=De(t),i=e==dd?t.constructor:void 0,r=i?ge(i):"";if(r)switch(r){case fd:return Ln;case gd:return vn;case pd:return An;case md:return wn;case yd:return Bn}return e});var Cd="[object Map]",_d="[object Set]",bd=Object.prototype,xd=bd.hasOwnProperty;function Br(t){if(t==null)return!0;if(or(t)&&(Ri(t)||typeof t=="string"||typeof t.splice=="function"||ro(t)||oo(t)||Ni(t)))return!t.length;var e=ae(t);if(e==Cd||e==_d)return!t.size;if(rr(t))return!ud(t).length;for(var i in t)if(xd.call(t,i))return!1;return!0}const jt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},D={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},ao=function(t="fatal"){let e=jt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in jt&&(e=jt[t])):typeof t=="number"&&(e=t),D.trace=()=>{},D.debug=()=>{},D.info=()=>{},D.warn=()=>{},D.error=()=>{},D.fatal=()=>{},e<=jt.fatal&&(D.fatal=console.error?console.error.bind(console,St("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",St("FATAL"))),e<=jt.error&&(D.error=console.error?console.error.bind(console,St("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",St("ERROR"))),e<=jt.warn&&(D.warn=console.warn?console.warn.bind(console,St("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",St("WARN"))),e<=jt.info&&(D.info=console.info?console.info.bind(console,St("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",St("INFO"))),e<=jt.debug&&(D.debug=console.debug?console.debug.bind(console,St("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",St("DEBUG"))),e<=jt.trace&&(D.trace=console.debug?console.debug.bind(console,St("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",St("TRACE")))},St=t=>`%c${kl().format("ss.SSS")} : ${t} : `,fi=/<br\s*\/?>/gi,Td=t=>
14t?qs(t).replace(/\\n/g,"#br#").split("#br#"):[""],Sd=(()=>{let t=!1;return()=>{t||(kd(),t=!0)}})();function kd(){const t="data-temp-href-target";Be.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Be.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Rs=t=>(Sd(),Be.sanitize(t)),En=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Rs(t):r!=="loose"&&(t=qs(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=Bd(t))}return t},ai=(t,e)=>t&&(e.dompurifyConfig?t=Be.sanitize(En(t,e),e.dompurifyConfig).toString():t=Be.sanitize(En(t,e),{FORBID_TAGS:["style"]}).toString(),t),vd=(t,e)=>typeof t=="string"?ai(t,e):t.flat().map(i=>ai(i,e)),Ad=t=>fi.test(t),wd=t=>t.split(fi),Bd=t=>t.replace(/#br#/g,"<br/>"),qs=t=>t.replace(fi,"#br#"),Ld=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},zs=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),Ed=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},Fd=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},GC=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let o=e[r];if(o===","&&r>0&&r+1<e.length){const s=e[r-1],n=e[r+1];Od(s,n)&&(o=s+","+n,r++,i.pop())}i.push(Id(o))}return i.join("")},Yr=(t,e)=>Math.max(0,t.split(e).length-1),Od=(t,e)=>{const i=Yr(t,"~"),r=Yr(e,"~");return i===1&&r===1},Id=t=>{const e=Yr(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let o=r.indexOf("~"),s=r.lastIndexOf("~");for(;o!==-1&&s!==-1&&o!==s;)r[o]="<",r[s]=">",o=r.indexOf("~"),s=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},Fn=()=>window.MathMLElement!==void 0,Hr=/\$\$(.*)\$\$/g,On=t=>{var e;return(((e=t.match(Hr))==null?void 0:e.length)??0)>0},XC=async(t,e)=>{t=await Md(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const o={width:i.clientWidth,height:i.clientHeight};return i.remove(),o},Md=async(t,e)=>{if(!On(t))return t;if(!Fn()&&!e.legacyMathML)return t.replace(Hr,"MathML is unsupported in this environment.");const{default:i}=await Z(async()=>{const{default:r}=await import("./katex-MnfYB5cJ.js");return{default:r}},[]);return t.split(fi).map(r=>On(r)?` 15 <div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;"> 16 ${r} 17 </div> 18 `:`<div>${r}</div>`).join("").replace(Hr,(r,o)=>i.renderToString(o,{throwOnError:!0,displayMode:!0,output:Fn()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},lo={getRows:Td,sanitizeText:ai,sanitizeTextOrArray:vd,hasBreaks:Ad,splitBreaks:wd,lineBreakRegex:fi,removeScript:Rs,getUrl:Ld,evaluate:zs,getMax:Ed,getMin:Fd},gt=(t,e)=>e?p(t,{s:-40,l:10}):p(t,{s:-40,l:-10}),ar="#ffffff",lr="#f2f2f2";let Dd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,o,s,n,a,l,h,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||p(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||p(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||gt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||gt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||gt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||gt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackgroun
vendor: 11,590 bytes, line 18
18d=this.edgeLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||F(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=P(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=P(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||S(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||F(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||P(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const c=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||p(this.mainBkg,{h:180,s:-15,l:c*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||p(this.mainBkg,{h:180,s:-15,l:c*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||p(this.primaryColor,{h:64}),this.fillType3=this.fillType3||p(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||p(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||p(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||p(this.primaryColor,{h:128}),this.fillType7=this.fillType7||p(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||p(this.primaryColor,{l:-10}),this.pie5=this.pie5||p(this.secondaryColor,{l:-10}),this.pie6=this.pie6||p(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||p(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||p(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||hi(this.quadrant1Fill)?F(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((n=this.xyChart)==null?void 0:n.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=F(this.git0,25),this.git1=F(this.git1,25),this.git2=F(this.git2,25),this.git3=F(this.git3,25),this.git4=F(this.git4,25),this.git5=F(this.git5,25),this.git6=F(this.git6,25),this.git7=F(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||S(this.git0),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ar,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||lr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);
18i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const $d=t=>{const e=new Dd;return e.calculate(t),e};let Pd=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=F(this.primaryColor,16),this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=S(this.background),this.secondaryBorderColor=gt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=F(S("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Qe(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=P("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=P(this.sectionBkgColor,10),this.taskBorderColor=Qe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Qe(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,o,s,n,a,l,h,d,f;this.secondBkg=F(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=F(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=F(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,318 bytes, line 18
18dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330});for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||S(this["cScale"+c]);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScalePeer"+c]=this["cScalePeer"+c]||F(this["cScale"+c],10);for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||p(this.mainBkg,{h:30,s:-30,l:-(-10+c*4)}),this["surfacePeer"+c]=this["surfacePeer"+c]||p(this.mainBkg,{h:30,s:-30,l:-(-7+c*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.scaleLabelColor;for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["pie"+c]=this["cScale"+c];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||hi(this.quadrant1Fill)?F(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
18nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((n=this.xyChart)==null?void 0:n.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=F(this.secondaryColor,20),this.git1=F(this.pie2||this.secondaryColor,20),this.git2=F(this.pie3||this.tertiaryColor,20),this.git3=F(this.pie4||p(this.primaryColor,{h:-30}),20),this.git4=F(this.pie5||p(this.primaryColor,{h:-60}),20),this.git5=F(this.pie6||p(this.primaryColor,{h:-90}),10),this.git6=F(this.pie7||p(this.primaryColor,{h:60}),10),this.git7=F(this.pie8||p(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||S(this.git0),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||S(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||S(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||F(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||F(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Nd=t=>{const e=new Pd;return e.calculate(t),e};let Rd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=p(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=gt(this.primaryColor,this.darkMode),this.secondaryBorderColor=gt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.background="white",this.mainBkg="#
18ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Qe(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,o,s,n,a,l,h,d,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScale"+c]=P(this["cScale"+c],10),this["cScalePeer"+c]=this["cScalePeer"+c]||P(this["cScale"+c],25);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||p(this["cScale"+c],{h:180});for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||p(this.mainBkg,{h:30,l:-(5+c*5)}),this["surfacePeer"+c]=this["surfacePeer"+c]||p(this.mainBkg,{h:30,l:-(7+c*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||S(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||S(this.labelTextColor);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackgroun
vendor: 11,662 bytes, line 18
18d=this.labelBackground,this.actorBorder=F(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||p(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||p(this.primaryColor,{l:-10}),this.pie5=this.pie5||p(this.secondaryColor,{l:-30}),this.pie6=this.pie6||p(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||p(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||p(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||hi(this.quadrant1Fill)?F(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((n=this.xyChart)==null?void 0:n.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=F(this.git0,25),this.git1=F(this.git1,25),this.git2=F(this.git2,25),this.git3=F(this.git3,25),this.git4=F(this.git4,25),this.git5=F(this.git5,25),this.git6=F(this.git6,25),this.git7=F(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||P(S(this.git0),25),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||S(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||S(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ar,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||lr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const qd=t=>{const e=new Rd;return e.calculate(t),e};let zd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=F("#cde498",10),this.primaryBorderColor=gt(this.primaryColor,this.darkMode),this.secondaryBorderColor=gt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.primaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,o,s,n,a,l,h,d,f;this.actorBorder=P(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScale"+c]=P(this["cScale"+c],10),this["cScalePeer"+c]=this["cScalePeer"+c]||P(this["cScale"+c],25);for(let c=0;c<this.THEME_COLOR_LIMIT;
vendor: 4,399 bytes, line 18
18c++)this["cScaleInv"+c]=this["cScaleInv"+c]||p(this["cScale"+c],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.scaleLabelColor;for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||p(this.mainBkg,{h:30,s:-30,l:-(5+c*5)}),this["surfacePeer"+c]=this["surfacePeer"+c]||p(this.mainBkg,{h:30,s:-30,l:-(8+c*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||p(this.primaryColor,{l:-30}),this.pie5=this.pie5||p(this.secondaryColor,{l:-30}),this.pie6=this.pie6||p(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||p(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||p(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||hi(this.quadrant1Fill)?F(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 13,474 bytes, line 18
18nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((n=this.xyChart)==null?void 0:n.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=F(this.git0,25),this.git1=F(this.git1,25),this.git2=F(this.git2,25),this.git3=F(this.git3,25),this.git4=F(this.git4,25),this.git5=F(this.git5,25),this.git6=F(this.git6,25),this.git7=F(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||S(this.git0),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||S(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||S(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ar,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||lr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Wd=t=>{const e=new zd;return e.calculate(t),e};class jd{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=F(this.contrast,55),this.background="#ffffff",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=gt(this.primaryColor,this.darkMode),this.secondaryBorderColor=gt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,o,s,n,a,l,h,d,f;this.secondBkg=F(this.contrast,55),this.border2=this.contrast,this.actorBorder=F(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||S(this["cScale"+c]);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this.darkMode?this["cScalePeer"+c]=this["cScalePeer"+c]||F(this["cScale"+c],10):this["cScalePeer"+c]=this["cScalePeer"+c]||P(this["cScale"+c],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.scaleLabelColor;for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||p(this.mainBkg,{l:-(5+c*5)}),this["surfacePeer"+c]=this["surfacePeer"+c]||p(this.mainBkg,{l:-(8+c*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=F(this.contrast,30),this.sectionBkgColor2=F(this.contrast,30),this.taskBorderColor=P(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=F(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=P(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128});for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["pie"+c]=this["cScale"+c];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||hi(this.quadrant1Fill)?F(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((n=this.xyChart)==null?void 0:n.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackgroun
18d=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=P(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||p(this.primaryColor,{h:-30}),this.git4=this.pie5||p(this.primaryColor,{h:-60}),this.git5=this.pie6||p(this.primaryColor,{h:-90}),this.git6=this.pie7||p(this.primaryColor,{h:60}),this.git7=this.pie8||p(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||S(this.git0),this.gitInv1=this.gitInv1||S(this.git1),this.gitInv2=this.gitInv2||S(this.git2),this.gitInv3=this.gitInv3||S(this.git3),this.gitInv4=this.gitInv4||S(this.git4),this.gitInv5=this.gitInv5||S(this.git5),this.gitInv6=this.gitInv6||S(this.git6),this.gitInv7=this.gitInv7||S(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ar,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||lr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Yd=t=>{const e=new jd;return e.calculate(t),e},Gt={base:{getThemeVariables:$d},dark:{getThemeVariables:Nd},default:{getThemeVariables:qd},forest:{getThemeVariables:Wd},neutral:{getThemeVariables:Yd}},Yt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75}
18,quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16}
18,Ws={...Yt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Gt.default.getThemeVariables(),sequence:{...Yt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Yt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Yt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Yt.pie,useWidth:984}
18,xyChart:{...Yt.xyChart,useWidth:void 0},requirement:{...Yt.requirement,useWidth:void 0},gitGraph:{...Yt.gitGraph,useMaxWidth:!1},sankey:{...Yt.sankey,useMaxWidth:!1}},js=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...js(t[r],"")]:[...i,e+r],[]),Hd=new Set(js(Ws,"")),Ud=Ws,qi=t=>{if(D.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>qi(e));return}for(const e of Object.keys(t)){if(D.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Hd.has(e)||t[e]==null){D.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){D.debug("sanitizing object",e),qi(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(D.debug("sanitizing css option",e),t[e]=Gd(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}D.debug("After sanitization",t)}},Gd=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},Ys=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ei=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Xd=/\s*%%.*\n/gm;class Hs extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Fe={},cr=function(t,e){t=t.replace(Ys,"").replace(ei,"").replace(Xd,` 19`);for(const[i,{detector:r}]of Object.entries(Fe))if(r(t,e))return i;throw new Hs(`No diagram type detected matching given configuration for text: ${t}`)},Us=(...t)=>{for(const{id:e,detector:i,loader:r}of t)Gs(e,i,r)},Gs=(t,e,i)=>{Fe[t]?D.error(`Detector with key ${t} already exists`):Fe[t]={detector:e,loader:i},D.debug(`Detector with key ${t} added${i?" with loader":""}`)},Vd=t=>Fe[t].loader,Ur=(t,e,{depth:i=2,clobber:r=!1}={})=>{const o={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>Ur(t,s,o)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=Ur(t[s],e[s],{depth:i-1,clobber:r})):(r||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},ct=Ur,Kd="â",Zd={curveBasis:Bl,curveBasisClosed:Ll,curveBasisOpen:El,curveBumpX:Al,curveBumpY:wl,curveBundle:Fl,curveCardinalClosed:Il,curveCardinalOpen:Ml,curveCardinal:Ol,curveCatmullRomClosed:$l,curveCatmullRomOpen:Pl,curveCatmullRom:Dl,curveLinear:vl,curveLinearClosed:Nl,curveMonotoneX:Rl,curveMonotoneY:ql,curveNatural:zl,curveStep:Wl,curveStepAfter:Yl,curveStepBefore:jl},Jd=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Qd=function(t,e){const i=Xs(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const n=i.map(a=>a.args);qi(n),r=ct(r,[...n])}else r=i.args;if(!r)return;let o=cr(t,e);const s="config";return r[s]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),r[o]=r[s],delete r[s]),r},Xs=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Jd.source})(?=[}][%]{2}).* 20`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),D.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const o=[];for(;(r=ei.exec(t))!==null;)if(r.index===ei.lastIndex&&ei.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const s=r[1]?r[1]:r[2],n=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:s,args:n})}return o.length===0?{type:t,args:null}:o.length===1?o[0]:o}catch(i){return D.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},tf=function(t){return t.replace(ei,"")},ef=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function rf(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Zd[i]??e}function of(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?nl.sanitizeUrl(i):i}const nf=(t,...e)=>{const i=t.split("."),r=i.length-1,o=i[r];let s=window;for(let n=0;n<r;n++)if(s=s[i[n]],!s){D.error(`Function name: ${t} not found in window`);return}s[o](...e)};function Vs(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function sf(t){let e,i=0;t.forEach(o=>{i+=Vs(o,e),e=o});const r=i/2;return co(t,r)}function af(t){return t.length===1?t[0]:sf(t)}
20const In=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},co=(t,e)=>{let i,r=e;for(const o of t){if(i){const s=Vs(o,i);if(s<r)r-=s;else{const n=r/s;if(n<=0)return i;if(n>=1)return{x:o.x,y:o.y};if(n>0&&n<1)return{x:In((1-n)*i.x+n*o.x,5),y:In((1-n)*i.y+n*o.y,5)}}}i=o}throw new Error("Could not find a suitable point for the given distance")},lf=(t,e,i)=>{D.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const o=co(e,25),s=t?10:5,n=Math.atan2(e[0].y-o.y,e[0].x-o.x),a={x:0,y:0};return a.x=Math.sin(n)*s+(e[0].x+o.x)/2,a.y=-Math.cos(n)*s+(e[0].y+o.y)/2,a};function cf(t,e,i){const r=structuredClone(i);D.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const o=25+t,s=co(r,o),n=10+t*.5,a=Math.atan2(r[0].y-s.y,r[0].x-s.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*n+(r[0].x+s.x)/2,l.y=-Math.cos(a+Math.PI)*n+(r[0].y+s.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*n+(r[0].x+s.x)/2-5,l.y=-Math.cos(a-Math.PI)*n+(r[0].y+s.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*n+(r[0].x+s.x)/2-5,l.y=-Math.cos(a)*n+(r[0].y+s.y)/2-5):(l.x=Math.sin(a)*n+(r[0].x+s.x)/2,l.y=-Math.cos(a)*n+(r[0].y+s.y)/2),l}function hf(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let Mn=0;const uf=()=>(Mn++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Mn);function df(t){let e="";const i="0123456789abcdef",r=i.length;for(let o=0;o<t;o++)e+=i.charAt(Math.floor(Math.random()*r));return e}const ff=t=>df(t.length),gf=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},pf=function(t,e){const i=e.text.replace(lo.lineBreakRegex," "),[,r]=uo(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",r),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0&&o.attr("class",e.class);const s=o.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(i),o},mf=ui((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),lo.lineBreakRegex.test(t)))return t;const r=t.split(" "),o=[];let s="";return r.forEach((n,a)=>{const l=zi(`${n} `,i),h=zi(s,i);if(l>e){const{hyphenatedStrings:c,remainingWord:g}=yf(n,e,"-",i);o.push(s,...c),s=g}else h+l>=e?(o.push(s),s=n):s=[s,n].filter(Boolean).join(" ");a+1===r.length&&o.push(s)}),o.filter(n=>n!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),yf=ui((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const o=[...t],s=[];let n="";return o.forEach((a,l)=>{const h=`${n}${a}`;if(zi(h,r)>=e){const f=l+1,c=o.length===f,g=`${h}${i}`;s.push(c?h:g),n=""}else n=h}),{hyphenatedStrings:s,remainingWord:n}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Cf(t,e){return ho(t,e).height}function zi(t,e){return ho(t,e).width}const ho=ui((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};const[,s]=uo(i),n=["sans-serif",r],a=t.split(lo.lineBreakRegex),l=[],h=kt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const d=h.append("svg");for(const c of n){let g=0;const m={width:0,height:0,lineHeight:0};for(const _ of a){const b=gf();b.text=_||Kd;const I=pf(d,b).style("font-size",s).style("font-weight",o).style("font-family",c),x=(I._groups||I)[0][0].getBBox();if(x.width===0&&x.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,x.width)),g=Math.round(x.height),m.height+=g,m.lineHeight=Math.round(Math.max(m.lineHeight,g))}l.push(m)}d.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class _f{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Si;const bf=function(t){return Si=Si||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Si.innerHTML=t,unescape(Si.textContent)};function Ks(t){return"str"in t}const xf=(t,e,i,r)=>{var o;if(!r)return;const s=(o=t.node())==null?void 0:o.getBBox();s&&t.append("text").text(r).attr("x",s.x+s.width/2).attr("y",-i).attr("class",e)},uo=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function Zs(t,e){return Yu({},t,e)}const ii={assignWithDepth:ct,wrapLabel:mf,calculateTextHeight:Cf,calculateTextWidth:zi,calculateTextDimensions:ho,cleanAndMerge:Zs,detectInit:Qd,detectDirective:Xs,isSubstringInArray:ef,interpolateToCurve:rf,calcLabelPosition:af,calcCardinalityPosition:lf,calcTerminalLabelPosition:cf,formatUrl:of,getStylesFromArray:hf,generateId:uf,random:ff,runFunc:nf,entityDecode:bf,insertTitle:xf,parseFontSize:uo,InitIDGenerator:_f},Tf=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"ï¬Â°Â°"+r+"¶Ã":"ï¬Â°"+r+"¶Ã"}),e},Sf=function(t){return t.replace(/ï¬Â°Â°/g,"&#").replace(/ï¬Â°/g,"&").replace(/¶Ã/g,";")},Dn="10.9.3",Oe=Object.freeze(Ud);let yt=ct({},Oe),Js,Ie=[],ri=ct({},Oe);const hr=(t,e)=>{let i=ct({},t),r={};for(const o of e)ea(o),r=ct(r,o);if(i=ct(i,r),r.theme&&r.theme in Gt){const o=ct({},Js),s=ct(o.themeVariables||{},r.themeVariables);i.theme&&i.theme in Gt&&(i.themeVariables=Gt[i.theme].getThemeVariables(s))}return ri=i,ia(ri),ri},kf=t=>(yt=ct({},Oe),yt=ct(yt,t),t.theme&&Gt[t.theme]&&(yt.themeVariables=Gt[t.theme].getThemeVariables(t.themeVariables)),hr(yt,Ie),yt),vf=t=>{Js=ct({},t)},Af=t=>(yt=ct(yt,t),hr(yt,Ie),yt),Qs=()=>ct({},yt),ta=t=>
20(ia(t),ct(ri,t),Nt()),Nt=()=>ct({},ri),ea=t=>{t&&(["secure",...yt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(D.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&ea(t[e])}))},wf=t=>{qi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Ie.push(t),hr(yt,Ie)},Wi=(t=yt)=>{Ie=[],hr(t,Ie)},Bf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},$n={},Lf=t=>{$n[t]||(D.warn(Bf[t]),$n[t]=!0)},ia=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Lf("LAZY_LOAD_DEPRECATED")},ra="c4",Ef=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Ff=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-BNc2DG3K.js");return{diagram:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]));return{id:ra,diagram:t}},Of={id:ra,detector:Ef,loader:Ff},If=Of,oa="flowchart",Mf=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Df=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-hRupu9Ue.js");return{diagram:e}},__vite__mapDeps([13,14,1,15,16,17,18,19,20,21,22,23,24,25,3,4,5,6,7,8,9,10,11,12]));return{id:oa,diagram:t}},$f={id:oa,detector:Mf,loader:Df},Pf=$f,na="flowchart-v2",Nf=(t,e)=>{var i,r,o;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((o=e==null?void 0:e.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},Rf=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-0mgMyeC2.js");return{diagram:e}},__vite__mapDeps([26,14,1,17,15,18,16,19,20,21,22,23,24,25,3,4,5,6,7,8,9,10,11,12]));return{id:na,diagram:t}},qf={id:na,detector:Nf,loader:Rf},zf=qf,sa="er",Wf=t=>/^\s*erDiagram/.test(t),jf=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-DFtl-eHJ.js");return{diagram:e}},__vite__mapDeps([27,15,1,16,3,4,5,6,7,8,9,10,11,12,22,23,24]));return{id:sa,diagram:t}},Yf={id:sa,detector:Wf,loader:jf},Hf=Yf,aa="gitGraph",Uf=t=>/^\s*gitGraph/.test(t),Gf=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-DlgOzwjC.js");return{diagram:e}},__vite__mapDeps([28,1,3,4,5,6,7,8,9,10,11,12]));return{id:aa,diagram:t}},Xf={id:aa,detector:Uf,loader:Gf},Vf=Xf,la="gantt",Kf=t=>/^\s*gantt/.test(t),Zf=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54-DJ2UA2l2.js");return{diagram:e}},__vite__mapDeps([29,3,4,5,6,7,8,9,10,11,12,1,30,31,32]));return{id:la,diagram:t}},Jf={id:la,detector:Kf,loader:Zf},Qf=Jf,ca="info",tg=t=>/^\s*info/.test(t),eg=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-BadoACh5.js");return{diagram:e}},__vite__mapDeps([33,3,4,5,6,7,8,9,10,11,12,1]));return{id:ca,diagram:t}},ig={id:ca,detector:tg,loader:eg},ha="pie",rg=t=>/^\s*pie/.test(t),og=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-BC4pAcyO.js");return{diagram:e}},__vite__mapDeps([34,1,3,4,5,6,7,8,9,10,11,12,35,24,36,32,23]));return{id:ha,diagram:t}},ng={id:ha,detector:rg,loader:og},ua="quadrantChart",sg=t=>/^\s*quadrantChart/.test(t),ag=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-D3dy5iYQ.js");return{diagram:e}},__vite__mapDeps([37,1,3,4,5,6,7,8,9,10,11,12,30,31,32]));return{id:ua,diagram:t}},lg={id:ua,detector:sg,loader:ag},cg=lg,da="xychart",hg=t=>/^\s*xychart-beta/.test(t),ug=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-48PLJUko.js");return{diagram:e}},__vite__mapDeps([38,21,1,3,4,5,6,7,8,9,10,11,12,32,36,30,31,22,23,24]));return{id:da,diagram:t}}
20,dg={id:da,detector:hg,loader:ug},fg=dg,fa="requirement",gg=t=>/^\s*requirement(Diagram)?/.test(t),pg=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-Mvkvh_9U.js");return{diagram:e}},__vite__mapDeps([39,1,15,16,3,4,5,6,7,8,9,10,11,12,22,23,24]));return{id:fa,diagram:t}},mg={id:fa,detector:gg,loader:pg},yg=mg,ga="sequence",Cg=t=>/^\s*sequenceDiagram/.test(t),_g=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-DnWTdwip.js");return{diagram:e}},__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12]));return{id:ga,diagram:t}},bg={id:ga,detector:Cg,loader:_g},xg=bg,pa="class",Tg=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},Sg=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-C8G-FZA4.js");return{diagram:e}},__vite__mapDeps([41,42,1,15,16,3,4,5,6,7,8,9,10,11,12,22,23,24]));return{id:pa,diagram:t}},kg={id:pa,detector:Tg,loader:Sg},vg=kg,ma="classDiagram",Ag=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},wg=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-BdMWoDCE.js");return{diagram:e}},__vite__mapDeps([43,42,1,15,18,16,19,20,21,22,23,24,3,4,5,6,7,8,9,10,11,12]));return{id:ma,diagram:t}},Bg={id:ma,detector:Ag,loader:wg},Lg=Bg,ya="state",Eg=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Fg=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-DvR0EAHb.js");return{diagram:e}},__vite__mapDeps([44,45,1,15,16,3,4,5,6,7,8,9,10,11,12,22,23,24]));return{id:ya,diagram:t}},Og={id:ya,detector:Eg,loader:Fg},Ig=Og,Ca="stateDiagram",Mg=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},Dg=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-BrEbL9f-.js");return{diagram:e}},__vite__mapDeps([46,45,15,1,18,16,19,20,21,22,23,24,3,4,5,6,7,8,9,10,11,12]));return{id:Ca,diagram:t}},$g={id:Ca,detector:Mg,loader:Dg},Pg=$g,_a="journey",Ng=t=>/^\s*journey/.test(t),Rg=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-C6wgF2sk.js");return{diagram:e}},__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,35,24]));return{id:_a,diagram:t}},qg={id:_a,detector:Ng,loader:Rg},zg=qg,Wg=function(t,e){for(let i of e)t.attr(i[0],i[1])},jg=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},ba=function(t,e,i,r){const o=jg(e,i,r);Wg(t,o)},Yg=function(t,e,i,r){const o=e.node().getBBox(),s=o.width,n=o.height;D.info(`SVG bounds: ${s}x${n}`,o);let a=0,l=0;D.info(`Graph bounds: ${a}x${l}`,t),a=s+i*2,l=n+i*2,D.info(`Calculated bounds: ${a}x${l}`),ba(e,l,a,r);const h=`${o.x-i} ${o.y-i} ${o.width+2*i} ${o.height+2*i}`;e.attr("viewBox",h)},Fi={},Hg=(t,e,i)=>{let r="";return t in Fi&&Fi[t]?r=Fi[t](i):D.warn(`No theme found for ${t}`),` & { 21 font-family: ${i.fontFamily}; 22 font-size: ${i.fontSize}; 23 fill: ${i.textColor} 24 } 25 26 /* Classes common for multiple diagrams */ 27 28 & .error-icon { 29 fill: ${i.errorBkgColor}; 30 } 31 & .error-text { 32 fill: ${i.errorTextColor}; 33 stroke: ${i.errorTextColor}; 34 } 35 36 & .edge-thickness-normal { 37 stroke-width: 2px; 38 } 39 & .edge-thickness-thick { 40 stroke-width: 3.5px 41 } 42 & .edge-pattern-solid { 43 stroke-dasharray: 0; 44 } 45 46 & .edge-pattern-dashed{ 47 stroke-dasharray: 3; 48 } 49 .edge-pattern-dotted { 50 stroke-dasharray: 2; 51 } 52 53 & .marker { 54 fill: ${i.lineColor}; 55 stroke: ${i.lineColor}; 56 } 57 & .marker.cross { 58 stroke: ${i.lineColor}; 59 } 60 61 & svg { 62 font-family: ${i.fontFamily}; 63 font-size: ${i.fontSize}; 64 } 65 66 ${r} 67 68 ${e} 69`},Ug=(t,e)=>{e!==void 0&&(Fi[t]=e)},Gg=Hg;let fo="",go="",po="";const mo=t=>ai(t,Nt()),Xg=()=>{fo="",po="",go=""},Vg=t=>{fo=mo(t).replace(/^\s+/g,"")},Kg=()=>fo,Zg=t=>{po=mo(t).replace(/\n\s+/g,` 70`)},Jg=()=>po,Qg=t=>{go=mo(t)},tp=()=>go,ep=Object.freeze(Object.defineProperty({__proto__:null,clear:Xg,getAccDescription:Jg,getAccTitle:Kg,getDiagramTitle:tp,setAccDescription:Zg,setAccTitle:Vg,setDiagramTitle:Qg},Symbol.toStringTag,{value:"Module"})),ip=D,rp=ao,yo=Nt,QC=ta,t_=Oe,op=t=>ai(t,yo()),np=Yg,sp=()=>ep,ji={},Yi=(t,e,i)=>{var r;if(ji[t])throw new Error(`Diagram ${t} already registered.`);ji[t]=e,i&&Gs(t,i),Ug(t,e.styles),(r=e.injectUtils)==null||r.call(e,ip,rp,yo,op,np,sp(),()=>{})},Co=t=>{if(t in ji)return ji[t];throw new ap(t)};
70class ap extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const lp=t=>{var e;const{securityLevel:i}=yo();let r=kt("body");if(i==="sandbox"){const n=((e=kt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=kt(n.body)}return r.select(`#${t}`)},cp=(t,e,i)=>{D.debug(`rendering svg for syntax error 71`);const r=lp(e),o=r.append("g");r.attr("viewBox","0 0 2412 512"),ba(r,100,512,!0),o.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"),o.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"),o.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"),o.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.
71164-16,16v32c0,8.836 7.156,16 16,16z"),o.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"),o.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"),o.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"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},xa={draw:cp},hp=xa,up={db:{},renderer:xa,parser:{parser:{yy:{}},parse:()=>{}}},dp=up,Ta="flowchart-elk",fp=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},gp=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-DWhJey7o.js");return{diagram:e}},__vite__mapDeps([48,14,1,20,21,22,23,24,6,49,3,4,5,7,8,9,10,11,12]));return{id:Ta,diagram:t}},pp={id:Ta,detector:fp,loader:gp},mp=pp,Sa="timeline",yp=t=>/^\s*timeline/.test(t),Cp=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-B5cR-QP5.js");return{diagram:e}},__vite__mapDeps([50,1,3,4,5,6,7,8,9,10,11,12,35,24]));return{id:Sa,diagram:t}},_p={id:Sa,detector:yp,loader:Cp},bp=_p,ka="mindmap",xp=t=>/^\s*mindmap/.test(t),Tp=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-ayvL0yhy.js");return{diagram:e}},__vite__mapDeps([51,6,1,21,3,4,5,7,8,9,10,11,12]));return{id:ka,diagram:t}},Sp={id:ka,detector:xp,loader:Tp},kp=Sp,va="sankey",vp=t=>/^\s*sankey-beta/.test(t),Ap=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-CQsejjxn.js");return{diagram:e}},__vite__mapDeps([52,1,8,6,4,5,7,9,3,10,11,12,36,32,53]));return{id:va,diagram:t}},wp={id:va,detector:vp,loader:Ap},Bp=wp,Aa="block",Lp=t=>/^\s*block-beta/.test(t),Ep=async()=>{const{diagram:t}=await Z(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-uHppHnqO.js");return{diagram:e}},__vite__mapDeps([54,19,15,20,1,21,22,23,24,3,4,5,6,7,8,9,10,11,12,25,36,32,53]));return{id:Aa,diagram:t}},Fp={id:Aa,detector:Lp,loader:Ep},Op=Fp;let Pn=!1;const _o=()=>{Pn||(Pn=!0,Yi("error",dp,t=>t.toLowerCase().trim()==="error"),Yi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},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},t=>t.toLowerCase().trimStart().startsWith("---")),Us(If,Lg,vg,Hf,Qf,ig,ng,yg,xg,mp,zf,Pf,kp,bp,Vf,Pg,Ig,zg,cg,Bp,fg,Op))};class wa{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=Tf(e),this.text+=` 72`;const r=Nt();try{this.type=cr(e,r)}catch(s){this.type="error",this.detectError=s}const o=Co(this.type);D.debug("Type "+this.type),this.db=o.db,this.renderer=o.renderer,this.parser=o.parser,this.parser.parser.yy=this.db,this.init=o.init,this.parse()}parse(){var e,i,r,o,s;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const n=Nt();(r=this.init)==null||r.call(this,n),this.metadata.title&&((s=(o=this.db).setDiagramTitle)==null||s.call(o,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Ip=async(t,e={})=>{const i=cr(t,Nt());try{Co(i)}catch{const o=Vd(i);if(!o)throw new Hs(`Diagram ${i} not found.`);const{id:s,diagram:n}=await o();Yi(s,n)}return new wa(t,e)};let Nn=[];const Mp=()=>{Nn.forEach(t=>{t()}),Nn=[]},Dp="graphics-document document";function $p(t,e){t.attr("role",Dp),e!==""&&t.attr("aria-roledescription",e)}
vendor: 18,993 bytes, lines 72-81
72function Pp(t,e,i,r){if(t.insert!==void 0){if(i){const o=`chart-desc-${r}`;t.attr("aria-describedby",o),t.insert("desc",":first-child").attr("id",o).text(i)}if(e){const o=`chart-title-${r}`;t.attr("aria-labelledby",o),t.insert("title",":first-child").attr("id",o).text(e)}}}const Np=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Ba(t){return typeof t>"u"||t===null}function Rp(t){return typeof t=="object"&&t!==null}function qp(t){return Array.isArray(t)?t:Ba(t)?[]:[t]}function zp(t,e){var i,r,o,s;if(e)for(s=Object.keys(e),i=0,r=s.length;i<r;i+=1)o=s[i],t[o]=e[o];return t}function Wp(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function jp(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Yp=Ba,Hp=Rp,Up=qp,Gp=Wp,Xp=jp,Vp=zp,ft={isNothing:Yp,isObject:Hp,toArray:Up,repeat:Gp,isNegativeZero:Xp,extend:Vp};function La(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=` 73 74`+t.mark.snippet),r+" "+i):r}function li(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=La(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}li.prototype=Object.create(Error.prototype);li.prototype.constructor=li;li.prototype.toString=function(e){return this.name+": "+La(this,e)};var Ht=li;function Lr(t,e,i,r,o){var s="",n="",a=Math.floor(o/2)-1;return r-e>a&&(s=" ... ",e=r-a+s.length),i-r>a&&(n=" ...",i=r+a-n.length),{str:s+t.slice(e,i).replace(/\t/g,"â")+n,pos:r-e+s.length}}function Er(t,e){return ft.repeat(" ",e-t.length)+t}function Kp(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],o=[],s,n=-1;s=i.exec(t.buffer);)o.push(s.index),r.push(s.index+s[0].length),t.position<=s.index&&n<0&&(n=r.length-2);n<0&&(n=r.length-1);var a="",l,h,d=Math.min(t.line+e.linesAfter,o.length).toString().length,f=e.maxLength-(e.indent+d+3);for(l=1;l<=e.linesBefore&&!(n-l<0);l++)h=Lr(t.buffer,r[n-l],o[n-l],t.position-(r[n]-r[n-l]),f),a=ft.repeat(" ",e.indent)+Er((t.line-l+1).toString(),d)+" | "+h.str+` 75`+a;for(h=Lr(t.buffer,r[n],o[n],t.position,f),a+=ft.repeat(" ",e.indent)+Er((t.line+1).toString(),d)+" | "+h.str+` 76`,a+=ft.repeat("-",e.indent+d+3+h.pos)+`^ 77`,l=1;l<=e.linesAfter&&!(n+l>=o.length);l++)h=Lr(t.buffer,r[n+l],o[n+l],t.position-(r[n]-r[n+l]),f),a+=ft.repeat(" ",e.indent)+Er((t.line+l+1).toString(),d)+" | "+h.str+` 78`;return a.replace(/\n$/,"")}var Zp=Kp,Jp=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Qp=["scalar","sequence","mapping"];function tm(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function em(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(Jp.indexOf(i)===-1)throw new Ht('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=tm(e.styleAliases||null),Qp.indexOf(this.kind)===-1)throw new Ht('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ht=em;function Rn(t,e){var i=[];return t[e].forEach(function(r){var o=i.length;i.forEach(function(s,n){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(o=n)}),i[o]=r}),i}function im(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(o){o.multi?(t.multi[o.kind].push(o),t.multi.fallback.push(o)):t[o.kind][o.tag]=t.fallback[o.tag]=o}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function Gr(t){return this.extend(t)}Gr.prototype.extend=function(e){var i=[],r=[];if(e instanceof ht)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Ht("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(s){if(!(s instanceof ht))throw new Ht("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ht("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Ht("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof ht))throw new Ht("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(Gr.prototype);return o.implicit=(this.implicit||[]).concat(i),o.explicit=(this.explicit||[]).concat(r),o.compiledImplicit=Rn(o,"implicit"),o.compiledExplicit=Rn(o,"explicit"),o.compiledTypeMap=im(o.compiledImplicit,o.compiledExplicit),o};var rm=Gr,om=new ht("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),nm=new ht("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),sm=new ht("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),am=new rm({explicit:[om,nm,sm]});function lm(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function cm(){return null}function hm(t){return t===null}var um=new ht("tag:yaml.org,2002:null",{kind:"scalar",resolve:lm,construct:cm,predicate:hm,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function dm(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function fm(t){return t==="true"||t==="True"||t==="TRUE"}function gm(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var pm=new ht("tag:yaml.org,2002:bool",{kind:"scalar",resolve:dm,construct:fm,predicate:gm,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function mm(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function ym(t){return 48<=t&&t<=55}function Cm(t){return 48<=t&&t<=57}function _m(t){if(t===null)return!1;var e=t.length,i=0,r=!1,o;if(!e)return!1;if(o=t[i],(o==="-"||o==="+")&&(o=t[++i]),o==="0"){if(i+1===e)return!0;if(o=t[++i],o==="b"){for(i++;i<e;i++)if(o=t[i],o!=="_"){if(o!=="0"&&o!=="1")return!1;r=!0}return r&&o!=="_"}if(o==="x"){for(i++;i<e;i++)if(o=t[i],o!=="_"){if(!mm(t.charCodeAt(i)))return!1;r=!0}return r&&o!=="_"}if(o==="o"){for(i++;i<e;i++)if(o=t[i],o!=="_"){if(!ym(t.charCodeAt(i)))return!1;r=!0}return r&&o!=="_"}}if(o==="_")return!1;for(;i<e;i++)if(o=t[i],o!=="_"){if(!Cm(t.charCodeAt(i)))return!1;r=!0}return!(!r||o==="_")}function bm(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function xm(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ft.isNegativeZero(t)}var Tm=new ht("tag:yaml.org,2002:int",{kind:"scalar",resolve:_m,construct:bm,predicate:xm,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Sm=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function km(t){return!(t===null||!Sm.test(t)||t[t.length-1]==="_")}function vm(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var Am=/^[-+]?[0-9]+e/;function wm(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ft.isNegativeZero(t))return"-0.0";return i=t.toString(10),Am.test(i)?i.replace("e",".e"):i}function Bm(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ft.isNegativeZero(t))}var Lm=new ht("tag:yaml.org,2002:float",{kind:"scalar",resolve:km,construct:vm,predicate:Bm,represent:wm,defaultStyle:"lowercase"}),Ea=am.extend({implicit:[um,pm,Tm,Lm]}),Em=Ea,Fa=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Oa=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Fm(t){return t===null?!1:Fa.exec(t)!==null||Oa.exec(t)!==null}function Om(t){var e,i,r,o,s,n,a,l=0,h=null,d,f,c;if(e=Fa.exec(t),e===null&&(e=Oa.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(i,r,o));if(s=+e[4],n=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(d=+e[10],f=+(e[11]||0),h=(d*60+f)*6e4,e[9]==="-"&&(h=-h)),c=new Date(Date.UTC(i,r,o,s,n,a,l)),h&&c.setTime(c.getTime()-h),c}function Im(t){return t.toISOString()}var Mm=new ht("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Fm,construct:Om,instanceOf:Date,represent:Im});function Dm(t){return t==="<<"||t===null}var $m=new ht("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Dm}),bo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 79\r`;function Pm(t){if(t===null)return!1;var e,i,r=0,o=t.length,s=bo;for(i=0;i<o;i++)if(e=s.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function Nm(t){var e,i,r=t.replace(/[\r\n=]/g,""),o=r.length,s=bo,n=0,a=[];for(e=0;e<o;e++)e%4===0&&e&&(a.push(n>>16&255),a.push(n>>8&255),a.push(n&255)),n=n<<6|s.indexOf(r.charAt(e));return i=o%4*6,i===0?(a.push(n>>16&255),a.push(n>>8&255),a.push(n&255)):i===18?(a.push(n>>10&255),a.push(n>>2&255)):i===12&&a.push(n>>4&255),new Uint8Array(a)}function Rm(t){var e="",i=0,r,o,s=t.length,n=bo;for(r=0;r<s;r++)r%3===0&&r&&(e+=n[i>>18&63],e+=n[i>>12&63],e+=n[i>>6&63],e+=n[i&63]),i=(i<<8)+t[r];return o=s%3,o===0?(e+=n[i>>18&63],e+=n[i>>12&63],e+=n[i>>6&63],e+=n[i&63]):o===2?(e+=n[i>>10&63],e+=n[i>>4&63],e+=n[i<<2&63],e+=n[64]):o===1&&(e+=n[i>>2&63],e+=n[i<<4&63],e+=n[64],e+=n[64]),e}function qm(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var zm=new ht("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Pm,construct:Nm,predicate:qm,represent:Rm}),Wm=Object.prototype.hasOwnProperty,jm=Object.prototype.toString;function Ym(t){if(t===null)return!0;var e=[],i,r,o,s,n,a=t;for(i=0,r=a.length;i<r;i+=1){if(o=a[i],n=!1,jm.call(o)!=="[object Object]")return!1;for(s in o)if(Wm.call(o,s))if(!n)n=!0;else return!1;if(!n)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function Hm(t){return t!==null?t:[]}var Um=new ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ym,construct:Hm}),Gm=Object.prototype.toString;function Xm(t){if(t===null)return!0;var e,i,r,o,s,n=t;for(s=new Array(n.length),e=0,i=n.length;e<i;e+=1){if(r=n[e],Gm.call(r)!=="[object Object]"||(o=Object.keys(r),o.length!==1))return!1;s[e]=[o[0],r[o[0]]]}return!0}function Vm(t){if(t===null)return[];var e,i,r,o,s,n=t;for(s=new Array(n.length),e=0,i=n.length;e<i;e+=1)r=n[e],o=Object.keys(r),s[e]=[o[0],r[o[0]]];return s}var Km=new ht("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Xm,construct:Vm}),Zm=Object.prototype.hasOwnProperty;function Jm(t){if(t===null)return!0;var e,i=t;for(e in i)if(Zm.call(i,e)&&i[e]!==null)return!1;return!0}function Qm(t){return t!==null?t:{}}var ty=new ht("tag:yaml.org,2002:set",{kind:"mapping",resolve:Jm,construct:Qm}),ey=Em.extend({implicit:[Mm,$m],explicit:[zm,Um,Km,ty]}),re=Object.prototype.hasOwnProperty,Hi=1,Ia=2,Ma=3,Ui=4,Fr=1,iy=2,qn=3,ry=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oy=/[\x85\u2028\u2029]/,ny=/[,\[\]\{\}]/,Da=/^(?:!|!!|![a-z\-]+!)$/i,$a=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function zn(t){return Object.prototype.toString.call(t)}function $t(t){return t===10||t===13}function he(t){return t===9||t===32}function Ct(t){return t===9||t===32||t===10||t===13}function Se(t){return t===44||t===91||t===93||t===123||t===125}function sy(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function ay(t){return t===120?2:t===117?4:t===85?8:0}function ly(t){return 48<=t&&t<=57?t-48:-1}function Wn(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?` 80`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"Â ":t===95?"Â ":t===76?"\u2028":t===80?"\u2029":""}function cy(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Pa=new Array(256),Na=new Array(256);for(var xe=0;xe<256;xe++)Pa[xe]=Wn(xe)?1:0,Na[xe]=Wn(xe);function hy(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ey,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ra(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=Zp(i),new Ht(e,i)}function O(t,e){throw Ra(t,e)}function Gi(t,e){t.onWarning&&t.onWarning.call(null,Ra(t,e))}var jn={YAML:function(e,i,r){var o,s,n;e.version!==null&&O(e,"duplication of %YAML directive"),r.length!==1&&O(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),o===null&&O(e,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),n=parseInt(o[2],10),s!==1&&O(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=n<2,n!==1&&n!==2&&Gi(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var o,s;r.length!==2&&O(e,"TAG directive accepts exactly two arguments"),o=r[0],s=r[1],Da.test(o)||O(e,"ill-formed tag handle (first argument) of the TAG directive"),re.call(e.tagMap,o)&&O(e,'there is a previously declared suffix for "'+o+'" tag handle'),$a.test(s)||O(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{O(e,"tag prefix is malformed: "+s)}e.tagMap[o]=s}};function ee(t,e,i,r){var o,s,n,a;if(e<i){if(a=t.input.slice(e,i),r)for(o=0,s=a.length;o<s;o+=1)n=a.charCodeAt(o),n===9||32<=n&&n<=1114111||O(t,"expected valid JSON character");else ry.test(a)&&O(t,"the stream contains non-printable characters");t.result+=a}}function Yn(t,e,i,r){var o,s,n,a;for(ft.isObject(i)||O(t,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(i),n=0,a=o.length;n<a;n+=1)s=o[n],re.call(e,s)||(e[s]=i[s],r[s]=!0)}function ke(t,e,i,r,o,s,n,a,l){var h,d;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),h=0,d=o.length;h<d;h+=1)Array.isArray(o[h])&&O(t,"nested arrays are not supported inside keys"),typeof o=="object"&&zn(o[h])==="[object Object]"&&(o[h]="[object Object]");if(typeof o=="object"&&zn(o)==="[object Object]"&&(o="[object Object]"),o=String(o),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(h=0,d=s.length;h<d;h+=1)Yn(t,e,s[h],i);else Yn(t,e,s,i);else!t.json&&!re.call(i,o)&&re.call(e,o)&&(t.line=n||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,O(t,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(e,o,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[o]=s,delete i[o];return e}function xo(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):O(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Q(t,e,i){for(var r=0,o=t.input.charCodeAt(t.position);o!==0;){for(;he(o);)o===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),o=t.input.charCodeAt(++t.position);if(e&&o===35)do o=t.input.charCodeAt(++t.position);while(o!==10&&o!==13&&o!==0);if($t(o))for(xo(t),o=t.input.charCodeAt(t.position),r++,t.lineIndent=0;o===32;)t.lineIndent++,o=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&Gi(t,"deficient indentation"),r}function ur(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||Ct(i)))}function To(t,e){e===1?t.result+=" ":e>1&&(t.result+=ft.repeat(` 81`,e-1))}function uy(t,e,i){var r,o,s,n,a,l,h,d,f=t.kind,c=t.result,g;if(g=t.input.charCodeAt(t.position),Ct(g)||Se(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(o=t.input.charCodeAt(t.position+1),Ct(o)||i&&Se(o)))return!1;for(t.kind="scalar",t.result="",s=n=t.position,a=!1;g!==0;){if(g===58){if(o=t.input.charCodeAt(t.position+1),Ct(o)||i&&Se(o))break}else if(g===35){if(r=t.input.charCodeAt(t.position-1),Ct(r))break}else{if(t.position===t.lineStart&&ur(t)||i&&Se(g))break;if($t(g))if(l=t.line,h=t.lineStart,d=t.lineIndent,Q(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=n,t.line=l,t.lineStart=h,t.lineIndent=d;break}}a&&(ee(t,s,n,!1),To(t,t.line-l),s=n=t.position,a=!1),he(g)||(n=t.position+1),g=t.input.charCodeAt(++t.position)}return ee(t,s,n,!1),t.result?!0:(t.kind=f,t.result=c,!1)}function dy(t,e){var i,r,o;
vendor: 6,264 bytes, lines 81-87
81if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=o=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(ee(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,o=t.position;else return!0;else $t(i)?(ee(t,r,o,!0),To(t,Q(t,!1,e)),r=o=t.position):t.position===t.lineStart&&ur(t)?O(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);O(t,"unexpected end of the stream within a single quoted scalar")}function fy(t,e){var i,r,o,s,n,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return ee(t,i,t.position,!0),t.position++,!0;if(a===92){if(ee(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),$t(a))Q(t,!1,e);else if(a<256&&Pa[a])t.result+=Na[a],t.position++;else if((n=ay(a))>0){for(o=n,s=0;o>0;o--)a=t.input.charCodeAt(++t.position),(n=sy(a))>=0?s=(s<<4)+n:O(t,"expected hexadecimal character");t.result+=cy(s),t.position++}else O(t,"unknown escape sequence");i=r=t.position}else $t(a)?(ee(t,i,r,!0),To(t,Q(t,!1,e)),i=r=t.position):t.position===t.lineStart&&ur(t)?O(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}O(t,"unexpected end of the stream within a double quoted scalar")}function gy(t,e){var i=!0,r,o,s,n=t.tag,a,l=t.anchor,h,d,f,c,g,m=Object.create(null),_,b,I,x;if(x=t.input.charCodeAt(t.position),x===91)d=93,g=!1,a=[];else if(x===123)d=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),x=t.input.charCodeAt(++t.position);x!==0;){if(Q(t,!0,e),x=t.input.charCodeAt(t.position),x===d)return t.position++,t.tag=n,t.anchor=l,t.kind=g?"mapping":"sequence",t.result=a,!0;i?x===44&&O(t,"expected the node content, but found ','"):O(t,"missed comma between flow collection entries"),b=_=I=null,f=c=!1,x===63&&(h=t.input.charCodeAt(t.position+1),Ct(h)&&(f=c=!0,t.position++,Q(t,!0,e))),r=t.line,o=t.lineStart,s=t.position,Me(t,e,Hi,!1,!0),b=t.tag,_=t.result,Q(t,!0,e),x=t.input.charCodeAt(t.position),(c||t.line===r)&&x===58&&(f=!0,x=t.input.charCodeAt(++t.position),Q(t,!0,e),Me(t,e,Hi,!1,!0),I=t.result),g?ke(t,a,m,b,_,I,r,o,s):f?a.push(ke(t,null,m,b,_,I,r,o,s)):a.push(_),Q(t,!0,e),x=t.input.charCodeAt(t.position),x===44?(i=!0,x=t.input.charCodeAt(++t.position)):i=!1}O(t,"unexpected end of the stream within a flow collection")}function py(t,e){var i,r,o=Fr,s=!1,n=!1,a=e,l=0,h=!1,d,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Fr===o?o=f===43?qn:iy:O(t,"repeat of a chomping mode identifier");else if((d=ly(f))>=0)d===0?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):n?O(t,"repeat of an indentation width identifier"):(a=e+d-1,n=!0);else break;if(he(f)){do f=t.input.charCodeAt(++t.position);while(he(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!$t(f)&&f!==0)}for(;f!==0;){for(xo(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!n||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!n&&t.lineIndent>a&&(a=t.lineIndent),$t(f)){l++;continue}if(t.lineIndent<a){o===qn?t.result+=ft.repeat(` 82`,s?1+l:l):o===Fr&&s&&(t.result+=` 83`);break}for(r?he(f)?(h=!0,t.result+=ft.repeat(` 84`,s?1+l:l)):h?(h=!1,t.result+=ft.repeat(` 85`,l+1)):l===0?s&&(t.result+=" "):t.result+=ft.repeat(` 86`,l):t.result+=ft.repeat(` 87`,s?1+l:l),s=!0,n=!0,l=0,i=t.position;!$t(f)&&f!==0;)f=t.input.charCodeAt(++t.position);ee(t,i,t.position,!1)}return!0}function Hn(t,e){var i,r=t.tag,o=t.anchor,s=[],n,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),!(l!==45||(n=t.input.charCodeAt(t.position+1),!Ct(n))));){if(a=!0,t.position++,Q(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Me(t,e,Ma,!1,!0),s.push(t.result),Q(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)O(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=o,t.kind="sequence",t.result=s,!0):!1}function my(t,e,i){var r,o,s,n,a,l,h=t.tag,d=t.anchor,f={},c=Object.create(null),g=null,m=null,_=null,b=!1,I=!1,x;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),x=t.input.charCodeAt(t.position);x!==0;){if(!b&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),s=t.line,(x===63||x===58)&&Ct(r))x===63?(b&&(ke(t,f,c,g,m,null,n,a,l),g=m=_=null),I=!0,b=!0,o=!0):b?(b=!1,o=!0):O(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,x=r;else{if(n=t.line,a=t.lineStart,l=t.position,!Me(t,i,Ia,!1,!0))break;if(t.line===s){for(x=t.input.charCodeAt(t.position);he(x);)x=t.input.charCodeAt(++t.position);if(x===58)x=t.input.charCodeAt(++t.position),Ct(x)||O(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(ke(t,f,c,g,m,null,n,a,l),g=m=_=null),I=!0,b=!1,o=!1,g=t.tag,m=t.result;else if(I)O(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=h,t.anchor=d,!0}else if(I)O(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=h,t.anchor=d,!0}if((t.line===s||t.lineIndent>e)&&(b&&(n=t.line,a=t.lineStart,l=t.position),Me(t,e,Ui,!0,o)&&(b?m=t.result:_=t.result),b||(ke(t,f,c,g,m,_,n,a,l),g=m=_=null),Q(t,!0,-1),x=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&x!==0)O(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return b&&ke(t,f,c,g,m,null,n,a,l),I&&(t.tag=h,t.anchor=d,t.kind="mapping",t.result=f),I}function yy(t){var e,i=!1,r=!1,o,s,n;if(n=t.input.charCodeAt(t.position),n!==33)return!1;if(t.tag!==null&&O(t,"duplication of a tag property"),n=t.input.charCodeAt(++t.position),n===60?(i=!0,n=t.input.charCodeAt(++t.position)):n===33?(r=!0,o="!!",n=t.
vendor: 5,889 bytes, lines 87-89
87input.charCodeAt(++t.position)):o="!",e=t.position,i){do n=t.input.charCodeAt(++t.position);while(n!==0&&n!==62);t.position<t.length?(s=t.input.slice(e,t.position),n=t.input.charCodeAt(++t.position)):O(t,"unexpected end of the stream within a verbatim tag")}else{for(;n!==0&&!Ct(n);)n===33&&(r?O(t,"tag suffix cannot contain exclamation marks"):(o=t.input.slice(e-1,t.position+1),Da.test(o)||O(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),n=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),ny.test(s)&&O(t,"tag suffix cannot contain flow indicator characters")}s&&!$a.test(s)&&O(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{O(t,"tag name is malformed: "+s)}return i?t.tag=s:re.call(t.tagMap,o)?t.tag=t.tagMap[o]+s:o==="!"?t.tag="!"+s:o==="!!"?t.tag="tag:yaml.org,2002:"+s:O(t,'undeclared tag handle "'+o+'"'),!0}function Cy(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&O(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ct(i)&&!Se(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function _y(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ct(r)&&!Se(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),re.call(t.anchorMap,i)||O(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],Q(t,!0,-1),!0}function Me(t,e,i,r,o){var s,n,a,l=1,h=!1,d=!1,f,c,g,m,_,b;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=n=a=Ui===i||Ma===i,r&&Q(t,!0,-1)&&(h=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;yy(t)||Cy(t);)Q(t,!0,-1)?(h=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=h||o),(l===1||Ui===i)&&(Hi===i||Ia===i?_=e:_=e+1,b=t.position-t.lineStart,l===1?a&&(Hn(t,b)||my(t,b,_))||gy(t,_)?d=!0:(n&&py(t,_)||dy(t,_)||fy(t,_)?d=!0:_y(t)?(d=!0,(t.tag!==null||t.anchor!==null)&&O(t,"alias node should not have any properties")):uy(t,_,Hi===i)&&(d=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(d=a&&Hn(t,b))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,c=t.implicitTypes.length;f<c;f+=1)if(m=t.implicitTypes[f],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(re.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,g=t.typeMap.multi[t.kind||"fallback"],f=0,c=g.length;f<c;f+=1)if(t.tag.slice(0,g[f].tag.length)===g[f].tag){m=g[f];break}m||O(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):O(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||d}function by(t){var e=t.position,i,r,o,s=!1,n;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(n=t.input.charCodeAt(t.position))!==0&&(Q(t,!0,-1),n=t.input.charCodeAt(t.position),!(t.lineIndent>0||n!==37));){for(s=!0,n=t.input.charCodeAt(++t.position),i=t.position;n!==0&&!Ct(n);)n=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),o=[],r.length<1&&O(t,"directive name must not be less than one character in length");n!==0;){for(;he(n);)n=t.input.charCodeAt(++t.position);if(n===35){do n=t.input.charCodeAt(++t.position);while(n!==0&&!$t(n));break}if($t(n))break;for(i=t.position;n!==0&&!Ct(n);)n=t.input.charCodeAt(++t.position);o.push(t.input.slice(i,t.position))}n!==0&&xo(t),re.call(jn,r)?jn[r](t,r,o):Gi(t,'unknown document directive "'+r+'"')}if(Q(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Q(t,!0,-1)):s&&O(t,"directives end mark is expected"),Me(t,t.lineIndent-1,Ui,!1,!0),Q(t,!0,-1),t.checkLineBreaks&&oy.test(t.input.slice(e,t.position))&&Gi(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ur(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Q(t,!0,-1));return}if(t.position<t.length-1)O(t,"end of the stream or a document separator is expected");else return}function xy(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=` 88`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new hy(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,O(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;)by(i);return i.documents}function Ty(t,e){var i=xy(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Ht("expected a single document in the stream, but found more")}}var Sy=Ty,ky={load:Sy},vy=Ea,Ay=ky.load;function wy(t){const e=t.match(Ys);if(!e)return{text:t,metadata:{}};let i=Ay(e[1],{schema:vy})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const By=t=>t.replace(/\r\n?/g,` 89`).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>
89"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),Ly=t=>{const{text:e,metadata:i}=wy(t),{displayMode:r,title:o,config:s={}}=i;return r&&(s.gantt||(s.gantt={}),s.gantt.displayMode=r),{title:o,config:s,text:e}},Ey=t=>{const e=ii.detectInit(t)??{},i=ii.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:tf(t),directive:e}};function qa(t){const e=By(t),i=Ly(e),r=Ey(i.text),o=Zs(i.config,r.directive);return t=Np(r.text),{code:t,title:i.title,config:o}}const Fy=5e4,Oy="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Iy="sandbox",My="loose",Dy="http://www.w3.org/2000/svg",$y="http://www.w3.org/1999/xlink",Py="http://www.w3.org/1999/xhtml",Ny="100%",Ry="100%",qy="border:0;margin:0;",zy="margin:0",Wy="allow-top-navigation-by-user-activation allow-popups",jy='The "iframe" tag is not supported by your browser.',Yy=["foreignobject"],Hy=["dominant-baseline"];function za(t){const e=qa(t);return Wi(),wf(e.config??{}),e}async function Uy(t,e){_o(),t=za(t).code;try{await So(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const Un=(t,e,i=[])=>` 90.${t} ${e} { ${i.join(" !important; ")} !important; }`,Gy=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=` 91${t.themeCSS}`),t.fontFamily!==void 0&&(r+=` 92:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=` 93:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Br(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const h=e[l];Br(h.styles)||a.forEach(d=>{r+=Un(h.id,d,h.styles)}
93),Br(h.textStyles)||(r+=Un(h.id,"tspan",h.textStyles))}}return r},Xy=(t,e,i,r)=>{const o=Gy(t,i),s=Gg(e,o,t.themeVariables);return Rr(nd(`${r}{${s}}`),ad)},Vy=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=Sf(r),r=r.replace(/<br>/g,"<br/>"),r},Ky=(t="",e)=>{var i,r;const o=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":Ry,s=btoa('<body style="'+zy+'">'+t+"</body>");return`<iframe style="width:${Ny};height:${o};${qy}" src="data:text/html;base64,${s}" sandbox="${Wy}"> 94 ${jy} 95</iframe>`},Gn=(t,e,i,r,o)=>{const s=t.append("div");s.attr("id",i),r&&s.attr("style",r);const n=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Dy);return o&&n.attr("xmlns:xlink",o),n.append("g"),t};function Xn(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Zy=(t,e,i,r)=>{var o,s,n;(o=t.getElementById(e))==null||o.remove(),(s=t.getElementById(i))==null||s.remove(),(n=t.getElementById(r))==null||n.remove()},Jy=async function(t,e,i){var r,o,s,n,a,l;_o();const h=za(e);e=h.code;const d=Nt();D.debug(d),e.length>((d==null?void 0:d.maxTextSize)??Fy)&&(e=Oy);const f="#"+t,c="i"+t,g="#"+c,m="d"+t,_="#"+m;let b=kt("body");const I=d.securityLevel===Iy,x=d.securityLevel===My,q=d.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),I){const M=Xn(kt(i),c);b=kt(M.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=kt(i);Gn(b,t,m,`font-family: ${q}`,$y)}else{if(Zy(document,t,m,c),I){const M=Xn(kt("body"),c);b=kt(M.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=kt("body");Gn(b,t,m)}let y,v;try{y=await So(e,{title:h.title})}catch(M){y=new wa("error"),v=M}const U=b.select(_).node(),$=y.type,tt=U.firstChild,ot=tt.firstChild,j=(o=(r=y.renderer).getClasses)==null?void 0:o.call(r,e,y),B=Xy(d,$,j,f),et=document.createElement("style");et.innerHTML=B,tt.insertBefore(et,ot);try{await y.renderer.draw(e,t,Dn,y)}catch(M){throw hp.draw(e,t,Dn),M}const Vt=b.select(`${_} svg`),N=(n=(s=y.db).getAccTitle)==null?void 0:n.call(s),A=(l=(a=y.db).getAccDescription)==null?void 0:l.call(a);tC($,Vt,N,A),b.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Py);let T=b.select(_).node().innerHTML;if(D.debug("config.arrowMarkerAbsolute",d.arrowMarkerAbsolute),T=Vy(T,I,zs(d.arrowMarkerAbsolute)),I){const M=b.select(_+" svg").node();T=Ky(T,M)}else x||(T=Be.sanitize(T,{ADD_TAGS:Yy,ADD_ATTR:Hy}));if(Mp(),v)throw v;const k=kt(I?g:_).node();return k&&"remove"in k&&k.remove(),{svg:T,bindFunctions:y.db.bindFunctions}};function Qy(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),vf(t),t!=null&&t.theme&&t.theme in Gt?t.themeVariables=Gt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Gt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?kf(t):Qs();ao(i.logLevel),_o()}const So=(t,e={})=>{const{code:i}=qa(t);return Ip(i,e)};function tC(t,e,i,r){$p(e,t),Pp(e,i,r,e.attr("id"))}const de=Object.freeze({render:Jy,parse:Uy,getDiagramFromText:So,initialize:Qy,getConfig:Nt,setConfig:ta,getSiteConfig:Qs,updateSiteConfig:Af,reset:()=>{Wi()},globalReset:()=>{Wi(Oe)},defaultConfig:Oe});ao(Nt().logLevel);Wi(Nt());const eC=async()=>{D.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Fe).map(async([i,{detector:r,loader:o}])=>{if(o)try{Co(i)}catch{try{const{diagram:n,id:a}=await o();Yi(a,n,r)}catch(n){throw D.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Fe[i],n}}}))).filter(i=>i.status==="rejected");if(e.length>0){D.error(`Failed to load ${e.length} external diagrams`);for(const i of e)D.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},iC=(t,e,i)=>{D.warn(t),Ks(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Wa=async function(t={querySelector:".mermaid"}){try{await rC(t)}catch(e){if(Ks(e)&&D.error(e.str),_t.parseError&&_t.parseError(e),!t.suppressErrors)throw D.error("Use the suppressErrors option to suppress these errors"),e}},rC=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=de.getConfig();D.debug(`${t?"":"No "}Callback function found`);let o;if(i)o=i;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");D.debug(`Found ${o.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(D.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),de.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}
95));const s=new ii.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let n;const a=[];for(const l of Array.from(o)){D.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const h=`mermaid-${s.next()}`;n=l.innerHTML,n=bl(ii.entityDecode(n)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=ii.detectInit(n);d&&D.debug("Detected early reinit: ",d);try{const{svg:f,bindFunctions:c}=await Ua(h,n,l);l.innerHTML=f,t&&await t(h),c&&c(l)}catch(f){iC(f,a,_t.parseError)}}if(a.length>0)throw a[0]},ja=function(t){de.initialize(t)},oC=async function(t,e,i){D.warn("mermaid.init is deprecated. Please use run instead."),t&&ja(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Wa(r)},nC=async(t,{lazyLoad:e=!0}={})=>{Us(...t),e===!1&&await eC()},Ya=function(){if(_t.startOnLoad){const{startOnLoad:t}=de.getConfig();t&&_t.run().catch(e=>D.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*! 96 * Wait for document loaded before starting the execution 97 */window.addEventListener("load",Ya,!1)}const sC=function(t){_t.parseError=t},Xi=[];let Or=!1;const Ha=async()=>{if(!Or){for(Or=!0;Xi.length>0;){const t=Xi.shift();if(t)try{await t()}catch(e){D.error("Error executing queue",e)}}Or=!1}},aC=async(t,e)=>new Promise((i,r)=>{const o=()=>new Promise((s,n)=>{de.parse(t,e).then(a=>{s(a),i(a)},a=>{var l;D.error("Error parsing",a),(l=_t.parseError)==null||l.call(_t,a),n(a),r(a)})});Xi.push(o),Ha().catch(r)}),Ua=(t,e,i)=>new Promise((r,o)=>{const s=()=>new Promise((n,a)=>{de.render(t,e,i).then(l=>{n(l),r(l)},l=>{var h;D.error("Error parsing",l),(h=_t.parseError)==null||h.call(_t,l),a(l),o(l)})});Xi.push(s),Ha().catch(o)}),_t={startOnLoad:!0,mermaidAPI:de,parse:aC,render:Ua,init:oC,run:Wa,registerExternalDiagrams:nC,initialize:ja,parseError:void 0,contentLoaded:Ya,setParseErrorHandler:sC,detectType:cr},Ne=t=>{t=cC(t);const e=t.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),i=document.createElement("textarea");return i.innerHTML=e,i.value},we=t=>{const e=t.getAttribute("transform"),i=e==null?void 0:e.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let r=0,o=0;return i&&(r=Number(i[1]),o=Number(i[2])),{transformX:r,transformY:o}},lC=t=>{let e=t;return e=e.replace(/style.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/classDef.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/#\w+;/g,i=>{const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?`ï¬Â°Â°${r}¶Ã`:`ï¬Â°${r}¶Ã`}),e},cC=function(t){return t.replace(/ï¬Â°Â°/g,"#").replace(/ï¬Â°/g,"&").replace(/¶Ã/g,";")},Ga=(t,e={x:0,y:0})=>{if(t.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);const i=t.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const r=i.split(/(?=[LM])/),o=r[0].substring(1).split(",").map(a=>parseFloat(a)),s=r[r.length-1].substring(1).split(",").map(a=>parseFloat(a)),n=r.map(a=>{const l=a.substring(1).split(",").map(h=>parseFloat(h));return{x:l[0],y:l[1]}}).filter((a,l,h)=>{if(l===0||l===h.length-1)return!0;if(a.x===h[l-1].x&&a.y===h[l-1].y)return!1;if(l===h.length-2&&(h[l-1].x===a.x||h[l-1].y===a.y)){const d=h[h.length-1];return Math.hypot(d.x-a.x,d.y-a.y)>20}
97return a.x!==h[l-1].x||a.y!==h[l-1].y}).map(a=>({x:a.x+e.x,y:a.y+e.y}));return{startX:o[0]+e.x,startY:o[1]+e.y,endX:s[0]+e.x,endY:s[1]+e.y,reflectionPoints:n}},hC=(t,e)=>{const i=t.nodes.map(a=>a.startsWith("flowchart-")?a.split("-")[1]:a),r=e.querySelector(`[id='${t.id}']`);if(!r)throw new Error("SubGraph element not found");const o=ko(r,e),s=r.getBBox(),n={width:s.width,height:s.height};return t.classes=void 0,t.dir=void 0,{...t,nodeIds:i,...o,...n,text:Ne(t.title)}},uC=(t,e)=>{var f,c,g;const i=e.querySelector(`[id*="flowchart-${t.id}-"]`);if(!i)return;let r;((f=i.parentElement)==null?void 0:f.tagName.toLowerCase())==="a"&&(r=i.parentElement.getAttribute("xlink:href"));const o=ko(r?i.parentElement:i,e),s=i.getBBox(),n={width:s.width,height:s.height},a=(c=i.querySelector(".label-container"))==null?void 0:c.getAttribute("style"),l=(g=i.querySelector(".label"))==null?void 0:g.getAttribute("style"),h={};a==null||a.split(";").forEach(m=>{if(!m)return;const _=m.split(":")[0].trim(),b=m.split(":")[1].trim();h[_]=b});const d={};return l==null||l.split(";").forEach(m=>{if(!m)return;const _=m.split(":")[0].trim(),b=m.split(":")[1].trim();d[_]=b}),{id:t.id,labelType:t.labelType,text:Ne(t.text),type:t.type,link:r||void 0,...o,...n,containerStyle:h,labelStyle:d}},dC=(t,e,i)=>{const r=i.querySelector(`[id*="L-${t.start}-${t.end}-${e}"]`);if(!r)throw new Error("Edge element not found");const o=ko(r,i),s=Ga(r,o);return t.length=void 0,{...t,...s,text:Ne(t.text)}},ko=(t,e)=>{var l;if(!t)throw new Error("Element not found");let i=(l=t.parentElement)==null?void 0:l.parentElement;const r=t.childNodes[0];let o={x:0,y:0};if(r){const{transformX:h,transformY:d}=we(r),f=r.getBBox();o={x:Number(r.getAttribute("x"))||h+f.x||0,y:Number(r.getAttribute("y"))||d+f.y||0}}const{transformX:s,transformY:n}=we(t),a={x:s+o.x,y:n+o.y};for(;i&&i.id!==e.id;){if(i.classList.value==="root"&&i.hasAttribute("transform")){const{transformX:h,transformY:d}=we(i);a.x+=h,a.y+=d}i=i.parentElement}return a},fC=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getVertices();Object.keys(r).forEach(a=>{r[a]=uC(r[a],e)});const o=new Map,s=i.getEdges().filter(a=>e.querySelector(`[id*="L-${a.start}-${a.end}"]`)).map(a=>{const l=`${a.start}-${a.end}`,h=o.get(l)||0;return o.set(l,h+1),dC(a,h,e)});return{type:"flowchart",subGraphs:i.getSubGraphs().map(a=>hC(a,e)),vertices:r,edges:s}},gC=(t,e)=>{const i={};e!=null&&e.label&&(i.label={text:Ne(e.label),fontSize:16});const r=t.tagName;if(r==="line")i.startX=Number(t.getAttribute("x1")),i.startY=Number(t.getAttribute("y1")),i.endX=Number(t.getAttribute("x2")),i.endY=Number(t.getAttribute("y2"));else if(r==="path"){const o=t.getAttribute("d");if(!o)throw new Error('Path element does not contain a "d" attribute');const s=o.split(/(?=[LC])/),n=s[0].substring(1).split(",").map(h=>parseFloat(h)),a=[];s.forEach(h=>{const d=h.substring(1).trim().split(" ").map(f=>{const[c,g]=f.split(",");return[parseFloat(c)-n[0],parseFloat(g)-n[1]]});a.push(...d)});const l=a[a.length-1];i.startX=n[0],i.startY=n[1],i.endX=l[0],i.endY=l[1],i.points=a}return e!=null&&e.label&&(i.startY=i.startY-10,i.endY=i.endY-10),i.strokeColor=t.getAttribute("stroke"),i.strokeWidth=Number(t.getAttribute("stroke-width")),i.type="arrow",i.strokeStyle=(e==null?void 0:e.strokeStyle)||"solid",i.startArrowhead=(e==null?void 0:e.startArrowhead)||null,i.endArrowhead=(e==null?void 0:e.endArrowhead)||null,i}
97,Xa=(t,e,i,r,o)=>{const s={};return s.type="arrow",s.startX=t,s.startY=e,s.endX=i,s.endY=r,Object.assign(s,{...o}),s},Xr=(t,e,i,r)=>({type:"text",x:t,y:e,text:i,width:(r==null?void 0:r.width)||20,height:(r==null?void 0:r.height)||20,fontSize:(r==null?void 0:r.fontSize)||Vi,id:r==null?void 0:r.id,groupId:r==null?void 0:r.groupId,metadata:r==null?void 0:r.metadata}),Va=(t,e,i)=>{const r={},o=Number(t.getAttribute("x")),s=Number(t.getAttribute("y"));r.type="text",r.text=Ne(e),i!=null&&i.id&&(r.id=i.id),i!=null&&i.groupId&&(r.groupId=i.groupId);const n=t.getBBox();r.width=n.width,r.height=n.height,r.x=o-n.width/2,r.y=s;const a=parseInt(getComputedStyle(t).fontSize);return r.fontSize=a,r},Rt=(t,e,i={})=>{const r={};r.type=e;const{label:o,subtype:s,id:n,groupId:a}=i;r.id=n,a&&(r.groupId=a),o&&(r.label={text:Ne(o.text),fontSize:16,verticalAlign:o==null?void 0:o.verticalAlign});const l=t.getBBox();switch(r.x=l.x,r.y=l.y,r.width=l.width,r.height=l.height,r.subtype=s,s){case"highlight":const h=t.getAttribute("fill");h&&(r.bgColor=h);break;case"note":r.strokeStyle="dashed";break}return r},ci=(t,e,i,r,o,s)=>{const n={};return n.startX=e,n.startY=i,n.endX=r,s!=null&&s.groupId&&(n.groupId=s.groupId),s!=null&&s.id&&(n.id=s.id),n.endY=o,n.strokeColor=t.getAttribute("stroke"),n.strokeWidth=Number(t.getAttribute("stroke-width")),n.type="line",n},Vn={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},Mt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},pC=t=>{let e;switch(t){case Mt.SOLID:case Mt.SOLID_CROSS:case Mt.SOLID_OPEN:case Mt.SOLID_POINT:e="solid";break;case Mt.DOTTED:case Mt.DOTTED_CROSS:case Mt.DOTTED_OPEN:case Mt.DOTTED_POINT:e="dotted";break;default:e="solid";break}return e},mC=(t,e)=>{var r,o;if(!!((r=t.nextElementSibling)!=null&&r.classList.contains("sequenceNumber"))){const s=(o=t.nextElementSibling)==null?void 0:o.textContent;if(!s)throw new Error("sequence number not present");const n=30,a=n/2,h={type:"rectangle",x:e.startX-10,y:e.startY-a,label:{text:s,fontSize:14},bgColor:"#e9ecef",height:n,subtype:"sequence"};Object.assign(e,{sequenceNumber:h})}},Kn=(t,e,i)=>{if(!t)throw"root node not found";const r=Ut(),o=Array.from(t.children),s=[];return o.forEach((n,a)=>{const l=`${i==null?void 0:i.id}-${a}`;let h;switch(n.tagName){case"line":const d=Number(n.getAttribute("x1")),f=Number(n.getAttribute("y1")),c=Number(n.getAttribute("x2")),g=Number(n.getAttribute("y2"));h=ci(n,d,f,c,g,{groupId:r,id:l});break;case"text":h=Va(n,e,{groupId:r,id:l});break;case"circle":h=Rt(n,"ellipse",{label:n.textContent?{text:n.textContent}:void 0,groupId:r,id:l});default:h=Rt(n,sl[n.tagName],{label:n.textContent?{text:n.textContent}:void 0,groupId:r,id:l})}s.push(h)}),s},yC=(t,e)=>{const i=Array.from(e.querySelectorAll(".actor-top")),r=Array.from(e.querySelectorAll(".actor-bottom")),o=[],s=[];return Object.values(t).forEach((n,a)=>{var f;const l=i.find(c=>c.getAttribute("name")===n.name),h=r.find(c=>c.getAttribute("name")===n.name);if(!l||!h)throw"root not found";const d=n.description;if(n.type==="participant"){const c=Rt(l,"rectangle",{id:`${n.name}-top`,label:{text:d},subtype:"actor"});if(!c)throw"Top Node element not found!";o.push([c]);const g=Rt(h,"rectangle",{id:`${n.name}-bottom`,label:{text:d},subtype:"actor"});o.push([g]);const m=(f=l==null?void 0:l.parentElement)==null?void 0:f.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const _=Number(m.getAttribute("x1"));if(!c.height)throw"Top node element height is null";const b=c.y+c.height,I=g.y,x=Number(m.getAttribute("x2")),q=ci(m,_,b,x,I);s.push(q)}else if(n.type==="actor"){const c=Kn(l,d,{id:`${n.name}-top`});o.push(c);const g=Kn(h,d,{id:`${n.name}-bottom`});o.push(g);const m=l.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const _=Number(m.getAttribute("x1")),b=Number(m.getAttribute("y1")),I=Number(m.getAttribute("x2")),x=g.find(q=>q.type==="ellipse");if(x){const q=x.y,y=ci(m,_,b,I,q);s.push(y)}}}),{nodes:o,lines:s}},CC=(t,e)=>{const i=[],r=Array.from(e.querySelectorAll('[class*="messageLine"]')),o=Object.keys(Vn),s=t.filter(n=>
97o.includes(n.type.toString()));return r.forEach((n,a)=>{const l=s[a],h=Vn[l.type],d=gC(n,{label:l==null?void 0:l.message,strokeStyle:pC(l.type),endArrowhead:h==="SOLID_OPEN"||h==="DOTTED_OPEN"?null:"arrow"});mC(n,d),i.push(d)}),i},_C=(t,e)=>{const i=Array.from(e.querySelectorAll(".note")).map(s=>s.parentElement),r=t.filter(s=>s.type===Mt.NOTE),o=[];return i.forEach((s,n)=>{if(!s)return;const a=s.firstChild,l=r[n].message,h=Rt(a,"rectangle",{label:{text:l},subtype:"note"});o.push(h)}),o},bC=t=>{const e=Array.from(t.querySelectorAll("[class*=activation]")),i=[];return e.forEach(r=>{const o=Rt(r,"rectangle",{label:{text:""},subtype:"activation"});i.push(o)}),i},xC=(t,e)=>{const i=Array.from(e.querySelectorAll(".loopLine")),r=[],o=[],s=[];i.forEach(d=>{const f=Number(d.getAttribute("x1")),c=Number(d.getAttribute("y1")),g=Number(d.getAttribute("x2")),m=Number(d.getAttribute("y2")),_=ci(d,f,c,g,m);_.strokeStyle="dotted",_.strokeColor="#adb5bd",_.strokeWidth=2,r.push(_)});const n=Array.from(e.querySelectorAll(".loopText")),a=t.filter(d=>d.type===Mt.CRITICAL_START).map(d=>d.message);n.forEach(d=>{var _;const f=d.textContent||"",c=Va(d,f),g=((_=f.match(/\[(.*?)\]/))==null?void 0:_[1])||"";a.includes(g)&&(c.x+=16),o.push(c)});const l=Array.from(e==null?void 0:e.querySelectorAll(".labelBox")),h=Array.from(e==null?void 0:e.querySelectorAll(".labelText"));return l.forEach((d,f)=>{var m;const c=((m=h[f])==null?void 0:m.textContent)||"",g=Rt(d,"rectangle",{label:{text:c}});g.strokeColor="#adb5bd",g.bgColor="#e9ecef",g.width=void 0,s.push(g)}),{lines:r,texts:o,nodes:s}},TC=t=>{const e=Array.from(t.querySelectorAll(".rect")).filter(r=>{var o;return((o=r.parentElement)==null?void 0:o.tagName)!=="g"}),i=[];return e.forEach(r=>{const o=Rt(r,"rectangle",{label:{text:""},subtype:"highlight"});i.push(o)}),i},SC=(t,e)=>{t.parse();const i=t.parser.yy,r=[],o=i.getBoxes(),s=TC(e),n=i.getActors(),{nodes:a,lines:l}=yC(n,e),h=i.getMessages(),d=CC(h,e),f=_C(h,e),c=bC(e),g=xC(h,e);return r.push(s),r.push(...a),r.push(f),r.push(c),{type:"sequence",lines:l,arrows:d,nodes:r,loops:g,groups:o}},ki={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Zn={LINE:0,DOTTED_LINE:1},Jt=16,kC=t=>{let e;switch(t){case Zn.LINE:e="solid";break;case Zn.DOTTED_LINE:e="dotted";break;default:e="solid"}return e},Jn=t=>{let e;switch(t){case ki.AGGREGATION:e="diamond_outline";break;case ki.COMPOSITION:e="diamond";break;case ki.EXTENSION:e="triangle_outline";break;case"none":e=null;break;case ki.DEPENDENCY:default:e="arrow";break}return e},vC=(t,e)=>{const i=[],r=[],o=[];return Object.values(t).forEach(s=>{var _;const{domId:n,id:a}=s,l=Ut(),h=e.querySelector(`[data-id=${a}]`);if(!h)throw Error(`DOM Node with id ${n} not found`);const{transformX:d,transformY:f}=we(h),c=Rt(h.firstChild,"rectangle",{id:a,groupId:l});c.x+=d,c.y+=f,c.metadata={classId:a},i.push(c),Array.from(h.querySelectorAll(".divider")).forEach(b=>{const I=Number(b.getAttribute("x1")),x=Number(b.getAttribute("y1")),q=Number(b.getAttribute("x2")),y=Number(b.getAttribute("y2")),v=ci(b,I,x,q,y,{groupId:l,id:Ut()});v.startX+=d,v.startY+=f,v.endX+=d,v.endY+=f,v.metadata={classId:a},r.push(v)});const m=(_=h.querySelector(".label"))==null?void 0:_.children;if(!m)throw"label nodes not found";Array.from(m).forEach(b=>{const I=b.textContent;if(!I)return;const x=Ut(),{transformX:q,transformY:y}=we(b),v=b.getBBox(),$=Xr(d+q,f+y+10,I,{width:v.width,height:v.height,id:x,groupId:l,metadata:{classId:a}});o.push($)})}),{nodes:i,lines:r,text:o}},AC=(t,e)=>{const i=["triangle_outline","diamond","diamond_outline"],r=e.startArrowhead&&i.includes(e.startArrowhead),o=e.endArrowhead&&i.includes(e.endArrowhead);return!o&&!r||(r&&(t==="LR"?e.startX-=Jt:t==="RL"?e.startX+=Jt:t==="TB"?e.startY-=Jt:t==="BT"&&(e.startY+=Jt)),o&&(t==="LR"?e.endX+=Jt:t==="RL"?e.endX-=Jt:t==="TB"?e.endY+=Jt:t==="BT"&&(e.endY-=Jt))),e},wC=(t,e,i,r)=>{var a;const o=(a=i.querySelector(".edgePaths"))==null?void 0:a.children;if(!o)throw new Error("No Edges found!");const s=[],n=[];return t.forEach((l,h)=>{const{id1:d,id2:f,relation:c}=l,g=e.find(et=>et.id===d),m=e.find(et=>et.id===f),_=kC(c.lineType),b=Jn(c.type1),I=Jn(c.type2),x=Ga(o[h]),q=Xa(x.startX,x.startY,x.endX,x.endY,{strokeStyle:_,startArrowhead:b,endArrowhead:I,label:l.title?{text:l.title}:void 0,start:{type:"rectangle",id:g.id},end:{type:"rectangle",id:m.id}}),y=AC(r,q);s.push(y);const{relationTitle1:v,relationTitle2:U}=l,$=20,tt=15,ot=15;let j,B;if(v&&v!=="none"){switch(r){case"TB":j=y.startX-$,y.endX<y.startX&&(j-=ot),B=y.startY+tt;break;case"BT":j=y.startX+$,y.endX>y.startX&&(j+=ot),B=y.startY-tt;break;case"LR":j=y.startX+$,B=y.startY+tt,y.endY>y.startY&&(B+=ot);break;case"RL":j=y.startX-$,B=y.startY-tt,y.startY>y.endY&&(B-=ot);break;default:j=y.startX-$,B=y.startY+tt}const et=Xr(j,B,v,{fontSize:16});n.push(et)}if(U&&U!=="none"){switch(r){case"TB":j=y.endX+$,y.endX<y.startX&&(j+=ot),B=y.endY-tt;break;case"BT":j=y.endX-$,y.endX>y.startX&&(j-=ot),B=y.endY+tt;break;case"LR":j=y.endX-$,B=y.endY-tt,y.endY>y.startY&&(B-=ot);break;case"RL":j=y.endX+$,B=y.endY+tt,y.startY>y.endY&&(B+=ot);break;default:j=y.endX+$,B=y.endY-tt}const et=Xr(j,B,U,{fontSize:16});n.push(et)}}),{arrows:s,text:n}},BC=(t,e,i)=>{const r=[],o=[];return t.forEach(s=>{const{id:n,text:a,class:l}=s,h=e.querySelector(`#${n}`);
97if(!h)throw new Error(`Node with id ${n} not found!`);const{transformX:d,transformY:f}=we(h),c=h.firstChild,g=Rt(c,"rectangle",{id:n,subtype:"note",label:{text:a}});if(Object.assign(g,{x:g.x+d,y:g.y+f}),r.push(g),l){const m=i.find(y=>y.id===l);if(!m)throw new Error(`class node with id ${l} not found!`);const _=g.x+(g.width||0)/2,b=g.y+(g.height||0),I=_,x=m.y,q=Xa(_,b,I,x,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:g.id,type:"rectangle"},end:{id:m.id,type:"rectangle"}});o.push(q)}}),{notes:r,connectors:o}},LC=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getDirection(),o=[],s=[],n=[],a=[],l=i.getNamespaces(),h=i.getClasses();if(Object.keys(h).length){const _=vC(h,e);o.push(_.nodes),s.push(..._.lines),n.push(..._.text),a.push(..._.nodes)}const d=i.getRelations(),{arrows:f,text:c}=wC(d,a,e,r),{notes:g,connectors:m}=BC(i.getNotes(),e,a);return o.push(g),f.push(...m),n.push(...c),{type:"class",nodes:o,lines:s,arrows:f,text:n,namespaces:l}},EC=t=>{const e=t.querySelector("svg");if(!e)throw new Error("SVG element not found");const i=e.getBoundingClientRect(),r=i.width,o=i.height;e.setAttribute("width",`${r}`),e.setAttribute("height",`${o}`);const s="image/svg+xml",n=unescape(encodeURIComponent(e.outerHTML)),l=`data:image/svg+xml;base64,${btoa(n)}`;return{type:"graphImage",mimeType:s,dataURL:l,width:r,height:o}},FC=async(t,e=Uo)=>{_t.initialize({...Uo,...e});const i=await _t.mermaidAPI.getDiagramFromText(lC(t)),{svg:r}=await _t.render("mermaid-to-excalidraw",t),o=document.createElement("div");o.setAttribute("style","opacity: 0; position: relative; z-index: -1;"),o.innerHTML=r,o.id="mermaid-diagram",document.body.appendChild(o);let s;switch(i.type){case"flowchart-v2":{s=fC(i,o);break}case"sequence":{s=SC(i,o);break}case"classDiagram":{s=LC(i,o);break}default:s=EC(o)}return o.remove(),s},OC=async(t,e)=>{var n;const i=e||{},r=parseInt(((n=i.themeVariables)==null?void 0:n.fontSize)??"")||Vi,o=await FC(t,{...i,themeVariables:{...i.themeVariables,fontSize:`${r*1.25}px`}});return _l(o,{fontSize:r})},e_=Object.freeze(Object.defineProperty({__proto__:null,parseMermaidToExcalidraw:OC},Symbol.toStringTag,{value:"Module"}));export{vl as $,Kr as A,RC as B,Pt as C,WC as D,Ko as E,Vo as F,YC as G,jC as H,zC as I,PC as J,NC as K,UC as L,qC as M,HC as N,Ud as O,qd as P,On as Q,XC as R,uo as S,Md as T,R as U,Nt as V,GC as W,Yg as X,hf as Y,Kd as Z,rf as _,Jg as a,uf as a0,hi as a1,F as a2,P as a3,ep as a4,Qe as a5,Zs as a6,Wh as a7,eo as a8,kl as a9,Ss as aA,Sh as aB,kh as aC,ae as aD,bn as aE,vh as aF,ro as aG,Th as aH,Bh as aI,$e as aJ,oe as aK,pn as aL,oo as aM,vs as aN,Wr as aO,Ih as aP,Br as aQ,e_ as aR,bl as aa,fe as ab,qu as ac,Iu as ad,zu as ae,Wu as af,Es as ag,tr as ah,or as ai,Ri as aj,bh as ak,io as al,Os as am,Ls as an,Cu as ao,gu as ap,Mu as aq,Yu as ar,di as as,De as at,$i as au,vu as av,ud as aw,ui as ax,Ni as ay,_u as az,Kg as b,Vg as c,ba as d,ct as e,zi as f,yo as g,ai as h,lo as i,Cf as j,fi as k,D as l,tp as m,Qg as n,t_ as o,Xg as p,Bl as q,zs as r,Zg as s,Sf as t,ii as u,QC as v,mf as w,np as x,ff as y,lp as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.