@kestra-io/ui-libs 0.0.216 → 0.0.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/misc/Collapsible.vue.d.ts.map +1 -1
- package/dist/components/plugins/CollapsibleProperties.vue.d.ts +2 -0
- package/dist/components/plugins/CollapsibleProperties.vue.d.ts.map +1 -1
- package/dist/components/plugins/SchemaToHtml.vue.d.ts +2 -0
- package/dist/components/plugins/SchemaToHtml.vue.d.ts.map +1 -1
- package/dist/kestra-index.cjs.js +3 -3
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +56 -51
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/ui-libs.css +1 -1
- package/package.json +1 -1
- package/src/components/misc/Collapsible.vue +21 -21
- package/src/components/plugins/CollapsibleProperties.vue +6 -3
- package/src/components/plugins/SchemaToHtml.vue +5 -2
- package/src/utils/plugins.ts +2 -2
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Dh=Object.create;var rs=Object.defineProperty;var Ph=Object.getOwnPropertyDescriptor;var Bh=Object.getOwnPropertyNames;var Vh=Object.getPrototypeOf,xh=Object.prototype.hasOwnProperty;var Mh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Bh(t))!xh.call(e,o)&&o!==n&&rs(e,o,{get:()=>t[o],enumerable:!(r=Ph(t,o))||r.enumerable});return e};var $h=(e,t,n)=>(n=e!=null?Dh(Vh(e)):{},Mh(t||!e||!e.__esModule?rs(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vt=require("yaml"),L=require("./FlowYamlUtils-CwE38P6I.cjs"),i=require("vue"),qh=require("humanize-duration"),$t=require("moment"),Fh=require("moment-timezone"),te=require("@vue-flow/core"),Dn=require("@vue-flow/controls"),Uh=require("@popperjs/core"),on=require("vue-router"),nt={TASKS:"TASKS",TRIGGERS:"TRIGGERS",TASK_RUNNERS:"TASK_RUNNERS"},H={EDIT:"edit",DELETE:"delete",SHOW_DESCRIPTION:"showDescription",COLLAPSE:"collapse",EXPAND:"expand",OPEN_LINK:"openLink",ADD_TASK:"addTask",SHOW_LOGS:"showLogs",MOUSE_OVER:"mouseover",MOUSE_LEAVE:"mouseleave",ADD_ERROR:"addError",EXPAND_DEPENDENCIES:"expandDependencies",SHOW_CONDITION:"showCondition"},ct="cluster_",Hh={EXECUTIONS:"executions",TASKRUNS:"taskruns"},Gh={ALL:"all",ERROR:"error",HIDDEN:"hidden",DEFAULT:"all"},et={TASK_WIDTH:184,TASK_HEIGHT:44,TRIGGER_WIDTH:184,TRIGGER_HEIGHT:44,DOT_WIDTH:5,DOT_HEIGHT:5,COLLAPSED_CLUSTER_WIDTH:150,COLLAPSED_CLUSTER_HEIGHT:44,TRIGGER_CLUSTER_WIDTH:350,TRIGGER_CLUSTER_HEIGHT:180},zh={STORAGE_KEY:"view-type",SOURCE:"source",SOURCE_TOPOLOGY:"source-topology",SOURCE_DOC:"source-doc",TOPOLOGY:"topology",SOURCE_BLUEPRINTS:"source-blueprints"},jh={DISPLAY_EXECUTIONS_COLUMNS:"displayExecutionsColumns",DISPLAY_FLOW_EXECUTIONS_COLUMNS:"displayFlowExecutionsColumns",SELECTED_TENANT:"selectedTenant",EXECUTE_FLOW_BEHAVIOUR:"executeFlowBehaviour",SHOW_CHART:"showChart",SHOW_FLOWS_CHART:"showFlowsChart",SHOW_LOGS_CHART:"showLogsChart",DEFAULT_NAMESPACE:"defaultNamespace",LATEST_NAMESPACE:"latestNamespace",PAGINATION_SIZE:"paginationSize",IMPERSONATE:"impersonate",EDITOR_VIEW_TYPE:"editorViewType"},Wh={SAME_TAB:"same tab",NEW_TAB:"new tab"},Kh={INPROGRESS:"IN-PROGRESS"},Yh={lineWidth:0},is=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],Xh={stringify:L.stringify,parse:L.parse,pairsToMap:L.pairsToMap,extractTask(e,t){for(const n of is){const r=L.extractBlock({source:e,section:n,key:t});if(r)return r}},_extractTask(e,t,n){function r(a){if(a){if(a instanceof vt.YAMLMap&&a.get("type")!==void 0&&t===a.get("id"))return n?n(a):a;if(a.items)for(const[s,l]of a.items.entries()){let u;if(l instanceof vt.YAMLMap?u=r(l):u=r(l.value),u&&(n&&(a instanceof vt.YAMLMap?a.set(l.key.value,u):a.items[s]=u),!n&&u))return u}}}const o=r(e.contents);if(o!==void 0)return n?new vt.Document(o):new vt.Document(o)},replaceTaskInDocument(e,t,n,r="tasks",o="id"){return L.replaceBlockInDocument({source:e,section:r,keyName:o,key:t,newContent:n})},sort:L.sort,getAllCharts:L.getAllCharts,getChartAtPosition:L.getChartAtPosition,localizeElementAtIndex:L.localizeElementAtIndex,getTaskType:L.getTypeAtPosition,swapTasks(e,t,n){const r=vt.parseDocument(e),o=this._extractTask(r,t),a=this._extractTask(r,n);return vt.visit(r,{Pair(s,l){if(l.key.value==="dependsOn"&&l.value.items.map(u=>u.value).includes(n))throw{message:"dependency task",messageOptions:{taskId:n}}}}),this._extractTask(r,t,()=>a),this._extractTask(r,n,()=>o),r.toString(Yh)},insertTask(e,t,n,r,o){return L.insertBlock({source:e,section:"tasks",newBlock:n,refKey:t,position:r,parentKey:o})},insertSection(e,t,n){return L.insertBlock({source:t,section:e,newBlock:n})},insertErrorInFlowable:L.insertErrorInFlowable,deleteSection(e,t,n){return L.deleteBlock({source:e,section:t,key:n})},deleteTask(e,t,n){return(n===nt.TASKS?["tasks","errors"]:["triggers"]).reduce((o,a)=>L.deleteBlock({source:o,section:a,key:t}),e)},getLastTask(e,t){return L.getLastBlock({source:e,section:"tasks",parentKey:t})},checkTaskAlreadyExist(e,t){return L.checkBlockAlreadyExists({source:e,section:"tasks",newContent:t,keyName:"id"})},isParentChildrenRelation(e,t,n){return L.isParentChildrenRelation({source:e,sections:is,key1:t,key2:n,keyName:"id"})},replaceIdAndNamespace:L.replaceIdAndNamespace,updateMetadata:L.updateMetadata,cleanMetadata:L.cleanMetadata,getMetadata:L.getMetadata,deleteMetadata:L.deleteMetadata,flowHaveTasks:L.flowHaveTasks,extractPluginDefault:L.extractPluginDefault,replacePluginDefaultsInDocument:L.replacePluginDefaultsInDocument,deletePluginDefaults:L.deletePluginDefaults,extractFieldFromMaps:L.extractFieldFromMaps,getVersionAtPosition:L.getVersionAtPosition},Fe=e=>{const t=document.querySelector(":root"),n=t?getComputedStyle(t):null;return n==null?void 0:n.getPropertyValue(e)};var Pn,os;function Zh(){if(os)return Pn;os=1;function e(t){return function(n,r,o){for(var a=-1,s=Object(n),l=o(n),u=l.length;u--;){var d=l[t?u:++a];if(r(s[d],d,s)===!1)break}return n}}return Pn=e,Pn}var Bn,as;function La(){if(as)return Bn;as=1;var e=Zh(),t=e();return Bn=t,Bn}var Vn,ss;function Ta(){if(ss)return Vn;ss=1;var e=La(),t=L.requireKeys();function n(r,o){return r&&e(r,o,t)}return Vn=n,Vn}var xn,ls;function Jh(){if(ls)return xn;ls=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return xn=t,xn}var Mn,us;function Qh(){if(us)return Mn;us=1;function e(t){return this.__data__.has(t)}return Mn=e,Mn}var $n,cs;function Ed(){if(cs)return $n;cs=1;var e=L.require_MapCache(),t=Jh(),n=Qh();function r(o){var a=-1,s=o==null?0:o.length;for(this.__data__=new e;++a<s;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,$n=r,$n}var qn,ds;function em(){if(ds)return qn;ds=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return qn=e,qn}var Fn,fs;function yd(){if(fs)return Fn;fs=1;function e(t,n){return t.has(n)}return Fn=e,Fn}var Un,hs;function bd(){if(hs)return Un;hs=1;var e=Ed(),t=em(),n=yd(),r=1,o=2;function a(s,l,u,d,c,f){var h=u&r,m=s.length,C=l.length;if(m!=C&&!(h&&C>m))return!1;var E=f.get(s),_=f.get(l);if(E&&_)return E==l&&_==s;var p=-1,v=!0,y=u&o?new e:void 0;for(f.set(s,l),f.set(l,s);++p<m;){var g=s[p],k=l[p];if(d)var N=h?d(k,g,p,l,s,f):d(g,k,p,s,l,f);if(N!==void 0){if(N)continue;v=!1;break}if(y){if(!t(l,function(b,T){if(!n(y,T)&&(g===b||c(g,b,u,d,f)))return y.push(T)})){v=!1;break}}else if(!(g===k||c(g,k,u,d,f))){v=!1;break}}return f.delete(s),f.delete(l),v}return Un=a,Un}var Hn,ms;function tm(){if(ms)return Hn;ms=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return Hn=e,Hn}var Gn,ps;function Ia(){if(ps)return Gn;ps=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Gn=e,Gn}var zn,gs;function nm(){if(gs)return zn;gs=1;var e=L.require_Symbol(),t=L.require_Uint8Array(),n=L.requireEq(),r=bd(),o=tm(),a=Ia(),s=1,l=2,u="[object Boolean]",d="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",m="[object RegExp]",C="[object Set]",E="[object String]",_="[object Symbol]",p="[object ArrayBuffer]",v="[object DataView]",y=e?e.prototype:void 0,g=y?y.valueOf:void 0;function k(N,b,T,A,R,U,V){switch(T){case v:if(N.byteLength!=b.byteLength||N.byteOffset!=b.byteOffset)return!1;N=N.buffer,b=b.buffer;case p:return!(N.byteLength!=b.byteLength||!U(new t(N),new t(b)));case u:case d:case h:return n(+N,+b);case c:return N.name==b.name&&N.message==b.message;case m:case E:return N==b+"";case f:var j=o;case C:var Z=A&s;if(j||(j=a),N.size!=b.size&&!Z)return!1;var M=V.get(N);if(M)return M==b;A|=l,V.set(N,b);var D=r(j(N),j(b),A,R,U,V);return V.delete(N),D;case _:if(g)return g.call(N)==g.call(b)}return!1}return zn=k,zn}var jn,vs;function rm(){if(vs)return jn;vs=1;var e=L.require_getAllKeys(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,s,l,u,d,c){var f=l&t,h=e(a),m=h.length,C=e(s),E=C.length;if(m!=E&&!f)return!1;for(var _=m;_--;){var p=h[_];if(!(f?p in s:r.call(s,p)))return!1}var v=c.get(a),y=c.get(s);if(v&&y)return v==s&&y==a;var g=!0;c.set(a,s),c.set(s,a);for(var k=f;++_<m;){p=h[_];var N=a[p],b=s[p];if(u)var T=f?u(b,N,p,s,a,c):u(N,b,p,a,s,c);if(!(T===void 0?N===b||d(N,b,l,u,c):T)){g=!1;break}k||(k=p=="constructor")}if(g&&!k){var A=a.constructor,R=s.constructor;A!=R&&"constructor"in a&&"constructor"in s&&!(typeof A=="function"&&A instanceof A&&typeof R=="function"&&R instanceof R)&&(g=!1)}return c.delete(a),c.delete(s),g}return jn=o,jn}var Wn,_s;function im(){if(_s)return Wn;_s=1;var e=L.require_Stack(),t=bd(),n=nm(),r=rm(),o=L.require_getTag(),a=L.requireIsArray(),s=L.requireIsBuffer(),l=L.requireIsTypedArray(),u=1,d="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,m=h.hasOwnProperty;function C(E,_,p,v,y,g){var k=a(E),N=a(_),b=k?c:o(E),T=N?c:o(_);b=b==d?f:b,T=T==d?f:T;var A=b==f,R=T==f,U=b==T;if(U&&s(E)){if(!s(_))return!1;k=!0,A=!1}if(U&&!A)return g||(g=new e),k||l(E)?t(E,_,p,v,y,g):n(E,_,b,p,v,y,g);if(!(p&u)){var V=A&&m.call(E,"__wrapped__"),j=R&&m.call(_,"__wrapped__");if(V||j){var Z=V?E.value():E,M=j?_.value():_;return g||(g=new e),y(Z,M,p,v,g)}}return U?(g||(g=new e),r(E,_,p,v,y,g)):!1}return Wn=C,Wn}var Kn,Es;function kd(){if(Es)return Kn;Es=1;var e=im(),t=L.requireIsObjectLike();function n(r,o,a,s,l){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,s,n,l)}return Kn=n,Kn}var Yn,ys;function om(){if(ys)return Yn;ys=1;var e=L.require_Stack(),t=kd(),n=1,r=2;function o(a,s,l,u){var d=l.length,c=d,f=!u;if(a==null)return!c;for(a=Object(a);d--;){var h=l[d];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++d<c;){h=l[d];var m=h[0],C=a[m],E=h[1];if(f&&h[2]){if(C===void 0&&!(m in a))return!1}else{var _=new e;if(u)var p=u(C,E,m,a,s,_);if(!(p===void 0?t(E,C,n|r,u,_):p))return!1}}return!0}return Yn=o,Yn}var Xn,bs;function Cd(){if(bs)return Xn;bs=1;var e=L.requireIsObject();function t(n){return n===n&&!e(n)}return Xn=t,Xn}var Zn,ks;function am(){if(ks)return Zn;ks=1;var e=Cd(),t=L.requireKeys();function n(r){for(var o=t(r),a=o.length;a--;){var s=o[a],l=r[s];o[a]=[s,l,e(l)]}return o}return Zn=n,Zn}var Jn,Cs;function Nd(){if(Cs)return Jn;Cs=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Jn=e,Jn}var Qn,Ns;function sm(){if(Ns)return Qn;Ns=1;var e=om(),t=am(),n=Nd();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===o||e(s,o,a)}}return Qn=r,Qn}var er,ws;function Bt(){if(ws)return er;ws=1;var e=L.require_baseGetTag(),t=L.requireIsObjectLike(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return er=r,er}var tr,Ss;function Oa(){if(Ss)return tr;Ss=1;var e=L.requireIsArray(),t=Bt(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(a,s){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return tr=o,tr}var nr,Ls;function lm(){if(Ls)return nr;Ls=1;var e=L.require_MapCache(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var s=arguments,l=o?o.apply(this,s):s[0],u=a.cache;if(u.has(l))return u.get(l);var d=r.apply(this,s);return a.cache=u.set(l,d)||u,d};return a.cache=new(n.Cache||e),a}return n.Cache=e,nr=n,nr}var rr,Ts;function um(){if(Ts)return rr;Ts=1;var e=lm(),t=500;function n(r){var o=e(r,function(s){return a.size===t&&a.clear(),s}),a=o.cache;return o}return rr=n,rr}var ir,Is;function cm(){if(Is)return ir;Is=1;var e=um(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(s,l,u,d){a.push(u?d.replace(n,"$1"):l||s)}),a});return ir=r,ir}var or,Os;function gn(){if(Os)return or;Os=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return or=e,or}var ar,As;function dm(){if(As)return ar;As=1;var e=L.require_Symbol(),t=gn(),n=L.requireIsArray(),r=Bt(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function s(l){if(typeof l=="string")return l;if(n(l))return t(l,s)+"";if(r(l))return a?a.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return ar=s,ar}var sr,Rs;function wd(){if(Rs)return sr;Rs=1;var e=dm();function t(n){return n==null?"":e(n)}return sr=t,sr}var lr,Ds;function vn(){if(Ds)return lr;Ds=1;var e=L.requireIsArray(),t=Oa(),n=cm(),r=wd();function o(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return lr=o,lr}var ur,Ps;function Gt(){if(Ps)return ur;Ps=1;var e=Bt();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ur=t,ur}var cr,Bs;function _n(){if(Bs)return cr;Bs=1;var e=vn(),t=Gt();function n(r,o){o=e(o,r);for(var a=0,s=o.length;r!=null&&a<s;)r=r[t(o[a++])];return a&&a==s?r:void 0}return cr=n,cr}var dr,Vs;function fm(){if(Vs)return dr;Vs=1;var e=_n();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return dr=t,dr}var fr,xs;function hm(){if(xs)return fr;xs=1;function e(t,n){return t!=null&&n in Object(t)}return fr=e,fr}var hr,Ms;function Sd(){if(Ms)return hr;Ms=1;var e=vn(),t=L.requireIsArguments(),n=L.requireIsArray(),r=L.require_isIndex(),o=L.requireIsLength(),a=Gt();function s(l,u,d){u=e(u,l);for(var c=-1,f=u.length,h=!1;++c<f;){var m=a(u[c]);if(!(h=l!=null&&d(l,m)))break;l=l[m]}return h||++c!=f?h:(f=l==null?0:l.length,!!f&&o(f)&&r(m,f)&&(n(l)||t(l)))}return hr=s,hr}var mr,$s;function Ld(){if($s)return mr;$s=1;var e=hm(),t=Sd();function n(r,o){return r!=null&&t(r,o,e)}return mr=n,mr}var pr,qs;function mm(){if(qs)return pr;qs=1;var e=kd(),t=fm(),n=Ld(),r=Oa(),o=Cd(),a=Nd(),s=Gt(),l=1,u=2;function d(c,f){return r(c)&&o(f)?a(s(c),f):function(h){var m=t(h,c);return m===void 0&&m===f?n(h,c):e(f,m,l|u)}}return pr=d,pr}var gr,Fs;function kt(){if(Fs)return gr;Fs=1;function e(t){return t}return gr=e,gr}var vr,Us;function Td(){if(Us)return vr;Us=1;function e(t){return function(n){return n==null?void 0:n[t]}}return vr=e,vr}var _r,Hs;function pm(){if(Hs)return _r;Hs=1;var e=_n();function t(n){return function(r){return e(r,n)}}return _r=t,_r}var Er,Gs;function gm(){if(Gs)return Er;Gs=1;var e=Td(),t=pm(),n=Oa(),r=Gt();function o(a){return n(a)?e(r(a)):t(a)}return Er=o,Er}var yr,zs;function ot(){if(zs)return yr;zs=1;var e=sm(),t=mm(),n=kt(),r=L.requireIsArray(),o=gm();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):o(s)}return yr=a,yr}var br,js;function Id(){if(js)return br;js=1;var e=L.require_baseAssignValue(),t=Ta(),n=ot();function r(o,a){var s={};return a=n(a,3),t(o,function(l,u,d){e(s,u,a(l,u,d))}),s}return br=r,br}var vm=Id();const Wt=L.getDefaultExportFromCjs(vm),K=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},_m={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Em=["aria-hidden","aria-label"],ym=["fill","width","height"],bm={d:"M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},km={key:0};function Cm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",bm,[n.title?(i.openBlock(),i.createElementBlock("title",km,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ym))],16,Em)}const Ws=K(_m,[["render",Cm]]),Nm={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wm=["aria-hidden","aria-label"],Sm=["fill","width","height"],Lm={d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"},Tm={key:0};function Im(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Lm,[n.title?(i.openBlock(),i.createElementBlock("title",Tm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Sm))],16,wm)}const Om=K(Nm,[["render",Im]]),Am={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rm=["aria-hidden","aria-label"],Dm=["fill","width","height"],Pm={d:"M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Bm={key:0};function Vm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon play-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Pm,[n.title?(i.openBlock(),i.createElementBlock("title",Bm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Dm))],16,Rm)}const xm=K(Am,[["render",Vm]]),Mm={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$m=["aria-hidden","aria-label"],qm=["fill","width","height"],Fm={d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},Um={key:0};function Hm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon close-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Fm,[n.title?(i.openBlock(),i.createElementBlock("title",Um,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,qm))],16,$m)}const sa=K(Mm,[["render",Hm]]),Gm={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zm=["aria-hidden","aria-label"],jm=["fill","width","height"],Wm={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9"},Km={key:0};function Ym(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Wm,[n.title?(i.openBlock(),i.createElementBlock("title",Km,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,jm))],16,zm)}const Xm=K(Gm,[["render",Ym]]),Zm={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jm=["aria-hidden","aria-label"],Qm=["fill","width","height"],ep={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M8,8H10V16H8M16,8V16L11,12"},tp={key:0};function np(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ep,[n.title?(i.openBlock(),i.createElementBlock("title",tp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Qm))],16,Jm)}const rp=K(Zm,[["render",np]]),ip={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},op=["aria-hidden","aria-label"],ap=["fill","width","height"],sp={d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},lp={key:0};function up(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",sp,[n.title?(i.openBlock(),i.createElementBlock("title",lp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ap))],16,op)}const la=K(ip,[["render",up]]),cp={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},dp=["aria-hidden","aria-label"],fp=["fill","width","height"],hp={d:"M2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12M10.5,12A1.5,1.5 0 0,0 12,13.5A1.5,1.5 0 0,0 13.5,12A1.5,1.5 0 0,0 12,10.5A1.5,1.5 0 0,0 10.5,12M10.5,17.5A1.5,1.5 0 0,0 12,19A1.5,1.5 0 0,0 13.5,17.5A1.5,1.5 0 0,0 12,16A1.5,1.5 0 0,0 10.5,17.5M10.5,6.5A1.5,1.5 0 0,0 12,8A1.5,1.5 0 0,0 13.5,6.5A1.5,1.5 0 0,0 12,5A1.5,1.5 0 0,0 10.5,6.5Z"},mp={key:0};function pp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",hp,[n.title?(i.openBlock(),i.createElementBlock("title",mp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,fp))],16,dp)}const gp=K(cp,[["render",pp]]),vp={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_p=["aria-hidden","aria-label"],Ep=["fill","width","height"],yp={d:"M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7M9 9H11V15H9M13 9H15V15H13"},bp={key:0};function kp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon motion-pause-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",yp,[n.title?(i.openBlock(),i.createElementBlock("title",bp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Ep))],16,_p)}const Cp=K(vp,[["render",kp]]),Np={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wp=["aria-hidden","aria-label"],Sp=["fill","width","height"],Lp={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},Tp={key:0};function Ip(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon refresh-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Lp,[n.title?(i.openBlock(),i.createElementBlock("title",Tp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Sp))],16,wp)}const Ks=K(Np,[["render",Ip]]),Op={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ap=["aria-hidden","aria-label"],Rp=["fill","width","height"],Dp={d:"M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z"},Pp={key:0};function Bp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon cancel-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Dp,[n.title?(i.openBlock(),i.createElementBlock("title",Pp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Rp))],16,Ap)}const Ys=K(Op,[["render",Bp]]),re=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:gp,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:rp,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:Om,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:xm,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:sa,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:Xm,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:la,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:sa,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:Ws,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:Ys,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:Ys,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:Cp,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:Ks,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:Ks,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:Ws,isRunning:!1,isKillable:!1,isFailed:!1}});class Ce{static get CREATED(){return re.CREATED.name}static get RESTARTED(){return re.RESTARTED.name}static get SUCCESS(){return re.SUCCESS.name}static get RUNNING(){return re.RUNNING.name}static get KILLING(){return re.KILLING.name}static get KILLED(){return re.KILLED.name}static get FAILED(){return re.FAILED.name}static get WARNING(){return re.WARNING.name}static get PAUSED(){return re.PAUSED.name}static get CANCELLED(){return re.CANCELLED.name}static get QUEUED(){return re.QUEUED.name}static get RETRYING(){return re.RETRYING.name}static get RETRIED(){return re.RETRIED.name}static get BREAKPOINT(){return re.BREAKPOINT.name}static isRunning(t){return re[t]&&re[t].isRunning}static isKillable(t){return re[t]&&re[t].isKillable}static isPaused(t){return re[t]&&re[t]===re.PAUSED}static isFailed(t){return re[t]&&re[t].isFailed}static isQueued(t){return re[t]&&re[t]===re.QUEUED}static allStates(){return Wt(re,t=>({key:t.name,icon:t.icon,color:""}))}static arrayAllStates(){return Object.values(re)}static colorClass(){return Wt(re,t=>t.colorClass)}static color(){return Wt(re,t=>Fe("--bs-"+t.colorClass))}static getStateColor(t){return re[t].color}static icon(){return Wt(re,t=>t.icon)}static getTerminatedStates(){return Object.values(re).filter(t=>!t.isRunning).map(t=>t.name)}}const Vp={en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"},fr:{y:()=>"a",mo:()=>"mo",w:()=>"se",d:()=>"j",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}},xp="dateFormat",Mp="timezone",ge={capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),dateFilter:(e,t)=>{var a,s;const n=(a=i.getCurrentInstance())==null?void 0:a.appContext.config.globalProperties.$moment().locale(),r=(s=i.getCurrentInstance())==null?void 0:s.appContext.config.globalProperties.$moment(e).locale(n);let o;return t==="iso"?o="YYYY-MM-DD HH:mm:ss.SSS":o=t??localStorage.getItem(xp)??"llll",r.tz(localStorage.getItem(Mp)??Fh.tz.guess()).format(o)},splitFirst(e,t){return e.split(t).slice(1).join(t)},duration(e){return $t.duration(e,$t.ISO_8601).asMilliseconds()/1e3},humanDuration(e,t){return t=t||{maxDecimalPoints:2},t.spacer="",t.language=localStorage.getItem("lang")||"en",t.languages=Vp,t.largest=2,typeof e!="number"&&(e=this.duration(e)),qh(e*1e3,t).replace(/\.([0-9])s$/i,".$10s")},afterLastDot(e){return e.split(".").pop()},distinctFilter(e,t,n){return n.indexOf(e)===t}};function Aa(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kr,Xs;function $p(){if(Xs)return kr;Xs=1;var e=L.require_baseClone(),t=4;function n(r){return e(r,t)}return kr=n,kr}var Cr,Zs;function Ra(){if(Zs)return Cr;Zs=1;function e(t){return function(){return t}}return Cr=e,Cr}var Nr,Js;function qp(){if(Js)return Nr;Js=1;var e=L.requireIsArrayLike();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var s=o.length,l=r?s:-1,u=Object(o);(r?l--:++l<s)&&a(u[l],l,u)!==!1;);return o}}return Nr=t,Nr}var wr,Qs;function En(){if(Qs)return wr;Qs=1;var e=Ta(),t=qp(),n=t(e);return wr=n,wr}var Sr,el;function Od(){if(el)return Sr;el=1;var e=kt();function t(n){return typeof n=="function"?n:e}return Sr=t,Sr}var Lr,tl;function Ad(){if(tl)return Lr;tl=1;var e=L.require_arrayEach(),t=En(),n=Od(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:t;return l(a,n(s))}return Lr=o,Lr}var Tr,nl;function Rd(){return nl||(nl=1,Tr=Ad()),Tr}var Ir,rl;function Fp(){if(rl)return Ir;rl=1;var e=En();function t(n,r){var o=[];return e(n,function(a,s,l){r(a,s,l)&&o.push(a)}),o}return Ir=t,Ir}var Or,il;function Dd(){if(il)return Or;il=1;var e=L.require_arrayFilter(),t=Fp(),n=ot(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:t;return l(a,n(s,3))}return Or=o,Or}var Ar,ol;function Up(){if(ol)return Ar;ol=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r,o){return r!=null&&t.call(r,o)}return Ar=n,Ar}var Rr,al;function Pd(){if(al)return Rr;al=1;var e=Up(),t=Sd();function n(r,o){return r!=null&&t(r,o,e)}return Rr=n,Rr}var Dr,sl;function Hp(){if(sl)return Dr;sl=1;var e=L.require_baseKeys(),t=L.require_getTag(),n=L.requireIsArguments(),r=L.requireIsArray(),o=L.requireIsArrayLike(),a=L.requireIsBuffer(),s=L.require_isPrototype(),l=L.requireIsTypedArray(),u="[object Map]",d="[object Set]",c=Object.prototype,f=c.hasOwnProperty;function h(m){if(m==null)return!0;if(o(m)&&(r(m)||typeof m=="string"||typeof m.splice=="function"||a(m)||l(m)||n(m)))return!m.length;var C=t(m);if(C==u||C==d)return!m.size;if(s(m))return!e(m).length;for(var E in m)if(f.call(m,E))return!1;return!0}return Dr=h,Dr}var Pr,ll;function Bd(){if(ll)return Pr;ll=1;function e(t){return t===void 0}return Pr=e,Pr}var Br,ul;function Vd(){if(ul)return Br;ul=1;var e=En(),t=L.requireIsArrayLike();function n(r,o){var a=-1,s=t(r)?Array(r.length):[];return e(r,function(l,u,d){s[++a]=o(l,u,d)}),s}return Br=n,Br}var Vr,cl;function xd(){if(cl)return Vr;cl=1;var e=gn(),t=ot(),n=Vd(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:n;return l(a,t(s,3))}return Vr=o,Vr}var xr,dl;function Gp(){if(dl)return xr;dl=1;function e(t,n,r,o){var a=-1,s=t==null?0:t.length;for(o&&s&&(r=t[++a]);++a<s;)r=n(r,t[a],a,t);return r}return xr=e,xr}var Mr,fl;function zp(){if(fl)return Mr;fl=1;function e(t,n,r,o,a){return a(t,function(s,l,u){r=o?(o=!1,s):n(r,s,l,u)}),r}return Mr=e,Mr}var $r,hl;function Md(){if(hl)return $r;hl=1;var e=Gp(),t=En(),n=ot(),r=zp(),o=L.requireIsArray();function a(s,l,u){var d=o(s)?e:r,c=arguments.length<3;return d(s,n(l,4),u,c,t)}return $r=a,$r}var qr,ml;function jp(){if(ml)return qr;ml=1;var e=L.require_baseGetTag(),t=L.requireIsArray(),n=L.requireIsObjectLike(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return qr=o,qr}var Fr,pl;function Wp(){if(pl)return Fr;pl=1;var e=Td(),t=e("length");return Fr=t,Fr}var Ur,gl;function Kp(){if(gl)return Ur;gl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+e+o+a+"]");function u(d){return l.test(d)}return Ur=u,Ur}var Hr,vl;function Yp(){if(vl)return Hr;vl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="["+e+"]",l="["+o+"]",u="\\ud83c[\\udffb-\\udfff]",d="(?:"+l+"|"+u+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",C=d+"?",E="["+a+"]?",_="(?:"+m+"(?:"+[c,f,h].join("|")+")"+E+C+")*",p=E+C+_,v="(?:"+[c+l+"?",l,f,h,s].join("|")+")",y=RegExp(u+"(?="+u+")|"+v+p,"g");function g(k){for(var N=y.lastIndex=0;y.test(k);)++N;return N}return Hr=g,Hr}var Gr,_l;function Xp(){if(_l)return Gr;_l=1;var e=Wp(),t=Kp(),n=Yp();function r(o){return t(o)?n(o):e(o)}return Gr=r,Gr}var zr,El;function Zp(){if(El)return zr;El=1;var e=L.require_baseKeys(),t=L.require_getTag(),n=L.requireIsArrayLike(),r=jp(),o=Xp(),a="[object Map]",s="[object Set]";function l(u){if(u==null)return 0;if(n(u))return r(u)?o(u):u.length;var d=t(u);return d==a||d==s?u.size:e(u).length}return zr=l,zr}var jr,yl;function Jp(){if(yl)return jr;yl=1;var e=L.require_arrayEach(),t=L.require_baseCreate(),n=Ta(),r=ot(),o=L.require_getPrototype(),a=L.requireIsArray(),s=L.requireIsBuffer(),l=L.requireIsFunction(),u=L.requireIsObject(),d=L.requireIsTypedArray();function c(f,h,m){var C=a(f),E=C||s(f)||d(f);if(h=r(h,4),m==null){var _=f&&f.constructor;E?m=C?new _:[]:u(f)?m=l(_)?t(o(f)):{}:m={}}return(E?e:n)(f,function(p,v,y){return h(m,p,v,y)}),m}return jr=c,jr}var Wr,bl;function Qp(){if(bl)return Wr;bl=1;var e=L.require_Symbol(),t=L.requireIsArguments(),n=L.requireIsArray(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return Wr=o,Wr}var Kr,kl;function Da(){if(kl)return Kr;kl=1;var e=L.require_arrayPush(),t=Qp();function n(r,o,a,s,l){var u=-1,d=r.length;for(a||(a=t),l||(l=[]);++u<d;){var c=r[u];o>0&&a(c)?o>1?n(c,o-1,a,s,l):e(l,c):s||(l[l.length]=c)}return l}return Kr=n,Kr}var Yr,Cl;function eg(){if(Cl)return Yr;Cl=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Yr=e,Yr}var Xr,Nl;function $d(){if(Nl)return Xr;Nl=1;var e=eg(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var s=arguments,l=-1,u=t(s.length-o,0),d=Array(u);++l<u;)d[l]=s[o+l];l=-1;for(var c=Array(o+1);++l<o;)c[l]=s[l];return c[o]=a(d),e(r,this,c)}}return Xr=n,Xr}var Zr,wl;function tg(){if(wl)return Zr;wl=1;var e=Ra(),t=L.require_defineProperty(),n=kt(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return Zr=r,Zr}var Jr,Sl;function ng(){if(Sl)return Jr;Sl=1;var e=800,t=16,n=Date.now;function r(o){var a=0,s=0;return function(){var l=n(),u=t-(l-s);if(s=l,u>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return Jr=r,Jr}var Qr,Ll;function qd(){if(Ll)return Qr;Ll=1;var e=tg(),t=ng(),n=t(e);return Qr=n,Qr}var ei,Tl;function yn(){if(Tl)return ei;Tl=1;var e=kt(),t=$d(),n=qd();function r(o,a){return n(t(o,a,e),o+"")}return ei=r,ei}var ti,Il;function Fd(){if(Il)return ti;Il=1;function e(t,n,r,o){for(var a=t.length,s=r+(o?1:-1);o?s--:++s<a;)if(n(t[s],s,t))return s;return-1}return ti=e,ti}var ni,Ol;function rg(){if(Ol)return ni;Ol=1;function e(t){return t!==t}return ni=e,ni}var ri,Al;function ig(){if(Al)return ri;Al=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return ri=e,ri}var ii,Rl;function og(){if(Rl)return ii;Rl=1;var e=Fd(),t=rg(),n=ig();function r(o,a,s){return a===a?n(o,a,s):e(o,t,s)}return ii=r,ii}var oi,Dl;function ag(){if(Dl)return oi;Dl=1;var e=og();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return oi=t,oi}var ai,Pl;function sg(){if(Pl)return ai;Pl=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return ai=e,ai}var si,Bl;function lg(){if(Bl)return si;Bl=1;function e(){}return si=e,si}var li,Vl;function ug(){if(Vl)return li;Vl=1;var e=L.require_Set(),t=lg(),n=Ia(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return li=o,li}var ui,xl;function cg(){if(xl)return ui;xl=1;var e=Ed(),t=ag(),n=sg(),r=yd(),o=ug(),a=Ia(),s=200;function l(u,d,c){var f=-1,h=t,m=u.length,C=!0,E=[],_=E;if(c)C=!1,h=n;else if(m>=s){var p=d?null:o(u);if(p)return a(p);C=!1,h=r,_=new e}else _=d?[]:E;e:for(;++f<m;){var v=u[f],y=d?d(v):v;if(v=c||v!==0?v:0,C&&y===y){for(var g=_.length;g--;)if(_[g]===y)continue e;d&&_.push(y),E.push(v)}else h(_,y,c)||(_!==E&&_.push(y),E.push(v))}return E}return ui=l,ui}var ci,Ml;function Ud(){if(Ml)return ci;Ml=1;var e=L.requireIsArrayLike(),t=L.requireIsObjectLike();function n(r){return t(r)&&e(r)}return ci=n,ci}var di,$l;function dg(){if($l)return di;$l=1;var e=Da(),t=yn(),n=cg(),r=Ud(),o=t(function(a){return n(e(a,1,r,!0))});return di=o,di}var fi,ql;function fg(){if(ql)return fi;ql=1;var e=gn();function t(n,r){return e(r,function(o){return n[o]})}return fi=t,fi}var hi,Fl;function Hd(){if(Fl)return hi;Fl=1;var e=fg(),t=L.requireKeys();function n(r){return r==null?[]:e(r,t(r))}return hi=n,hi}var mi,Ul;function ze(){if(Ul)return mi;Ul=1;var e;if(typeof Aa=="function")try{e={clone:$p(),constant:Ra(),each:Rd(),filter:Dd(),has:Pd(),isArray:L.requireIsArray(),isEmpty:Hp(),isFunction:L.requireIsFunction(),isUndefined:Bd(),keys:L.requireKeys(),map:xd(),reduce:Md(),size:Zp(),transform:Jp(),union:dg(),values:Hd()}}catch{}return e||(e=window._),mi=e,mi}var pi,Hl;function Pa(){if(Hl)return pi;Hl=1;var e=ze();pi=o;var t="\0",n="\0",r="";function o(c){this._isDirected=e.has(c,"directed")?c.directed:!0,this._isMultigraph=e.has(c,"multigraph")?c.multigraph:!1,this._isCompound=e.has(c,"compound")?c.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(c){return this._label=c,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultNodeLabelFn=c,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return e.keys(this._nodes)},o.prototype.sources=function(){var c=this;return e.filter(this.nodes(),function(f){return e.isEmpty(c._in[f])})},o.prototype.sinks=function(){var c=this;return e.filter(this.nodes(),function(f){return e.isEmpty(c._out[f])})},o.prototype.setNodes=function(c,f){var h=arguments,m=this;return e.each(c,function(C){h.length>1?m.setNode(C,f):m.setNode(C)}),this},o.prototype.setNode=function(c,f){return e.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=f),this):(this._nodes[c]=arguments.length>1?f:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=n,this._children[c]={},this._children[n][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},o.prototype.node=function(c){return this._nodes[c]},o.prototype.hasNode=function(c){return e.has(this._nodes,c)},o.prototype.removeNode=function(c){var f=this;if(e.has(this._nodes,c)){var h=function(m){f.removeEdge(f._edgeObjs[m])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],e.each(this.children(c),function(m){f.setParent(m)}),delete this._children[c]),e.each(e.keys(this._in[c]),h),delete this._in[c],delete this._preds[c],e.each(e.keys(this._out[c]),h),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},o.prototype.setParent=function(c,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=n;else{f+="";for(var h=f;!e.isUndefined(h);h=this.parent(h))if(h===c)throw new Error("Setting "+f+" as parent of "+c+" would create a cycle");this.setNode(f)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=f,this._children[f][c]=!0,this},o.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},o.prototype.parent=function(c){if(this._isCompound){var f=this._parent[c];if(f!==n)return f}},o.prototype.children=function(c){if(e.isUndefined(c)&&(c=n),this._isCompound){var f=this._children[c];if(f)return e.keys(f)}else{if(c===n)return this.nodes();if(this.hasNode(c))return[]}},o.prototype.predecessors=function(c){var f=this._preds[c];if(f)return e.keys(f)},o.prototype.successors=function(c){var f=this._sucs[c];if(f)return e.keys(f)},o.prototype.neighbors=function(c){var f=this.predecessors(c);if(f)return e.union(f,this.successors(c))},o.prototype.isLeaf=function(c){var f;return this.isDirected()?f=this.successors(c):f=this.neighbors(c),f.length===0},o.prototype.filterNodes=function(c){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var h=this;e.each(this._nodes,function(E,_){c(_)&&f.setNode(_,E)}),e.each(this._edgeObjs,function(E){f.hasNode(E.v)&&f.hasNode(E.w)&&f.setEdge(E,h.edge(E))});var m={};function C(E){var _=h.parent(E);return _===void 0||f.hasNode(_)?(m[E]=_,_):_ in m?m[_]:C(_)}return this._isCompound&&e.each(f.nodes(),function(E){f.setParent(E,C(E))}),f},o.prototype.setDefaultEdgeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultEdgeLabelFn=c,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(c,f){var h=this,m=arguments;return e.reduce(c,function(C,E){return m.length>1?h.setEdge(C,E,f):h.setEdge(C,E),E}),this},o.prototype.setEdge=function(){var c,f,h,m,C=!1,E=arguments[0];typeof E=="object"&&E!==null&&"v"in E?(c=E.v,f=E.w,h=E.name,arguments.length===2&&(m=arguments[1],C=!0)):(c=E,f=arguments[1],h=arguments[3],arguments.length>2&&(m=arguments[2],C=!0)),c=""+c,f=""+f,e.isUndefined(h)||(h=""+h);var _=l(this._isDirected,c,f,h);if(e.has(this._edgeLabels,_))return C&&(this._edgeLabels[_]=m),this;if(!e.isUndefined(h)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(f),this._edgeLabels[_]=C?m:this._defaultEdgeLabelFn(c,f,h);var p=u(this._isDirected,c,f,h);return c=p.v,f=p.w,Object.freeze(p),this._edgeObjs[_]=p,a(this._preds[f],c),a(this._sucs[c],f),this._in[f][_]=p,this._out[c][_]=p,this._edgeCount++,this},o.prototype.edge=function(c,f,h){var m=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,c,f,h);return this._edgeLabels[m]},o.prototype.hasEdge=function(c,f,h){var m=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,c,f,h);return e.has(this._edgeLabels,m)},o.prototype.removeEdge=function(c,f,h){var m=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,c,f,h),C=this._edgeObjs[m];return C&&(c=C.v,f=C.w,delete this._edgeLabels[m],delete this._edgeObjs[m],s(this._preds[f],c),s(this._sucs[c],f),delete this._in[f][m],delete this._out[c][m],this._edgeCount--),this},o.prototype.inEdges=function(c,f){var h=this._in[c];if(h){var m=e.values(h);return f?e.filter(m,function(C){return C.v===f}):m}},o.prototype.outEdges=function(c,f){var h=this._out[c];if(h){var m=e.values(h);return f?e.filter(m,function(C){return C.w===f}):m}},o.prototype.nodeEdges=function(c,f){var h=this.inEdges(c,f);if(h)return h.concat(this.outEdges(c,f))};function a(c,f){c[f]?c[f]++:c[f]=1}function s(c,f){--c[f]||delete c[f]}function l(c,f,h,m){var C=""+f,E=""+h;if(!c&&C>E){var _=C;C=E,E=_}return C+r+E+r+(e.isUndefined(m)?t:m)}function u(c,f,h,m){var C=""+f,E=""+h;if(!c&&C>E){var _=C;C=E,E=_}var p={v:C,w:E};return m&&(p.name=m),p}function d(c,f){return l(c,f.v,f.w,f.name)}return pi}var gi,Gl;function hg(){return Gl||(Gl=1,gi="2.1.8"),gi}var vi,zl;function mg(){return zl||(zl=1,vi={Graph:Pa(),version:hg()}),vi}var _i,jl;function pg(){if(jl)return _i;jl=1;var e=ze(),t=Pa();_i={write:n,read:a};function n(s){var l={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:r(s),edges:o(s)};return e.isUndefined(s.graph())||(l.value=e.clone(s.graph())),l}function r(s){return e.map(s.nodes(),function(l){var u=s.node(l),d=s.parent(l),c={v:l};return e.isUndefined(u)||(c.value=u),e.isUndefined(d)||(c.parent=d),c})}function o(s){return e.map(s.edges(),function(l){var u=s.edge(l),d={v:l.v,w:l.w};return e.isUndefined(l.name)||(d.name=l.name),e.isUndefined(u)||(d.value=u),d})}function a(s){var l=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(u){l.setNode(u.v,u.value),u.parent&&l.setParent(u.v,u.parent)}),e.each(s.edges,function(u){l.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),l}return _i}var Ei,Wl;function gg(){if(Wl)return Ei;Wl=1;var e=ze();Ei=t;function t(n){var r={},o=[],a;function s(l){e.has(r,l)||(r[l]=!0,a.push(l),e.each(n.successors(l),s),e.each(n.predecessors(l),s))}return e.each(n.nodes(),function(l){a=[],s(l),a.length&&o.push(a)}),o}return Ei}var yi,Kl;function Gd(){if(Kl)return yi;Kl=1;var e=ze();yi=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(n){return n.key})},t.prototype.has=function(n){return e.has(this._keyIndices,n)},t.prototype.priority=function(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(n,r){var o=this._keyIndices;if(n=String(n),!e.has(o,n)){var a=this._arr,s=a.length;return o[n]=s,a.push({key:n,priority:r}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},t.prototype.decrease=function(n,r){var o=this._keyIndices[n];if(r>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[o].priority+" New: "+r);this._arr[o].priority=r,this._decrease(o)},t.prototype._heapify=function(n){var r=this._arr,o=2*n,a=o+1,s=n;o<r.length&&(s=r[o].priority<r[s].priority?o:s,a<r.length&&(s=r[a].priority<r[s].priority?a:s),s!==n&&(this._swap(n,s),this._heapify(s)))},t.prototype._decrease=function(n){for(var r=this._arr,o=r[n].priority,a;n!==0&&(a=n>>1,!(r[a].priority<o));)this._swap(n,a),n=a},t.prototype._swap=function(n,r){var o=this._arr,a=this._keyIndices,s=o[n],l=o[r];o[n]=l,o[r]=s,a[l.key]=n,a[s.key]=r},yi}var bi,Yl;function zd(){if(Yl)return bi;Yl=1;var e=ze(),t=Gd();bi=r;var n=e.constant(1);function r(a,s,l,u){return o(a,String(s),l||n,u||function(d){return a.outEdges(d)})}function o(a,s,l,u){var d={},c=new t,f,h,m=function(C){var E=C.v!==f?C.v:C.w,_=d[E],p=l(C),v=h.distance+p;if(p<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+C+" Weight: "+p);v<_.distance&&(_.distance=v,_.predecessor=f,c.decrease(E,v))};for(a.nodes().forEach(function(C){var E=C===s?0:Number.POSITIVE_INFINITY;d[C]={distance:E},c.add(C,E)});c.size()>0&&(f=c.removeMin(),h=d[f],h.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(m);return d}return bi}var ki,Xl;function vg(){if(Xl)return ki;Xl=1;var e=zd(),t=ze();ki=n;function n(r,o,a){return t.transform(r.nodes(),function(s,l){s[l]=e(r,l,o,a)},{})}return ki}var Ci,Zl;function jd(){if(Zl)return Ci;Zl=1;var e=ze();Ci=t;function t(n){var r=0,o=[],a={},s=[];function l(u){var d=a[u]={onStack:!0,lowlink:r,index:r++};if(o.push(u),n.successors(u).forEach(function(h){e.has(a,h)?a[h].onStack&&(d.lowlink=Math.min(d.lowlink,a[h].index)):(l(h),d.lowlink=Math.min(d.lowlink,a[h].lowlink))}),d.lowlink===d.index){var c=[],f;do f=o.pop(),a[f].onStack=!1,c.push(f);while(u!==f);s.push(c)}}return n.nodes().forEach(function(u){e.has(a,u)||l(u)}),s}return Ci}var Ni,Jl;function _g(){if(Jl)return Ni;Jl=1;var e=ze(),t=jd();Ni=n;function n(r){return e.filter(t(r),function(o){return o.length>1||o.length===1&&r.hasEdge(o[0],o[0])})}return Ni}var wi,Ql;function Eg(){if(Ql)return wi;Ql=1;var e=ze();wi=n;var t=e.constant(1);function n(o,a,s){return r(o,a||t,s||function(l){return o.outEdges(l)})}function r(o,a,s){var l={},u=o.nodes();return u.forEach(function(d){l[d]={},l[d][d]={distance:0},u.forEach(function(c){d!==c&&(l[d][c]={distance:Number.POSITIVE_INFINITY})}),s(d).forEach(function(c){var f=c.v===d?c.w:c.v,h=a(c);l[d][f]={distance:h,predecessor:d}})}),u.forEach(function(d){var c=l[d];u.forEach(function(f){var h=l[f];u.forEach(function(m){var C=h[d],E=c[m],_=h[m],p=C.distance+E.distance;p<_.distance&&(_.distance=p,_.predecessor=E.predecessor)})})}),l}return wi}var Si,eu;function Wd(){if(eu)return Si;eu=1;var e=ze();Si=t,t.CycleException=n;function t(r){var o={},a={},s=[];function l(u){if(e.has(a,u))throw new n;e.has(o,u)||(a[u]=!0,o[u]=!0,e.each(r.predecessors(u),l),delete a[u],s.push(u))}if(e.each(r.sinks(),l),e.size(o)!==r.nodeCount())throw new n;return s}function n(){}return n.prototype=new Error,Si}var Li,tu;function yg(){if(tu)return Li;tu=1;var e=Wd();Li=t;function t(n){try{e(n)}catch(r){if(r instanceof e.CycleException)return!1;throw r}return!0}return Li}var Ti,nu;function Kd(){if(nu)return Ti;nu=1;var e=ze();Ti=t;function t(r,o,a){e.isArray(o)||(o=[o]);var s=(r.isDirected()?r.successors:r.neighbors).bind(r),l=[],u={};return e.each(o,function(d){if(!r.hasNode(d))throw new Error("Graph does not have node: "+d);n(r,d,a==="post",u,s,l)}),l}function n(r,o,a,s,l,u){e.has(s,o)||(s[o]=!0,a||u.push(o),e.each(l(o),function(d){n(r,d,a,s,l,u)}),a&&u.push(o))}return Ti}var Ii,ru;function bg(){if(ru)return Ii;ru=1;var e=Kd();Ii=t;function t(n,r){return e(n,r,"post")}return Ii}var Oi,iu;function kg(){if(iu)return Oi;iu=1;var e=Kd();Oi=t;function t(n,r){return e(n,r,"pre")}return Oi}var Ai,ou;function Cg(){if(ou)return Ai;ou=1;var e=ze(),t=Pa(),n=Gd();Ai=r;function r(o,a){var s=new t,l={},u=new n,d;function c(h){var m=h.v===d?h.w:h.v,C=u.priority(m);if(C!==void 0){var E=a(h);E<C&&(l[m]=d,u.decrease(m,E))}}if(o.nodeCount()===0)return s;e.each(o.nodes(),function(h){u.add(h,Number.POSITIVE_INFINITY),s.setNode(h)}),u.decrease(o.nodes()[0],0);for(var f=!1;u.size()>0;){if(d=u.removeMin(),e.has(l,d))s.setEdge(d,l[d]);else{if(f)throw new Error("Input graph is not connected: "+o);f=!0}o.nodeEdges(d).forEach(c)}return s}return Ai}var Ri,au;function Ng(){return au||(au=1,Ri={components:gg(),dijkstra:zd(),dijkstraAll:vg(),findCycles:_g(),floydWarshall:Eg(),isAcyclic:yg(),postorder:bg(),preorder:kg(),prim:Cg(),tarjan:jd(),topsort:Wd()}),Ri}var Di,su;function wg(){if(su)return Di;su=1;var e=mg();return Di={Graph:e.Graph,json:pg(),alg:Ng(),version:e.version},Di}var Pi,lu;function Ke(){if(lu)return Pi;lu=1;var e;if(typeof Aa=="function")try{e=wg()}catch{}return e||(e=window.graphlib),Pi=e,Pi}var Bi,uu;function bn(){if(uu)return Bi;uu=1;var e=L.requireEq(),t=L.requireIsArrayLike(),n=L.require_isIndex(),r=L.requireIsObject();function o(a,s,l){if(!r(l))return!1;var u=typeof s;return(u=="number"?t(l)&&n(s,l.length):u=="string"&&s in l)?e(l[s],a):!1}return Bi=o,Bi}var Vi,cu;function Sg(){if(cu)return Vi;cu=1;var e=yn(),t=L.requireEq(),n=bn(),r=L.requireKeysIn(),o=Object.prototype,a=o.hasOwnProperty,s=e(function(l,u){l=Object(l);var d=-1,c=u.length,f=c>2?u[2]:void 0;for(f&&n(u[0],u[1],f)&&(c=1);++d<c;)for(var h=u[d],m=r(h),C=-1,E=m.length;++C<E;){var _=m[C],p=l[_];(p===void 0||t(p,o[_])&&!a.call(l,_))&&(l[_]=h[_])}return l});return Vi=s,Vi}var xi,du;function Lg(){if(du)return xi;du=1;var e=ot(),t=L.requireIsArrayLike(),n=L.requireKeys();function r(o){return function(a,s,l){var u=Object(a);if(!t(a)){var d=e(s,3);a=n(a),s=function(f){return d(u[f],f,u)}}var c=o(a,s,l);return c>-1?u[d?a[c]:c]:void 0}}return xi=r,xi}var Mi,fu;function Tg(){if(fu)return Mi;fu=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Mi=t,Mi}var $i,hu;function Ig(){if(hu)return $i;hu=1;var e=Tg(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return $i=n,$i}var qi,mu;function Og(){if(mu)return qi;mu=1;var e=Ig(),t=L.requireIsObject(),n=Bt(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;function u(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var c=typeof d.valueOf=="function"?d.valueOf():d;d=t(c)?c+"":c}if(typeof d!="string")return d===0?d:+d;d=e(d);var f=a.test(d);return f||s.test(d)?l(d.slice(2),f?2:8):o.test(d)?r:+d}return qi=u,qi}var Fi,pu;function Yd(){if(pu)return Fi;pu=1;var e=Og(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-1/0){var a=o<0?-1:1;return a*n}return o===o?o:0}return Fi=r,Fi}var Ui,gu;function Ag(){if(gu)return Ui;gu=1;var e=Yd();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return Ui=t,Ui}var Hi,vu;function Rg(){if(vu)return Hi;vu=1;var e=Fd(),t=ot(),n=Ag(),r=Math.max;function o(a,s,l){var u=a==null?0:a.length;if(!u)return-1;var d=l==null?0:n(l);return d<0&&(d=r(u+d,0)),e(a,t(s,3),d)}return Hi=o,Hi}var Gi,_u;function Dg(){if(_u)return Gi;_u=1;var e=Lg(),t=Rg(),n=e(t);return Gi=n,Gi}var zi,Eu;function Xd(){if(Eu)return zi;Eu=1;var e=Da();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return zi=t,zi}var ji,yu;function Pg(){if(yu)return ji;yu=1;var e=La(),t=Od(),n=L.requireKeysIn();function r(o,a){return o==null?o:e(o,t(a),n)}return ji=r,ji}var Wi,bu;function Bg(){if(bu)return Wi;bu=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Wi=e,Wi}var Ki,ku;function Ba(){if(ku)return Ki;ku=1;var e=Bt();function t(n,r,o){for(var a=-1,s=n.length;++a<s;){var l=n[a],u=r(l);if(u!=null&&(d===void 0?u===u&&!e(u):o(u,d)))var d=u,c=l}return c}return Ki=t,Ki}var Yi,Cu;function Vg(){if(Cu)return Yi;Cu=1;function e(t,n){return t>n}return Yi=e,Yi}var Xi,Nu;function xg(){if(Nu)return Xi;Nu=1;var e=Ba(),t=Vg(),n=kt();function r(o){return o&&o.length?e(o,n,t):void 0}return Xi=r,Xi}var Zi,wu;function Zd(){if(wu)return Zi;wu=1;var e=L.require_baseAssignValue(),t=L.requireEq();function n(r,o,a){(a!==void 0&&!t(r[o],a)||a===void 0&&!(o in r))&&e(r,o,a)}return Zi=n,Zi}var Ji,Su;function Mg(){if(Su)return Ji;Su=1;var e=L.require_baseGetTag(),t=L.require_getPrototype(),n=L.requireIsObjectLike(),r="[object Object]",o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,u=s.call(Object);function d(c){if(!n(c)||e(c)!=r)return!1;var f=t(c);if(f===null)return!0;var h=l.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&s.call(h)==u}return Ji=d,Ji}var Qi,Lu;function Jd(){if(Lu)return Qi;Lu=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Qi=e,Qi}var eo,Tu;function $g(){if(Tu)return eo;Tu=1;var e=L.require_copyObject(),t=L.requireKeysIn();function n(r){return e(r,t(r))}return eo=n,eo}var to,Iu;function qg(){if(Iu)return to;Iu=1;var e=Zd(),t=L.require_cloneBuffer(),n=L.require_cloneTypedArray(),r=L.require_copyArray(),o=L.require_initCloneObject(),a=L.requireIsArguments(),s=L.requireIsArray(),l=Ud(),u=L.requireIsBuffer(),d=L.requireIsFunction(),c=L.requireIsObject(),f=Mg(),h=L.requireIsTypedArray(),m=Jd(),C=$g();function E(_,p,v,y,g,k,N){var b=m(_,v),T=m(p,v),A=N.get(T);if(A){e(_,v,A);return}var R=k?k(b,T,v+"",_,p,N):void 0,U=R===void 0;if(U){var V=s(T),j=!V&&u(T),Z=!V&&!j&&h(T);R=T,V||j||Z?s(b)?R=b:l(b)?R=r(b):j?(U=!1,R=t(T,!0)):Z?(U=!1,R=n(T,!0)):R=[]:f(T)||a(T)?(R=b,a(b)?R=C(b):(!c(b)||d(b))&&(R=o(T))):U=!1}U&&(N.set(T,R),g(R,T,y,k,N),N.delete(T)),e(_,v,R)}return to=E,to}var no,Ou;function Fg(){if(Ou)return no;Ou=1;var e=L.require_Stack(),t=Zd(),n=La(),r=qg(),o=L.requireIsObject(),a=L.requireKeysIn(),s=Jd();function l(u,d,c,f,h){u!==d&&n(d,function(m,C){if(h||(h=new e),o(m))r(u,d,C,c,l,f,h);else{var E=f?f(s(u,C),m,C+"",u,d,h):void 0;E===void 0&&(E=m),t(u,C,E)}},a)}return no=l,no}var ro,Au;function Ug(){if(Au)return ro;Au=1;var e=yn(),t=bn();function n(r){return e(function(o,a){var s=-1,l=a.length,u=l>1?a[l-1]:void 0,d=l>2?a[2]:void 0;for(u=r.length>3&&typeof u=="function"?(l--,u):void 0,d&&t(a[0],a[1],d)&&(u=l<3?void 0:u,l=1),o=Object(o);++s<l;){var c=a[s];c&&r(o,c,s,u)}return o})}return ro=n,ro}var io,Ru;function Hg(){if(Ru)return io;Ru=1;var e=Fg(),t=Ug(),n=t(function(r,o,a){e(r,o,a)});return io=n,io}var oo,Du;function Qd(){if(Du)return oo;Du=1;function e(t,n){return t<n}return oo=e,oo}var ao,Pu;function Gg(){if(Pu)return ao;Pu=1;var e=Ba(),t=Qd(),n=kt();function r(o){return o&&o.length?e(o,n,t):void 0}return ao=r,ao}var so,Bu;function zg(){if(Bu)return so;Bu=1;var e=Ba(),t=ot(),n=Qd();function r(o,a){return o&&o.length?e(o,t(a,2),n):void 0}return so=r,so}var lo,Vu;function jg(){if(Vu)return lo;Vu=1;var e=L.require_root(),t=function(){return e.Date.now()};return lo=t,lo}var uo,xu;function Wg(){if(xu)return uo;xu=1;var e=L.require_assignValue(),t=vn(),n=L.require_isIndex(),r=L.requireIsObject(),o=Gt();function a(s,l,u,d){if(!r(s))return s;l=t(l,s);for(var c=-1,f=l.length,h=f-1,m=s;m!=null&&++c<f;){var C=o(l[c]),E=u;if(C==="__proto__"||C==="constructor"||C==="prototype")return s;if(c!=h){var _=m[C];E=d?d(_,C,m):void 0,E===void 0&&(E=r(_)?_:n(l[c+1])?[]:{})}e(m,C,E),m=m[C]}return s}return uo=a,uo}var co,Mu;function Kg(){if(Mu)return co;Mu=1;var e=_n(),t=Wg(),n=vn();function r(o,a,s){for(var l=-1,u=a.length,d={};++l<u;){var c=a[l],f=e(o,c);s(f,c)&&t(d,n(c,o),f)}return d}return co=r,co}var fo,$u;function Yg(){if($u)return fo;$u=1;var e=Kg(),t=Ld();function n(r,o){return e(r,o,function(a,s){return t(r,s)})}return fo=n,fo}var ho,qu;function Xg(){if(qu)return ho;qu=1;var e=Xd(),t=$d(),n=qd();function r(o){return n(t(o,void 0,e),o+"")}return ho=r,ho}var mo,Fu;function Zg(){if(Fu)return mo;Fu=1;var e=Yg(),t=Xg(),n=t(function(r,o){return r==null?{}:e(r,o)});return mo=n,mo}var po,Uu;function Jg(){if(Uu)return po;Uu=1;var e=Math.ceil,t=Math.max;function n(r,o,a,s){for(var l=-1,u=t(e((o-r)/(a||1)),0),d=Array(u);u--;)d[s?u:++l]=r,r+=a;return d}return po=n,po}var go,Hu;function Qg(){if(Hu)return go;Hu=1;var e=Jg(),t=bn(),n=Yd();function r(o){return function(a,s,l){return l&&typeof l!="number"&&t(a,s,l)&&(s=l=void 0),a=n(a),s===void 0?(s=a,a=0):s=n(s),l=l===void 0?a<s?1:-1:n(l),e(a,s,l,o)}}return go=r,go}var vo,Gu;function ev(){if(Gu)return vo;Gu=1;var e=Qg(),t=e();return vo=t,vo}var _o,zu;function tv(){if(zu)return _o;zu=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return _o=e,_o}var Eo,ju;function nv(){if(ju)return Eo;ju=1;var e=Bt();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,s=n===n,l=e(n),u=r!==void 0,d=r===null,c=r===r,f=e(r);if(!d&&!f&&!l&&n>r||l&&u&&c&&!d&&!f||a&&u&&c||!o&&c||!s)return 1;if(!a&&!l&&!f&&n<r||f&&o&&s&&!a&&!l||d&&o&&s||!u&&s||!c)return-1}return 0}return Eo=t,Eo}var yo,Wu;function rv(){if(Wu)return yo;Wu=1;var e=nv();function t(n,r,o){for(var a=-1,s=n.criteria,l=r.criteria,u=s.length,d=o.length;++a<u;){var c=e(s[a],l[a]);if(c){if(a>=d)return c;var f=o[a];return c*(f=="desc"?-1:1)}}return n.index-r.index}return yo=t,yo}var bo,Ku;function iv(){if(Ku)return bo;Ku=1;var e=gn(),t=_n(),n=ot(),r=Vd(),o=tv(),a=L.require_baseUnary(),s=rv(),l=kt(),u=L.requireIsArray();function d(c,f,h){f.length?f=e(f,function(E){return u(E)?function(_){return t(_,E.length===1?E[0]:E)}:E}):f=[l];var m=-1;f=e(f,a(n));var C=r(c,function(E,_,p){var v=e(f,function(y){return y(E)});return{criteria:v,index:++m,value:E}});return o(C,function(E,_){return s(E,_,h)})}return bo=d,bo}var ko,Yu;function ov(){if(Yu)return ko;Yu=1;var e=Da(),t=iv(),n=yn(),r=bn(),o=n(function(a,s){if(a==null)return[];var l=s.length;return l>1&&r(a,s[0],s[1])?s=[]:l>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(a,e(s,1),[])});return ko=o,ko}var Co,Xu;function av(){if(Xu)return Co;Xu=1;var e=wd(),t=0;function n(r){var o=++t;return e(r)+o}return Co=n,Co}var No,Zu;function sv(){if(Zu)return No;Zu=1;function e(t,n,r){for(var o=-1,a=t.length,s=n.length,l={};++o<a;){var u=o<s?n[o]:void 0;r(l,t[o],u)}return l}return No=e,No}var wo,Ju;function lv(){if(Ju)return wo;Ju=1;var e=L.require_assignValue(),t=sv();function n(r,o){return t(r||[],o||[],e)}return wo=n,wo}var So,Qu;function he(){if(Qu)return So;Qu=1;var e;if(typeof Aa=="function")try{e={cloneDeep:L.requireCloneDeep(),constant:Ra(),defaults:Sg(),each:Rd(),filter:Dd(),find:Dg(),flatten:Xd(),forEach:Ad(),forIn:Pg(),has:Pd(),isUndefined:Bd(),last:Bg(),map:xd(),mapValues:Id(),max:xg(),merge:Hg(),min:Gg(),minBy:zg(),now:jg(),pick:Zg(),range:ev(),reduce:Md(),sortBy:ov(),uniqueId:av(),values:Hd(),zipObject:lv()}}catch{}return e||(e=window._),So=e,So}var Lo,ec;function uv(){if(ec)return Lo;ec=1,Lo=e;function e(){var r={};r._next=r._prev=r,this._sentinel=r}e.prototype.dequeue=function(){var r=this._sentinel,o=r._prev;if(o!==r)return t(o),o},e.prototype.enqueue=function(r){var o=this._sentinel;r._prev&&r._next&&t(r),r._next=o._next,o._next._prev=r,o._next=r,r._prev=o},e.prototype.toString=function(){for(var r=[],o=this._sentinel,a=o._prev;a!==o;)r.push(JSON.stringify(a,n)),a=a._prev;return"["+r.join(", ")+"]"};function t(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function n(r,o){if(r!=="_next"&&r!=="_prev")return o}return Lo}var To,tc;function cv(){if(tc)return To;tc=1;var e=he(),t=Ke().Graph,n=uv();To=o;var r=e.constant(1);function o(d,c){if(d.nodeCount()<=1)return[];var f=l(d,c||r),h=a(f.graph,f.buckets,f.zeroIdx);return e.flatten(e.map(h,function(m){return d.outEdges(m.v,m.w)}),!0)}function a(d,c,f){for(var h=[],m=c[c.length-1],C=c[0],E;d.nodeCount();){for(;E=C.dequeue();)s(d,c,f,E);for(;E=m.dequeue();)s(d,c,f,E);if(d.nodeCount()){for(var _=c.length-2;_>0;--_)if(E=c[_].dequeue(),E){h=h.concat(s(d,c,f,E,!0));break}}}return h}function s(d,c,f,h,m){var C=m?[]:void 0;return e.forEach(d.inEdges(h.v),function(E){var _=d.edge(E),p=d.node(E.v);m&&C.push({v:E.v,w:E.w}),p.out-=_,u(c,f,p)}),e.forEach(d.outEdges(h.v),function(E){var _=d.edge(E),p=E.w,v=d.node(p);v.in-=_,u(c,f,v)}),d.removeNode(h.v),C}function l(d,c){var f=new t,h=0,m=0;e.forEach(d.nodes(),function(_){f.setNode(_,{v:_,in:0,out:0})}),e.forEach(d.edges(),function(_){var p=f.edge(_.v,_.w)||0,v=c(_),y=p+v;f.setEdge(_.v,_.w,y),m=Math.max(m,f.node(_.v).out+=v),h=Math.max(h,f.node(_.w).in+=v)});var C=e.range(m+h+3).map(function(){return new n}),E=h+1;return e.forEach(f.nodes(),function(_){u(C,E,f.node(_))}),{graph:f,buckets:C,zeroIdx:E}}function u(d,c,f){f.out?f.in?d[f.out-f.in+c].enqueue(f):d[d.length-1].enqueue(f):d[0].enqueue(f)}return To}var Io,nc;function dv(){if(nc)return Io;nc=1;var e=he(),t=cv();Io={run:n,undo:o};function n(a){var s=a.graph().acyclicer==="greedy"?t(a,l(a)):r(a);e.forEach(s,function(u){var d=a.edge(u);a.removeEdge(u),d.forwardName=u.name,d.reversed=!0,a.setEdge(u.w,u.v,d,e.uniqueId("rev"))});function l(u){return function(d){return u.edge(d).weight}}}function r(a){var s=[],l={},u={};function d(c){e.has(u,c)||(u[c]=!0,l[c]=!0,e.forEach(a.outEdges(c),function(f){e.has(l,f.w)?s.push(f):d(f.w)}),delete l[c])}return e.forEach(a.nodes(),d),s}function o(a){e.forEach(a.edges(),function(s){var l=a.edge(s);if(l.reversed){a.removeEdge(s);var u=l.forwardName;delete l.reversed,delete l.forwardName,a.setEdge(s.w,s.v,l,u)}})}return Io}var Oo,rc;function Pe(){if(rc)return Oo;rc=1;var e=he(),t=Ke().Graph;Oo={addDummyNode:n,simplify:r,asNonCompoundGraph:o,successorWeights:a,predecessorWeights:s,intersectRect:l,buildLayerMatrix:u,normalizeRanks:d,removeEmptyRanks:c,addBorderNode:f,maxRank:h,partition:m,time:C,notime:E};function n(_,p,v,y){var g;do g=e.uniqueId(y);while(_.hasNode(g));return v.dummy=p,_.setNode(g,v),g}function r(_){var p=new t().setGraph(_.graph());return e.forEach(_.nodes(),function(v){p.setNode(v,_.node(v))}),e.forEach(_.edges(),function(v){var y=p.edge(v.v,v.w)||{weight:0,minlen:1},g=_.edge(v);p.setEdge(v.v,v.w,{weight:y.weight+g.weight,minlen:Math.max(y.minlen,g.minlen)})}),p}function o(_){var p=new t({multigraph:_.isMultigraph()}).setGraph(_.graph());return e.forEach(_.nodes(),function(v){_.children(v).length||p.setNode(v,_.node(v))}),e.forEach(_.edges(),function(v){p.setEdge(v,_.edge(v))}),p}function a(_){var p=e.map(_.nodes(),function(v){var y={};return e.forEach(_.outEdges(v),function(g){y[g.w]=(y[g.w]||0)+_.edge(g).weight}),y});return e.zipObject(_.nodes(),p)}function s(_){var p=e.map(_.nodes(),function(v){var y={};return e.forEach(_.inEdges(v),function(g){y[g.v]=(y[g.v]||0)+_.edge(g).weight}),y});return e.zipObject(_.nodes(),p)}function l(_,p){var v=_.x,y=_.y,g=p.x-v,k=p.y-y,N=_.width/2,b=_.height/2;if(!g&&!k)throw new Error("Not possible to find intersection inside of the rectangle");var T,A;return Math.abs(k)*N>Math.abs(g)*b?(k<0&&(b=-b),T=b*g/k,A=b):(g<0&&(N=-N),T=N,A=N*k/g),{x:v+T,y:y+A}}function u(_){var p=e.map(e.range(h(_)+1),function(){return[]});return e.forEach(_.nodes(),function(v){var y=_.node(v),g=y.rank;e.isUndefined(g)||(p[g][y.order]=v)}),p}function d(_){var p=e.min(e.map(_.nodes(),function(v){return _.node(v).rank}));e.forEach(_.nodes(),function(v){var y=_.node(v);e.has(y,"rank")&&(y.rank-=p)})}function c(_){var p=e.min(e.map(_.nodes(),function(k){return _.node(k).rank})),v=[];e.forEach(_.nodes(),function(k){var N=_.node(k).rank-p;v[N]||(v[N]=[]),v[N].push(k)});var y=0,g=_.graph().nodeRankFactor;e.forEach(v,function(k,N){e.isUndefined(k)&&N%g!==0?--y:y&&e.forEach(k,function(b){_.node(b).rank+=y})})}function f(_,p,v,y){var g={width:0,height:0};return arguments.length>=4&&(g.rank=v,g.order=y),n(_,"border",g,p)}function h(_){return e.max(e.map(_.nodes(),function(p){var v=_.node(p).rank;if(!e.isUndefined(v))return v}))}function m(_,p){var v={lhs:[],rhs:[]};return e.forEach(_,function(y){p(y)?v.lhs.push(y):v.rhs.push(y)}),v}function C(_,p){var v=e.now();try{return p()}finally{console.log(_+" time: "+(e.now()-v)+"ms")}}function E(_,p){return p()}return Oo}var Ao,ic;function fv(){if(ic)return Ao;ic=1;var e=he(),t=Pe();Ao={run:n,undo:o};function n(a){a.graph().dummyChains=[],e.forEach(a.edges(),function(s){r(a,s)})}function r(a,s){var l=s.v,u=a.node(l).rank,d=s.w,c=a.node(d).rank,f=s.name,h=a.edge(s),m=h.labelRank;if(c!==u+1){a.removeEdge(s);var C,E,_;for(_=0,++u;u<c;++_,++u)h.points=[],E={width:0,height:0,edgeLabel:h,edgeObj:s,rank:u},C=t.addDummyNode(a,"edge",E,"_d"),u===m&&(E.width=h.width,E.height=h.height,E.dummy="edge-label",E.labelpos=h.labelpos),a.setEdge(l,C,{weight:h.weight},f),_===0&&a.graph().dummyChains.push(C),l=C;a.setEdge(l,d,{weight:h.weight},f)}}function o(a){e.forEach(a.graph().dummyChains,function(s){var l=a.node(s),u=l.edgeLabel,d;for(a.setEdge(l.edgeObj,u);l.dummy;)d=a.successors(s)[0],a.removeNode(s),u.points.push({x:l.x,y:l.y}),l.dummy==="edge-label"&&(u.x=l.x,u.y=l.y,u.width=l.width,u.height=l.height),s=d,l=a.node(s)})}return Ao}var Ro,oc;function an(){if(oc)return Ro;oc=1;var e=he();Ro={longestPath:t,slack:n};function t(r){var o={};function a(s){var l=r.node(s);if(e.has(o,s))return l.rank;o[s]=!0;var u=e.min(e.map(r.outEdges(s),function(d){return a(d.w)-r.edge(d).minlen}));return(u===Number.POSITIVE_INFINITY||u===void 0||u===null)&&(u=0),l.rank=u}e.forEach(r.sources(),a)}function n(r,o){return r.node(o.w).rank-r.node(o.v).rank-r.edge(o).minlen}return Ro}var Do,ac;function ef(){if(ac)return Do;ac=1;var e=he(),t=Ke().Graph,n=an().slack;Do=r;function r(l){var u=new t({directed:!1}),d=l.nodes()[0],c=l.nodeCount();u.setNode(d,{});for(var f,h;o(u,l)<c;)f=a(u,l),h=u.hasNode(f.v)?n(l,f):-n(l,f),s(u,l,h);return u}function o(l,u){function d(c){e.forEach(u.nodeEdges(c),function(f){var h=f.v,m=c===h?f.w:h;!l.hasNode(m)&&!n(u,f)&&(l.setNode(m,{}),l.setEdge(c,m,{}),d(m))})}return e.forEach(l.nodes(),d),l.nodeCount()}function a(l,u){return e.minBy(u.edges(),function(d){if(l.hasNode(d.v)!==l.hasNode(d.w))return n(u,d)})}function s(l,u,d){e.forEach(l.nodes(),function(c){u.node(c).rank+=d})}return Do}var Po,sc;function hv(){if(sc)return Po;sc=1;var e=he(),t=ef(),n=an().slack,r=an().longestPath,o=Ke().alg.preorder,a=Ke().alg.postorder,s=Pe().simplify;Po=l,l.initLowLimValues=f,l.initCutValues=u,l.calcCutValue=c,l.leaveEdge=m,l.enterEdge=C,l.exchangeEdges=E;function l(y){y=s(y),r(y);var g=t(y);f(g),u(g,y);for(var k,N;k=m(g);)N=C(g,y,k),E(g,y,k,N)}function u(y,g){var k=a(y,y.nodes());k=k.slice(0,k.length-1),e.forEach(k,function(N){d(y,g,N)})}function d(y,g,k){var N=y.node(k),b=N.parent;y.edge(k,b).cutvalue=c(y,g,k)}function c(y,g,k){var N=y.node(k),b=N.parent,T=!0,A=g.edge(k,b),R=0;return A||(T=!1,A=g.edge(b,k)),R=A.weight,e.forEach(g.nodeEdges(k),function(U){var V=U.v===k,j=V?U.w:U.v;if(j!==b){var Z=V===T,M=g.edge(U).weight;if(R+=Z?M:-M,p(y,k,j)){var D=y.edge(k,j).cutvalue;R+=Z?-D:D}}}),R}function f(y,g){arguments.length<2&&(g=y.nodes()[0]),h(y,{},1,g)}function h(y,g,k,N,b){var T=k,A=y.node(N);return g[N]=!0,e.forEach(y.neighbors(N),function(R){e.has(g,R)||(k=h(y,g,k,R,N))}),A.low=T,A.lim=k++,b?A.parent=b:delete A.parent,k}function m(y){return e.find(y.edges(),function(g){return y.edge(g).cutvalue<0})}function C(y,g,k){var N=k.v,b=k.w;g.hasEdge(N,b)||(N=k.w,b=k.v);var T=y.node(N),A=y.node(b),R=T,U=!1;T.lim>A.lim&&(R=A,U=!0);var V=e.filter(g.edges(),function(j){return U===v(y,y.node(j.v),R)&&U!==v(y,y.node(j.w),R)});return e.minBy(V,function(j){return n(g,j)})}function E(y,g,k,N){var b=k.v,T=k.w;y.removeEdge(b,T),y.setEdge(N.v,N.w,{}),f(y),u(y,g),_(y,g)}function _(y,g){var k=e.find(y.nodes(),function(b){return!g.node(b).parent}),N=o(y,k);N=N.slice(1),e.forEach(N,function(b){var T=y.node(b).parent,A=g.edge(b,T),R=!1;A||(A=g.edge(T,b),R=!0),g.node(b).rank=g.node(T).rank+(R?A.minlen:-A.minlen)})}function p(y,g,k){return y.hasEdge(g,k)}function v(y,g,k){return k.low<=g.lim&&g.lim<=k.lim}return Po}var Bo,lc;function mv(){if(lc)return Bo;lc=1;var e=an(),t=e.longestPath,n=ef(),r=hv();Bo=o;function o(u){switch(u.graph().ranker){case"network-simplex":l(u);break;case"tight-tree":s(u);break;case"longest-path":a(u);break;default:l(u)}}var a=t;function s(u){t(u),n(u)}function l(u){r(u)}return Bo}var Vo,uc;function pv(){if(uc)return Vo;uc=1;var e=he();Vo=t;function t(o){var a=r(o);e.forEach(o.graph().dummyChains,function(s){for(var l=o.node(s),u=l.edgeObj,d=n(o,a,u.v,u.w),c=d.path,f=d.lca,h=0,m=c[h],C=!0;s!==u.w;){if(l=o.node(s),C){for(;(m=c[h])!==f&&o.node(m).maxRank<l.rank;)h++;m===f&&(C=!1)}if(!C){for(;h<c.length-1&&o.node(m=c[h+1]).minRank<=l.rank;)h++;m=c[h]}o.setParent(s,m),s=o.successors(s)[0]}})}function n(o,a,s,l){var u=[],d=[],c=Math.min(a[s].low,a[l].low),f=Math.max(a[s].lim,a[l].lim),h,m;h=s;do h=o.parent(h),u.push(h);while(h&&(a[h].low>c||f>a[h].lim));for(m=h,h=l;(h=o.parent(h))!==m;)d.push(h);return{path:u.concat(d.reverse()),lca:m}}function r(o){var a={},s=0;function l(u){var d=s;e.forEach(o.children(u),l),a[u]={low:d,lim:s++}}return e.forEach(o.children(),l),a}return Vo}var xo,cc;function gv(){if(cc)return xo;cc=1;var e=he(),t=Pe();xo={run:n,cleanup:s};function n(l){var u=t.addDummyNode(l,"root",{},"_root"),d=o(l),c=e.max(e.values(d))-1,f=2*c+1;l.graph().nestingRoot=u,e.forEach(l.edges(),function(m){l.edge(m).minlen*=f});var h=a(l)+1;e.forEach(l.children(),function(m){r(l,u,f,h,c,d,m)}),l.graph().nodeRankFactor=f}function r(l,u,d,c,f,h,m){var C=l.children(m);if(!C.length){m!==u&&l.setEdge(u,m,{weight:0,minlen:d});return}var E=t.addBorderNode(l,"_bt"),_=t.addBorderNode(l,"_bb"),p=l.node(m);l.setParent(E,m),p.borderTop=E,l.setParent(_,m),p.borderBottom=_,e.forEach(C,function(v){r(l,u,d,c,f,h,v);var y=l.node(v),g=y.borderTop?y.borderTop:v,k=y.borderBottom?y.borderBottom:v,N=y.borderTop?c:2*c,b=g!==k?1:f-h[m]+1;l.setEdge(E,g,{weight:N,minlen:b,nestingEdge:!0}),l.setEdge(k,_,{weight:N,minlen:b,nestingEdge:!0})}),l.parent(m)||l.setEdge(u,E,{weight:0,minlen:f+h[m]})}function o(l){var u={};function d(c,f){var h=l.children(c);h&&h.length&&e.forEach(h,function(m){d(m,f+1)}),u[c]=f}return e.forEach(l.children(),function(c){d(c,1)}),u}function a(l){return e.reduce(l.edges(),function(u,d){return u+l.edge(d).weight},0)}function s(l){var u=l.graph();l.removeNode(u.nestingRoot),delete u.nestingRoot,e.forEach(l.edges(),function(d){var c=l.edge(d);c.nestingEdge&&l.removeEdge(d)})}return xo}var Mo,dc;function vv(){if(dc)return Mo;dc=1;var e=he(),t=Pe();Mo=n;function n(o){function a(s){var l=o.children(s),u=o.node(s);if(l.length&&e.forEach(l,a),e.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var d=u.minRank,c=u.maxRank+1;d<c;++d)r(o,"borderLeft","_bl",s,u,d),r(o,"borderRight","_br",s,u,d)}}e.forEach(o.children(),a)}function r(o,a,s,l,u,d){var c={width:0,height:0,rank:d,borderType:a},f=u[a][d-1],h=t.addDummyNode(o,"border",c,s);u[a][d]=h,o.setParent(h,l),f&&o.setEdge(f,h,{weight:1})}return Mo}var $o,fc;function _v(){if(fc)return $o;fc=1;var e=he();$o={adjust:t,undo:n};function t(d){var c=d.graph().rankdir.toLowerCase();(c==="lr"||c==="rl")&&r(d)}function n(d){var c=d.graph().rankdir.toLowerCase();(c==="bt"||c==="rl")&&a(d),(c==="lr"||c==="rl")&&(l(d),r(d))}function r(d){e.forEach(d.nodes(),function(c){o(d.node(c))}),e.forEach(d.edges(),function(c){o(d.edge(c))})}function o(d){var c=d.width;d.width=d.height,d.height=c}function a(d){e.forEach(d.nodes(),function(c){s(d.node(c))}),e.forEach(d.edges(),function(c){var f=d.edge(c);e.forEach(f.points,s),e.has(f,"y")&&s(f)})}function s(d){d.y=-d.y}function l(d){e.forEach(d.nodes(),function(c){u(d.node(c))}),e.forEach(d.edges(),function(c){var f=d.edge(c);e.forEach(f.points,u),e.has(f,"x")&&u(f)})}function u(d){var c=d.x;d.x=d.y,d.y=c}return $o}var qo,hc;function Ev(){if(hc)return qo;hc=1;var e=he();qo=t;function t(n){var r={},o=e.filter(n.nodes(),function(d){return!n.children(d).length}),a=e.max(e.map(o,function(d){return n.node(d).rank})),s=e.map(e.range(a+1),function(){return[]});function l(d){if(!e.has(r,d)){r[d]=!0;var c=n.node(d);s[c.rank].push(d),e.forEach(n.successors(d),l)}}var u=e.sortBy(o,function(d){return n.node(d).rank});return e.forEach(u,l),s}return qo}var Fo,mc;function yv(){if(mc)return Fo;mc=1;var e=he();Fo=t;function t(r,o){for(var a=0,s=1;s<o.length;++s)a+=n(r,o[s-1],o[s]);return a}function n(r,o,a){for(var s=e.zipObject(a,e.map(a,function(h,m){return m})),l=e.flatten(e.map(o,function(h){return e.sortBy(e.map(r.outEdges(h),function(m){return{pos:s[m.w],weight:r.edge(m).weight}}),"pos")}),!0),u=1;u<a.length;)u<<=1;var d=2*u-1;u-=1;var c=e.map(new Array(d),function(){return 0}),f=0;return e.forEach(l.forEach(function(h){var m=h.pos+u;c[m]+=h.weight;for(var C=0;m>0;)m%2&&(C+=c[m+1]),m=m-1>>1,c[m]+=h.weight;f+=h.weight*C})),f}return Fo}var Uo,pc;function bv(){if(pc)return Uo;pc=1;var e=he();Uo=t;function t(n,r){return e.map(r,function(o){var a=n.inEdges(o);if(a.length){var s=e.reduce(a,function(l,u){var d=n.edge(u),c=n.node(u.v);return{sum:l.sum+d.weight*c.order,weight:l.weight+d.weight}},{sum:0,weight:0});return{v:o,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:o}})}return Uo}var Ho,gc;function kv(){if(gc)return Ho;gc=1;var e=he();Ho=t;function t(o,a){var s={};e.forEach(o,function(u,d){var c=s[u.v]={indegree:0,in:[],out:[],vs:[u.v],i:d};e.isUndefined(u.barycenter)||(c.barycenter=u.barycenter,c.weight=u.weight)}),e.forEach(a.edges(),function(u){var d=s[u.v],c=s[u.w];!e.isUndefined(d)&&!e.isUndefined(c)&&(c.indegree++,d.out.push(s[u.w]))});var l=e.filter(s,function(u){return!u.indegree});return n(l)}function n(o){var a=[];function s(d){return function(c){c.merged||(e.isUndefined(c.barycenter)||e.isUndefined(d.barycenter)||c.barycenter>=d.barycenter)&&r(d,c)}}function l(d){return function(c){c.in.push(d),--c.indegree===0&&o.push(c)}}for(;o.length;){var u=o.pop();a.push(u),e.forEach(u.in.reverse(),s(u)),e.forEach(u.out,l(u))}return e.map(e.filter(a,function(d){return!d.merged}),function(d){return e.pick(d,["vs","i","barycenter","weight"])})}function r(o,a){var s=0,l=0;o.weight&&(s+=o.barycenter*o.weight,l+=o.weight),a.weight&&(s+=a.barycenter*a.weight,l+=a.weight),o.vs=a.vs.concat(o.vs),o.barycenter=s/l,o.weight=l,o.i=Math.min(a.i,o.i),a.merged=!0}return Ho}var Go,vc;function Cv(){if(vc)return Go;vc=1;var e=he(),t=Pe();Go=n;function n(a,s){var l=t.partition(a,function(E){return e.has(E,"barycenter")}),u=l.lhs,d=e.sortBy(l.rhs,function(E){return-E.i}),c=[],f=0,h=0,m=0;u.sort(o(!!s)),m=r(c,d,m),e.forEach(u,function(E){m+=E.vs.length,c.push(E.vs),f+=E.barycenter*E.weight,h+=E.weight,m=r(c,d,m)});var C={vs:e.flatten(c,!0)};return h&&(C.barycenter=f/h,C.weight=h),C}function r(a,s,l){for(var u;s.length&&(u=e.last(s)).i<=l;)s.pop(),a.push(u.vs),l++;return l}function o(a){return function(s,l){return s.barycenter<l.barycenter?-1:s.barycenter>l.barycenter?1:a?l.i-s.i:s.i-l.i}}return Go}var zo,_c;function Nv(){if(_c)return zo;_c=1;var e=he(),t=bv(),n=kv(),r=Cv();zo=o;function o(l,u,d,c){var f=l.children(u),h=l.node(u),m=h?h.borderLeft:void 0,C=h?h.borderRight:void 0,E={};m&&(f=e.filter(f,function(k){return k!==m&&k!==C}));var _=t(l,f);e.forEach(_,function(k){if(l.children(k.v).length){var N=o(l,k.v,d,c);E[k.v]=N,e.has(N,"barycenter")&&s(k,N)}});var p=n(_,d);a(p,E);var v=r(p,c);if(m&&(v.vs=e.flatten([m,v.vs,C],!0),l.predecessors(m).length)){var y=l.node(l.predecessors(m)[0]),g=l.node(l.predecessors(C)[0]);e.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+g.order)/(v.weight+2),v.weight+=2}return v}function a(l,u){e.forEach(l,function(d){d.vs=e.flatten(d.vs.map(function(c){return u[c]?u[c].vs:c}),!0)})}function s(l,u){e.isUndefined(l.barycenter)?(l.barycenter=u.barycenter,l.weight=u.weight):(l.barycenter=(l.barycenter*l.weight+u.barycenter*u.weight)/(l.weight+u.weight),l.weight+=u.weight)}return zo}var jo,Ec;function wv(){if(Ec)return jo;Ec=1;var e=he(),t=Ke().Graph;jo=n;function n(o,a,s){var l=r(o),u=new t({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(d){return o.node(d)});return e.forEach(o.nodes(),function(d){var c=o.node(d),f=o.parent(d);(c.rank===a||c.minRank<=a&&a<=c.maxRank)&&(u.setNode(d),u.setParent(d,f||l),e.forEach(o[s](d),function(h){var m=h.v===d?h.w:h.v,C=u.edge(m,d),E=e.isUndefined(C)?0:C.weight;u.setEdge(m,d,{weight:o.edge(h).weight+E})}),e.has(c,"minRank")&&u.setNode(d,{borderLeft:c.borderLeft[a],borderRight:c.borderRight[a]}))}),u}function r(o){for(var a;o.hasNode(a=e.uniqueId("_root")););return a}return jo}var Wo,yc;function Sv(){if(yc)return Wo;yc=1;var e=he();Wo=t;function t(n,r,o){var a={},s;e.forEach(o,function(l){for(var u=n.parent(l),d,c;u;){if(d=n.parent(u),d?(c=a[d],a[d]=u):(c=s,s=u),c&&c!==u){r.setEdge(c,u);return}u=d}})}return Wo}var Ko,bc;function Lv(){if(bc)return Ko;bc=1;var e=he(),t=Ev(),n=yv(),r=Nv(),o=wv(),a=Sv(),s=Ke().Graph,l=Pe();Ko=u;function u(h){var m=l.maxRank(h),C=d(h,e.range(1,m+1),"inEdges"),E=d(h,e.range(m-1,-1,-1),"outEdges"),_=t(h);f(h,_);for(var p=Number.POSITIVE_INFINITY,v,y=0,g=0;g<4;++y,++g){c(y%2?C:E,y%4>=2),_=l.buildLayerMatrix(h);var k=n(h,_);k<p&&(g=0,v=e.cloneDeep(_),p=k)}f(h,v)}function d(h,m,C){return e.map(m,function(E){return o(h,E,C)})}function c(h,m){var C=new s;e.forEach(h,function(E){var _=E.graph().root,p=r(E,_,C,m);e.forEach(p.vs,function(v,y){E.node(v).order=y}),a(E,C,p.vs)})}function f(h,m){e.forEach(m,function(C){e.forEach(C,function(E,_){h.node(E).order=_})})}return Ko}var Yo,kc;function Tv(){if(kc)return Yo;kc=1;var e=he(),t=Ke().Graph,n=Pe();Yo={positionX:C,findType1Conflicts:r,findType2Conflicts:o,addConflict:s,hasConflict:l,verticalAlignment:u,horizontalCompaction:d,alignCoordinates:h,findSmallestWidthAlignment:f,balance:m};function r(p,v){var y={};function g(k,N){var b=0,T=0,A=k.length,R=e.last(N);return e.forEach(N,function(U,V){var j=a(p,U),Z=j?p.node(j).order:A;(j||U===R)&&(e.forEach(N.slice(T,V+1),function(M){e.forEach(p.predecessors(M),function(D){var J=p.node(D),W=J.order;(W<b||Z<W)&&!(J.dummy&&p.node(M).dummy)&&s(y,D,M)})}),T=V+1,b=Z)}),N}return e.reduce(v,g),y}function o(p,v){var y={};function g(N,b,T,A,R){var U;e.forEach(e.range(b,T),function(V){U=N[V],p.node(U).dummy&&e.forEach(p.predecessors(U),function(j){var Z=p.node(j);Z.dummy&&(Z.order<A||Z.order>R)&&s(y,j,U)})})}function k(N,b){var T=-1,A,R=0;return e.forEach(b,function(U,V){if(p.node(U).dummy==="border"){var j=p.predecessors(U);j.length&&(A=p.node(j[0]).order,g(b,R,V,T,A),R=V,T=A)}g(b,R,b.length,A,N.length)}),b}return e.reduce(v,k),y}function a(p,v){if(p.node(v).dummy)return e.find(p.predecessors(v),function(y){return p.node(y).dummy})}function s(p,v,y){if(v>y){var g=v;v=y,y=g}var k=p[v];k||(p[v]=k={}),k[y]=!0}function l(p,v,y){if(v>y){var g=v;v=y,y=g}return e.has(p[v],y)}function u(p,v,y,g){var k={},N={},b={};return e.forEach(v,function(T){e.forEach(T,function(A,R){k[A]=A,N[A]=A,b[A]=R})}),e.forEach(v,function(T){var A=-1;e.forEach(T,function(R){var U=g(R);if(U.length){U=e.sortBy(U,function(D){return b[D]});for(var V=(U.length-1)/2,j=Math.floor(V),Z=Math.ceil(V);j<=Z;++j){var M=U[j];N[R]===R&&A<b[M]&&!l(y,R,M)&&(N[M]=R,N[R]=k[R]=k[M],A=b[M])}}})}),{root:k,align:N}}function d(p,v,y,g,k){var N={},b=c(p,v,y,k),T=k?"borderLeft":"borderRight";function A(V,j){for(var Z=b.nodes(),M=Z.pop(),D={};M;)D[M]?V(M):(D[M]=!0,Z.push(M),Z=Z.concat(j(M))),M=Z.pop()}function R(V){N[V]=b.inEdges(V).reduce(function(j,Z){return Math.max(j,N[Z.v]+b.edge(Z))},0)}function U(V){var j=b.outEdges(V).reduce(function(M,D){return Math.min(M,N[D.w]-b.edge(D))},Number.POSITIVE_INFINITY),Z=p.node(V);j!==Number.POSITIVE_INFINITY&&Z.borderType!==T&&(N[V]=Math.max(N[V],j))}return A(R,b.predecessors.bind(b)),A(U,b.successors.bind(b)),e.forEach(g,function(V){N[V]=N[y[V]]}),N}function c(p,v,y,g){var k=new t,N=p.graph(),b=E(N.nodesep,N.edgesep,g);return e.forEach(v,function(T){var A;e.forEach(T,function(R){var U=y[R];if(k.setNode(U),A){var V=y[A],j=k.edge(V,U);k.setEdge(V,U,Math.max(b(p,R,A),j||0))}A=R})}),k}function f(p,v){return e.minBy(e.values(v),function(y){var g=Number.NEGATIVE_INFINITY,k=Number.POSITIVE_INFINITY;return e.forIn(y,function(N,b){var T=_(p,b)/2;g=Math.max(N+T,g),k=Math.min(N-T,k)}),g-k})}function h(p,v){var y=e.values(v),g=e.min(y),k=e.max(y);e.forEach(["u","d"],function(N){e.forEach(["l","r"],function(b){var T=N+b,A=p[T],R;if(A!==v){var U=e.values(A);R=b==="l"?g-e.min(U):k-e.max(U),R&&(p[T]=e.mapValues(A,function(V){return V+R}))}})})}function m(p,v){return e.mapValues(p.ul,function(y,g){if(v)return p[v.toLowerCase()][g];var k=e.sortBy(e.map(p,g));return(k[1]+k[2])/2})}function C(p){var v=n.buildLayerMatrix(p),y=e.merge(r(p,v),o(p,v)),g={},k;e.forEach(["u","d"],function(b){k=b==="u"?v:e.values(v).reverse(),e.forEach(["l","r"],function(T){T==="r"&&(k=e.map(k,function(V){return e.values(V).reverse()}));var A=(b==="u"?p.predecessors:p.successors).bind(p),R=u(p,k,y,A),U=d(p,k,R.root,R.align,T==="r");T==="r"&&(U=e.mapValues(U,function(V){return-V})),g[b+T]=U})});var N=f(p,g);return h(g,N),m(g,p.graph().align)}function E(p,v,y){return function(g,k,N){var b=g.node(k),T=g.node(N),A=0,R;if(A+=b.width/2,e.has(b,"labelpos"))switch(b.labelpos.toLowerCase()){case"l":R=-b.width/2;break;case"r":R=b.width/2;break}if(R&&(A+=y?R:-R),R=0,A+=(b.dummy?v:p)/2,A+=(T.dummy?v:p)/2,A+=T.width/2,e.has(T,"labelpos"))switch(T.labelpos.toLowerCase()){case"l":R=T.width/2;break;case"r":R=-T.width/2;break}return R&&(A+=y?R:-R),R=0,A}}function _(p,v){return p.node(v).width}return Yo}var Xo,Cc;function Iv(){if(Cc)return Xo;Cc=1;var e=he(),t=Pe(),n=Tv().positionX;Xo=r;function r(a){a=t.asNonCompoundGraph(a),o(a),e.forEach(n(a),function(s,l){a.node(l).x=s})}function o(a){var s=t.buildLayerMatrix(a),l=a.graph().ranksep,u=0;e.forEach(s,function(d){var c=e.max(e.map(d,function(f){return a.node(f).height}));e.forEach(d,function(f){a.node(f).y=u+c/2}),u+=c+l})}return Xo}var Zo,Nc;function Ov(){if(Nc)return Zo;Nc=1;var e=he(),t=dv(),n=fv(),r=mv(),o=Pe().normalizeRanks,a=pv(),s=Pe().removeEmptyRanks,l=gv(),u=vv(),d=_v(),c=Lv(),f=Iv(),h=Pe(),m=Ke().Graph;Zo=C;function C(I,P){var q=P&&P.debugTiming?h.time:h.notime;q("layout",function(){var G=q(" buildLayoutGraph",function(){return A(I)});q(" runLayout",function(){E(G,q)}),q(" updateInputGraph",function(){_(I,G)})})}function E(I,P){P(" makeSpaceForEdgeLabels",function(){R(I)}),P(" removeSelfEdges",function(){F(I)}),P(" acyclic",function(){t.run(I)}),P(" nestingGraph.run",function(){l.run(I)}),P(" rank",function(){r(h.asNonCompoundGraph(I))}),P(" injectEdgeLabelProxies",function(){U(I)}),P(" removeEmptyRanks",function(){s(I)}),P(" nestingGraph.cleanup",function(){l.cleanup(I)}),P(" normalizeRanks",function(){o(I)}),P(" assignRankMinMax",function(){V(I)}),P(" removeEdgeLabelProxies",function(){j(I)}),P(" normalize.run",function(){n.run(I)}),P(" parentDummyChains",function(){a(I)}),P(" addBorderSegments",function(){u(I)}),P(" order",function(){c(I)}),P(" insertSelfEdges",function(){ne(I)}),P(" adjustCoordinateSystem",function(){d.adjust(I)}),P(" position",function(){f(I)}),P(" positionSelfEdges",function(){me(I)}),P(" removeBorderNodes",function(){W(I)}),P(" normalize.undo",function(){n.undo(I)}),P(" fixupEdgeLabelCoords",function(){D(I)}),P(" undoCoordinateSystem",function(){d.undo(I)}),P(" translateGraph",function(){Z(I)}),P(" assignNodeIntersects",function(){M(I)}),P(" reversePoints",function(){J(I)}),P(" acyclic.undo",function(){t.undo(I)})}function _(I,P){e.forEach(I.nodes(),function(q){var G=I.node(q),ee=P.node(q);G&&(G.x=ee.x,G.y=ee.y,P.children(q).length&&(G.width=ee.width,G.height=ee.height))}),e.forEach(I.edges(),function(q){var G=I.edge(q),ee=P.edge(q);G.points=ee.points,e.has(ee,"x")&&(G.x=ee.x,G.y=ee.y)}),I.graph().width=P.graph().width,I.graph().height=P.graph().height}var p=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],g=["width","height"],k={width:0,height:0},N=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(I){var P=new m({multigraph:!0,compound:!0}),q=xe(I.graph());return P.setGraph(e.merge({},v,Re(q,p),e.pick(q,y))),e.forEach(I.nodes(),function(G){var ee=xe(I.node(G));P.setNode(G,e.defaults(Re(ee,g),k)),P.setParent(G,I.parent(G))}),e.forEach(I.edges(),function(G){var ee=xe(I.edge(G));P.setEdge(G,e.merge({},b,Re(ee,N),e.pick(ee,T)))}),P}function R(I){var P=I.graph();P.ranksep/=2,e.forEach(I.edges(),function(q){var G=I.edge(q);G.minlen*=2,G.labelpos.toLowerCase()!=="c"&&(P.rankdir==="TB"||P.rankdir==="BT"?G.width+=G.labeloffset:G.height+=G.labeloffset)})}function U(I){e.forEach(I.edges(),function(P){var q=I.edge(P);if(q.width&&q.height){var G=I.node(P.v),ee=I.node(P.w),ce={rank:(ee.rank-G.rank)/2+G.rank,e:P};h.addDummyNode(I,"edge-proxy",ce,"_ep")}})}function V(I){var P=0;e.forEach(I.nodes(),function(q){var G=I.node(q);G.borderTop&&(G.minRank=I.node(G.borderTop).rank,G.maxRank=I.node(G.borderBottom).rank,P=e.max(P,G.maxRank))}),I.graph().maxRank=P}function j(I){e.forEach(I.nodes(),function(P){var q=I.node(P);q.dummy==="edge-proxy"&&(I.edge(q.e).labelRank=q.rank,I.removeNode(P))})}function Z(I){var P=Number.POSITIVE_INFINITY,q=0,G=Number.POSITIVE_INFINITY,ee=0,ce=I.graph(),pe=ce.marginx||0,Ie=ce.marginy||0;function St(we){var be=we.x,Me=we.y,st=we.width,Lt=we.height;P=Math.min(P,be-st/2),q=Math.max(q,be+st/2),G=Math.min(G,Me-Lt/2),ee=Math.max(ee,Me+Lt/2)}e.forEach(I.nodes(),function(we){St(I.node(we))}),e.forEach(I.edges(),function(we){var be=I.edge(we);e.has(be,"x")&&St(be)}),P-=pe,G-=Ie,e.forEach(I.nodes(),function(we){var be=I.node(we);be.x-=P,be.y-=G}),e.forEach(I.edges(),function(we){var be=I.edge(we);e.forEach(be.points,function(Me){Me.x-=P,Me.y-=G}),e.has(be,"x")&&(be.x-=P),e.has(be,"y")&&(be.y-=G)}),ce.width=q-P+pe,ce.height=ee-G+Ie}function M(I){e.forEach(I.edges(),function(P){var q=I.edge(P),G=I.node(P.v),ee=I.node(P.w),ce,pe;q.points?(ce=q.points[0],pe=q.points[q.points.length-1]):(q.points=[],ce=ee,pe=G),q.points.unshift(h.intersectRect(G,ce)),q.points.push(h.intersectRect(ee,pe))})}function D(I){e.forEach(I.edges(),function(P){var q=I.edge(P);if(e.has(q,"x"))switch((q.labelpos==="l"||q.labelpos==="r")&&(q.width-=q.labeloffset),q.labelpos){case"l":q.x-=q.width/2+q.labeloffset;break;case"r":q.x+=q.width/2+q.labeloffset;break}})}function J(I){e.forEach(I.edges(),function(P){var q=I.edge(P);q.reversed&&q.points.reverse()})}function W(I){e.forEach(I.nodes(),function(P){if(I.children(P).length){var q=I.node(P),G=I.node(q.borderTop),ee=I.node(q.borderBottom),ce=I.node(e.last(q.borderLeft)),pe=I.node(e.last(q.borderRight));q.width=Math.abs(pe.x-ce.x),q.height=Math.abs(ee.y-G.y),q.x=ce.x+q.width/2,q.y=G.y+q.height/2}}),e.forEach(I.nodes(),function(P){I.node(P).dummy==="border"&&I.removeNode(P)})}function F(I){e.forEach(I.edges(),function(P){if(P.v===P.w){var q=I.node(P.v);q.selfEdges||(q.selfEdges=[]),q.selfEdges.push({e:P,label:I.edge(P)}),I.removeEdge(P)}})}function ne(I){var P=h.buildLayerMatrix(I);e.forEach(P,function(q){var G=0;e.forEach(q,function(ee,ce){var pe=I.node(ee);pe.order=ce+G,e.forEach(pe.selfEdges,function(Ie){h.addDummyNode(I,"selfedge",{width:Ie.label.width,height:Ie.label.height,rank:pe.rank,order:ce+ ++G,e:Ie.e,label:Ie.label},"_se")}),delete pe.selfEdges})})}function me(I){e.forEach(I.nodes(),function(P){var q=I.node(P);if(q.dummy==="selfedge"){var G=I.node(q.e.v),ee=G.x+G.width/2,ce=G.y,pe=q.x-ee,Ie=G.height/2;I.setEdge(q.e,q.label),I.removeNode(P),q.label.points=[{x:ee+2*pe/3,y:ce-Ie},{x:ee+5*pe/6,y:ce-Ie},{x:ee+pe,y:ce},{x:ee+5*pe/6,y:ce+Ie},{x:ee+2*pe/3,y:ce+Ie}],q.label.x=q.x,q.label.y=q.y}})}function Re(I,P){return e.mapValues(e.pick(I,P),Number)}function xe(I){var P={};return e.forEach(I,function(q,G){P[G.toLowerCase()]=q}),P}return Zo}var Jo,wc;function Av(){if(wc)return Jo;wc=1;var e=he(),t=Pe(),n=Ke().Graph;Jo={debugOrdering:r};function r(o){var a=t.buildLayerMatrix(o),s=new n({compound:!0,multigraph:!0}).setGraph({});return e.forEach(o.nodes(),function(l){s.setNode(l,{label:l}),s.setParent(l,"layer"+o.node(l).rank)}),e.forEach(o.edges(),function(l){s.setEdge(l.v,l.w,{},l.name)}),e.forEach(a,function(l,u){var d="layer"+u;s.setNode(d,{rank:"same"}),e.reduce(l,function(c,f){return s.setEdge(c,f,{style:"invis"}),f})}),s}return Jo}var Qo,Sc;function Rv(){return Sc||(Sc=1,Qo="0.8.5"),Qo}var ea,Lc;function Dv(){return Lc||(Lc=1,ea={graphlib:Ke(),layout:Ov(),debug:Av(),util:{time:Pe().time,notime:Pe().notime},version:Rv()}),ea}var Pv=Dv();const Tc=L.getDefaultExportFromCjs(Pv),lt="root.Triggers",tn={predecessorsEdge(e,t){const{getEdges:n}=te.useVueFlow(e),r=[];for(const o of n.value)if(o.target===t){r.push(o);const a=this.predecessorsEdge(e,o.source);a.length>0&&r.push(...a)}return r},successorsEdge(e,t){const{getEdges:n}=te.useVueFlow(e),r=[];for(const o of n.value)if(o.source===t){r.push(o);const a=this.successorsEdge(e,o.target);a.length>0&&r.push(...a)}return r},predecessorsNode(e,t){const{getEdges:n,findNode:r}=te.useVueFlow(e),o=r(t),a=o?[o]:[];for(const s of n.value)if(s.target===t){a.push(s.sourceNode);const l=this.predecessorsNode(e,s.source);l.length>0&&a.push(...l)}return a},successorsNode(e,t){const{getEdges:n,findNode:r}=te.useVueFlow(e),o=[r(t)];for(const a of n.value)if(a.source===t){o.push(a.targetNode);const s=this.successorsNode(e,a.target);s.length>0&&o.push(...s)}return o},linkedElements(e,t){return[...this.predecessorsEdge(e,t),...this.predecessorsNode(e,t),...this.successorsEdge(e,t),...this.successorsNode(e,t)]},generateDagreGraph(e,t,n,r,o,a,s){const l=new Tc.graphlib.Graph({compound:!0});l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:n?"LR":"TB"});for(const u of e.nodes)t.includes(u.uid)||l.setNode(u.uid,{width:this.getNodeWidth(u),height:this.getNodeHeight(u)});for(const u of e.clusters||[]){const d=u.cluster.uid.replace(ct,"");if(r.includes(u.cluster.uid)&&a.has(d)){const c={uid:d,type:"collapsedcluster"};l.setNode(d,{width:this.getNodeWidth(c),height:this.getNodeHeight(c)}),s.push(c);continue}if(!o[u.cluster.uid]){l.setNode(u.cluster.uid,{clusterLabelPos:"top"});for(const c of u.nodes||[])t.includes(c)||l.setParent(c,u.cluster.uid)}if(u.parents){const c=o[u.cluster.uid]?o[u.cluster.uid]:u.cluster.uid;t.includes(c)||l.setParent(c,u.parents[u.parents.length-1])}}for(const u of e.edges||[]){const d=this.replaceIfCollapsed(u.source,u.target,o,t);d&&l.setEdge(d.source,d.target)}return Tc.layout(l),l},getNodePosition(e,t){const n={x:e.x-e.width/2,y:e.y-e.height/2};if(t){const r=this.getNodePosition(t);n.x=n.x-r.x,n.y=n.y-r.y}return n},getNodeWidth(e){return this.isTaskNode(e)||this.isTriggerNode(e)?et.TASK_WIDTH:this.isCollapsedCluster(e)?et.COLLAPSED_CLUSTER_WIDTH:et.DOT_WIDTH},getNodeHeight(e){return this.isTaskNode(e)||this.isTriggerNode(e)?et.TASK_HEIGHT:this.isCollapsedCluster(e)?et.COLLAPSED_CLUSTER_HEIGHT:et.DOT_HEIGHT},isTaskNode(e){return["GraphTask","SubflowGraphTask$1"].some(t=>e.type.endsWith(t))},isTriggerNode(e){return e.type.endsWith("GraphTrigger")},isCollapsedCluster(e){return e.type==="collapsedcluster"},replaceIfCollapsed(e,t,n,r){const o=n[e]?n[e]:e,a=n[t]?n[t]:t;return o===a||r.includes(o)||r.includes(a)?null:{target:a,source:o}},cleanGraph(e){const{getEdges:t,getNodes:n,getElements:r,removeEdges:o,removeNodes:a,removeSelectedElements:s}=te.useVueFlow(e);o(t.value),a(n.value),s(r.value)},flowHaveTasks(e){return e?L.flowHaveTasks(e):!1},nodeColor(e,t){return e.uid===lt||this.isTriggerNode(e)||this.isCollapsedCluster(e)?"success":e.type.endsWith("SubflowGraphTask")?"primary":e.branchType=="ERROR"?"danger":e.branchType=="FINALLY"?"warning":t.has(e.uid)?"blue":"default"},haveAdd(e,t,n,r){var d,c,f;if(r.some(h=>e.source.startsWith(h)&&e.target.startsWith(h))||n.includes(e.target)||e.source.startsWith(lt)||e.target.startsWith(lt))return;const o=e.target.split(".");o.pop();const a=o.join("."),s=ge.afterLastDot(a),l=t[e.target];if(l.type.endsWith("GraphClusterEnd")&&((f=(c=(d=t[a])==null?void 0:d.task)==null?void 0:c.type)!=null&&f.endsWith("Parallel")))return;if(l.type.endsWith("GraphClusterRoot"))return[s,"before"];const u=t[e.source].type.endsWith("GraphClusterEnd");if(!u&&l.type.endsWith("GraphClusterEnd"))return[ge.afterLastDot(e.source),"after"];if(u){const h=e.source.split(".");return[h[h.length-2],"after"]}return[ge.afterLastDot(e.target),"before"]},getEdgeColor(e,t,n){const r=s=>{var u,d;const l=s.split(".");for(let c=1;c<=l.length;c++){const f=l.slice(0,c).join("."),h=(u=n[f])==null?void 0:u.branchType;if(h)return h}return((d=t[s])==null?void 0:d.branchType)??null},o=r(e.source),a=r(e.target);return[o,a].includes("ERROR")?"danger":[o,a].includes("FINALLY")?"warning":null},generateGraph(e,t,n,r,o,a,s,l,u,d,c,f,h){var b,T,A,R,U,V,j,Z,M,D,J,W;const m=[],C=[ct+lt];if(!r||o&&!this.flowHaveTasks(o)){m.push({id:"start",type:"dot",position:{x:0,y:0},style:{width:"5px",height:"5px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:void 0,draggable:!1}),m.push({id:"end",type:"dot",position:s?{x:50,y:0}:{x:0,y:50},style:{width:"5px",height:"5px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:void 0,draggable:!1}),m.push({id:"start|end",source:"start",target:"end",type:"edge",data:{edge:{relation:{relationType:"SEQUENTIAL"}},isFlowable:!1,initTask:!0,color:"primary"}});return}const E=this.generateDagreGraph(r,a,s,C,l,u,d),_={},p=r.clusters||[],v=p.map(F=>F.cluster),y=v.filter(F=>F.type.endsWith("SubflowGraphCluster")).map(F=>F.taskNode.uid),g=Object.fromEntries(r.nodes.concat(d).map(F=>[F.uid,F]));for(const F of p)if(!l[F.cluster.uid]&&!u.has(F.cluster.uid)){((T=(b=F.cluster.taskNode)==null?void 0:b.task)==null?void 0:T.type)==="io.kestra.core.tasks.flows.Dag"&&y.push(F.cluster.taskNode.uid);for(const I of F.nodes)_[I]=F.cluster;const ne=F.cluster.uid,me=E.node(ne),Re=F.parents?F.parents[F.parents.length-1]:void 0,xe=this.computeClusterColor(F.cluster);m.push({id:ne,type:"cluster",parentNode:Re,position:this.getNodePosition(me,Re?E.node(Re):void 0),style:{width:ne===lt&&s?et.TRIGGER_CLUSTER_WIDTH+"px":me.width+"px",height:ne===lt&&!s?et.TRIGGER_CLUSTER_HEIGHT+"px":me.height+"px"},data:{collapsable:!0,color:xe,taskNode:F.cluster.taskNode,unused:F.cluster.taskNode?g[F.cluster.taskNode.uid].unused:!1},class:`ks-topology-${xe}-border rounded p-2`})}for(const F of r.nodes.concat(d))if(!a.includes(F.uid)){const ne=E.node(F.uid);let me="task";this.isClusterRootOrEnd(F)?me="dot":F.type.includes("GraphTrigger")?me="trigger":F.type==="collapsedcluster"&&(me="collapsedcluster");const Re=this.nodeColor(F,u),xe=c||((R=(A=F.task)==null?void 0:A.type)==null?void 0:R.includes("$"))||y.some(I=>F.uid.startsWith(I+"."));m.push({id:F.uid,type:me,position:this.getNodePosition(ne,_[F.uid]?E.node(_[F.uid].uid):void 0),style:{width:this.getNodeWidth(F)+"px",height:this.getNodeHeight(F)+"px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:_[F.uid]?_[F.uid].uid:void 0,draggable:me==="task"?!xe:!1,data:{node:F,parent:_[F.uid]?_[F.uid]:void 0,namespace:((j=(V=(U=_[F.uid])==null?void 0:U.taskNode)==null?void 0:V.task)==null?void 0:j.namespace)??n,flowId:((D=(M=(Z=_[F.uid])==null?void 0:Z.taskNode)==null?void 0:M.task)==null?void 0:D.flowId)??t,isFlowable:((J=_[F.uid])==null?void 0:J.uid)===ct+F.uid&&!F.type.endsWith("SubflowGraphTask"),color:Re,expandable:this.isExpandableTask(F,_,l,h),isReadOnly:xe,iconComponent:this.isCollapsedCluster(F)?"lightning-bolt":null,executionId:F.executionId,unused:F.unused},class:F.type==="collapsedcluster"?`ks-topology-${Re}-border rounded`:""})}const k=v.filter(F=>F.taskNode).map(F=>F.taskNode.uid),N=r.edges??[];for(const F of N){const ne=this.replaceIfCollapsed(F.source,F.target,l,a);if(ne){const me=this.getEdgeColor(F,g,_);m.push({id:ne.source+"|"+ne.target,source:ne.source,target:ne.target,type:"edge",markerEnd:this.isClusterRootOrEnd(g[ne.target])?"":{id:"marker-"+(g[ne.target].branchType?(W=g[ne.target].branchType)==null?void 0:W.toLocaleLowerCase():"custom"),type:te.MarkerType.ArrowClosed,color:me?`var(--ks-border-${me})`:"var(--ks-topology-edge-color)"},data:{haveAdd:!c&&f&&this.haveAdd(F,g,k,y),haveDashArray:g[F.source].type.endsWith("GraphTrigger")||g[F.target].type.endsWith("GraphTrigger")||F.source.startsWith(lt),color:me,unused:F.unused},style:{zIndex:10}})}}return m},isClusterRootOrEnd(e){return["GraphClusterRoot","GraphClusterFinally","GraphClusterAfterExecution","GraphClusterEnd"].some(t=>e.type.endsWith(t))},computeClusterColor(e){return e.uid===ct+lt?"success":e.type.endsWith("SubflowGraphCluster")?"primary":e.branchType==="ERROR"?"danger":"blue"},isExpandableTask(e,t,n,r){var o,a;return Object.values(n).includes(e.uid)||this.isCollapsedCluster(e)?!0:e.type.endsWith("SubflowGraphTask")&&((a=(o=t[e.uid])==null?void 0:o.uid)==null?void 0:a.replace(ct,""))!==e.uid&&r}};let Kt;async function Bv(){if(Kt)return Kt;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-CPHSSwzs.cjs")).then(n=>n.useMarkdownParser);return Kt=await(e.default??e)(),Kt}var nn={exports:{}},Vv=nn.exports,Ic;function xv(){return Ic||(Ic=1,function(e,t){(function(n,r,o){e.exports=o(),e.exports.default=o()})("slugify",Vv,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function o(a,s){if(typeof a!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var l=r[s.locale]||{},u=s.replacement===void 0?"-":s.replacement,d=s.trim===void 0?!0:s.trim,c=a.normalize().split("").reduce(function(f,h){var m=l[h];return m===void 0&&(m=n[h]),m===void 0&&(m=h),m===u&&(m=" "),f+m.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),d&&(c=c.trim()),c=c.replace(/\s+/g,u),s.lower&&(c=c.toLowerCase()),c}return o.extend=function(a){Object.assign(n,a)},o})}(nn)),nn.exports}var Mv=xv();const tf=L.getDefaultExportFromCjs(Mv);tf.extend({"(":"-",")":""});function _t(e){return tf(e,{lower:!0,locale:"en"})}function nf(e,t){return Array.isArray(t)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(t.length===0||typeof t[0]=="string")}function At(e){const t=e.title.replaceAll(/\.([a-zA-Z])/g,(n,r)=>` ${r.toUpperCase()}`);return t.charAt(0).toUpperCase()+t.slice(1)}/*!
|
|
1
|
+
"use strict";var Dh=Object.create;var rs=Object.defineProperty;var Ph=Object.getOwnPropertyDescriptor;var Bh=Object.getOwnPropertyNames;var Vh=Object.getPrototypeOf,xh=Object.prototype.hasOwnProperty;var Mh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Bh(t))!xh.call(e,o)&&o!==n&&rs(e,o,{get:()=>t[o],enumerable:!(r=Ph(t,o))||r.enumerable});return e};var $h=(e,t,n)=>(n=e!=null?Dh(Vh(e)):{},Mh(t||!e||!e.__esModule?rs(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vt=require("yaml"),L=require("./FlowYamlUtils-CwE38P6I.cjs"),i=require("vue"),qh=require("humanize-duration"),$t=require("moment"),Fh=require("moment-timezone"),te=require("@vue-flow/core"),Dn=require("@vue-flow/controls"),Uh=require("@popperjs/core"),on=require("vue-router"),nt={TASKS:"TASKS",TRIGGERS:"TRIGGERS",TASK_RUNNERS:"TASK_RUNNERS"},H={EDIT:"edit",DELETE:"delete",SHOW_DESCRIPTION:"showDescription",COLLAPSE:"collapse",EXPAND:"expand",OPEN_LINK:"openLink",ADD_TASK:"addTask",SHOW_LOGS:"showLogs",MOUSE_OVER:"mouseover",MOUSE_LEAVE:"mouseleave",ADD_ERROR:"addError",EXPAND_DEPENDENCIES:"expandDependencies",SHOW_CONDITION:"showCondition"},ct="cluster_",Hh={EXECUTIONS:"executions",TASKRUNS:"taskruns"},Gh={ALL:"all",ERROR:"error",HIDDEN:"hidden",DEFAULT:"all"},et={TASK_WIDTH:184,TASK_HEIGHT:44,TRIGGER_WIDTH:184,TRIGGER_HEIGHT:44,DOT_WIDTH:5,DOT_HEIGHT:5,COLLAPSED_CLUSTER_WIDTH:150,COLLAPSED_CLUSTER_HEIGHT:44,TRIGGER_CLUSTER_WIDTH:350,TRIGGER_CLUSTER_HEIGHT:180},zh={STORAGE_KEY:"view-type",SOURCE:"source",SOURCE_TOPOLOGY:"source-topology",SOURCE_DOC:"source-doc",TOPOLOGY:"topology",SOURCE_BLUEPRINTS:"source-blueprints"},jh={DISPLAY_EXECUTIONS_COLUMNS:"displayExecutionsColumns",DISPLAY_FLOW_EXECUTIONS_COLUMNS:"displayFlowExecutionsColumns",SELECTED_TENANT:"selectedTenant",EXECUTE_FLOW_BEHAVIOUR:"executeFlowBehaviour",SHOW_CHART:"showChart",SHOW_FLOWS_CHART:"showFlowsChart",SHOW_LOGS_CHART:"showLogsChart",DEFAULT_NAMESPACE:"defaultNamespace",LATEST_NAMESPACE:"latestNamespace",PAGINATION_SIZE:"paginationSize",IMPERSONATE:"impersonate",EDITOR_VIEW_TYPE:"editorViewType"},Wh={SAME_TAB:"same tab",NEW_TAB:"new tab"},Kh={INPROGRESS:"IN-PROGRESS"},Yh={lineWidth:0},is=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],Xh={stringify:L.stringify,parse:L.parse,pairsToMap:L.pairsToMap,extractTask(e,t){for(const n of is){const r=L.extractBlock({source:e,section:n,key:t});if(r)return r}},_extractTask(e,t,n){function r(a){if(a){if(a instanceof vt.YAMLMap&&a.get("type")!==void 0&&t===a.get("id"))return n?n(a):a;if(a.items)for(const[s,l]of a.items.entries()){let u;if(l instanceof vt.YAMLMap?u=r(l):u=r(l.value),u&&(n&&(a instanceof vt.YAMLMap?a.set(l.key.value,u):a.items[s]=u),!n&&u))return u}}}const o=r(e.contents);if(o!==void 0)return n?new vt.Document(o):new vt.Document(o)},replaceTaskInDocument(e,t,n,r="tasks",o="id"){return L.replaceBlockInDocument({source:e,section:r,keyName:o,key:t,newContent:n})},sort:L.sort,getAllCharts:L.getAllCharts,getChartAtPosition:L.getChartAtPosition,localizeElementAtIndex:L.localizeElementAtIndex,getTaskType:L.getTypeAtPosition,swapTasks(e,t,n){const r=vt.parseDocument(e),o=this._extractTask(r,t),a=this._extractTask(r,n);return vt.visit(r,{Pair(s,l){if(l.key.value==="dependsOn"&&l.value.items.map(u=>u.value).includes(n))throw{message:"dependency task",messageOptions:{taskId:n}}}}),this._extractTask(r,t,()=>a),this._extractTask(r,n,()=>o),r.toString(Yh)},insertTask(e,t,n,r,o){return L.insertBlock({source:e,section:"tasks",newBlock:n,refKey:t,position:r,parentKey:o})},insertSection(e,t,n){return L.insertBlock({source:t,section:e,newBlock:n})},insertErrorInFlowable:L.insertErrorInFlowable,deleteSection(e,t,n){return L.deleteBlock({source:e,section:t,key:n})},deleteTask(e,t,n){return(n===nt.TASKS?["tasks","errors"]:["triggers"]).reduce((o,a)=>L.deleteBlock({source:o,section:a,key:t}),e)},getLastTask(e,t){return L.getLastBlock({source:e,section:"tasks",parentKey:t})},checkTaskAlreadyExist(e,t){return L.checkBlockAlreadyExists({source:e,section:"tasks",newContent:t,keyName:"id"})},isParentChildrenRelation(e,t,n){return L.isParentChildrenRelation({source:e,sections:is,key1:t,key2:n,keyName:"id"})},replaceIdAndNamespace:L.replaceIdAndNamespace,updateMetadata:L.updateMetadata,cleanMetadata:L.cleanMetadata,getMetadata:L.getMetadata,deleteMetadata:L.deleteMetadata,flowHaveTasks:L.flowHaveTasks,extractPluginDefault:L.extractPluginDefault,replacePluginDefaultsInDocument:L.replacePluginDefaultsInDocument,deletePluginDefaults:L.deletePluginDefaults,extractFieldFromMaps:L.extractFieldFromMaps,getVersionAtPosition:L.getVersionAtPosition},Fe=e=>{const t=document.querySelector(":root"),n=t?getComputedStyle(t):null;return n==null?void 0:n.getPropertyValue(e)};var Pn,os;function Zh(){if(os)return Pn;os=1;function e(t){return function(n,r,o){for(var a=-1,s=Object(n),l=o(n),u=l.length;u--;){var d=l[t?u:++a];if(r(s[d],d,s)===!1)break}return n}}return Pn=e,Pn}var Bn,as;function La(){if(as)return Bn;as=1;var e=Zh(),t=e();return Bn=t,Bn}var Vn,ss;function Ta(){if(ss)return Vn;ss=1;var e=La(),t=L.requireKeys();function n(r,o){return r&&e(r,o,t)}return Vn=n,Vn}var xn,ls;function Jh(){if(ls)return xn;ls=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return xn=t,xn}var Mn,us;function Qh(){if(us)return Mn;us=1;function e(t){return this.__data__.has(t)}return Mn=e,Mn}var $n,cs;function Ed(){if(cs)return $n;cs=1;var e=L.require_MapCache(),t=Jh(),n=Qh();function r(o){var a=-1,s=o==null?0:o.length;for(this.__data__=new e;++a<s;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,$n=r,$n}var qn,ds;function em(){if(ds)return qn;ds=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return qn=e,qn}var Fn,fs;function yd(){if(fs)return Fn;fs=1;function e(t,n){return t.has(n)}return Fn=e,Fn}var Un,hs;function bd(){if(hs)return Un;hs=1;var e=Ed(),t=em(),n=yd(),r=1,o=2;function a(s,l,u,d,c,f){var h=u&r,m=s.length,C=l.length;if(m!=C&&!(h&&C>m))return!1;var E=f.get(s),_=f.get(l);if(E&&_)return E==l&&_==s;var p=-1,v=!0,y=u&o?new e:void 0;for(f.set(s,l),f.set(l,s);++p<m;){var g=s[p],k=l[p];if(d)var N=h?d(k,g,p,l,s,f):d(g,k,p,s,l,f);if(N!==void 0){if(N)continue;v=!1;break}if(y){if(!t(l,function(b,T){if(!n(y,T)&&(g===b||c(g,b,u,d,f)))return y.push(T)})){v=!1;break}}else if(!(g===k||c(g,k,u,d,f))){v=!1;break}}return f.delete(s),f.delete(l),v}return Un=a,Un}var Hn,ms;function tm(){if(ms)return Hn;ms=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return Hn=e,Hn}var Gn,ps;function Ia(){if(ps)return Gn;ps=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Gn=e,Gn}var zn,gs;function nm(){if(gs)return zn;gs=1;var e=L.require_Symbol(),t=L.require_Uint8Array(),n=L.requireEq(),r=bd(),o=tm(),a=Ia(),s=1,l=2,u="[object Boolean]",d="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",m="[object RegExp]",C="[object Set]",E="[object String]",_="[object Symbol]",p="[object ArrayBuffer]",v="[object DataView]",y=e?e.prototype:void 0,g=y?y.valueOf:void 0;function k(N,b,T,A,R,U,V){switch(T){case v:if(N.byteLength!=b.byteLength||N.byteOffset!=b.byteOffset)return!1;N=N.buffer,b=b.buffer;case p:return!(N.byteLength!=b.byteLength||!U(new t(N),new t(b)));case u:case d:case h:return n(+N,+b);case c:return N.name==b.name&&N.message==b.message;case m:case E:return N==b+"";case f:var j=o;case C:var Z=A&s;if(j||(j=a),N.size!=b.size&&!Z)return!1;var M=V.get(N);if(M)return M==b;A|=l,V.set(N,b);var D=r(j(N),j(b),A,R,U,V);return V.delete(N),D;case _:if(g)return g.call(N)==g.call(b)}return!1}return zn=k,zn}var jn,vs;function rm(){if(vs)return jn;vs=1;var e=L.require_getAllKeys(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,s,l,u,d,c){var f=l&t,h=e(a),m=h.length,C=e(s),E=C.length;if(m!=E&&!f)return!1;for(var _=m;_--;){var p=h[_];if(!(f?p in s:r.call(s,p)))return!1}var v=c.get(a),y=c.get(s);if(v&&y)return v==s&&y==a;var g=!0;c.set(a,s),c.set(s,a);for(var k=f;++_<m;){p=h[_];var N=a[p],b=s[p];if(u)var T=f?u(b,N,p,s,a,c):u(N,b,p,a,s,c);if(!(T===void 0?N===b||d(N,b,l,u,c):T)){g=!1;break}k||(k=p=="constructor")}if(g&&!k){var A=a.constructor,R=s.constructor;A!=R&&"constructor"in a&&"constructor"in s&&!(typeof A=="function"&&A instanceof A&&typeof R=="function"&&R instanceof R)&&(g=!1)}return c.delete(a),c.delete(s),g}return jn=o,jn}var Wn,_s;function im(){if(_s)return Wn;_s=1;var e=L.require_Stack(),t=bd(),n=nm(),r=rm(),o=L.require_getTag(),a=L.requireIsArray(),s=L.requireIsBuffer(),l=L.requireIsTypedArray(),u=1,d="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,m=h.hasOwnProperty;function C(E,_,p,v,y,g){var k=a(E),N=a(_),b=k?c:o(E),T=N?c:o(_);b=b==d?f:b,T=T==d?f:T;var A=b==f,R=T==f,U=b==T;if(U&&s(E)){if(!s(_))return!1;k=!0,A=!1}if(U&&!A)return g||(g=new e),k||l(E)?t(E,_,p,v,y,g):n(E,_,b,p,v,y,g);if(!(p&u)){var V=A&&m.call(E,"__wrapped__"),j=R&&m.call(_,"__wrapped__");if(V||j){var Z=V?E.value():E,M=j?_.value():_;return g||(g=new e),y(Z,M,p,v,g)}}return U?(g||(g=new e),r(E,_,p,v,y,g)):!1}return Wn=C,Wn}var Kn,Es;function kd(){if(Es)return Kn;Es=1;var e=im(),t=L.requireIsObjectLike();function n(r,o,a,s,l){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,s,n,l)}return Kn=n,Kn}var Yn,ys;function om(){if(ys)return Yn;ys=1;var e=L.require_Stack(),t=kd(),n=1,r=2;function o(a,s,l,u){var d=l.length,c=d,f=!u;if(a==null)return!c;for(a=Object(a);d--;){var h=l[d];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++d<c;){h=l[d];var m=h[0],C=a[m],E=h[1];if(f&&h[2]){if(C===void 0&&!(m in a))return!1}else{var _=new e;if(u)var p=u(C,E,m,a,s,_);if(!(p===void 0?t(E,C,n|r,u,_):p))return!1}}return!0}return Yn=o,Yn}var Xn,bs;function Cd(){if(bs)return Xn;bs=1;var e=L.requireIsObject();function t(n){return n===n&&!e(n)}return Xn=t,Xn}var Zn,ks;function am(){if(ks)return Zn;ks=1;var e=Cd(),t=L.requireKeys();function n(r){for(var o=t(r),a=o.length;a--;){var s=o[a],l=r[s];o[a]=[s,l,e(l)]}return o}return Zn=n,Zn}var Jn,Cs;function Nd(){if(Cs)return Jn;Cs=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Jn=e,Jn}var Qn,Ns;function sm(){if(Ns)return Qn;Ns=1;var e=om(),t=am(),n=Nd();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===o||e(s,o,a)}}return Qn=r,Qn}var er,ws;function Bt(){if(ws)return er;ws=1;var e=L.require_baseGetTag(),t=L.requireIsObjectLike(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return er=r,er}var tr,Ss;function Oa(){if(Ss)return tr;Ss=1;var e=L.requireIsArray(),t=Bt(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(a,s){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return tr=o,tr}var nr,Ls;function lm(){if(Ls)return nr;Ls=1;var e=L.require_MapCache(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var s=arguments,l=o?o.apply(this,s):s[0],u=a.cache;if(u.has(l))return u.get(l);var d=r.apply(this,s);return a.cache=u.set(l,d)||u,d};return a.cache=new(n.Cache||e),a}return n.Cache=e,nr=n,nr}var rr,Ts;function um(){if(Ts)return rr;Ts=1;var e=lm(),t=500;function n(r){var o=e(r,function(s){return a.size===t&&a.clear(),s}),a=o.cache;return o}return rr=n,rr}var ir,Is;function cm(){if(Is)return ir;Is=1;var e=um(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(s,l,u,d){a.push(u?d.replace(n,"$1"):l||s)}),a});return ir=r,ir}var or,Os;function gn(){if(Os)return or;Os=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return or=e,or}var ar,As;function dm(){if(As)return ar;As=1;var e=L.require_Symbol(),t=gn(),n=L.requireIsArray(),r=Bt(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function s(l){if(typeof l=="string")return l;if(n(l))return t(l,s)+"";if(r(l))return a?a.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return ar=s,ar}var sr,Rs;function wd(){if(Rs)return sr;Rs=1;var e=dm();function t(n){return n==null?"":e(n)}return sr=t,sr}var lr,Ds;function vn(){if(Ds)return lr;Ds=1;var e=L.requireIsArray(),t=Oa(),n=cm(),r=wd();function o(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return lr=o,lr}var ur,Ps;function Gt(){if(Ps)return ur;Ps=1;var e=Bt();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ur=t,ur}var cr,Bs;function _n(){if(Bs)return cr;Bs=1;var e=vn(),t=Gt();function n(r,o){o=e(o,r);for(var a=0,s=o.length;r!=null&&a<s;)r=r[t(o[a++])];return a&&a==s?r:void 0}return cr=n,cr}var dr,Vs;function fm(){if(Vs)return dr;Vs=1;var e=_n();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return dr=t,dr}var fr,xs;function hm(){if(xs)return fr;xs=1;function e(t,n){return t!=null&&n in Object(t)}return fr=e,fr}var hr,Ms;function Sd(){if(Ms)return hr;Ms=1;var e=vn(),t=L.requireIsArguments(),n=L.requireIsArray(),r=L.require_isIndex(),o=L.requireIsLength(),a=Gt();function s(l,u,d){u=e(u,l);for(var c=-1,f=u.length,h=!1;++c<f;){var m=a(u[c]);if(!(h=l!=null&&d(l,m)))break;l=l[m]}return h||++c!=f?h:(f=l==null?0:l.length,!!f&&o(f)&&r(m,f)&&(n(l)||t(l)))}return hr=s,hr}var mr,$s;function Ld(){if($s)return mr;$s=1;var e=hm(),t=Sd();function n(r,o){return r!=null&&t(r,o,e)}return mr=n,mr}var pr,qs;function mm(){if(qs)return pr;qs=1;var e=kd(),t=fm(),n=Ld(),r=Oa(),o=Cd(),a=Nd(),s=Gt(),l=1,u=2;function d(c,f){return r(c)&&o(f)?a(s(c),f):function(h){var m=t(h,c);return m===void 0&&m===f?n(h,c):e(f,m,l|u)}}return pr=d,pr}var gr,Fs;function kt(){if(Fs)return gr;Fs=1;function e(t){return t}return gr=e,gr}var vr,Us;function Td(){if(Us)return vr;Us=1;function e(t){return function(n){return n==null?void 0:n[t]}}return vr=e,vr}var _r,Hs;function pm(){if(Hs)return _r;Hs=1;var e=_n();function t(n){return function(r){return e(r,n)}}return _r=t,_r}var Er,Gs;function gm(){if(Gs)return Er;Gs=1;var e=Td(),t=pm(),n=Oa(),r=Gt();function o(a){return n(a)?e(r(a)):t(a)}return Er=o,Er}var yr,zs;function ot(){if(zs)return yr;zs=1;var e=sm(),t=mm(),n=kt(),r=L.requireIsArray(),o=gm();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):o(s)}return yr=a,yr}var br,js;function Id(){if(js)return br;js=1;var e=L.require_baseAssignValue(),t=Ta(),n=ot();function r(o,a){var s={};return a=n(a,3),t(o,function(l,u,d){e(s,u,a(l,u,d))}),s}return br=r,br}var vm=Id();const Wt=L.getDefaultExportFromCjs(vm),K=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},_m={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Em=["aria-hidden","aria-label"],ym=["fill","width","height"],bm={d:"M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},km={key:0};function Cm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",bm,[n.title?(i.openBlock(),i.createElementBlock("title",km,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ym))],16,Em)}const Ws=K(_m,[["render",Cm]]),Nm={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wm=["aria-hidden","aria-label"],Sm=["fill","width","height"],Lm={d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"},Tm={key:0};function Im(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Lm,[n.title?(i.openBlock(),i.createElementBlock("title",Tm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Sm))],16,wm)}const Om=K(Nm,[["render",Im]]),Am={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rm=["aria-hidden","aria-label"],Dm=["fill","width","height"],Pm={d:"M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Bm={key:0};function Vm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon play-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Pm,[n.title?(i.openBlock(),i.createElementBlock("title",Bm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Dm))],16,Rm)}const xm=K(Am,[["render",Vm]]),Mm={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$m=["aria-hidden","aria-label"],qm=["fill","width","height"],Fm={d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},Um={key:0};function Hm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon close-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Fm,[n.title?(i.openBlock(),i.createElementBlock("title",Um,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,qm))],16,$m)}const sa=K(Mm,[["render",Hm]]),Gm={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zm=["aria-hidden","aria-label"],jm=["fill","width","height"],Wm={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9"},Km={key:0};function Ym(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Wm,[n.title?(i.openBlock(),i.createElementBlock("title",Km,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,jm))],16,zm)}const Xm=K(Gm,[["render",Ym]]),Zm={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jm=["aria-hidden","aria-label"],Qm=["fill","width","height"],ep={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M8,8H10V16H8M16,8V16L11,12"},tp={key:0};function np(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ep,[n.title?(i.openBlock(),i.createElementBlock("title",tp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Qm))],16,Jm)}const rp=K(Zm,[["render",np]]),ip={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},op=["aria-hidden","aria-label"],ap=["fill","width","height"],sp={d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},lp={key:0};function up(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",sp,[n.title?(i.openBlock(),i.createElementBlock("title",lp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ap))],16,op)}const la=K(ip,[["render",up]]),cp={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},dp=["aria-hidden","aria-label"],fp=["fill","width","height"],hp={d:"M2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12M10.5,12A1.5,1.5 0 0,0 12,13.5A1.5,1.5 0 0,0 13.5,12A1.5,1.5 0 0,0 12,10.5A1.5,1.5 0 0,0 10.5,12M10.5,17.5A1.5,1.5 0 0,0 12,19A1.5,1.5 0 0,0 13.5,17.5A1.5,1.5 0 0,0 12,16A1.5,1.5 0 0,0 10.5,17.5M10.5,6.5A1.5,1.5 0 0,0 12,8A1.5,1.5 0 0,0 13.5,6.5A1.5,1.5 0 0,0 12,5A1.5,1.5 0 0,0 10.5,6.5Z"},mp={key:0};function pp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",hp,[n.title?(i.openBlock(),i.createElementBlock("title",mp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,fp))],16,dp)}const gp=K(cp,[["render",pp]]),vp={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_p=["aria-hidden","aria-label"],Ep=["fill","width","height"],yp={d:"M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7M9 9H11V15H9M13 9H15V15H13"},bp={key:0};function kp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon motion-pause-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",yp,[n.title?(i.openBlock(),i.createElementBlock("title",bp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Ep))],16,_p)}const Cp=K(vp,[["render",kp]]),Np={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wp=["aria-hidden","aria-label"],Sp=["fill","width","height"],Lp={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},Tp={key:0};function Ip(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon refresh-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Lp,[n.title?(i.openBlock(),i.createElementBlock("title",Tp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Sp))],16,wp)}const Ks=K(Np,[["render",Ip]]),Op={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ap=["aria-hidden","aria-label"],Rp=["fill","width","height"],Dp={d:"M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z"},Pp={key:0};function Bp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon cancel-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Dp,[n.title?(i.openBlock(),i.createElementBlock("title",Pp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Rp))],16,Ap)}const Ys=K(Op,[["render",Bp]]),re=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:gp,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:rp,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:Om,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:xm,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:sa,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:Xm,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:la,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:sa,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:Ws,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:Ys,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:Ys,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:Cp,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:Ks,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:Ks,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:Ws,isRunning:!1,isKillable:!1,isFailed:!1}});class Ce{static get CREATED(){return re.CREATED.name}static get RESTARTED(){return re.RESTARTED.name}static get SUCCESS(){return re.SUCCESS.name}static get RUNNING(){return re.RUNNING.name}static get KILLING(){return re.KILLING.name}static get KILLED(){return re.KILLED.name}static get FAILED(){return re.FAILED.name}static get WARNING(){return re.WARNING.name}static get PAUSED(){return re.PAUSED.name}static get CANCELLED(){return re.CANCELLED.name}static get QUEUED(){return re.QUEUED.name}static get RETRYING(){return re.RETRYING.name}static get RETRIED(){return re.RETRIED.name}static get BREAKPOINT(){return re.BREAKPOINT.name}static isRunning(t){return re[t]&&re[t].isRunning}static isKillable(t){return re[t]&&re[t].isKillable}static isPaused(t){return re[t]&&re[t]===re.PAUSED}static isFailed(t){return re[t]&&re[t].isFailed}static isQueued(t){return re[t]&&re[t]===re.QUEUED}static allStates(){return Wt(re,t=>({key:t.name,icon:t.icon,color:""}))}static arrayAllStates(){return Object.values(re)}static colorClass(){return Wt(re,t=>t.colorClass)}static color(){return Wt(re,t=>Fe("--bs-"+t.colorClass))}static getStateColor(t){return re[t].color}static icon(){return Wt(re,t=>t.icon)}static getTerminatedStates(){return Object.values(re).filter(t=>!t.isRunning).map(t=>t.name)}}const Vp={en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"},fr:{y:()=>"a",mo:()=>"mo",w:()=>"se",d:()=>"j",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}},xp="dateFormat",Mp="timezone",ge={capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),dateFilter:(e,t)=>{var a,s;const n=(a=i.getCurrentInstance())==null?void 0:a.appContext.config.globalProperties.$moment().locale(),r=(s=i.getCurrentInstance())==null?void 0:s.appContext.config.globalProperties.$moment(e).locale(n);let o;return t==="iso"?o="YYYY-MM-DD HH:mm:ss.SSS":o=t??localStorage.getItem(xp)??"llll",r.tz(localStorage.getItem(Mp)??Fh.tz.guess()).format(o)},splitFirst(e,t){return e.split(t).slice(1).join(t)},duration(e){return $t.duration(e,$t.ISO_8601).asMilliseconds()/1e3},humanDuration(e,t){return t=t||{maxDecimalPoints:2},t.spacer="",t.language=localStorage.getItem("lang")||"en",t.languages=Vp,t.largest=2,typeof e!="number"&&(e=this.duration(e)),qh(e*1e3,t).replace(/\.([0-9])s$/i,".$10s")},afterLastDot(e){return e.split(".").pop()},distinctFilter(e,t,n){return n.indexOf(e)===t}};function Aa(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kr,Xs;function $p(){if(Xs)return kr;Xs=1;var e=L.require_baseClone(),t=4;function n(r){return e(r,t)}return kr=n,kr}var Cr,Zs;function Ra(){if(Zs)return Cr;Zs=1;function e(t){return function(){return t}}return Cr=e,Cr}var Nr,Js;function qp(){if(Js)return Nr;Js=1;var e=L.requireIsArrayLike();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var s=o.length,l=r?s:-1,u=Object(o);(r?l--:++l<s)&&a(u[l],l,u)!==!1;);return o}}return Nr=t,Nr}var wr,Qs;function En(){if(Qs)return wr;Qs=1;var e=Ta(),t=qp(),n=t(e);return wr=n,wr}var Sr,el;function Od(){if(el)return Sr;el=1;var e=kt();function t(n){return typeof n=="function"?n:e}return Sr=t,Sr}var Lr,tl;function Ad(){if(tl)return Lr;tl=1;var e=L.require_arrayEach(),t=En(),n=Od(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:t;return l(a,n(s))}return Lr=o,Lr}var Tr,nl;function Rd(){return nl||(nl=1,Tr=Ad()),Tr}var Ir,rl;function Fp(){if(rl)return Ir;rl=1;var e=En();function t(n,r){var o=[];return e(n,function(a,s,l){r(a,s,l)&&o.push(a)}),o}return Ir=t,Ir}var Or,il;function Dd(){if(il)return Or;il=1;var e=L.require_arrayFilter(),t=Fp(),n=ot(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:t;return l(a,n(s,3))}return Or=o,Or}var Ar,ol;function Up(){if(ol)return Ar;ol=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r,o){return r!=null&&t.call(r,o)}return Ar=n,Ar}var Rr,al;function Pd(){if(al)return Rr;al=1;var e=Up(),t=Sd();function n(r,o){return r!=null&&t(r,o,e)}return Rr=n,Rr}var Dr,sl;function Hp(){if(sl)return Dr;sl=1;var e=L.require_baseKeys(),t=L.require_getTag(),n=L.requireIsArguments(),r=L.requireIsArray(),o=L.requireIsArrayLike(),a=L.requireIsBuffer(),s=L.require_isPrototype(),l=L.requireIsTypedArray(),u="[object Map]",d="[object Set]",c=Object.prototype,f=c.hasOwnProperty;function h(m){if(m==null)return!0;if(o(m)&&(r(m)||typeof m=="string"||typeof m.splice=="function"||a(m)||l(m)||n(m)))return!m.length;var C=t(m);if(C==u||C==d)return!m.size;if(s(m))return!e(m).length;for(var E in m)if(f.call(m,E))return!1;return!0}return Dr=h,Dr}var Pr,ll;function Bd(){if(ll)return Pr;ll=1;function e(t){return t===void 0}return Pr=e,Pr}var Br,ul;function Vd(){if(ul)return Br;ul=1;var e=En(),t=L.requireIsArrayLike();function n(r,o){var a=-1,s=t(r)?Array(r.length):[];return e(r,function(l,u,d){s[++a]=o(l,u,d)}),s}return Br=n,Br}var Vr,cl;function xd(){if(cl)return Vr;cl=1;var e=gn(),t=ot(),n=Vd(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:n;return l(a,t(s,3))}return Vr=o,Vr}var xr,dl;function Gp(){if(dl)return xr;dl=1;function e(t,n,r,o){var a=-1,s=t==null?0:t.length;for(o&&s&&(r=t[++a]);++a<s;)r=n(r,t[a],a,t);return r}return xr=e,xr}var Mr,fl;function zp(){if(fl)return Mr;fl=1;function e(t,n,r,o,a){return a(t,function(s,l,u){r=o?(o=!1,s):n(r,s,l,u)}),r}return Mr=e,Mr}var $r,hl;function Md(){if(hl)return $r;hl=1;var e=Gp(),t=En(),n=ot(),r=zp(),o=L.requireIsArray();function a(s,l,u){var d=o(s)?e:r,c=arguments.length<3;return d(s,n(l,4),u,c,t)}return $r=a,$r}var qr,ml;function jp(){if(ml)return qr;ml=1;var e=L.require_baseGetTag(),t=L.requireIsArray(),n=L.requireIsObjectLike(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return qr=o,qr}var Fr,pl;function Wp(){if(pl)return Fr;pl=1;var e=Td(),t=e("length");return Fr=t,Fr}var Ur,gl;function Kp(){if(gl)return Ur;gl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+e+o+a+"]");function u(d){return l.test(d)}return Ur=u,Ur}var Hr,vl;function Yp(){if(vl)return Hr;vl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="["+e+"]",l="["+o+"]",u="\\ud83c[\\udffb-\\udfff]",d="(?:"+l+"|"+u+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",C=d+"?",E="["+a+"]?",_="(?:"+m+"(?:"+[c,f,h].join("|")+")"+E+C+")*",p=E+C+_,v="(?:"+[c+l+"?",l,f,h,s].join("|")+")",y=RegExp(u+"(?="+u+")|"+v+p,"g");function g(k){for(var N=y.lastIndex=0;y.test(k);)++N;return N}return Hr=g,Hr}var Gr,_l;function Xp(){if(_l)return Gr;_l=1;var e=Wp(),t=Kp(),n=Yp();function r(o){return t(o)?n(o):e(o)}return Gr=r,Gr}var zr,El;function Zp(){if(El)return zr;El=1;var e=L.require_baseKeys(),t=L.require_getTag(),n=L.requireIsArrayLike(),r=jp(),o=Xp(),a="[object Map]",s="[object Set]";function l(u){if(u==null)return 0;if(n(u))return r(u)?o(u):u.length;var d=t(u);return d==a||d==s?u.size:e(u).length}return zr=l,zr}var jr,yl;function Jp(){if(yl)return jr;yl=1;var e=L.require_arrayEach(),t=L.require_baseCreate(),n=Ta(),r=ot(),o=L.require_getPrototype(),a=L.requireIsArray(),s=L.requireIsBuffer(),l=L.requireIsFunction(),u=L.requireIsObject(),d=L.requireIsTypedArray();function c(f,h,m){var C=a(f),E=C||s(f)||d(f);if(h=r(h,4),m==null){var _=f&&f.constructor;E?m=C?new _:[]:u(f)?m=l(_)?t(o(f)):{}:m={}}return(E?e:n)(f,function(p,v,y){return h(m,p,v,y)}),m}return jr=c,jr}var Wr,bl;function Qp(){if(bl)return Wr;bl=1;var e=L.require_Symbol(),t=L.requireIsArguments(),n=L.requireIsArray(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return Wr=o,Wr}var Kr,kl;function Da(){if(kl)return Kr;kl=1;var e=L.require_arrayPush(),t=Qp();function n(r,o,a,s,l){var u=-1,d=r.length;for(a||(a=t),l||(l=[]);++u<d;){var c=r[u];o>0&&a(c)?o>1?n(c,o-1,a,s,l):e(l,c):s||(l[l.length]=c)}return l}return Kr=n,Kr}var Yr,Cl;function eg(){if(Cl)return Yr;Cl=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Yr=e,Yr}var Xr,Nl;function $d(){if(Nl)return Xr;Nl=1;var e=eg(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var s=arguments,l=-1,u=t(s.length-o,0),d=Array(u);++l<u;)d[l]=s[o+l];l=-1;for(var c=Array(o+1);++l<o;)c[l]=s[l];return c[o]=a(d),e(r,this,c)}}return Xr=n,Xr}var Zr,wl;function tg(){if(wl)return Zr;wl=1;var e=Ra(),t=L.require_defineProperty(),n=kt(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return Zr=r,Zr}var Jr,Sl;function ng(){if(Sl)return Jr;Sl=1;var e=800,t=16,n=Date.now;function r(o){var a=0,s=0;return function(){var l=n(),u=t-(l-s);if(s=l,u>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return Jr=r,Jr}var Qr,Ll;function qd(){if(Ll)return Qr;Ll=1;var e=tg(),t=ng(),n=t(e);return Qr=n,Qr}var ei,Tl;function yn(){if(Tl)return ei;Tl=1;var e=kt(),t=$d(),n=qd();function r(o,a){return n(t(o,a,e),o+"")}return ei=r,ei}var ti,Il;function Fd(){if(Il)return ti;Il=1;function e(t,n,r,o){for(var a=t.length,s=r+(o?1:-1);o?s--:++s<a;)if(n(t[s],s,t))return s;return-1}return ti=e,ti}var ni,Ol;function rg(){if(Ol)return ni;Ol=1;function e(t){return t!==t}return ni=e,ni}var ri,Al;function ig(){if(Al)return ri;Al=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return ri=e,ri}var ii,Rl;function og(){if(Rl)return ii;Rl=1;var e=Fd(),t=rg(),n=ig();function r(o,a,s){return a===a?n(o,a,s):e(o,t,s)}return ii=r,ii}var oi,Dl;function ag(){if(Dl)return oi;Dl=1;var e=og();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return oi=t,oi}var ai,Pl;function sg(){if(Pl)return ai;Pl=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return ai=e,ai}var si,Bl;function lg(){if(Bl)return si;Bl=1;function e(){}return si=e,si}var li,Vl;function ug(){if(Vl)return li;Vl=1;var e=L.require_Set(),t=lg(),n=Ia(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return li=o,li}var ui,xl;function cg(){if(xl)return ui;xl=1;var e=Ed(),t=ag(),n=sg(),r=yd(),o=ug(),a=Ia(),s=200;function l(u,d,c){var f=-1,h=t,m=u.length,C=!0,E=[],_=E;if(c)C=!1,h=n;else if(m>=s){var p=d?null:o(u);if(p)return a(p);C=!1,h=r,_=new e}else _=d?[]:E;e:for(;++f<m;){var v=u[f],y=d?d(v):v;if(v=c||v!==0?v:0,C&&y===y){for(var g=_.length;g--;)if(_[g]===y)continue e;d&&_.push(y),E.push(v)}else h(_,y,c)||(_!==E&&_.push(y),E.push(v))}return E}return ui=l,ui}var ci,Ml;function Ud(){if(Ml)return ci;Ml=1;var e=L.requireIsArrayLike(),t=L.requireIsObjectLike();function n(r){return t(r)&&e(r)}return ci=n,ci}var di,$l;function dg(){if($l)return di;$l=1;var e=Da(),t=yn(),n=cg(),r=Ud(),o=t(function(a){return n(e(a,1,r,!0))});return di=o,di}var fi,ql;function fg(){if(ql)return fi;ql=1;var e=gn();function t(n,r){return e(r,function(o){return n[o]})}return fi=t,fi}var hi,Fl;function Hd(){if(Fl)return hi;Fl=1;var e=fg(),t=L.requireKeys();function n(r){return r==null?[]:e(r,t(r))}return hi=n,hi}var mi,Ul;function ze(){if(Ul)return mi;Ul=1;var e;if(typeof Aa=="function")try{e={clone:$p(),constant:Ra(),each:Rd(),filter:Dd(),has:Pd(),isArray:L.requireIsArray(),isEmpty:Hp(),isFunction:L.requireIsFunction(),isUndefined:Bd(),keys:L.requireKeys(),map:xd(),reduce:Md(),size:Zp(),transform:Jp(),union:dg(),values:Hd()}}catch{}return e||(e=window._),mi=e,mi}var pi,Hl;function Pa(){if(Hl)return pi;Hl=1;var e=ze();pi=o;var t="\0",n="\0",r="";function o(c){this._isDirected=e.has(c,"directed")?c.directed:!0,this._isMultigraph=e.has(c,"multigraph")?c.multigraph:!1,this._isCompound=e.has(c,"compound")?c.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(c){return this._label=c,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultNodeLabelFn=c,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return e.keys(this._nodes)},o.prototype.sources=function(){var c=this;return e.filter(this.nodes(),function(f){return e.isEmpty(c._in[f])})},o.prototype.sinks=function(){var c=this;return e.filter(this.nodes(),function(f){return e.isEmpty(c._out[f])})},o.prototype.setNodes=function(c,f){var h=arguments,m=this;return e.each(c,function(C){h.length>1?m.setNode(C,f):m.setNode(C)}),this},o.prototype.setNode=function(c,f){return e.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=f),this):(this._nodes[c]=arguments.length>1?f:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=n,this._children[c]={},this._children[n][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},o.prototype.node=function(c){return this._nodes[c]},o.prototype.hasNode=function(c){return e.has(this._nodes,c)},o.prototype.removeNode=function(c){var f=this;if(e.has(this._nodes,c)){var h=function(m){f.removeEdge(f._edgeObjs[m])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],e.each(this.children(c),function(m){f.setParent(m)}),delete this._children[c]),e.each(e.keys(this._in[c]),h),delete this._in[c],delete this._preds[c],e.each(e.keys(this._out[c]),h),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},o.prototype.setParent=function(c,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=n;else{f+="";for(var h=f;!e.isUndefined(h);h=this.parent(h))if(h===c)throw new Error("Setting "+f+" as parent of "+c+" would create a cycle");this.setNode(f)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=f,this._children[f][c]=!0,this},o.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},o.prototype.parent=function(c){if(this._isCompound){var f=this._parent[c];if(f!==n)return f}},o.prototype.children=function(c){if(e.isUndefined(c)&&(c=n),this._isCompound){var f=this._children[c];if(f)return e.keys(f)}else{if(c===n)return this.nodes();if(this.hasNode(c))return[]}},o.prototype.predecessors=function(c){var f=this._preds[c];if(f)return e.keys(f)},o.prototype.successors=function(c){var f=this._sucs[c];if(f)return e.keys(f)},o.prototype.neighbors=function(c){var f=this.predecessors(c);if(f)return e.union(f,this.successors(c))},o.prototype.isLeaf=function(c){var f;return this.isDirected()?f=this.successors(c):f=this.neighbors(c),f.length===0},o.prototype.filterNodes=function(c){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var h=this;e.each(this._nodes,function(E,_){c(_)&&f.setNode(_,E)}),e.each(this._edgeObjs,function(E){f.hasNode(E.v)&&f.hasNode(E.w)&&f.setEdge(E,h.edge(E))});var m={};function C(E){var _=h.parent(E);return _===void 0||f.hasNode(_)?(m[E]=_,_):_ in m?m[_]:C(_)}return this._isCompound&&e.each(f.nodes(),function(E){f.setParent(E,C(E))}),f},o.prototype.setDefaultEdgeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultEdgeLabelFn=c,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(c,f){var h=this,m=arguments;return e.reduce(c,function(C,E){return m.length>1?h.setEdge(C,E,f):h.setEdge(C,E),E}),this},o.prototype.setEdge=function(){var c,f,h,m,C=!1,E=arguments[0];typeof E=="object"&&E!==null&&"v"in E?(c=E.v,f=E.w,h=E.name,arguments.length===2&&(m=arguments[1],C=!0)):(c=E,f=arguments[1],h=arguments[3],arguments.length>2&&(m=arguments[2],C=!0)),c=""+c,f=""+f,e.isUndefined(h)||(h=""+h);var _=l(this._isDirected,c,f,h);if(e.has(this._edgeLabels,_))return C&&(this._edgeLabels[_]=m),this;if(!e.isUndefined(h)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(f),this._edgeLabels[_]=C?m:this._defaultEdgeLabelFn(c,f,h);var p=u(this._isDirected,c,f,h);return c=p.v,f=p.w,Object.freeze(p),this._edgeObjs[_]=p,a(this._preds[f],c),a(this._sucs[c],f),this._in[f][_]=p,this._out[c][_]=p,this._edgeCount++,this},o.prototype.edge=function(c,f,h){var m=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,c,f,h);return this._edgeLabels[m]},o.prototype.hasEdge=function(c,f,h){var m=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,c,f,h);return e.has(this._edgeLabels,m)},o.prototype.removeEdge=function(c,f,h){var m=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,c,f,h),C=this._edgeObjs[m];return C&&(c=C.v,f=C.w,delete this._edgeLabels[m],delete this._edgeObjs[m],s(this._preds[f],c),s(this._sucs[c],f),delete this._in[f][m],delete this._out[c][m],this._edgeCount--),this},o.prototype.inEdges=function(c,f){var h=this._in[c];if(h){var m=e.values(h);return f?e.filter(m,function(C){return C.v===f}):m}},o.prototype.outEdges=function(c,f){var h=this._out[c];if(h){var m=e.values(h);return f?e.filter(m,function(C){return C.w===f}):m}},o.prototype.nodeEdges=function(c,f){var h=this.inEdges(c,f);if(h)return h.concat(this.outEdges(c,f))};function a(c,f){c[f]?c[f]++:c[f]=1}function s(c,f){--c[f]||delete c[f]}function l(c,f,h,m){var C=""+f,E=""+h;if(!c&&C>E){var _=C;C=E,E=_}return C+r+E+r+(e.isUndefined(m)?t:m)}function u(c,f,h,m){var C=""+f,E=""+h;if(!c&&C>E){var _=C;C=E,E=_}var p={v:C,w:E};return m&&(p.name=m),p}function d(c,f){return l(c,f.v,f.w,f.name)}return pi}var gi,Gl;function hg(){return Gl||(Gl=1,gi="2.1.8"),gi}var vi,zl;function mg(){return zl||(zl=1,vi={Graph:Pa(),version:hg()}),vi}var _i,jl;function pg(){if(jl)return _i;jl=1;var e=ze(),t=Pa();_i={write:n,read:a};function n(s){var l={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:r(s),edges:o(s)};return e.isUndefined(s.graph())||(l.value=e.clone(s.graph())),l}function r(s){return e.map(s.nodes(),function(l){var u=s.node(l),d=s.parent(l),c={v:l};return e.isUndefined(u)||(c.value=u),e.isUndefined(d)||(c.parent=d),c})}function o(s){return e.map(s.edges(),function(l){var u=s.edge(l),d={v:l.v,w:l.w};return e.isUndefined(l.name)||(d.name=l.name),e.isUndefined(u)||(d.value=u),d})}function a(s){var l=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(u){l.setNode(u.v,u.value),u.parent&&l.setParent(u.v,u.parent)}),e.each(s.edges,function(u){l.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),l}return _i}var Ei,Wl;function gg(){if(Wl)return Ei;Wl=1;var e=ze();Ei=t;function t(n){var r={},o=[],a;function s(l){e.has(r,l)||(r[l]=!0,a.push(l),e.each(n.successors(l),s),e.each(n.predecessors(l),s))}return e.each(n.nodes(),function(l){a=[],s(l),a.length&&o.push(a)}),o}return Ei}var yi,Kl;function Gd(){if(Kl)return yi;Kl=1;var e=ze();yi=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(n){return n.key})},t.prototype.has=function(n){return e.has(this._keyIndices,n)},t.prototype.priority=function(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(n,r){var o=this._keyIndices;if(n=String(n),!e.has(o,n)){var a=this._arr,s=a.length;return o[n]=s,a.push({key:n,priority:r}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},t.prototype.decrease=function(n,r){var o=this._keyIndices[n];if(r>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[o].priority+" New: "+r);this._arr[o].priority=r,this._decrease(o)},t.prototype._heapify=function(n){var r=this._arr,o=2*n,a=o+1,s=n;o<r.length&&(s=r[o].priority<r[s].priority?o:s,a<r.length&&(s=r[a].priority<r[s].priority?a:s),s!==n&&(this._swap(n,s),this._heapify(s)))},t.prototype._decrease=function(n){for(var r=this._arr,o=r[n].priority,a;n!==0&&(a=n>>1,!(r[a].priority<o));)this._swap(n,a),n=a},t.prototype._swap=function(n,r){var o=this._arr,a=this._keyIndices,s=o[n],l=o[r];o[n]=l,o[r]=s,a[l.key]=n,a[s.key]=r},yi}var bi,Yl;function zd(){if(Yl)return bi;Yl=1;var e=ze(),t=Gd();bi=r;var n=e.constant(1);function r(a,s,l,u){return o(a,String(s),l||n,u||function(d){return a.outEdges(d)})}function o(a,s,l,u){var d={},c=new t,f,h,m=function(C){var E=C.v!==f?C.v:C.w,_=d[E],p=l(C),v=h.distance+p;if(p<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+C+" Weight: "+p);v<_.distance&&(_.distance=v,_.predecessor=f,c.decrease(E,v))};for(a.nodes().forEach(function(C){var E=C===s?0:Number.POSITIVE_INFINITY;d[C]={distance:E},c.add(C,E)});c.size()>0&&(f=c.removeMin(),h=d[f],h.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(m);return d}return bi}var ki,Xl;function vg(){if(Xl)return ki;Xl=1;var e=zd(),t=ze();ki=n;function n(r,o,a){return t.transform(r.nodes(),function(s,l){s[l]=e(r,l,o,a)},{})}return ki}var Ci,Zl;function jd(){if(Zl)return Ci;Zl=1;var e=ze();Ci=t;function t(n){var r=0,o=[],a={},s=[];function l(u){var d=a[u]={onStack:!0,lowlink:r,index:r++};if(o.push(u),n.successors(u).forEach(function(h){e.has(a,h)?a[h].onStack&&(d.lowlink=Math.min(d.lowlink,a[h].index)):(l(h),d.lowlink=Math.min(d.lowlink,a[h].lowlink))}),d.lowlink===d.index){var c=[],f;do f=o.pop(),a[f].onStack=!1,c.push(f);while(u!==f);s.push(c)}}return n.nodes().forEach(function(u){e.has(a,u)||l(u)}),s}return Ci}var Ni,Jl;function _g(){if(Jl)return Ni;Jl=1;var e=ze(),t=jd();Ni=n;function n(r){return e.filter(t(r),function(o){return o.length>1||o.length===1&&r.hasEdge(o[0],o[0])})}return Ni}var wi,Ql;function Eg(){if(Ql)return wi;Ql=1;var e=ze();wi=n;var t=e.constant(1);function n(o,a,s){return r(o,a||t,s||function(l){return o.outEdges(l)})}function r(o,a,s){var l={},u=o.nodes();return u.forEach(function(d){l[d]={},l[d][d]={distance:0},u.forEach(function(c){d!==c&&(l[d][c]={distance:Number.POSITIVE_INFINITY})}),s(d).forEach(function(c){var f=c.v===d?c.w:c.v,h=a(c);l[d][f]={distance:h,predecessor:d}})}),u.forEach(function(d){var c=l[d];u.forEach(function(f){var h=l[f];u.forEach(function(m){var C=h[d],E=c[m],_=h[m],p=C.distance+E.distance;p<_.distance&&(_.distance=p,_.predecessor=E.predecessor)})})}),l}return wi}var Si,eu;function Wd(){if(eu)return Si;eu=1;var e=ze();Si=t,t.CycleException=n;function t(r){var o={},a={},s=[];function l(u){if(e.has(a,u))throw new n;e.has(o,u)||(a[u]=!0,o[u]=!0,e.each(r.predecessors(u),l),delete a[u],s.push(u))}if(e.each(r.sinks(),l),e.size(o)!==r.nodeCount())throw new n;return s}function n(){}return n.prototype=new Error,Si}var Li,tu;function yg(){if(tu)return Li;tu=1;var e=Wd();Li=t;function t(n){try{e(n)}catch(r){if(r instanceof e.CycleException)return!1;throw r}return!0}return Li}var Ti,nu;function Kd(){if(nu)return Ti;nu=1;var e=ze();Ti=t;function t(r,o,a){e.isArray(o)||(o=[o]);var s=(r.isDirected()?r.successors:r.neighbors).bind(r),l=[],u={};return e.each(o,function(d){if(!r.hasNode(d))throw new Error("Graph does not have node: "+d);n(r,d,a==="post",u,s,l)}),l}function n(r,o,a,s,l,u){e.has(s,o)||(s[o]=!0,a||u.push(o),e.each(l(o),function(d){n(r,d,a,s,l,u)}),a&&u.push(o))}return Ti}var Ii,ru;function bg(){if(ru)return Ii;ru=1;var e=Kd();Ii=t;function t(n,r){return e(n,r,"post")}return Ii}var Oi,iu;function kg(){if(iu)return Oi;iu=1;var e=Kd();Oi=t;function t(n,r){return e(n,r,"pre")}return Oi}var Ai,ou;function Cg(){if(ou)return Ai;ou=1;var e=ze(),t=Pa(),n=Gd();Ai=r;function r(o,a){var s=new t,l={},u=new n,d;function c(h){var m=h.v===d?h.w:h.v,C=u.priority(m);if(C!==void 0){var E=a(h);E<C&&(l[m]=d,u.decrease(m,E))}}if(o.nodeCount()===0)return s;e.each(o.nodes(),function(h){u.add(h,Number.POSITIVE_INFINITY),s.setNode(h)}),u.decrease(o.nodes()[0],0);for(var f=!1;u.size()>0;){if(d=u.removeMin(),e.has(l,d))s.setEdge(d,l[d]);else{if(f)throw new Error("Input graph is not connected: "+o);f=!0}o.nodeEdges(d).forEach(c)}return s}return Ai}var Ri,au;function Ng(){return au||(au=1,Ri={components:gg(),dijkstra:zd(),dijkstraAll:vg(),findCycles:_g(),floydWarshall:Eg(),isAcyclic:yg(),postorder:bg(),preorder:kg(),prim:Cg(),tarjan:jd(),topsort:Wd()}),Ri}var Di,su;function wg(){if(su)return Di;su=1;var e=mg();return Di={Graph:e.Graph,json:pg(),alg:Ng(),version:e.version},Di}var Pi,lu;function Ke(){if(lu)return Pi;lu=1;var e;if(typeof Aa=="function")try{e=wg()}catch{}return e||(e=window.graphlib),Pi=e,Pi}var Bi,uu;function bn(){if(uu)return Bi;uu=1;var e=L.requireEq(),t=L.requireIsArrayLike(),n=L.require_isIndex(),r=L.requireIsObject();function o(a,s,l){if(!r(l))return!1;var u=typeof s;return(u=="number"?t(l)&&n(s,l.length):u=="string"&&s in l)?e(l[s],a):!1}return Bi=o,Bi}var Vi,cu;function Sg(){if(cu)return Vi;cu=1;var e=yn(),t=L.requireEq(),n=bn(),r=L.requireKeysIn(),o=Object.prototype,a=o.hasOwnProperty,s=e(function(l,u){l=Object(l);var d=-1,c=u.length,f=c>2?u[2]:void 0;for(f&&n(u[0],u[1],f)&&(c=1);++d<c;)for(var h=u[d],m=r(h),C=-1,E=m.length;++C<E;){var _=m[C],p=l[_];(p===void 0||t(p,o[_])&&!a.call(l,_))&&(l[_]=h[_])}return l});return Vi=s,Vi}var xi,du;function Lg(){if(du)return xi;du=1;var e=ot(),t=L.requireIsArrayLike(),n=L.requireKeys();function r(o){return function(a,s,l){var u=Object(a);if(!t(a)){var d=e(s,3);a=n(a),s=function(f){return d(u[f],f,u)}}var c=o(a,s,l);return c>-1?u[d?a[c]:c]:void 0}}return xi=r,xi}var Mi,fu;function Tg(){if(fu)return Mi;fu=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Mi=t,Mi}var $i,hu;function Ig(){if(hu)return $i;hu=1;var e=Tg(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return $i=n,$i}var qi,mu;function Og(){if(mu)return qi;mu=1;var e=Ig(),t=L.requireIsObject(),n=Bt(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;function u(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var c=typeof d.valueOf=="function"?d.valueOf():d;d=t(c)?c+"":c}if(typeof d!="string")return d===0?d:+d;d=e(d);var f=a.test(d);return f||s.test(d)?l(d.slice(2),f?2:8):o.test(d)?r:+d}return qi=u,qi}var Fi,pu;function Yd(){if(pu)return Fi;pu=1;var e=Og(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-1/0){var a=o<0?-1:1;return a*n}return o===o?o:0}return Fi=r,Fi}var Ui,gu;function Ag(){if(gu)return Ui;gu=1;var e=Yd();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return Ui=t,Ui}var Hi,vu;function Rg(){if(vu)return Hi;vu=1;var e=Fd(),t=ot(),n=Ag(),r=Math.max;function o(a,s,l){var u=a==null?0:a.length;if(!u)return-1;var d=l==null?0:n(l);return d<0&&(d=r(u+d,0)),e(a,t(s,3),d)}return Hi=o,Hi}var Gi,_u;function Dg(){if(_u)return Gi;_u=1;var e=Lg(),t=Rg(),n=e(t);return Gi=n,Gi}var zi,Eu;function Xd(){if(Eu)return zi;Eu=1;var e=Da();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return zi=t,zi}var ji,yu;function Pg(){if(yu)return ji;yu=1;var e=La(),t=Od(),n=L.requireKeysIn();function r(o,a){return o==null?o:e(o,t(a),n)}return ji=r,ji}var Wi,bu;function Bg(){if(bu)return Wi;bu=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Wi=e,Wi}var Ki,ku;function Ba(){if(ku)return Ki;ku=1;var e=Bt();function t(n,r,o){for(var a=-1,s=n.length;++a<s;){var l=n[a],u=r(l);if(u!=null&&(d===void 0?u===u&&!e(u):o(u,d)))var d=u,c=l}return c}return Ki=t,Ki}var Yi,Cu;function Vg(){if(Cu)return Yi;Cu=1;function e(t,n){return t>n}return Yi=e,Yi}var Xi,Nu;function xg(){if(Nu)return Xi;Nu=1;var e=Ba(),t=Vg(),n=kt();function r(o){return o&&o.length?e(o,n,t):void 0}return Xi=r,Xi}var Zi,wu;function Zd(){if(wu)return Zi;wu=1;var e=L.require_baseAssignValue(),t=L.requireEq();function n(r,o,a){(a!==void 0&&!t(r[o],a)||a===void 0&&!(o in r))&&e(r,o,a)}return Zi=n,Zi}var Ji,Su;function Mg(){if(Su)return Ji;Su=1;var e=L.require_baseGetTag(),t=L.require_getPrototype(),n=L.requireIsObjectLike(),r="[object Object]",o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,u=s.call(Object);function d(c){if(!n(c)||e(c)!=r)return!1;var f=t(c);if(f===null)return!0;var h=l.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&s.call(h)==u}return Ji=d,Ji}var Qi,Lu;function Jd(){if(Lu)return Qi;Lu=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Qi=e,Qi}var eo,Tu;function $g(){if(Tu)return eo;Tu=1;var e=L.require_copyObject(),t=L.requireKeysIn();function n(r){return e(r,t(r))}return eo=n,eo}var to,Iu;function qg(){if(Iu)return to;Iu=1;var e=Zd(),t=L.require_cloneBuffer(),n=L.require_cloneTypedArray(),r=L.require_copyArray(),o=L.require_initCloneObject(),a=L.requireIsArguments(),s=L.requireIsArray(),l=Ud(),u=L.requireIsBuffer(),d=L.requireIsFunction(),c=L.requireIsObject(),f=Mg(),h=L.requireIsTypedArray(),m=Jd(),C=$g();function E(_,p,v,y,g,k,N){var b=m(_,v),T=m(p,v),A=N.get(T);if(A){e(_,v,A);return}var R=k?k(b,T,v+"",_,p,N):void 0,U=R===void 0;if(U){var V=s(T),j=!V&&u(T),Z=!V&&!j&&h(T);R=T,V||j||Z?s(b)?R=b:l(b)?R=r(b):j?(U=!1,R=t(T,!0)):Z?(U=!1,R=n(T,!0)):R=[]:f(T)||a(T)?(R=b,a(b)?R=C(b):(!c(b)||d(b))&&(R=o(T))):U=!1}U&&(N.set(T,R),g(R,T,y,k,N),N.delete(T)),e(_,v,R)}return to=E,to}var no,Ou;function Fg(){if(Ou)return no;Ou=1;var e=L.require_Stack(),t=Zd(),n=La(),r=qg(),o=L.requireIsObject(),a=L.requireKeysIn(),s=Jd();function l(u,d,c,f,h){u!==d&&n(d,function(m,C){if(h||(h=new e),o(m))r(u,d,C,c,l,f,h);else{var E=f?f(s(u,C),m,C+"",u,d,h):void 0;E===void 0&&(E=m),t(u,C,E)}},a)}return no=l,no}var ro,Au;function Ug(){if(Au)return ro;Au=1;var e=yn(),t=bn();function n(r){return e(function(o,a){var s=-1,l=a.length,u=l>1?a[l-1]:void 0,d=l>2?a[2]:void 0;for(u=r.length>3&&typeof u=="function"?(l--,u):void 0,d&&t(a[0],a[1],d)&&(u=l<3?void 0:u,l=1),o=Object(o);++s<l;){var c=a[s];c&&r(o,c,s,u)}return o})}return ro=n,ro}var io,Ru;function Hg(){if(Ru)return io;Ru=1;var e=Fg(),t=Ug(),n=t(function(r,o,a){e(r,o,a)});return io=n,io}var oo,Du;function Qd(){if(Du)return oo;Du=1;function e(t,n){return t<n}return oo=e,oo}var ao,Pu;function Gg(){if(Pu)return ao;Pu=1;var e=Ba(),t=Qd(),n=kt();function r(o){return o&&o.length?e(o,n,t):void 0}return ao=r,ao}var so,Bu;function zg(){if(Bu)return so;Bu=1;var e=Ba(),t=ot(),n=Qd();function r(o,a){return o&&o.length?e(o,t(a,2),n):void 0}return so=r,so}var lo,Vu;function jg(){if(Vu)return lo;Vu=1;var e=L.require_root(),t=function(){return e.Date.now()};return lo=t,lo}var uo,xu;function Wg(){if(xu)return uo;xu=1;var e=L.require_assignValue(),t=vn(),n=L.require_isIndex(),r=L.requireIsObject(),o=Gt();function a(s,l,u,d){if(!r(s))return s;l=t(l,s);for(var c=-1,f=l.length,h=f-1,m=s;m!=null&&++c<f;){var C=o(l[c]),E=u;if(C==="__proto__"||C==="constructor"||C==="prototype")return s;if(c!=h){var _=m[C];E=d?d(_,C,m):void 0,E===void 0&&(E=r(_)?_:n(l[c+1])?[]:{})}e(m,C,E),m=m[C]}return s}return uo=a,uo}var co,Mu;function Kg(){if(Mu)return co;Mu=1;var e=_n(),t=Wg(),n=vn();function r(o,a,s){for(var l=-1,u=a.length,d={};++l<u;){var c=a[l],f=e(o,c);s(f,c)&&t(d,n(c,o),f)}return d}return co=r,co}var fo,$u;function Yg(){if($u)return fo;$u=1;var e=Kg(),t=Ld();function n(r,o){return e(r,o,function(a,s){return t(r,s)})}return fo=n,fo}var ho,qu;function Xg(){if(qu)return ho;qu=1;var e=Xd(),t=$d(),n=qd();function r(o){return n(t(o,void 0,e),o+"")}return ho=r,ho}var mo,Fu;function Zg(){if(Fu)return mo;Fu=1;var e=Yg(),t=Xg(),n=t(function(r,o){return r==null?{}:e(r,o)});return mo=n,mo}var po,Uu;function Jg(){if(Uu)return po;Uu=1;var e=Math.ceil,t=Math.max;function n(r,o,a,s){for(var l=-1,u=t(e((o-r)/(a||1)),0),d=Array(u);u--;)d[s?u:++l]=r,r+=a;return d}return po=n,po}var go,Hu;function Qg(){if(Hu)return go;Hu=1;var e=Jg(),t=bn(),n=Yd();function r(o){return function(a,s,l){return l&&typeof l!="number"&&t(a,s,l)&&(s=l=void 0),a=n(a),s===void 0?(s=a,a=0):s=n(s),l=l===void 0?a<s?1:-1:n(l),e(a,s,l,o)}}return go=r,go}var vo,Gu;function ev(){if(Gu)return vo;Gu=1;var e=Qg(),t=e();return vo=t,vo}var _o,zu;function tv(){if(zu)return _o;zu=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return _o=e,_o}var Eo,ju;function nv(){if(ju)return Eo;ju=1;var e=Bt();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,s=n===n,l=e(n),u=r!==void 0,d=r===null,c=r===r,f=e(r);if(!d&&!f&&!l&&n>r||l&&u&&c&&!d&&!f||a&&u&&c||!o&&c||!s)return 1;if(!a&&!l&&!f&&n<r||f&&o&&s&&!a&&!l||d&&o&&s||!u&&s||!c)return-1}return 0}return Eo=t,Eo}var yo,Wu;function rv(){if(Wu)return yo;Wu=1;var e=nv();function t(n,r,o){for(var a=-1,s=n.criteria,l=r.criteria,u=s.length,d=o.length;++a<u;){var c=e(s[a],l[a]);if(c){if(a>=d)return c;var f=o[a];return c*(f=="desc"?-1:1)}}return n.index-r.index}return yo=t,yo}var bo,Ku;function iv(){if(Ku)return bo;Ku=1;var e=gn(),t=_n(),n=ot(),r=Vd(),o=tv(),a=L.require_baseUnary(),s=rv(),l=kt(),u=L.requireIsArray();function d(c,f,h){f.length?f=e(f,function(E){return u(E)?function(_){return t(_,E.length===1?E[0]:E)}:E}):f=[l];var m=-1;f=e(f,a(n));var C=r(c,function(E,_,p){var v=e(f,function(y){return y(E)});return{criteria:v,index:++m,value:E}});return o(C,function(E,_){return s(E,_,h)})}return bo=d,bo}var ko,Yu;function ov(){if(Yu)return ko;Yu=1;var e=Da(),t=iv(),n=yn(),r=bn(),o=n(function(a,s){if(a==null)return[];var l=s.length;return l>1&&r(a,s[0],s[1])?s=[]:l>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(a,e(s,1),[])});return ko=o,ko}var Co,Xu;function av(){if(Xu)return Co;Xu=1;var e=wd(),t=0;function n(r){var o=++t;return e(r)+o}return Co=n,Co}var No,Zu;function sv(){if(Zu)return No;Zu=1;function e(t,n,r){for(var o=-1,a=t.length,s=n.length,l={};++o<a;){var u=o<s?n[o]:void 0;r(l,t[o],u)}return l}return No=e,No}var wo,Ju;function lv(){if(Ju)return wo;Ju=1;var e=L.require_assignValue(),t=sv();function n(r,o){return t(r||[],o||[],e)}return wo=n,wo}var So,Qu;function he(){if(Qu)return So;Qu=1;var e;if(typeof Aa=="function")try{e={cloneDeep:L.requireCloneDeep(),constant:Ra(),defaults:Sg(),each:Rd(),filter:Dd(),find:Dg(),flatten:Xd(),forEach:Ad(),forIn:Pg(),has:Pd(),isUndefined:Bd(),last:Bg(),map:xd(),mapValues:Id(),max:xg(),merge:Hg(),min:Gg(),minBy:zg(),now:jg(),pick:Zg(),range:ev(),reduce:Md(),sortBy:ov(),uniqueId:av(),values:Hd(),zipObject:lv()}}catch{}return e||(e=window._),So=e,So}var Lo,ec;function uv(){if(ec)return Lo;ec=1,Lo=e;function e(){var r={};r._next=r._prev=r,this._sentinel=r}e.prototype.dequeue=function(){var r=this._sentinel,o=r._prev;if(o!==r)return t(o),o},e.prototype.enqueue=function(r){var o=this._sentinel;r._prev&&r._next&&t(r),r._next=o._next,o._next._prev=r,o._next=r,r._prev=o},e.prototype.toString=function(){for(var r=[],o=this._sentinel,a=o._prev;a!==o;)r.push(JSON.stringify(a,n)),a=a._prev;return"["+r.join(", ")+"]"};function t(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function n(r,o){if(r!=="_next"&&r!=="_prev")return o}return Lo}var To,tc;function cv(){if(tc)return To;tc=1;var e=he(),t=Ke().Graph,n=uv();To=o;var r=e.constant(1);function o(d,c){if(d.nodeCount()<=1)return[];var f=l(d,c||r),h=a(f.graph,f.buckets,f.zeroIdx);return e.flatten(e.map(h,function(m){return d.outEdges(m.v,m.w)}),!0)}function a(d,c,f){for(var h=[],m=c[c.length-1],C=c[0],E;d.nodeCount();){for(;E=C.dequeue();)s(d,c,f,E);for(;E=m.dequeue();)s(d,c,f,E);if(d.nodeCount()){for(var _=c.length-2;_>0;--_)if(E=c[_].dequeue(),E){h=h.concat(s(d,c,f,E,!0));break}}}return h}function s(d,c,f,h,m){var C=m?[]:void 0;return e.forEach(d.inEdges(h.v),function(E){var _=d.edge(E),p=d.node(E.v);m&&C.push({v:E.v,w:E.w}),p.out-=_,u(c,f,p)}),e.forEach(d.outEdges(h.v),function(E){var _=d.edge(E),p=E.w,v=d.node(p);v.in-=_,u(c,f,v)}),d.removeNode(h.v),C}function l(d,c){var f=new t,h=0,m=0;e.forEach(d.nodes(),function(_){f.setNode(_,{v:_,in:0,out:0})}),e.forEach(d.edges(),function(_){var p=f.edge(_.v,_.w)||0,v=c(_),y=p+v;f.setEdge(_.v,_.w,y),m=Math.max(m,f.node(_.v).out+=v),h=Math.max(h,f.node(_.w).in+=v)});var C=e.range(m+h+3).map(function(){return new n}),E=h+1;return e.forEach(f.nodes(),function(_){u(C,E,f.node(_))}),{graph:f,buckets:C,zeroIdx:E}}function u(d,c,f){f.out?f.in?d[f.out-f.in+c].enqueue(f):d[d.length-1].enqueue(f):d[0].enqueue(f)}return To}var Io,nc;function dv(){if(nc)return Io;nc=1;var e=he(),t=cv();Io={run:n,undo:o};function n(a){var s=a.graph().acyclicer==="greedy"?t(a,l(a)):r(a);e.forEach(s,function(u){var d=a.edge(u);a.removeEdge(u),d.forwardName=u.name,d.reversed=!0,a.setEdge(u.w,u.v,d,e.uniqueId("rev"))});function l(u){return function(d){return u.edge(d).weight}}}function r(a){var s=[],l={},u={};function d(c){e.has(u,c)||(u[c]=!0,l[c]=!0,e.forEach(a.outEdges(c),function(f){e.has(l,f.w)?s.push(f):d(f.w)}),delete l[c])}return e.forEach(a.nodes(),d),s}function o(a){e.forEach(a.edges(),function(s){var l=a.edge(s);if(l.reversed){a.removeEdge(s);var u=l.forwardName;delete l.reversed,delete l.forwardName,a.setEdge(s.w,s.v,l,u)}})}return Io}var Oo,rc;function Pe(){if(rc)return Oo;rc=1;var e=he(),t=Ke().Graph;Oo={addDummyNode:n,simplify:r,asNonCompoundGraph:o,successorWeights:a,predecessorWeights:s,intersectRect:l,buildLayerMatrix:u,normalizeRanks:d,removeEmptyRanks:c,addBorderNode:f,maxRank:h,partition:m,time:C,notime:E};function n(_,p,v,y){var g;do g=e.uniqueId(y);while(_.hasNode(g));return v.dummy=p,_.setNode(g,v),g}function r(_){var p=new t().setGraph(_.graph());return e.forEach(_.nodes(),function(v){p.setNode(v,_.node(v))}),e.forEach(_.edges(),function(v){var y=p.edge(v.v,v.w)||{weight:0,minlen:1},g=_.edge(v);p.setEdge(v.v,v.w,{weight:y.weight+g.weight,minlen:Math.max(y.minlen,g.minlen)})}),p}function o(_){var p=new t({multigraph:_.isMultigraph()}).setGraph(_.graph());return e.forEach(_.nodes(),function(v){_.children(v).length||p.setNode(v,_.node(v))}),e.forEach(_.edges(),function(v){p.setEdge(v,_.edge(v))}),p}function a(_){var p=e.map(_.nodes(),function(v){var y={};return e.forEach(_.outEdges(v),function(g){y[g.w]=(y[g.w]||0)+_.edge(g).weight}),y});return e.zipObject(_.nodes(),p)}function s(_){var p=e.map(_.nodes(),function(v){var y={};return e.forEach(_.inEdges(v),function(g){y[g.v]=(y[g.v]||0)+_.edge(g).weight}),y});return e.zipObject(_.nodes(),p)}function l(_,p){var v=_.x,y=_.y,g=p.x-v,k=p.y-y,N=_.width/2,b=_.height/2;if(!g&&!k)throw new Error("Not possible to find intersection inside of the rectangle");var T,A;return Math.abs(k)*N>Math.abs(g)*b?(k<0&&(b=-b),T=b*g/k,A=b):(g<0&&(N=-N),T=N,A=N*k/g),{x:v+T,y:y+A}}function u(_){var p=e.map(e.range(h(_)+1),function(){return[]});return e.forEach(_.nodes(),function(v){var y=_.node(v),g=y.rank;e.isUndefined(g)||(p[g][y.order]=v)}),p}function d(_){var p=e.min(e.map(_.nodes(),function(v){return _.node(v).rank}));e.forEach(_.nodes(),function(v){var y=_.node(v);e.has(y,"rank")&&(y.rank-=p)})}function c(_){var p=e.min(e.map(_.nodes(),function(k){return _.node(k).rank})),v=[];e.forEach(_.nodes(),function(k){var N=_.node(k).rank-p;v[N]||(v[N]=[]),v[N].push(k)});var y=0,g=_.graph().nodeRankFactor;e.forEach(v,function(k,N){e.isUndefined(k)&&N%g!==0?--y:y&&e.forEach(k,function(b){_.node(b).rank+=y})})}function f(_,p,v,y){var g={width:0,height:0};return arguments.length>=4&&(g.rank=v,g.order=y),n(_,"border",g,p)}function h(_){return e.max(e.map(_.nodes(),function(p){var v=_.node(p).rank;if(!e.isUndefined(v))return v}))}function m(_,p){var v={lhs:[],rhs:[]};return e.forEach(_,function(y){p(y)?v.lhs.push(y):v.rhs.push(y)}),v}function C(_,p){var v=e.now();try{return p()}finally{console.log(_+" time: "+(e.now()-v)+"ms")}}function E(_,p){return p()}return Oo}var Ao,ic;function fv(){if(ic)return Ao;ic=1;var e=he(),t=Pe();Ao={run:n,undo:o};function n(a){a.graph().dummyChains=[],e.forEach(a.edges(),function(s){r(a,s)})}function r(a,s){var l=s.v,u=a.node(l).rank,d=s.w,c=a.node(d).rank,f=s.name,h=a.edge(s),m=h.labelRank;if(c!==u+1){a.removeEdge(s);var C,E,_;for(_=0,++u;u<c;++_,++u)h.points=[],E={width:0,height:0,edgeLabel:h,edgeObj:s,rank:u},C=t.addDummyNode(a,"edge",E,"_d"),u===m&&(E.width=h.width,E.height=h.height,E.dummy="edge-label",E.labelpos=h.labelpos),a.setEdge(l,C,{weight:h.weight},f),_===0&&a.graph().dummyChains.push(C),l=C;a.setEdge(l,d,{weight:h.weight},f)}}function o(a){e.forEach(a.graph().dummyChains,function(s){var l=a.node(s),u=l.edgeLabel,d;for(a.setEdge(l.edgeObj,u);l.dummy;)d=a.successors(s)[0],a.removeNode(s),u.points.push({x:l.x,y:l.y}),l.dummy==="edge-label"&&(u.x=l.x,u.y=l.y,u.width=l.width,u.height=l.height),s=d,l=a.node(s)})}return Ao}var Ro,oc;function an(){if(oc)return Ro;oc=1;var e=he();Ro={longestPath:t,slack:n};function t(r){var o={};function a(s){var l=r.node(s);if(e.has(o,s))return l.rank;o[s]=!0;var u=e.min(e.map(r.outEdges(s),function(d){return a(d.w)-r.edge(d).minlen}));return(u===Number.POSITIVE_INFINITY||u===void 0||u===null)&&(u=0),l.rank=u}e.forEach(r.sources(),a)}function n(r,o){return r.node(o.w).rank-r.node(o.v).rank-r.edge(o).minlen}return Ro}var Do,ac;function ef(){if(ac)return Do;ac=1;var e=he(),t=Ke().Graph,n=an().slack;Do=r;function r(l){var u=new t({directed:!1}),d=l.nodes()[0],c=l.nodeCount();u.setNode(d,{});for(var f,h;o(u,l)<c;)f=a(u,l),h=u.hasNode(f.v)?n(l,f):-n(l,f),s(u,l,h);return u}function o(l,u){function d(c){e.forEach(u.nodeEdges(c),function(f){var h=f.v,m=c===h?f.w:h;!l.hasNode(m)&&!n(u,f)&&(l.setNode(m,{}),l.setEdge(c,m,{}),d(m))})}return e.forEach(l.nodes(),d),l.nodeCount()}function a(l,u){return e.minBy(u.edges(),function(d){if(l.hasNode(d.v)!==l.hasNode(d.w))return n(u,d)})}function s(l,u,d){e.forEach(l.nodes(),function(c){u.node(c).rank+=d})}return Do}var Po,sc;function hv(){if(sc)return Po;sc=1;var e=he(),t=ef(),n=an().slack,r=an().longestPath,o=Ke().alg.preorder,a=Ke().alg.postorder,s=Pe().simplify;Po=l,l.initLowLimValues=f,l.initCutValues=u,l.calcCutValue=c,l.leaveEdge=m,l.enterEdge=C,l.exchangeEdges=E;function l(y){y=s(y),r(y);var g=t(y);f(g),u(g,y);for(var k,N;k=m(g);)N=C(g,y,k),E(g,y,k,N)}function u(y,g){var k=a(y,y.nodes());k=k.slice(0,k.length-1),e.forEach(k,function(N){d(y,g,N)})}function d(y,g,k){var N=y.node(k),b=N.parent;y.edge(k,b).cutvalue=c(y,g,k)}function c(y,g,k){var N=y.node(k),b=N.parent,T=!0,A=g.edge(k,b),R=0;return A||(T=!1,A=g.edge(b,k)),R=A.weight,e.forEach(g.nodeEdges(k),function(U){var V=U.v===k,j=V?U.w:U.v;if(j!==b){var Z=V===T,M=g.edge(U).weight;if(R+=Z?M:-M,p(y,k,j)){var D=y.edge(k,j).cutvalue;R+=Z?-D:D}}}),R}function f(y,g){arguments.length<2&&(g=y.nodes()[0]),h(y,{},1,g)}function h(y,g,k,N,b){var T=k,A=y.node(N);return g[N]=!0,e.forEach(y.neighbors(N),function(R){e.has(g,R)||(k=h(y,g,k,R,N))}),A.low=T,A.lim=k++,b?A.parent=b:delete A.parent,k}function m(y){return e.find(y.edges(),function(g){return y.edge(g).cutvalue<0})}function C(y,g,k){var N=k.v,b=k.w;g.hasEdge(N,b)||(N=k.w,b=k.v);var T=y.node(N),A=y.node(b),R=T,U=!1;T.lim>A.lim&&(R=A,U=!0);var V=e.filter(g.edges(),function(j){return U===v(y,y.node(j.v),R)&&U!==v(y,y.node(j.w),R)});return e.minBy(V,function(j){return n(g,j)})}function E(y,g,k,N){var b=k.v,T=k.w;y.removeEdge(b,T),y.setEdge(N.v,N.w,{}),f(y),u(y,g),_(y,g)}function _(y,g){var k=e.find(y.nodes(),function(b){return!g.node(b).parent}),N=o(y,k);N=N.slice(1),e.forEach(N,function(b){var T=y.node(b).parent,A=g.edge(b,T),R=!1;A||(A=g.edge(T,b),R=!0),g.node(b).rank=g.node(T).rank+(R?A.minlen:-A.minlen)})}function p(y,g,k){return y.hasEdge(g,k)}function v(y,g,k){return k.low<=g.lim&&g.lim<=k.lim}return Po}var Bo,lc;function mv(){if(lc)return Bo;lc=1;var e=an(),t=e.longestPath,n=ef(),r=hv();Bo=o;function o(u){switch(u.graph().ranker){case"network-simplex":l(u);break;case"tight-tree":s(u);break;case"longest-path":a(u);break;default:l(u)}}var a=t;function s(u){t(u),n(u)}function l(u){r(u)}return Bo}var Vo,uc;function pv(){if(uc)return Vo;uc=1;var e=he();Vo=t;function t(o){var a=r(o);e.forEach(o.graph().dummyChains,function(s){for(var l=o.node(s),u=l.edgeObj,d=n(o,a,u.v,u.w),c=d.path,f=d.lca,h=0,m=c[h],C=!0;s!==u.w;){if(l=o.node(s),C){for(;(m=c[h])!==f&&o.node(m).maxRank<l.rank;)h++;m===f&&(C=!1)}if(!C){for(;h<c.length-1&&o.node(m=c[h+1]).minRank<=l.rank;)h++;m=c[h]}o.setParent(s,m),s=o.successors(s)[0]}})}function n(o,a,s,l){var u=[],d=[],c=Math.min(a[s].low,a[l].low),f=Math.max(a[s].lim,a[l].lim),h,m;h=s;do h=o.parent(h),u.push(h);while(h&&(a[h].low>c||f>a[h].lim));for(m=h,h=l;(h=o.parent(h))!==m;)d.push(h);return{path:u.concat(d.reverse()),lca:m}}function r(o){var a={},s=0;function l(u){var d=s;e.forEach(o.children(u),l),a[u]={low:d,lim:s++}}return e.forEach(o.children(),l),a}return Vo}var xo,cc;function gv(){if(cc)return xo;cc=1;var e=he(),t=Pe();xo={run:n,cleanup:s};function n(l){var u=t.addDummyNode(l,"root",{},"_root"),d=o(l),c=e.max(e.values(d))-1,f=2*c+1;l.graph().nestingRoot=u,e.forEach(l.edges(),function(m){l.edge(m).minlen*=f});var h=a(l)+1;e.forEach(l.children(),function(m){r(l,u,f,h,c,d,m)}),l.graph().nodeRankFactor=f}function r(l,u,d,c,f,h,m){var C=l.children(m);if(!C.length){m!==u&&l.setEdge(u,m,{weight:0,minlen:d});return}var E=t.addBorderNode(l,"_bt"),_=t.addBorderNode(l,"_bb"),p=l.node(m);l.setParent(E,m),p.borderTop=E,l.setParent(_,m),p.borderBottom=_,e.forEach(C,function(v){r(l,u,d,c,f,h,v);var y=l.node(v),g=y.borderTop?y.borderTop:v,k=y.borderBottom?y.borderBottom:v,N=y.borderTop?c:2*c,b=g!==k?1:f-h[m]+1;l.setEdge(E,g,{weight:N,minlen:b,nestingEdge:!0}),l.setEdge(k,_,{weight:N,minlen:b,nestingEdge:!0})}),l.parent(m)||l.setEdge(u,E,{weight:0,minlen:f+h[m]})}function o(l){var u={};function d(c,f){var h=l.children(c);h&&h.length&&e.forEach(h,function(m){d(m,f+1)}),u[c]=f}return e.forEach(l.children(),function(c){d(c,1)}),u}function a(l){return e.reduce(l.edges(),function(u,d){return u+l.edge(d).weight},0)}function s(l){var u=l.graph();l.removeNode(u.nestingRoot),delete u.nestingRoot,e.forEach(l.edges(),function(d){var c=l.edge(d);c.nestingEdge&&l.removeEdge(d)})}return xo}var Mo,dc;function vv(){if(dc)return Mo;dc=1;var e=he(),t=Pe();Mo=n;function n(o){function a(s){var l=o.children(s),u=o.node(s);if(l.length&&e.forEach(l,a),e.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var d=u.minRank,c=u.maxRank+1;d<c;++d)r(o,"borderLeft","_bl",s,u,d),r(o,"borderRight","_br",s,u,d)}}e.forEach(o.children(),a)}function r(o,a,s,l,u,d){var c={width:0,height:0,rank:d,borderType:a},f=u[a][d-1],h=t.addDummyNode(o,"border",c,s);u[a][d]=h,o.setParent(h,l),f&&o.setEdge(f,h,{weight:1})}return Mo}var $o,fc;function _v(){if(fc)return $o;fc=1;var e=he();$o={adjust:t,undo:n};function t(d){var c=d.graph().rankdir.toLowerCase();(c==="lr"||c==="rl")&&r(d)}function n(d){var c=d.graph().rankdir.toLowerCase();(c==="bt"||c==="rl")&&a(d),(c==="lr"||c==="rl")&&(l(d),r(d))}function r(d){e.forEach(d.nodes(),function(c){o(d.node(c))}),e.forEach(d.edges(),function(c){o(d.edge(c))})}function o(d){var c=d.width;d.width=d.height,d.height=c}function a(d){e.forEach(d.nodes(),function(c){s(d.node(c))}),e.forEach(d.edges(),function(c){var f=d.edge(c);e.forEach(f.points,s),e.has(f,"y")&&s(f)})}function s(d){d.y=-d.y}function l(d){e.forEach(d.nodes(),function(c){u(d.node(c))}),e.forEach(d.edges(),function(c){var f=d.edge(c);e.forEach(f.points,u),e.has(f,"x")&&u(f)})}function u(d){var c=d.x;d.x=d.y,d.y=c}return $o}var qo,hc;function Ev(){if(hc)return qo;hc=1;var e=he();qo=t;function t(n){var r={},o=e.filter(n.nodes(),function(d){return!n.children(d).length}),a=e.max(e.map(o,function(d){return n.node(d).rank})),s=e.map(e.range(a+1),function(){return[]});function l(d){if(!e.has(r,d)){r[d]=!0;var c=n.node(d);s[c.rank].push(d),e.forEach(n.successors(d),l)}}var u=e.sortBy(o,function(d){return n.node(d).rank});return e.forEach(u,l),s}return qo}var Fo,mc;function yv(){if(mc)return Fo;mc=1;var e=he();Fo=t;function t(r,o){for(var a=0,s=1;s<o.length;++s)a+=n(r,o[s-1],o[s]);return a}function n(r,o,a){for(var s=e.zipObject(a,e.map(a,function(h,m){return m})),l=e.flatten(e.map(o,function(h){return e.sortBy(e.map(r.outEdges(h),function(m){return{pos:s[m.w],weight:r.edge(m).weight}}),"pos")}),!0),u=1;u<a.length;)u<<=1;var d=2*u-1;u-=1;var c=e.map(new Array(d),function(){return 0}),f=0;return e.forEach(l.forEach(function(h){var m=h.pos+u;c[m]+=h.weight;for(var C=0;m>0;)m%2&&(C+=c[m+1]),m=m-1>>1,c[m]+=h.weight;f+=h.weight*C})),f}return Fo}var Uo,pc;function bv(){if(pc)return Uo;pc=1;var e=he();Uo=t;function t(n,r){return e.map(r,function(o){var a=n.inEdges(o);if(a.length){var s=e.reduce(a,function(l,u){var d=n.edge(u),c=n.node(u.v);return{sum:l.sum+d.weight*c.order,weight:l.weight+d.weight}},{sum:0,weight:0});return{v:o,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:o}})}return Uo}var Ho,gc;function kv(){if(gc)return Ho;gc=1;var e=he();Ho=t;function t(o,a){var s={};e.forEach(o,function(u,d){var c=s[u.v]={indegree:0,in:[],out:[],vs:[u.v],i:d};e.isUndefined(u.barycenter)||(c.barycenter=u.barycenter,c.weight=u.weight)}),e.forEach(a.edges(),function(u){var d=s[u.v],c=s[u.w];!e.isUndefined(d)&&!e.isUndefined(c)&&(c.indegree++,d.out.push(s[u.w]))});var l=e.filter(s,function(u){return!u.indegree});return n(l)}function n(o){var a=[];function s(d){return function(c){c.merged||(e.isUndefined(c.barycenter)||e.isUndefined(d.barycenter)||c.barycenter>=d.barycenter)&&r(d,c)}}function l(d){return function(c){c.in.push(d),--c.indegree===0&&o.push(c)}}for(;o.length;){var u=o.pop();a.push(u),e.forEach(u.in.reverse(),s(u)),e.forEach(u.out,l(u))}return e.map(e.filter(a,function(d){return!d.merged}),function(d){return e.pick(d,["vs","i","barycenter","weight"])})}function r(o,a){var s=0,l=0;o.weight&&(s+=o.barycenter*o.weight,l+=o.weight),a.weight&&(s+=a.barycenter*a.weight,l+=a.weight),o.vs=a.vs.concat(o.vs),o.barycenter=s/l,o.weight=l,o.i=Math.min(a.i,o.i),a.merged=!0}return Ho}var Go,vc;function Cv(){if(vc)return Go;vc=1;var e=he(),t=Pe();Go=n;function n(a,s){var l=t.partition(a,function(E){return e.has(E,"barycenter")}),u=l.lhs,d=e.sortBy(l.rhs,function(E){return-E.i}),c=[],f=0,h=0,m=0;u.sort(o(!!s)),m=r(c,d,m),e.forEach(u,function(E){m+=E.vs.length,c.push(E.vs),f+=E.barycenter*E.weight,h+=E.weight,m=r(c,d,m)});var C={vs:e.flatten(c,!0)};return h&&(C.barycenter=f/h,C.weight=h),C}function r(a,s,l){for(var u;s.length&&(u=e.last(s)).i<=l;)s.pop(),a.push(u.vs),l++;return l}function o(a){return function(s,l){return s.barycenter<l.barycenter?-1:s.barycenter>l.barycenter?1:a?l.i-s.i:s.i-l.i}}return Go}var zo,_c;function Nv(){if(_c)return zo;_c=1;var e=he(),t=bv(),n=kv(),r=Cv();zo=o;function o(l,u,d,c){var f=l.children(u),h=l.node(u),m=h?h.borderLeft:void 0,C=h?h.borderRight:void 0,E={};m&&(f=e.filter(f,function(k){return k!==m&&k!==C}));var _=t(l,f);e.forEach(_,function(k){if(l.children(k.v).length){var N=o(l,k.v,d,c);E[k.v]=N,e.has(N,"barycenter")&&s(k,N)}});var p=n(_,d);a(p,E);var v=r(p,c);if(m&&(v.vs=e.flatten([m,v.vs,C],!0),l.predecessors(m).length)){var y=l.node(l.predecessors(m)[0]),g=l.node(l.predecessors(C)[0]);e.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+g.order)/(v.weight+2),v.weight+=2}return v}function a(l,u){e.forEach(l,function(d){d.vs=e.flatten(d.vs.map(function(c){return u[c]?u[c].vs:c}),!0)})}function s(l,u){e.isUndefined(l.barycenter)?(l.barycenter=u.barycenter,l.weight=u.weight):(l.barycenter=(l.barycenter*l.weight+u.barycenter*u.weight)/(l.weight+u.weight),l.weight+=u.weight)}return zo}var jo,Ec;function wv(){if(Ec)return jo;Ec=1;var e=he(),t=Ke().Graph;jo=n;function n(o,a,s){var l=r(o),u=new t({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(d){return o.node(d)});return e.forEach(o.nodes(),function(d){var c=o.node(d),f=o.parent(d);(c.rank===a||c.minRank<=a&&a<=c.maxRank)&&(u.setNode(d),u.setParent(d,f||l),e.forEach(o[s](d),function(h){var m=h.v===d?h.w:h.v,C=u.edge(m,d),E=e.isUndefined(C)?0:C.weight;u.setEdge(m,d,{weight:o.edge(h).weight+E})}),e.has(c,"minRank")&&u.setNode(d,{borderLeft:c.borderLeft[a],borderRight:c.borderRight[a]}))}),u}function r(o){for(var a;o.hasNode(a=e.uniqueId("_root")););return a}return jo}var Wo,yc;function Sv(){if(yc)return Wo;yc=1;var e=he();Wo=t;function t(n,r,o){var a={},s;e.forEach(o,function(l){for(var u=n.parent(l),d,c;u;){if(d=n.parent(u),d?(c=a[d],a[d]=u):(c=s,s=u),c&&c!==u){r.setEdge(c,u);return}u=d}})}return Wo}var Ko,bc;function Lv(){if(bc)return Ko;bc=1;var e=he(),t=Ev(),n=yv(),r=Nv(),o=wv(),a=Sv(),s=Ke().Graph,l=Pe();Ko=u;function u(h){var m=l.maxRank(h),C=d(h,e.range(1,m+1),"inEdges"),E=d(h,e.range(m-1,-1,-1),"outEdges"),_=t(h);f(h,_);for(var p=Number.POSITIVE_INFINITY,v,y=0,g=0;g<4;++y,++g){c(y%2?C:E,y%4>=2),_=l.buildLayerMatrix(h);var k=n(h,_);k<p&&(g=0,v=e.cloneDeep(_),p=k)}f(h,v)}function d(h,m,C){return e.map(m,function(E){return o(h,E,C)})}function c(h,m){var C=new s;e.forEach(h,function(E){var _=E.graph().root,p=r(E,_,C,m);e.forEach(p.vs,function(v,y){E.node(v).order=y}),a(E,C,p.vs)})}function f(h,m){e.forEach(m,function(C){e.forEach(C,function(E,_){h.node(E).order=_})})}return Ko}var Yo,kc;function Tv(){if(kc)return Yo;kc=1;var e=he(),t=Ke().Graph,n=Pe();Yo={positionX:C,findType1Conflicts:r,findType2Conflicts:o,addConflict:s,hasConflict:l,verticalAlignment:u,horizontalCompaction:d,alignCoordinates:h,findSmallestWidthAlignment:f,balance:m};function r(p,v){var y={};function g(k,N){var b=0,T=0,A=k.length,R=e.last(N);return e.forEach(N,function(U,V){var j=a(p,U),Z=j?p.node(j).order:A;(j||U===R)&&(e.forEach(N.slice(T,V+1),function(M){e.forEach(p.predecessors(M),function(D){var J=p.node(D),W=J.order;(W<b||Z<W)&&!(J.dummy&&p.node(M).dummy)&&s(y,D,M)})}),T=V+1,b=Z)}),N}return e.reduce(v,g),y}function o(p,v){var y={};function g(N,b,T,A,R){var U;e.forEach(e.range(b,T),function(V){U=N[V],p.node(U).dummy&&e.forEach(p.predecessors(U),function(j){var Z=p.node(j);Z.dummy&&(Z.order<A||Z.order>R)&&s(y,j,U)})})}function k(N,b){var T=-1,A,R=0;return e.forEach(b,function(U,V){if(p.node(U).dummy==="border"){var j=p.predecessors(U);j.length&&(A=p.node(j[0]).order,g(b,R,V,T,A),R=V,T=A)}g(b,R,b.length,A,N.length)}),b}return e.reduce(v,k),y}function a(p,v){if(p.node(v).dummy)return e.find(p.predecessors(v),function(y){return p.node(y).dummy})}function s(p,v,y){if(v>y){var g=v;v=y,y=g}var k=p[v];k||(p[v]=k={}),k[y]=!0}function l(p,v,y){if(v>y){var g=v;v=y,y=g}return e.has(p[v],y)}function u(p,v,y,g){var k={},N={},b={};return e.forEach(v,function(T){e.forEach(T,function(A,R){k[A]=A,N[A]=A,b[A]=R})}),e.forEach(v,function(T){var A=-1;e.forEach(T,function(R){var U=g(R);if(U.length){U=e.sortBy(U,function(D){return b[D]});for(var V=(U.length-1)/2,j=Math.floor(V),Z=Math.ceil(V);j<=Z;++j){var M=U[j];N[R]===R&&A<b[M]&&!l(y,R,M)&&(N[M]=R,N[R]=k[R]=k[M],A=b[M])}}})}),{root:k,align:N}}function d(p,v,y,g,k){var N={},b=c(p,v,y,k),T=k?"borderLeft":"borderRight";function A(V,j){for(var Z=b.nodes(),M=Z.pop(),D={};M;)D[M]?V(M):(D[M]=!0,Z.push(M),Z=Z.concat(j(M))),M=Z.pop()}function R(V){N[V]=b.inEdges(V).reduce(function(j,Z){return Math.max(j,N[Z.v]+b.edge(Z))},0)}function U(V){var j=b.outEdges(V).reduce(function(M,D){return Math.min(M,N[D.w]-b.edge(D))},Number.POSITIVE_INFINITY),Z=p.node(V);j!==Number.POSITIVE_INFINITY&&Z.borderType!==T&&(N[V]=Math.max(N[V],j))}return A(R,b.predecessors.bind(b)),A(U,b.successors.bind(b)),e.forEach(g,function(V){N[V]=N[y[V]]}),N}function c(p,v,y,g){var k=new t,N=p.graph(),b=E(N.nodesep,N.edgesep,g);return e.forEach(v,function(T){var A;e.forEach(T,function(R){var U=y[R];if(k.setNode(U),A){var V=y[A],j=k.edge(V,U);k.setEdge(V,U,Math.max(b(p,R,A),j||0))}A=R})}),k}function f(p,v){return e.minBy(e.values(v),function(y){var g=Number.NEGATIVE_INFINITY,k=Number.POSITIVE_INFINITY;return e.forIn(y,function(N,b){var T=_(p,b)/2;g=Math.max(N+T,g),k=Math.min(N-T,k)}),g-k})}function h(p,v){var y=e.values(v),g=e.min(y),k=e.max(y);e.forEach(["u","d"],function(N){e.forEach(["l","r"],function(b){var T=N+b,A=p[T],R;if(A!==v){var U=e.values(A);R=b==="l"?g-e.min(U):k-e.max(U),R&&(p[T]=e.mapValues(A,function(V){return V+R}))}})})}function m(p,v){return e.mapValues(p.ul,function(y,g){if(v)return p[v.toLowerCase()][g];var k=e.sortBy(e.map(p,g));return(k[1]+k[2])/2})}function C(p){var v=n.buildLayerMatrix(p),y=e.merge(r(p,v),o(p,v)),g={},k;e.forEach(["u","d"],function(b){k=b==="u"?v:e.values(v).reverse(),e.forEach(["l","r"],function(T){T==="r"&&(k=e.map(k,function(V){return e.values(V).reverse()}));var A=(b==="u"?p.predecessors:p.successors).bind(p),R=u(p,k,y,A),U=d(p,k,R.root,R.align,T==="r");T==="r"&&(U=e.mapValues(U,function(V){return-V})),g[b+T]=U})});var N=f(p,g);return h(g,N),m(g,p.graph().align)}function E(p,v,y){return function(g,k,N){var b=g.node(k),T=g.node(N),A=0,R;if(A+=b.width/2,e.has(b,"labelpos"))switch(b.labelpos.toLowerCase()){case"l":R=-b.width/2;break;case"r":R=b.width/2;break}if(R&&(A+=y?R:-R),R=0,A+=(b.dummy?v:p)/2,A+=(T.dummy?v:p)/2,A+=T.width/2,e.has(T,"labelpos"))switch(T.labelpos.toLowerCase()){case"l":R=T.width/2;break;case"r":R=-T.width/2;break}return R&&(A+=y?R:-R),R=0,A}}function _(p,v){return p.node(v).width}return Yo}var Xo,Cc;function Iv(){if(Cc)return Xo;Cc=1;var e=he(),t=Pe(),n=Tv().positionX;Xo=r;function r(a){a=t.asNonCompoundGraph(a),o(a),e.forEach(n(a),function(s,l){a.node(l).x=s})}function o(a){var s=t.buildLayerMatrix(a),l=a.graph().ranksep,u=0;e.forEach(s,function(d){var c=e.max(e.map(d,function(f){return a.node(f).height}));e.forEach(d,function(f){a.node(f).y=u+c/2}),u+=c+l})}return Xo}var Zo,Nc;function Ov(){if(Nc)return Zo;Nc=1;var e=he(),t=dv(),n=fv(),r=mv(),o=Pe().normalizeRanks,a=pv(),s=Pe().removeEmptyRanks,l=gv(),u=vv(),d=_v(),c=Lv(),f=Iv(),h=Pe(),m=Ke().Graph;Zo=C;function C(I,P){var q=P&&P.debugTiming?h.time:h.notime;q("layout",function(){var G=q(" buildLayoutGraph",function(){return A(I)});q(" runLayout",function(){E(G,q)}),q(" updateInputGraph",function(){_(I,G)})})}function E(I,P){P(" makeSpaceForEdgeLabels",function(){R(I)}),P(" removeSelfEdges",function(){F(I)}),P(" acyclic",function(){t.run(I)}),P(" nestingGraph.run",function(){l.run(I)}),P(" rank",function(){r(h.asNonCompoundGraph(I))}),P(" injectEdgeLabelProxies",function(){U(I)}),P(" removeEmptyRanks",function(){s(I)}),P(" nestingGraph.cleanup",function(){l.cleanup(I)}),P(" normalizeRanks",function(){o(I)}),P(" assignRankMinMax",function(){V(I)}),P(" removeEdgeLabelProxies",function(){j(I)}),P(" normalize.run",function(){n.run(I)}),P(" parentDummyChains",function(){a(I)}),P(" addBorderSegments",function(){u(I)}),P(" order",function(){c(I)}),P(" insertSelfEdges",function(){ne(I)}),P(" adjustCoordinateSystem",function(){d.adjust(I)}),P(" position",function(){f(I)}),P(" positionSelfEdges",function(){me(I)}),P(" removeBorderNodes",function(){W(I)}),P(" normalize.undo",function(){n.undo(I)}),P(" fixupEdgeLabelCoords",function(){D(I)}),P(" undoCoordinateSystem",function(){d.undo(I)}),P(" translateGraph",function(){Z(I)}),P(" assignNodeIntersects",function(){M(I)}),P(" reversePoints",function(){J(I)}),P(" acyclic.undo",function(){t.undo(I)})}function _(I,P){e.forEach(I.nodes(),function(q){var G=I.node(q),ee=P.node(q);G&&(G.x=ee.x,G.y=ee.y,P.children(q).length&&(G.width=ee.width,G.height=ee.height))}),e.forEach(I.edges(),function(q){var G=I.edge(q),ee=P.edge(q);G.points=ee.points,e.has(ee,"x")&&(G.x=ee.x,G.y=ee.y)}),I.graph().width=P.graph().width,I.graph().height=P.graph().height}var p=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],g=["width","height"],k={width:0,height:0},N=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(I){var P=new m({multigraph:!0,compound:!0}),q=xe(I.graph());return P.setGraph(e.merge({},v,Re(q,p),e.pick(q,y))),e.forEach(I.nodes(),function(G){var ee=xe(I.node(G));P.setNode(G,e.defaults(Re(ee,g),k)),P.setParent(G,I.parent(G))}),e.forEach(I.edges(),function(G){var ee=xe(I.edge(G));P.setEdge(G,e.merge({},b,Re(ee,N),e.pick(ee,T)))}),P}function R(I){var P=I.graph();P.ranksep/=2,e.forEach(I.edges(),function(q){var G=I.edge(q);G.minlen*=2,G.labelpos.toLowerCase()!=="c"&&(P.rankdir==="TB"||P.rankdir==="BT"?G.width+=G.labeloffset:G.height+=G.labeloffset)})}function U(I){e.forEach(I.edges(),function(P){var q=I.edge(P);if(q.width&&q.height){var G=I.node(P.v),ee=I.node(P.w),ce={rank:(ee.rank-G.rank)/2+G.rank,e:P};h.addDummyNode(I,"edge-proxy",ce,"_ep")}})}function V(I){var P=0;e.forEach(I.nodes(),function(q){var G=I.node(q);G.borderTop&&(G.minRank=I.node(G.borderTop).rank,G.maxRank=I.node(G.borderBottom).rank,P=e.max(P,G.maxRank))}),I.graph().maxRank=P}function j(I){e.forEach(I.nodes(),function(P){var q=I.node(P);q.dummy==="edge-proxy"&&(I.edge(q.e).labelRank=q.rank,I.removeNode(P))})}function Z(I){var P=Number.POSITIVE_INFINITY,q=0,G=Number.POSITIVE_INFINITY,ee=0,ce=I.graph(),pe=ce.marginx||0,Ie=ce.marginy||0;function St(we){var be=we.x,Me=we.y,st=we.width,Lt=we.height;P=Math.min(P,be-st/2),q=Math.max(q,be+st/2),G=Math.min(G,Me-Lt/2),ee=Math.max(ee,Me+Lt/2)}e.forEach(I.nodes(),function(we){St(I.node(we))}),e.forEach(I.edges(),function(we){var be=I.edge(we);e.has(be,"x")&&St(be)}),P-=pe,G-=Ie,e.forEach(I.nodes(),function(we){var be=I.node(we);be.x-=P,be.y-=G}),e.forEach(I.edges(),function(we){var be=I.edge(we);e.forEach(be.points,function(Me){Me.x-=P,Me.y-=G}),e.has(be,"x")&&(be.x-=P),e.has(be,"y")&&(be.y-=G)}),ce.width=q-P+pe,ce.height=ee-G+Ie}function M(I){e.forEach(I.edges(),function(P){var q=I.edge(P),G=I.node(P.v),ee=I.node(P.w),ce,pe;q.points?(ce=q.points[0],pe=q.points[q.points.length-1]):(q.points=[],ce=ee,pe=G),q.points.unshift(h.intersectRect(G,ce)),q.points.push(h.intersectRect(ee,pe))})}function D(I){e.forEach(I.edges(),function(P){var q=I.edge(P);if(e.has(q,"x"))switch((q.labelpos==="l"||q.labelpos==="r")&&(q.width-=q.labeloffset),q.labelpos){case"l":q.x-=q.width/2+q.labeloffset;break;case"r":q.x+=q.width/2+q.labeloffset;break}})}function J(I){e.forEach(I.edges(),function(P){var q=I.edge(P);q.reversed&&q.points.reverse()})}function W(I){e.forEach(I.nodes(),function(P){if(I.children(P).length){var q=I.node(P),G=I.node(q.borderTop),ee=I.node(q.borderBottom),ce=I.node(e.last(q.borderLeft)),pe=I.node(e.last(q.borderRight));q.width=Math.abs(pe.x-ce.x),q.height=Math.abs(ee.y-G.y),q.x=ce.x+q.width/2,q.y=G.y+q.height/2}}),e.forEach(I.nodes(),function(P){I.node(P).dummy==="border"&&I.removeNode(P)})}function F(I){e.forEach(I.edges(),function(P){if(P.v===P.w){var q=I.node(P.v);q.selfEdges||(q.selfEdges=[]),q.selfEdges.push({e:P,label:I.edge(P)}),I.removeEdge(P)}})}function ne(I){var P=h.buildLayerMatrix(I);e.forEach(P,function(q){var G=0;e.forEach(q,function(ee,ce){var pe=I.node(ee);pe.order=ce+G,e.forEach(pe.selfEdges,function(Ie){h.addDummyNode(I,"selfedge",{width:Ie.label.width,height:Ie.label.height,rank:pe.rank,order:ce+ ++G,e:Ie.e,label:Ie.label},"_se")}),delete pe.selfEdges})})}function me(I){e.forEach(I.nodes(),function(P){var q=I.node(P);if(q.dummy==="selfedge"){var G=I.node(q.e.v),ee=G.x+G.width/2,ce=G.y,pe=q.x-ee,Ie=G.height/2;I.setEdge(q.e,q.label),I.removeNode(P),q.label.points=[{x:ee+2*pe/3,y:ce-Ie},{x:ee+5*pe/6,y:ce-Ie},{x:ee+pe,y:ce},{x:ee+5*pe/6,y:ce+Ie},{x:ee+2*pe/3,y:ce+Ie}],q.label.x=q.x,q.label.y=q.y}})}function Re(I,P){return e.mapValues(e.pick(I,P),Number)}function xe(I){var P={};return e.forEach(I,function(q,G){P[G.toLowerCase()]=q}),P}return Zo}var Jo,wc;function Av(){if(wc)return Jo;wc=1;var e=he(),t=Pe(),n=Ke().Graph;Jo={debugOrdering:r};function r(o){var a=t.buildLayerMatrix(o),s=new n({compound:!0,multigraph:!0}).setGraph({});return e.forEach(o.nodes(),function(l){s.setNode(l,{label:l}),s.setParent(l,"layer"+o.node(l).rank)}),e.forEach(o.edges(),function(l){s.setEdge(l.v,l.w,{},l.name)}),e.forEach(a,function(l,u){var d="layer"+u;s.setNode(d,{rank:"same"}),e.reduce(l,function(c,f){return s.setEdge(c,f,{style:"invis"}),f})}),s}return Jo}var Qo,Sc;function Rv(){return Sc||(Sc=1,Qo="0.8.5"),Qo}var ea,Lc;function Dv(){return Lc||(Lc=1,ea={graphlib:Ke(),layout:Ov(),debug:Av(),util:{time:Pe().time,notime:Pe().notime},version:Rv()}),ea}var Pv=Dv();const Tc=L.getDefaultExportFromCjs(Pv),lt="root.Triggers",tn={predecessorsEdge(e,t){const{getEdges:n}=te.useVueFlow(e),r=[];for(const o of n.value)if(o.target===t){r.push(o);const a=this.predecessorsEdge(e,o.source);a.length>0&&r.push(...a)}return r},successorsEdge(e,t){const{getEdges:n}=te.useVueFlow(e),r=[];for(const o of n.value)if(o.source===t){r.push(o);const a=this.successorsEdge(e,o.target);a.length>0&&r.push(...a)}return r},predecessorsNode(e,t){const{getEdges:n,findNode:r}=te.useVueFlow(e),o=r(t),a=o?[o]:[];for(const s of n.value)if(s.target===t){a.push(s.sourceNode);const l=this.predecessorsNode(e,s.source);l.length>0&&a.push(...l)}return a},successorsNode(e,t){const{getEdges:n,findNode:r}=te.useVueFlow(e),o=[r(t)];for(const a of n.value)if(a.source===t){o.push(a.targetNode);const s=this.successorsNode(e,a.target);s.length>0&&o.push(...s)}return o},linkedElements(e,t){return[...this.predecessorsEdge(e,t),...this.predecessorsNode(e,t),...this.successorsEdge(e,t),...this.successorsNode(e,t)]},generateDagreGraph(e,t,n,r,o,a,s){const l=new Tc.graphlib.Graph({compound:!0});l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:n?"LR":"TB"});for(const u of e.nodes)t.includes(u.uid)||l.setNode(u.uid,{width:this.getNodeWidth(u),height:this.getNodeHeight(u)});for(const u of e.clusters||[]){const d=u.cluster.uid.replace(ct,"");if(r.includes(u.cluster.uid)&&a.has(d)){const c={uid:d,type:"collapsedcluster"};l.setNode(d,{width:this.getNodeWidth(c),height:this.getNodeHeight(c)}),s.push(c);continue}if(!o[u.cluster.uid]){l.setNode(u.cluster.uid,{clusterLabelPos:"top"});for(const c of u.nodes||[])t.includes(c)||l.setParent(c,u.cluster.uid)}if(u.parents){const c=o[u.cluster.uid]?o[u.cluster.uid]:u.cluster.uid;t.includes(c)||l.setParent(c,u.parents[u.parents.length-1])}}for(const u of e.edges||[]){const d=this.replaceIfCollapsed(u.source,u.target,o,t);d&&l.setEdge(d.source,d.target)}return Tc.layout(l),l},getNodePosition(e,t){const n={x:e.x-e.width/2,y:e.y-e.height/2};if(t){const r=this.getNodePosition(t);n.x=n.x-r.x,n.y=n.y-r.y}return n},getNodeWidth(e){return this.isTaskNode(e)||this.isTriggerNode(e)?et.TASK_WIDTH:this.isCollapsedCluster(e)?et.COLLAPSED_CLUSTER_WIDTH:et.DOT_WIDTH},getNodeHeight(e){return this.isTaskNode(e)||this.isTriggerNode(e)?et.TASK_HEIGHT:this.isCollapsedCluster(e)?et.COLLAPSED_CLUSTER_HEIGHT:et.DOT_HEIGHT},isTaskNode(e){return["GraphTask","SubflowGraphTask$1"].some(t=>e.type.endsWith(t))},isTriggerNode(e){return e.type.endsWith("GraphTrigger")},isCollapsedCluster(e){return e.type==="collapsedcluster"},replaceIfCollapsed(e,t,n,r){const o=n[e]?n[e]:e,a=n[t]?n[t]:t;return o===a||r.includes(o)||r.includes(a)?null:{target:a,source:o}},cleanGraph(e){const{getEdges:t,getNodes:n,getElements:r,removeEdges:o,removeNodes:a,removeSelectedElements:s}=te.useVueFlow(e);o(t.value),a(n.value),s(r.value)},flowHaveTasks(e){return e?L.flowHaveTasks(e):!1},nodeColor(e,t){return e.uid===lt||this.isTriggerNode(e)||this.isCollapsedCluster(e)?"success":e.type.endsWith("SubflowGraphTask")?"primary":e.branchType=="ERROR"?"danger":e.branchType=="FINALLY"?"warning":t.has(e.uid)?"blue":"default"},haveAdd(e,t,n,r){var d,c,f;if(r.some(h=>e.source.startsWith(h)&&e.target.startsWith(h))||n.includes(e.target)||e.source.startsWith(lt)||e.target.startsWith(lt))return;const o=e.target.split(".");o.pop();const a=o.join("."),s=ge.afterLastDot(a),l=t[e.target];if(l.type.endsWith("GraphClusterEnd")&&((f=(c=(d=t[a])==null?void 0:d.task)==null?void 0:c.type)!=null&&f.endsWith("Parallel")))return;if(l.type.endsWith("GraphClusterRoot"))return[s,"before"];const u=t[e.source].type.endsWith("GraphClusterEnd");if(!u&&l.type.endsWith("GraphClusterEnd"))return[ge.afterLastDot(e.source),"after"];if(u){const h=e.source.split(".");return[h[h.length-2],"after"]}return[ge.afterLastDot(e.target),"before"]},getEdgeColor(e,t,n){const r=s=>{var u,d;const l=s.split(".");for(let c=1;c<=l.length;c++){const f=l.slice(0,c).join("."),h=(u=n[f])==null?void 0:u.branchType;if(h)return h}return((d=t[s])==null?void 0:d.branchType)??null},o=r(e.source),a=r(e.target);return[o,a].includes("ERROR")?"danger":[o,a].includes("FINALLY")?"warning":null},generateGraph(e,t,n,r,o,a,s,l,u,d,c,f,h){var b,T,A,R,U,V,j,Z,M,D,J,W;const m=[],C=[ct+lt];if(!r||o&&!this.flowHaveTasks(o)){m.push({id:"start",type:"dot",position:{x:0,y:0},style:{width:"5px",height:"5px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:void 0,draggable:!1}),m.push({id:"end",type:"dot",position:s?{x:50,y:0}:{x:0,y:50},style:{width:"5px",height:"5px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:void 0,draggable:!1}),m.push({id:"start|end",source:"start",target:"end",type:"edge",data:{edge:{relation:{relationType:"SEQUENTIAL"}},isFlowable:!1,initTask:!0,color:"primary"}});return}const E=this.generateDagreGraph(r,a,s,C,l,u,d),_={},p=r.clusters||[],v=p.map(F=>F.cluster),y=v.filter(F=>F.type.endsWith("SubflowGraphCluster")).map(F=>F.taskNode.uid),g=Object.fromEntries(r.nodes.concat(d).map(F=>[F.uid,F]));for(const F of p)if(!l[F.cluster.uid]&&!u.has(F.cluster.uid)){((T=(b=F.cluster.taskNode)==null?void 0:b.task)==null?void 0:T.type)==="io.kestra.core.tasks.flows.Dag"&&y.push(F.cluster.taskNode.uid);for(const I of F.nodes)_[I]=F.cluster;const ne=F.cluster.uid,me=E.node(ne),Re=F.parents?F.parents[F.parents.length-1]:void 0,xe=this.computeClusterColor(F.cluster);m.push({id:ne,type:"cluster",parentNode:Re,position:this.getNodePosition(me,Re?E.node(Re):void 0),style:{width:ne===lt&&s?et.TRIGGER_CLUSTER_WIDTH+"px":me.width+"px",height:ne===lt&&!s?et.TRIGGER_CLUSTER_HEIGHT+"px":me.height+"px"},data:{collapsable:!0,color:xe,taskNode:F.cluster.taskNode,unused:F.cluster.taskNode?g[F.cluster.taskNode.uid].unused:!1},class:`ks-topology-${xe}-border rounded p-2`})}for(const F of r.nodes.concat(d))if(!a.includes(F.uid)){const ne=E.node(F.uid);let me="task";this.isClusterRootOrEnd(F)?me="dot":F.type.includes("GraphTrigger")?me="trigger":F.type==="collapsedcluster"&&(me="collapsedcluster");const Re=this.nodeColor(F,u),xe=c||((R=(A=F.task)==null?void 0:A.type)==null?void 0:R.includes("$"))||y.some(I=>F.uid.startsWith(I+"."));m.push({id:F.uid,type:me,position:this.getNodePosition(ne,_[F.uid]?E.node(_[F.uid].uid):void 0),style:{width:this.getNodeWidth(F)+"px",height:this.getNodeHeight(F)+"px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:_[F.uid]?_[F.uid].uid:void 0,draggable:me==="task"?!xe:!1,data:{node:F,parent:_[F.uid]?_[F.uid]:void 0,namespace:((j=(V=(U=_[F.uid])==null?void 0:U.taskNode)==null?void 0:V.task)==null?void 0:j.namespace)??n,flowId:((D=(M=(Z=_[F.uid])==null?void 0:Z.taskNode)==null?void 0:M.task)==null?void 0:D.flowId)??t,isFlowable:((J=_[F.uid])==null?void 0:J.uid)===ct+F.uid&&!F.type.endsWith("SubflowGraphTask"),color:Re,expandable:this.isExpandableTask(F,_,l,h),isReadOnly:xe,iconComponent:this.isCollapsedCluster(F)?"lightning-bolt":null,executionId:F.executionId,unused:F.unused},class:F.type==="collapsedcluster"?`ks-topology-${Re}-border rounded`:""})}const k=v.filter(F=>F.taskNode).map(F=>F.taskNode.uid),N=r.edges??[];for(const F of N){const ne=this.replaceIfCollapsed(F.source,F.target,l,a);if(ne){const me=this.getEdgeColor(F,g,_);m.push({id:ne.source+"|"+ne.target,source:ne.source,target:ne.target,type:"edge",markerEnd:this.isClusterRootOrEnd(g[ne.target])?"":{id:"marker-"+(g[ne.target].branchType?(W=g[ne.target].branchType)==null?void 0:W.toLocaleLowerCase():"custom"),type:te.MarkerType.ArrowClosed,color:me?`var(--ks-border-${me})`:"var(--ks-topology-edge-color)"},data:{haveAdd:!c&&f&&this.haveAdd(F,g,k,y),haveDashArray:g[F.source].type.endsWith("GraphTrigger")||g[F.target].type.endsWith("GraphTrigger")||F.source.startsWith(lt),color:me,unused:F.unused},style:{zIndex:10}})}}return m},isClusterRootOrEnd(e){return["GraphClusterRoot","GraphClusterFinally","GraphClusterAfterExecution","GraphClusterEnd"].some(t=>e.type.endsWith(t))},computeClusterColor(e){return e.uid===ct+lt?"success":e.type.endsWith("SubflowGraphCluster")?"primary":e.branchType==="ERROR"?"danger":"blue"},isExpandableTask(e,t,n,r){var o,a;return Object.values(n).includes(e.uid)||this.isCollapsedCluster(e)?!0:e.type.endsWith("SubflowGraphTask")&&((a=(o=t[e.uid])==null?void 0:o.uid)==null?void 0:a.replace(ct,""))!==e.uid&&r}};let Kt;async function Bv(){if(Kt)return Kt;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-CPHSSwzs.cjs")).then(n=>n.useMarkdownParser);return Kt=await(e.default??e)(),Kt}var nn={exports:{}},Vv=nn.exports,Ic;function xv(){return Ic||(Ic=1,function(e,t){(function(n,r,o){e.exports=o(),e.exports.default=o()})("slugify",Vv,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function o(a,s){if(typeof a!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var l=r[s.locale]||{},u=s.replacement===void 0?"-":s.replacement,d=s.trim===void 0?!0:s.trim,c=a.normalize().split("").reduce(function(f,h){var m=l[h];return m===void 0&&(m=n[h]),m===void 0&&(m=h),m===u&&(m=" "),f+m.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),d&&(c=c.trim()),c=c.replace(/\s+/g,u),s.lower&&(c=c.toLowerCase()),c}return o.extend=function(a){Object.assign(n,a)},o})}(nn)),nn.exports}var Mv=xv();const tf=L.getDefaultExportFromCjs(Mv);tf.extend({"(":"-",")":""});function _t(e){return tf(e,{lower:!0,locale:"en"})}function nf(e,t){var n;return Array.isArray(t)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(t.length===0||((n=t[0])==null?void 0:n.cls)!==void 0)}function At(e){const t=e.title.replaceAll(/\.([a-zA-Z])/g,(n,r)=>` ${r.toUpperCase()}`);return t.charAt(0).toUpperCase()+t.slice(1)}/*!
|
|
2
2
|
* shared v11.1.3
|
|
3
3
|
* (c) 2025 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
@@ -26,9 +26,9 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
26
26
|
* (c) 2022 Evan You
|
|
27
27
|
* @license MIT
|
|
28
28
|
*/var vy="store";function Ct(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function xf(e){return e!==null&&typeof e=="object"}function _y(e){return e&&typeof e.then=="function"}function Ye(e,t){if(!e)throw new Error("[vuex] "+t)}function Ey(e,t){return function(){return e(t)}}function Mf(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function $f(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Tn(e,n,[],e._modules.root,!0),ja(e,n,t)}function ja(e,t,n){var r=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,s={},l={},u=i.effectScope(!0);u.run(function(){Ct(a,function(d,c){s[c]=Ey(d,e),l[c]=i.computed(function(){return s[c]()}),Object.defineProperty(e.getters,c,{get:function(){return l[c].value},enumerable:!0})})}),e._state=i.reactive({data:t}),e._scope=u,e.strict&&Ny(e),r&&n&&e._withCommit(function(){r.data=null}),o&&o.stop()}function Tn(e,t,n,r,o){var a=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[s]=r),!a&&!o){var l=Wa(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&u in l&&console.warn('[vuex] state field "'+u+'" was overridden by a module with the same name at "'+n.join(".")+'"'),l[u]=r.state})}var d=r.context=yy(e,s,n);r.forEachMutation(function(c,f){var h=s+f;by(e,h,c,d)}),r.forEachAction(function(c,f){var h=c.root?f:s+f,m=c.handler||c;ky(e,h,m,d)}),r.forEachGetter(function(c,f){var h=s+f;Cy(e,h,c,d)}),r.forEachChild(function(c,f){Tn(e,t,n.concat(f),c,o)})}function yy(e,t,n){var r=t==="",o={dispatch:r?e.dispatch:function(a,s,l){var u=cn(a,s,l),d=u.payload,c=u.options,f=u.type;if((!c||!c.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._actions[f])){console.error("[vuex] unknown local action type: "+u.type+", global type: "+f);return}return e.dispatch(f,d)},commit:r?e.commit:function(a,s,l){var u=cn(a,s,l),d=u.payload,c=u.options,f=u.type;if((!c||!c.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._mutations[f])){console.error("[vuex] unknown local mutation type: "+u.type+", global type: "+f);return}e.commit(f,d,c)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return qf(e,t)}},state:{get:function(){return Wa(e.state,n)}}}),o}function qf(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,r)===t){var a=o.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function by(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(s){n.call(e,r.state,s)})}function ky(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(s){var l=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},s);return _y(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):l})}function Cy(e,t,n,r){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(a){return n(r.state,r.getters,a.state,a.getters)}}function Ny(e){i.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Ye(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Wa(e,t){return t.reduce(function(n,r){return n[r]},e)}function cn(e,t,n){return xf(e)&&e.type&&(n=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&Ye(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var wy="vuex bindings",id="vuex:mutations",ia="vuex:actions",Ot="vuex",Sy=0;function Ly(e,t){D_({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[wy]},function(n){n.addTimelineLayer({id,label:"Vuex Mutations",color:od}),n.addTimelineLayer({id:ia,label:"Vuex Actions",color:od}),n.addInspector({id:Ot,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Ot)if(r.filter){var o=[];Gf(o,t._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[Hf(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Ot){var o=r.nodeId;qf(t,o),r.state=Oy(Ry(t._modules,o),o==="root"?t.getters:t._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Ot){var o=r.nodeId,a=r.path;o!=="root"&&(a=o.split("/").filter(Boolean).concat(a)),t._withCommit(function(){r.set(t._state.data,a,r.state.value)})}}),t.subscribe(function(r,o){var a={};r.payload&&(a.payload=r.payload),a.state=o,n.notifyComponentUpdate(),n.sendInspectorTree(Ot),n.sendInspectorState(Ot),n.addTimelineEvent({layerId:id,event:{time:Date.now(),title:r.type,data:a}})}),t.subscribeAction({before:function(r,o){var a={};r.payload&&(a.payload=r.payload),r._id=Sy++,r._time=Date.now(),a.state=o,n.addTimelineEvent({layerId:ia,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:a}})},after:function(r,o){var a={},s=Date.now()-r._time;a.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},r.payload&&(a.payload=r.payload),a.state=o,n.addTimelineEvent({layerId:ia,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:a}})}})})}var od=8702998,Ty=6710886,Iy=16777215,Ff={label:"namespaced",textColor:Iy,backgroundColor:Ty};function Uf(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function Hf(e,t){return{id:t||"root",label:Uf(t),tags:e.namespaced?[Ff]:[],children:Object.keys(e._children).map(function(n){return Hf(e._children[n],t+n+"/")})}}function Gf(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[Ff]:[]}),Object.keys(t._children).forEach(function(o){Gf(e,t._children[o],n,r+o+"/")})}function Oy(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(r.length){var a=Ay(t);o.getters=Object.keys(a).map(function(s){return{key:s.endsWith("/")?Uf(s):s,editable:!1,value:ba(function(){return a[s]})}})}return o}function Ay(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var o=t,a=r.pop();r.forEach(function(s){o[s]||(o[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),o=o[s]._custom.value}),o[a]=ba(function(){return e[n]})}else t[n]=ba(function(){return e[n]})}),t}function Ry(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,o,a){var s=r[o];if(!s)throw new Error('Missing module "'+o+'" for path "'+t+'".');return a===n.length-1?s:s._children},t==="root"?e:e.root._children)}function ba(e){try{return e()}catch(t){return t}}var Xe=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},zf={namespaced:{configurable:!0}};zf.namespaced.get=function(){return!!this._rawModule.namespaced};Xe.prototype.addChild=function(t,n){this._children[t]=n};Xe.prototype.removeChild=function(t){delete this._children[t]};Xe.prototype.getChild=function(t){return this._children[t]};Xe.prototype.hasChild=function(t){return t in this._children};Xe.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Xe.prototype.forEachChild=function(t){Ct(this._children,t)};Xe.prototype.forEachGetter=function(t){this._rawModule.getters&&Ct(this._rawModule.getters,t)};Xe.prototype.forEachAction=function(t){this._rawModule.actions&&Ct(this._rawModule.actions,t)};Xe.prototype.forEachMutation=function(t){this._rawModule.mutations&&Ct(this._rawModule.mutations,t)};Object.defineProperties(Xe.prototype,zf);var Nt=function(t){this.register([],t,!1)};Nt.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Nt.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,o){return n=n.getChild(o),r+(n.namespaced?o+"/":"")},"")};Nt.prototype.update=function(t){jf([],this.root,t)};Nt.prototype.register=function(t,n,r){var o=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&Wf(t,n);var a=new Xe(n,r);if(t.length===0)this.root=a;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],a)}n.modules&&Ct(n.modules,function(l,u){o.register(t.concat(u),l,r)})};Nt.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],o=n.getChild(r);if(!o){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}o.runtime&&n.removeChild(r)};Nt.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function jf(e,t,n){if(process.env.NODE_ENV!=="production"&&Wf(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}jf(e.concat(r),t.getChild(r),n.modules[r])}}var ad={assert:function(e){return typeof e=="function"},expected:"function"},Dy={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},sd={getters:ad,mutations:ad,actions:Dy};function Wf(e,t){Object.keys(sd).forEach(function(n){if(t[n]){var r=sd[n];Ct(t[n],function(o,a){Ye(r.assert(o),Py(e,n,a,o,r.expected))})}})}function Py(e,t,n,r,o){var a=t+" should be "+o+' but "'+t+"."+n+'"';return e.length>0&&(a+=' in module "'+e.join(".")+'"'),a+=" is "+JSON.stringify(r)+".",a}var He=function e(t){var n=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(Ye(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Ye(this instanceof e,"store must be called with the new operator."));var r=t.plugins;r===void 0&&(r=[]);var o=t.strict;o===void 0&&(o=!1);var a=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Nt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;var s=this,l=this,u=l.dispatch,d=l.commit;this.dispatch=function(h,m){return u.call(s,h,m)},this.commit=function(h,m,C){return d.call(s,h,m,C)},this.strict=o;var c=this._modules.root.state;Tn(this,c,[],this._modules.root),ja(this,c),r.forEach(function(f){return f(n)})},Ka={state:{configurable:!0}};He.prototype.install=function(t,n){t.provide(n||vy,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&Ly(t,this)};Ka.state.get=function(){return this._state.data};Ka.state.set=function(e){process.env.NODE_ENV!=="production"&&Ye(!1,"use store.replaceState() to explicit replace store state.")};He.prototype.commit=function(t,n,r){var o=this,a=cn(t,n,r),s=a.type,l=a.payload,u=a.options,d={type:s,payload:l},c=this._mutations[s];if(!c){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+s);return}this._withCommit(function(){c.forEach(function(h){h(l)})}),this._subscribers.slice().forEach(function(f){return f(d,o.state)}),process.env.NODE_ENV!=="production"&&u&&u.silent&&console.warn("[vuex] mutation type: "+s+". Silent option has been removed. Use the filter functionality in the vue-devtools")};He.prototype.dispatch=function(t,n){var r=this,o=cn(t,n),a=o.type,s=o.payload,l={type:a,payload:s},u=this._actions[a];if(!u){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+a);return}try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(l,r.state)})}catch(c){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(c))}var d=u.length>1?Promise.all(u.map(function(c){return c(s)})):u[0](s);return new Promise(function(c,f){d.then(function(h){try{r._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(l,r.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(m))}c(h)},function(h){try{r._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(l,r.state,h)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(m))}f(h)})})};He.prototype.subscribe=function(t,n){return Mf(t,this._subscribers,n)};He.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return Mf(r,this._actionSubscribers,n)};He.prototype.watch=function(t,n,r){var o=this;return process.env.NODE_ENV!=="production"&&Ye(typeof t=="function","store.watch only accepts a function."),i.watch(function(){return t(o.state,o.getters)},n,Object.assign({},r))};He.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};He.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(Ye(Array.isArray(t),"module path must be a string or an Array."),Ye(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,n),Tn(this,this.state,t,this._modules.get(t),r.preserveState),ja(this,this.state)};He.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ye(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var r=Wa(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),$f(this)};He.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ye(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};He.prototype.hotUpdate=function(t){this._modules.update(t),$f(this,!0)};He.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(He.prototype,Ka);var Ya=Yf(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!Xa(t)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),Kf(t).forEach(function(r){var o=r.key,a=r.val;n[o]=function(){var l=this.$store.state,u=this.$store.getters;if(e){var d=Xf(this.$store,"mapState",e);if(!d)return;l=d.context.state,u=d.context.getters}return typeof a=="function"?a.call(this,l,u):l[a]},n[o].vuex=!0}),n}),By=Yf(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!Xa(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),Kf(t).forEach(function(r){var o=r.key,a=r.val;a=e+a,n[o]=function(){if(!(e&&!Xf(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(a in this.$store.getters)){console.error("[vuex] unknown getter: "+a);return}return this.$store.getters[a]}},n[o].vuex=!0}),n});function Kf(e){return Xa(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function Xa(e){return Array.isArray(e)||xf(e)}function Yf(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function Xf(e,t,n){var r=e._modulesNamespaceMap[n];return process.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+t+"(): "+n),r}const Vy={class:"icon rounded"},xy={class:"node-content"},My={class:"d-flex node-title"},$y={class:"text-truncate task-title"},qy={key:0,class:"d-flex"},Fy={class:"text-white top-button-div"},Uy={components:{ArrowExpand:Ln,InformationOutline:Vf,OpenInNew:za,Tooltip:le},emits:[H.EXPAND,H.OPEN_LINK,H.SHOW_LOGS,H.MOUSE_OVER,H.MOUSE_LEAVE,H.ADD_ERROR,H.EDIT,H.DELETE,H.ADD_TASK,H.SHOW_DESCRIPTION],inheritAttrs:!1,props:{id:{type:String,default:void 0},type:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},state:{type:String,default:void 0},data:{type:Object,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{mouseover(){this.$emit(H.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(H.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},computed:{Utils(){return ge},...Ya("execution",["execution"]),borderColor(){const e=this.data.color?this.data.color==="default"?null:this.data.color:null;return e||(this.expandable?"blue":null)},EVENTS(){return H},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null},trimmedId(){return ge.afterLastDot(this.id)},taskIconBg(){return["default","danger"].includes(this.data.color)?"":this.data.color},stateColor(){switch(this.state){case"RUNNING":return"primary";case"SUCCESS":return"success";case"WARNING":return"warning";case"FAILED":return"danger";default:return null}},classes(){var e,t,n,r;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:((e=this.data.node.task)==null?void 0:e.disabled)||((r=(n=(t=this.data.parent)==null?void 0:t.taskNode)==null?void 0:n.task)==null?void 0:r.disabled),[this.$attrs.class]:!0}},cls(){var e;if(this.data.node.triggerDeclaration)return this.data.node.triggerDeclaration.type;if((e=this.data.node)!=null&&e.task)return this.data.node.task.type},hoverTooltip(){if(this.data.node.type.endsWith("SubflowGraphTask")){const e=this.data.node.task.subflowId??this.data.node.task;return e.namespace+" "+e.flowId}return this.trimmedId}}},Hy=Object.assign(Uy,{__name:"BasicNode",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([t.classes,"node-wrapper rounded-3 border"]),onMouseover:n[3]||(n[3]=(...r)=>t.mouseover&&t.mouseover(...r)),onMouseleave:n[4]||(n[4]=(...r)=>t.mouseleave&&t.mouseleave(...r))},[e.state?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["status-div",[`bg-${t.stateColor}`]])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("div",Vy,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.iconComponent||Ga),{cls:t.cls,class:i.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),i.createElementVNode("div",xy,[i.createElementVNode("div",My,[i.createElementVNode("div",$y,[i.createVNode(le,{title:t.hoverTooltip},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(i.openBlock(),i.createElementBlock("span",qy,[i.createVNode(le,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:i.withCtx(()=>[i.createVNode(Vf,{onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).SHOW_DESCRIPTION,{id:t.trimmedId,description:t.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):i.createCommentVNode("",!0)]),i.renderSlot(t.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",Fy,[i.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).OPEN_LINK,{link:e.data.link}))},[i.createVNode(le,{title:t.$t("open")},{default:i.withCtx(()=>[i.createVNode(za,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),t.expandable?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[2]||(n[2]=r=>t.$emit(i.unref(H).EXPAND))},[i.createVNode(le,{title:t.$t("expand")},{default:i.withCtx(()=>[i.createVNode(Ln,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),Zf=K(Hy,[["__scopeId","data-v-d71af44b"]]),Gy=["innerHTML"],zy=i.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;i.watch(()=>t.histories,(m,C)=>{C[0].date!==m[0].date&&l()});const n=i.ref(""),r=i.ref();i.onMounted(()=>{l()});const o=i.computed(()=>{var m;return((m=t.histories)==null?void 0:m.length)&&new Date(t.histories[0].date.toString()).getTime()}),a=i.computed(()=>t.histories[t.histories.length-1]),s=i.computed(()=>t.histories.filter(m=>m.date.isValid()&&m.date&&m.state));function l(){r.value||(r.value=setInterval(()=>{f(),t.histories&&!Ce.isRunning(a.value.state)&&u()},100))}function u(){r.value&&(clearInterval(r.value),r.value=void 0)}function d(){return c()-o.value}function c(){return!t.histories||Ce.isRunning(a.value.state)?+new Date:new Date(a.value.date.toString()).getTime()}function f(){n.value=s.value.length===0?" ":ge.humanDuration(d()/1e3)}function h(m){return"ks-duration-tt-square-"+m.toLowerCase()}return i.onBeforeUnmount(()=>{u()}),(m,C)=>(i.openBlock(),i.createBlock(le,{key:a.value.date.toString()},{content:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(E,_)=>(i.openBlock(),i.createElementBlock("span",{key:"tt-"+_,class:"ks-duration-tt"},[i.createElementVNode("span",{class:i.normalizeClass(["ks-duration-tt-square",h(E.state)])},null,2),i.createElementVNode("strong",null,i.toDisplayString(E.state)+": ",1),i.createTextVNode(i.toDisplayString(i.unref(ge).dateFilter(E.date.toString(),"iso"))+" ",1),C[0]||(C[0]=i.createElementVNode("br",null,null,-1))]))),128))]),default:i.withCtx(()=>[i.createElementVNode("span",{innerHTML:n.value},null,8,Gy)]),_:1}))}}),jy={class:"btn-group content rounded-1 content-children text-truncate"},Wy={key:0,class:"taskRunCount"},Ky={key:1},Yy={key:2},Xy=i.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,n=i.computed(()=>{var s;return(s=t.execution)!=null&&s.taskRunList?t.execution.taskRunList:[]}),r=i.computed(()=>n.value.filter(s=>s.taskId===ge.afterLastDot(t.uid??""))),o=i.computed(()=>{if(!r.value)return null;if(r.value.length===1)return r.value[0].state.current;const s=r.value.map(d=>d.state.current),l=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return s.map(d=>{const c=l.indexOf(d[1]);return l[c]=void 0,[c,d]}).sort().map(d=>d[1])[0]}),a=i.computed(()=>{if(!r.value)return;const s=Math.max(...r.value.filter(u=>u.state.histories&&u.state.histories.length>0).map(u=>new Date(u.state.histories[u.state.histories.length-1].date).getTime())),l=Math.max(...r.value.map(u=>$t.duration(u.state.duration).asMilliseconds()/1e3,0));return[{date:$t(s).subtract(l,"second"),state:"CREATED"},{date:$t(s),state:o.value}]});return(s,l)=>(i.openBlock(),i.createElementBlock("div",jy,[r.value.length>0?(i.openBlock(),i.createElementBlock("span",Wy,i.toDisplayString(r.value.length)+" task runs",1)):i.createCommentVNode("",!0),r.value.length>0?(i.openBlock(),i.createElementBlock("span",Ky," | ")):i.createCommentVNode("",!0),a.value?(i.openBlock(),i.createElementBlock("span",Yy,[i.createVNode(zy,{histories:a.value},null,8,["histories"])])):i.createCommentVNode("",!0)]))}}),Jf=K(Xy,[["__scopeId","data-v-b7801302"]]),Zy={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jy=["aria-hidden","aria-label"],Qy=["fill","width","height"],eb={d:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"},tb={key:0};function nb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pencil-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",eb,[n.title?(i.openBlock(),i.createElementBlock("title",tb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Qy))],16,Jy)}const In=K(Zy,[["render",nb]]),rb={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ib=["aria-hidden","aria-label"],ob=["fill","width","height"],ab={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},sb={key:0};function lb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon delete-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ab,[n.title?(i.openBlock(),i.createElementBlock("title",sb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ob))],16,ib)}const On=K(rb,[["render",lb]]),ub={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cb=["aria-hidden","aria-label"],db=["fill","width","height"],fb={d:"M15.5,12C18,12 20,14 20,16.5C20,17.38 19.75,18.21 19.31,18.9L22.39,22L21,23.39L17.88,20.32C17.19,20.75 16.37,21 15.5,21C13,21 11,19 11,16.5C11,14 13,12 15.5,12M15.5,14A2.5,2.5 0 0,0 13,16.5A2.5,2.5 0 0,0 15.5,19A2.5,2.5 0 0,0 18,16.5A2.5,2.5 0 0,0 15.5,14M7,15V17H9C9.14,18.55 9.8,19.94 10.81,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19A2,2 0 0,1 21,5V13.03C19.85,11.21 17.82,10 15.5,10C14.23,10 13.04,10.37 12.04,11H7V13H10C9.64,13.6 9.34,14.28 9.17,15H7M17,9V7H7V9H17Z"},hb={key:0};function mb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",fb,[n.title?(i.openBlock(),i.createElementBlock("title",hb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,db))],16,cb)}const Qf=K(ub,[["render",mb]]),pb={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gb=["aria-hidden","aria-label"],vb=["fill","width","height"],_b={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Eb={key:0};function yb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",_b,[n.title?(i.openBlock(),i.createElementBlock("title",Eb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,vb))],16,gb)}const eh=K(pb,[["render",yb]]),bb={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},kb=["aria-hidden","aria-label"],Cb=["fill","width","height"],Nb={d:"M23,18V17.5A2.5,2.5 0 0,0 20.5,15A2.5,2.5 0 0,0 18,17.5V18A1,1 0 0,0 17,19V23A1,1 0 0,0 18,24H23A1,1 0 0,0 24,23V19A1,1 0 0,0 23,18M22,18H19V17.5A1.5,1.5 0 0,1 20.5,16A1.5,1.5 0 0,1 22,17.5V18M23,12L2,21V14L17,12L2,10V3L23,12Z"},wb={key:0};function Sb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon send-lock-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Nb,[n.title?(i.openBlock(),i.createElementBlock("title",wb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Cb))],16,kb)}const th=K(bb,[["render",Sb]]),Lb={name:"Task",components:{Pencil:In,Delete:On,ExecutionInformations:Jf,Handle:te.Handle,TextBoxSearch:Qf,AlertOutline:eh,Tooltip:le,SendLock:th},inheritAttrs:!1,computed:{...Ya("execution",["execution"]),...By("execution",["subflowsExecutions"]),SECTIONS(){return nt},EVENTS(){return H},color(){return this.data.color??"primary"},taskId(){return ge.afterLastDot(this.id)},taskRunList(){return this.taskExecution&&this.taskExecution.taskRunList?this.taskExecution.taskRunList:[]},taskExecution(){var t,n;const e=this.data.executionId;if(e)return e===((t=this.execution)==null?void 0:t.id)?this.execution:(n=Object.values(this.subflowsExecutions).filter(r=>r.id===this.data.executionId))==null?void 0:n[0]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===ge.afterLastDot(this.data.node.uid))},state(){if(!this.taskRuns)return null;if(this.taskRuns.length===1)return this.taskRuns[0].state.current;const e=this.taskRuns.map(r=>r.state.current),t=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return e.map(r=>{const o=t.indexOf(r[1]);return t[o]=void 0,[o,r]}).sort().map(r=>r[1])[0]},classes(){return{"execution-no-taskrun":this.taskExecution&&this.taskRuns&&this.taskRuns.length===0}},expandData(){return{id:this.id,type:this.data.node.task.type}},dataWithLink(){var e,t,n,r;if(this.data.node.type.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const o=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:o.namespace,id:o.flowId,executionId:(r=(n=(t=(e=this.taskExecution)==null?void 0:e.taskRunList.filter(a=>{var s;return a.taskId===this.data.node.task.id&&((s=a.outputs)==null?void 0:s.executionId)}))==null?void 0:t[0])==null?void 0:n.outputs)==null?void 0:r.executionId}}}return this.data}},emits:[H.EXPAND,H.OPEN_LINK,H.SHOW_LOGS,H.MOUSE_OVER,H.MOUSE_LEAVE,H.ADD_ERROR,H.EDIT,H.DELETE,H.ADD_TASK,H.SHOW_CONDITION],props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Tb=Object.assign(Lb,{setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createVNode(Zf,{id:e.id,data:t.dataWithLink,state:t.state,class:i.normalizeClass(t.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[5]||(n[5]=r=>t.forwardEvent(i.unref(H).SHOW_DESCRIPTION,r)),onExpand:n[6]||(n[6]=r=>t.forwardEvent(i.unref(H).EXPAND,t.expandData)),onOpenLink:n[7]||(n[7]=r=>t.forwardEvent(i.unref(H).OPEN_LINK,r)),onMouseover:n[8]||(n[8]=r=>t.forwardEvent(i.unref(H).MOUSE_OVER,r)),onMouseleave:n[9]||(n[9]=r=>t.forwardEvent(i.unref(H).MOUSE_LEAVE))},{content:i.withCtx(()=>[t.taskExecution?(i.openBlock(),i.createBlock(Jf,{key:0,execution:t.taskExecution,task:e.data.node.task,color:t.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):i.createCommentVNode("",!0)]),"badge-button-before":i.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",["bg-warning"]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("show task condition")},{default:i.withCtx(()=>[i.createVNode(th,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):i.createCommentVNode("",!0),t.taskExecution?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[i.createVNode(le,{title:t.$t("show task logs")},{default:i.withCtx(()=>[i.createVNode(Qf,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[2]||(n[2]=r=>t.$emit(i.unref(H).ADD_ERROR,{task:e.data.node.task}))},[i.createVNode(le,{title:t.$t("add error handler")},{default:i.withCtx(()=>[i.createVNode(eh,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(i.openBlock(),i.createElementBlock("span",{key:3,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[3]||(n[3]=r=>t.$emit(i.unref(H).EDIT,{task:e.data.node.task,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("edit")},{default:i.withCtx(()=>[i.createVNode(In,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(i.openBlock(),i.createElementBlock("span",{key:4,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[4]||(n[4]=r=>t.$emit(i.unref(H).DELETE,{id:t.taskId,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("delete")},{default:i.withCtx(()=>[i.createVNode(On,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ib={name:"Task",inheritAttrs:!1,computed:{...Ya("execution",["execution"]),SECTIONS(){return nt},EVENTS(){return H},color(){return this.data.color??"primary"},formattedData(){var e,t,n,r;return{...this.data,unused:((t=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:t.disabled)||((r=(n=this.data.node)==null?void 0:n.trigger)==null?void 0:r.disabled)}},triggerId(){return ge.afterLastDot(this.id)}},emits:[H.DELETE,H.EDIT,H.SHOW_DESCRIPTION],components:{Delete:On,Pencil:In,Handle:te.Handle,Tooltip:le},props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Ob=Object.assign(Ib,{setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createVNode(Zf,{id:e.id,data:t.formattedData,color:t.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[2]||(n[2]=r=>t.forwardEvent(i.unref(H).SHOW_DESCRIPTION,r)),onExpand:n[3]||(n[3]=r=>t.forwardEvent(i.unref(H).EXPAND,{id:e.id}))},i.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:i.withCtx(()=>[t.execution?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).EDIT,{task:e.data.node.triggerDeclaration,section:i.unref(nt).TRIGGERS}))},[i.createVNode(le,{title:t.$t("edit")},{default:i.withCtx(()=>[i.createVNode(In,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),t.execution?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).DELETE,{id:t.triggerId,section:i.unref(nt).TRIGGERS}))},[i.createVNode(le,{title:t.$t("delete")},{default:i.withCtx(()=>[i.createVNode(On,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ab={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rb=["aria-hidden","aria-label"],Db=["fill","width","height"],Pb={d:"M11 15H6L13 1V9H18L11 23V15Z"},Bb={key:0};function Vb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Pb,[n.title?(i.openBlock(),i.createElementBlock("title",Bb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Db))],16,Rb)}const xb=K(Ab,[["render",Vb]]),Mb={class:"collapsed-cluster-node d-flex"},$b={class:"node-text"},qb={class:"text-white top-button-div"},Fb={components:{Tooltip:le,Handle:te.Handle,ArrowExpand:Ln,LightningBolt:xb},inheritAttrs:!1,props:{id:{type:String,default:void 0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},data:{type:Object,required:!0}},data(){return{filter:void 0,isOpen:!1}},computed:{EVENTS(){return H},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},Ub=Object.assign(Fb,{__name:"CollapsedClusterNode",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createElementVNode("div",Mb,[i.createElementVNode("span",$b,[e.data.iconComponent?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.data.iconComponent),{key:0,class:i.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(i.unref(ge).afterLastDot(e.id)),1)]),i.createElementVNode("div",qb,[i.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),t.expandable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).EXPAND,{id:e.id}))},[i.createVNode(le,{title:t.$t("expand")},{default:i.withCtx(()=>[i.createVNode(Ln,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Hb=K(Ub,[["__scopeId","data-v-89413b39"]]),Gb={name:"SplitCellsVerticalIcon",emits:["click"]},zb={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",zb,t[0]||(t[0]=[i.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[i.createElementVNode("path",{d:"M1.97852 2.63349C1.97852 2.26366 2.27832 1.96387 2.64814 1.96387L13.3621 1.96387C13.7319 1.96387 14.0317 2.26366 14.0317 2.63349L14.0317 13.3475C14.0317 13.7173 13.7319 14.0171 13.3621 14.0171L2.64814 14.0171C2.27832 14.0171 1.97852 13.7173 1.97852 13.3475L1.97852 2.63349ZM3.31776 8.6601L3.31776 12.6778L12.6925 12.6778L12.6925 8.6601L10.014 8.6601L10.014 7.32085L12.6925 7.32085L12.6925 3.30311L3.31776 3.30311L3.31776 7.32086L5.99626 7.32085L5.99626 8.6601L3.31776 8.6601ZM5.99626 5.98161L8.00513 3.97274L10.014 5.98161L8.67475 5.98161L8.67475 9.99935L10.014 9.99935L8.00513 12.0082L5.99626 9.99935L7.3355 9.99935L7.3355 5.98161L5.99626 5.98161Z",fill:"currentColor"})],-1),i.createElementVNode("defs",null,[i.createElementVNode("clipPath",{id:"clip0_1111_7266"},[i.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)]))}const Wb=K(Gb,[["render",jb],["__scopeId","data-v-084c51e6"]]),Kb={name:"SplitCellsHorizontalIcon",emits:["click"]},Yb={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",Yb,t[0]||(t[0]=[i.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[i.createElementVNode("path",{d:"M13.367 1.979C13.7368 1.979 14.0366 2.27881 14.0366 2.64863V13.3626C14.0366 13.7324 13.7368 14.0322 13.367 14.0322H2.65302C2.2832 14.0322 1.9834 13.7324 1.9834 13.3626V2.64863C1.9834 2.27881 2.2832 1.979 2.65302 1.979H13.367ZM7.34039 3.31825H3.32265V12.693H7.34039V10.0145H8.67963V12.693H12.6974V3.31825H8.67963V5.99675H7.34039V3.31825ZM10.0189 5.99675L12.0278 8.00562L10.0189 10.0145V8.67524H6.00114V10.0145L3.99227 8.00562L6.00114 5.99675V7.33599H10.0189V5.99675Z",fill:"currentColor"})],-1),i.createElementVNode("defs",null,[i.createElementVNode("clipPath",{id:"clip0_796_3996"},[i.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)]))}const Zb=K(Kb,[["render",Xb],["__scopeId","data-v-c77c1469"]]),Jb={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qb=["aria-hidden","aria-label"],e0=["fill","width","height"],t0={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},n0={key:0};function r0(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon download-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",t0,[n.title?(i.openBlock(),i.createElementBlock("title",n0,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,e0))],16,Qb)}const i0=K(Jb,[["render",r0]]);function o0(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const a0=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function rt(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function dn(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function s0(e){const t=dn(e,"border-left-width"),n=dn(e,"border-right-width");return e.clientWidth+t+n}function l0(e){const t=dn(e,"border-top-width"),n=dn(e,"border-bottom-width");return e.clientHeight+t+n}function nh(e,t={}){const n=t.width||s0(e),r=t.height||l0(e);return{width:n,height:r}}function u0(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const $e=16384;function c0(e){(e.width>$e||e.height>$e)&&(e.width>$e&&e.height>$e?e.width>e.height?(e.height*=$e/e.width,e.width=$e):(e.width*=$e/e.height,e.height=$e):e.width>$e?(e.height*=$e/e.width,e.width=$e):(e.width*=$e/e.height,e.height=$e))}function fn(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function d0(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function f0(e,t,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),o.appendChild(a),a.appendChild(e),d0(o)}const Be=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Be(n,t)};function h0(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function m0(e){return rt(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function p0(e,t,n){const r=`.${e}:${t}`,o=n.cssText?h0(n):m0(n);return document.createTextNode(`${r}{${o}}`)}function ld(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(o===""||o==="none")return;const a=a0();try{t.className=`${t.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(p0(a,n,r)),t.appendChild(s)}function g0(e,t){ld(e,t,":before"),ld(e,t,":after")}const ud="application/font-woff",cd="image/jpeg",v0={woff:ud,woff2:ud,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:cd,jpeg:cd,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function _0(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Za(e){const t=_0(e).toLowerCase();return v0[t]||""}function E0(e){return e.split(/,/)[1]}function ka(e){return e.search(/^(data:)/)!==-1}function y0(e,t){return`data:${t};base64,${e}`}async function rh(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((a,s)=>{const l=new FileReader;l.onerror=s,l.onloadend=()=>{try{a(n({res:r,result:l.result}))}catch(u){s(u)}},l.readAsDataURL(o)})}const oa={};function b0(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function Ja(e,t,n){const r=b0(e,t,n.includeQueryParams);if(oa[r]!=null)return oa[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const a=await rh(e,n.fetchRequestInit,({res:s,result:l})=>(t||(t=s.headers.get("Content-Type")||""),E0(l)));o=y0(a,t)}catch(a){o=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;a&&(s=typeof a=="string"?a:a.message),s&&console.warn(s)}return oa[r]=o,o}async function k0(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):fn(t)}async function C0(e,t){if(e.currentSrc){const a=document.createElement("canvas"),s=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,s==null||s.drawImage(e,0,0,a.width,a.height);const l=a.toDataURL();return fn(l)}const n=e.poster,r=Za(n),o=await Ja(n,r,t);return fn(o)}async function N0(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await An(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function w0(e,t){return Be(e,HTMLCanvasElement)?k0(e):Be(e,HTMLVideoElement)?C0(e,t):Be(e,HTMLIFrameElement)?N0(e):e.cloneNode(!1)}const S0=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function L0(e,t,n){var r,o;let a=[];return S0(e)&&e.assignedNodes?a=rt(e.assignedNodes()):Be(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=rt(e.contentDocument.body.childNodes):a=rt(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),a.length===0||Be(e,HTMLVideoElement)||await a.reduce((s,l)=>s.then(()=>An(l,n)).then(u=>{u&&t.appendChild(u)}),Promise.resolve()),t}function T0(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):rt(r).forEach(o=>{let a=r.getPropertyValue(o);o==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Be(e,HTMLIFrameElement)&&o==="display"&&a==="inline"&&(a="block"),o==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(o,a,r.getPropertyPriority(o))})}function I0(e,t){Be(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Be(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function O0(e,t){if(Be(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function A0(e,t){return Be(t,Element)&&(T0(e,t),g0(e,t),I0(e,t),O0(e,t)),t}async function R0(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;a<n.length;a++){const l=n[a].getAttribute("xlink:href");if(l){const u=e.querySelector(l),d=document.querySelector(l);!u&&d&&!r[l]&&(r[l]=await An(d,t,!0))}}const o=Object.values(r);if(o.length){const a="http://www.w3.org/1999/xhtml",s=document.createElementNS(a,"svg");s.setAttribute("xmlns",a),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const l=document.createElementNS(a,"defs");s.appendChild(l);for(let u=0;u<o.length;u++)l.appendChild(o[u]);e.appendChild(s)}return e}async function An(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>w0(r,t)).then(r=>L0(e,r,t)).then(r=>A0(e,r)).then(r=>R0(r,t))}const ih=/url\((['"]?)([^'"]+?)\1\)/g,D0=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,P0=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function B0(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function V0(e){const t=[];return e.replace(ih,(n,r,o)=>(t.push(o),n)),t.filter(n=>!ka(n))}async function x0(e,t,n,r,o){try{const a=n?o0(t,n):t,s=Za(t);let l;return o||(l=await Ja(a,s,r)),e.replace(B0(t),`$1${l}$3`)}catch{}return e}function M0(e,{preferredFontFormat:t}){return t?e.replace(P0,n=>{for(;;){const[r,,o]=D0.exec(n)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function oh(e){return e.search(ih)!==-1}async function ah(e,t,n){if(!oh(e))return e;const r=M0(e,n);return V0(r).reduce((a,s)=>a.then(l=>x0(l,s,t,n)),Promise.resolve(r))}async function Jt(e,t,n){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const a=await ah(o,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function $0(e,t){await Jt("background",e,t)||await Jt("background-image",e,t),await Jt("mask",e,t)||await Jt("mask-image",e,t)}async function q0(e,t){const n=Be(e,HTMLImageElement);if(!(n&&!ka(e.src))&&!(Be(e,SVGImageElement)&&!ka(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,o=await Ja(r,Za(r),t);await new Promise((a,s)=>{e.onload=a,e.onerror=s;const l=e;l.decode&&(l.decode=a),l.loading==="lazy"&&(l.loading="eager"),n?(e.srcset="",e.src=o):e.href.baseVal=o})}async function F0(e,t){const r=rt(e.childNodes).map(o=>sh(o,t));await Promise.all(r).then(()=>e)}async function sh(e,t){Be(e,Element)&&(await $0(e,t),await q0(e,t),await F0(e,t))}function U0(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{n[o]=r[o]}),e}const dd={};async function fd(e){let t=dd[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},dd[e]=t,t}async function hd(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let l=s.replace(r,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),rh(l,t.fetchRequestInit,({result:u})=>(n=n.replace(s,`url(${u})`),[s,u]))});return Promise.all(a).then(()=>n)}function md(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const u=o.exec(r);if(u===null)break;t.push(u[0])}r=r.replace(o,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(s,"gi");for(;;){let u=a.exec(r);if(u===null){if(u=l.exec(r),u===null)break;a.lastIndex=l.lastIndex}else l.lastIndex=a.lastIndex;t.push(u[0])}return t}async function H0(e,t){const n=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{rt(o.cssRules||[]).forEach((a,s)=>{if(a.type===CSSRule.IMPORT_RULE){let l=s+1;const u=a.href,d=fd(u).then(c=>hd(c,t)).then(c=>md(c).forEach(f=>{try{o.insertRule(f,f.startsWith("@import")?l+=1:o.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:f,error:h})}})).catch(c=>{console.error("Error loading remote css",c.toString())});r.push(d)}})}catch(a){const s=e.find(l=>l.href==null)||document.styleSheets[0];o.href!=null&&r.push(fd(o.href).then(l=>hd(l,t)).then(l=>md(l).forEach(u=>{s.insertRule(u,o.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{rt(o.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${o.href}`,a)}}),n))}function G0(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>oh(t.style.getPropertyValue("src")))}async function z0(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=rt(e.ownerDocument.styleSheets),r=await H0(n,t);return G0(r)}async function j0(e,t){const n=await z0(e,t);return(await Promise.all(n.map(o=>{const a=o.parentStyleSheet?o.parentStyleSheet.href:null;return ah(o.cssText,a,t)}))).join(`
|
|
29
|
-
`)}async function W0(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await j0(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function K0(e,t={}){const{width:n,height:r}=nh(e,t),o=await An(e,t,!0);return await W0(o,t),await sh(o,t),U0(o,t),await f0(o,n,r)}async function lh(e,t={}){const{width:n,height:r}=nh(e,t),o=await K0(e,t),a=await fn(o),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||u0(),d=t.canvasWidth||n,c=t.canvasHeight||r;return s.width=d*u,s.height=c*u,t.skipAutoScale||c0(s),s.style.width=`${d}`,s.style.height=`${c}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,s.width,s.height)),l.drawImage(a,0,0,s.width,s.height),s}async function Y0(e,t={}){return(await lh(e,t)).toDataURL()}async function X0(e,t={}){return(await lh(e,t)).toDataURL("image/jpeg",t.quality||1)}function Z0(){const e=i.ref(""),t=i.ref("png"),n=i.ref();async function r(l,u={}){let d;const c=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":d=await o(l,u);break;case"png":d=await a(l,u);break;default:d=await a(l,u);break}return u.shouldDownload&&c!==""&&s(c),d}function o(l,u={quality:.95}){return n.value=null,X0(l,u).then(d=>(e.value=d,t.value="jpeg",d)).catch(d=>{throw d.value=d,new Error(d)})}function a(l,u={quality:.95}){return n.value=null,Y0(l,u).then(d=>(e.value=d,t.value="png",d)).catch(d=>{throw d.value=d,new Error(d)})}function s(l){const u=document.createElement("a");u.download=`${l}.${t.value}`,u.href=e.value,u.click()}return{capture:r,download:s,dataUrl:e,error:n}}const J0={key:1,class:"exporting"},Q0=i.defineComponent({__name:"Topology",props:{id:{type:String,required:!0},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{type:String,default:void 0,required:!0},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{type:Object,required:!0},flowId:{type:String,required:!1,default:void 0},namespace:{type:String,required:!1,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},emits:[H.EDIT,H.DELETE,H.OPEN_LINK,H.SHOW_LOGS,H.SHOW_DESCRIPTION,"on-add-flowable-error",H.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",H.SHOW_CONDITION],setup(e,{emit:t}){const n=e,r=i.ref(!1),o=i.ref(),{getNodes:a,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:d,setElements:c,vueFlowRef:f}=te.useVueFlow(n.id),h=i.ref({}),m=i.ref([]),C=i.ref(new Set),E=i.ref([]),{capture:_}=Z0(),p=t;i.onMounted(()=>{v()}),i.watch(()=>n.flowGraph,()=>{v()}),i.watch(()=>n.isHorizontal,()=>{v()});const v=()=>{tn.cleanGraph(n.id),i.nextTick(()=>{p("loading",!0);const M=C.value;C.value=new Set,m.value=[],h.value={},M.forEach(J=>T(ct+J,!1,!1));const D=tn.generateGraph(n.id,n.flowId,n.namespace,n.flowGraph,n.source,m.value,n.isHorizontal,h.value,C.value,E.value,n.isReadOnly,n.isAllowedEdit,n.enableSubflowInteraction);D&&(c(D),d(),p("loading",!1))})},y=M=>{r.value||tn.linkedElements(n.id,M.uid).forEach(D=>{(D==null?void 0:D.type)==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-gray-900")},D.class="rounded-3")})},g=()=>{k()},k=()=>{a.value.filter(M=>M.type==="task"||M.type==="trigger").forEach(M=>{M.style={...M.style,opacity:"1",outline:"none"},M.class=""})};l(M=>{r.value=!0,k(),M.node.style={...M.node.style,zIndex:1976},o.value=M.node.position}),u(M=>{if(r.value=!1,M.intersections&&b(M.intersections,M.node)===null){const D=M.node,J=M.intersections.find(W=>W.type==="task");if(J)try{n.source&&p("swapped-task",{newSource:L.swapBlocks({source:n.source,section:"tasks",key1:ge.afterLastDot(D.id)??"",key2:ge.afterLastDot(J.id)??""}),swappedTasks:[D.id,J.id]})}catch(W){p("message",{variant:"error",title:"cannot swap tasks",message:`${W.message}, ${W.messageOptions}`}),D.position=o.value}else D.position=o.value}else M.node.position=o.value;k(),M.node.style={...M.node.style,zIndex:5},o.value=null});const N=i.computed(()=>{var M;return(M=n.flowGraph)!=null&&M.clusters?n.flowGraph.clusters.filter(D=>D.cluster.type.endsWith("SubflowGraphCluster")).map(D=>D.cluster.taskNode.uid+"."):[]});s(M=>{k(),a.value.filter(D=>D.id!==M.node.id).forEach(D=>{var J;D.type==="trigger"||D.type==="task"&&(D.id.startsWith(M.node.id+".")||M.node.id.startsWith(D.id+"."))||(J=N==null?void 0:N.value)!=null&&J.some(W=>D.id.startsWith(W))?D.style={...D.style,opacity:"0.5"}:D.style={...D.style,opacity:"1"}}),M.intersections&&!b(M.intersections,M.node)&&M.intersections.filter(D=>D.type==="task").length===1&&(M.intersections.forEach(D=>{D.type==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-primary")},D.class="rounded-3")}),M.node.style={...M.node.style,outline:"0.5px solid "+Fe("--bs-primary")},M.node.class="rounded-3")});const b=(M,D)=>{const J=M.filter(W=>W.type==="task").map(W=>ge.afterLastDot(W.id));if(J.length>1)return"toomuchtaskerror";try{if(J.length===1&&n.source&&L.isParentChildrenRelation({source:n.source,sections:["tasks","triggers"],key1:ge.afterLastDot(J[0])??"",key2:ge.afterLastDot(D.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return M.filter(W=>W.type==="trigger").length>0?"triggererror":null},T=(M,D,J=!1)=>{const W=n.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(M)),F=M.replace(ct,"");C.value.add(F),m.value=m.value.concat(W.nodes.filter(ne=>ne!==F||J)),m.value=m.value.concat([W.cluster.uid]),h.value={...h.value,[W.cluster.uid]:F,[W.start]:F,[W.end]:F};for(let ne of W.nodes)n.flowGraph.clusters.map(me=>me.cluster.uid).includes(ne)&&T(ne,!1,!0);D&&v()},A=M=>{if(["io.kestra.core.tasks.flows.Flow","io.kestra.core.tasks.flows.Subflow","io.kestra.plugin.core.flow.Subflow","io.kestra.core.tasks.flows.ForEachItem$ForEachItemExecutable","io.kestra.plugin.core.flow.ForEachItem$ForEachItemExecutable"].includes(M.type)&&!n.expandedSubflows.includes(M.id)){p("expand-subflow",[...n.expandedSubflows,M.id]);return}h.value={},m.value=[],E.value=[],C.value.delete(M.id),C.value.forEach(J=>T(J,!1,!1)),v()},R=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,U=i.ref(!0),V=i.ref(!1),j=()=>V.value=!V.value;function Z(M){if(!f.value){console.warn("Flow not found");return}U.value=!1,_(f.value,{type:M,shouldDownload:!0}).then(()=>U.value=!0).finally(()=>V.value=!1)}return(M,D)=>(i.openBlock(),i.createBlock(i.unref(te.VueFlow),{id:e.id,"default-marker-color":i.unref(Fe)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":i.withCtx(J=>[i.createVNode(BE,i.mergeProps(J,{onCollapse:D[0]||(D[0]=W=>T(W,!0))}),null,16)]),"node-dot":i.withCtx(J=>[i.createVNode(GE,i.normalizeProps(i.guardReactiveProps(J)),null,16)]),"node-task":i.withCtx(J=>[i.createVNode(Tb,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,onEdit:D[1]||(D[1]=W=>p(i.unref(H).EDIT,W)),onDelete:D[2]||(D[2]=W=>p(i.unref(H).DELETE,W)),onExpand:D[3]||(D[3]=W=>A(W)),onOpenLink:D[4]||(D[4]=W=>p(i.unref(H).OPEN_LINK,W)),onShowLogs:D[5]||(D[5]=W=>p(i.unref(H).SHOW_LOGS,W)),onShowDescription:D[6]||(D[6]=W=>p(i.unref(H).SHOW_DESCRIPTION,W)),onShowCondition:D[7]||(D[7]=W=>p(i.unref(H).SHOW_CONDITION,W)),onMouseover:D[8]||(D[8]=W=>y(W)),onMouseleave:D[9]||(D[9]=W=>g()),onAddError:D[10]||(D[10]=W=>p("on-add-flowable-error",W)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":i.withCtx(J=>[i.createVNode(Ob,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:D[11]||(D[11]=W=>p(i.unref(H).DELETE,W)),onEdit:D[12]||(D[12]=W=>p(i.unref(H).EDIT,W)),onShowDescription:D[13]||(D[13]=W=>p(i.unref(H).SHOW_DESCRIPTION,W))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":i.withCtx(J=>[i.createVNode(Hb,i.mergeProps(J,{onExpand:D[14]||(D[14]=W=>A(W))}),null,16)]),"edge-edge":i.withCtx(J=>[i.createVNode(iy,i.mergeProps(J,{"yaml-source":e.source,onAddTask:D[15]||(D[15]=W=>p(i.unref(H).ADD_TASK,W)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:i.withCtx(()=>[i.createVNode(i.unref(NE),{"pattern-color":R?i.unref(Fe)("--bs-grey-500"):i.unref(Fe)("--bs-grey-300")},null,8,["pattern-color"]),U.value?(i.openBlock(),i.createBlock(i.unref(Dn.Controls),{key:0,"show-interactive":!1},{default:i.withCtx(()=>[e.toggleOrientationButton?(i.openBlock(),i.createBlock(i.unref(Dn.ControlButton),{key:0,onClick:D[16]||(D[16]=J=>p("toggle-orientation",J))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.isHorizontal?Zb:Wb)))]),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(Dn.ControlButton),{onClick:j},{default:i.withCtx(()=>[i.createVNode(i0)]),_:1}),V.value?(i.openBlock(),i.createElementBlock("ul",J0,[i.createElementVNode("li",{onClick:D[17]||(D[17]=J=>Z("jpeg")),class:"item"}," Export as .JPEG "),i.createElementVNode("li",{onClick:D[18]||(D[18]=J=>Z("png")),class:"item"}," Export as .PNG ")])):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),ek=K(Q0,[["__scopeId","data-v-ecaa6943"]]),tk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nk=["aria-hidden","aria-label"],rk=["fill","width","height"],ik={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},ok={key:0};function ak(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ik,[n.title?(i.openBlock(),i.createElementBlock("title",ok,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,rk))],16,nk)}const sk=K(tk,[["render",ak]]),lk={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uk=["aria-hidden","aria-label"],ck=["fill","width","height"],dk={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},fk={key:0};function hk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon content-copy-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",dk,[n.title?(i.openBlock(),i.createElementBlock("title",fk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ck))],16,uk)}const mk=K(lk,[["render",hk]]),pk={key:0,class:"language"},gk=["innerHTML"],vk=i.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(e){const t={ContentCopy:i.shallowRef(mk),Check:i.shallowRef(sk)},n=e,r=i.ref(!1),o=i.ref(),a=i.shallowRef(t.ContentCopy.value),s=i.ref(),l=i.ref(),u=i.computed(()=>n.highlighter.codeToHtml(n.code,{lang:n.language,theme:n.theme}));function d(){r.value=!0,o.value&&i.nextTick(()=>{s.value&&l.value&&Uh.createPopper(s.value,l.value,{placement:"left"})})}function c(){clearTimeout(o.value),navigator.clipboard.writeText(n.code.trimEnd()),a.value=t.Check.value,o.value=setTimeout(()=>{a.value=t.ContentCopy.value,o.value=void 0},2e3)}return(f,h)=>(i.openBlock(),i.createElementBlock("div",{class:"code-block",onMouseover:d,onMouseleave:h[0]||(h[0]=m=>r.value=!1)},[f.language&&!r.value?(i.openBlock(),i.createElementBlock("div",pk,i.toDisplayString(f.language),1)):i.createCommentVNode("",!0),r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{onClick:c}))],512),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[i.createTextVNode(" Copied! "),i.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createElementVNode("div",{innerHTML:u.value},null,8,gk)],32))}}),pd=K(vk,[["__scopeId","data-v-a899f6a1"]]),_k={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ek=["aria-hidden","aria-label"],yk=["fill","width","height"],bk={d:"M10,17L15,12L10,7V17Z"},kk={key:0};function Ck(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",bk,[n.title?(i.openBlock(),i.createElementBlock("title",kk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,yk))],16,Ek)}const Nk=K(_k,[["render",Ck]]),wk={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sk=["aria-hidden","aria-label"],Lk=["fill","width","height"],Tk={d:"M7,10L12,15L17,10H7Z"},Ik={key:0};function Ok(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Tk,[n.title?(i.openBlock(),i.createElementBlock("title",Ik,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Lk))],16,Sk)}const Ak=K(wk,[["render",Ok]]),Rk=["id","open"],Dk={class:"d-flex gap-2 align-items-center"},Pk={key:0,class:"d-flex flex-grow-1"},Bk=["id"],Vk=i.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const n=e,r=i.ref(!0),o=on.useRoute(),a=on.useRouter(),s=t,l=i.computed(()=>`#${n.href}-body`),u=()=>{r.value=!r.value,r.value||s("expand"),a.replace({hash:r.value?"":l.value})},d=i.ref(!1);return i.watch(()=>n.initiallyExpanded,c=>{c!==void 0&&(d.value=c,r.value=!c)},{immediate:!0}),i.watch(()=>o.hash,c=>{c===l.value&&r.value&&(d.value=!0,r.value=!1)},{immediate:!0}),(c,f)=>(i.openBlock(),i.createElementBlock("details",{id:c.href,open:d.value},[i.createElementVNode("summary",{class:i.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:r.value}]),onClick:u},[i.createElementVNode("span",Dk,[c.arrow?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value?Nk:Ak),{key:0,class:"arrow"})):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(c.clickableText)+" ",1),i.renderSlot(c.$slots,"additionalButtonText",{},void 0,!0)]),c.$slots.buttonRight?(i.openBlock(),i.createElementBlock("span",Pk,[i.renderSlot(c.$slots,"buttonRight",{collapsed:r.value},void 0,!0)])):i.createCommentVNode("",!0)],2),c.$slots.content?(i.openBlock(),i.createElementBlock("div",{key:0,id:c.href+"-body"},[i.createElementVNode("div",null,[i.renderSlot(c.$slots,"content",{},void 0,!0)])],8,Bk)):i.createCommentVNode("",!0)],8,Rk))}}),hn=K(Vk,[["__scopeId","data-v-432d4837"]]);function Qt(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function uh(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function xk(e){var t,n;if(e.enum)return e.enum;if((t=e.items)!=null&&t.enum)return e.items.enum;if((n=e.additionalProperties)!=null&&n.enum)return e.additionalProperties.enum}function Mk(e){return e.allOf&&(e=e.allOf.reduce((t,n)=>({...t,...n}),{...e}),delete e.allOf),e}function ch(e){const t={},n=Qt(e);return n?t.types=[n]:e.anyOf?t.types=e.anyOf.map(Qt).filter(r=>r!==void 0).filter(ge.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Qt(e.additionalProperties):e.items&&(t.subType=Qt(e.items)),t}const $k={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qk=["aria-hidden","aria-label"],Fk=["fill","width","height"],Uk={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Hk={key:0};function Gk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Uk,[n.title?(i.openBlock(),i.createElementBlock("title",Hk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Fk))],16,qk)}const zk=K($k,[["render",Gk]]),jk={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wk=["aria-hidden","aria-label"],Kk=["fill","width","height"],Yk={d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},Xk={key:0};function Zk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Yk,[n.title?(i.openBlock(),i.createElementBlock("title",Xk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Kk))],16,Wk)}const dh=K(jk,[["render",Zk]]),Jk={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qk=["aria-hidden","aria-label"],eC=["fill","width","height"],tC={d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"},nC={key:0};function rC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon file-document-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",tC,[n.title?(i.openBlock(),i.createElementBlock("title",nC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,eC))],16,Qk)}const iC=K(Jk,[["render",rC]]),oC={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aC=["aria-hidden","aria-label"],sC=["fill","width","height"],lC={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},uC={key:0};function cC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lC,[n.title?(i.openBlock(),i.createElementBlock("title",uC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sC))],16,aC)}const fh=K(oC,[["render",cC]]),dC={class:"me-3"},fC={class:"d-flex flex-column"},hC=i.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,n=i.computed(()=>{switch(t.type){case"success":return iC;case"info":return la;case"warning":return fh;case"danger":return sa;default:return la}});return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass("doc-alert alert alert-"+r.type),role:"alert"},[i.createElementVNode("div",dC,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:"alert-icon"}))]),i.createElementVNode("div",fC,[i.renderSlot(r.$slots,"default",{},void 0,!0)])],2))}}),mC=K(hC,[["__scopeId","data-v-f7fd8bc1"]]),pC={class:"property-detail"},gC={key:0},vC=["href"],_C={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},EC={class:"ref-type"},yC={key:1,class:"type-box rounded fs-7 px-2 py-1"},bC={key:1},kC={class:"border rounded px-2 py-1"},CC={key:2},NC={class:"border rounded px-2 py-1"},wC={key:3},SC={class:"border rounded px-2 py-1"},LC={key:4},TC={class:"border rounded px-2 py-1"},IC={key:5},OC={class:"border rounded px-2 py-1"},AC={key:6},RC={class:"border rounded px-2 py-1"},DC={key:7},PC={class:"border rounded px-2 py-1"},BC={key:8},VC={class:"border rounded px-2 py-1"},xC={key:9},MC={class:"border rounded px-2 py-1"},$C={key:10},qC={class:"border rounded px-2 py-1"},FC={key:11},UC={class:"border rounded px-2 py-1"},HC={key:12},GC={class:"border rounded px-2 py-1"},zC={key:13},jC={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},WC={key:14},KC={class:"property-description markdown"},YC={key:2},XC=i.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const t=e,n=i.ref(ch(t.property).subType),r=i.ref(xk(t.property)),o=a=>a.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(a,s)=>(i.openBlock(),i.createElementBlock("div",pC,[n.value?(i.openBlock(),i.createElementBlock("div",gC,[s[1]||(s[1]=i.createElementVNode("span",null," SubType ",-1)),n.value.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.value,onClick:s[0]||(s[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("button",_C,[i.createElementVNode("span",EC,i.toDisplayString(i.unref(uh)(n.value)),1),i.createVNode(dh)])],8,vC)):(i.openBlock(),i.createElementBlock("span",yC,i.toDisplayString(n.value),1))])):i.createCommentVNode("",!0),a.property.default!==void 0?(i.openBlock(),i.createElementBlock("div",bC,[s[2]||(s[2]=i.createElementVNode("span",null," Default ",-1)),i.createElementVNode("code",kC,i.toDisplayString(a.property.default),1)])):i.createCommentVNode("",!0),a.property.pattern!==void 0?(i.openBlock(),i.createElementBlock("div",CC,[s[3]||(s[3]=i.createElementVNode("span",null," Validation RegExp ",-1)),i.createElementVNode("code",NC,i.toDisplayString(a.property.pattern),1)])):i.createCommentVNode("",!0),a.property.unit!==void 0&&a.property.unit.trim().length>0?(i.openBlock(),i.createElementBlock("div",wC,[s[4]||(s[4]=i.createElementVNode("span",null," Unit ",-1)),i.createElementVNode("code",SC,i.toDisplayString(a.property.unit),1)])):i.createCommentVNode("",!0),a.property.minLength!==void 0?(i.openBlock(),i.createElementBlock("div",LC,[s[5]||(s[5]=i.createElementVNode("span",null," Min length ",-1)),i.createElementVNode("code",TC,i.toDisplayString(a.property.minLength),1)])):i.createCommentVNode("",!0),a.property.maxLength!==void 0?(i.openBlock(),i.createElementBlock("div",IC,[s[6]||(s[6]=i.createElementVNode("span",null," Max length ",-1)),i.createElementVNode("code",OC,i.toDisplayString(a.property.maxLength),1)])):i.createCommentVNode("",!0),a.property.minItems!==void 0?(i.openBlock(),i.createElementBlock("div",AC,[s[7]||(s[7]=i.createElementVNode("span",null," Min items ",-1)),i.createElementVNode("code",RC,i.toDisplayString(a.property.minItems),1)])):i.createCommentVNode("",!0),a.property.maxItems!==void 0?(i.openBlock(),i.createElementBlock("div",DC,[s[8]||(s[8]=i.createElementVNode("span",null," Max items ",-1)),i.createElementVNode("code",PC,i.toDisplayString(a.property.maxItems),1)])):i.createCommentVNode("",!0),a.property.minimum!==void 0?(i.openBlock(),i.createElementBlock("div",BC,[s[9]||(s[9]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",VC," >= "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMinimum!==void 0?(i.openBlock(),i.createElementBlock("div",xC,[s[10]||(s[10]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",MC," > "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.maximum!==void 0?(i.openBlock(),i.createElementBlock("div",$C,[s[11]||(s[11]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",qC," <= "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMaximum!==void 0?(i.openBlock(),i.createElementBlock("div",FC,[s[12]||(s[12]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",UC," < "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.format!==void 0?(i.openBlock(),i.createElementBlock("div",HC,[s[13]||(s[13]=i.createElementVNode("span",null," Format ",-1)),i.createElementVNode("code",GC,i.toDisplayString(a.property.format),1)])):i.createCommentVNode("",!0),r.value!==void 0?(i.openBlock(),i.createElementBlock("div",zC,[s[14]||(s[14]=i.createElementVNode("span",null," Possible Values ",-1)),i.createElementVNode("div",jC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(l,u)=>(i.openBlock(),i.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},i.toDisplayString(l),1))),128))])])):i.createCommentVNode("",!0),a.property.title!==void 0||a.property.description!==void 0?(i.openBlock(),i.createElementBlock("div",WC,[i.createElementVNode("div",KC,[a.property.title!==void 0?i.renderSlot(a.$slots,"markdown",{key:0,content:o(a.property.title)},void 0,!0):i.createCommentVNode("",!0),a.property.description!==void 0?i.renderSlot(a.$slots,"markdown",{key:1,content:o(a.property.description)},void 0,!0):i.createCommentVNode("",!0),a.property.$internalStorageURI?(i.openBlock(),i.createElementBlock("div",YC,[i.createVNode(mC,{type:"info"},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}}),ZC=K(XC,[["__scopeId","data-v-79715a4e"]]),JC={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},QC=["aria-hidden","aria-label"],eN=["fill","width","height"],tN={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},nN={key:0};function rN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",tN,[n.title?(i.openBlock(),i.createElementBlock("title",nN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,eN))],16,QC)}const iN=K(JC,[["render",rN]]),oN={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aN=["aria-hidden","aria-label"],sN=["fill","width","height"],lN={d:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z"},uN={key:0};function cN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon snowflake-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lN,[n.title?(i.openBlock(),i.createElementBlock("title",uN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sN))],16,aN)}const dN=K(oN,[["render",cN]]),fN={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hN=["aria-hidden","aria-label"],mN=["fill","width","height"],pN={d:"M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M15,10.5V9A2,2 0 0,0 13,7H9V17H13A2,2 0 0,0 15,15V13.5C15,12.7 14.3,12 13.5,12C14.3,12 15,11.3 15,10.5M13,15H11V13H13V15M13,11H11V9H13V11Z"},gN={key:0};function vN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",pN,[n.title?(i.openBlock(),i.createElementBlock("title",gN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,mN))],16,hN)}const _N=K(fN,[["render",vN]]),EN={class:"border overflow-hidden"},yN={class:"d-flex flex-grow-1 align-items-center justify-content-between"},bN={class:"d-flex gap-2"},kN={class:"d-flex flex-wrap gap-2"},CN=["href"],NN={class:"ref-type"},wN={key:1,class:"type-box rounded fs-7 px-2 py-1"},SN=i.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const n=t,r=i.ref(!1);i.watch(r,s=>{s&&n("expand")});const o=s=>{var l;return s.$dynamic===!0?!0:s.$dynamic===!1?!1:((l=s.anyOf)==null?void 0:l.some(u=>u.$dynamic===!0))??!1};function a(s){const l=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=Mk(s[f]),s[f].$required?l.push(f):u.push(f));const d=[...l.sort(),...u.sort()],c={};return d.forEach(f=>{c[f]=s[f]}),c}return(s,l)=>(i.openBlock(),i.createBlock(hn,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:l[2]||(l[2]=u=>n("expand")),"initially-expanded":s.initiallyExpanded||r.value},i.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:i.withCtx(()=>[i.createElementVNode("div",EN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a(s.properties),(u,d)=>(i.openBlock(),i.createBlock(hn,{class:"property",key:d,arrow:!1,"clickable-text":d,href:s.href+"_"+d,onExpand:l[1]||(l[1]=c=>r.value=!0)},{additionalButtonText:i.withCtx(()=>[u.$required?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Required"},{default:i.withCtx(()=>l[3]||(l[3]=[i.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):i.createCommentVNode("",!0)]),buttonRight:i.withCtx(({collapsed:c})=>[i.createElementVNode("span",yN,[i.createElementVNode("span",bN,[s.showDynamic&&!o(u)?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Non-dynamic"},{default:i.withCtx(()=>[i.createVNode(dN,{class:"text-info"})]),_:1})):i.createCommentVNode("",!0),u.$beta?(i.openBlock(),i.createBlock(le,{key:1,class:"d-flex",title:"Beta"},{default:i.withCtx(()=>[i.createVNode(_N,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0),u.$deprecated?(i.openBlock(),i.createBlock(le,{key:2,class:"d-flex",title:"Deprecated"},{default:i.withCtx(()=>[i.createVNode(fh,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0)]),i.createElementVNode("span",kN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ch)(u).types,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[f.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:f,onClick:l[0]||(l[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("span",NN,i.toDisplayString(i.unref(uh)(f)),1),i.createVNode(dh)],8,CN)):(i.openBlock(),i.createElementBlock("span",wN,i.toDisplayString(f),1))],64))),128)),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(c?zk:iN),{class:"arrow"}))])])]),content:i.withCtx(()=>[i.createVNode(ZC,{property:u},{markdown:i.withCtx(({content:c})=>[i.renderSlot(s.$slots,"markdown",{content:c},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),en=K(SN,[["__scopeId","data-v-d73516e7"]]),LN={class:"d-flex flex-column gap-6"},TN={key:0,class:"alert alert-info",role:"alert"},IN={key:1,class:"plugin-title markdown"},ON={key:2,class:"markdown"},AN={class:"d-flex flex-column gap-4"},RN={class:"d-flex flex-column gap-3"},DN={class:"markdown"},PN={key:0,class:"w-100 align-self-center"},BN={class:"markdown"},VN={class:"markdown"},xN={class:"markdown"},MN={class:"d-flex flex-column gap-7 ps-3"},$N={class:"markdown"},qN=i.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1}},async setup(e){let t,n;const r=e,o=i.ref(!1),a=i.ref(new Set),s=i.ref(0),l=async()=>{var N;const g=window.location.hash.slice(1);if(!g||!r.schema.definitions){a.value.clear();return}const k=g.includes("#")?(N=g.split("#").pop())==null?void 0:N.split(".").pop():g;if(k&&k in r.schema.definitions){o.value=!0,s.value+=1,a.value.clear(),a.value.add(k),await i.nextTick();let b=0;const T=30,A=()=>{const R=document.getElementById(k);R?R.scrollIntoView({behavior:"smooth",block:"start"}):b<T&&(b++,requestAnimationFrame(A))};requestAnimationFrame(A)}else a.value.clear()};i.watch([()=>r.schema,()=>r.pluginType],([g,k],[N,b])=>{(g!==N||k!==b)&&r.schema.definitions&&l()},{immediate:!0});const u=g=>{var k;return g!=null&&g.full?g.code:`id: "${(k=r.pluginType.split(".").reverse()[0])==null?void 0:k.toLowerCase()}"
|
|
29
|
+
`)}async function W0(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await j0(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function K0(e,t={}){const{width:n,height:r}=nh(e,t),o=await An(e,t,!0);return await W0(o,t),await sh(o,t),U0(o,t),await f0(o,n,r)}async function lh(e,t={}){const{width:n,height:r}=nh(e,t),o=await K0(e,t),a=await fn(o),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||u0(),d=t.canvasWidth||n,c=t.canvasHeight||r;return s.width=d*u,s.height=c*u,t.skipAutoScale||c0(s),s.style.width=`${d}`,s.style.height=`${c}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,s.width,s.height)),l.drawImage(a,0,0,s.width,s.height),s}async function Y0(e,t={}){return(await lh(e,t)).toDataURL()}async function X0(e,t={}){return(await lh(e,t)).toDataURL("image/jpeg",t.quality||1)}function Z0(){const e=i.ref(""),t=i.ref("png"),n=i.ref();async function r(l,u={}){let d;const c=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":d=await o(l,u);break;case"png":d=await a(l,u);break;default:d=await a(l,u);break}return u.shouldDownload&&c!==""&&s(c),d}function o(l,u={quality:.95}){return n.value=null,X0(l,u).then(d=>(e.value=d,t.value="jpeg",d)).catch(d=>{throw d.value=d,new Error(d)})}function a(l,u={quality:.95}){return n.value=null,Y0(l,u).then(d=>(e.value=d,t.value="png",d)).catch(d=>{throw d.value=d,new Error(d)})}function s(l){const u=document.createElement("a");u.download=`${l}.${t.value}`,u.href=e.value,u.click()}return{capture:r,download:s,dataUrl:e,error:n}}const J0={key:1,class:"exporting"},Q0=i.defineComponent({__name:"Topology",props:{id:{type:String,required:!0},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{type:String,default:void 0,required:!0},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{type:Object,required:!0},flowId:{type:String,required:!1,default:void 0},namespace:{type:String,required:!1,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},emits:[H.EDIT,H.DELETE,H.OPEN_LINK,H.SHOW_LOGS,H.SHOW_DESCRIPTION,"on-add-flowable-error",H.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",H.SHOW_CONDITION],setup(e,{emit:t}){const n=e,r=i.ref(!1),o=i.ref(),{getNodes:a,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:d,setElements:c,vueFlowRef:f}=te.useVueFlow(n.id),h=i.ref({}),m=i.ref([]),C=i.ref(new Set),E=i.ref([]),{capture:_}=Z0(),p=t;i.onMounted(()=>{v()}),i.watch(()=>n.flowGraph,()=>{v()}),i.watch(()=>n.isHorizontal,()=>{v()});const v=()=>{tn.cleanGraph(n.id),i.nextTick(()=>{p("loading",!0);const M=C.value;C.value=new Set,m.value=[],h.value={},M.forEach(J=>T(ct+J,!1,!1));const D=tn.generateGraph(n.id,n.flowId,n.namespace,n.flowGraph,n.source,m.value,n.isHorizontal,h.value,C.value,E.value,n.isReadOnly,n.isAllowedEdit,n.enableSubflowInteraction);D&&(c(D),d(),p("loading",!1))})},y=M=>{r.value||tn.linkedElements(n.id,M.uid).forEach(D=>{(D==null?void 0:D.type)==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-gray-900")},D.class="rounded-3")})},g=()=>{k()},k=()=>{a.value.filter(M=>M.type==="task"||M.type==="trigger").forEach(M=>{M.style={...M.style,opacity:"1",outline:"none"},M.class=""})};l(M=>{r.value=!0,k(),M.node.style={...M.node.style,zIndex:1976},o.value=M.node.position}),u(M=>{if(r.value=!1,M.intersections&&b(M.intersections,M.node)===null){const D=M.node,J=M.intersections.find(W=>W.type==="task");if(J)try{n.source&&p("swapped-task",{newSource:L.swapBlocks({source:n.source,section:"tasks",key1:ge.afterLastDot(D.id)??"",key2:ge.afterLastDot(J.id)??""}),swappedTasks:[D.id,J.id]})}catch(W){p("message",{variant:"error",title:"cannot swap tasks",message:`${W.message}, ${W.messageOptions}`}),D.position=o.value}else D.position=o.value}else M.node.position=o.value;k(),M.node.style={...M.node.style,zIndex:5},o.value=null});const N=i.computed(()=>{var M;return(M=n.flowGraph)!=null&&M.clusters?n.flowGraph.clusters.filter(D=>D.cluster.type.endsWith("SubflowGraphCluster")).map(D=>D.cluster.taskNode.uid+"."):[]});s(M=>{k(),a.value.filter(D=>D.id!==M.node.id).forEach(D=>{var J;D.type==="trigger"||D.type==="task"&&(D.id.startsWith(M.node.id+".")||M.node.id.startsWith(D.id+"."))||(J=N==null?void 0:N.value)!=null&&J.some(W=>D.id.startsWith(W))?D.style={...D.style,opacity:"0.5"}:D.style={...D.style,opacity:"1"}}),M.intersections&&!b(M.intersections,M.node)&&M.intersections.filter(D=>D.type==="task").length===1&&(M.intersections.forEach(D=>{D.type==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-primary")},D.class="rounded-3")}),M.node.style={...M.node.style,outline:"0.5px solid "+Fe("--bs-primary")},M.node.class="rounded-3")});const b=(M,D)=>{const J=M.filter(W=>W.type==="task").map(W=>ge.afterLastDot(W.id));if(J.length>1)return"toomuchtaskerror";try{if(J.length===1&&n.source&&L.isParentChildrenRelation({source:n.source,sections:["tasks","triggers"],key1:ge.afterLastDot(J[0])??"",key2:ge.afterLastDot(D.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return M.filter(W=>W.type==="trigger").length>0?"triggererror":null},T=(M,D,J=!1)=>{const W=n.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(M)),F=M.replace(ct,"");C.value.add(F),m.value=m.value.concat(W.nodes.filter(ne=>ne!==F||J)),m.value=m.value.concat([W.cluster.uid]),h.value={...h.value,[W.cluster.uid]:F,[W.start]:F,[W.end]:F};for(let ne of W.nodes)n.flowGraph.clusters.map(me=>me.cluster.uid).includes(ne)&&T(ne,!1,!0);D&&v()},A=M=>{if(["io.kestra.core.tasks.flows.Flow","io.kestra.core.tasks.flows.Subflow","io.kestra.plugin.core.flow.Subflow","io.kestra.core.tasks.flows.ForEachItem$ForEachItemExecutable","io.kestra.plugin.core.flow.ForEachItem$ForEachItemExecutable"].includes(M.type)&&!n.expandedSubflows.includes(M.id)){p("expand-subflow",[...n.expandedSubflows,M.id]);return}h.value={},m.value=[],E.value=[],C.value.delete(M.id),C.value.forEach(J=>T(J,!1,!1)),v()},R=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,U=i.ref(!0),V=i.ref(!1),j=()=>V.value=!V.value;function Z(M){if(!f.value){console.warn("Flow not found");return}U.value=!1,_(f.value,{type:M,shouldDownload:!0}).then(()=>U.value=!0).finally(()=>V.value=!1)}return(M,D)=>(i.openBlock(),i.createBlock(i.unref(te.VueFlow),{id:e.id,"default-marker-color":i.unref(Fe)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":i.withCtx(J=>[i.createVNode(BE,i.mergeProps(J,{onCollapse:D[0]||(D[0]=W=>T(W,!0))}),null,16)]),"node-dot":i.withCtx(J=>[i.createVNode(GE,i.normalizeProps(i.guardReactiveProps(J)),null,16)]),"node-task":i.withCtx(J=>[i.createVNode(Tb,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,onEdit:D[1]||(D[1]=W=>p(i.unref(H).EDIT,W)),onDelete:D[2]||(D[2]=W=>p(i.unref(H).DELETE,W)),onExpand:D[3]||(D[3]=W=>A(W)),onOpenLink:D[4]||(D[4]=W=>p(i.unref(H).OPEN_LINK,W)),onShowLogs:D[5]||(D[5]=W=>p(i.unref(H).SHOW_LOGS,W)),onShowDescription:D[6]||(D[6]=W=>p(i.unref(H).SHOW_DESCRIPTION,W)),onShowCondition:D[7]||(D[7]=W=>p(i.unref(H).SHOW_CONDITION,W)),onMouseover:D[8]||(D[8]=W=>y(W)),onMouseleave:D[9]||(D[9]=W=>g()),onAddError:D[10]||(D[10]=W=>p("on-add-flowable-error",W)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":i.withCtx(J=>[i.createVNode(Ob,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:D[11]||(D[11]=W=>p(i.unref(H).DELETE,W)),onEdit:D[12]||(D[12]=W=>p(i.unref(H).EDIT,W)),onShowDescription:D[13]||(D[13]=W=>p(i.unref(H).SHOW_DESCRIPTION,W))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":i.withCtx(J=>[i.createVNode(Hb,i.mergeProps(J,{onExpand:D[14]||(D[14]=W=>A(W))}),null,16)]),"edge-edge":i.withCtx(J=>[i.createVNode(iy,i.mergeProps(J,{"yaml-source":e.source,onAddTask:D[15]||(D[15]=W=>p(i.unref(H).ADD_TASK,W)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:i.withCtx(()=>[i.createVNode(i.unref(NE),{"pattern-color":R?i.unref(Fe)("--bs-grey-500"):i.unref(Fe)("--bs-grey-300")},null,8,["pattern-color"]),U.value?(i.openBlock(),i.createBlock(i.unref(Dn.Controls),{key:0,"show-interactive":!1},{default:i.withCtx(()=>[e.toggleOrientationButton?(i.openBlock(),i.createBlock(i.unref(Dn.ControlButton),{key:0,onClick:D[16]||(D[16]=J=>p("toggle-orientation",J))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.isHorizontal?Zb:Wb)))]),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(Dn.ControlButton),{onClick:j},{default:i.withCtx(()=>[i.createVNode(i0)]),_:1}),V.value?(i.openBlock(),i.createElementBlock("ul",J0,[i.createElementVNode("li",{onClick:D[17]||(D[17]=J=>Z("jpeg")),class:"item"}," Export as .JPEG "),i.createElementVNode("li",{onClick:D[18]||(D[18]=J=>Z("png")),class:"item"}," Export as .PNG ")])):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),ek=K(Q0,[["__scopeId","data-v-ecaa6943"]]),tk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nk=["aria-hidden","aria-label"],rk=["fill","width","height"],ik={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},ok={key:0};function ak(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ik,[n.title?(i.openBlock(),i.createElementBlock("title",ok,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,rk))],16,nk)}const sk=K(tk,[["render",ak]]),lk={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uk=["aria-hidden","aria-label"],ck=["fill","width","height"],dk={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},fk={key:0};function hk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon content-copy-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",dk,[n.title?(i.openBlock(),i.createElementBlock("title",fk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ck))],16,uk)}const mk=K(lk,[["render",hk]]),pk={key:0,class:"language"},gk=["innerHTML"],vk=i.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(e){const t={ContentCopy:i.shallowRef(mk),Check:i.shallowRef(sk)},n=e,r=i.ref(!1),o=i.ref(),a=i.shallowRef(t.ContentCopy.value),s=i.ref(),l=i.ref(),u=i.computed(()=>n.highlighter.codeToHtml(n.code,{lang:n.language,theme:n.theme}));function d(){r.value=!0,o.value&&i.nextTick(()=>{s.value&&l.value&&Uh.createPopper(s.value,l.value,{placement:"left"})})}function c(){clearTimeout(o.value),navigator.clipboard.writeText(n.code.trimEnd()),a.value=t.Check.value,o.value=setTimeout(()=>{a.value=t.ContentCopy.value,o.value=void 0},2e3)}return(f,h)=>(i.openBlock(),i.createElementBlock("div",{class:"code-block",onMouseover:d,onMouseleave:h[0]||(h[0]=m=>r.value=!1)},[f.language&&!r.value?(i.openBlock(),i.createElementBlock("div",pk,i.toDisplayString(f.language),1)):i.createCommentVNode("",!0),r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{onClick:c}))],512),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[i.createTextVNode(" Copied! "),i.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createElementVNode("div",{innerHTML:u.value},null,8,gk)],32))}}),pd=K(vk,[["__scopeId","data-v-a899f6a1"]]),_k={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ek=["aria-hidden","aria-label"],yk=["fill","width","height"],bk={d:"M10,17L15,12L10,7V17Z"},kk={key:0};function Ck(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",bk,[n.title?(i.openBlock(),i.createElementBlock("title",kk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,yk))],16,Ek)}const Nk=K(_k,[["render",Ck]]),wk={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sk=["aria-hidden","aria-label"],Lk=["fill","width","height"],Tk={d:"M7,10L12,15L17,10H7Z"},Ik={key:0};function Ok(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Tk,[n.title?(i.openBlock(),i.createElementBlock("title",Ik,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Lk))],16,Sk)}const Ak=K(wk,[["render",Ok]]),Rk=["id","open"],Dk={class:"d-flex gap-2 align-items-center"},Pk={key:0,class:"d-flex flex-grow-1"},Bk=["id"],Vk=i.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const n=e,r=i.ref(!0),o=on.useRoute(),a=on.useRouter(),s=t,l=i.computed(()=>`#${n.href}-body`),u=()=>{r.value=!r.value,r.value||s("expand"),a.replace({hash:r.value?"":l.value})},d=i.ref(!1);return i.watch(()=>n.initiallyExpanded,c=>{c!==void 0&&(d.value=c,r.value=!c)},{immediate:!0}),i.watch(()=>o.hash,c=>{c===l.value&&r.value&&(d.value=!0,r.value=!1)},{immediate:!0}),(c,f)=>(i.openBlock(),i.createElementBlock("details",{id:c.href,open:d.value},[i.createElementVNode("summary",{class:i.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:r.value}]),onClick:u},[i.createElementVNode("span",Dk,[c.arrow?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value?Nk:Ak),{key:0,class:"arrow"})):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(c.clickableText)+" ",1),i.renderSlot(c.$slots,"additionalButtonText",{},void 0,!0)]),c.$slots.buttonRight?(i.openBlock(),i.createElementBlock("span",Pk,[i.renderSlot(c.$slots,"buttonRight",{collapsed:r.value},void 0,!0)])):i.createCommentVNode("",!0)],2),c.$slots.content?(i.openBlock(),i.createElementBlock("div",{key:0,id:c.href+"-body"},[i.createElementVNode("div",null,[i.renderSlot(c.$slots,"content",{},void 0,!0)])],8,Bk)):i.createCommentVNode("",!0)],8,Rk))}}),hn=K(Vk,[["__scopeId","data-v-792a18bc"]]);function Qt(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function uh(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function xk(e){var t,n;if(e.enum)return e.enum;if((t=e.items)!=null&&t.enum)return e.items.enum;if((n=e.additionalProperties)!=null&&n.enum)return e.additionalProperties.enum}function Mk(e){return e.allOf&&(e=e.allOf.reduce((t,n)=>({...t,...n}),{...e}),delete e.allOf),e}function ch(e){const t={},n=Qt(e);return n?t.types=[n]:e.anyOf?t.types=e.anyOf.map(Qt).filter(r=>r!==void 0).filter(ge.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Qt(e.additionalProperties):e.items&&(t.subType=Qt(e.items)),t}const $k={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qk=["aria-hidden","aria-label"],Fk=["fill","width","height"],Uk={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Hk={key:0};function Gk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Uk,[n.title?(i.openBlock(),i.createElementBlock("title",Hk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Fk))],16,qk)}const zk=K($k,[["render",Gk]]),jk={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wk=["aria-hidden","aria-label"],Kk=["fill","width","height"],Yk={d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},Xk={key:0};function Zk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Yk,[n.title?(i.openBlock(),i.createElementBlock("title",Xk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Kk))],16,Wk)}const dh=K(jk,[["render",Zk]]),Jk={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qk=["aria-hidden","aria-label"],eC=["fill","width","height"],tC={d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"},nC={key:0};function rC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon file-document-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",tC,[n.title?(i.openBlock(),i.createElementBlock("title",nC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,eC))],16,Qk)}const iC=K(Jk,[["render",rC]]),oC={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aC=["aria-hidden","aria-label"],sC=["fill","width","height"],lC={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},uC={key:0};function cC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lC,[n.title?(i.openBlock(),i.createElementBlock("title",uC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sC))],16,aC)}const fh=K(oC,[["render",cC]]),dC={class:"me-3"},fC={class:"d-flex flex-column"},hC=i.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,n=i.computed(()=>{switch(t.type){case"success":return iC;case"info":return la;case"warning":return fh;case"danger":return sa;default:return la}});return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass("doc-alert alert alert-"+r.type),role:"alert"},[i.createElementVNode("div",dC,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:"alert-icon"}))]),i.createElementVNode("div",fC,[i.renderSlot(r.$slots,"default",{},void 0,!0)])],2))}}),mC=K(hC,[["__scopeId","data-v-f7fd8bc1"]]),pC={class:"property-detail"},gC={key:0},vC=["href"],_C={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},EC={class:"ref-type"},yC={key:1,class:"type-box rounded fs-7 px-2 py-1"},bC={key:1},kC={class:"border rounded px-2 py-1"},CC={key:2},NC={class:"border rounded px-2 py-1"},wC={key:3},SC={class:"border rounded px-2 py-1"},LC={key:4},TC={class:"border rounded px-2 py-1"},IC={key:5},OC={class:"border rounded px-2 py-1"},AC={key:6},RC={class:"border rounded px-2 py-1"},DC={key:7},PC={class:"border rounded px-2 py-1"},BC={key:8},VC={class:"border rounded px-2 py-1"},xC={key:9},MC={class:"border rounded px-2 py-1"},$C={key:10},qC={class:"border rounded px-2 py-1"},FC={key:11},UC={class:"border rounded px-2 py-1"},HC={key:12},GC={class:"border rounded px-2 py-1"},zC={key:13},jC={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},WC={key:14},KC={class:"property-description markdown"},YC={key:2},XC=i.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const t=e,n=i.ref(ch(t.property).subType),r=i.ref(xk(t.property)),o=a=>a.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(a,s)=>(i.openBlock(),i.createElementBlock("div",pC,[n.value?(i.openBlock(),i.createElementBlock("div",gC,[s[1]||(s[1]=i.createElementVNode("span",null," SubType ",-1)),n.value.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.value,onClick:s[0]||(s[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("button",_C,[i.createElementVNode("span",EC,i.toDisplayString(i.unref(uh)(n.value)),1),i.createVNode(dh)])],8,vC)):(i.openBlock(),i.createElementBlock("span",yC,i.toDisplayString(n.value),1))])):i.createCommentVNode("",!0),a.property.default!==void 0?(i.openBlock(),i.createElementBlock("div",bC,[s[2]||(s[2]=i.createElementVNode("span",null," Default ",-1)),i.createElementVNode("code",kC,i.toDisplayString(a.property.default),1)])):i.createCommentVNode("",!0),a.property.pattern!==void 0?(i.openBlock(),i.createElementBlock("div",CC,[s[3]||(s[3]=i.createElementVNode("span",null," Validation RegExp ",-1)),i.createElementVNode("code",NC,i.toDisplayString(a.property.pattern),1)])):i.createCommentVNode("",!0),a.property.unit!==void 0&&a.property.unit.trim().length>0?(i.openBlock(),i.createElementBlock("div",wC,[s[4]||(s[4]=i.createElementVNode("span",null," Unit ",-1)),i.createElementVNode("code",SC,i.toDisplayString(a.property.unit),1)])):i.createCommentVNode("",!0),a.property.minLength!==void 0?(i.openBlock(),i.createElementBlock("div",LC,[s[5]||(s[5]=i.createElementVNode("span",null," Min length ",-1)),i.createElementVNode("code",TC,i.toDisplayString(a.property.minLength),1)])):i.createCommentVNode("",!0),a.property.maxLength!==void 0?(i.openBlock(),i.createElementBlock("div",IC,[s[6]||(s[6]=i.createElementVNode("span",null," Max length ",-1)),i.createElementVNode("code",OC,i.toDisplayString(a.property.maxLength),1)])):i.createCommentVNode("",!0),a.property.minItems!==void 0?(i.openBlock(),i.createElementBlock("div",AC,[s[7]||(s[7]=i.createElementVNode("span",null," Min items ",-1)),i.createElementVNode("code",RC,i.toDisplayString(a.property.minItems),1)])):i.createCommentVNode("",!0),a.property.maxItems!==void 0?(i.openBlock(),i.createElementBlock("div",DC,[s[8]||(s[8]=i.createElementVNode("span",null," Max items ",-1)),i.createElementVNode("code",PC,i.toDisplayString(a.property.maxItems),1)])):i.createCommentVNode("",!0),a.property.minimum!==void 0?(i.openBlock(),i.createElementBlock("div",BC,[s[9]||(s[9]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",VC," >= "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMinimum!==void 0?(i.openBlock(),i.createElementBlock("div",xC,[s[10]||(s[10]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",MC," > "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.maximum!==void 0?(i.openBlock(),i.createElementBlock("div",$C,[s[11]||(s[11]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",qC," <= "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMaximum!==void 0?(i.openBlock(),i.createElementBlock("div",FC,[s[12]||(s[12]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",UC," < "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.format!==void 0?(i.openBlock(),i.createElementBlock("div",HC,[s[13]||(s[13]=i.createElementVNode("span",null," Format ",-1)),i.createElementVNode("code",GC,i.toDisplayString(a.property.format),1)])):i.createCommentVNode("",!0),r.value!==void 0?(i.openBlock(),i.createElementBlock("div",zC,[s[14]||(s[14]=i.createElementVNode("span",null," Possible Values ",-1)),i.createElementVNode("div",jC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(l,u)=>(i.openBlock(),i.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},i.toDisplayString(l),1))),128))])])):i.createCommentVNode("",!0),a.property.title!==void 0||a.property.description!==void 0?(i.openBlock(),i.createElementBlock("div",WC,[i.createElementVNode("div",KC,[a.property.title!==void 0?i.renderSlot(a.$slots,"markdown",{key:0,content:o(a.property.title)},void 0,!0):i.createCommentVNode("",!0),a.property.description!==void 0?i.renderSlot(a.$slots,"markdown",{key:1,content:o(a.property.description)},void 0,!0):i.createCommentVNode("",!0),a.property.$internalStorageURI?(i.openBlock(),i.createElementBlock("div",YC,[i.createVNode(mC,{type:"info"},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}}),ZC=K(XC,[["__scopeId","data-v-79715a4e"]]),JC={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},QC=["aria-hidden","aria-label"],eN=["fill","width","height"],tN={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},nN={key:0};function rN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",tN,[n.title?(i.openBlock(),i.createElementBlock("title",nN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,eN))],16,QC)}const iN=K(JC,[["render",rN]]),oN={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aN=["aria-hidden","aria-label"],sN=["fill","width","height"],lN={d:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z"},uN={key:0};function cN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon snowflake-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lN,[n.title?(i.openBlock(),i.createElementBlock("title",uN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sN))],16,aN)}const dN=K(oN,[["render",cN]]),fN={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hN=["aria-hidden","aria-label"],mN=["fill","width","height"],pN={d:"M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M15,10.5V9A2,2 0 0,0 13,7H9V17H13A2,2 0 0,0 15,15V13.5C15,12.7 14.3,12 13.5,12C14.3,12 15,11.3 15,10.5M13,15H11V13H13V15M13,11H11V9H13V11Z"},gN={key:0};function vN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",pN,[n.title?(i.openBlock(),i.createElementBlock("title",gN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,mN))],16,hN)}const _N=K(fN,[["render",vN]]),EN={class:"border overflow-hidden"},yN={class:"d-flex flex-grow-1 align-items-center justify-content-between"},bN={class:"d-flex gap-2"},kN={class:"d-flex flex-wrap gap-2"},CN=["href"],NN={class:"ref-type"},wN={key:1,class:"type-box rounded fs-7 px-2 py-1"},SN=i.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]}},emits:["expand"],setup(e,{emit:t}){const n=e,r=t,o=i.ref(!1);i.watch(o,l=>{l&&r("expand")});const a=l=>{var u;return l.$dynamic===!0?!0:l.$dynamic===!1?!1:((u=l.anyOf)==null?void 0:u.some(d=>d.$dynamic===!0))??!1};function s(l){const u=[],d=[];for(const h in l)typeof l[h]=="object"&&(l[h]=Mk(l[h]),l[h].$required?u.push(h):d.push(h));const c=[...u.sort(),...d.sort()],f={};return c.forEach(h=>{var m;(!l[h].$deprecated||(m=n.forceInclude)!=null&&m.includes(h))&&(f[h]=l[h])}),f}return(l,u)=>(i.openBlock(),i.createBlock(hn,{class:"section-collapsible","clickable-text":l.sectionName,href:l.href,onExpand:u[2]||(u[2]=d=>r("expand")),"initially-expanded":l.initiallyExpanded||o.value},i.createSlots({_:2},[Object.keys(l.properties??{}).length>0?{name:"content",fn:i.withCtx(()=>[i.createElementVNode("div",EN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s(l.properties),(d,c)=>(i.openBlock(),i.createBlock(hn,{class:"property",key:c,arrow:!1,"clickable-text":c,href:l.href+"_"+c,onExpand:u[1]||(u[1]=f=>o.value=!0)},{additionalButtonText:i.withCtx(()=>[d.$required?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Required"},{default:i.withCtx(()=>u[3]||(u[3]=[i.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):i.createCommentVNode("",!0)]),buttonRight:i.withCtx(({collapsed:f})=>[i.createElementVNode("span",yN,[i.createElementVNode("span",bN,[l.showDynamic&&!a(d)?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Non-dynamic"},{default:i.withCtx(()=>[i.createVNode(dN,{class:"text-info"})]),_:1})):i.createCommentVNode("",!0),d.$beta?(i.openBlock(),i.createBlock(le,{key:1,class:"d-flex",title:"Beta"},{default:i.withCtx(()=>[i.createVNode(_N,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0),d.$deprecated?(i.openBlock(),i.createBlock(le,{key:2,class:"d-flex",title:"Deprecated"},{default:i.withCtx(()=>[i.createVNode(fh,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0)]),i.createElementVNode("span",kN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ch)(d).types,h=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:h},[h.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:h,onClick:u[0]||(u[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("span",NN,i.toDisplayString(i.unref(uh)(h)),1),i.createVNode(dh)],8,CN)):(i.openBlock(),i.createElementBlock("span",wN,i.toDisplayString(h),1))],64))),128)),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f?zk:iN),{class:"arrow"}))])])]),content:i.withCtx(()=>[i.createVNode(ZC,{property:d},{markdown:i.withCtx(({content:f})=>[i.renderSlot(l.$slots,"markdown",{content:f},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),en=K(SN,[["__scopeId","data-v-0d36ff40"]]),LN={class:"d-flex flex-column gap-6"},TN={key:0,class:"alert alert-info",role:"alert"},IN={key:1,class:"plugin-title markdown"},ON={key:2,class:"markdown"},AN={class:"d-flex flex-column gap-4"},RN={class:"d-flex flex-column gap-3"},DN={class:"markdown"},PN={key:0,class:"w-100 align-self-center"},BN={class:"markdown"},VN={class:"markdown"},xN={class:"markdown"},MN={class:"d-flex flex-column gap-7 ps-3"},$N={class:"markdown"},qN=i.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]}},async setup(e){let t,n;const r=e,o=i.ref(!1),a=i.ref(new Set),s=i.ref(0),l=async()=>{var N;const g=window.location.hash.slice(1);if(!g||!r.schema.definitions){a.value.clear();return}const k=g.includes("#")?(N=g.split("#").pop())==null?void 0:N.split(".").pop():g;if(k&&k in r.schema.definitions){o.value=!0,s.value+=1,a.value.clear(),a.value.add(k),await i.nextTick();let b=0;const T=30,A=()=>{const R=document.getElementById(k);R?R.scrollIntoView({behavior:"smooth",block:"start"}):b<T&&(b++,requestAnimationFrame(A))};requestAnimationFrame(A)}else a.value.clear()};i.watch([()=>r.schema,()=>r.pluginType],([g,k],[N,b])=>{(g!==N||k!==b)&&r.schema.definitions&&l()},{immediate:!0});const u=g=>{var k;return g!=null&&g.full?g.code:`id: "${(k=r.pluginType.split(".").reverse()[0])==null?void 0:k.toLowerCase()}"
|
|
30
30
|
type: "${r.pluginType}"
|
|
31
|
-
`.concat(g.code)},d=i.ref(null),c=i.computed(()=>{var g;return(g=r.schema.properties)==null?void 0:g.$examples}),f=i.computed(()=>{var g,k;return Object.fromEntries((k=(g=r.schema.properties)==null?void 0:g.$metrics)==null?void 0:k.map(N=>[N.name,{...N,name:void 0}]))}),{githubLight:h,githubDark:m,yaml:C,python:E,javascript:_,createJavaScriptRegexEngine:p,createHighlighterCore:v}=([t,n]=i.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),t=await t,n(),t);d.value=([t,n]=i.withAsyncContext(()=>v({themes:[r.darkMode?m:h],langs:[C,E,_],engine:p()})),t=await t,n(),t);const y="github-"+(r.darkMode?"dark":"light");return i.onMounted(()=>{l(),window.addEventListener("hashchange",l)}),i.onUnmounted(()=>{var g;window.removeEventListener("hashchange",l),(g=d.value)==null||g.dispose()}),(g,k)=>{var N,b,T,A,R,U;return i.openBlock(),i.createElementBlock("div",LN,[i.createElementVNode("div",null,[(N=g.schema.properties)!=null&&N.$beta?(i.openBlock(),i.createElementBlock("div",TN,k[0]||(k[0]=[i.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)]))):i.createCommentVNode("",!0),(b=g.schema.properties)!=null&&b.title?(i.openBlock(),i.createElementBlock("div",IN,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(T=g.schema.properties)!=null&&T.description?(i.openBlock(),i.createElementBlock("div",ON,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(pd,{highlighter:d.value,language:"yaml",theme:y,code:`type: "${g.pluginType}"`,key:g.pluginType},null,8,["highlighter","code"]))]),(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column gap-3",key:g.pluginType},[c.value?(i.openBlock(),i.createBlock(hn,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:i.withCtx(()=>[i.createElementVNode("div",AN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,(V,j)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:g.pluginType+"-"+j},[i.createElementVNode("div",RN,[i.createElementVNode("div",DN,[V.title?i.renderSlot(g.$slots,"markdown",{key:0,content:V.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):i.createCommentVNode("",!0)]),V.code?(i.openBlock(),i.createBlock(pd,{key:0,highlighter:d.value,language:V.lang??"yaml",theme:y,code:u(V)},null,8,["highlighter","language","code"])):i.createCommentVNode("",!0)]),j<c.value.length-1?(i.openBlock(),i.createElementBlock("hr",PN)):i.createCommentVNode("",!0)],64))),128))])]),_:3})):i.createCommentVNode("",!0),(A=g.schema.properties)!=null&&A.properties?(i.openBlock(),i.createBlock(en,{key:1,class:"plugin-section",properties:g.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":g.propsInitiallyExpanded},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",BN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties","initially-expanded"])):i.createCommentVNode("",!0),(R=g.schema.outputs)!=null&&R.properties&&Object.keys(g.schema.outputs.properties).length>0?(i.openBlock(),i.createBlock(en,{key:2,class:"plugin-section",properties:g.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",VN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),(U=g.schema.properties)!=null&&U.$metrics?(i.openBlock(),i.createBlock(en,{key:3,class:"plugin-section",properties:f.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",xN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),g.schema.definitions&&Object.keys(g.schema.definitions).length>0?(i.openBlock(),i.createBlock(hn,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":o.value,key:`definitions-${g.pluginType}-${s.value}`},{content:i.withCtx(()=>[i.createElementVNode("div",MN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(g.schema.definitions),([V,j])=>(i.openBlock(),i.createBlock(en,{properties:j.properties,"section-name":j.title??V.split("_")[0],href:V,"show-dynamic":!1,"initially-expanded":a.value.has(V),key:g.pluginType+"-"+V,class:"plugin-section nested-button-py-2",onExpand:Z=>{o.value=!0,a.value.add(V)}},{markdown:i.withCtx(({content:Z})=>[i.createElementVNode("div",$N,[i.renderSlot(g.$slots,"markdown",{content:Z},void 0,!0)])]),_:2},1032,["properties","section-name","href","initially-expanded","onExpand"]))),128))])]),_:3},8,["initially-expanded"])):i.createCommentVNode("",!0)]))])}}}),FN=K(qN,[["__scopeId","data-v-d07027c2"]]),UN={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},HN=["aria-hidden","aria-label"],GN=["fill","width","height"],zN={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},jN={key:0};function WN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",zN,[n.title?(i.openBlock(),i.createElementBlock("title",jN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,GN))],16,HN)}const KN=K(UN,[["render",WN]]),YN=["href"],XN=["src","alt"],ZN=i.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const t=e,{path:n}=on.useRoute(),r=i.computed(()=>t.href===void 0?`${n}/${_t(t.text)}`:t.href);return(o,a)=>(i.openBlock(),i.createElementBlock("a",{href:r.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[i.createElementVNode("img",{src:o.iconB64Svg,alt:`${o.text} icon`},null,8,XN),i.createTextVNode(i.toDisplayString(o.text)+" ",1),i.createVNode(KN,{class:"ms-auto"})],8,YN))}}),gd=K(ZN,[["__scopeId","data-v-b787c0f3"]]),JN={class:"d-flex flex-column gap-4"},QN={key:1,class:"d-flex flex-column"},ew=["id"],tw={class:"d-flex flex-column"},nw=i.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const t=e,n=i.computed(()=>t.plugins.find(f=>t.subGroup===void 0?!0:_t(At(f))===t.subGroup)),r=i.computed(()=>{var f,h;return((f=n.value)==null?void 0:f.longDescription)??((h=n.value)==null?void 0:h.description)}),o=i.computed(()=>t.plugins.filter(f=>f.name.toLowerCase()===t.pluginName.toLowerCase()&&f.subGroup!==void 0)),a=f=>{let h=f.split(".");return h==null?void 0:h[h.length-1]},{path:s}=on.useRoute(),l=f=>`${s}/${_t(f)}`,u=f=>`${s}/${f}`;function d(f){return Object.fromEntries(Object.entries(f).filter(([h,m])=>nf(h,m)).map(([h,m])=>[h.replaceAll(/[A-Z]/g,C=>` ${C}`),m]))}const c=i.computed(()=>d(n.value));return(f,h)=>(i.openBlock(),i.createElementBlock("div",JN,[r.value!==void 0?i.renderSlot(f.$slots,"markdown",{key:0,content:r.value.replaceAll(/ *:(?![ /])/g,": ")}):i.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(i.openBlock(),i.createElementBlock("div",QN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,m=>(i.openBlock(),i.createBlock(gd,{id:`group-${i.unref(_t)(i.unref(At)(m))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[m.subGroup]??f.icons[m.group]),text:i.unref(At)(m),href:l(i.unref(At)(m)),key:i.unref(At)(m),class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:m})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:2},i.renderList(c.value,(m,C)=>(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[i.createElementVNode("h4",{id:`section-${i.unref(_t)(C)}`,class:"text-capitalize"},i.toDisplayString(C),9,ew),i.createElementVNode("div",tw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,E=>(i.openBlock(),i.createBlock(gd,{id:i.unref(_t)(E),"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[E]??f.icons[n.value.subGroup??n.value.group]??f.icons[n.value.group]),text:a(E),href:u(E),key:E,class:"text-capitalize",onClick:_=>f.$emit("goTo",{element:E})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),rw=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,iw=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ow=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function aw(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){sw(e);return}return t}function sw(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function lw(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!ow.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(rw.test(e)||iw.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,aw)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const uw=/\d/,cw=["-","_","/","."];function dw(e=""){if(!uw.test(e))return e!==e.toLowerCase()}function hh(e,t){const n=cw,r=[];if(!e||typeof e!="string")return r;let o="",a,s;for(const l of e){const u=n.includes(l);if(u===!0){r.push(o),o="",a=void 0;continue}const d=dw(l);if(s===!1){if(a===!1&&d===!0){r.push(o),o=l,a=d;continue}if(a===!0&&d===!1&&o.length>1){const c=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=c+l,a=d;continue}}o+=l,a=d,s=u}return r.push(o),r}function fw(e){return e?e[0].toUpperCase()+e.slice(1):""}function mh(e,t){return e?(Array.isArray(e)?e:hh(e)).map(n=>fw(n)).join(""):""}function hw(e,t){return e?(Array.isArray(e)?e:hh(e)).map(n=>n.toLowerCase()).join("-"):""}class zt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}zt.prototype.normal={};zt.prototype.property={};zt.prototype.space=void 0;function ph(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new zt(n,r,t)}function Ca(e){return e.toLowerCase()}class Ve{constructor(t,n){this.attribute=n,this.property=t}}Ve.prototype.attribute="";Ve.prototype.booleanish=!1;Ve.prototype.boolean=!1;Ve.prototype.commaOrSpaceSeparated=!1;Ve.prototype.commaSeparated=!1;Ve.prototype.defined=!1;Ve.prototype.mustUseProperty=!1;Ve.prototype.number=!1;Ve.prototype.overloadedBoolean=!1;Ve.prototype.property="";Ve.prototype.spaceSeparated=!1;Ve.prototype.space=void 0;let mw=0;const Q=wt(),ke=wt(),gh=wt(),x=wt(),de=wt(),Dt=wt(),qe=wt();function wt(){return 2**++mw}const Na=Object.freeze(Object.defineProperty({__proto__:null,boolean:Q,booleanish:ke,commaOrSpaceSeparated:qe,commaSeparated:Dt,number:x,overloadedBoolean:gh,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),aa=Object.keys(Na);class Qa extends Ve{constructor(t,n,r,o){let a=-1;if(super(t,n),vd(this,"space",o),typeof r=="number")for(;++a<aa.length;){const s=aa[a];vd(this,aa[a],(r&Na[s])===Na[s])}}}Qa.prototype.defined=!0;function vd(e,t,n){n&&(e[t]=n)}function xt(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new Qa(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ca(r)]=r,n[Ca(a.attribute)]=r}return new zt(t,n,e.space)}const vh=xt({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:de,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:x,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:de,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:ke,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function _h(e,t){return t in e?e[t]:t}function Eh(e,t){return _h(e,t.toLowerCase())}const pw=xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dt,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:Q,allowPaymentRequest:Q,allowUserMedia:Q,alt:null,as:null,async:Q,autoCapitalize:null,autoComplete:de,autoFocus:Q,autoPlay:Q,blocking:de,capture:null,charSet:null,checked:Q,cite:null,className:de,cols:x,colSpan:null,content:null,contentEditable:ke,controls:Q,controlsList:de,coords:x|Dt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:gh,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:de,height:x,hidden:Q,high:x,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:Q,inputMode:null,integrity:null,is:null,isMap:Q,itemId:null,itemProp:de,itemRef:de,itemScope:Q,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Q,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:Q,muted:Q,name:null,nonce:null,noModule:Q,noValidate:Q,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Q,optimum:x,pattern:null,ping:de,placeholder:null,playsInline:Q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Q,referrerPolicy:null,rel:de,required:Q,reversed:Q,rows:x,rowSpan:x,sandbox:de,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:ke,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:Eh}),gw=xt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:qe,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:de,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Dt,g2:Dt,glyphName:Dt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_h}),yh=xt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),bh=xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Eh}),kh=xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),vw=/[A-Z]/g,_d=/-[a-z]/g,_w=/^data[-\w.:]+$/i;function Ew(e,t){const n=Ca(t);let r=t,o=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_w.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_d,bw);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_d.test(a)){let s=a.replace(vw,yw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Qa}return new o(r,t)}function yw(e){return"-"+e.toLowerCase()}function bw(e){return e.charAt(1).toUpperCase()}const kw=ph([vh,pw,yh,bh,kh],"html");ph([vh,gw,yh,bh,kh],"svg");const es=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],Cw=["p","h1","h2","h3","h4","h5","h6","li"];function mn(e,t){return e.type===t||typeof e.type=="object"&&e.type.tag===t||e.tag===t}function ts(e){return mn(e,"text")||mn(e,Symbol.for("v-txt"))}function Ch(e){var t;return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof((t=e.children)==null?void 0:t.default)=="function"?e.children.default():[]}function pn(e){if(!e)return"";if(Array.isArray(e))return e.map(pn).join("");if(ts(e))return e.value||e.children||"";const t=Ch(e);return Array.isArray(t)?t.map(pn).filter(Boolean).join(""):""}function Nh(e,t=[]){if(Array.isArray(e))return e.flatMap(r=>Nh(r,t));let n=e;return t.some(r=>r==="*"||mn(e,r))&&(n=Ch(e)||e,!Array.isArray(n)&&Cw.some(r=>mn(e,r))&&(n=[n])),n}function wh(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(n=>wh(Nh(n,[t[0]]),t.slice(1))).filter(n=>!(ts(n)&&pn(n).trim()==="")):e}function Sh(e,t=[]){return typeof t=="string"&&(t=t.split(/[,\s]/).map(n=>n.trim()).filter(Boolean)),t.length?wh(e,t).reduce((n,r)=>(ts(r)?typeof n[n.length-1]=="string"?n[n.length-1]+=r.children:n.push(r.children):n.push(r),n),[]):e}function Nw(e,t){return t.reduce((n,r)=>{const o=ww(e,r);return o!==void 0&&(n[r]=o),n},{})}function ww(e,t){return t.split(".").reduce((n,r)=>n&&n[r],e)}const wa="default",Lh=/^@|^v-on:/,Th=/^:|^v-bind:/,Sw=/^v-model/,Lw=["select","textarea","input"],Tw=["math","svg"],Iw=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(e=>[e,`prose-${e}`])),Ow=i.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(e){var d,c,f,h,m,C,E;const t=(c=(d=i.getCurrentInstance())==null?void 0:d.appContext)==null?void 0:c.app,n=t==null?void 0:t.$nuxt,r=(n==null?void 0:n.$route)||(n==null?void 0:n._route),{mdc:o}=((f=n==null?void 0:n.$config)==null?void 0:f.public)||{},a={...(h=o==null?void 0:o.components)!=null&&h.prose&&e.prose!==!1?Iw:{},...((m=o==null?void 0:o.components)==null?void 0:m.map)||{},...i.toRaw(((E=(C=e.data)==null?void 0:C.mdc)==null?void 0:E.components)||{}),...e.components},s=i.computed(()=>{var p;const _=(((p=e.body)==null?void 0:p.children)||[]).map(v=>v.tag||v.type).filter(v=>!es.includes(v));return Array.from(new Set(_)).sort().join(".")}),l=i.reactive({...e.data});i.watch(()=>e.data,_=>{Object.assign(l,_)}),await Fw(e.body,{tags:a});function u(_,p){const v=_.split(".").length-1;return _.split(".").reduce((y,g,k)=>k==v&&y?(y[g]=p,y[g]):typeof y=="object"?y[g]:void 0,l)}return{tags:a,contentKey:s,route:r,runtimeData:l,updateRuntimeData:u}},render(e){var m,C;const{tags:t,tag:n,body:r,data:o,contentKey:a,route:s,unwrap:l,runtimeData:u,updateRuntimeData:d}=e;if(!r)return null;const c={...o,tags:t,$route:s,runtimeData:u,updateRuntimeData:d},f=n!==!1?Sa(n||((m=c.component)==null?void 0:m.name)||c.component||"div"):void 0;return f?i.h(f,{...(C=c.component)==null?void 0:C.props,class:e.class,...this.$attrs,key:a},{default:h}):h==null?void 0:h();function h(){const E=Ih(r,i.h,{documentMeta:c,parentScope:c,resolveComponent:Sa});return E!=null&&E.default?l?Sh(E.default(),typeof l=="string"?l.split(" "):["*"]):E.default():null}}});function Aw(e,t,n){const{documentMeta:r,parentScope:o,resolveComponent:a}=n;if(e.type==="text")return t(i.Text,e.value);if(e.type==="comment")return t(i.Comment,null,e.value);const s=e.tag,l=Ah(e,r.tags);if(e.tag==="binding")return Rw(e,t,r,o);const u=Oh(l)?f=>f:a;if(l==="script")return t("pre",{class:"script-to-pre"},`<script>
|
|
31
|
+
`.concat(g.code)},d=i.ref(null),c=i.computed(()=>{var g;return(g=r.schema.properties)==null?void 0:g.$examples}),f=i.computed(()=>{var g,k;return Object.fromEntries((k=(g=r.schema.properties)==null?void 0:g.$metrics)==null?void 0:k.map(N=>[N.name,{...N,name:void 0}]))}),{githubLight:h,githubDark:m,yaml:C,python:E,javascript:_,createJavaScriptRegexEngine:p,createHighlighterCore:v}=([t,n]=i.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),t=await t,n(),t);d.value=([t,n]=i.withAsyncContext(()=>v({themes:[r.darkMode?m:h],langs:[C,E,_],engine:p()})),t=await t,n(),t);const y="github-"+(r.darkMode?"dark":"light");return i.onMounted(()=>{l(),window.addEventListener("hashchange",l)}),i.onUnmounted(()=>{var g;window.removeEventListener("hashchange",l),(g=d.value)==null||g.dispose()}),(g,k)=>{var N,b,T,A,R,U;return i.openBlock(),i.createElementBlock("div",LN,[i.createElementVNode("div",null,[(N=g.schema.properties)!=null&&N.$beta?(i.openBlock(),i.createElementBlock("div",TN,k[0]||(k[0]=[i.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)]))):i.createCommentVNode("",!0),(b=g.schema.properties)!=null&&b.title?(i.openBlock(),i.createElementBlock("div",IN,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(T=g.schema.properties)!=null&&T.description?(i.openBlock(),i.createElementBlock("div",ON,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(pd,{highlighter:d.value,language:"yaml",theme:y,code:`type: "${g.pluginType}"`,key:g.pluginType},null,8,["highlighter","code"]))]),(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column gap-3",key:g.pluginType},[c.value?(i.openBlock(),i.createBlock(hn,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:i.withCtx(()=>[i.createElementVNode("div",AN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,(V,j)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:g.pluginType+"-"+j},[i.createElementVNode("div",RN,[i.createElementVNode("div",DN,[V.title?i.renderSlot(g.$slots,"markdown",{key:0,content:V.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):i.createCommentVNode("",!0)]),V.code?(i.openBlock(),i.createBlock(pd,{key:0,highlighter:d.value,language:V.lang??"yaml",theme:y,code:u(V)},null,8,["highlighter","language","code"])):i.createCommentVNode("",!0)]),j<c.value.length-1?(i.openBlock(),i.createElementBlock("hr",PN)):i.createCommentVNode("",!0)],64))),128))])]),_:3})):i.createCommentVNode("",!0),(A=g.schema.properties)!=null&&A.properties?(i.openBlock(),i.createBlock(en,{key:1,class:"plugin-section",properties:g.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":g.propsInitiallyExpanded,"force-include":g.forceIncludeProperties},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",BN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include"])):i.createCommentVNode("",!0),(R=g.schema.outputs)!=null&&R.properties&&Object.keys(g.schema.outputs.properties).length>0?(i.openBlock(),i.createBlock(en,{key:2,class:"plugin-section",properties:g.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",VN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),(U=g.schema.properties)!=null&&U.$metrics?(i.openBlock(),i.createBlock(en,{key:3,class:"plugin-section",properties:f.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",xN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),g.schema.definitions&&Object.keys(g.schema.definitions).length>0?(i.openBlock(),i.createBlock(hn,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":o.value,key:`definitions-${g.pluginType}-${s.value}`},{content:i.withCtx(()=>[i.createElementVNode("div",MN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(g.schema.definitions),([V,j])=>(i.openBlock(),i.createBlock(en,{properties:j.properties,"section-name":j.title??V.split("_")[0],href:V,"show-dynamic":!1,"initially-expanded":a.value.has(V),key:g.pluginType+"-"+V,class:"plugin-section nested-button-py-2",onExpand:Z=>{o.value=!0,a.value.add(V)}},{markdown:i.withCtx(({content:Z})=>[i.createElementVNode("div",$N,[i.renderSlot(g.$slots,"markdown",{content:Z},void 0,!0)])]),_:2},1032,["properties","section-name","href","initially-expanded","onExpand"]))),128))])]),_:3},8,["initially-expanded"])):i.createCommentVNode("",!0)]))])}}}),FN=K(qN,[["__scopeId","data-v-5953ec4c"]]),UN={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},HN=["aria-hidden","aria-label"],GN=["fill","width","height"],zN={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},jN={key:0};function WN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",zN,[n.title?(i.openBlock(),i.createElementBlock("title",jN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,GN))],16,HN)}const KN=K(UN,[["render",WN]]),YN=["href"],XN=["src","alt"],ZN=i.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const t=e,{path:n}=on.useRoute(),r=i.computed(()=>t.href===void 0?`${n}/${_t(t.text)}`:t.href);return(o,a)=>(i.openBlock(),i.createElementBlock("a",{href:r.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[i.createElementVNode("img",{src:o.iconB64Svg,alt:`${o.text} icon`},null,8,XN),i.createTextVNode(i.toDisplayString(o.text)+" ",1),i.createVNode(KN,{class:"ms-auto"})],8,YN))}}),gd=K(ZN,[["__scopeId","data-v-b787c0f3"]]),JN={class:"d-flex flex-column gap-4"},QN={key:1,class:"d-flex flex-column"},ew=["id"],tw={class:"d-flex flex-column"},nw=i.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const t=e,n=i.computed(()=>t.plugins.find(f=>t.subGroup===void 0?!0:_t(At(f))===t.subGroup)),r=i.computed(()=>{var f,h;return((f=n.value)==null?void 0:f.longDescription)??((h=n.value)==null?void 0:h.description)}),o=i.computed(()=>t.plugins.filter(f=>f.name.toLowerCase()===t.pluginName.toLowerCase()&&f.subGroup!==void 0)),a=f=>{let h=f.split(".");return h==null?void 0:h[h.length-1]},{path:s}=on.useRoute(),l=f=>`${s}/${_t(f)}`,u=f=>`${s}/${f}`;function d(f){return Object.fromEntries(Object.entries(f).filter(([h,m])=>nf(h,m)).map(([h,m])=>[h.replaceAll(/[A-Z]/g,C=>` ${C}`),m]))}const c=i.computed(()=>d(n.value));return(f,h)=>(i.openBlock(),i.createElementBlock("div",JN,[r.value!==void 0?i.renderSlot(f.$slots,"markdown",{key:0,content:r.value.replaceAll(/ *:(?![ /])/g,": ")}):i.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(i.openBlock(),i.createElementBlock("div",QN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,m=>(i.openBlock(),i.createBlock(gd,{id:`group-${i.unref(_t)(i.unref(At)(m))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[m.subGroup]??f.icons[m.group]),text:i.unref(At)(m),href:l(i.unref(At)(m)),key:i.unref(At)(m),class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:m})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:2},i.renderList(c.value,(m,C)=>(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[i.createElementVNode("h4",{id:`section-${i.unref(_t)(C)}`,class:"text-capitalize"},i.toDisplayString(C),9,ew),i.createElementVNode("div",tw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,E=>(i.openBlock(),i.createBlock(gd,{id:i.unref(_t)(E),"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[E]??f.icons[n.value.subGroup??n.value.group]??f.icons[n.value.group]),text:a(E),href:u(E),key:E,class:"text-capitalize",onClick:_=>f.$emit("goTo",{element:E})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),rw=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,iw=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ow=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function aw(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){sw(e);return}return t}function sw(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function lw(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!ow.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(rw.test(e)||iw.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,aw)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const uw=/\d/,cw=["-","_","/","."];function dw(e=""){if(!uw.test(e))return e!==e.toLowerCase()}function hh(e,t){const n=cw,r=[];if(!e||typeof e!="string")return r;let o="",a,s;for(const l of e){const u=n.includes(l);if(u===!0){r.push(o),o="",a=void 0;continue}const d=dw(l);if(s===!1){if(a===!1&&d===!0){r.push(o),o=l,a=d;continue}if(a===!0&&d===!1&&o.length>1){const c=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=c+l,a=d;continue}}o+=l,a=d,s=u}return r.push(o),r}function fw(e){return e?e[0].toUpperCase()+e.slice(1):""}function mh(e,t){return e?(Array.isArray(e)?e:hh(e)).map(n=>fw(n)).join(""):""}function hw(e,t){return e?(Array.isArray(e)?e:hh(e)).map(n=>n.toLowerCase()).join("-"):""}class zt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}zt.prototype.normal={};zt.prototype.property={};zt.prototype.space=void 0;function ph(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new zt(n,r,t)}function Ca(e){return e.toLowerCase()}class Ve{constructor(t,n){this.attribute=n,this.property=t}}Ve.prototype.attribute="";Ve.prototype.booleanish=!1;Ve.prototype.boolean=!1;Ve.prototype.commaOrSpaceSeparated=!1;Ve.prototype.commaSeparated=!1;Ve.prototype.defined=!1;Ve.prototype.mustUseProperty=!1;Ve.prototype.number=!1;Ve.prototype.overloadedBoolean=!1;Ve.prototype.property="";Ve.prototype.spaceSeparated=!1;Ve.prototype.space=void 0;let mw=0;const Q=wt(),ke=wt(),gh=wt(),x=wt(),de=wt(),Dt=wt(),qe=wt();function wt(){return 2**++mw}const Na=Object.freeze(Object.defineProperty({__proto__:null,boolean:Q,booleanish:ke,commaOrSpaceSeparated:qe,commaSeparated:Dt,number:x,overloadedBoolean:gh,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),aa=Object.keys(Na);class Qa extends Ve{constructor(t,n,r,o){let a=-1;if(super(t,n),vd(this,"space",o),typeof r=="number")for(;++a<aa.length;){const s=aa[a];vd(this,aa[a],(r&Na[s])===Na[s])}}}Qa.prototype.defined=!0;function vd(e,t,n){n&&(e[t]=n)}function xt(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new Qa(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ca(r)]=r,n[Ca(a.attribute)]=r}return new zt(t,n,e.space)}const vh=xt({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:de,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:x,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:de,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:ke,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function _h(e,t){return t in e?e[t]:t}function Eh(e,t){return _h(e,t.toLowerCase())}const pw=xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dt,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:Q,allowPaymentRequest:Q,allowUserMedia:Q,alt:null,as:null,async:Q,autoCapitalize:null,autoComplete:de,autoFocus:Q,autoPlay:Q,blocking:de,capture:null,charSet:null,checked:Q,cite:null,className:de,cols:x,colSpan:null,content:null,contentEditable:ke,controls:Q,controlsList:de,coords:x|Dt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:gh,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:de,height:x,hidden:Q,high:x,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:Q,inputMode:null,integrity:null,is:null,isMap:Q,itemId:null,itemProp:de,itemRef:de,itemScope:Q,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Q,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:Q,muted:Q,name:null,nonce:null,noModule:Q,noValidate:Q,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Q,optimum:x,pattern:null,ping:de,placeholder:null,playsInline:Q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Q,referrerPolicy:null,rel:de,required:Q,reversed:Q,rows:x,rowSpan:x,sandbox:de,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:ke,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:Eh}),gw=xt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:qe,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:de,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Dt,g2:Dt,glyphName:Dt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_h}),yh=xt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),bh=xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Eh}),kh=xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),vw=/[A-Z]/g,_d=/-[a-z]/g,_w=/^data[-\w.:]+$/i;function Ew(e,t){const n=Ca(t);let r=t,o=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_w.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_d,bw);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_d.test(a)){let s=a.replace(vw,yw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Qa}return new o(r,t)}function yw(e){return"-"+e.toLowerCase()}function bw(e){return e.charAt(1).toUpperCase()}const kw=ph([vh,pw,yh,bh,kh],"html");ph([vh,gw,yh,bh,kh],"svg");const es=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],Cw=["p","h1","h2","h3","h4","h5","h6","li"];function mn(e,t){return e.type===t||typeof e.type=="object"&&e.type.tag===t||e.tag===t}function ts(e){return mn(e,"text")||mn(e,Symbol.for("v-txt"))}function Ch(e){var t;return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof((t=e.children)==null?void 0:t.default)=="function"?e.children.default():[]}function pn(e){if(!e)return"";if(Array.isArray(e))return e.map(pn).join("");if(ts(e))return e.value||e.children||"";const t=Ch(e);return Array.isArray(t)?t.map(pn).filter(Boolean).join(""):""}function Nh(e,t=[]){if(Array.isArray(e))return e.flatMap(r=>Nh(r,t));let n=e;return t.some(r=>r==="*"||mn(e,r))&&(n=Ch(e)||e,!Array.isArray(n)&&Cw.some(r=>mn(e,r))&&(n=[n])),n}function wh(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(n=>wh(Nh(n,[t[0]]),t.slice(1))).filter(n=>!(ts(n)&&pn(n).trim()==="")):e}function Sh(e,t=[]){return typeof t=="string"&&(t=t.split(/[,\s]/).map(n=>n.trim()).filter(Boolean)),t.length?wh(e,t).reduce((n,r)=>(ts(r)?typeof n[n.length-1]=="string"?n[n.length-1]+=r.children:n.push(r.children):n.push(r),n),[]):e}function Nw(e,t){return t.reduce((n,r)=>{const o=ww(e,r);return o!==void 0&&(n[r]=o),n},{})}function ww(e,t){return t.split(".").reduce((n,r)=>n&&n[r],e)}const wa="default",Lh=/^@|^v-on:/,Th=/^:|^v-bind:/,Sw=/^v-model/,Lw=["select","textarea","input"],Tw=["math","svg"],Iw=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(e=>[e,`prose-${e}`])),Ow=i.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(e){var d,c,f,h,m,C,E;const t=(c=(d=i.getCurrentInstance())==null?void 0:d.appContext)==null?void 0:c.app,n=t==null?void 0:t.$nuxt,r=(n==null?void 0:n.$route)||(n==null?void 0:n._route),{mdc:o}=((f=n==null?void 0:n.$config)==null?void 0:f.public)||{},a={...(h=o==null?void 0:o.components)!=null&&h.prose&&e.prose!==!1?Iw:{},...((m=o==null?void 0:o.components)==null?void 0:m.map)||{},...i.toRaw(((E=(C=e.data)==null?void 0:C.mdc)==null?void 0:E.components)||{}),...e.components},s=i.computed(()=>{var p;const _=(((p=e.body)==null?void 0:p.children)||[]).map(v=>v.tag||v.type).filter(v=>!es.includes(v));return Array.from(new Set(_)).sort().join(".")}),l=i.reactive({...e.data});i.watch(()=>e.data,_=>{Object.assign(l,_)}),await Fw(e.body,{tags:a});function u(_,p){const v=_.split(".").length-1;return _.split(".").reduce((y,g,k)=>k==v&&y?(y[g]=p,y[g]):typeof y=="object"?y[g]:void 0,l)}return{tags:a,contentKey:s,route:r,runtimeData:l,updateRuntimeData:u}},render(e){var m,C;const{tags:t,tag:n,body:r,data:o,contentKey:a,route:s,unwrap:l,runtimeData:u,updateRuntimeData:d}=e;if(!r)return null;const c={...o,tags:t,$route:s,runtimeData:u,updateRuntimeData:d},f=n!==!1?Sa(n||((m=c.component)==null?void 0:m.name)||c.component||"div"):void 0;return f?i.h(f,{...(C=c.component)==null?void 0:C.props,class:e.class,...this.$attrs,key:a},{default:h}):h==null?void 0:h();function h(){const E=Ih(r,i.h,{documentMeta:c,parentScope:c,resolveComponent:Sa});return E!=null&&E.default?l?Sh(E.default(),typeof l=="string"?l.split(" "):["*"]):E.default():null}}});function Aw(e,t,n){const{documentMeta:r,parentScope:o,resolveComponent:a}=n;if(e.type==="text")return t(i.Text,e.value);if(e.type==="comment")return t(i.Comment,null,e.value);const s=e.tag,l=Ah(e,r.tags);if(e.tag==="binding")return Rw(e,t,r,o);const u=Oh(l)?f=>f:a;if(l==="script")return t("pre",{class:"script-to-pre"},`<script>
|
|
32
32
|
`+pn(e)+`
|
|
33
33
|
<\/script>`);const d=u(l);typeof d=="object"&&(d.tag=s);const c=Dw(e,r);return t(d,c,Ih(e,t,{documentMeta:r,parentScope:{...o,...c},resolveComponent:u}))}function Ih(e,t,n){const{documentMeta:r,parentScope:o,resolveComponent:a}=n,l=(e.children||[]).reduce((d,c)=>{if(!$w(c))return d[wa].children.push(c),d;const f=Mw(c);return d[f]=d[f]||{props:{},children:[]},c.type==="element"&&(d[f].props=c.props,d[f].children.push(...c.children||[])),d},{[wa]:{props:{},children:[]}});return Object.entries(l).reduce((d,[c,{props:f,children:h}])=>(h.length&&(d[c]=(m={})=>{const C=Nw(m,Object.keys(f||{}));let E=h.map(_=>Aw(_,t,{documentMeta:r,parentScope:{...o,...C},resolveComponent:a}));return f!=null&&f.unwrap&&(E=Sh(E,f.unwrap)),qw(E)}),d),{})}function Rw(e,t,n,r={}){var d,c;const o={...n.runtimeData,...r,$document:n,$doc:n},a=/\.|\[(\d+)\]/,l=((d=e.props)==null?void 0:d.value.trim().split(a).filter(Boolean)).reduce((f,h)=>{if(f&&h in f)return typeof f[h]=="function"?f[h]():f[h]},o),u=(c=e.props)==null?void 0:c.defaultValue;return t(i.Text,l??u??"")}function Dw(e,t){const{tag:n="",props:r={}}=e;return Object.keys(r).reduce(function(o,a){if(a==="__ignoreMap")return o;const s=r[a];if(Sw.test(a))return Pw(a,s,o,t,{native:Lw.includes(n)});if(a==="v-bind")return Bw(a,s,o,t);if(Lh.test(a))return Vw(a,s,o,t);if(Th.test(a))return xw(a,s,o,t);const{attribute:l}=Ew(kw,a);return Array.isArray(s)&&s.every(u=>typeof u=="string")?(o[l]=s.join(" "),o):(o[l]=s,o)},{})}function Pw(e,t,n,r,{native:o}){var u;const a=((u=e.match(/^v-model:([^=]+)/))==null?void 0:u[1])||"modelValue",s=o?"value":a,l=o?"onInput":`onUpdate:${a}`;return n[s]=Rn(t,r.runtimeData),n[l]=d=>{var c;r.updateRuntimeData(t,o?(c=d.target)==null?void 0:c.value:d)},n}function Bw(e,t,n,r){const o=Rn(t,r);return n=Object.assign(n,o),n}function Vw(e,t,n,r){return e=e.replace(Lh,""),n.on=n.on||{},n.on[e]=()=>Rn(t,r),n}function xw(e,t,n,r){return e=e.replace(Th,""),n[e]=Rn(t,r),n}const Sa=e=>{if(typeof e=="string"){if(es.includes(e))return e;const t=i.resolveComponent(mh(e),!1);return!e||(t==null?void 0:t.name)==="AsyncComponentWrapper"||typeof t=="string"?t:"setup"in t?i.defineAsyncComponent(()=>new Promise(n=>n(t))):t}return e};function Rn(e,t){const n=e.split(".").reduce((r,o)=>typeof r=="object"?r[o]:void 0,t);return typeof n>"u"?lw(e):n}function Mw(e){let t="";for(const n of Object.keys(e.props||{}))if(!(!n.startsWith("#")&&!n.startsWith("v-slot:"))){t=n.split(/[:#]/,2)[1];break}return t||wa}function $w(e){return e.tag==="template"}function Oh(e){return Tw.includes(e)}function qw(e){const t=[];for(const n of e){const r=t[t.length-1];n.type===i.Text&&(r==null?void 0:r.type)===i.Text?r.children=r.children+n.children:t.push(n)}return t}async function Fw(e,t){if(!e)return;const n=Array.from(new Set(r(e,t)));await Promise.all(n.map(async o=>{if(o!=null&&o.render||o!=null&&o.ssrRender||o!=null&&o.__ssrInlineRender)return;const a=Sa(o);a!=null&&a.__asyncLoader&&!a.__asyncResolved&&await a.__asyncLoader()}));function r(o,a){const s=o.tag;if(o.type==="text"||s==="binding"||o.type==="comment")return[];const l=Ah(o,a.tags);if(Oh(l))return[];const u=[];o.type!=="root"&&!es.includes(l)&&u.push(l);for(const d of o.children||[])u.push(...r(d,a));return u}}function Ah(e,t){var r;const n=e.tag;return!n||typeof((r=e.props)==null?void 0:r.__ignoreMap)<"u"?n:t[n]||t[mh(n)]||t[hw(e.tag)]||n}const Uw=i.defineComponent({__name:"MDCRenderer",setup(e){return(t,n)=>(i.openBlock(),i.createBlock(i.Suspense,null,{default:i.withCtx(()=>[i.createVNode(Ow,i.mergeProps(t.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=ct;exports.DependenciesNode=vE;exports.EVENTS=H;exports.MDCRenderer=Uw;exports.NODE_SIZES=et;exports.PluginIndex=nw;exports.SECTIONS=nt;exports.STATES=re;exports.SchemaToHtml=FN;exports.State=Ce;exports.TaskIcon=Ga;exports.Topology=ek;exports.Utils=ge;exports.VueFlowUtils=tn;exports.YamlUtils=Xh;exports.cssVariable=Fe;exports.editorViewTypes=zh;exports.executeFlowBehaviours=Wh;exports.getMDCParser=Bv;exports.isEntryAPluginElementPredicate=nf;exports.logDisplayTypes=Gh;exports.slugify=_t;exports.stateDisplayValues=Kh;exports.stateGlobalChartTypes=Hh;exports.storageKeys=jh;exports.subGroupName=At;
|
|
34
34
|
//# sourceMappingURL=kestra-index.cjs.js.map
|