vault backup: 2025-09-07 20:45:17
This commit is contained in:
1 parent
a85fb49160
commit
d0b9f7a051
262 files changed
+32442
-6584
No files matched your search
@@ -0,0 +1,47 @@
|
||||
var t=Object.create,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,s=(t,n)=>e(t,"name",{value:n,configurable:!0}),o=(t,e)=>function(){return e||(0,t[r(t)[0]])((e={exports:{}}).exports,e),e.exports},l=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},h=(t,i,s,o)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of r(i))a.call(t,l)||l===s||e(t,l,{get:()=>i[l],enumerable:!(o=n(i,l))||o.enumerable});return t},u=(t,e,n)=>(h(t,e,"default"),n&&h(n,e,"default")),d=(n,r,a)=>(a=null!=n?t(i(n)):{},h(!r&&n&&n.__esModule?a:e(a,"default",{value:n,enumerable:!0}),n)),p=o({"../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js"(t,e){!function(n,r){"object"==typeof t&&void 0!==e?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs=r()}(t,(function(){var t=6e4,e=36e5,n="millisecond",r="second",i="minute",a="hour",o="day",l="week",c="month",h="quarter",u="year",d="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,m={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:s((function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}),"ordinal")},y=s((function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t}),"m"),v={s:y,z:s((function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")}),"z"),m:s((function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),a=n-i<0,s=e.clone().add(r+(a?-1:1),c);return+(-(r+(n-i)/(a?i-s:s-i))||0)}),"t"),a:s((function(t){return t<0?Math.ceil(t)||0:Math.floor(t)}),"a"),p:s((function(t){return{M:c,y:u,w:l,d:o,D:d,h:a,m:i,s:r,ms:n,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")}),"p"),u:s((function(t){return void 0===t}),"u")},x="en",b={};b[x]=m;var w="$isDayjsObject",k=s((function(t){return t instanceof C||!(!t||!t[w])}),"S"),T=s((function t(e,n,r){var i;if(!e)return x;if("string"==typeof e){var a=e.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var o=e.name;b[o]=e,i=o}return!r&&i&&(x=i),i||!r&&x}),"t"),_=s((function(t,e){if(k(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new C(n)}),"O"),E=v;E.l=T,E.i=k,E.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function m(t){this.$L=T(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}s(m,"M");var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(g);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.init()},y.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()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return _(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<_(t)},y.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,h=!!E.u(e)||e,p=E.p(t),g=s((function(t,e){var r=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return h?r:r.endOf(o)}),"l"),f=s((function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(e)),n)}),"$"),m=this.$W,y=this.$M,v=this.$D,x="set"+(this.$u?"UTC":"");switch(p){case u:return h?g(1,0):g(31,11);case c:return h?g(1,y):g(0,y+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return g(h?v-w:v+(6-w),y);case o:case d:return f(x+"Hours",0);case a:return f(x+"Minutes",1);case i:return f(x+"Seconds",2);case r:return f(x+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var s,l=E.p(t),h="set"+(this.$u?"UTC":""),p=(s={},s[o]=h+"Date",s[d]=h+"Date",s[c]=h+"Month",s[u]=h+"FullYear",s[a]=h+"Hours",s[i]=h+"Minutes",s[r]=h+"Seconds",s[n]=h+"Milliseconds",s)[l],g=l===o?this.$D+(e-this.$W):e;if(l===c||l===u){var f=this.clone().set(dLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
dompurify/dist/purify.es.mjs:
|
||||
(*! @license DOMPurify 3.2.1 | (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.1/LICENSE *)
|
||||
*/
|
||||
var zp=s((t=>{const{securityLevel:e}=Hn();let n=Oa("body");if("sandbox"===e){const e=Oa(`#i${t}`);n=Oa((e.node()?.contentDocument??document).body)}return n.select(`#${t}`)}),"selectSvgElement");function Up(t){return null==t}function Gp(t){return"object"==typeof t&&null!==t}function qp(t){return Array.isArray(t)?t:Up(t)?[]:[t]}function jp(t,e){var n,r,i,a;if(e)for(n=0,r=(a=Object.keys(e)).length;n<r;n+=1)t[i=a[n]]=e[i];return t}function Yp(t,e){var n,r="";for(n=0;n<e;n+=1)r+=t;return r}function Wp(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}s(Up,"isNothing"),s(Gp,"isObject"),s(qp,"toArray"),s(jp,"extend"),s(Yp,"repeat"),s(Wp,"isNegativeZero");var Hp={isNothing:Up,isObject:Gp,toArray:qp,repeat:Yp,isNegativeZero:Wp,extend:jp};function Vp(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),r+" "+n):r}function Xp(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Vp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}s(Vp,"formatError"),s(Xp,"YAMLException$1"),Xp.prototype=Object.create(Error.prototype),Xp.prototype.constructor=Xp,Xp.prototype.toString=s((function(t){return this.name+": "+Vp(this,t)}),"toString");var Kp=Xp;function Zp(t,e,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-e>o&&(e=r-o+(a=" ... ").length),n-r>o&&(n=r+o-(s=" ...").length),{str:a+t.slice(e,n).replace(/\t/g,"→")+s,pos:r-e+a.length}}function Qp(t,e){return Hp.repeat(" ",e-t.length)+t}function Jp(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],a=[],s=-1;n=r.exec(t.buffer);)a.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o,l,c="",h=Math.min(t.line+e.linesAfter,a.length).toString().length,u=e.maxLength-(e.indent+h+3);for(o=1;o<=e.linesBefore&&!(s-o<0);o++)l=Zp(t.buffer,i[s-o],a[s-o],t.position-(i[s]-i[s-o]),u),c=Hp.repeat(" ",e.indent)+Qp((t.line-o+1).toString(),h)+" | "+l.str+"\n"+c;for(l=Zp(t.buffer,i[s],a[s],t.position,u),c+=Hp.repeat(" ",e.indent)+Qp((t.line+1).toString(),h)+" | "+l.str+"\n",c+=Hp.repeat("-",e.indent+h+3+l.pos)+"^\n",o=1;o<=e.linesAfter&&!(s+o>=a.length);o++)l=Zp(t.buffer,i[s+o],a[s+o],t.position-(i[s]-i[s+o]),u),c+=Hp.repeat(" ",e.indent)+Qp((t.line+o+1).toString(),h)+" | "+l.str+"\n";return c.replace(/\n$/,"")}s(Zp,"getLine"),s(Qp,"padStart"),s(Jp,"makeSnippet");var tg=Jp,eg=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ng=["scalar","sequence","mapping"];function rg(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}function ig(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===eg.indexOf(e))throw new Kp('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=rg(e.styleAliases||null),-1===ng.indexOf(this.kind))throw new Kp('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}s(rg,"compileStyleAliases"),s(ig,"Type$1");var ag=ig;function sg(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,r){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=r)})),n[e]=t})),n}function og(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(s(r,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(r);return n}function lg(t){return this.extend(t)}s(sg,"compileList"),s(og,"compileMap"),s(lg,"Schema$1"),lg.prototype.extend=s((function(t){var e=[],n=[];if(t instanceof ag)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new Kp("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof ag))throw new Kp("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new Kp("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not sLine truncated
|
||||
/*! Check if previously processed */
|
||||
/*!
|
||||
* Wait for document loaded before starting the execution
|
||||
*/
|
||||
/*!
|
||||
* reveal.js Mermaid plugin
|
||||
*/
|
||||
return async function(t){let{el:e,beforeRender:n,afterRender:r}=t;if(!1===await(null==n?void 0:n(e)))return;const i=e.textContent.trim();try{const{svg:t}=await BN.render(`mermaid-${Math.random().toString(36).substring(2)}`,i);e.innerHTML=t,await(null==r?void 0:r(e))}catch(t){let n="";null!=t&&t.str&&(n=t.str),null!=t&&t.message&&(n=t.message),console.error(n,{error:t,graphDefinition:i,el:e}),e.innerHTML=n}}({el:t,beforeRender:e,afterRender:n})}}const FN={id:"mermaid",init:function(t){const{...e}=t.getConfig().mermaid||{},{...n}=t.getConfig().mermaidPlugin||{},r=$N({beforeRender:n.beforeRender,afterRender:n.afterRender});BN.initialize({startOnLoad:!1,...e});const i=t.getRevealElement().querySelectorAll(".mermaid");Array.from(i).forEach((function(t){r(t)}))}};var zN=()=>FN,UN=class t{static{s(this,"SourceLocation")}constructor(t,e,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=n}static range(e,n){return n?e&&e.loc&&n.loc&&e.loc.lexer===n.loc.lexer?new t(e.loc.lexer,e.loc.start,n.loc.end):null:e&&e.loc}},GN=class t{static{s(this,"Token")}constructor(t,e){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=e}range(e,n){return new t(n,UN.range(this,e))}},qN=class t{static{s(this,"ParseError")}constructor(e,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,i,a="KaTeX parse error: "+e,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;r=s.start,i=s.end,r===o.length?a+=" at end of input: ":a+=" at position "+(r+1)+": ";var l=o.slice(r,i).replace(/[^]/g,"$&̲");a+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+l+(i+15<o.length?o.slice(i,i+15)+"…":o.slice(i))}var c=new Error(a);return c.name="ParseError",c.__proto__=t.prototype,c.position=r,null!=r&&null!=i&&(c.length=i-r),c.rawMessage=e,c}};qN.prototype.__proto__=Error.prototype;var jN=s((function(t,e){return-1!==t.indexOf(e)}),"contains"),YN=s((function(t,e){return void 0===t?e:t}),"deflt"),WN=/([A-Z])/g,HN=s((function(t){return t.replace(WN,"-$1").toLowerCase()}),"hyphenate"),VN={"&":"&",">":">","<":"<",'"':""","'":"'"},XN=/[&><"']/g;function KN(t){return String(t).replace(XN,(t=>VN[t]))}s(KN,"escape");var ZN=s((function t(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e}),"getBaseElem"),QN=s((function(t){var e=ZN(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type}),"isCharacterBox"),JN=s((function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t}),"assert"),tI={contains:jN,deflt:YN,escape:KN,hyphenate:HN,getBaseElem:ZN,isCharacterBox:QN,protocolFromUrl:s((function(t){var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?":"!==e[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}),"protocolFromUrl")},eI={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:s((t=>"#"+t),"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:s(((t,e)=>(e.push(t),e)),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:s((t=>Math.max(0,t)),"processor"),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the
Line truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
lodash-es/lodash.js:
|
||||
(**
|
||||
* @license
|
||||
* Lodash (Custom Build) <https://lodash.com/>
|
||||
* Build: `lodash modularize exports="es" -o ./`
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*)
|
||||
*/function rq(t,e){t[e]?t[e]++:t[e]=1}function iq(t,e){--t[e]||delete t[e]}function aq(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var s=i;i=a,a=s}return i+""+a+""+(SF(r)?"\0":r)}function sq(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var s=i;i=a,a=s}var o={v:i,w:a};return r&&(o.name=r),o}function oq(t,e){return aq(t,e.v,e.w,e.name)}function lq(t,e,n,r){var i;do{i=ZG(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function cq(t){var e=(new nq).setGraph(t.graph());return zB(t.nodes(),(function(n){e.setNode(n,t.node(n))})),zB(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e}function hq(t){var e=new nq({multigraph:t.isMultigraph()}).setGraph(t.graph());return zB(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),zB(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function uq(t,e){var n,r,i=t.x,a=t.y,s=e.x-i,o=e.y-a,l=t.width/2,c=t.height/2;if(!s&&!o)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(o)*l>Math.abs(s)*c?(o<0&&(c=-c),n=c*s/o,r=c):(s<0&&(l=-l),n=l,r=l*o/s),{x:i+n,y:a+r}}function dq(t){var e=wF(DG(mq(t)+1),(function(){return[]}));return zB(t.nodes(),(function(n){var r=t.node(n),i=r.rank;SF(i)||(e[i][r.order]=n)})),e}function pq(t){var e=JU(wF(t.nodes(),(function(e){return t.node(e).rank})));zB(t.nodes(),(function(n){var r=t.node(n);BU(r,"rank")&&(r.rank-=e)}))}function gq(t){var e=JU(wF(t.nodes(),(function(e){return t.node(e).rank}))),n=[];zB(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var r=0,i=t.graph().nodeRankFactor;zB(n,(function(e,n){SF(e)&&n%i!=0?--r:r&&zB(e,(function(e){t.node(e).rank+=r}))}))}function fq(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),lq(t,"border",i,e)}function mq(t){return OF(wF(t.nodes(),(function(e){var n=t.node(e).rank;if(!SF(n))return n})))}function yq(t,e){var n={lhs:[],rhs:[]};return zB(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function vq(t,e){var n=nU();try{return e()}finally{console.log(t+" time: "+(nU()-n)+"ms")}}function xq(t,e){return e()}function bq(t){function e(n){var r=t.children(n),i=t.node(n);if(r.length&&zB(r,e),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;a<s;++a)wq(t,"borderLeft","_bl",n,i,a),wq(t,"borderRight","_br",n,i,a)}}s(e,"dfs"),zB(t.children(),e)}function wq(t,e,n,r,i,a){var s={width:0,height:0,rank:a,borderType:e},o=i[e][a-1],l=lq(t,"border",s,n);i[e][a]=l,t.setParent(l,r),o&&t.setEdge(o,l,{weight:1})}function kq(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||_q(t)}function Tq(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||Cq(t),"lr"!==e&&"rl"!==e||(Aq(t),_q(t))}function _q(t){zB(t.nodes(),(function(e){Eq(t.node(e))})),zB(t.edges(),(function(e){Eq(t.edge(e))}))}function Eq(t){var e=t.width;t.width=t.height,t.height=e}function Cq(t){zB(t.nodes(),(function(e){Sq(t.node(e))})),zB(t.edges(),(function(e){var n=t.edge(e);zB(n.points,Sq),Object.prototype.hasOwnProperty.call(n,"y")&&Sq(n)}))}function Sq(t){t.y=-t.y}function Aq(t){zB(t.nodes(),(function(e){Lq(t.node(e))})),zB(t.edges(),(function(e){var n=t.edge(e);zB(n.points,Lq),Object.prototype.hasOwnProperty.call(n,"x")&&Lq(n)}))}function Lq(t){var e=t.x;t.x=t.y,t.y=e}nq.prototype._nodeCount=0,nq.prototype._edgeCount=0,s(rq,"incrementOrInitEntry"),s(iq,"decrementOrRemoveEntry"),s(aq,"edgeArgsToId"),s(sq,"edgeArgsToObj"),s(oq,"edgeObjToId"),s(lq,"addDummyNode"),s(cq,"simplify"),s(hq,"asNonCompoundGraph"),s(uq,"intersectRect"),s(dq,"buildLayerMatrix"),s(pq,"normalizeRanks"),s(gq,"removeEmptyRanks"),s(fq,"addBorderNode"),s(mq,"maxRank"),s(yq,"partition"),s(vq,"time"),s(xq,"notime"),s(bq,"addBorderSegments"),s(wq,"addBorderNode"),s(kq,"adjust"),s(Tq,"undo"),s(_q,"swapWidthHeight"),s(Eq,"swapWidthHeightOne"),s(Cq,"reverseY"),s(Sq,"reverseYOne"),s(Aq,"swapXY"),s(Lq,"swapXYOne");var Nq=class{static{s(this,"List")}constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,e=t._prev;if(e!==t)return Iq(e),e}enqueue(t){var e=this._sentinel;t._prev&&t._next&&Iq(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e}toString(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,Mq)),n=n._prev;return"["+t.join(", ")+"]"}};function Iq(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function Mq(t,e){if("_next"!==t&&"_prev"!==t)return e}s(Iq,"unlink"),s(Mq,"filterOutLinks");var Rq=ux(1);function Dq(t,e){if(t.nodeCount()<=1)return[];var n=Bq(t,e||Rq),r=Oq(n.graph,n.buckets,n.zeroIdx);return VF(wF(r,(function(e){return t.outEdges(e.v,e.w)})))}function Oq(t,e,n){for(var r,i=[],a=e[e.length-1],s=e[0];t.nodeCount();){for(;r=s.dequeue();)Pq(t,e,n,r);for(;r=a.dequeue();)Pq(t,e,n,r);if(t.nodeCount())for(var o=e.length-2;o>0;--o)if(r=e[o].dequeue()){i=i.concat(Pq(t,e,n,r,!0));break}}return iLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
cytoscape/dist/cytoscape.esm.mjs:
|
||||
(*!
|
||||
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
|
||||
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
|
||||
Licensed under The MIT License (http://opensource.org/licenses/MIT)
|
||||
*)
|
||||
(*!
|
||||
Event object based on jQuery events, MIT license
|
||||
|
||||
https://jquery.org/license/
|
||||
https://tldrlegal.com/license/mit-license
|
||||
https://github.com/jquery/jquery/blob/master/src/event.js
|
||||
*)
|
||||
(*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License *)
|
||||
(*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License *)
|
||||
*/
|
||||
var cCt=o({"../../node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js"(t,e){s((function(n,r){"object"==typeof t&&"object"==typeof e?e.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof t?t.layoutBase=r():n.layoutBase=r()}),"webpackUniversalModuleDefinition")(t,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return s(n,"__webpack_require__"),n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?s((function(){return t.default}),"getDefault"):s((function(){return t}),"getModuleExports");return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e,n){function r(){}s(r,"LayoutConstants"),r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,t.exports=r},function(t,e,n){var r=n(2),i=n(8),a=n(9);function o(t,e,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=t,this.target=e}for(var l in s(o,"LEdge"),o.prototype=Object.create(r.prototype),r)o[l]=r[l];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},o.prototype.getOtherEndInGraph=function(t,e){for(var n=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(n.getOwner()==e)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=o},function(t,e,n){function r(t){this.vGraphObject=t}s(r,"LGraphObject"),t.exports=r},function(t,e,n){var r=n(2),i=n(10),a=n(13),o=n(0),l=n(16),c=n(4);function h(t,e,n,s){null==n&&null==s&&(s=e),r.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,this.rect=null!=n&&null!=e?new a(e.x,e.y,n.width,n.height):new a}for(var u in s(h,"LNode"),h.prototype=Object.create(r.prototype),r)h[u]=r[u];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(t){this.rect.width=t},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(t){this.rect.height=t},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(t,e){this.rect.x=t.x,tLine truncated
|
||||
@@ -0,0 +1,47 @@
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RevealMermaid=e()}(this,(function(){"use strict";var t="11.4.1",e=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,o=(t,e)=>n(t,"name",{value:e,configurable:!0}),l=(t,e)=>function(){return e||(0,t[i(t)[0]])((e={exports:{}}).exports,e),e.exports},h=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},u=(t,e,a,o)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let l of i(e))s.call(t,l)||l===a||n(t,l,{get:()=>e[l],enumerable:!(o=r(e,l))||o.enumerable});return t},d=(t,e,n)=>(u(t,e,"default"),n&&u(n,e,"default")),p=(t,r,i)=>(i=null!=t?e(a(t)):{},u(!r&&t&&t.__esModule?i:n(i,"default",{value:t,enumerable:!0}),t)),g=l({"../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js"(t,e){!function(n,r){"object"==typeof t&&void 0!==e?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs=r()}(t,(function(){var t=6e4,e=36e5,n="millisecond",r="second",i="minute",a="hour",s="day",l="week",c="month",h="quarter",u="year",d="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,m={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:o((function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}),"ordinal")},y=o((function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t}),"m"),v={s:y,z:o((function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")}),"z"),m:o((function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),a=n-i<0,s=e.clone().add(r+(a?-1:1),c);return+(-(r+(n-i)/(a?i-s:s-i))||0)}),"t"),a:o((function(t){return t<0?Math.ceil(t)||0:Math.floor(t)}),"a"),p:o((function(t){return{M:c,y:u,w:l,d:s,D:d,h:a,m:i,s:r,ms:n,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")}),"p"),u:o((function(t){return void 0===t}),"u")},x="en",b={};b[x]=m;var w="$isDayjsObject",k=o((function(t){return t instanceof C||!(!t||!t[w])}),"S"),T=o((function t(e,n,r){var i;if(!e)return x;if("string"==typeof e){var a=e.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var o=e.name;b[o]=e,i=o}return!r&&i&&(x=i),i||!r&&x}),"t"),_=o((function(t,e){if(k(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new C(n)}),"O"),E=v;E.l=T,E.i=k,E.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function m(t){this.$L=T(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}o(m,"M");var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(g);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.init()},y.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()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return _(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<_(t)},y.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,h=!!E.u(e)||e,p=E.p(t),g=o((function(t,e){var r=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return h?r:r.endOf(s)}),"l"),f=o((function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(e)),n)}),"$"),m=this.$W,y=this.$M,v=this.$D,x="set"+(this.$u?"UTC":"");switch(p){case u:return h?g(1,0):g(31,11);case c:return h?g(1,y):g(0,y+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return g(h?v-w:v+(6-w),y);case s:case d:return f(x+"Hours",0);case a:return f(x+"Minutes",1);case i:return f(x+"Seconds",2);case r:return f(x+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var o,l=E.Line truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
dompurify/dist/purify.es.mjs:
|
||||
(*! @license DOMPurify 3.2.1 | (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.1/LICENSE *)
|
||||
*/
|
||||
var ng=o((t=>{const{securityLevel:e}=Kn();let n=Fa("body");if("sandbox"===e){const e=Fa(`#i${t}`);n=Fa((e.node()?.contentDocument??document).body)}return n.select(`#${t}`)}),"selectSvgElement");function rg(t){return null==t}function ig(t){return"object"==typeof t&&null!==t}function ag(t){return Array.isArray(t)?t:rg(t)?[]:[t]}function sg(t,e){var n,r,i,a;if(e)for(n=0,r=(a=Object.keys(e)).length;n<r;n+=1)t[i=a[n]]=e[i];return t}function og(t,e){var n,r="";for(n=0;n<e;n+=1)r+=t;return r}function lg(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}o(rg,"isNothing"),o(ig,"isObject"),o(ag,"toArray"),o(sg,"extend"),o(og,"repeat"),o(lg,"isNegativeZero");var cg={isNothing:rg,isObject:ig,toArray:ag,repeat:og,isNegativeZero:lg,extend:sg};function hg(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),r+" "+n):r}function ug(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=hg(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}o(hg,"formatError"),o(ug,"YAMLException$1"),ug.prototype=Object.create(Error.prototype),ug.prototype.constructor=ug,ug.prototype.toString=o((function(t){return this.name+": "+hg(this,t)}),"toString");var dg=ug;function pg(t,e,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-e>o&&(e=r-o+(a=" ... ").length),n-r>o&&(n=r+o-(s=" ...").length),{str:a+t.slice(e,n).replace(/\t/g,"→")+s,pos:r-e+a.length}}function gg(t,e){return cg.repeat(" ",e-t.length)+t}function fg(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],a=[],s=-1;n=r.exec(t.buffer);)a.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o,l,c="",h=Math.min(t.line+e.linesAfter,a.length).toString().length,u=e.maxLength-(e.indent+h+3);for(o=1;o<=e.linesBefore&&!(s-o<0);o++)l=pg(t.buffer,i[s-o],a[s-o],t.position-(i[s]-i[s-o]),u),c=cg.repeat(" ",e.indent)+gg((t.line-o+1).toString(),h)+" | "+l.str+"\n"+c;for(l=pg(t.buffer,i[s],a[s],t.position,u),c+=cg.repeat(" ",e.indent)+gg((t.line+1).toString(),h)+" | "+l.str+"\n",c+=cg.repeat("-",e.indent+h+3+l.pos)+"^\n",o=1;o<=e.linesAfter&&!(s+o>=a.length);o++)l=pg(t.buffer,i[s+o],a[s+o],t.position-(i[s]-i[s+o]),u),c+=cg.repeat(" ",e.indent)+gg((t.line+o+1).toString(),h)+" | "+l.str+"\n";return c.replace(/\n$/,"")}o(pg,"getLine"),o(gg,"padStart"),o(fg,"makeSnippet");var mg=fg,yg=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vg=["scalar","sequence","mapping"];function xg(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}function bg(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===yg.indexOf(e))throw new dg('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=xg(e.styleAliases||null),-1===vg.indexOf(this.kind))throw new dg('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}o(xg,"compileStyleAliases"),o(bg,"Type$1");var wg=bg;function kg(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,r){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=r)})),n[e]=t})),n}function Tg(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(o(r,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(r);return n}function _g(t){return this.extend(t)}o(kg,"compileList"),o(Tg,"compileMap"),o(_g,"Schema$1"),_g.prototype.extend=o((function(t){var e=[],n=[];if(t instanceof wg)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new dg("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof wg))throw new dg("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new dg("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not sLine truncated
|
||||
/*! Check if previously processed */
|
||||
/*!
|
||||
* Wait for document loaded before starting the execution
|
||||
*/
|
||||
/*!
|
||||
* reveal.js Mermaid plugin
|
||||
*/
|
||||
return async function(t){let{el:e,beforeRender:n,afterRender:r}=t;if(!1===await(null==n?void 0:n(e)))return;const i=e.textContent.trim();try{const{svg:t}=await AI.render(`mermaid-${Math.random().toString(36).substring(2)}`,i);e.innerHTML=t,await(null==r?void 0:r(e))}catch(t){let n="";null!=t&&t.str&&(n=t.str),null!=t&&t.message&&(n=t.message),console.error(n,{error:t,graphDefinition:i,el:e}),e.innerHTML=n}}({el:t,beforeRender:e,afterRender:n})}}const NI={id:"mermaid",init:function(t){const{...e}=t.getConfig().mermaid||{},{...n}=t.getConfig().mermaidPlugin||{},r=LI({beforeRender:n.beforeRender,afterRender:n.afterRender});AI.initialize({startOnLoad:!1,...e});const i=t.getRevealElement().querySelectorAll(".mermaid");Array.from(i).forEach((function(t){r(t)}))}};var II=class t{static{o(this,"SourceLocation")}constructor(t,e,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=n}static range(e,n){return n?e&&e.loc&&n.loc&&e.loc.lexer===n.loc.lexer?new t(e.loc.lexer,e.loc.start,n.loc.end):null:e&&e.loc}},MI=class t{static{o(this,"Token")}constructor(t,e){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=e}range(e,n){return new t(n,II.range(this,e))}},RI=class t{static{o(this,"ParseError")}constructor(e,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,i,a="KaTeX parse error: "+e,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;r=s.start,i=s.end,r===o.length?a+=" at end of input: ":a+=" at position "+(r+1)+": ";var l=o.slice(r,i).replace(/[^]/g,"$&̲");a+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+l+(i+15<o.length?o.slice(i,i+15)+"…":o.slice(i))}var c=new Error(a);return c.name="ParseError",c.__proto__=t.prototype,c.position=r,null!=r&&null!=i&&(c.length=i-r),c.rawMessage=e,c}};RI.prototype.__proto__=Error.prototype;var DI=o((function(t,e){return-1!==t.indexOf(e)}),"contains"),OI=o((function(t,e){return void 0===t?e:t}),"deflt"),PI=/([A-Z])/g,BI=o((function(t){return t.replace(PI,"-$1").toLowerCase()}),"hyphenate"),$I={"&":"&",">":">","<":"<",'"':""","'":"'"},FI=/[&><"']/g;function zI(t){return String(t).replace(FI,(t=>$I[t]))}o(zI,"escape");var UI=o((function t(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e}),"getBaseElem"),GI=o((function(t){var e=UI(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type}),"isCharacterBox"),qI=o((function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t}),"assert"),jI={contains:DI,deflt:OI,escape:zI,hyphenate:BI,getBaseElem:UI,isCharacterBox:GI,protocolFromUrl:o((function(t){var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?":"!==e[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}),"protocolFromUrl")},YI={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:o((t=>"#"+t),"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:o(((t,e)=>(e.push(t),e)),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:o((t=>Math.max(0,t)),"processor"),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enaLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
lodash-es/lodash.js:
|
||||
(**
|
||||
* @license
|
||||
* Lodash (Custom Build) <https://lodash.com/>
|
||||
* Build: `lodash modularize exports="es" -o ./`
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*)
|
||||
*/function hj(t,e){t[e]?t[e]++:t[e]=1}function uj(t,e){--t[e]||delete t[e]}function dj(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var s=i;i=a,a=s}return i+""+a+""+(Iz(r)?"\0":r)}function pj(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var s=i;i=a,a=s}var o={v:i,w:a};return r&&(o.name=r),o}function gj(t,e){return dj(t,e.v,e.w,e.name)}function fj(t,e,n,r){var i;do{i=rj(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function mj(t){var e=(new cj).setGraph(t.graph());return U$(t.nodes(),(function(n){e.setNode(n,t.node(n))})),U$(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e}function yj(t){var e=new cj({multigraph:t.isMultigraph()}).setGraph(t.graph());return U$(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),U$(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function vj(t,e){var n,r,i=t.x,a=t.y,s=e.x-i,o=e.y-a,l=t.width/2,c=t.height/2;if(!s&&!o)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(o)*l>Math.abs(s)*c?(o<0&&(c=-c),n=c*s/o,r=c):(s<0&&(l=-l),n=l,r=l*o/s),{x:i+n,y:a+r}}function xj(t){var e=Ez(zq(Tj(t)+1),(function(){return[]}));return U$(t.nodes(),(function(n){var r=t.node(n),i=r.rank;Iz(i)||(e[i][r.order]=n)})),e}function bj(t){var e=iq(Ez(t.nodes(),(function(e){return t.node(e).rank})));U$(t.nodes(),(function(n){var r=t.node(n);GG(r,"rank")&&(r.rank-=e)}))}function wj(t){var e=iq(Ez(t.nodes(),(function(e){return t.node(e).rank}))),n=[];U$(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var r=0,i=t.graph().nodeRankFactor;U$(n,(function(e,n){Iz(e)&&n%i!=0?--r:r&&U$(e,(function(e){t.node(e).rank+=r}))}))}function kj(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),fj(t,"border",i,e)}function Tj(t){return Fz(Ez(t.nodes(),(function(e){var n=t.node(e).rank;if(!Iz(n))return n})))}function _j(t,e){var n={lhs:[],rhs:[]};return U$(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function Ej(t,e){var n=oG();try{return e()}finally{console.log(t+" time: "+(oG()-n)+"ms")}}function Cj(t,e){return e()}function Sj(t){function e(n){var r=t.children(n),i=t.node(n);if(r.length&&U$(r,e),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;a<s;++a)Aj(t,"borderLeft","_bl",n,i,a),Aj(t,"borderRight","_br",n,i,a)}}o(e,"dfs"),U$(t.children(),e)}function Aj(t,e,n,r,i,a){var s={width:0,height:0,rank:a,borderType:e},o=i[e][a-1],l=fj(t,"border",s,n);i[e][a]=l,t.setParent(l,r),o&&t.setEdge(o,l,{weight:1})}function Lj(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||Ij(t)}function Nj(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||Rj(t),"lr"!==e&&"rl"!==e||(Oj(t),Ij(t))}function Ij(t){U$(t.nodes(),(function(e){Mj(t.node(e))})),U$(t.edges(),(function(e){Mj(t.edge(e))}))}function Mj(t){var e=t.width;t.width=t.height,t.height=e}function Rj(t){U$(t.nodes(),(function(e){Dj(t.node(e))})),U$(t.edges(),(function(e){var n=t.edge(e);U$(n.points,Dj),Object.prototype.hasOwnProperty.call(n,"y")&&Dj(n)}))}function Dj(t){t.y=-t.y}function Oj(t){U$(t.nodes(),(function(e){Pj(t.node(e))})),U$(t.edges(),(function(e){var n=t.edge(e);U$(n.points,Pj),Object.prototype.hasOwnProperty.call(n,"x")&&Pj(n)}))}function Pj(t){var e=t.x;t.x=t.y,t.y=e}cj.prototype._nodeCount=0,cj.prototype._edgeCount=0,o(hj,"incrementOrInitEntry"),o(uj,"decrementOrRemoveEntry"),o(dj,"edgeArgsToId"),o(pj,"edgeArgsToObj"),o(gj,"edgeObjToId"),o(fj,"addDummyNode"),o(mj,"simplify"),o(yj,"asNonCompoundGraph"),o(vj,"intersectRect"),o(xj,"buildLayerMatrix"),o(bj,"normalizeRanks"),o(wj,"removeEmptyRanks"),o(kj,"addBorderNode"),o(Tj,"maxRank"),o(_j,"partition"),o(Ej,"time"),o(Cj,"notime"),o(Sj,"addBorderSegments"),o(Aj,"addBorderNode"),o(Lj,"adjust"),o(Nj,"undo"),o(Ij,"swapWidthHeight"),o(Mj,"swapWidthHeightOne"),o(Rj,"reverseY"),o(Dj,"reverseYOne"),o(Oj,"swapXY"),o(Pj,"swapXYOne");var Bj=class{static{o(this,"List")}constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,e=t._prev;if(e!==t)return $j(e),e}enqueue(t){var e=this._sentinel;t._prev&&t._next&&$j(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e}toString(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,Fj)),n=n._prev;return"["+t.join(", ")+"]"}};function $j(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function Fj(t,e){if("_next"!==t&&"_prev"!==t)return e}o($j,"unlink"),o(Fj,"filterOutLinks");var zj=Ax(1);function Uj(t,e){if(t.nodeCount()<=1)return[];var n=jj(t,e||zj),r=Gj(n.graph,n.buckets,n.zeroIdx);return Qz(Ez(r,(function(e){return t.outEdges(e.v,e.w)})))}function Gj(t,e,n){for(var r,i=[],a=e[e.length-1],s=e[0];t.nodeCount();){for(;r=s.dequeue();)qj(t,e,n,r);for(;r=a.dequeue();)qj(t,e,n,r);if(t.nodeCount())for(var o=e.length-2;o>0;--o)if(r=e[o].dequeue()){i=i.concat(qj(t,e,n,r,!0));break}}returnLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
cytoscape/dist/cytoscape.esm.mjs:
|
||||
(*!
|
||||
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
|
||||
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
|
||||
Licensed under The MIT License (http://opensource.org/licenses/MIT)
|
||||
*)
|
||||
(*!
|
||||
Event object based on jQuery events, MIT license
|
||||
|
||||
https://jquery.org/license/
|
||||
https://tldrlegal.com/license/mit-license
|
||||
https://github.com/jquery/jquery/blob/master/src/event.js
|
||||
*)
|
||||
(*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License *)
|
||||
(*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License *)
|
||||
*/
|
||||
var yAt=l({"../../node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js"(t,e){o((function(n,r){"object"==typeof t&&"object"==typeof e?e.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof t?t.layoutBase=r():n.layoutBase=r()}),"webpackUniversalModuleDefinition")(t,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return o(n,"__webpack_require__"),n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?o((function(){return t.default}),"getDefault"):o((function(){return t}),"getModuleExports");return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e,n){function r(){}o(r,"LayoutConstants"),r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,t.exports=r},function(t,e,n){var r=n(2),i=n(8),a=n(9);function s(t,e,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=t,this.target=e}for(var l in o(s,"LEdge"),s.prototype=Object.create(r.prototype),r)s[l]=r[l];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(t,e){for(var n=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(n.getOwner()==e)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},s.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,n){function r(t){this.vGraphObject=t}o(r,"LGraphObject"),t.exports=r},function(t,e,n){var r=n(2),i=n(10),a=n(13),s=n(0),l=n(16),c=n(4);function h(t,e,n,s){null==n&&null==s&&(s=e),r.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,this.rect=null!=n&&null!=e?new a(e.x,e.y,n.width,n.height):new a}for(var u in o(h,"LNode"),h.prototype=Object.create(r.prototype),r)h[u]=r[u];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(t){this.rect.width=t},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(t){this.rect.height=t},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(t,e){this.rect.x=t.x,tLine truncated
|
||||
@@ -0,0 +1,76 @@
|
||||
/*!
|
||||
* reveal.js Mermaid plugin
|
||||
*/
|
||||
|
||||
import mermaid from "mermaid/dist/mermaid.esm.mjs";
|
||||
|
||||
async function renderMermaid({ el, beforeRender, afterRender }) {
|
||||
const beforeRenderRes = await beforeRender?.(el);
|
||||
|
||||
if (beforeRenderRes === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Using textContent not innerHTML, because innerHTML will get escaped code (eg: get --> instead of -->).
|
||||
const graphDefinition = el.textContent.trim();
|
||||
|
||||
try {
|
||||
const { svg: svgCode } = await mermaid.render(
|
||||
`mermaid-${Math.random().toString(36).substring(2)}`,
|
||||
graphDefinition
|
||||
);
|
||||
el.innerHTML = svgCode;
|
||||
|
||||
await afterRender?.(el);
|
||||
} catch (error) {
|
||||
let errorStr = "";
|
||||
if (error?.str) {
|
||||
// From mermaid 9.1.4, error.message does not exists anymore
|
||||
errorStr = error.str;
|
||||
}
|
||||
if (error?.message) {
|
||||
errorStr = error.message;
|
||||
}
|
||||
console.error(errorStr, { error, graphDefinition, el });
|
||||
el.innerHTML = errorStr;
|
||||
}
|
||||
}
|
||||
|
||||
function getRenderMermaidEl({ beforeRender, afterRender }) {
|
||||
return function renderMermaidEl(el) {
|
||||
return renderMermaid({
|
||||
el,
|
||||
beforeRender,
|
||||
afterRender,
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
const Plugin = {
|
||||
id: "mermaid",
|
||||
|
||||
init: function (reveal) {
|
||||
const { ...mermaidConfig } = reveal.getConfig().mermaid || {};
|
||||
const { ...mermaidPluginConfig } = reveal.getConfig().mermaidPlugin || {};
|
||||
|
||||
const renderMermaidEl = getRenderMermaidEl({
|
||||
beforeRender: mermaidPluginConfig.beforeRender,
|
||||
afterRender: mermaidPluginConfig.afterRender,
|
||||
});
|
||||
|
||||
mermaid.initialize({
|
||||
// The node size will be calculated incorrectly if set `startOnLoad: start`,
|
||||
// so we need to manually render.
|
||||
startOnLoad: false,
|
||||
...mermaidConfig,
|
||||
});
|
||||
|
||||
const mermaidEls = reveal.getRevealElement().querySelectorAll(".mermaid");
|
||||
|
||||
Array.from(mermaidEls).forEach(function (el) {
|
||||
renderMermaidEl(el);
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
export default () => Plugin;
|
||||
Reference in new issue
Block a user