@kestra-io/ui-libs 0.0.300 → 0.0.301

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.
@@ -1 +1 @@
1
- {"version":3,"file":"BasicNode.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/BasicNode.vue"],"names":[],"mappings":"AAqTI,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,GAAG,CAAC;IACX,aAAa,EAAE,GAAG,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvD,CAAC;AAoTN,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACzF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3D;IAAE,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1D;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"BasicNode.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/BasicNode.vue"],"names":[],"mappings":"AAuTI,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,GAAG,CAAC;IACX,aAAa,EAAE,GAAG,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvD,CAAC;AAoTN,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACzF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3D;IAAE,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1D;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -5,7 +5,7 @@
5
5
  ${u}`:c)}else throw i},onCacheKey:i=>Ni(n,o,i)}}function ic(t){if(D(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function sc(t,n,o,l){const{modifiers:r,pluralRules:a,messageResolver:i,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:d}=t,f={locale:n,modifiers:r,pluralRules:a,messages:(k,V)=>{let y=i(o,k);if(y==null&&(d||V)){const[,,L]=wl(d||t,k,n,s,c,u);y=i(L,k)}if(D(y)||we(y)){let L=!1;const E=Ll(t,k,n,y,k,()=>{L=!0});return L?Oo:E}else return Se(y)?y:Oo}};return t.processor&&(f.processor=t.processor),l.list&&(f.list=l.list),l.named&&(f.named=l.named),ce(l.plural)&&(f.pluralIndex=l.plural),f}ss();const cc="11.2.8";function uc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ke().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ke().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ke().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ke().__INTLIFY_PROD_DEVTOOLS__=!1)}const de={UNEXPECTED_RETURN_TYPE:bs,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function gt(t,...n){return at(t,null,process.env.NODE_ENV!=="production"?{messages:dc,args:n}:void 0)}const dc={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},_n=Pe("__translateVNode"),Nn=Pe("__datetimeParts"),Sn=Pe("__numberParts"),bn=Pe("__enableEmitter"),wn=Pe("__disableEmitter"),mc=Pe("__setPluralRules"),Bl=Pe("__injectWithOption"),Ln=Pe("__dispose"),Te={FALLBACK_TO_ROOT:Rs,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},fc={[Te.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Te.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Te.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Te.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
6
6
  About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Te.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Te.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Pt(t,...n){return zt(fc[t],...n)}function ht(t){if(!Y(t)||we(t))return t;for(const n in t)if(be(t,n))if(!n.includes("."))Y(t[n])&&ht(t[n]);else{const o=n.split("."),l=o.length-1;let r=t,a=!1;for(let i=0;i<l;i++){if(o[i]==="__proto__")throw new Error(`unsafe key: ${o[i]}`);if(o[i]in r||(r[o[i]]=X()),!Y(r[o[i]])){process.env.NODE_ENV!=="production"&&Ve(Pt(Te.IGNORE_OBJ_FLATTEN,{key:o[i]})),a=!0;break}r=r[o[i]]}if(a||(we(r)?pl.includes(o[l])||delete t[n]:(r[o[l]]=t[n],delete t[n])),!we(r)){const i=r[o[l]];Y(i)&&ht(i)}}return t}function Tl(t,n){const{messages:o,__i18n:l,messageResolver:r,flatJson:a}=n,i=K(o)?o:ie(l)?X():{[t]:X()};if(ie(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(i[c]=i[c]||X(),It(u,i[c])):It(u,i)}else D(s)&&It(JSON.parse(s),i)}),r==null&&a)for(const s in i)be(i,s)&&ht(i[s]);return i}function Vl(t){return t.type}function pc(t,n,o){let l=Y(n.messages)?n.messages:X();"__i18nGlobal"in o&&(l=Tl(t.locale.value,{messages:l,__i18n:o.__i18nGlobal}));const r=Object.keys(l);r.length&&r.forEach(a=>{t.mergeLocaleMessage(a,l[a])});{if(Y(n.datetimeFormats)){const a=Object.keys(n.datetimeFormats);a.length&&a.forEach(i=>{t.mergeDateTimeFormat(i,n.datetimeFormats[i])})}if(Y(n.numberFormats)){const a=Object.keys(n.numberFormats);a.length&&a.forEach(i=>{t.mergeNumberFormat(i,n.numberFormats[i])})}}}function Po(t){return e.createVNode(e.Text,null,t,0)}function Un(){const t="currentInstance";return t in cn?cn[t]:cn.getCurrentInstance()}const Ro="__INTLIFY_META__",Mo=()=>[],gc=()=>!1;let Fo=0;function Uo(t){return((n,o,l,r)=>t(o,l,Un()||void 0,r))}const hc=()=>{const t=Un();let n=null;return t&&(n=Vl(t)[Ro])?{[Ro]:n}:null};function Ec(t={}){const{__root:n,__injectWithOption:o}=t,l=n===void 0,r=t.flatJson,a=xe?e.ref:e.shallowRef;let i=ae(t.inheritLocale)?t.inheritLocale:!0;const s=a(n&&i?n.locale.value:D(t.locale)?t.locale:Ot),c=a(n&&i?n.fallbackLocale.value:D(t.fallbackLocale)||ie(t.fallbackLocale)||K(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:s.value),u=a(Tl(s.value,t)),d=a(K(t.datetimeFormats)?t.datetimeFormats:{[s.value]:{}}),h=a(K(t.numberFormats)?t.numberFormats:{[s.value]:{}});let f=n?n.missingWarn:ae(t.missingWarn)||Dt(t.missingWarn)?t.missingWarn:!0,k=n?n.fallbackWarn:ae(t.fallbackWarn)||Dt(t.fallbackWarn)?t.fallbackWarn:!0,V=n?n.fallbackRoot:ae(t.fallbackRoot)?t.fallbackRoot:!0,y=!!t.fallbackFormat,L=te(t.missing)?t.missing:null,m=te(t.missing)?Uo(t.missing):null,E=te(t.postTranslation)?t.postTranslation:null,N=n?n.warnHtmlMessage:ae(t.warnHtmlMessage)?t.warnHtmlMessage:!0,v=!!t.escapeParameter;const b=n?n.modifiers:K(t.modifiers)?t.modifiers:{};let $=t.pluralRules||n&&n.pluralRules,_;_=(()=>{l&&Lo(null);const C={version:cc,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:b,pluralRules:$,missing:m===null?void 0:m,missingWarn:f,fallbackWarn:k,fallbackFormat:y,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:N,escapeParameter:v,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=d.value,C.numberFormats=h.value,C.__datetimeFormatters=K(_)?_.__datetimeFormatters:void 0,C.__numberFormatters=K(_)?_.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(C.__v_emitter=K(_)?_.__v_emitter:void 0);const B=Ys(C);return l&&Lo(B),B})(),mt(_,s.value,c.value);function U(){return[s.value,c.value,u.value,d.value,h.value]}const Q=e.computed({get:()=>s.value,set:C=>{_.locale=C,s.value=C}}),ge=e.computed({get:()=>c.value,set:C=>{_.fallbackLocale=C,c.value=C,mt(_,s.value,C)}}),Z=e.computed(()=>u.value),Re=e.computed(()=>d.value),Je=e.computed(()=>h.value);function x(){return te(E)?E:null}function I(C){E=C,_.postTranslation=C}function H(){return L}function P(C){C!==null&&(m=Uo(C)),L=C,_.missing=m}function $e(C,B){return C!=="translate"||!B.resolvedMessage}const me=(C,B,q,re,We,Nt)=>{U();let Qe;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(_.fallbackContext=n?Ks():void 0),Qe=C(_)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(_.fallbackContext=void 0)}if(q!=="translate exists"&&ce(Qe)&&Qe===jt||q==="translate exists"&&!Qe){const[je,Tr]=B();if(process.env.NODE_ENV!=="production"&&n&&D(je)&&$e(q,Tr)&&(V&&(Gt(k,je)||Cl(f,je))&&Ve(Pt(Te.FALLBACK_TO_ROOT,{key:je,type:q})),process.env.NODE_ENV!=="production")){const{__v_emitter:ao}=_;ao&&V&&ao.emit("fallback",{type:q,key:je,to:"global",groupId:`${q}:${je}`})}return n&&V?re(n):We(je)}else{if(Nt(Qe))return Qe;throw gt(de.UNEXPECTED_RETURN_TYPE)}};function He(...C){return me(B=>Reflect.apply(xo,null,[B,...C]),()=>Cn(...C),"translate",B=>Reflect.apply(B.t,B,[...C]),B=>B,B=>D(B))}function Zt(...C){const[B,q,re]=C;if(re&&!Y(re))throw gt(de.INVALID_ARGUMENT);return He(B,q,ue({resolvedMessage:!0},re||{}))}function Jt(...C){return me(B=>Reflect.apply(Vo,null,[B,...C]),()=>yn(...C),"datetime format",B=>Reflect.apply(B.d,B,[...C]),()=>xt,B=>D(B)||ie(B))}function Qt(...C){return me(B=>Reflect.apply(Io,null,[B,...C]),()=>vn(...C),"number format",B=>Reflect.apply(B.n,B,[...C]),()=>xt,B=>D(B)||ie(B))}function en(C){return C.map(B=>D(B)||ce(B)||ae(B)?Po(String(B)):B)}const tn={normalize:en,interpolate:C=>C,type:"vnode"};function Ct(...C){return me(B=>{let q;const re=B;try{re.processor=tn,q=Reflect.apply(xo,null,[re,...C])}finally{re.processor=null}return q},()=>Cn(...C),"translate",B=>B[_n](...C),B=>[Po(B)],B=>ie(B))}function nn(...C){return me(B=>Reflect.apply(Io,null,[B,...C]),()=>vn(...C),"number format",B=>B[Sn](...C),Mo,B=>D(B)||ie(B))}function _t(...C){return me(B=>Reflect.apply(Vo,null,[B,...C]),()=>yn(...C),"datetime format",B=>B[Nn](...C),Mo,B=>D(B)||ie(B))}function on(C){$=C,_.pluralRules=$}function ln(C,B){return me(()=>{if(!C)return!1;const q=D(B)?B:s.value,re=ze(q),We=_.messageResolver(re,C);return we(We)||Se(We)||D(We)},()=>[C],"translate exists",q=>Reflect.apply(q.te,q,[C,B]),gc,q=>ae(q))}function ct(C){let B=null;const q=gl(_,c.value,s.value);for(let re=0;re<q.length;re++){const We=u.value[q[re]]||{},Nt=_.messageResolver(We,C);if(Nt!=null){B=Nt;break}}return B}function ut(C){const B=ct(C);return B??(n?n.tm(C)||{}:{})}function ze(C){return u.value[C]||{}}function dt(C,B){if(r){const q={[C]:B};for(const re in q)be(q,re)&&ht(q[re]);B=q[C]}u.value[C]=B,_.messages=u.value}function rn(C,B){u.value[C]=u.value[C]||{};const q={[C]:B};if(r)for(const re in q)be(q,re)&&ht(q[re]);B=q[C],It(B,u.value[C]),_.messages=u.value}function p(C){return d.value[C]||{}}function g(C,B){d.value[C]=B,_.datetimeFormats=d.value,$o(_,C,B)}function w(C,B){d.value[C]=ue(d.value[C]||{},B),_.datetimeFormats=d.value,$o(_,C,B)}function O(C){return h.value[C]||{}}function ee(C,B){h.value[C]=B,_.numberFormats=h.value,Ao(_,C,B)}function le(C,B){h.value[C]=ue(h.value[C]||{},B),_.numberFormats=h.value,Ao(_,C,B)}Fo++,n&&xe&&(e.watch(n.locale,C=>{i&&(s.value=C,_.locale=C,mt(_,s.value,c.value))}),e.watch(n.fallbackLocale,C=>{i&&(c.value=C,_.fallbackLocale=C,mt(_,s.value,c.value))}));const G={id:Fo,locale:Q,fallbackLocale:ge,get inheritLocale(){return i},set inheritLocale(C){i=C,C&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,mt(_,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Z,get modifiers(){return b},get pluralRules(){return $||{}},get isGlobal(){return l},get missingWarn(){return f},set missingWarn(C){f=C,_.missingWarn=f},get fallbackWarn(){return k},set fallbackWarn(C){k=C,_.fallbackWarn=k},get fallbackRoot(){return V},set fallbackRoot(C){V=C},get fallbackFormat(){return y},set fallbackFormat(C){y=C,_.fallbackFormat=y},get warnHtmlMessage(){return N},set warnHtmlMessage(C){N=C,_.warnHtmlMessage=C},get escapeParameter(){return v},set escapeParameter(C){v=C,_.escapeParameter=C},t:He,getLocaleMessage:ze,setLocaleMessage:dt,mergeLocaleMessage:rn,getPostTranslationHandler:x,setPostTranslationHandler:I,getMissingHandler:H,setMissingHandler:P,[mc]:on};return G.datetimeFormats=Re,G.numberFormats=Je,G.rt=Zt,G.te=ln,G.tm=ut,G.d=Jt,G.n=Qt,G.getDateTimeFormat=p,G.setDateTimeFormat=g,G.mergeDateTimeFormat=w,G.getNumberFormat=O,G.setNumberFormat=ee,G.mergeNumberFormat=le,G[Bl]=o,G[_n]=Ct,G[Nn]=_t,G[Sn]=nn,process.env.NODE_ENV!=="production"&&(G[bn]=C=>{_.__v_emitter=C},G[wn]=()=>{_.__v_emitter=void 0}),G}function Ho(t,n){}const Hn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function kc({slots:t},n){return n.length===1&&n[0]==="default"?(t.default?t.default():[]).reduce((l,r)=>[...l,...r.type===e.Fragment?r.children:[r]],[]):n.reduce((o,l)=>{const r=t[l];return r&&(o[l]=r()),o},X())}function $l(){return e.Fragment}ue({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>ce(t)||!isNaN(t)}},Hn);function yc(t){return ie(t)&&!D(t[0])}function Il(t,n,o,l){const{slots:r,attrs:a}=n;return()=>{const i={part:!0};let s=X();t.locale&&(i.locale=t.locale),D(t.format)?i.key=t.format:Y(t.format)&&(D(t.format.key)&&(i.key=t.format.key),s=Object.keys(t.format).reduce((f,k)=>o.includes(k)?ue(X(),f,{[k]:t.format[k]}):f,X()));const c=l(t.value,i,s);let u=[i.key];ie(c)?u=c.map((f,k)=>{const V=r[f.type],y=V?V({[f.type]:f.value,index:k,parts:c}):[f.value];return yc(y)&&(y[0].key=`${f.type}-${k}`),y}):D(c)&&(u=[c]);const d=ue(X(),a),h=D(t.tag)||Y(t.tag)?t.tag:$l();return e.h(h,d,u)}}ue({value:{type:Number,required:!0},format:{type:[String,Object]}},Hn);const vc=Pe("global-vue-i18n");function yt(t={}){const n=Un();if(n==null)throw gt(de.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw gt(de.NOT_INSTALLED);const o=Cc(n),l=Nc(o),r=Vl(n),a=_c(t,r);if(a==="global")return pc(l,t,r),l;if(a==="parent"){let c=Sc(o,n,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ve(Pt(Te.NOT_FOUND_PARENT_SCOPE)),c=l),c}const i=o;let s=i.__getInstance(n);if(s==null){const c=ue({},t);"__i18n"in r&&(c.__i18n=r.__i18n),l&&(c.__root=l),s=Ec(c),i.__composerExtend&&(s[Ln]=i.__composerExtend(s)),wc(i,n,s),i.__setInstance(n,s)}else process.env.NODE_ENV!=="production"&&a==="local"&&Ve(Pt(Te.DUPLICATE_USE_I18N_CALLING));return s}function Cc(t){const n=e.inject(t.isCE?vc:t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw gt(t.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return n}function _c(t,n){return Wt(t)?"__i18n"in n?"local":"global":t.useScope?t.useScope:"local"}function Nc(t){return t.mode==="composition"?t.global:t.global.__composer}function Sc(t,n,o=!1){let l=null;const r=n.root;let a=bc(n,o);for(;a!=null;){const i=t;if(t.mode==="composition")l=i.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(a);s!=null&&(l=s.__composer,o&&l&&!l[Bl]&&(l=null))}if(l!=null||r===a)break;a=a.parent}return l}function bc(t,n=!1){return t==null?null:n&&t.vnode.ctx||t.parent}function wc(t,n,o){let l=null;e.onMounted(()=>{if(process.env.NODE_ENV!=="production"){n.__VUE_I18N__=o,l=Ii();const r=o;r[bn]&&r[bn](l),l.on("*",Ho)}},n),e.onUnmounted(()=>{const r=o;process.env.NODE_ENV!=="production"&&(l&&l.off("*",Ho),r[wn]&&r[wn](),delete n.__VUE_I18N__),t.__deleteInstance(n);const a=r[Ln];a&&(a(),delete r[Ln])},n)}ue({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Hn);uc();Hs(vs);zs(Ps);Ws(gl);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Ke();t.__INTLIFY__=!0,Cs(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const W=e.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(t){let n;typeof document<"u"&&(n=import("bootstrap"));const o=t,l=e.ref(),r=e.ref(),a=e.ref();return e.onMounted(async()=>{e.nextTick(async()=>{const i=await n;typeof document<"u"&&r.value&&a.value&&(l.value=new i.Tooltip(r.value,{trigger:"hover",html:!0,placement:o.placement,title:a.value.innerHTML,customClass:"tooltip-custom"}))})}),e.onBeforeUnmount(async()=>{l.value?.dispose()}),(i,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("span",e.mergeProps({ref_key:"$tooltip",ref:r},i.$attrs),[e.renderSlot(i.$slots,"default")],16),e.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:a},[e.renderSlot(i.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],512)],64))}}),Lc=e.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(t){const n=t,o=e.computed(()=>`data:image/svg+xml;base64,${a.value}`),l=e.computed(()=>({flowable:i.value?i.value.flowable:!1})),r=e.computed(()=>({backgroundImage:`url(${o.value})`})),a=e.computed(()=>{let c=i.value&&i.value.icon?window.atob(i.value.icon):void 0;c||(c='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');const u=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;let d=_e(u?"--bs-gray-900":"--bs-black")??"#FFFFFF";return n.theme&&(d=(n.theme==="dark"?_e("--bs-gray-900"):_e("--bs-black"))??d),n.variable&&(d=_e(n.variable)??d),c=c.replace(/currentColor/g,d),window.btoa(c)}),i=e.computed(()=>n.cls?(n.icons||{})[s(n.cls)]:n.customIcon);function s(c){return c.includes("$")?c.substring(0,c.indexOf("$")):c}return(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([l.value,"wrapper"])},[t.onlyIcon?(e.openBlock(),e.createElementBlock("div",{key:1,class:"icon",style:e.normalizeStyle(r.value)},null,4)):(e.openBlock(),e.createBlock(W,{key:0,title:t.cls},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"icon",style:e.normalizeStyle(r.value)},null,4)]),_:1},8,["title"]))],2))}}),zn=A(Lc,[["__scopeId","data-v-23f8d853"]]),Bc={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tc=["aria-hidden","aria-label"],Vc=["fill","width","height"],$c={d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"},Ic={key:0};function Ac(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon open-in-new-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",$c,[o.title?(e.openBlock(),e.createElementBlock("title",Ic,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Vc))],16,Tc)}const Al=A(Bc,[["render",Ac]]),Dc={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Oc=["aria-hidden","aria-label"],xc=["fill","width","height"],Pc={d:"M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z"},Rc={key:0};function Mc(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-all-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Pc,[o.title?(e.openBlock(),e.createElementBlock("title",Rc,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,xc))],16,Oc)}const Fc=A(Dc,[["render",Mc]]),Uc={class:"dependency-text d-flex flex-column flex-grow-1"},Hc={class:"dependency-flow-text text-truncate"},zc={class:"dependency-namespace-text text-truncate"},Wc={class:"text-white top-button-div"},jc=e.defineComponent({name:"Dependencies",inheritAttrs:!1,__name:"DependenciesNode",props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0}},emits:[S.EVENTS.EXPAND_DEPENDENCIES,S.EVENTS.OPEN_LINK,S.EVENTS.MOUSE_OVER,S.EVENTS.MOUSE_LEAVE],setup(t,{emit:n}){const o=n,{t:l}=yt(),r=e.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
7
7
  <path fill-rule="evenodd" clip-rule="evenodd" d="M4.34546 9.63757C4.74074 10.5277 5.31782 11.3221 6.03835 11.9681L7.03434 10.8209C6.4739 10.3185 6.02504 9.70059 5.71758 9.00824C5.41012 8.3159 5.25111 7.56496 5.25111 6.80532C5.25111 6.04568 5.41012 5.29475 5.71758 4.6024C6.02504 3.91006 6.4739 3.29216 7.03434 2.78977L6.03835 1.64258C5.31782 2.28851 4.74074 3.08293 4.34546 3.97307C3.95019 4.86321 3.74575 5.82867 3.74575 6.80532C3.74575 7.78197 3.95019 8.74744 4.34546 9.63757ZM16.955 4.38931C17.4802 3.97411 18.1261 3.74777 18.7913 3.74576C19.5894 3.74576 20.3547 4.06807 20.919 4.64177C21.4833 5.21548 21.8004 5.9936 21.8004 6.80494C21.8004 7.61628 21.4833 8.3944 20.919 8.96811C20.3547 9.54181 19.5894 9.86412 18.7913 9.86412C18.2559 9.86126 17.7312 9.71144 17.2725 9.43048L12.3325 14.4529L11.2688 13.3715L16.2088 8.34906C16.0668 8.10583 15.9592 7.84348 15.8891 7.56973H11.2688V6.04014H15.8891C16.055 5.38511 16.4298 4.80451 16.955 4.38931ZM17.9555 8.07674C18.2029 8.24482 18.4938 8.33453 18.7913 8.33453C19.1902 8.33412 19.5727 8.17284 19.8548 7.88607C20.1368 7.59931 20.2955 7.21049 20.2959 6.80494C20.2959 6.50241 20.2076 6.20668 20.0423 5.95514C19.877 5.70361 19.642 5.50756 19.3671 5.39178C19.0922 5.27601 18.7897 5.24572 18.4978 5.30474C18.206 5.36376 17.9379 5.50944 17.7275 5.72336C17.5171 5.93727 17.3738 6.20982 17.3157 6.50653C17.2577 6.80324 17.2875 7.11079 17.4014 7.39029C17.5152 7.66978 17.7081 7.90867 17.9555 8.07674ZM3.74621 15.2177V16.7473H7.19606L2.2417 21.7842L3.30539 22.8656L8.25975 17.8287V21.336H9.76427V15.2177H3.74621ZM15.7823 18.2769H12.7733V19.8064H15.7823V22.1008H21.8004V15.9825H15.7823V18.2769ZM17.2868 20.5712V17.5121H20.2959V20.5712H17.2868ZM8.02885 9.67292C7.62863 9.31407 7.30809 8.87275 7.08853 8.37827C6.86897 7.88378 6.75542 7.34747 6.75542 6.80494C6.75542 6.26241 6.86897 5.72609 7.08853 5.23161C7.30809 4.73713 7.62863 4.29581 8.02885 3.93696L9.02484 5.08415C8.78458 5.29946 8.59215 5.5643 8.46034 5.86106C8.32853 6.15782 8.26035 6.47971 8.26035 6.80532C8.26035 7.13094 8.32853 7.45282 8.46034 7.74958C8.59215 8.04634 8.78458 8.31118 9.02484 8.52649L8.02885 9.67292Z" fill="white"/>
8
- </svg>`));return(a,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(oe.Handle),{type:"source",position:t.sourcePosition},null,8,["position"]),e.createElementVNode("div",{class:e.normalizeClass([[`border-${t.data.color}`],"dependency-node-wrapper rounded-3 border"])},[e.createVNode(zn,{"custom-icon":{icon:r.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),e.createElementVNode("div",Uc,[e.createElementVNode("div",Hc,[e.createVNode(W,{title:t.data.flowId},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.data.flowId),1)]),_:1},8,["title"])]),e.createElementVNode("div",zc,[e.createVNode(W,{title:t.data.namespace},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.data.namespace),1)]),_:1},8,["title"])])]),e.createElementVNode("div",Wc,[e.renderSlot(a.$slots,"badge-button-before",{},void 0,!0),t.data.link?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:i[0]||(i[0]=s=>a.$emit(e.unref(S.EVENTS).OPEN_LINK,t.data))},[e.createVNode(W,{title:e.unref(l)("open")},{default:e.withCtx(()=>[e.createVNode(Al,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),t.data.expandEnabled?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:i[1]||(i[1]=s=>o(e.unref(S.EVENTS).EXPAND_DEPENDENCIES,t.data))},[e.createVNode(W,{title:e.unref(l)("expand")},{default:e.withCtx(()=>[e.createVNode(Fc,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"badge-button-after",{},void 0,!0)])],2),e.createVNode(e.unref(oe.Handle),{type:"target",position:t.targetPosition},null,8,["position"])],64))}}),Gc=A(jc,[["__scopeId","data-v-2271d5b0"]]);var Oe=(t=>(t.Lines="lines",t.Dots="dots",t))(Oe||{});const Dl=function({dimensions:t,size:n,color:o}){return e.h("path",{stroke:o,"stroke-width":n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})},Ol=function({radius:t,color:n}){return e.h("circle",{cx:t,cy:t,r:t,fill:n})};Oe.Lines+"",Oe.Dots+"";const Kc={[Oe.Dots]:"#81818a",[Oe.Lines]:"#eee"},Yc=["id","x","y","width","height","patternTransform"],qc={key:2,height:"100",width:"100"},Xc=["fill"],Zc=["x","y","fill"],Jc={name:"Background",compatConfig:{MODE:3}},Qc=e.defineComponent({...Jc,props:{id:{},variant:{default:()=>Oe.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(t){const{id:n,viewport:o}=oe.useVueFlow(),l=e.computed(()=>{const i=o.value.zoom,[s,c]=Array.isArray(t.gap)?t.gap:[t.gap,t.gap],u=[s*i||1,c*i||1],d=t.size*i,[h,f]=Array.isArray(t.offset)?t.offset:[t.offset,t.offset],k=[h*i||1+u[0]/2,f*i||1+u[1]/2];return{scaledGap:u,offset:k,size:d}}),r=e.toRef(()=>`pattern-${n}${t.id?`-${t.id}`:""}`),a=e.toRef(()=>t.color||t.patternColor||Kc[t.variant||Oe.Dots]);return(i,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:e.normalizeStyle({height:`${i.height>100?100:i.height}%`,width:`${i.width>100?100:i.width}%`})},[e.renderSlot(i.$slots,"pattern-container",{id:r.value},()=>[e.createElementVNode("pattern",{id:r.value,x:e.unref(o).x%l.value.scaledGap[0],y:e.unref(o).y%l.value.scaledGap[1],width:l.value.scaledGap[0],height:l.value.scaledGap[1],patternTransform:`translate(-${l.value.offset[0]},-${l.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[e.renderSlot(i.$slots,"pattern",{},()=>[i.variant===e.unref(Oe).Lines?(e.openBlock(),e.createBlock(e.unref(Dl),{key:0,size:i.lineWidth,color:a.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):i.variant===e.unref(Oe).Dots?(e.openBlock(),e.createBlock(e.unref(Ol),{key:1,color:a.value,radius:l.value.size/2},null,8,["color","radius"])):e.createCommentVNode("",!0),i.bgColor?(e.openBlock(),e.createElementBlock("svg",qc,[e.createElementVNode("rect",{width:"100%",height:"100%",fill:i.bgColor},null,8,Xc)])):e.createCommentVNode("",!0)])],8,Yc)]),e.createElementVNode("rect",{x:i.x,y:i.y,width:"100%",height:"100%",fill:`url(#${r.value})`},null,8,Zc),e.renderSlot(i.$slots,"default",{id:r.value})],4))}}),eu={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},tu=["aria-hidden","aria-label"],nu=["fill","width","height"],ou={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},lu={key:0};function ru(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",ou,[o.title?(e.openBlock(),e.createElementBlock("title",lu,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,nu))],16,tu)}const au=A(eu,[["render",ru]]),iu={class:"top-button-div text-white d-flex"},su={inheritAttrs:!1,components:{Tooltip:W},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){const t=this.data.taskNode;if(t?.type?.endsWith("SubflowGraphTask")){const n=t.task.subflowId??t.task;return n.namespace+" "+n.flowId}return S.Utils.afterLastDot(this.id)}}},cu=Object.assign(su,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:oe.Position,default:void 0},targetPosition:{type:oe.Position,default:void 0},id:{type:String,default:void 0}},emits:[S.EVENTS.COLLAPSE],setup(t,{emit:n}){const o=t,l=n,r=()=>{l(S.EVENTS.COLLAPSE,o.id)};return(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.createElementVNode("span",{class:e.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${t.data.color}`]])},e.toDisplayString(a.clusterName),3),e.createElementVNode("div",iu,[t.data.collapsable?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:i[0]||(i[0]=s=>r())},[e.createVNode(W,{title:a.$t("collapse")},{default:e.withCtx(()=>[e.createVNode(au,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0)])],2))}}),uu=A(cu,[["__scopeId","data-v-0c251e77"]]),du={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},mu=["aria-hidden","aria-label"],fu=["fill","width","height"],pu={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,2Z"},gu={key:0};function hu(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon circle-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",pu,[o.title?(e.openBlock(),e.createElementBlock("title",gu,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,fu))],16,mu)}const xl=A(du,[["render",hu]]),Eu={name:"Dot",components:{Handle:oe.Handle,CircleIcon:xl},inheritAttrs:!1,props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},label:{type:String,default:void 0}},computed:{classes(){return{"unused-path":this.data.unused,[S.Utils.afterLastDot(this.data.node.type)]:!0}}}},ku=Object.assign(Eu,{setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.classes)},[e.createVNode(e.unref(oe.Handle),{type:"source",class:"custom-handle",position:t.sourcePosition},null,8,["position"]),e.createElementVNode("div",{class:e.normalizeClass(["dot",n.classes])},[e.createVNode(xl,{class:e.normalizeClass([{"text-danger":t.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),e.createVNode(e.unref(oe.Handle),{type:"target",class:"custom-handle",position:t.targetPosition},null,8,["position"])],2))}}),yu=A(ku,[["__scopeId","data-v-666f472b"]]),vu={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cu=["aria-hidden","aria-label"],_u=["fill","width","height"],Nu={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Su={key:0};function bu(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Nu,[o.title?(e.openBlock(),e.createElementBlock("title",Su,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,_u))],16,Cu)}const wu=A(vu,[["render",bu]]),Lu={class:"add-task-div rounded d-flex justify-content-center align-items-center"},Bu=e.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",Lu,[t.addTask?(e.openBlock(),e.createBlock(wu,{key:0,alt:"add task icon"})):e.createCommentVNode("",!0)]))}}),Tu=A(Bu,[["__scopeId","data-v-536dd646"]]),Vu=["id","d","marker-end"],zo=14,$u=e.defineComponent({inheritAttrs:!1,__name:"EdgeNode",props:{id:{type:String,default:void 0},data:{type:Object,default:void 0},sourceX:{type:Number,default:void 0},sourceY:{type:Number,default:void 0},targetX:{type:Number,default:void 0},targetY:{type:Number,default:void 0},markerEnd:{type:String,default:void 0},sourcePosition:{type:String,default:void 0},targetPosition:{type:String,default:void 0}},setup(t){const n=t,o=e.computed(()=>n.data?{"vue-flow__edge-path":!0,["stroke-"+n.data.color]:n.data.color,"unused-path":n.data.unused}:{});let l=u=>u;try{const{t:u}=yt();l=u}catch{}const r=e.computed(()=>{const{haveAdd:u}=n.data??{};return`${l("add task")} ${u?.length===2?`${l(u[1])} ${u[0]}`:""}`.trim()}),a=e.computed(()=>oe.getSmoothStepPath(n)),i=e.computed(()=>{const u=(n.targetX??0)-(n.sourceX??0),d=(n.targetY??0)-(n.sourceY??0);return Math.abs(d)>=Math.abs(u)}),s=e.computed(()=>{if(!i.value)return 0;const u=n.data?.edgeBoundary;return u==="top"?-zo:u==="bottom"?zo:0}),c=e.computed(()=>0);return(u,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?.length?(e.openBlock(),e.createElementBlock("path",{key:0,id:t.id,class:e.normalizeClass(o.value),style:e.normalizeStyle(t.data.haveDashArray?{strokeDasharray:"2"}:{}),d:a.value[0],"marker-end":t.markerEnd},null,14,Vu)):e.createCommentVNode("",!0),a.value?.length?(e.openBlock(),e.createBlock(e.unref(oe.EdgeLabelRenderer),{key:1,style:{"z-index":"10"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${a.value[1]+c.value}px,${a.value[2]+s.value}px)`})},[e.createVNode(W,{title:r.value},{default:e.withCtx(()=>[t.data.haveAdd?(e.openBlock(),e.createBlock(Tu,{key:0,"add-task":!0,onClick:d[0]||(d[0]=h=>u.$emit(e.unref(S.EVENTS).ADD_TASK,t.data.haveAdd)),class:e.normalizeClass({"text-danger":t.data.color})},null,8,["class"])):e.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})):e.createCommentVNode("",!0)],64))}}),Iu=A($u,[["__scopeId","data-v-575e9f2a"]]),Au=["innerHTML"],Du=e.defineComponent({__name:"Duration",props:{histories:{}},setup(t){const n=t;e.watch(()=>n.histories,(k,V)=>{k?.[0]?.date?.valueOf()!==V?.[0]?.date?.valueOf()&&s()});const o=e.ref(""),l=e.ref();e.onMounted(()=>{s()});const r=e.computed(()=>n.histories?.[0]?.date?.valueOf()??null),a=e.computed(()=>n.histories?.length?n.histories[n.histories.length-1]:void 0),i=e.computed(()=>n.histories.filter(k=>k.date.isValid()&&k.date&&k.state));function s(){l.value||(l.value=setInterval(()=>{h(),a.value&&!ne.isRunning(a.value.state)&&c()},10))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){const k=r.value;return k===null?0:Math.max(0,d()-k)}function d(){return!a.value||ne.isRunning(a.value.state)?+new Date:a.value.date.valueOf()}function h(){o.value=i.value.length===0?"&nbsp;":S.humanDuration(u()/1e3,{maxDecimalPoints:2,units:["h","m","s"]})}function f(k){return"ks-duration-tt-square-"+k.toLowerCase()}return e.onBeforeUnmount(()=>{c()}),(k,V)=>(e.openBlock(),e.createBlock(W,{key:a.value?.date?.valueOf()??k.$t("no_history")},{content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(y,L)=>(e.openBlock(),e.createElementBlock("span",{key:"tt-"+L,class:"ks-duration-tt"},[e.createElementVNode("span",{class:e.normalizeClass(["ks-duration-tt-square",f(y.state)])},null,2),e.createElementVNode("strong",null,e.toDisplayString(y.state)+": ",1),e.createTextVNode(e.toDisplayString(S.dateFilter(y.date.toISOString(),"iso"))+" ",1),V[0]||(V[0]=e.createElementVNode("br",null,null,-1))]))),128))]),default:e.withCtx(()=>[e.createElementVNode("span",{innerHTML:o.value},null,8,Au)]),_:1}))}}),Ou={class:"btn-group content rounded-1 content-children text-truncate"},xu={key:0,class:"taskRunCount"},Pu={key:1},Ru={key:2},Mu=e.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{},state:{}},setup(t){const n=t,o=e.computed(()=>n.execution?.taskRunList?n.execution.taskRunList:[]),l=e.computed(()=>o.value.filter(a=>a.taskId===S.afterLastDot(n.uid??""))),r=e.computed(()=>{if(!l.value)return;const a=Math.max(...l.value.filter(s=>s.state.histories&&s.state.histories.length>0).map(s=>new Date(s.state.histories[s.state.histories.length-1].date).getTime())),i=Math.max(...l.value.map(s=>sn.duration(s.state.duration).asMilliseconds()/1e3,0));return[{date:sn(a).subtract(i,"second"),state:"CREATED"},{date:sn(a),state:n.state}]});return(a,i)=>(e.openBlock(),e.createElementBlock("div",Ou,[l.value.length>0?(e.openBlock(),e.createElementBlock("span",xu,e.toDisplayString(l.value.length)+" task runs",1)):e.createCommentVNode("",!0),l.value.length>0?(e.openBlock(),e.createElementBlock("span",Pu," | ")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("span",Ru,[e.createVNode(Du,{histories:r.value},null,8,["histories"])])):e.createCommentVNode("",!0)]))}}),Fu=A(Mu,[["__scopeId","data-v-99960aa7"]]),Uu={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hu=["aria-hidden","aria-label"],zu=["fill","width","height"],Wu={d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"},ju={key:0};function Gu(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon information-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Wu,[o.title?(e.openBlock(),e.createElementBlock("title",ju,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,zu))],16,Hu)}const Ku=A(Uu,[["render",Gu]]),Yu={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qu=["aria-hidden","aria-label"],Xu=["fill","width","height"],Zu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},Ju={key:0};function Qu(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Zu,[o.title?(e.openBlock(),e.createElementBlock("title",Ju,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Xu))],16,qu)}const Wn=A(Yu,[["render",Qu]]),ed={class:"main-content"},td={class:"icon rounded"},nd={class:"node-content"},od={class:"d-flex node-title"},ld=["title"],rd={key:0,class:"d-flex"},ad={class:"text-white top-button-div"},id=e.defineComponent({name:"BasicNode",inheritAttrs:!1,__name:"BasicNode",props:{id:{},title:{},type:{},disabled:{type:Boolean},state:{},data:{},icons:{},iconComponent:{},class:{}},emits:[S.EVENTS.EXPAND,S.EVENTS.OPEN_LINK,S.EVENTS.SHOW_LOGS,S.EVENTS.MOUSE_OVER,S.EVENTS.MOUSE_LEAVE,S.EVENTS.ADD_ERROR,S.EVENTS.EDIT,S.EVENTS.DELETE,S.EVENTS.ADD_TASK,S.EVENTS.SHOW_DESCRIPTION],setup(t,{emit:n}){const o=n,l=t;function r(){o(S.EVENTS.MOUSE_OVER,l.data.node)}function a(){o(S.EVENTS.MOUSE_LEAVE)}const i=e.computed(()=>l.data?.expandable||!1),s=e.computed(()=>l.data.node?.plugin??l.data.node?.task??l.data.node?.trigger??null),c=e.computed(()=>s.value?.description??null),u=e.computed(()=>S.Utils.afterLastDot(l.id??"")),d=e.computed(()=>["default","danger"].includes(l.data.color)?"":l.data.color),h=e.computed(()=>[{"unused-path":l.data.unused,disabled:s.value?.disabled||l.data.parent?.taskNode?.task?.disabled},l.class]),f=e.computed(()=>{if(l.data.node.triggerDeclaration)return l.data.node.triggerDeclaration.type;if(s.value)return s.value?.type}),k=e.computed(()=>{if(s.value?.type?.endsWith("SubflowGraphTask")){const y=s.value.subflowId??s.value;return y.namespace+" "+y.flowId}return u.value}),V=e.computed(()=>l.title??u.value);return(y,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["node-wrapper rounded-3",{...h.value,"running-border-animation":t.state==="RUNNING"}]),style:e.normalizeStyle({borderColor:t.state?`var(--ks-border-${t.state.toLowerCase()})`:void 0}),onMouseover:r,onMouseleave:a},[e.createElementVNode("div",ed,[e.createElementVNode("div",td,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent||zn),{cls:f.value,class:e.normalizeClass([d.value,"rounded bg-white"]),theme:"light",icons:t.icons},null,8,["cls","class","icons"]))]),e.createElementVNode("div",nd,[e.createElementVNode("div",od,[e.createElementVNode("div",{class:"text-truncate task-title",title:k.value},[e.createVNode(W,{title:k.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.value),1)]),_:1},8,["title"])],8,ld),c.value?(e.openBlock(),e.createElementBlock("span",rd,[e.createVNode(W,{title:y.$t("show description"),class:"d-flex align-items-center"},{default:e.withCtx(()=>[e.createVNode(Ku,{onClick:L[0]||(L[0]=m=>y.$emit(e.unref(S.EVENTS).SHOW_DESCRIPTION,{id:u.value,description:c.value})),class:"description-button ms-2"})]),_:1},8,["title"])])):e.createCommentVNode("",!0)]),e.renderSlot(y.$slots,"content",{},void 0,!0)]),e.createElementVNode("div",ad,[e.renderSlot(y.$slots,"badge-button-before",{},void 0,!0),t.data.link?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:L[1]||(L[1]=m=>y.$emit(e.unref(S.EVENTS).OPEN_LINK,{link:t.data.link}))},[e.createVNode(W,{title:y.$t("open")},{default:e.withCtx(()=>[e.createVNode(Al,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:L[2]||(L[2]=m=>y.$emit(e.unref(S.EVENTS).EXPAND))},[e.createVNode(W,{title:y.$t("expand")},{default:e.withCtx(()=>[e.createVNode(Wn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),e.renderSlot(y.$slots,"badge-button-after",{},void 0,!0)])]),e.renderSlot(y.$slots,"details",{},void 0,!0)],38))}}),jn=A(id,[["__scopeId","data-v-67b8c857"]]),Gn=Symbol("execution-injection-key"),Pl=Symbol("subflows-executions-injection-key"),sd={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cd=["aria-hidden","aria-label"],ud=["fill","width","height"],dd={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"},md={key:0};function fd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",dd,[o.title?(e.openBlock(),e.createElementBlock("title",md,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,ud))],16,cd)}const Kn=A(sd,[["render",fd]]),pd={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gd=["aria-hidden","aria-label"],hd=["fill","width","height"],Ed={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},kd={key:0};function yd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon delete-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Ed,[o.title?(e.openBlock(),e.createElementBlock("title",kd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,hd))],16,gd)}const Yn=A(pd,[["render",yd]]),vd={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cd=["aria-hidden","aria-label"],_d=["fill","width","height"],Nd={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"},Sd={key:0};function bd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Nd,[o.title?(e.openBlock(),e.createElementBlock("title",Sd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,_d))],16,Cd)}const wd=A(vd,[["render",bd]]),Ld={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Bd=["aria-hidden","aria-label"],Td=["fill","width","height"],Vd={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},$d={key:0};function Id(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Vd,[o.title?(e.openBlock(),e.createElementBlock("title",$d,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Td))],16,Bd)}const Ad=A(Ld,[["render",Id]]),Dd={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Od=["aria-hidden","aria-label"],xd=["fill","width","height"],Pd={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"},Rd={key:0};function Md(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon send-lock-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Pd,[o.title?(e.openBlock(),e.createElementBlock("title",Rd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,xd))],16,Od)}const Fd=A(Dd,[["render",Md]]),Ud={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hd=["aria-hidden","aria-label"],zd=["fill","width","height"],Wd={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},jd={key:0};function Gd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Wd,[o.title?(e.openBlock(),e.createElementBlock("title",jd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,zd))],16,Hd)}const Kd=A(Ud,[["render",Gd]]),Yd={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qd=["aria-hidden","aria-label"],Xd=["fill","width","height"],Zd={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},Jd={key:0};function Qd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Zd,[o.title?(e.openBlock(),e.createElementBlock("title",Jd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Xd))],16,qd)}const Rl=A(Yd,[["render",Qd]]),em={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},tm=["aria-hidden","aria-label"],nm=["fill","width","height"],om={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},lm={key:0};function rm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",om,[o.title?(e.openBlock(),e.createElementBlock("title",lm,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,nm))],16,tm)}const Kt=A(em,[["render",rm]]),am={name:"SkipForwardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},im=["aria-hidden","aria-label"],sm=["fill","width","height"],cm={d:"M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12"},um={key:0};function dm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-forward-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",cm,[o.title?(e.openBlock(),e.createElementBlock("title",um,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,sm))],16,im)}const mm=A(am,[["render",dm]]),fm={name:"EyeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pm=["aria-hidden","aria-label"],gm=["fill","width","height"],hm={d:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},Em={key:0};function km(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",hm,[o.title?(e.openBlock(),e.createElementBlock("title",Em,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,gm))],16,pm)}const ym=A(fm,[["render",km]]),vm=["aria-label"],Cm=e.defineComponent({name:"TaskNode",inheritAttrs:!1,__name:"TaskNode",props:{data:{},sourcePosition:{default:oe.Position.Right},targetPosition:{default:oe.Position.Left},id:{},icons:{default:void 0},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},playgroundEnabled:{type:Boolean},playgroundReadyToStart:{type:Boolean},customActions:{default:()=>({})}},setup(t,{emit:n}){const o=t,l=n,r=e.inject(Gn),a=e.inject(Pl),i=e.computed(()=>o.data.color??"primary"),s=e.computed(()=>S.Utils.afterLastDot(o.id)),c=e.computed(()=>{const m=o.data.executionId;if(m)return m===r?.value?.id?r?.value:Object.values(a?.value||{}).find(E=>E.id===m)}),u=e.computed(()=>c.value&&c.value.taskRunList?c.value.taskRunList:[]),d=e.computed(()=>u.value.filter(m=>m.taskId===S.Utils.afterLastDot(o.data.node.uid))),h=e.computed(()=>{if(!d.value?.length)return null;if(d.value.length===1)return d.value[0].state.current;const m=d.value.map(v=>v.state.current),E=[ne.FAILED,ne.KILLED,ne.WARNING,ne.SKIPPED,ne.KILLING,ne.RUNNING,ne.SUCCESS,ne.RESTARTED,ne.CREATED];return m.map(v=>[E.indexOf(v[1]),v]).sort().map(v=>v[1])[0]}),f=e.computed(()=>({"execution-no-taskrun":!!(c.value&&d.value&&d.value.length===0)})),k=e.computed(()=>({id:o.id,type:String(o.data.node.task.type)})),V=e.computed(()=>{if(o.data.node.type?.endsWith("SubflowGraphTask")&&o.enableSubflowInteraction){const m=o.data.node.task.subflowId??o.data.node.task;return{...o.data,link:{namespace:m.namespace,id:m.flowId,executionId:c.value?.taskRunList.filter(E=>E.id===o.data.node.taskRun.id&&E.outputs?.executionId)?.[0]?.outputs?.executionId}}}return o.data}),y=e.computed(()=>{const m=o.data.node.task?.type;if(!(!m||!o.customActions))return o.customActions[m]}),L=e.computed(()=>{if(h.value===ne.RUNNING)return"task is running";if(h.value===ne.SUCCESS)return"task was successful";if(h.value===ne.WARNING)return"task sent a warning";if(h.value===ne.SKIPPED)return"task was skipped";if(h.value===ne.FAILED)return"task failed"});return(m,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(oe.Handle),{type:"source",position:t.sourcePosition},null,8,["position"]),e.createVNode(jn,{id:t.id,data:V.value,state:h.value,class:e.normalizeClass(f.value),icons:t.icons,"icon-component":t.iconComponent,onShowDescription:E[7]||(E[7]=N=>l(e.unref(S.EVENTS).SHOW_DESCRIPTION,N)),onExpand:E[8]||(E[8]=N=>l(e.unref(S.EVENTS).EXPAND,k.value)),onOpenLink:E[9]||(E[9]=N=>l(e.unref(S.EVENTS).OPEN_LINK,N)),onMouseover:E[10]||(E[10]=N=>l(e.unref(S.EVENTS).MOUSE_OVER,N)),onMouseleave:E[11]||(E[11]=N=>l(e.unref(S.EVENTS).MOUSE_LEAVE))},{details:e.withCtx(()=>[e.renderSlot(m.$slots,"details",{},void 0,!0)]),content:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(Fu,{key:0,execution:c.value,task:t.data.node.task,color:i.value,uid:t.data.node.uid,state:h.value},null,8,["execution","task","color","uid","state"])):e.createCommentVNode("",!0),t.data.node.task?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.playgroundEnabled&&t.playgroundReadyToStart?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"playground-button",onClick:E[0]||(E[0]=N=>l(e.unref(S.EVENTS).RUN_TASK,{task:t.data.node.task}))},[e.createVNode(W,{style:{display:"flex"},title:m.$t("run task in playground")},{default:e.withCtx(()=>[e.createVNode(Kd,{class:"button-play-icon",alt:m.$t("run task in playground")},null,8,["alt"])]),_:1},8,["title"])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"playground-button",style:e.normalizeStyle({color:`var(--ks-content-${h.value?.toLowerCase()})`,backgroundColor:`var(--ks-background-${h.value?.toLowerCase()})`})},[e.createVNode(W,{style:{display:"flex"},title:L.value?m.$t(L.value):void 0},{default:e.withCtx(()=>[h.value===e.unref(ne).RUNNING?(e.openBlock(),e.createBlock(ll,{key:0,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):h.value===e.unref(ne).SUCCESS?(e.openBlock(),e.createBlock(Rl,{key:1,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):h.value===e.unref(ne).WARNING?(e.openBlock(),e.createBlock(Kt,{key:2,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):h.value===e.unref(ne).SKIPPED?(e.openBlock(),e.createBlock(mm,{key:3,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):h.value===e.unref(ne).FAILED?(e.openBlock(),e.createBlock(At,{key:4,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):e.createCommentVNode("",!0)]),_:1},8,["title"])],4))],64)):e.createCommentVNode("",!0)]),"badge-button-before":e.withCtx(()=>[t.data.node.task&&t.data.node.task.runIf?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",["bg-warning"]]),onClick:E[1]||(E[1]=N=>l(e.unref(S.EVENTS).SHOW_CONDITION,{id:s.value,task:t.data.node.task,section:e.unref(S.SECTIONS).TASKS}))},[e.createVNode(W,{title:m.$t("show task condition")},{default:e.withCtx(()=>[e.createVNode(Fd,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:E[2]||(E[2]=N=>l(e.unref(S.EVENTS).SHOW_LOGS,{id:s.value,execution:c.value,taskRuns:d.value}))},[e.createVNode(W,{title:m.$t("show task logs")},{default:e.withCtx(()=>[e.createVNode(wd,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),y.value&&t.data.node.task?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),"aria-label":y.value.label,onClick:E[3]||(E[3]=N=>l(e.unref(S.EVENTS).SHOW_CUSTOM_ACTION,{task:t.data.node.task,customAction:y.value}))},[e.createVNode(W,{title:y.value.label},{default:e.withCtx(()=>[e.createVNode(ym,{class:"button-icon",alt:y.value.label},null,8,["alt"])]),_:1},8,["title"])],10,vm)):e.createCommentVNode("",!0),!c.value&&!t.data.isReadOnly&&t.data.isFlowable?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:E[4]||(E[4]=N=>l(e.unref(S.EVENTS).ADD_ERROR,{task:t.data.node.task}))},[e.createVNode(W,{title:m.$t("add error handler")},{default:e.withCtx(()=>[e.createVNode(Ad,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),!c.value&&!t.data.isReadOnly?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:E[5]||(E[5]=N=>l(e.unref(S.EVENTS).EDIT,{task:t.data.node.task,section:e.unref(S.SECTIONS).TASKS}))},[e.createVNode(W,{title:m.$t("edit")},{default:e.withCtx(()=>[e.createVNode(Kn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),!c.value&&!t.data.isReadOnly?(e.openBlock(),e.createElementBlock("span",{key:5,class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:E[6]||(E[6]=N=>l(e.unref(S.EVENTS).DELETE,{id:s.value,section:e.unref(S.SECTIONS).TASKS}))},[e.createVNode(W,{title:m.$t("delete")},{default:e.withCtx(()=>[e.createVNode(Yn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0)]),_:3},8,["id","data","state","class","icons","icon-component"]),e.createVNode(e.unref(oe.Handle),{type:"target",position:t.targetPosition},null,8,["position"])],64))}}),_m=A(Cm,[["__scopeId","data-v-f9d8ede0"]]),Nm={name:"Task",inheritAttrs:!1,inject:{execution:{from:Gn}},computed:{SECTIONS(){return S.SECTIONS},EVENTS(){return S.EVENTS},color(){return this.data.color??"primary"},formattedData(){return{...this.data,unused:this.data.node?.triggerDeclaration?.disabled||this.data.node?.trigger?.disabled}},triggerId(){return S.Utils.afterLastDot(this.id)}},emits:[S.EVENTS.DELETE,S.EVENTS.EDIT,S.EVENTS.SHOW_DESCRIPTION],components:{Delete:Yn,Pencil:Kn,Handle:oe.Handle,Tooltip:W},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(t,n){this.$emit(t,n)}}},Sm=Object.assign(Nm,{setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(oe.Handle),{type:"source",position:t.sourcePosition},null,8,["position"]),e.createVNode(jn,{id:t.id,data:n.formattedData,color:n.color,icons:t.icons,"icon-component":t.iconComponent,onShowDescription:o[2]||(o[2]=l=>n.forwardEvent(e.unref(S.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[3]||(o[3]=l=>n.forwardEvent(e.unref(S.EVENTS).EXPAND,{id:t.id}))},e.createSlots({_:2},[t.data.isReadOnly?void 0:{name:"badge-button-before",fn:e.withCtx(()=>[n.execution?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(e.unref(S.EVENTS).EDIT,{task:t.data.node.triggerDeclaration,section:e.unref(S.SECTIONS).TRIGGERS}))},[e.createVNode(W,{title:n.$t("edit")},{default:e.withCtx(()=>[e.createVNode(Kn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),n.execution?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[1]||(o[1]=l=>n.$emit(e.unref(S.EVENTS).DELETE,{id:n.triggerId,section:e.unref(S.SECTIONS).TRIGGERS}))},[e.createVNode(W,{title:n.$t("delete")},{default:e.withCtx(()=>[e.createVNode(Yn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),e.createVNode(e.unref(oe.Handle),{type:"target",position:t.targetPosition},null,8,["position"])],64))}}),bm={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wm=["aria-hidden","aria-label"],Lm=["fill","width","height"],Bm={d:"M11 15H6L13 1V9H18L11 23V15Z"},Tm={key:0};function Vm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Bm,[o.title?(e.openBlock(),e.createElementBlock("title",Tm,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Lm))],16,wm)}const $m=A(bm,[["render",Vm]]),Im={class:"collapsed-cluster-node d-flex"},Am={class:"node-text"},Dm={class:"text-white top-button-div"},Om={components:{Tooltip:W,Handle:oe.Handle,ArrowExpand:Wn,LightningBolt:$m},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 S.EVENTS},expandable(){return this.data?.expandable||!1},description(){const t=this.data.node.task??this.data.node.trigger??null;return t?t.description??null:null}}},xm=Object.assign(Om,{__name:"CollapsedClusterNode",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(oe.Handle),{type:"source",position:t.sourcePosition},null,8,["position"]),e.createElementVNode("div",Im,[e.createElementVNode("span",Am,[t.data.iconComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.data.iconComponent),{key:0,class:e.normalizeClass(`text-${t.data.color} me-2`)},null,8,["class"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(S.Utils).afterLastDot(t.id)),1)]),e.createElementVNode("div",Dm,[e.renderSlot(n.$slots,"badge-button-before",{},void 0,!0),n.expandable?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(e.unref(S.EVENTS).EXPAND,{id:t.id}))},[e.createVNode(W,{title:n.$t("expand")},{default:e.withCtx(()=>[e.createVNode(Wn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"badge-button-after",{},void 0,!0)])]),e.createVNode(e.unref(oe.Handle),{type:"target",position:t.targetPosition},null,8,["position"])],64))}}),Pm=A(xm,[["__scopeId","data-v-89413b39"]]),Rm={name:"SplitCellsVerticalIcon",emits:["click"]},Mm={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("svg",Mm,[...n[0]||(n[0]=[e.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[e.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),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_1111_7266"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)])])}const Um=A(Rm,[["render",Fm],["__scopeId","data-v-084c51e6"]]),Hm={name:"SplitCellsHorizontalIcon",emits:["click"]},zm={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("svg",zm,[...n[0]||(n[0]=[e.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[e.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),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_796_3996"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)])])}const jm=A(Hm,[["render",Wm],["__scopeId","data-v-c77c1469"]]),Gm={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Km=["aria-hidden","aria-label"],Ym=["fill","width","height"],qm={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},Xm={key:0};function Zm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon download-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",qm,[o.title?(e.openBlock(),e.createElementBlock("title",Xm,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Ym))],16,Km)}const Jm=A(Gm,[["render",Zm]]);function Qm(t,n){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const o=document.implementation.createHTMLDocument(),l=o.createElement("base"),r=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(r),n&&(l.href=n),r.href=t,r.href}const ef=(()=>{let t=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${n()}${t}`)})();function Me(t){const n=[];for(let o=0,l=t.length;o<l;o++)n.push(t[o]);return n}let et=null;function Ml(t={}){return et||(t.includeStyleProperties?(et=t.includeStyleProperties,et):(et=Me(window.getComputedStyle(document.documentElement)),et))}function Rt(t,n){const l=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(n);return l?parseFloat(l.replace("px","")):0}function tf(t){const n=Rt(t,"border-left-width"),o=Rt(t,"border-right-width");return t.clientWidth+n+o}function nf(t){const n=Rt(t,"border-top-width"),o=Rt(t,"border-bottom-width");return t.clientHeight+n+o}function Fl(t,n={}){const o=n.width||tf(t),l=n.height||nf(t);return{width:o,height:l}}function of(){let t,n;try{n=process}catch{}const o=n&&n.env?n.env.devicePixelRatio:null;return o&&(t=parseInt(o,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}const ye=16384;function lf(t){(t.width>ye||t.height>ye)&&(t.width>ye&&t.height>ye?t.width>t.height?(t.height*=ye/t.width,t.width=ye):(t.width*=ye/t.height,t.height=ye):t.width>ye?(t.height*=ye/t.width,t.width=ye):(t.width*=ye/t.height,t.height=ye))}function Mt(t){return new Promise((n,o)=>{const l=new Image;l.onload=()=>{l.decode().then(()=>{requestAnimationFrame(()=>n(l))})},l.onerror=o,l.crossOrigin="anonymous",l.decoding="async",l.src=t})}async function rf(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function af(t,n,o){const l="http://www.w3.org/2000/svg",r=document.createElementNS(l,"svg"),a=document.createElementNS(l,"foreignObject");return r.setAttribute("width",`${n}`),r.setAttribute("height",`${o}`),r.setAttribute("viewBox",`0 0 ${n} ${o}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),r.appendChild(a),a.appendChild(t),rf(r)}const Ee=(t,n)=>{if(t instanceof n)return!0;const o=Object.getPrototypeOf(t);return o===null?!1:o.constructor.name===n.name||Ee(o,n)};function sf(t){const n=t.getPropertyValue("content");return`${t.cssText} content: '${n.replace(/'|"/g,"")}';`}function cf(t,n){return Ml(n).map(o=>{const l=t.getPropertyValue(o),r=t.getPropertyPriority(o);return`${o}: ${l}${r?" !important":""};`}).join(" ")}function uf(t,n,o,l){const r=`.${t}:${n}`,a=o.cssText?sf(o):cf(o,l);return document.createTextNode(`${r}{${a}}`)}function Wo(t,n,o,l){const r=window.getComputedStyle(t,o),a=r.getPropertyValue("content");if(a===""||a==="none")return;const i=ef();try{n.className=`${n.className} ${i}`}catch{return}const s=document.createElement("style");s.appendChild(uf(i,o,r,l)),n.appendChild(s)}function df(t,n,o){Wo(t,n,":before",o),Wo(t,n,":after",o)}const jo="application/font-woff",Go="image/jpeg",mf={woff:jo,woff2:jo,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Go,jpeg:Go,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function ff(t){const n=/\.([^./]*?)$/g.exec(t);return n?n[1]:""}function qn(t){const n=ff(t).toLowerCase();return mf[n]||""}function pf(t){return t.split(/,/)[1]}function Bn(t){return t.search(/^(data:)/)!==-1}function gf(t,n){return`data:${n};base64,${t}`}async function Ul(t,n,o){const l=await fetch(t,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const r=await l.blob();return new Promise((a,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{a(o({res:l,result:s.result}))}catch(c){i(c)}},s.readAsDataURL(r)})}const fn={};function hf(t,n,o){let l=t.replace(/\?.*/,"");return o&&(l=t),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),n?`[${n}]${l}`:l}async function Xn(t,n,o){const l=hf(t,n,o.includeQueryParams);if(fn[l]!=null)return fn[l];o.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let r;try{const a=await Ul(t,o.fetchRequestInit,({res:i,result:s})=>(n||(n=i.headers.get("Content-Type")||""),pf(s)));r=gf(a,n)}catch(a){r=o.imagePlaceholder||"";let i=`Failed to fetch resource: ${t}`;a&&(i=typeof a=="string"?a:a.message),i&&console.warn(i)}return fn[l]=r,r}async function Ef(t){const n=t.toDataURL();return n==="data:,"?t.cloneNode(!1):Mt(n)}async function kf(t,n){if(t.currentSrc){const a=document.createElement("canvas"),i=a.getContext("2d");a.width=t.clientWidth,a.height=t.clientHeight,i?.drawImage(t,0,0,a.width,a.height);const s=a.toDataURL();return Mt(s)}const o=t.poster,l=qn(o),r=await Xn(o,l,n);return Mt(r)}async function yf(t,n){var o;try{if(!((o=t?.contentDocument)===null||o===void 0)&&o.body)return await Yt(t.contentDocument.body,n,!0)}catch{}return t.cloneNode(!1)}async function vf(t,n){return Ee(t,HTMLCanvasElement)?Ef(t):Ee(t,HTMLVideoElement)?kf(t,n):Ee(t,HTMLIFrameElement)?yf(t,n):t.cloneNode(Hl(t))}const Cf=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT",Hl=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SVG";async function _f(t,n,o){var l,r;if(Hl(n))return n;let a=[];return Cf(t)&&t.assignedNodes?a=Me(t.assignedNodes()):Ee(t,HTMLIFrameElement)&&(!((l=t.contentDocument)===null||l===void 0)&&l.body)?a=Me(t.contentDocument.body.childNodes):a=Me(((r=t.shadowRoot)!==null&&r!==void 0?r:t).childNodes),a.length===0||Ee(t,HTMLVideoElement)||await a.reduce((i,s)=>i.then(()=>Yt(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function Nf(t,n,o){const l=n.style;if(!l)return;const r=window.getComputedStyle(t);r.cssText?(l.cssText=r.cssText,l.transformOrigin=r.transformOrigin):Ml(o).forEach(a=>{let i=r.getPropertyValue(a);a==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),Ee(t,HTMLIFrameElement)&&a==="display"&&i==="inline"&&(i="block"),a==="d"&&n.getAttribute("d")&&(i=`path(${n.getAttribute("d")})`),l.setProperty(a,i,r.getPropertyPriority(a))})}function Sf(t,n){Ee(t,HTMLTextAreaElement)&&(n.innerHTML=t.value),Ee(t,HTMLInputElement)&&n.setAttribute("value",t.value)}function bf(t,n){if(Ee(t,HTMLSelectElement)){const l=Array.from(n.children).find(r=>t.value===r.getAttribute("value"));l&&l.setAttribute("selected","")}}function wf(t,n,o){return Ee(n,Element)&&(Nf(t,n,o),df(t,n,o),Sf(t,n),bf(t,n)),n}async function Lf(t,n){const o=t.querySelectorAll?t.querySelectorAll("use"):[];if(o.length===0)return t;const l={};for(let a=0;a<o.length;a++){const s=o[a].getAttribute("xlink:href");if(s){const c=t.querySelector(s),u=document.querySelector(s);!c&&u&&!l[s]&&(l[s]=await Yt(u,n,!0))}}const r=Object.values(l);if(r.length){const a="http://www.w3.org/1999/xhtml",i=document.createElementNS(a,"svg");i.setAttribute("xmlns",a),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(a,"defs");i.appendChild(s);for(let c=0;c<r.length;c++)s.appendChild(r[c]);t.appendChild(i)}return t}async function Yt(t,n,o){return!o&&n.filter&&!n.filter(t)?null:Promise.resolve(t).then(l=>vf(l,n)).then(l=>_f(t,l,n)).then(l=>wf(t,l,n)).then(l=>Lf(l,n))}const zl=/url\((['"]?)([^'"]+?)\1\)/g,Bf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Tf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Vf(t){const n=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function $f(t){const n=[];return t.replace(zl,(o,l,r)=>(n.push(r),o)),n.filter(o=>!Bn(o))}async function If(t,n,o,l,r){try{const a=o?Qm(n,o):n,i=qn(n);let s;return r||(s=await Xn(a,i,l)),t.replace(Vf(n),`$1${s}$3`)}catch{}return t}function Af(t,{preferredFontFormat:n}){return n?t.replace(Tf,o=>{for(;;){const[l,,r]=Bf.exec(o)||[];if(!r)return"";if(r===n)return`src: ${l};`}}):t}function Wl(t){return t.search(zl)!==-1}async function jl(t,n,o){if(!Wl(t))return t;const l=Af(t,o);return $f(l).reduce((a,i)=>a.then(s=>If(s,i,n,o)),Promise.resolve(l))}async function tt(t,n,o){var l;const r=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(t);if(r){const a=await jl(r,null,o);return n.style.setProperty(t,a,n.style.getPropertyPriority(t)),!0}return!1}async function Df(t,n){await tt("background",t,n)||await tt("background-image",t,n),await tt("mask",t,n)||await tt("-webkit-mask",t,n)||await tt("mask-image",t,n)||await tt("-webkit-mask-image",t,n)}async function Of(t,n){const o=Ee(t,HTMLImageElement);if(!(o&&!Bn(t.src))&&!(Ee(t,SVGImageElement)&&!Bn(t.href.baseVal)))return;const l=o?t.src:t.href.baseVal,r=await Xn(l,qn(l),n);await new Promise((a,i)=>{t.onload=a,t.onerror=n.onImageErrorHandler?(...c)=>{try{a(n.onImageErrorHandler(...c))}catch(u){i(u)}}:i;const s=t;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),o?(t.srcset="",t.src=r):t.href.baseVal=r})}async function xf(t,n){const l=Me(t.childNodes).map(r=>Gl(r,n));await Promise.all(l).then(()=>t)}async function Gl(t,n){Ee(t,Element)&&(await Df(t,n),await Of(t,n),await xf(t,n))}function Pf(t,n){const{style:o}=t;n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.width&&(o.width=`${n.width}px`),n.height&&(o.height=`${n.height}px`);const l=n.style;return l!=null&&Object.keys(l).forEach(r=>{o[r]=l[r]}),t}const Ko={};async function Yo(t){let n=Ko[t];if(n!=null)return n;const l=await(await fetch(t)).text();return n={url:t,cssText:l},Ko[t]=n,n}async function qo(t,n){let o=t.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,a=(o.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,t.url).href),Ul(s,n.fetchRequestInit,({result:c})=>(o=o.replace(i,`url(${c})`),[i,c]))});return Promise.all(a).then(()=>o)}function Xo(t){if(t==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=t.replace(o,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(r,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(i,"gi");for(;;){let c=a.exec(l);if(c===null){if(c=s.exec(l),c===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;n.push(c[0])}return n}async function Rf(t,n){const o=[],l=[];return t.forEach(r=>{if("cssRules"in r)try{Me(r.cssRules||[]).forEach((a,i)=>{if(a.type===CSSRule.IMPORT_RULE){let s=i+1;const c=a.href,u=Yo(c).then(d=>qo(d,n)).then(d=>Xo(d).forEach(h=>{try{r.insertRule(h,h.startsWith("@import")?s+=1:r.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:h,error:f})}})).catch(d=>{console.error("Error loading remote css",d.toString())});l.push(u)}})}catch(a){const i=t.find(s=>s.href==null)||document.styleSheets[0];r.href!=null&&l.push(Yo(r.href).then(s=>qo(s,n)).then(s=>Xo(s).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(l).then(()=>(t.forEach(r=>{if("cssRules"in r)try{Me(r.cssRules||[]).forEach(a=>{o.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${r.href}`,a)}}),o))}function Mf(t){return t.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Wl(n.style.getPropertyValue("src")))}async function Ff(t,n){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=Me(t.ownerDocument.styleSheets),l=await Rf(o,n);return Mf(l)}function Kl(t){return t.trim().replace(/["']/g,"")}function Uf(t){const n=new Set;function o(l){(l.style.fontFamily||getComputedStyle(l).fontFamily).split(",").forEach(a=>{n.add(Kl(a))}),Array.from(l.children).forEach(a=>{a instanceof HTMLElement&&o(a)})}return o(t),n}async function Hf(t,n){const o=await Ff(t,n),l=Uf(t);return(await Promise.all(o.filter(a=>l.has(Kl(a.style.fontFamily))).map(a=>{const i=a.parentStyleSheet?a.parentStyleSheet.href:null;return jl(a.cssText,i,n)}))).join(`
8
+ </svg>`));return(a,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(oe.Handle),{type:"source",position:t.sourcePosition},null,8,["position"]),e.createElementVNode("div",{class:e.normalizeClass([[`border-${t.data.color}`],"dependency-node-wrapper rounded-3 border"])},[e.createVNode(zn,{"custom-icon":{icon:r.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),e.createElementVNode("div",Uc,[e.createElementVNode("div",Hc,[e.createVNode(W,{title:t.data.flowId},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.data.flowId),1)]),_:1},8,["title"])]),e.createElementVNode("div",zc,[e.createVNode(W,{title:t.data.namespace},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.data.namespace),1)]),_:1},8,["title"])])]),e.createElementVNode("div",Wc,[e.renderSlot(a.$slots,"badge-button-before",{},void 0,!0),t.data.link?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:i[0]||(i[0]=s=>a.$emit(e.unref(S.EVENTS).OPEN_LINK,t.data))},[e.createVNode(W,{title:e.unref(l)("open")},{default:e.withCtx(()=>[e.createVNode(Al,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),t.data.expandEnabled?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:i[1]||(i[1]=s=>o(e.unref(S.EVENTS).EXPAND_DEPENDENCIES,t.data))},[e.createVNode(W,{title:e.unref(l)("expand")},{default:e.withCtx(()=>[e.createVNode(Fc,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"badge-button-after",{},void 0,!0)])],2),e.createVNode(e.unref(oe.Handle),{type:"target",position:t.targetPosition},null,8,["position"])],64))}}),Gc=A(jc,[["__scopeId","data-v-2271d5b0"]]);var Oe=(t=>(t.Lines="lines",t.Dots="dots",t))(Oe||{});const Dl=function({dimensions:t,size:n,color:o}){return e.h("path",{stroke:o,"stroke-width":n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})},Ol=function({radius:t,color:n}){return e.h("circle",{cx:t,cy:t,r:t,fill:n})};Oe.Lines+"",Oe.Dots+"";const Kc={[Oe.Dots]:"#81818a",[Oe.Lines]:"#eee"},Yc=["id","x","y","width","height","patternTransform"],qc={key:2,height:"100",width:"100"},Xc=["fill"],Zc=["x","y","fill"],Jc={name:"Background",compatConfig:{MODE:3}},Qc=e.defineComponent({...Jc,props:{id:{},variant:{default:()=>Oe.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(t){const{id:n,viewport:o}=oe.useVueFlow(),l=e.computed(()=>{const i=o.value.zoom,[s,c]=Array.isArray(t.gap)?t.gap:[t.gap,t.gap],u=[s*i||1,c*i||1],d=t.size*i,[h,f]=Array.isArray(t.offset)?t.offset:[t.offset,t.offset],k=[h*i||1+u[0]/2,f*i||1+u[1]/2];return{scaledGap:u,offset:k,size:d}}),r=e.toRef(()=>`pattern-${n}${t.id?`-${t.id}`:""}`),a=e.toRef(()=>t.color||t.patternColor||Kc[t.variant||Oe.Dots]);return(i,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:e.normalizeStyle({height:`${i.height>100?100:i.height}%`,width:`${i.width>100?100:i.width}%`})},[e.renderSlot(i.$slots,"pattern-container",{id:r.value},()=>[e.createElementVNode("pattern",{id:r.value,x:e.unref(o).x%l.value.scaledGap[0],y:e.unref(o).y%l.value.scaledGap[1],width:l.value.scaledGap[0],height:l.value.scaledGap[1],patternTransform:`translate(-${l.value.offset[0]},-${l.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[e.renderSlot(i.$slots,"pattern",{},()=>[i.variant===e.unref(Oe).Lines?(e.openBlock(),e.createBlock(e.unref(Dl),{key:0,size:i.lineWidth,color:a.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):i.variant===e.unref(Oe).Dots?(e.openBlock(),e.createBlock(e.unref(Ol),{key:1,color:a.value,radius:l.value.size/2},null,8,["color","radius"])):e.createCommentVNode("",!0),i.bgColor?(e.openBlock(),e.createElementBlock("svg",qc,[e.createElementVNode("rect",{width:"100%",height:"100%",fill:i.bgColor},null,8,Xc)])):e.createCommentVNode("",!0)])],8,Yc)]),e.createElementVNode("rect",{x:i.x,y:i.y,width:"100%",height:"100%",fill:`url(#${r.value})`},null,8,Zc),e.renderSlot(i.$slots,"default",{id:r.value})],4))}}),eu={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},tu=["aria-hidden","aria-label"],nu=["fill","width","height"],ou={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},lu={key:0};function ru(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",ou,[o.title?(e.openBlock(),e.createElementBlock("title",lu,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,nu))],16,tu)}const au=A(eu,[["render",ru]]),iu={class:"top-button-div text-white d-flex"},su={inheritAttrs:!1,components:{Tooltip:W},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){const t=this.data.taskNode;if(t?.type?.endsWith("SubflowGraphTask")){const n=t.task.subflowId??t.task;return n.namespace+" "+n.flowId}return S.Utils.afterLastDot(this.id)}}},cu=Object.assign(su,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:oe.Position,default:void 0},targetPosition:{type:oe.Position,default:void 0},id:{type:String,default:void 0}},emits:[S.EVENTS.COLLAPSE],setup(t,{emit:n}){const o=t,l=n,r=()=>{l(S.EVENTS.COLLAPSE,o.id)};return(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.createElementVNode("span",{class:e.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${t.data.color}`]])},e.toDisplayString(a.clusterName),3),e.createElementVNode("div",iu,[t.data.collapsable?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:i[0]||(i[0]=s=>r())},[e.createVNode(W,{title:a.$t("collapse")},{default:e.withCtx(()=>[e.createVNode(au,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0)])],2))}}),uu=A(cu,[["__scopeId","data-v-0c251e77"]]),du={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},mu=["aria-hidden","aria-label"],fu=["fill","width","height"],pu={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,2Z"},gu={key:0};function hu(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon circle-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",pu,[o.title?(e.openBlock(),e.createElementBlock("title",gu,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,fu))],16,mu)}const xl=A(du,[["render",hu]]),Eu={name:"Dot",components:{Handle:oe.Handle,CircleIcon:xl},inheritAttrs:!1,props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},label:{type:String,default:void 0}},computed:{classes(){return{"unused-path":this.data.unused,[S.Utils.afterLastDot(this.data.node.type)]:!0}}}},ku=Object.assign(Eu,{setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.classes)},[e.createVNode(e.unref(oe.Handle),{type:"source",class:"custom-handle",position:t.sourcePosition},null,8,["position"]),e.createElementVNode("div",{class:e.normalizeClass(["dot",n.classes])},[e.createVNode(xl,{class:e.normalizeClass([{"text-danger":t.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),e.createVNode(e.unref(oe.Handle),{type:"target",class:"custom-handle",position:t.targetPosition},null,8,["position"])],2))}}),yu=A(ku,[["__scopeId","data-v-666f472b"]]),vu={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cu=["aria-hidden","aria-label"],_u=["fill","width","height"],Nu={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Su={key:0};function bu(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Nu,[o.title?(e.openBlock(),e.createElementBlock("title",Su,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,_u))],16,Cu)}const wu=A(vu,[["render",bu]]),Lu={class:"add-task-div rounded d-flex justify-content-center align-items-center"},Bu=e.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",Lu,[t.addTask?(e.openBlock(),e.createBlock(wu,{key:0,alt:"add task icon"})):e.createCommentVNode("",!0)]))}}),Tu=A(Bu,[["__scopeId","data-v-536dd646"]]),Vu=["id","d","marker-end"],zo=14,$u=e.defineComponent({inheritAttrs:!1,__name:"EdgeNode",props:{id:{type:String,default:void 0},data:{type:Object,default:void 0},sourceX:{type:Number,default:void 0},sourceY:{type:Number,default:void 0},targetX:{type:Number,default:void 0},targetY:{type:Number,default:void 0},markerEnd:{type:String,default:void 0},sourcePosition:{type:String,default:void 0},targetPosition:{type:String,default:void 0}},setup(t){const n=t,o=e.computed(()=>n.data?{"vue-flow__edge-path":!0,["stroke-"+n.data.color]:n.data.color,"unused-path":n.data.unused}:{});let l=u=>u;try{const{t:u}=yt();l=u}catch{}const r=e.computed(()=>{const{haveAdd:u}=n.data??{};return`${l("add task")} ${u?.length===2?`${l(u[1])} ${u[0]}`:""}`.trim()}),a=e.computed(()=>oe.getSmoothStepPath(n)),i=e.computed(()=>{const u=(n.targetX??0)-(n.sourceX??0),d=(n.targetY??0)-(n.sourceY??0);return Math.abs(d)>=Math.abs(u)}),s=e.computed(()=>{if(!i.value)return 0;const u=n.data?.edgeBoundary;return u==="top"?-zo:u==="bottom"?zo:0}),c=e.computed(()=>0);return(u,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?.length?(e.openBlock(),e.createElementBlock("path",{key:0,id:t.id,class:e.normalizeClass(o.value),style:e.normalizeStyle(t.data.haveDashArray?{strokeDasharray:"2"}:{}),d:a.value[0],"marker-end":t.markerEnd},null,14,Vu)):e.createCommentVNode("",!0),a.value?.length?(e.openBlock(),e.createBlock(e.unref(oe.EdgeLabelRenderer),{key:1,style:{"z-index":"10"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${a.value[1]+c.value}px,${a.value[2]+s.value}px)`})},[e.createVNode(W,{title:r.value},{default:e.withCtx(()=>[t.data.haveAdd?(e.openBlock(),e.createBlock(Tu,{key:0,"add-task":!0,onClick:d[0]||(d[0]=h=>u.$emit(e.unref(S.EVENTS).ADD_TASK,t.data.haveAdd)),class:e.normalizeClass({"text-danger":t.data.color})},null,8,["class"])):e.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})):e.createCommentVNode("",!0)],64))}}),Iu=A($u,[["__scopeId","data-v-575e9f2a"]]),Au=["innerHTML"],Du=e.defineComponent({__name:"Duration",props:{histories:{}},setup(t){const n=t;e.watch(()=>n.histories,(k,V)=>{k?.[0]?.date?.valueOf()!==V?.[0]?.date?.valueOf()&&s()});const o=e.ref(""),l=e.ref();e.onMounted(()=>{s()});const r=e.computed(()=>n.histories?.[0]?.date?.valueOf()??null),a=e.computed(()=>n.histories?.length?n.histories[n.histories.length-1]:void 0),i=e.computed(()=>n.histories.filter(k=>k.date.isValid()&&k.date&&k.state));function s(){l.value||(l.value=setInterval(()=>{h(),a.value&&!ne.isRunning(a.value.state)&&c()},10))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){const k=r.value;return k===null?0:Math.max(0,d()-k)}function d(){return!a.value||ne.isRunning(a.value.state)?+new Date:a.value.date.valueOf()}function h(){o.value=i.value.length===0?"&nbsp;":S.humanDuration(u()/1e3,{maxDecimalPoints:2,units:["h","m","s"]})}function f(k){return"ks-duration-tt-square-"+k.toLowerCase()}return e.onBeforeUnmount(()=>{c()}),(k,V)=>(e.openBlock(),e.createBlock(W,{key:a.value?.date?.valueOf()??k.$t("no_history")},{content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(y,L)=>(e.openBlock(),e.createElementBlock("span",{key:"tt-"+L,class:"ks-duration-tt"},[e.createElementVNode("span",{class:e.normalizeClass(["ks-duration-tt-square",f(y.state)])},null,2),e.createElementVNode("strong",null,e.toDisplayString(y.state)+": ",1),e.createTextVNode(e.toDisplayString(S.dateFilter(y.date.toISOString(),"iso"))+" ",1),V[0]||(V[0]=e.createElementVNode("br",null,null,-1))]))),128))]),default:e.withCtx(()=>[e.createElementVNode("span",{innerHTML:o.value},null,8,Au)]),_:1}))}}),Ou={class:"btn-group content rounded-1 content-children text-truncate"},xu={key:0,class:"taskRunCount"},Pu={key:1},Ru={key:2},Mu=e.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{},state:{}},setup(t){const n=t,o=e.computed(()=>n.execution?.taskRunList?n.execution.taskRunList:[]),l=e.computed(()=>o.value.filter(a=>a.taskId===S.afterLastDot(n.uid??""))),r=e.computed(()=>{if(!l.value)return;const a=Math.max(...l.value.filter(s=>s.state.histories&&s.state.histories.length>0).map(s=>new Date(s.state.histories[s.state.histories.length-1].date).getTime())),i=Math.max(...l.value.map(s=>sn.duration(s.state.duration).asMilliseconds()/1e3,0));return[{date:sn(a).subtract(i,"second"),state:"CREATED"},{date:sn(a),state:n.state}]});return(a,i)=>(e.openBlock(),e.createElementBlock("div",Ou,[l.value.length>0?(e.openBlock(),e.createElementBlock("span",xu,e.toDisplayString(l.value.length)+" task runs",1)):e.createCommentVNode("",!0),l.value.length>0?(e.openBlock(),e.createElementBlock("span",Pu," | ")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("span",Ru,[e.createVNode(Du,{histories:r.value},null,8,["histories"])])):e.createCommentVNode("",!0)]))}}),Fu=A(Mu,[["__scopeId","data-v-99960aa7"]]),Uu={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hu=["aria-hidden","aria-label"],zu=["fill","width","height"],Wu={d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"},ju={key:0};function Gu(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon information-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Wu,[o.title?(e.openBlock(),e.createElementBlock("title",ju,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,zu))],16,Hu)}const Ku=A(Uu,[["render",Gu]]),Yu={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qu=["aria-hidden","aria-label"],Xu=["fill","width","height"],Zu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},Ju={key:0};function Qu(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Zu,[o.title?(e.openBlock(),e.createElementBlock("title",Ju,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Xu))],16,qu)}const Wn=A(Yu,[["render",Qu]]),ed={class:"main-content"},td={class:"icon rounded"},nd={class:"node-content"},od={class:"d-flex node-title"},ld=["title"],rd={key:0,class:"d-flex"},ad={class:"text-white top-button-div"},id=e.defineComponent({name:"BasicNode",inheritAttrs:!1,__name:"BasicNode",props:{id:{},title:{},type:{},disabled:{type:Boolean},state:{},data:{},icons:{},iconComponent:{},class:{}},emits:[S.EVENTS.EXPAND,S.EVENTS.OPEN_LINK,S.EVENTS.SHOW_LOGS,S.EVENTS.MOUSE_OVER,S.EVENTS.MOUSE_LEAVE,S.EVENTS.ADD_ERROR,S.EVENTS.EDIT,S.EVENTS.DELETE,S.EVENTS.ADD_TASK,S.EVENTS.SHOW_DESCRIPTION],setup(t,{emit:n}){const o=n,l=t;function r(){o(S.EVENTS.MOUSE_OVER,l.data.node)}function a(){o(S.EVENTS.MOUSE_LEAVE)}const i=e.computed(()=>l.data?.expandable||!1),s=e.computed(()=>l.data.node?.plugin??l.data.node?.task??l.data.node?.trigger??null),c=e.computed(()=>s.value?.description??null),u=e.computed(()=>S.Utils.afterLastDot(l.id??"")),d=e.computed(()=>["default","danger"].includes(l.data.color)?"":l.data.color),h=e.computed(()=>[{"unused-path":l.data.unused,disabled:s.value?.disabled||l.data.parent?.taskNode?.task?.disabled},l.class]),f=e.computed(()=>{if(l.data.node.triggerDeclaration)return l.data.node.triggerDeclaration.type;if(s.value)return s.value?.type}),k=e.computed(()=>{if(s.value?.type?.endsWith("SubflowGraphTask")){const y=s.value.subflowId??s.value;return y.namespace+" "+y.flowId}return u.value}),V=e.computed(()=>l.title??u.value);return(y,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["node-wrapper rounded-3",{...h.value,"running-border-animation":t.state==="RUNNING"}]),style:e.normalizeStyle({borderColor:t.state?`var(--ks-border-${t.state.toLowerCase()})`:void 0}),onMouseover:r,onMouseleave:a},[e.createElementVNode("div",ed,[e.createElementVNode("div",td,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent||zn),{cls:f.value,class:e.normalizeClass([d.value,"rounded bg-white"]),theme:"light",icons:t.icons},null,8,["cls","class","icons"]))]),e.createElementVNode("div",nd,[e.createElementVNode("div",od,[e.createElementVNode("div",{class:"text-truncate task-title",title:k.value},[e.createVNode(W,{title:k.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.value),1)]),_:1},8,["title"])],8,ld),c.value?(e.openBlock(),e.createElementBlock("span",rd,[e.createVNode(W,{title:y.$t("show description"),class:"d-flex align-items-center"},{default:e.withCtx(()=>[e.createVNode(Ku,{onClick:L[0]||(L[0]=m=>y.$emit(e.unref(S.EVENTS).SHOW_DESCRIPTION,{id:u.value,description:c.value})),class:"description-button ms-2"})]),_:1},8,["title"])])):e.createCommentVNode("",!0)]),e.renderSlot(y.$slots,"content",{},void 0,!0)]),e.createElementVNode("div",ad,[e.renderSlot(y.$slots,"badge-button-before",{},void 0,!0),t.data.link?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:L[1]||(L[1]=m=>y.$emit(e.unref(S.EVENTS).OPEN_LINK,{link:t.data.link}))},[e.createVNode(W,{title:y.$t("open")},{default:e.withCtx(()=>[e.createVNode(Al,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:L[2]||(L[2]=m=>y.$emit(e.unref(S.EVENTS).EXPAND))},[e.createVNode(W,{title:y.$t("expand")},{default:e.withCtx(()=>[e.createVNode(Wn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),e.renderSlot(y.$slots,"badge-button-after",{},void 0,!0)])]),e.renderSlot(y.$slots,"details",{},void 0,!0)],38))}}),jn=A(id,[["__scopeId","data-v-aea93b11"]]),Gn=Symbol("execution-injection-key"),Pl=Symbol("subflows-executions-injection-key"),sd={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cd=["aria-hidden","aria-label"],ud=["fill","width","height"],dd={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"},md={key:0};function fd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",dd,[o.title?(e.openBlock(),e.createElementBlock("title",md,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,ud))],16,cd)}const Kn=A(sd,[["render",fd]]),pd={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gd=["aria-hidden","aria-label"],hd=["fill","width","height"],Ed={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},kd={key:0};function yd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon delete-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Ed,[o.title?(e.openBlock(),e.createElementBlock("title",kd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,hd))],16,gd)}const Yn=A(pd,[["render",yd]]),vd={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cd=["aria-hidden","aria-label"],_d=["fill","width","height"],Nd={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"},Sd={key:0};function bd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Nd,[o.title?(e.openBlock(),e.createElementBlock("title",Sd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,_d))],16,Cd)}const wd=A(vd,[["render",bd]]),Ld={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Bd=["aria-hidden","aria-label"],Td=["fill","width","height"],Vd={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},$d={key:0};function Id(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Vd,[o.title?(e.openBlock(),e.createElementBlock("title",$d,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Td))],16,Bd)}const Ad=A(Ld,[["render",Id]]),Dd={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Od=["aria-hidden","aria-label"],xd=["fill","width","height"],Pd={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"},Rd={key:0};function Md(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon send-lock-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Pd,[o.title?(e.openBlock(),e.createElementBlock("title",Rd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,xd))],16,Od)}const Fd=A(Dd,[["render",Md]]),Ud={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hd=["aria-hidden","aria-label"],zd=["fill","width","height"],Wd={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},jd={key:0};function Gd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Wd,[o.title?(e.openBlock(),e.createElementBlock("title",jd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,zd))],16,Hd)}const Kd=A(Ud,[["render",Gd]]),Yd={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qd=["aria-hidden","aria-label"],Xd=["fill","width","height"],Zd={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},Jd={key:0};function Qd(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Zd,[o.title?(e.openBlock(),e.createElementBlock("title",Jd,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Xd))],16,qd)}const Rl=A(Yd,[["render",Qd]]),em={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},tm=["aria-hidden","aria-label"],nm=["fill","width","height"],om={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},lm={key:0};function rm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",om,[o.title?(e.openBlock(),e.createElementBlock("title",lm,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,nm))],16,tm)}const Kt=A(em,[["render",rm]]),am={name:"SkipForwardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},im=["aria-hidden","aria-label"],sm=["fill","width","height"],cm={d:"M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12"},um={key:0};function dm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-forward-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",cm,[o.title?(e.openBlock(),e.createElementBlock("title",um,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,sm))],16,im)}const mm=A(am,[["render",dm]]),fm={name:"EyeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pm=["aria-hidden","aria-label"],gm=["fill","width","height"],hm={d:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},Em={key:0};function km(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",hm,[o.title?(e.openBlock(),e.createElementBlock("title",Em,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,gm))],16,pm)}const ym=A(fm,[["render",km]]),vm=["aria-label"],Cm=e.defineComponent({name:"TaskNode",inheritAttrs:!1,__name:"TaskNode",props:{data:{},sourcePosition:{default:oe.Position.Right},targetPosition:{default:oe.Position.Left},id:{},icons:{default:void 0},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},playgroundEnabled:{type:Boolean},playgroundReadyToStart:{type:Boolean},customActions:{default:()=>({})}},setup(t,{emit:n}){const o=t,l=n,r=e.inject(Gn),a=e.inject(Pl),i=e.computed(()=>o.data.color??"primary"),s=e.computed(()=>S.Utils.afterLastDot(o.id)),c=e.computed(()=>{const m=o.data.executionId;if(m)return m===r?.value?.id?r?.value:Object.values(a?.value||{}).find(E=>E.id===m)}),u=e.computed(()=>c.value&&c.value.taskRunList?c.value.taskRunList:[]),d=e.computed(()=>u.value.filter(m=>m.taskId===S.Utils.afterLastDot(o.data.node.uid))),h=e.computed(()=>{if(!d.value?.length)return null;if(d.value.length===1)return d.value[0].state.current;const m=d.value.map(v=>v.state.current),E=[ne.FAILED,ne.KILLED,ne.WARNING,ne.SKIPPED,ne.KILLING,ne.RUNNING,ne.SUCCESS,ne.RESTARTED,ne.CREATED];return m.map(v=>[E.indexOf(v[1]),v]).sort().map(v=>v[1])[0]}),f=e.computed(()=>({"execution-no-taskrun":!!(c.value&&d.value&&d.value.length===0)})),k=e.computed(()=>({id:o.id,type:String(o.data.node.task.type)})),V=e.computed(()=>{if(o.data.node.type?.endsWith("SubflowGraphTask")&&o.enableSubflowInteraction){const m=o.data.node.task.subflowId??o.data.node.task;return{...o.data,link:{namespace:m.namespace,id:m.flowId,executionId:c.value?.taskRunList.filter(E=>E.id===o.data.node.taskRun.id&&E.outputs?.executionId)?.[0]?.outputs?.executionId}}}return o.data}),y=e.computed(()=>{const m=o.data.node.task?.type;if(!(!m||!o.customActions))return o.customActions[m]}),L=e.computed(()=>{if(h.value===ne.RUNNING)return"task is running";if(h.value===ne.SUCCESS)return"task was successful";if(h.value===ne.WARNING)return"task sent a warning";if(h.value===ne.SKIPPED)return"task was skipped";if(h.value===ne.FAILED)return"task failed"});return(m,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(oe.Handle),{type:"source",position:t.sourcePosition},null,8,["position"]),e.createVNode(jn,{id:t.id,data:V.value,state:h.value,class:e.normalizeClass(f.value),icons:t.icons,"icon-component":t.iconComponent,onShowDescription:E[7]||(E[7]=N=>l(e.unref(S.EVENTS).SHOW_DESCRIPTION,N)),onExpand:E[8]||(E[8]=N=>l(e.unref(S.EVENTS).EXPAND,k.value)),onOpenLink:E[9]||(E[9]=N=>l(e.unref(S.EVENTS).OPEN_LINK,N)),onMouseover:E[10]||(E[10]=N=>l(e.unref(S.EVENTS).MOUSE_OVER,N)),onMouseleave:E[11]||(E[11]=N=>l(e.unref(S.EVENTS).MOUSE_LEAVE))},{details:e.withCtx(()=>[e.renderSlot(m.$slots,"details",{},void 0,!0)]),content:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(Fu,{key:0,execution:c.value,task:t.data.node.task,color:i.value,uid:t.data.node.uid,state:h.value},null,8,["execution","task","color","uid","state"])):e.createCommentVNode("",!0),t.data.node.task?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.playgroundEnabled&&t.playgroundReadyToStart?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"playground-button",onClick:E[0]||(E[0]=N=>l(e.unref(S.EVENTS).RUN_TASK,{task:t.data.node.task}))},[e.createVNode(W,{style:{display:"flex"},title:m.$t("run task in playground")},{default:e.withCtx(()=>[e.createVNode(Kd,{class:"button-play-icon",alt:m.$t("run task in playground")},null,8,["alt"])]),_:1},8,["title"])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"playground-button",style:e.normalizeStyle({color:`var(--ks-content-${h.value?.toLowerCase()})`,backgroundColor:`var(--ks-background-${h.value?.toLowerCase()})`})},[e.createVNode(W,{style:{display:"flex"},title:L.value?m.$t(L.value):void 0},{default:e.withCtx(()=>[h.value===e.unref(ne).RUNNING?(e.openBlock(),e.createBlock(ll,{key:0,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):h.value===e.unref(ne).SUCCESS?(e.openBlock(),e.createBlock(Rl,{key:1,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):h.value===e.unref(ne).WARNING?(e.openBlock(),e.createBlock(Kt,{key:2,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):h.value===e.unref(ne).SKIPPED?(e.openBlock(),e.createBlock(mm,{key:3,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):h.value===e.unref(ne).FAILED?(e.openBlock(),e.createBlock(At,{key:4,alt:L.value?m.$t(L.value):void 0},null,8,["alt"])):e.createCommentVNode("",!0)]),_:1},8,["title"])],4))],64)):e.createCommentVNode("",!0)]),"badge-button-before":e.withCtx(()=>[t.data.node.task&&t.data.node.task.runIf?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",["bg-warning"]]),onClick:E[1]||(E[1]=N=>l(e.unref(S.EVENTS).SHOW_CONDITION,{id:s.value,task:t.data.node.task,section:e.unref(S.SECTIONS).TASKS}))},[e.createVNode(W,{title:m.$t("show task condition")},{default:e.withCtx(()=>[e.createVNode(Fd,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:E[2]||(E[2]=N=>l(e.unref(S.EVENTS).SHOW_LOGS,{id:s.value,execution:c.value,taskRuns:d.value}))},[e.createVNode(W,{title:m.$t("show task logs")},{default:e.withCtx(()=>[e.createVNode(wd,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),y.value&&t.data.node.task?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),"aria-label":y.value.label,onClick:E[3]||(E[3]=N=>l(e.unref(S.EVENTS).SHOW_CUSTOM_ACTION,{task:t.data.node.task,customAction:y.value}))},[e.createVNode(W,{title:y.value.label},{default:e.withCtx(()=>[e.createVNode(ym,{class:"button-icon",alt:y.value.label},null,8,["alt"])]),_:1},8,["title"])],10,vm)):e.createCommentVNode("",!0),!c.value&&!t.data.isReadOnly&&t.data.isFlowable?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:E[4]||(E[4]=N=>l(e.unref(S.EVENTS).ADD_ERROR,{task:t.data.node.task}))},[e.createVNode(W,{title:m.$t("add error handler")},{default:e.withCtx(()=>[e.createVNode(Ad,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),!c.value&&!t.data.isReadOnly?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:E[5]||(E[5]=N=>l(e.unref(S.EVENTS).EDIT,{task:t.data.node.task,section:e.unref(S.SECTIONS).TASKS}))},[e.createVNode(W,{title:m.$t("edit")},{default:e.withCtx(()=>[e.createVNode(Kn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),!c.value&&!t.data.isReadOnly?(e.openBlock(),e.createElementBlock("span",{key:5,class:e.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:E[6]||(E[6]=N=>l(e.unref(S.EVENTS).DELETE,{id:s.value,section:e.unref(S.SECTIONS).TASKS}))},[e.createVNode(W,{title:m.$t("delete")},{default:e.withCtx(()=>[e.createVNode(Yn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0)]),_:3},8,["id","data","state","class","icons","icon-component"]),e.createVNode(e.unref(oe.Handle),{type:"target",position:t.targetPosition},null,8,["position"])],64))}}),_m=A(Cm,[["__scopeId","data-v-f9d8ede0"]]),Nm={name:"Task",inheritAttrs:!1,inject:{execution:{from:Gn}},computed:{SECTIONS(){return S.SECTIONS},EVENTS(){return S.EVENTS},color(){return this.data.color??"primary"},formattedData(){return{...this.data,unused:this.data.node?.triggerDeclaration?.disabled||this.data.node?.trigger?.disabled}},triggerId(){return S.Utils.afterLastDot(this.id)}},emits:[S.EVENTS.DELETE,S.EVENTS.EDIT,S.EVENTS.SHOW_DESCRIPTION],components:{Delete:Yn,Pencil:Kn,Handle:oe.Handle,Tooltip:W},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(t,n){this.$emit(t,n)}}},Sm=Object.assign(Nm,{setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(oe.Handle),{type:"source",position:t.sourcePosition},null,8,["position"]),e.createVNode(jn,{id:t.id,data:n.formattedData,color:n.color,icons:t.icons,"icon-component":t.iconComponent,onShowDescription:o[2]||(o[2]=l=>n.forwardEvent(e.unref(S.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[3]||(o[3]=l=>n.forwardEvent(e.unref(S.EVENTS).EXPAND,{id:t.id}))},e.createSlots({_:2},[t.data.isReadOnly?void 0:{name:"badge-button-before",fn:e.withCtx(()=>[n.execution?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(e.unref(S.EVENTS).EDIT,{task:t.data.node.triggerDeclaration,section:e.unref(S.SECTIONS).TRIGGERS}))},[e.createVNode(W,{title:n.$t("edit")},{default:e.withCtx(()=>[e.createVNode(Kn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),n.execution?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[1]||(o[1]=l=>n.$emit(e.unref(S.EVENTS).DELETE,{id:n.triggerId,section:e.unref(S.SECTIONS).TRIGGERS}))},[e.createVNode(W,{title:n.$t("delete")},{default:e.withCtx(()=>[e.createVNode(Yn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),e.createVNode(e.unref(oe.Handle),{type:"target",position:t.targetPosition},null,8,["position"])],64))}}),bm={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wm=["aria-hidden","aria-label"],Lm=["fill","width","height"],Bm={d:"M11 15H6L13 1V9H18L11 23V15Z"},Tm={key:0};function Vm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Bm,[o.title?(e.openBlock(),e.createElementBlock("title",Tm,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Lm))],16,wm)}const $m=A(bm,[["render",Vm]]),Im={class:"collapsed-cluster-node d-flex"},Am={class:"node-text"},Dm={class:"text-white top-button-div"},Om={components:{Tooltip:W,Handle:oe.Handle,ArrowExpand:Wn,LightningBolt:$m},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 S.EVENTS},expandable(){return this.data?.expandable||!1},description(){const t=this.data.node.task??this.data.node.trigger??null;return t?t.description??null:null}}},xm=Object.assign(Om,{__name:"CollapsedClusterNode",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(oe.Handle),{type:"source",position:t.sourcePosition},null,8,["position"]),e.createElementVNode("div",Im,[e.createElementVNode("span",Am,[t.data.iconComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.data.iconComponent),{key:0,class:e.normalizeClass(`text-${t.data.color} me-2`)},null,8,["class"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(S.Utils).afterLastDot(t.id)),1)]),e.createElementVNode("div",Dm,[e.renderSlot(n.$slots,"badge-button-before",{},void 0,!0),n.expandable?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["circle-button",[`bg-${t.data.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(e.unref(S.EVENTS).EXPAND,{id:t.id}))},[e.createVNode(W,{title:n.$t("expand")},{default:e.withCtx(()=>[e.createVNode(Wn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"badge-button-after",{},void 0,!0)])]),e.createVNode(e.unref(oe.Handle),{type:"target",position:t.targetPosition},null,8,["position"])],64))}}),Pm=A(xm,[["__scopeId","data-v-89413b39"]]),Rm={name:"SplitCellsVerticalIcon",emits:["click"]},Mm={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("svg",Mm,[...n[0]||(n[0]=[e.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[e.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),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_1111_7266"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)])])}const Um=A(Rm,[["render",Fm],["__scopeId","data-v-084c51e6"]]),Hm={name:"SplitCellsHorizontalIcon",emits:["click"]},zm={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("svg",zm,[...n[0]||(n[0]=[e.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[e.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),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_796_3996"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)])])}const jm=A(Hm,[["render",Wm],["__scopeId","data-v-c77c1469"]]),Gm={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Km=["aria-hidden","aria-label"],Ym=["fill","width","height"],qm={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},Xm={key:0};function Zm(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon download-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",qm,[o.title?(e.openBlock(),e.createElementBlock("title",Xm,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Ym))],16,Km)}const Jm=A(Gm,[["render",Zm]]);function Qm(t,n){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const o=document.implementation.createHTMLDocument(),l=o.createElement("base"),r=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(r),n&&(l.href=n),r.href=t,r.href}const ef=(()=>{let t=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${n()}${t}`)})();function Me(t){const n=[];for(let o=0,l=t.length;o<l;o++)n.push(t[o]);return n}let et=null;function Ml(t={}){return et||(t.includeStyleProperties?(et=t.includeStyleProperties,et):(et=Me(window.getComputedStyle(document.documentElement)),et))}function Rt(t,n){const l=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(n);return l?parseFloat(l.replace("px","")):0}function tf(t){const n=Rt(t,"border-left-width"),o=Rt(t,"border-right-width");return t.clientWidth+n+o}function nf(t){const n=Rt(t,"border-top-width"),o=Rt(t,"border-bottom-width");return t.clientHeight+n+o}function Fl(t,n={}){const o=n.width||tf(t),l=n.height||nf(t);return{width:o,height:l}}function of(){let t,n;try{n=process}catch{}const o=n&&n.env?n.env.devicePixelRatio:null;return o&&(t=parseInt(o,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}const ye=16384;function lf(t){(t.width>ye||t.height>ye)&&(t.width>ye&&t.height>ye?t.width>t.height?(t.height*=ye/t.width,t.width=ye):(t.width*=ye/t.height,t.height=ye):t.width>ye?(t.height*=ye/t.width,t.width=ye):(t.width*=ye/t.height,t.height=ye))}function Mt(t){return new Promise((n,o)=>{const l=new Image;l.onload=()=>{l.decode().then(()=>{requestAnimationFrame(()=>n(l))})},l.onerror=o,l.crossOrigin="anonymous",l.decoding="async",l.src=t})}async function rf(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function af(t,n,o){const l="http://www.w3.org/2000/svg",r=document.createElementNS(l,"svg"),a=document.createElementNS(l,"foreignObject");return r.setAttribute("width",`${n}`),r.setAttribute("height",`${o}`),r.setAttribute("viewBox",`0 0 ${n} ${o}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),r.appendChild(a),a.appendChild(t),rf(r)}const Ee=(t,n)=>{if(t instanceof n)return!0;const o=Object.getPrototypeOf(t);return o===null?!1:o.constructor.name===n.name||Ee(o,n)};function sf(t){const n=t.getPropertyValue("content");return`${t.cssText} content: '${n.replace(/'|"/g,"")}';`}function cf(t,n){return Ml(n).map(o=>{const l=t.getPropertyValue(o),r=t.getPropertyPriority(o);return`${o}: ${l}${r?" !important":""};`}).join(" ")}function uf(t,n,o,l){const r=`.${t}:${n}`,a=o.cssText?sf(o):cf(o,l);return document.createTextNode(`${r}{${a}}`)}function Wo(t,n,o,l){const r=window.getComputedStyle(t,o),a=r.getPropertyValue("content");if(a===""||a==="none")return;const i=ef();try{n.className=`${n.className} ${i}`}catch{return}const s=document.createElement("style");s.appendChild(uf(i,o,r,l)),n.appendChild(s)}function df(t,n,o){Wo(t,n,":before",o),Wo(t,n,":after",o)}const jo="application/font-woff",Go="image/jpeg",mf={woff:jo,woff2:jo,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Go,jpeg:Go,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function ff(t){const n=/\.([^./]*?)$/g.exec(t);return n?n[1]:""}function qn(t){const n=ff(t).toLowerCase();return mf[n]||""}function pf(t){return t.split(/,/)[1]}function Bn(t){return t.search(/^(data:)/)!==-1}function gf(t,n){return`data:${n};base64,${t}`}async function Ul(t,n,o){const l=await fetch(t,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const r=await l.blob();return new Promise((a,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{a(o({res:l,result:s.result}))}catch(c){i(c)}},s.readAsDataURL(r)})}const fn={};function hf(t,n,o){let l=t.replace(/\?.*/,"");return o&&(l=t),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),n?`[${n}]${l}`:l}async function Xn(t,n,o){const l=hf(t,n,o.includeQueryParams);if(fn[l]!=null)return fn[l];o.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let r;try{const a=await Ul(t,o.fetchRequestInit,({res:i,result:s})=>(n||(n=i.headers.get("Content-Type")||""),pf(s)));r=gf(a,n)}catch(a){r=o.imagePlaceholder||"";let i=`Failed to fetch resource: ${t}`;a&&(i=typeof a=="string"?a:a.message),i&&console.warn(i)}return fn[l]=r,r}async function Ef(t){const n=t.toDataURL();return n==="data:,"?t.cloneNode(!1):Mt(n)}async function kf(t,n){if(t.currentSrc){const a=document.createElement("canvas"),i=a.getContext("2d");a.width=t.clientWidth,a.height=t.clientHeight,i?.drawImage(t,0,0,a.width,a.height);const s=a.toDataURL();return Mt(s)}const o=t.poster,l=qn(o),r=await Xn(o,l,n);return Mt(r)}async function yf(t,n){var o;try{if(!((o=t?.contentDocument)===null||o===void 0)&&o.body)return await Yt(t.contentDocument.body,n,!0)}catch{}return t.cloneNode(!1)}async function vf(t,n){return Ee(t,HTMLCanvasElement)?Ef(t):Ee(t,HTMLVideoElement)?kf(t,n):Ee(t,HTMLIFrameElement)?yf(t,n):t.cloneNode(Hl(t))}const Cf=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT",Hl=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SVG";async function _f(t,n,o){var l,r;if(Hl(n))return n;let a=[];return Cf(t)&&t.assignedNodes?a=Me(t.assignedNodes()):Ee(t,HTMLIFrameElement)&&(!((l=t.contentDocument)===null||l===void 0)&&l.body)?a=Me(t.contentDocument.body.childNodes):a=Me(((r=t.shadowRoot)!==null&&r!==void 0?r:t).childNodes),a.length===0||Ee(t,HTMLVideoElement)||await a.reduce((i,s)=>i.then(()=>Yt(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function Nf(t,n,o){const l=n.style;if(!l)return;const r=window.getComputedStyle(t);r.cssText?(l.cssText=r.cssText,l.transformOrigin=r.transformOrigin):Ml(o).forEach(a=>{let i=r.getPropertyValue(a);a==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),Ee(t,HTMLIFrameElement)&&a==="display"&&i==="inline"&&(i="block"),a==="d"&&n.getAttribute("d")&&(i=`path(${n.getAttribute("d")})`),l.setProperty(a,i,r.getPropertyPriority(a))})}function Sf(t,n){Ee(t,HTMLTextAreaElement)&&(n.innerHTML=t.value),Ee(t,HTMLInputElement)&&n.setAttribute("value",t.value)}function bf(t,n){if(Ee(t,HTMLSelectElement)){const l=Array.from(n.children).find(r=>t.value===r.getAttribute("value"));l&&l.setAttribute("selected","")}}function wf(t,n,o){return Ee(n,Element)&&(Nf(t,n,o),df(t,n,o),Sf(t,n),bf(t,n)),n}async function Lf(t,n){const o=t.querySelectorAll?t.querySelectorAll("use"):[];if(o.length===0)return t;const l={};for(let a=0;a<o.length;a++){const s=o[a].getAttribute("xlink:href");if(s){const c=t.querySelector(s),u=document.querySelector(s);!c&&u&&!l[s]&&(l[s]=await Yt(u,n,!0))}}const r=Object.values(l);if(r.length){const a="http://www.w3.org/1999/xhtml",i=document.createElementNS(a,"svg");i.setAttribute("xmlns",a),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(a,"defs");i.appendChild(s);for(let c=0;c<r.length;c++)s.appendChild(r[c]);t.appendChild(i)}return t}async function Yt(t,n,o){return!o&&n.filter&&!n.filter(t)?null:Promise.resolve(t).then(l=>vf(l,n)).then(l=>_f(t,l,n)).then(l=>wf(t,l,n)).then(l=>Lf(l,n))}const zl=/url\((['"]?)([^'"]+?)\1\)/g,Bf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Tf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Vf(t){const n=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function $f(t){const n=[];return t.replace(zl,(o,l,r)=>(n.push(r),o)),n.filter(o=>!Bn(o))}async function If(t,n,o,l,r){try{const a=o?Qm(n,o):n,i=qn(n);let s;return r||(s=await Xn(a,i,l)),t.replace(Vf(n),`$1${s}$3`)}catch{}return t}function Af(t,{preferredFontFormat:n}){return n?t.replace(Tf,o=>{for(;;){const[l,,r]=Bf.exec(o)||[];if(!r)return"";if(r===n)return`src: ${l};`}}):t}function Wl(t){return t.search(zl)!==-1}async function jl(t,n,o){if(!Wl(t))return t;const l=Af(t,o);return $f(l).reduce((a,i)=>a.then(s=>If(s,i,n,o)),Promise.resolve(l))}async function tt(t,n,o){var l;const r=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(t);if(r){const a=await jl(r,null,o);return n.style.setProperty(t,a,n.style.getPropertyPriority(t)),!0}return!1}async function Df(t,n){await tt("background",t,n)||await tt("background-image",t,n),await tt("mask",t,n)||await tt("-webkit-mask",t,n)||await tt("mask-image",t,n)||await tt("-webkit-mask-image",t,n)}async function Of(t,n){const o=Ee(t,HTMLImageElement);if(!(o&&!Bn(t.src))&&!(Ee(t,SVGImageElement)&&!Bn(t.href.baseVal)))return;const l=o?t.src:t.href.baseVal,r=await Xn(l,qn(l),n);await new Promise((a,i)=>{t.onload=a,t.onerror=n.onImageErrorHandler?(...c)=>{try{a(n.onImageErrorHandler(...c))}catch(u){i(u)}}:i;const s=t;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),o?(t.srcset="",t.src=r):t.href.baseVal=r})}async function xf(t,n){const l=Me(t.childNodes).map(r=>Gl(r,n));await Promise.all(l).then(()=>t)}async function Gl(t,n){Ee(t,Element)&&(await Df(t,n),await Of(t,n),await xf(t,n))}function Pf(t,n){const{style:o}=t;n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.width&&(o.width=`${n.width}px`),n.height&&(o.height=`${n.height}px`);const l=n.style;return l!=null&&Object.keys(l).forEach(r=>{o[r]=l[r]}),t}const Ko={};async function Yo(t){let n=Ko[t];if(n!=null)return n;const l=await(await fetch(t)).text();return n={url:t,cssText:l},Ko[t]=n,n}async function qo(t,n){let o=t.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,a=(o.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,t.url).href),Ul(s,n.fetchRequestInit,({result:c})=>(o=o.replace(i,`url(${c})`),[i,c]))});return Promise.all(a).then(()=>o)}function Xo(t){if(t==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=t.replace(o,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(r,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(i,"gi");for(;;){let c=a.exec(l);if(c===null){if(c=s.exec(l),c===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;n.push(c[0])}return n}async function Rf(t,n){const o=[],l=[];return t.forEach(r=>{if("cssRules"in r)try{Me(r.cssRules||[]).forEach((a,i)=>{if(a.type===CSSRule.IMPORT_RULE){let s=i+1;const c=a.href,u=Yo(c).then(d=>qo(d,n)).then(d=>Xo(d).forEach(h=>{try{r.insertRule(h,h.startsWith("@import")?s+=1:r.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:h,error:f})}})).catch(d=>{console.error("Error loading remote css",d.toString())});l.push(u)}})}catch(a){const i=t.find(s=>s.href==null)||document.styleSheets[0];r.href!=null&&l.push(Yo(r.href).then(s=>qo(s,n)).then(s=>Xo(s).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(l).then(()=>(t.forEach(r=>{if("cssRules"in r)try{Me(r.cssRules||[]).forEach(a=>{o.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${r.href}`,a)}}),o))}function Mf(t){return t.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Wl(n.style.getPropertyValue("src")))}async function Ff(t,n){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=Me(t.ownerDocument.styleSheets),l=await Rf(o,n);return Mf(l)}function Kl(t){return t.trim().replace(/["']/g,"")}function Uf(t){const n=new Set;function o(l){(l.style.fontFamily||getComputedStyle(l).fontFamily).split(",").forEach(a=>{n.add(Kl(a))}),Array.from(l.children).forEach(a=>{a instanceof HTMLElement&&o(a)})}return o(t),n}async function Hf(t,n){const o=await Ff(t,n),l=Uf(t);return(await Promise.all(o.filter(a=>l.has(Kl(a.style.fontFamily))).map(a=>{const i=a.parentStyleSheet?a.parentStyleSheet.href:null;return jl(a.cssText,i,n)}))).join(`
9
9
  `)}async function zf(t,n){const o=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await Hf(t,n);if(o){const l=document.createElement("style"),r=document.createTextNode(o);l.appendChild(r),t.firstChild?t.insertBefore(l,t.firstChild):t.appendChild(l)}}async function Wf(t,n={}){const{width:o,height:l}=Fl(t,n),r=await Yt(t,n,!0);return await zf(r,n),await Gl(r,n),Pf(r,n),await af(r,o,l)}async function Yl(t,n={}){const{width:o,height:l}=Fl(t,n),r=await Wf(t,n),a=await Mt(r),i=document.createElement("canvas"),s=i.getContext("2d"),c=n.pixelRatio||of(),u=n.canvasWidth||o,d=n.canvasHeight||l;return i.width=u*c,i.height=d*c,n.skipAutoScale||lf(i),i.style.width=`${u}`,i.style.height=`${d}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(a,0,0,i.width,i.height),i}async function jf(t,n={}){return(await Yl(t,n)).toDataURL()}async function Gf(t,n={}){return(await Yl(t,n)).toDataURL("image/jpeg",n.quality||1)}function Kf(){const t=e.ref(""),n=e.ref("png"),o=e.ref();async function l(s,c={}){const u=c.fileName??`flow-graph-${Date.now()}`;s.classList.add("is-exporting");const d=s.querySelectorAll(".vue-flow__edge-path"),h=Array.from(d).map(f=>{const k=f,V=k.getAttribute("style")||"",y=window.getComputedStyle(k);return k.setAttribute("style",`
10
10
  ${V};
11
11
  stroke: ${y.stroke};