lollms-webui/utilities/execution_engines/assets/viz-standalone.js

10 lines
1.3 MiB
JavaScript
Raw Normal View History

2024-05-07 21:20:20 +00:00
/*!
Viz.js 3.2.4
Copyright (c) 2023 Michael Daines
This distribution contains other software in object code form:
Graphviz https://www.graphviz.org
Expat https://libexpat.github.io
*/
!function(A,I){"object"==typeof exports&&"undefined"!=typeof module?I(exports):"function"==typeof define&&define.amd?define(["exports"],I):I((A="undefined"!=typeof globalThis?globalThis:A||self).Viz={})}(this,(function(A){"use strict";var I=function(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var I,g=A;g.ready=new Promise(((A,g)=>{I=A}));var Q,C,B,E,D,w,i,o,G,M=A=>console.log(A);function R(A){throw A}function F(){var A=G.buffer;C=new Int8Array(A),B=new Int16Array(A),D=new Uint8Array(A),E=new Int32Array(A),w=new Uint32Array(A),i=new Float32Array(A),o=new Float64Array(A)}g.agerrMessages=[],g.stderrMessages=[],Q=A=>g.stderrMessages.push(A);var y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,h=(A,I,g)=>{for(var Q=I+g,C=I;A[C]&&!(C>=Q);)++C;if(C-I>16&&A.buffer&&y)return y.decode(A.subarray(I,C));for(var B="";I<C;){var E=A[I++];if(128&E){var D=63&A[I++];if(192!=(224&E)){var w=63&A[I++];if((E=224==(240&E)?(15&E)<<12|D<<6|w:(7&E)<<18|D<<12|w<<6|63&A[I++])<65536)B+=String.fromCharCode(E);else{var i=E-65536;B+=String.fromCharCode(55296|i>>10,56320|1023&i)}}else B+=String.fromCharCode((31&E)<<6|D)}else B+=String.fromCharCode(E)}return B},K=(A,I)=>A?h(D,A,I):"";function s(A){this.excPtr=A,this.ptr=A-24,this.set_type=function(A){w[this.ptr+4>>2]=A},this.get_type=function(){return w[this.ptr+4>>2]},this.set_destructor=function(A){w[this.ptr+8>>2]=A},this.get_destructor=function(){return w[this.ptr+8>>2]},this.set_caught=function(A){A=A?1:0,C[this.ptr+12>>0]=A},this.get_caught=function(){return 0!=C[this.ptr+12>>0]},this.set_rethrown=function(A){A=A?1:0,C[this.ptr+13>>0]=A},this.get_rethrown=function(){return 0!=C[this.ptr+13>>0]},this.init=function(A,I){this.set_adjusted_ptr(0),this.set_type(A),this.set_destructor(I)},this.set_adjusted_ptr=function(A){w[this.ptr+16>>2]=A},this.get_adjusted_ptr=function(){return w[this.ptr+16>>2]},this.get_exception_ptr=function(){if(l(this.get_type()))return w[this.excPtr>>2];var A=this.get_adjusted_ptr();return 0!==A?A:this.excPtr}}var N=A=>{var I=(A-G.buffer.byteLength+65535)/65536;try{return G.grow(I),F(),1}catch(A){}},k={},L=()=>{if(!L.strings){var A={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:"./this.program"};for(var I in k)void 0===k[I]?delete A[I]:A[I]=k[I];var g=[];for(var I in A)g.push(`${I}=${A[I]}`);L.strings=g}return L.strings};var U=[null,[],[]],S=(A,I)=>{var g=U[A];0===I||10===I?((1===A?M:Q)(h(g,0)),g.length=0):g.push(I)},Y=A=>A%4==0&&(A%100!=0||A%400==0),J=[31,29,31,30,31,30,31,31,30,31,30,31],c=[31,28,31,30,31,30,31,31,30,31,30,31],a=A=>{for(var I=0,g=0;g<A.length;++g){var Q=A.charCodeAt(g);Q<=127?I++:Q<=2047?I+=2:Q>=55296&&Q<=57343?(I+=4,++g):I+=3}return I},H=(A,I,g,Q)=>{if(!(Q>0))return 0;for(var C=g,B=g+Q-1,E=0;E<A.length;++E){var D=A.charCodeAt(E);if(D>=55296&&D<=57343)D=65536+((1023&D)<<10)|1023&A.charCodeAt(++E);if(D<=127){if(g>=B)break;I[g++]=D}else if(D<=2047){if(g+1>=B)break;I[g++]=192|D>>6,I[g++]=128|63&D}else if(D<=65535){if(g+2>=B)break;I[g++]=224|D>>12,I[g++]=128|D>>6&63,I[g++]=128|63&D}else{if(g+3>=B)break;I[g++]=240|D>>18,I[g++]=128|D>>12&63,I[g++]=128|D>>6&63,I[g++]=128|63&D}}return I[g]=0,g-C};var Z=(A,I)=>{C.set(A,I)},q=(A,I,g,Q)=>{var C=w[Q+40>>2],B={tm_sec:E[Q>>2],tm_min:E[Q+4>>2],tm_hour:E[Q+8>>2],tm_mday:E[Q+12>>2],tm_mon:E[Q+16>>2],tm_year:E[Q+20>>2],tm_wday:E[Q+24>>2],tm_yday:E[Q+28>>2],tm_isdst:E[Q+32>>2],tm_gmtoff:E[Q+36>>2],tm_zone:C?K(C):""},D=K(g),i={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var o in i)D=D.replace(new RegExp(o,"g"),i[o]);var G=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],M=["January","February","March","A