Files

66 lines
220 KiB
JavaScript
Raw Permalink Normal View History

2025-05-19 20:34:34 +00:00
import{a as zc,d as qc}from"./chunk-OSRY5VT3.min.js";var ya=zc((Fo,Lo)=>{(function(t,e){typeof Fo=="object"&&typeof Lo<"u"?Lo.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Fo,function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",o="second",n="minute",a="hour",s="day",h="week",l="month",c="quarter",d="year",u="date",p="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|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,$={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(k){var g=["th","st","nd","rd"],x=k%100;return"["+k+(g[(x-20)%10]||g[x]||g[0])+"]"}},q=function(k,g,x){var L=String(k);return!L||L.length>=g?k:""+Array(g+1-L.length).join(x)+k},G={s:q,z:function(k){var g=-k.utcOffset(),x=Math.abs(g),L=Math.floor(x/60),S=x%60;return(g<=0?"+":"-")+q(L,2,"0")+":"+q(S,2,"0")},m:function k(g,x){if(g.date()<x.date())return-k(x,g);var L=12*(x.year()-g.year())+(x.month()-g.month()),S=g.clone().add(L,l),N=x-S<0,O=g.clone().add(L+(N?-1:1),l);return+(-(L+(x-S)/(N?S-O:O-S))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:l,y:d,w:h,d:s,D:u,h:a,m:n,s:o,ms:i,Q:c}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},E="en",F={};F[E]=$;var P="$isDayjsObject",w=function(k){return k instanceof rt||!(!k||!k[P])},X=function k(g,x,L){var S;if(!g)return E;if(typeof g=="string"){var N=g.toLowerCase();F[N]&&(S=N),x&&(F[N]=x,S=N);var O=g.split("-");if(!S&&O.length>1)return k(O[0])}else{var U=g.name;F[U]=g,S=U}return!L&&S&&(E=S),S||!L&&E},j=function(k,g){if(w(k))return k.clone();var x=typeof g=="object"?g:{};return x.date=k,x.args=arguments,new rt(x)},W=G;W.l=X,W.i=w,W.w=function(k,g){return j(k,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var rt=function(){function k(x){this.$L=X(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[P]=!0}var g=k.prototype;return g.parse=function(x){this.$d=function(L){var S=L.date,N=L.utc;if(S===null)return new Date(NaN);if(W.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var O=S.match(T);if(O){var U=O[2]-1||0,et=(O[7]||"0").substring(0,3);return N?new Date(Date.UTC(O[1],U,O[3]||1,O[4]||0,O[5]||0,O[6]||0,et)):new Date(O[1],U,O[3]||1,O[4]||0,O[5]||0,O[6]||0,et)}}return new Date(S)}(x),this.init()},g.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},g.$utils=function(){return W},g.isValid=function(){return this.$d.toString()!==p},g.isSame=function(x,L){var S=j(x);return this.startOf(L)<=S&&S<=this.endOf(L)},g.isAfter=function(x,L){return j(x)<this.startOf(L)},g.isBefore=function(x,L){return this.endOf(L)<j(x)},g.$g=function(x,L,S){return W.u(x)?this[L]:this.set(S,x)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(x,L){var S=this,N=!!W.u(L)||L,O=W.p(x),U=function(yt,lt){var v=W.w(S.$u?Date.UTC(S.$y,lt,yt):new Date(S.$y,lt,yt),S);return N?v:v.endOf(s)},et=function(yt,lt){return W.w(S.toDate()[yt].apply(S.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(lt)),S)},Y=this.$W,nt=this.$M,Q=this.$D,Bt="set"+(this.$u?"UTC":"");switch(O){case d:return N?U(1,0):U(31,11);case l:return N?U(1,nt):U(0,nt+1);case h:var Z=this.$locale().weekStart||0,xt=(Y<Z?Y+7:Y)-Z;return U(N?Q-xt:Q+(6-xt),nt);case s:case u:return et(Bt+"Hours",0);case a:return et(Bt+"Minutes",1);case n:return et(Bt+"Seconds",2);case o:return et(Bt+"Milliseconds",3);default:return this.clone()}},g.endOf=function(x){return this.startOf(x,!1)},g.$set=function(x,L){var S,N=W.p(x),O="set"+(this.$u?"UTC":""),U=(S={},S[s]=O+"Date",S[u]=O+"Date",S[l]=O+"Month",S[d]=O+"FullYear",S[
`+It),C&&pi([k,g,x],jt=>{It=vr(It,jt," ")}),F&&oi?F.createHTML(It):It},e.setConfig=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wo(z),Ct=!0},e.clearConfig=function(){je=null,Ct=!1},e.isValidAttribute=function(z,f,_){je||wo({});let D=dt(z),at=dt(f);return ma(D,at,_)},e.addHook=function(z,f){typeof f=="function"&&Sr(B[z],f)},e.removeHook=function(z,f){if(f!==void 0){let _=su(B[z],f);return _===-1?void 0:lu(B[z],_,1)[0]}return Ma(B[z])},e.removeHooks=function(z){B[z]=[]},e.removeAllHooks=function(){B=Ra()},e}var Ze=Wa();var ja=qc(ya(),1);var Xa=Object.defineProperty,y=(t,e)=>Xa(t,"name",{value:e,configurable:!0}),vu=(t,e)=>{for(var r in e)Xa(t,r,{get:e[r],enumerable:!0})},ne={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},it={trace:y((...t)=>{},"trace"),debug:y((...t)=>{},"debug"),info:y((...t)=>{},"info"),warn:y((...t)=>{},"warn"),error:y((...t)=>{},"error"),fatal:y((...t)=>{},"fatal")},wu=y(function(t="fatal"){let e=ne.fatal;typeof t=="string"?t.toLowerCase()in ne&&(e=ne[t]):typeof t=="number"&&(e=t),it.trace=()=>{},it.debug=()=>{},it.info=()=>{},it.warn=()=>{},it.error=()=>{},it.fatal=()=>{},e<=ne.fatal&&(it.fatal=console.error?console.error.bind(console,Pt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Pt("FATAL"))),e<=ne.error&&(it.error=console.error?console.error.bind(console,Pt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Pt("ERROR"))),e<=ne.warn&&(it.warn=console.warn?console.warn.bind(console,Pt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Pt("WARN"))),e<=ne.info&&(it.info=console.info?console.info.bind(console,Pt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Pt("INFO"))),e<=ne.debug&&(it.debug=console.debug?console.debug.bind(console,Pt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Pt("DEBUG"))),e<=ne.trace&&(it.trace=console.debug?console.debug.bind(console,Pt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Pt("TRACE")))},"setLogLevel"),Pt=y(t=>`%c${(0,ja.default)().format("ss.SSS")} : ${t} : `,"format"),Bu=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Fu=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Lu=/\s*%%.*\n/gm,Mu=class extends Error{static{y(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},Ci={},B0=y(function(t,e){t=t.replace(Bu,"").replace(Fu,"").replace(Lu,`
`);for(let[r,{detector:i}]of Object.entries(Ci))if(i(t,e))return r;throw new Mu(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),F0=y((...t)=>{for(let{id:e,detector:r,loader:i}of t)Za(e,r,i)},"registerLazyLoadedDiagrams"),Za=y((t,e,r)=>{Ci[t]&&it.warn(`Detector with key ${t} already exists. Overwriting.`),Ci[t]={detector:e,loader:r},it.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),L0=y(t=>Ci[t].loader,"getDiagramLoader"),Po=y((t,e,{depth:r=2,clobber:i=!1}={})=>{let o={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(n=>Po(t,n,o)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(n=>{t.includes(n)||t.push(n)}),t):t===void 0||r<=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(n=>{typeof e[n]=="object"&&(t[n]===void 0||typeof t[n]=="object")?(t[n]===void 0&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=Po(t[n],e[n],{depth:r-1,clobber:i})):(i||typeof t[n]!="object"&&typeof e[n]!="object")&&(t[n]=e[n])}),t)},"assignWithDepth"),Rt=Po,bi="#ffffff",Ti="#f2f2f2",Et=y((t,e)=>e?m(t,{s:-40,l:10}):m(t,{s:-40,l:-10}),"mkBorder"),Au=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||m(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||m(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Et(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Et(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Et(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Et(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||b(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||b(this.tertiaryColor),this.lineColor=this.lineColor||b(this.background),this.arrowheadColor=this.arrowheadColor||b(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?I(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||I(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||b(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColo
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
fill: ${r.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${r.errorBkgColor};
}
& .error-text {
fill: ${r.errorTextColor};
stroke: ${r.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 1px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-thickness-invisible {
stroke-width: 0;
fill: none;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${r.lineColor};
stroke: ${r.lineColor};
}
& .marker.cross {
stroke: ${r.lineColor};
}
& svg {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
}
& p {
margin: 0
}
${i}
${e}
`},"getStyles"),ff=y((t,e)=>{e!==void 0&&(yi[t]=e)},"addStylesForDiagram"),G0=uf,ns={};vu(ns,{clear:()=>mf,getAccDescription:()=>xf,getAccTitle:()=>pf,getDiagramTitle:()=>Cf,setAccDescription:()=>gf,setAccTitle:()=>df,setDiagramTitle:()=>yf});var Yo="",Go="",Vo="",Xo=y(t=>Mr(t,Uo()),"sanitizeText"),mf=y(()=>{Yo="",Vo="",Go=""},"clear"),df=y(t=>{Yo=Xo(t).replace(/^\s+/g,"")},"setAccTitle"),pf=y(()=>Yo,"getAccTitle"),gf=y(t=>{Vo=Xo(t).replace(/\n\s+/g,`
`)},"setAccDescription"),xf=y(()=>Vo,"getAccDescription"),yf=y(t=>{Go=Xo(t)},"setDiagramTitle"),Cf=y(()=>Go,"getDiagramTitle"),Va=it,_f=wu,as=Uo,V0=Uu,X0=ki,bf=y(t=>Mr(t,as()),"sanitizeText"),Tf=cf,kf=y(()=>ns,"getCommonDb"),_i={},j0=y((t,e,r)=>{_i[t]&&Va.warn(`Diagram with id ${t} already registered. Overwriting.`),_i[t]=e,r&&Za(t,r),ff(t,e.styles),e.injectUtils?.(Va,_f,as,bf,Tf,kf(),()=>{})},"registerDiagram"),Z0=y(t=>{if(t in _i)return _i[t];throw new Sf(t)},"getDiagram"),Sf=class extends Error{static{y(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}};function ss(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function ls(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function Be(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function jo(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Fe(t){let e,r,i;t.length!==2?(e=Be,r=(s,h)=>Be(t(s),h),i=(s,h)=>t(s)-h):(e=t===Be||t===jo?t:vf,r=t,i=t);function o(s,h,l=0,c=s.length){if(l<c){if(e(h,h)!==0)return c;do{let d=l+c>>>1;r(s[d],h)<0?l=d+1:c=d}while(l<c)}return l}function n(s,h,l=0,c=s.length){if(l<c){if(e(h,h)!==0)return c;do{let d=l+c>>>1;r(s[d],h)<=0?l=d+1:c=d}while(l<c)}return l}function a(s,h,l=0,c=s.length){let d=o(s,h,l,c-1);return d>l&&i(s[d-1],h)>-i(s[d],h)?d-1:d}return{left:o,center:a,right:n}}function vf(){return 0}function Zo(t){return t===null?NaN:+t}var hs=Fe(Be),cs=hs.right,wf=hs.left,Bf=Fe(Zo).center,Ko=cs;var Je=class extends Map{constructor(e,r=Mf){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[i,o]of e)this.set(i,o)}get(e){return super.get(us(this,e))}has(e){return super.has(us(this,e))}set(e,r){return super.set(Ff(this,e),r)}delete(e){return super.delete(Lf(this,e))}};function us({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function Ff({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function Lf({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function Mf(t){return t!==null&&typeof t=="object"?t.valueOf():t}var Af=Math.sqrt(50),Ef=Math.sqrt(10),Df=Math.sqrt(2);function vi(t,e,r){let i=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(i)),n=i/Math.pow(10,o),a=n>=Af?10:n>=Ef?5:n>=Df?2:1,s,h,l;return o<0?(l=Math.pow(10,-o)/a,s=Math.round(t*l),h=Math.round(e*l),s/l<t&&++s,h/l>e&&--h,l=-l):(l=Math.pow(10,o)*a,s=Math.round(t/l),h=Math.round(e/l),s*l<t&&++s,h*l>e&&--h),h<s&&.5<=r&&r<2?vi(t,e,r*2):[s,h,l]}function wi(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];let i=e<t,[o,n,a]=i?vi(e,t,r):vi(t,e,r);if(!(n>=o))return[];let s=n-o+1,h=new Array(s);if(i)if(a<0)for(let l=0;l<s;++l)h[l]=(n-l)/-a;else for(let l=0;l<s;++l)h[l]=(n-l)*a;else if(a<0)for(let l=0;l<s;++l)h[l]=(o+l)/-a;else for(let l=0;l<s;++l)h[l]=(o+l)*a;return h}function Er(t,e,r){return e=+e,t=+t,r=+r,vi(t,e,r)[2]}function tr(t,e,r){e=+e,t=+t,r=+r;let i=e<t,o=i?Er(e,t,r):Er(t,e,r);return(i?-1:1)*(o<0?1/-o:o)}function Bi(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var i=-1,o=Math.max(0,Math.ceil((e-t)/r))|0,n=new Array(o);++i<o;)n[i]=t+i*r;return n}function fs(t){return t}var Li=1,Qo=2,Jo=3,Fi=4,ms=1e-6;function Of(t){return"translate("+t+",0)"}function If(t){return"translate(0,"+t+")"}function Nf(t){return e=>+t(e)}function Rf(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function zf(){return!this.__axis}function ds(t,e){var r=[],i=null,o=null,n=6,a=6,s=3,h=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=t===Li||t===Fi?-1:1,c=t===Fi||t===Qo?"x":"y",d=t===Li||t===Jo?Of:If;function u(p){var T=i??(e.ticks?e.ticks.apply(e,r):e.domain()),M=o??(e.tickFormat?e.tickFormat.apply(e,r):fs),$=Math.max(n,0)+s,q=e.range(),G=+q[0]+h,E=+q[q.length-1]+h,F=(e.bandwidth?Rf:Nf)(e.copy(),h),P=p.selection?p.selection():p,w=P.selectAll("
/*! Bundled license information:
dompurify/dist/purify.es.mjs:
(*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE *)
*/
//# sourceMappingURL=chunk-U3SD26FK.min.js.map