@kestra-io/ui-libs 0.0.173 → 0.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/misc/Duration.vue.d.ts.map +1 -1
- package/dist/kestra-ui.css +1 -1
- package/dist/kestra-ui.js +14 -17
- package/dist/kestra-ui.js.map +1 -1
- package/dist/kestra-ui.umd.cjs +1 -1
- package/dist/kestra-ui.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/misc/Duration.vue +1 -5
- package/src/scss/_variables.scss +5 -6
- package/src/scss/ks-theme-dark.scss +4 -0
package/dist/kestra-ui.umd.cjs
CHANGED
|
@@ -25,7 +25,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
25
25
|
* vuex v4.1.0
|
|
26
26
|
* (c) 2022 Evan You
|
|
27
27
|
* @license MIT
|
|
28
|
-
*/var OE="store";function un(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function ew(e){return e!==null&&typeof e=="object"}function DE(e){return e&&typeof e.then=="function"}function At(e,t){if(!e)throw new Error("[vuex] "+t)}function ME(e,t){return function(){return e(t)}}function tw(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function nw(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;si(e,n,[],e._modules.root,!0),np(e,n,t)}function np(e,t,n){var a=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={},s={},l=c.effectScope(!0);l.run(function(){un(r,function(m,p){o[p]=ME(m,e),s[p]=c.computed(function(){return o[p]()}),Object.defineProperty(e.getters,p,{get:function(){return s[p].value},enumerable:!0})})}),e._state=c.reactive({data:t}),e._scope=l,e.strict&&VE(e),a&&n&&e._withCommit(function(){a.data=null}),i&&i.stop()}function si(e,t,n,a,i){var r=!n.length,o=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[o]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+o+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[o]=a),!r&&!i){var s=ap(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+n.join(".")+'"'),s[l]=a.state})}var m=a.context=BE(e,o,n);a.forEachMutation(function(p,d){var u=o+d;GE(e,u,p,m)}),a.forEachAction(function(p,d){var u=p.root?d:o+d,g=p.handler||p;UE(e,u,g,m)}),a.forEachGetter(function(p,d){var u=o+d;WE(e,u,p,m)}),a.forEachChild(function(p,d){si(e,t,n.concat(d),p,i)})}function BE(e,t,n){var a=t==="",i={dispatch:a?e.dispatch:function(r,o,s){var l=ci(r,o,s),m=l.payload,p=l.options,d=l.type;if((!p||!p.root)&&(d=t+d,process.env.NODE_ENV!=="production"&&!e._actions[d])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+d);return}return e.dispatch(d,m)},commit:a?e.commit:function(r,o,s){var l=ci(r,o,s),m=l.payload,p=l.options,d=l.type;if((!p||!p.root)&&(d=t+d,process.env.NODE_ENV!=="production"&&!e._mutations[d])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+d);return}e.commit(d,m,p)}};return Object.defineProperties(i,{getters:{get:a?function(){return e.getters}:function(){return aw(e,t)}},state:{get:function(){return ap(e.state,n)}}}),i}function aw(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,a)===t){var r=i.slice(a);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function GE(e,t,n,a){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(o){n.call(e,a.state,o)})}function UE(e,t,n,a){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(o){var s=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},o);return DE(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):s})}function WE(e,t,n,a){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(r){return n(a.state,a.getters,r.state,r.getters)}}function VE(e){c.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&At(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function ap(e,t){return t.reduce(function(n,a){return n[a]},e)}function ci(e,t,n){return ew(e)&&e.type&&(n=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&At(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var HE="vuex bindings",iw="vuex:mutations",ip="vuex:actions",qn="vuex",KE=0;function XE(e,t){sS({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[HE]},function(n){n.addTimelineLayer({id:iw,label:"Vuex Mutations",color:rw}),n.addTimelineLayer({id:ip,label:"Vuex Actions",color:rw}),n.addInspector({id:qn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(a){if(a.app===e&&a.inspectorId===qn)if(a.filter){var i=[];lw(i,t._modules.root,a.filter,""),a.rootNodes=i}else a.rootNodes=[cw(t._modules.root,"")]}),n.on.getInspectorState(function(a){if(a.app===e&&a.inspectorId===qn){var i=a.nodeId;aw(t,i),a.state=JE(tj(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(a){if(a.app===e&&a.inspectorId===qn){var i=a.nodeId,r=a.path;i!=="root"&&(r=i.split("/").filter(Boolean).concat(r)),t._withCommit(function(){a.set(t._state.data,r,a.state.value)})}}),t.subscribe(function(a,i){var r={};a.payload&&(r.payload=a.payload),r.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(qn),n.sendInspectorState(qn),n.addTimelineEvent({layerId:iw,event:{time:Date.now(),title:a.type,data:r}})}),t.subscribeAction({before:function(a,i){var r={};a.payload&&(r.payload=a.payload),a._id=KE++,a._time=Date.now(),r.state=i,n.addTimelineEvent({layerId:ip,event:{time:a._time,title:a.type,groupId:a._id,subtitle:"start",data:r}})},after:function(a,i){var r={},o=Date.now()-a._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},a.payload&&(r.payload=a.payload),r.state=i,n.addTimelineEvent({layerId:ip,event:{time:Date.now(),title:a.type,groupId:a._id,subtitle:"end",data:r}})}})})}var rw=8702998,YE=6710886,QE=16777215,ow={label:"namespaced",textColor:QE,backgroundColor:YE};function sw(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function cw(e,t){return{id:t||"root",label:sw(t),tags:e.namespaced?[ow]:[],children:Object.keys(e._children).map(function(n){return cw(e._children[n],t+n+"/")})}}function lw(e,t,n,a){a.includes(n)&&e.push({id:a||"root",label:a.endsWith("/")?a.slice(0,a.length-1):a||"Root",tags:t.namespaced?[ow]:[]}),Object.keys(t._children).forEach(function(i){lw(e,t._children[i],n,a+i+"/")})}function JE(e,t,n){t=n==="root"?t:t[n];var a=Object.keys(t),i={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(a.length){var r=ej(t);i.getters=Object.keys(r).map(function(o){return{key:o.endsWith("/")?sw(o):o,editable:!1,value:rp(function(){return r[o]})}})}return i}function ej(e){var t={};return Object.keys(e).forEach(function(n){var a=n.split("/");if(a.length>1){var i=t,r=a.pop();a.forEach(function(o){i[o]||(i[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),i=i[o]._custom.value}),i[r]=rp(function(){return e[n]})}else t[n]=rp(function(){return e[n]})}),t}function tj(e,t){var n=t.split("/").filter(function(a){return a});return n.reduce(function(a,i,r){var o=a[i];if(!o)throw new Error('Missing module "'+i+'" for path "'+t+'".');return r===n.length-1?o:o._children},t==="root"?e:e.root._children)}function rp(e){try{return e()}catch(t){return t}}var Ct=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var a=t.state;this.state=(typeof a=="function"?a():a)||{}},mw={namespaced:{configurable:!0}};mw.namespaced.get=function(){return!!this._rawModule.namespaced},Ct.prototype.addChild=function(t,n){this._children[t]=n},Ct.prototype.removeChild=function(t){delete this._children[t]},Ct.prototype.getChild=function(t){return this._children[t]},Ct.prototype.hasChild=function(t){return t in this._children},Ct.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Ct.prototype.forEachChild=function(t){un(this._children,t)},Ct.prototype.forEachGetter=function(t){this._rawModule.getters&&un(this._rawModule.getters,t)},Ct.prototype.forEachAction=function(t){this._rawModule.actions&&un(this._rawModule.actions,t)},Ct.prototype.forEachMutation=function(t){this._rawModule.mutations&&un(this._rawModule.mutations,t)},Object.defineProperties(Ct.prototype,mw);var gn=function(t){this.register([],t,!1)};gn.prototype.get=function(t){return t.reduce(function(n,a){return n.getChild(a)},this.root)},gn.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(a,i){return n=n.getChild(i),a+(n.namespaced?i+"/":"")},"")},gn.prototype.update=function(t){pw([],this.root,t)},gn.prototype.register=function(t,n,a){var i=this;a===void 0&&(a=!0),process.env.NODE_ENV!=="production"&&gw(t,n);var r=new Ct(n,a);if(t.length===0)this.root=r;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],r)}n.modules&&un(n.modules,function(s,l){i.register(t.concat(l),s,a)})},gn.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),a=t[t.length-1],i=n.getChild(a);if(!i){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+a+"', which is not registered");return}i.runtime&&n.removeChild(a)},gn.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),a=t[t.length-1];return n?n.hasChild(a):!1};function pw(e,t,n){if(process.env.NODE_ENV!=="production"&&gw(e,n),t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+a+"' on hot reloading, manual reload is needed");return}pw(e.concat(a),t.getChild(a),n.modules[a])}}var dw={assert:function(e){return typeof e=="function"},expected:"function"},nj={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},uw={getters:dw,mutations:dw,actions:nj};function gw(e,t){Object.keys(uw).forEach(function(n){if(t[n]){var a=uw[n];un(t[n],function(i,r){At(a.assert(i),aj(e,n,r,i,a.expected))})}})}function aj(e,t,n,a,i){var r=t+" should be "+i+' but "'+t+"."+n+'"';return e.length>0&&(r+=' in module "'+e.join(".")+'"'),r+=" is "+JSON.stringify(a)+".",r}var mt=function e(t){var n=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(At(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),At(this instanceof e,"store must be called with the new operator."));var a=t.plugins;a===void 0&&(a=[]);var i=t.strict;i===void 0&&(i=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new gn(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var o=this,s=this,l=s.dispatch,m=s.commit;this.dispatch=function(u,g){return l.call(o,u,g)},this.commit=function(u,g,_){return m.call(o,u,g,_)},this.strict=i;var p=this._modules.root.state;si(this,p,[],this._modules.root),np(this,p),a.forEach(function(d){return d(n)})},op={state:{configurable:!0}};mt.prototype.install=function(t,n){t.provide(n||OE,this),t.config.globalProperties.$store=this;var a=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;a&&XE(t,this)},op.state.get=function(){return this._state.data},op.state.set=function(e){process.env.NODE_ENV!=="production"&&At(!1,"use store.replaceState() to explicit replace store state.")},mt.prototype.commit=function(t,n,a){var i=this,r=ci(t,n,a),o=r.type,s=r.payload,l=r.options,m={type:o,payload:s},p=this._mutations[o];if(!p){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+o);return}this._withCommit(function(){p.forEach(function(u){u(s)})}),this._subscribers.slice().forEach(function(d){return d(m,i.state)}),process.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")},mt.prototype.dispatch=function(t,n){var a=this,i=ci(t,n),r=i.type,o=i.payload,s={type:r,payload:o},l=this._actions[r];if(!l){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+r);return}try{this._actionSubscribers.slice().filter(function(p){return p.before}).forEach(function(p){return p.before(s,a.state)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(p))}var m=l.length>1?Promise.all(l.map(function(p){return p(o)})):l[0](o);return new Promise(function(p,d){m.then(function(u){try{a._actionSubscribers.filter(function(g){return g.after}).forEach(function(g){return g.after(s,a.state)})}catch(g){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(g))}p(u)},function(u){try{a._actionSubscribers.filter(function(g){return g.error}).forEach(function(g){return g.error(s,a.state,u)})}catch(g){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(g))}d(u)})})},mt.prototype.subscribe=function(t,n){return tw(t,this._subscribers,n)},mt.prototype.subscribeAction=function(t,n){var a=typeof t=="function"?{before:t}:t;return tw(a,this._actionSubscribers,n)},mt.prototype.watch=function(t,n,a){var i=this;return process.env.NODE_ENV!=="production"&&At(typeof t=="function","store.watch only accepts a function."),c.watch(function(){return t(i.state,i.getters)},n,Object.assign({},a))},mt.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})},mt.prototype.registerModule=function(t,n,a){a===void 0&&(a={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(At(Array.isArray(t),"module path must be a string or an Array."),At(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,n),si(this,this.state,t,this._modules.get(t),a.preserveState),np(this,this.state)},mt.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&At(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var a=ap(n.state,t.slice(0,-1));delete a[t[t.length-1]]}),nw(this)},mt.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&At(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)},mt.prototype.hotUpdate=function(t){this._modules.update(t),nw(this,!0)},mt.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n},Object.defineProperties(mt.prototype,op);var sp=fw(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!cp(t)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),bw(t).forEach(function(a){var i=a.key,r=a.val;n[i]=function(){var s=this.$store.state,l=this.$store.getters;if(e){var m=hw(this.$store,"mapState",e);if(!m)return;s=m.context.state,l=m.context.getters}return typeof r=="function"?r.call(this,s,l):s[r]},n[i].vuex=!0}),n}),ij=fw(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!cp(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),bw(t).forEach(function(a){var i=a.key,r=a.val;r=e+r,n[i]=function(){if(!(e&&!hw(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(r in this.$store.getters)){console.error("[vuex] unknown getter: "+r);return}return this.$store.getters[r]}},n[i].vuex=!0}),n});function bw(e){return cp(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function cp(e){return Array.isArray(e)||ew(e)}function fw(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function hw(e,t,n){var a=e._modulesNamespaceMap[n];return process.env.NODE_ENV!=="production"&&!a&&console.error("[vuex] module namespace not found in "+t+"(): "+n),a}const rj={class:"icon rounded"},oj={class:"node-content"},sj={class:"d-flex node-title"},cj={class:"text-truncate task-title"},lj={key:0,class:"d-flex"},mj={class:"text-white top-button-div"},pj={components:{ArrowExpand:oi,InformationOutline:J_,OpenInNew:tp,Tooltip:fe},emits:[G.EXPAND,G.OPEN_LINK,G.SHOW_LOGS,G.MOUSE_OVER,G.MOUSE_LEAVE,G.ADD_ERROR,G.EDIT,G.DELETE,G.ADD_TASK,G.SHOW_DESCRIPTION],inheritAttrs:!1,props:{id:{type:String,default:void 0},type:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},state:{type:String,default:void 0},data:{type:Object,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{mouseover(){this.$emit(G.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(G.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},computed:{Utils(){return Ee},...sp("execution",["execution"]),borderColor(){const e=this.data.color?this.data.color==="default"?null:this.data.color:null;return e||(this.expandable?"blue":null)},EVENTS(){return G},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null},trimmedId(){return Ee.afterLastDot(this.id)},taskIconBg(){return["default","danger"].includes(this.data.color)?"":this.data.color},stateColor(){switch(this.state){case"RUNNING":return"primary";case"SUCCESS":return"success";case"WARNING":return"warning";case"FAILED":return"danger";default:return null}},classes(){var e;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:(e=this.data.node.task)==null?void 0:e.disabled,[this.$attrs.class]:!0}},cls(){var e;if(this.data.node.triggerDeclaration)return this.data.node.triggerDeclaration.type;if((e=this.data.node)!=null&&e.task)return this.data.node.task.type},hoverTooltip(){if(this.data.node.type.endsWith("SubflowGraphTask")){const e=this.data.node.task.subflowId??this.data.node.task;return e.namespace+" "+e.flowId}return this.trimmedId}}},yw=Y(Object.assign(pj,{__name:"BasicNode",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([t.classes,"node-wrapper rounded-3 border"]),onMouseover:n[3]||(n[3]=(...a)=>t.mouseover&&t.mouseover(...a)),onMouseleave:n[4]||(n[4]=(...a)=>t.mouseleave&&t.mouseleave(...a))},[e.state?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["status-div",[`bg-${t.stateColor}`]])},null,2)):c.createCommentVNode("",!0),c.createElementVNode("div",rj,[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.iconComponent||ep),{cls:t.cls,class:c.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),c.createElementVNode("div",oj,[c.createElementVNode("div",sj,[c.createElementVNode("div",cj,[c.createVNode(fe,{title:t.hoverTooltip},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(c.openBlock(),c.createElementBlock("span",lj,[c.createVNode(fe,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:c.withCtx(()=>[c.createVNode(J_,{onClick:n[0]||(n[0]=a=>t.$emit(c.unref(G).SHOW_DESCRIPTION,{id:t.trimmedId,description:t.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):c.createCommentVNode("",!0)]),c.renderSlot(t.$slots,"content",{},void 0,!0)]),c.createElementVNode("div",mj,[c.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[1]||(n[1]=a=>t.$emit(c.unref(G).OPEN_LINK,{link:e.data.link}))},[c.createVNode(fe,{title:t.$t("open")},{default:c.withCtx(()=>[c.createVNode(tp,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),t.expandable?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[2]||(n[2]=a=>t.$emit(c.unref(G).EXPAND))},[c.createVNode(fe,{title:t.$t("expand")},{default:c.withCtx(()=>[c.createVNode(oi,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),c.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),[["__scopeId","data-v-ecb1f5b4"]]),dj=["innerHTML"],uj=c.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;c.watch(()=>t.histories,(_,y)=>{y[0].date!==_[0].date&&s()});const n=c.ref(""),a=c.ref();c.onMounted(()=>{s()});const i=c.computed(()=>{var _;return((_=t.histories)==null?void 0:_.length)&&new Date(t.histories[0].date.toString()).getTime()}),r=c.computed(()=>t.histories[t.histories.length-1]),o=c.computed(()=>t.histories.filter(_=>_.date.isValid()&&_.date&&_.state));function s(){a.value||(a.value=setInterval(()=>{d(),t.histories&&!Ie.isRunning(r.value.state)&&l()},100))}function l(){a.value&&(clearInterval(a.value),a.value=void 0)}function m(){return p()-i.value}function p(){return!t.histories||Ie.isRunning(r.value.state)?+new Date:new Date(r.value.date.toString()).getTime()}function d(){n.value=o.value.length===0?" ":Ee.humanDuration(m()/1e3)}const u={FAILED:"error"};function g(_){return"ks-duration-tt-square-"+(u[_]??_.toLowerCase())}return c.onBeforeUnmount(()=>{l()}),(_,y)=>(c.openBlock(),c.createBlock(fe,{key:r.value.date.toString()},{content:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value,(f,b)=>(c.openBlock(),c.createElementBlock("span",{key:"tt-"+b,class:"ks-duration-tt"},[c.createElementVNode("span",{class:c.normalizeClass(["ks-duration-tt-square",g(f.state)])},null,2),c.createElementVNode("strong",null,c.toDisplayString(f.state)+": ",1),c.createTextVNode(c.toDisplayString(c.unref(Ee).dateFilter(f.date.toString(),"iso"))+" ",1),y[0]||(y[0]=c.createElementVNode("br",null,null,-1))]))),128))]),default:c.withCtx(()=>[c.createElementVNode("span",{innerHTML:n.value},null,8,dj)]),_:1}))}}),gj={class:"btn-group content rounded-1 content-children text-truncate"},bj={key:0,class:"taskRunCount"},fj={key:1},hj={key:2},_w=Y(c.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,n=c.computed(()=>{var o;return(o=t.execution)!=null&&o.taskRunList?t.execution.taskRunList:[]}),a=c.computed(()=>n.value.filter(o=>o.taskId===Ee.afterLastDot(t.uid??""))),i=c.computed(()=>{if(!a.value)return null;if(a.value.length===1)return a.value[0].state.current;const o=a.value.map(m=>m.state.current),s=[Ie.FAILED,Ie.KILLED,Ie.WARNING,Ie.KILLING,Ie.RUNNING,Ie.SUCCESS,Ie.RESTARTED,Ie.CREATED];return o.map(m=>{const p=s.indexOf(m[1]);return s[p]=void 0,[p,m]}).sort().map(m=>m[1])[0]}),r=c.computed(()=>{if(!a.value)return;const o=Math.max(...a.value.filter(l=>l.state.histories&&l.state.histories.length>0).map(l=>new Date(l.state.histories[l.state.histories.length-1].date).getTime())),s=Math.max(...a.value.map(l=>Wn.duration(l.state.duration).asMilliseconds()/1e3,0));return[{date:Wn(o).subtract(s,"second"),state:"CREATED"},{date:Wn(o),state:i.value}]});return(o,s)=>(c.openBlock(),c.createElementBlock("div",gj,[a.value.length>0?(c.openBlock(),c.createElementBlock("span",bj,c.toDisplayString(a.value.length)+" task runs",1)):c.createCommentVNode("",!0),a.value.length>0?(c.openBlock(),c.createElementBlock("span",fj," | ")):c.createCommentVNode("",!0),r.value?(c.openBlock(),c.createElementBlock("span",hj,[c.createVNode(uj,{histories:r.value},null,8,["histories"])])):c.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-b7801302"]]),yj={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_j=["aria-hidden","aria-label"],wj=["fill","width","height"],kj={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"},xj={key:0};function vj(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pencil-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",kj,[n.title?(c.openBlock(),c.createElementBlock("title",xj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,wj))],16,_j)}const li=Y(yj,[["render",vj]]),Aj={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cj=["aria-hidden","aria-label"],zj=["fill","width","height"],$j={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},Sj={key:0};function Ej(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon delete-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",$j,[n.title?(c.openBlock(),c.createElementBlock("title",Sj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,zj))],16,Cj)}const mi=Y(Aj,[["render",Ej]]),jj={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tj=["aria-hidden","aria-label"],Zj=["fill","width","height"],qj={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"},Nj={key:0};function Fj(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",qj,[n.title?(c.openBlock(),c.createElementBlock("title",Nj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,Zj))],16,Tj)}const ww=Y(jj,[["render",Fj]]),Lj={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Pj=["aria-hidden","aria-label"],Rj=["fill","width","height"],Ij={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Oj={key:0};function Dj(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",Ij,[n.title?(c.openBlock(),c.createElementBlock("title",Oj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,Rj))],16,Pj)}const kw=Y(Lj,[["render",Dj]]),Mj={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Bj=["aria-hidden","aria-label"],Gj=["fill","width","height"],Uj={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"},Wj={key:0};function Vj(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon send-lock-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",Uj,[n.title?(c.openBlock(),c.createElementBlock("title",Wj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,Gj))],16,Bj)}const xw=Y(Mj,[["render",Vj]]),Hj={name:"Task",components:{Pencil:li,Delete:mi,ExecutionInformations:_w,Handle:re.Handle,TextBoxSearch:ww,AlertOutline:kw,Tooltip:fe,SendLock:xw},inheritAttrs:!1,computed:{...sp("execution",["execution"]),...ij("execution",["subflowsExecutions"]),SECTIONS(){return Lt},EVENTS(){return G},color(){return this.data.color??"primary"},taskId(){return Ee.afterLastDot(this.id)},taskRunList(){return this.taskExecution&&this.taskExecution.taskRunList?this.taskExecution.taskRunList:[]},taskExecution(){var t,n;const e=this.data.executionId;if(e)return e===((t=this.execution)==null?void 0:t.id)?this.execution:(n=Object.values(this.subflowsExecutions).filter(a=>a.id===this.data.executionId))==null?void 0:n[0]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===Ee.afterLastDot(this.data.node.uid))},state(){if(!this.taskRuns)return null;if(this.taskRuns.length===1)return this.taskRuns[0].state.current;const e=this.taskRuns.map(a=>a.state.current),t=[Ie.FAILED,Ie.KILLED,Ie.WARNING,Ie.KILLING,Ie.RUNNING,Ie.SUCCESS,Ie.RESTARTED,Ie.CREATED];return e.map(a=>{const i=t.indexOf(a[1]);return t[i]=void 0,[i,a]}).sort().map(a=>a[1])[0]},classes(){return{"execution-no-taskrun":this.taskExecution&&this.taskRuns&&this.taskRuns.length===0}},expandData(){return{id:this.id,type:this.data.node.task.type}},dataWithLink(){var e,t,n,a;if(this.data.node.type.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const i=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:i.namespace,id:i.flowId,executionId:(a=(n=(t=(e=this.taskExecution)==null?void 0:e.taskRunList.filter(r=>{var o;return r.taskId===this.data.node.task.id&&((o=r.outputs)==null?void 0:o.executionId)}))==null?void 0:t[0])==null?void 0:n.outputs)==null?void 0:a.executionId}}}return this.data}},emits:[G.EXPAND,G.OPEN_LINK,G.SHOW_LOGS,G.MOUSE_OVER,G.MOUSE_LEAVE,G.ADD_ERROR,G.EDIT,G.DELETE,G.ADD_TASK,G.SHOW_CONDITION],props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Kj=Object.assign(Hj,{setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(c.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),c.createVNode(yw,{id:e.id,data:t.dataWithLink,state:t.state,class:c.normalizeClass(t.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[5]||(n[5]=a=>t.forwardEvent(c.unref(G).SHOW_DESCRIPTION,a)),onExpand:n[6]||(n[6]=a=>t.forwardEvent(c.unref(G).EXPAND,t.expandData)),onOpenLink:n[7]||(n[7]=a=>t.forwardEvent(c.unref(G).OPEN_LINK,a)),onMouseover:n[8]||(n[8]=a=>t.forwardEvent(c.unref(G).MOUSE_OVER,a)),onMouseleave:n[9]||(n[9]=a=>t.forwardEvent(c.unref(G).MOUSE_LEAVE))},{content:c.withCtx(()=>[t.taskExecution?(c.openBlock(),c.createBlock(_w,{key:0,execution:t.taskExecution,task:e.data.node.task,color:t.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):c.createCommentVNode("",!0)]),"badge-button-before":c.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["circle-button",["bg-warning"]]),onClick:n[0]||(n[0]=a=>t.$emit(c.unref(G).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:c.unref(Lt).TASKS}))},[c.createVNode(fe,{title:t.$t("show task condition")},{default:c.withCtx(()=>[c.createVNode(xw,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):c.createCommentVNode("",!0),t.taskExecution?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=a=>t.$emit(c.unref(G).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[c.createVNode(fe,{title:t.$t("show task logs")},{default:c.withCtx(()=>[c.createVNode(ww,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(c.openBlock(),c.createElementBlock("span",{key:2,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[2]||(n[2]=a=>t.$emit(c.unref(G).ADD_ERROR,{task:e.data.node.task}))},[c.createVNode(fe,{title:t.$t("add error handler")},{default:c.withCtx(()=>[c.createVNode(kw,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(c.openBlock(),c.createElementBlock("span",{key:3,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[3]||(n[3]=a=>t.$emit(c.unref(G).EDIT,{task:e.data.node.task,section:c.unref(Lt).TASKS}))},[c.createVNode(fe,{title:t.$t("edit")},{default:c.withCtx(()=>[c.createVNode(li,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(c.openBlock(),c.createElementBlock("span",{key:4,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[4]||(n[4]=a=>t.$emit(c.unref(G).DELETE,{id:t.taskId,section:c.unref(Lt).TASKS}))},[c.createVNode(fe,{title:t.$t("delete")},{default:c.withCtx(()=>[c.createVNode(mi,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),c.createVNode(c.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Xj={name:"Task",inheritAttrs:!1,computed:{...sp("execution",["execution"]),SECTIONS(){return Lt},EVENTS(){return G},color(){return this.data.color??"primary"},formattedData(){var e,t,n,a;return{...this.data,unused:((t=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:t.disabled)||((a=(n=this.data.node)==null?void 0:n.trigger)==null?void 0:a.disabled)}},triggerId(){return Ee.afterLastDot(this.id)}},emits:[G.DELETE,G.EDIT,G.SHOW_DESCRIPTION],components:{Delete:mi,Pencil:li,Handle:re.Handle,Tooltip:fe},props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Yj=Object.assign(Xj,{setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(c.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),c.createVNode(yw,{id:e.id,data:t.formattedData,color:t.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[2]||(n[2]=a=>t.forwardEvent(c.unref(G).SHOW_DESCRIPTION,a)),onExpand:n[3]||(n[3]=a=>t.forwardEvent(c.unref(G).EXPAND,{id:e.id}))},c.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:c.withCtx(()=>[t.execution?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[0]||(n[0]=a=>t.$emit(c.unref(G).EDIT,{task:e.data.node.triggerDeclaration,section:c.unref(Lt).TRIGGERS}))},[c.createVNode(fe,{title:t.$t("edit")},{default:c.withCtx(()=>[c.createVNode(li,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),t.execution?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=a=>t.$emit(c.unref(G).DELETE,{id:t.triggerId,section:c.unref(Lt).TRIGGERS}))},[c.createVNode(fe,{title:t.$t("delete")},{default:c.withCtx(()=>[c.createVNode(mi,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),c.createVNode(c.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Qj={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jj=["aria-hidden","aria-label"],e9=["fill","width","height"],t9={d:"M11 15H6L13 1V9H18L11 23V15Z"},n9={key:0};function a9(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",t9,[n.title?(c.openBlock(),c.createElementBlock("title",n9,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,e9))],16,Jj)}const i9=Y(Qj,[["render",a9]]),r9={class:"collapsed-cluster-node d-flex"},o9={class:"node-text"},s9={class:"text-white top-button-div"},c9={components:{Tooltip:fe,Handle:re.Handle,ArrowExpand:oi,LightningBolt:i9},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 G},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},l9=Y(Object.assign(c9,{__name:"CollapsedClusterNode",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(c.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),c.createElementVNode("div",r9,[c.createElementVNode("span",o9,[e.data.iconComponent?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.data.iconComponent),{key:0,class:c.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):c.createCommentVNode("",!0),c.createTextVNode(" "+c.toDisplayString(c.unref(Ee).afterLastDot(e.id)),1)]),c.createElementVNode("div",s9,[c.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),t.expandable?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[0]||(n[0]=a=>t.$emit(c.unref(G).EXPAND,{id:e.id}))},[c.createVNode(fe,{title:t.$t("expand")},{default:c.withCtx(()=>[c.createVNode(oi,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),c.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])]),c.createVNode(c.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),[["__scopeId","data-v-89413b39"]]),m9={name:"SplitCellsVerticalIcon",emits:["click"]},p9={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d9(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("svg",p9,t[0]||(t[0]=[c.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[c.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),c.createElementVNode("defs",null,[c.createElementVNode("clipPath",{id:"clip0_1111_7266"},[c.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)]))}const u9=Y(m9,[["render",d9],["__scopeId","data-v-084c51e6"]]),g9={name:"SplitCellsHorizontalIcon",emits:["click"]},b9={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f9(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("svg",b9,t[0]||(t[0]=[c.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[c.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),c.createElementVNode("defs",null,[c.createElementVNode("clipPath",{id:"clip0_796_3996"},[c.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)]))}const h9=Y(g9,[["render",f9],["__scopeId","data-v-c77c1469"]]),y9={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_9=["aria-hidden","aria-label"],w9=["fill","width","height"],k9={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},x9={key:0};function v9(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon download-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",k9,[n.title?(c.openBlock(),c.createElementBlock("title",x9,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,w9))],16,_9)}const A9=Y(y9,[["render",v9]]);function C9(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),a=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(a),n.body.appendChild(i),t&&(a.href=t),i.href=e,i.href}const z9=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Bt(e){const t=[];for(let n=0,a=e.length;n<a;n++)t.push(e[n]);return t}function pi(e,t){const a=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return a?parseFloat(a.replace("px","")):0}function $9(e){const t=pi(e,"border-left-width"),n=pi(e,"border-right-width");return e.clientWidth+t+n}function S9(e){const t=pi(e,"border-top-width"),n=pi(e,"border-bottom-width");return e.clientHeight+t+n}function vw(e,t={}){const n=t.width||$9(e),a=t.height||S9(e);return{width:n,height:a}}function E9(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const pt=16384;function j9(e){(e.width>pt||e.height>pt)&&(e.width>pt&&e.height>pt?e.width>e.height?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt):e.width>pt?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt))}function di(e){return new Promise((t,n)=>{const a=new Image;a.decode=()=>t(a),a.onload=()=>t(a),a.onerror=n,a.crossOrigin="anonymous",a.decoding="async",a.src=e})}async function T9(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Z9(e,t,n){const a="http://www.w3.org/2000/svg",i=document.createElementNS(a,"svg"),r=document.createElementNS(a,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),i.appendChild(r),r.appendChild(e),T9(i)}const nt=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||nt(n,t)};function q9(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function N9(e){return Bt(e).map(t=>{const n=e.getPropertyValue(t),a=e.getPropertyPriority(t);return`${t}: ${n}${a?" !important":""};`}).join(" ")}function F9(e,t,n){const a=`.${e}:${t}`,i=n.cssText?q9(n):N9(n);return document.createTextNode(`${a}{${i}}`)}function Aw(e,t,n){const a=window.getComputedStyle(e,n),i=a.getPropertyValue("content");if(i===""||i==="none")return;const r=z9();try{t.className=`${t.className} ${r}`}catch{return}const o=document.createElement("style");o.appendChild(F9(r,n,a)),t.appendChild(o)}function L9(e,t){Aw(e,t,":before"),Aw(e,t,":after")}const Cw="application/font-woff",zw="image/jpeg",P9={woff:Cw,woff2:Cw,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:zw,jpeg:zw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function R9(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function lp(e){const t=R9(e).toLowerCase();return P9[t]||""}function I9(e){return e.split(/,/)[1]}function mp(e){return e.search(/^(data:)/)!==-1}function O9(e,t){return`data:${t};base64,${e}`}async function $w(e,t,n){const a=await fetch(e,t);if(a.status===404)throw new Error(`Resource "${a.url}" not found`);const i=await a.blob();return new Promise((r,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{r(n({res:a,result:s.result}))}catch(l){o(l)}},s.readAsDataURL(i)})}const pp={};function D9(e,t,n){let a=e.replace(/\?.*/,"");return n&&(a=e),/ttf|otf|eot|woff2?/i.test(a)&&(a=a.replace(/.*\//,"")),t?`[${t}]${a}`:a}async function dp(e,t,n){const a=D9(e,t,n.includeQueryParams);if(pp[a]!=null)return pp[a];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const r=await $w(e,n.fetchRequestInit,({res:o,result:s})=>(t||(t=o.headers.get("Content-Type")||""),I9(s)));i=O9(r,t)}catch(r){i=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;r&&(o=typeof r=="string"?r:r.message),o&&console.warn(o)}return pp[a]=i,i}async function M9(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):di(t)}async function B9(e,t){if(e.currentSrc){const r=document.createElement("canvas"),o=r.getContext("2d");r.width=e.clientWidth,r.height=e.clientHeight,o==null||o.drawImage(e,0,0,r.width,r.height);const s=r.toDataURL();return di(s)}const n=e.poster,a=lp(n),i=await dp(n,a,t);return di(i)}async function G9(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await ui(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function U9(e,t){return nt(e,HTMLCanvasElement)?M9(e):nt(e,HTMLVideoElement)?B9(e,t):nt(e,HTMLIFrameElement)?G9(e):e.cloneNode(!1)}const W9=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function V9(e,t,n){var a,i;let r=[];return W9(e)&&e.assignedNodes?r=Bt(e.assignedNodes()):nt(e,HTMLIFrameElement)&&(!((a=e.contentDocument)===null||a===void 0)&&a.body)?r=Bt(e.contentDocument.body.childNodes):r=Bt(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),r.length===0||nt(e,HTMLVideoElement)||await r.reduce((o,s)=>o.then(()=>ui(s,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function H9(e,t){const n=t.style;if(!n)return;const a=window.getComputedStyle(e);a.cssText?(n.cssText=a.cssText,n.transformOrigin=a.transformOrigin):Bt(a).forEach(i=>{let r=a.getPropertyValue(i);i==="font-size"&&r.endsWith("px")&&(r=`${Math.floor(parseFloat(r.substring(0,r.length-2)))-.1}px`),nt(e,HTMLIFrameElement)&&i==="display"&&r==="inline"&&(r="block"),i==="d"&&t.getAttribute("d")&&(r=`path(${t.getAttribute("d")})`),n.setProperty(i,r,a.getPropertyPriority(i))})}function K9(e,t){nt(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),nt(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function X9(e,t){if(nt(e,HTMLSelectElement)){const n=t,a=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));a&&a.setAttribute("selected","")}}function Y9(e,t){return nt(t,Element)&&(H9(e,t),L9(e,t),K9(e,t),X9(e,t)),t}async function Q9(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const a={};for(let r=0;r<n.length;r++){const s=n[r].getAttribute("xlink:href");if(s){const l=e.querySelector(s),m=document.querySelector(s);!l&&m&&!a[s]&&(a[s]=await ui(m,t,!0))}}const i=Object.values(a);if(i.length){const r="http://www.w3.org/1999/xhtml",o=document.createElementNS(r,"svg");o.setAttribute("xmlns",r),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";const s=document.createElementNS(r,"defs");o.appendChild(s);for(let l=0;l<i.length;l++)s.appendChild(i[l]);e.appendChild(o)}return e}async function ui(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(a=>U9(a,t)).then(a=>V9(e,a,t)).then(a=>Y9(e,a)).then(a=>Q9(a,t))}const Sw=/url\((['"]?)([^'"]+?)\1\)/g,J9=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,eT=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function tT(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function nT(e){const t=[];return e.replace(Sw,(n,a,i)=>(t.push(i),n)),t.filter(n=>!mp(n))}async function aT(e,t,n,a,i){try{const r=n?C9(t,n):t,o=lp(t);let s;return i||(s=await dp(r,o,a)),e.replace(tT(t),`$1${s}$3`)}catch{}return e}function iT(e,{preferredFontFormat:t}){return t?e.replace(eT,n=>{for(;;){const[a,,i]=J9.exec(n)||[];if(!i)return"";if(i===t)return`src: ${a};`}}):e}function Ew(e){return e.search(Sw)!==-1}async function jw(e,t,n){if(!Ew(e))return e;const a=iT(e,n);return nT(a).reduce((r,o)=>r.then(s=>aT(s,o,t,n)),Promise.resolve(a))}async function gi(e,t,n){var a;const i=(a=t.style)===null||a===void 0?void 0:a.getPropertyValue(e);if(i){const r=await jw(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function rT(e,t){await gi("background",e,t)||await gi("background-image",e,t),await gi("mask",e,t)||await gi("mask-image",e,t)}async function oT(e,t){const n=nt(e,HTMLImageElement);if(!(n&&!mp(e.src))&&!(nt(e,SVGImageElement)&&!mp(e.href.baseVal)))return;const a=n?e.src:e.href.baseVal,i=await dp(a,lp(a),t);await new Promise((r,o)=>{e.onload=r,e.onerror=o;const s=e;s.decode&&(s.decode=r),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function sT(e,t){const a=Bt(e.childNodes).map(i=>Tw(i,t));await Promise.all(a).then(()=>e)}async function Tw(e,t){nt(e,Element)&&(await rT(e,t),await oT(e,t),await sT(e,t))}function cT(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const a=t.style;return a!=null&&Object.keys(a).forEach(i=>{n[i]=a[i]}),e}const Zw={};async function qw(e){let t=Zw[e];if(t!=null)return t;const a=await(await fetch(e)).text();return t={url:e,cssText:a},Zw[e]=t,t}async function Nw(e,t){let n=e.cssText;const a=/url\(["']?([^"')]+)["']?\)/g,r=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(a,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),$w(s,t.fetchRequestInit,({result:l})=>(n=n.replace(o,`url(${l})`),[o,l]))});return Promise.all(r).then(()=>n)}function Fw(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let a=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(a);if(l===null)break;t.push(l[0])}a=a.replace(i,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let l=r.exec(a);if(l===null){if(l=s.exec(a),l===null)break;r.lastIndex=s.lastIndex}else s.lastIndex=r.lastIndex;t.push(l[0])}return t}async function lT(e,t){const n=[],a=[];return e.forEach(i=>{if("cssRules"in i)try{Bt(i.cssRules||[]).forEach((r,o)=>{if(r.type===CSSRule.IMPORT_RULE){let s=o+1;const l=r.href,m=qw(l).then(p=>Nw(p,t)).then(p=>Fw(p).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?s+=1:i.cssRules.length)}catch(u){console.error("Error inserting rule from remote css",{rule:d,error:u})}})).catch(p=>{console.error("Error loading remote css",p.toString())});a.push(m)}})}catch(r){const o=e.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&a.push(qw(i.href).then(s=>Nw(s,t)).then(s=>Fw(s).forEach(l=>{o.insertRule(l,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",r)}}),Promise.all(a).then(()=>(e.forEach(i=>{if("cssRules"in i)try{Bt(i.cssRules||[]).forEach(r=>{n.push(r)})}catch(r){console.error(`Error while reading CSS rules from ${i.href}`,r)}}),n))}function mT(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ew(t.style.getPropertyValue("src")))}async function pT(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Bt(e.ownerDocument.styleSheets),a=await lT(n,t);return mT(a)}async function dT(e,t){const n=await pT(e,t);return(await Promise.all(n.map(i=>{const r=i.parentStyleSheet?i.parentStyleSheet.href:null;return jw(i.cssText,r,t)}))).join(`
|
|
28
|
+
*/var OE="store";function un(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function ew(e){return e!==null&&typeof e=="object"}function DE(e){return e&&typeof e.then=="function"}function At(e,t){if(!e)throw new Error("[vuex] "+t)}function ME(e,t){return function(){return e(t)}}function tw(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function nw(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;si(e,n,[],e._modules.root,!0),np(e,n,t)}function np(e,t,n){var a=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={},s={},l=c.effectScope(!0);l.run(function(){un(r,function(m,p){o[p]=ME(m,e),s[p]=c.computed(function(){return o[p]()}),Object.defineProperty(e.getters,p,{get:function(){return s[p].value},enumerable:!0})})}),e._state=c.reactive({data:t}),e._scope=l,e.strict&&VE(e),a&&n&&e._withCommit(function(){a.data=null}),i&&i.stop()}function si(e,t,n,a,i){var r=!n.length,o=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[o]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+o+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[o]=a),!r&&!i){var s=ap(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+n.join(".")+'"'),s[l]=a.state})}var m=a.context=BE(e,o,n);a.forEachMutation(function(p,d){var u=o+d;GE(e,u,p,m)}),a.forEachAction(function(p,d){var u=p.root?d:o+d,g=p.handler||p;UE(e,u,g,m)}),a.forEachGetter(function(p,d){var u=o+d;WE(e,u,p,m)}),a.forEachChild(function(p,d){si(e,t,n.concat(d),p,i)})}function BE(e,t,n){var a=t==="",i={dispatch:a?e.dispatch:function(r,o,s){var l=ci(r,o,s),m=l.payload,p=l.options,d=l.type;if((!p||!p.root)&&(d=t+d,process.env.NODE_ENV!=="production"&&!e._actions[d])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+d);return}return e.dispatch(d,m)},commit:a?e.commit:function(r,o,s){var l=ci(r,o,s),m=l.payload,p=l.options,d=l.type;if((!p||!p.root)&&(d=t+d,process.env.NODE_ENV!=="production"&&!e._mutations[d])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+d);return}e.commit(d,m,p)}};return Object.defineProperties(i,{getters:{get:a?function(){return e.getters}:function(){return aw(e,t)}},state:{get:function(){return ap(e.state,n)}}}),i}function aw(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,a)===t){var r=i.slice(a);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function GE(e,t,n,a){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(o){n.call(e,a.state,o)})}function UE(e,t,n,a){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(o){var s=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},o);return DE(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):s})}function WE(e,t,n,a){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(r){return n(a.state,a.getters,r.state,r.getters)}}function VE(e){c.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&At(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function ap(e,t){return t.reduce(function(n,a){return n[a]},e)}function ci(e,t,n){return ew(e)&&e.type&&(n=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&At(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var HE="vuex bindings",iw="vuex:mutations",ip="vuex:actions",qn="vuex",KE=0;function XE(e,t){sS({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[HE]},function(n){n.addTimelineLayer({id:iw,label:"Vuex Mutations",color:rw}),n.addTimelineLayer({id:ip,label:"Vuex Actions",color:rw}),n.addInspector({id:qn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(a){if(a.app===e&&a.inspectorId===qn)if(a.filter){var i=[];lw(i,t._modules.root,a.filter,""),a.rootNodes=i}else a.rootNodes=[cw(t._modules.root,"")]}),n.on.getInspectorState(function(a){if(a.app===e&&a.inspectorId===qn){var i=a.nodeId;aw(t,i),a.state=JE(tj(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(a){if(a.app===e&&a.inspectorId===qn){var i=a.nodeId,r=a.path;i!=="root"&&(r=i.split("/").filter(Boolean).concat(r)),t._withCommit(function(){a.set(t._state.data,r,a.state.value)})}}),t.subscribe(function(a,i){var r={};a.payload&&(r.payload=a.payload),r.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(qn),n.sendInspectorState(qn),n.addTimelineEvent({layerId:iw,event:{time:Date.now(),title:a.type,data:r}})}),t.subscribeAction({before:function(a,i){var r={};a.payload&&(r.payload=a.payload),a._id=KE++,a._time=Date.now(),r.state=i,n.addTimelineEvent({layerId:ip,event:{time:a._time,title:a.type,groupId:a._id,subtitle:"start",data:r}})},after:function(a,i){var r={},o=Date.now()-a._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},a.payload&&(r.payload=a.payload),r.state=i,n.addTimelineEvent({layerId:ip,event:{time:Date.now(),title:a.type,groupId:a._id,subtitle:"end",data:r}})}})})}var rw=8702998,YE=6710886,QE=16777215,ow={label:"namespaced",textColor:QE,backgroundColor:YE};function sw(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function cw(e,t){return{id:t||"root",label:sw(t),tags:e.namespaced?[ow]:[],children:Object.keys(e._children).map(function(n){return cw(e._children[n],t+n+"/")})}}function lw(e,t,n,a){a.includes(n)&&e.push({id:a||"root",label:a.endsWith("/")?a.slice(0,a.length-1):a||"Root",tags:t.namespaced?[ow]:[]}),Object.keys(t._children).forEach(function(i){lw(e,t._children[i],n,a+i+"/")})}function JE(e,t,n){t=n==="root"?t:t[n];var a=Object.keys(t),i={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(a.length){var r=ej(t);i.getters=Object.keys(r).map(function(o){return{key:o.endsWith("/")?sw(o):o,editable:!1,value:rp(function(){return r[o]})}})}return i}function ej(e){var t={};return Object.keys(e).forEach(function(n){var a=n.split("/");if(a.length>1){var i=t,r=a.pop();a.forEach(function(o){i[o]||(i[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),i=i[o]._custom.value}),i[r]=rp(function(){return e[n]})}else t[n]=rp(function(){return e[n]})}),t}function tj(e,t){var n=t.split("/").filter(function(a){return a});return n.reduce(function(a,i,r){var o=a[i];if(!o)throw new Error('Missing module "'+i+'" for path "'+t+'".');return r===n.length-1?o:o._children},t==="root"?e:e.root._children)}function rp(e){try{return e()}catch(t){return t}}var Ct=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var a=t.state;this.state=(typeof a=="function"?a():a)||{}},mw={namespaced:{configurable:!0}};mw.namespaced.get=function(){return!!this._rawModule.namespaced},Ct.prototype.addChild=function(t,n){this._children[t]=n},Ct.prototype.removeChild=function(t){delete this._children[t]},Ct.prototype.getChild=function(t){return this._children[t]},Ct.prototype.hasChild=function(t){return t in this._children},Ct.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Ct.prototype.forEachChild=function(t){un(this._children,t)},Ct.prototype.forEachGetter=function(t){this._rawModule.getters&&un(this._rawModule.getters,t)},Ct.prototype.forEachAction=function(t){this._rawModule.actions&&un(this._rawModule.actions,t)},Ct.prototype.forEachMutation=function(t){this._rawModule.mutations&&un(this._rawModule.mutations,t)},Object.defineProperties(Ct.prototype,mw);var gn=function(t){this.register([],t,!1)};gn.prototype.get=function(t){return t.reduce(function(n,a){return n.getChild(a)},this.root)},gn.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(a,i){return n=n.getChild(i),a+(n.namespaced?i+"/":"")},"")},gn.prototype.update=function(t){pw([],this.root,t)},gn.prototype.register=function(t,n,a){var i=this;a===void 0&&(a=!0),process.env.NODE_ENV!=="production"&&gw(t,n);var r=new Ct(n,a);if(t.length===0)this.root=r;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],r)}n.modules&&un(n.modules,function(s,l){i.register(t.concat(l),s,a)})},gn.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),a=t[t.length-1],i=n.getChild(a);if(!i){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+a+"', which is not registered");return}i.runtime&&n.removeChild(a)},gn.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),a=t[t.length-1];return n?n.hasChild(a):!1};function pw(e,t,n){if(process.env.NODE_ENV!=="production"&&gw(e,n),t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+a+"' on hot reloading, manual reload is needed");return}pw(e.concat(a),t.getChild(a),n.modules[a])}}var dw={assert:function(e){return typeof e=="function"},expected:"function"},nj={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},uw={getters:dw,mutations:dw,actions:nj};function gw(e,t){Object.keys(uw).forEach(function(n){if(t[n]){var a=uw[n];un(t[n],function(i,r){At(a.assert(i),aj(e,n,r,i,a.expected))})}})}function aj(e,t,n,a,i){var r=t+" should be "+i+' but "'+t+"."+n+'"';return e.length>0&&(r+=' in module "'+e.join(".")+'"'),r+=" is "+JSON.stringify(a)+".",r}var mt=function e(t){var n=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(At(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),At(this instanceof e,"store must be called with the new operator."));var a=t.plugins;a===void 0&&(a=[]);var i=t.strict;i===void 0&&(i=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new gn(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var o=this,s=this,l=s.dispatch,m=s.commit;this.dispatch=function(u,g){return l.call(o,u,g)},this.commit=function(u,g,_){return m.call(o,u,g,_)},this.strict=i;var p=this._modules.root.state;si(this,p,[],this._modules.root),np(this,p),a.forEach(function(d){return d(n)})},op={state:{configurable:!0}};mt.prototype.install=function(t,n){t.provide(n||OE,this),t.config.globalProperties.$store=this;var a=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;a&&XE(t,this)},op.state.get=function(){return this._state.data},op.state.set=function(e){process.env.NODE_ENV!=="production"&&At(!1,"use store.replaceState() to explicit replace store state.")},mt.prototype.commit=function(t,n,a){var i=this,r=ci(t,n,a),o=r.type,s=r.payload,l=r.options,m={type:o,payload:s},p=this._mutations[o];if(!p){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+o);return}this._withCommit(function(){p.forEach(function(u){u(s)})}),this._subscribers.slice().forEach(function(d){return d(m,i.state)}),process.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")},mt.prototype.dispatch=function(t,n){var a=this,i=ci(t,n),r=i.type,o=i.payload,s={type:r,payload:o},l=this._actions[r];if(!l){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+r);return}try{this._actionSubscribers.slice().filter(function(p){return p.before}).forEach(function(p){return p.before(s,a.state)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(p))}var m=l.length>1?Promise.all(l.map(function(p){return p(o)})):l[0](o);return new Promise(function(p,d){m.then(function(u){try{a._actionSubscribers.filter(function(g){return g.after}).forEach(function(g){return g.after(s,a.state)})}catch(g){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(g))}p(u)},function(u){try{a._actionSubscribers.filter(function(g){return g.error}).forEach(function(g){return g.error(s,a.state,u)})}catch(g){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(g))}d(u)})})},mt.prototype.subscribe=function(t,n){return tw(t,this._subscribers,n)},mt.prototype.subscribeAction=function(t,n){var a=typeof t=="function"?{before:t}:t;return tw(a,this._actionSubscribers,n)},mt.prototype.watch=function(t,n,a){var i=this;return process.env.NODE_ENV!=="production"&&At(typeof t=="function","store.watch only accepts a function."),c.watch(function(){return t(i.state,i.getters)},n,Object.assign({},a))},mt.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})},mt.prototype.registerModule=function(t,n,a){a===void 0&&(a={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(At(Array.isArray(t),"module path must be a string or an Array."),At(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,n),si(this,this.state,t,this._modules.get(t),a.preserveState),np(this,this.state)},mt.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&At(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var a=ap(n.state,t.slice(0,-1));delete a[t[t.length-1]]}),nw(this)},mt.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&At(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)},mt.prototype.hotUpdate=function(t){this._modules.update(t),nw(this,!0)},mt.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n},Object.defineProperties(mt.prototype,op);var sp=fw(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!cp(t)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),bw(t).forEach(function(a){var i=a.key,r=a.val;n[i]=function(){var s=this.$store.state,l=this.$store.getters;if(e){var m=hw(this.$store,"mapState",e);if(!m)return;s=m.context.state,l=m.context.getters}return typeof r=="function"?r.call(this,s,l):s[r]},n[i].vuex=!0}),n}),ij=fw(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!cp(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),bw(t).forEach(function(a){var i=a.key,r=a.val;r=e+r,n[i]=function(){if(!(e&&!hw(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(r in this.$store.getters)){console.error("[vuex] unknown getter: "+r);return}return this.$store.getters[r]}},n[i].vuex=!0}),n});function bw(e){return cp(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function cp(e){return Array.isArray(e)||ew(e)}function fw(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function hw(e,t,n){var a=e._modulesNamespaceMap[n];return process.env.NODE_ENV!=="production"&&!a&&console.error("[vuex] module namespace not found in "+t+"(): "+n),a}const rj={class:"icon rounded"},oj={class:"node-content"},sj={class:"d-flex node-title"},cj={class:"text-truncate task-title"},lj={key:0,class:"d-flex"},mj={class:"text-white top-button-div"},pj={components:{ArrowExpand:oi,InformationOutline:J_,OpenInNew:tp,Tooltip:fe},emits:[G.EXPAND,G.OPEN_LINK,G.SHOW_LOGS,G.MOUSE_OVER,G.MOUSE_LEAVE,G.ADD_ERROR,G.EDIT,G.DELETE,G.ADD_TASK,G.SHOW_DESCRIPTION],inheritAttrs:!1,props:{id:{type:String,default:void 0},type:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},state:{type:String,default:void 0},data:{type:Object,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{mouseover(){this.$emit(G.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(G.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},computed:{Utils(){return Ee},...sp("execution",["execution"]),borderColor(){const e=this.data.color?this.data.color==="default"?null:this.data.color:null;return e||(this.expandable?"blue":null)},EVENTS(){return G},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null},trimmedId(){return Ee.afterLastDot(this.id)},taskIconBg(){return["default","danger"].includes(this.data.color)?"":this.data.color},stateColor(){switch(this.state){case"RUNNING":return"primary";case"SUCCESS":return"success";case"WARNING":return"warning";case"FAILED":return"danger";default:return null}},classes(){var e;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:(e=this.data.node.task)==null?void 0:e.disabled,[this.$attrs.class]:!0}},cls(){var e;if(this.data.node.triggerDeclaration)return this.data.node.triggerDeclaration.type;if((e=this.data.node)!=null&&e.task)return this.data.node.task.type},hoverTooltip(){if(this.data.node.type.endsWith("SubflowGraphTask")){const e=this.data.node.task.subflowId??this.data.node.task;return e.namespace+" "+e.flowId}return this.trimmedId}}},yw=Y(Object.assign(pj,{__name:"BasicNode",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([t.classes,"node-wrapper rounded-3 border"]),onMouseover:n[3]||(n[3]=(...a)=>t.mouseover&&t.mouseover(...a)),onMouseleave:n[4]||(n[4]=(...a)=>t.mouseleave&&t.mouseleave(...a))},[e.state?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["status-div",[`bg-${t.stateColor}`]])},null,2)):c.createCommentVNode("",!0),c.createElementVNode("div",rj,[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.iconComponent||ep),{cls:t.cls,class:c.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),c.createElementVNode("div",oj,[c.createElementVNode("div",sj,[c.createElementVNode("div",cj,[c.createVNode(fe,{title:t.hoverTooltip},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(c.openBlock(),c.createElementBlock("span",lj,[c.createVNode(fe,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:c.withCtx(()=>[c.createVNode(J_,{onClick:n[0]||(n[0]=a=>t.$emit(c.unref(G).SHOW_DESCRIPTION,{id:t.trimmedId,description:t.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):c.createCommentVNode("",!0)]),c.renderSlot(t.$slots,"content",{},void 0,!0)]),c.createElementVNode("div",mj,[c.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[1]||(n[1]=a=>t.$emit(c.unref(G).OPEN_LINK,{link:e.data.link}))},[c.createVNode(fe,{title:t.$t("open")},{default:c.withCtx(()=>[c.createVNode(tp,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),t.expandable?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[2]||(n[2]=a=>t.$emit(c.unref(G).EXPAND))},[c.createVNode(fe,{title:t.$t("expand")},{default:c.withCtx(()=>[c.createVNode(oi,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),c.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),[["__scopeId","data-v-ecb1f5b4"]]),dj=["innerHTML"],uj=c.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;c.watch(()=>t.histories,(g,_)=>{_[0].date!==g[0].date&&s()});const n=c.ref(""),a=c.ref();c.onMounted(()=>{s()});const i=c.computed(()=>{var g;return((g=t.histories)==null?void 0:g.length)&&new Date(t.histories[0].date.toString()).getTime()}),r=c.computed(()=>t.histories[t.histories.length-1]),o=c.computed(()=>t.histories.filter(g=>g.date.isValid()&&g.date&&g.state));function s(){a.value||(a.value=setInterval(()=>{d(),t.histories&&!Ie.isRunning(r.value.state)&&l()},100))}function l(){a.value&&(clearInterval(a.value),a.value=void 0)}function m(){return p()-i.value}function p(){return!t.histories||Ie.isRunning(r.value.state)?+new Date:new Date(r.value.date.toString()).getTime()}function d(){n.value=o.value.length===0?" ":Ee.humanDuration(m()/1e3)}function u(g){return"ks-duration-tt-square-"+g.toLowerCase()}return c.onBeforeUnmount(()=>{l()}),(g,_)=>(c.openBlock(),c.createBlock(fe,{key:r.value.date.toString()},{content:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value,(y,f)=>(c.openBlock(),c.createElementBlock("span",{key:"tt-"+f,class:"ks-duration-tt"},[c.createElementVNode("span",{class:c.normalizeClass(["ks-duration-tt-square",u(y.state)])},null,2),c.createElementVNode("strong",null,c.toDisplayString(y.state)+": ",1),c.createTextVNode(c.toDisplayString(c.unref(Ee).dateFilter(y.date.toString(),"iso"))+" ",1),_[0]||(_[0]=c.createElementVNode("br",null,null,-1))]))),128))]),default:c.withCtx(()=>[c.createElementVNode("span",{innerHTML:n.value},null,8,dj)]),_:1}))}}),gj={class:"btn-group content rounded-1 content-children text-truncate"},bj={key:0,class:"taskRunCount"},fj={key:1},hj={key:2},_w=Y(c.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,n=c.computed(()=>{var o;return(o=t.execution)!=null&&o.taskRunList?t.execution.taskRunList:[]}),a=c.computed(()=>n.value.filter(o=>o.taskId===Ee.afterLastDot(t.uid??""))),i=c.computed(()=>{if(!a.value)return null;if(a.value.length===1)return a.value[0].state.current;const o=a.value.map(m=>m.state.current),s=[Ie.FAILED,Ie.KILLED,Ie.WARNING,Ie.KILLING,Ie.RUNNING,Ie.SUCCESS,Ie.RESTARTED,Ie.CREATED];return o.map(m=>{const p=s.indexOf(m[1]);return s[p]=void 0,[p,m]}).sort().map(m=>m[1])[0]}),r=c.computed(()=>{if(!a.value)return;const o=Math.max(...a.value.filter(l=>l.state.histories&&l.state.histories.length>0).map(l=>new Date(l.state.histories[l.state.histories.length-1].date).getTime())),s=Math.max(...a.value.map(l=>Wn.duration(l.state.duration).asMilliseconds()/1e3,0));return[{date:Wn(o).subtract(s,"second"),state:"CREATED"},{date:Wn(o),state:i.value}]});return(o,s)=>(c.openBlock(),c.createElementBlock("div",gj,[a.value.length>0?(c.openBlock(),c.createElementBlock("span",bj,c.toDisplayString(a.value.length)+" task runs",1)):c.createCommentVNode("",!0),a.value.length>0?(c.openBlock(),c.createElementBlock("span",fj," | ")):c.createCommentVNode("",!0),r.value?(c.openBlock(),c.createElementBlock("span",hj,[c.createVNode(uj,{histories:r.value},null,8,["histories"])])):c.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-b7801302"]]),yj={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_j=["aria-hidden","aria-label"],wj=["fill","width","height"],kj={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"},xj={key:0};function vj(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pencil-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",kj,[n.title?(c.openBlock(),c.createElementBlock("title",xj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,wj))],16,_j)}const li=Y(yj,[["render",vj]]),Aj={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cj=["aria-hidden","aria-label"],zj=["fill","width","height"],$j={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},Sj={key:0};function Ej(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon delete-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",$j,[n.title?(c.openBlock(),c.createElementBlock("title",Sj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,zj))],16,Cj)}const mi=Y(Aj,[["render",Ej]]),jj={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tj=["aria-hidden","aria-label"],Zj=["fill","width","height"],qj={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"},Nj={key:0};function Fj(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",qj,[n.title?(c.openBlock(),c.createElementBlock("title",Nj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,Zj))],16,Tj)}const ww=Y(jj,[["render",Fj]]),Lj={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Pj=["aria-hidden","aria-label"],Rj=["fill","width","height"],Ij={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Oj={key:0};function Dj(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",Ij,[n.title?(c.openBlock(),c.createElementBlock("title",Oj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,Rj))],16,Pj)}const kw=Y(Lj,[["render",Dj]]),Mj={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Bj=["aria-hidden","aria-label"],Gj=["fill","width","height"],Uj={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"},Wj={key:0};function Vj(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon send-lock-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",Uj,[n.title?(c.openBlock(),c.createElementBlock("title",Wj,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,Gj))],16,Bj)}const xw=Y(Mj,[["render",Vj]]),Hj={name:"Task",components:{Pencil:li,Delete:mi,ExecutionInformations:_w,Handle:re.Handle,TextBoxSearch:ww,AlertOutline:kw,Tooltip:fe,SendLock:xw},inheritAttrs:!1,computed:{...sp("execution",["execution"]),...ij("execution",["subflowsExecutions"]),SECTIONS(){return Lt},EVENTS(){return G},color(){return this.data.color??"primary"},taskId(){return Ee.afterLastDot(this.id)},taskRunList(){return this.taskExecution&&this.taskExecution.taskRunList?this.taskExecution.taskRunList:[]},taskExecution(){var t,n;const e=this.data.executionId;if(e)return e===((t=this.execution)==null?void 0:t.id)?this.execution:(n=Object.values(this.subflowsExecutions).filter(a=>a.id===this.data.executionId))==null?void 0:n[0]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===Ee.afterLastDot(this.data.node.uid))},state(){if(!this.taskRuns)return null;if(this.taskRuns.length===1)return this.taskRuns[0].state.current;const e=this.taskRuns.map(a=>a.state.current),t=[Ie.FAILED,Ie.KILLED,Ie.WARNING,Ie.KILLING,Ie.RUNNING,Ie.SUCCESS,Ie.RESTARTED,Ie.CREATED];return e.map(a=>{const i=t.indexOf(a[1]);return t[i]=void 0,[i,a]}).sort().map(a=>a[1])[0]},classes(){return{"execution-no-taskrun":this.taskExecution&&this.taskRuns&&this.taskRuns.length===0}},expandData(){return{id:this.id,type:this.data.node.task.type}},dataWithLink(){var e,t,n,a;if(this.data.node.type.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const i=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:i.namespace,id:i.flowId,executionId:(a=(n=(t=(e=this.taskExecution)==null?void 0:e.taskRunList.filter(r=>{var o;return r.taskId===this.data.node.task.id&&((o=r.outputs)==null?void 0:o.executionId)}))==null?void 0:t[0])==null?void 0:n.outputs)==null?void 0:a.executionId}}}return this.data}},emits:[G.EXPAND,G.OPEN_LINK,G.SHOW_LOGS,G.MOUSE_OVER,G.MOUSE_LEAVE,G.ADD_ERROR,G.EDIT,G.DELETE,G.ADD_TASK,G.SHOW_CONDITION],props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Kj=Object.assign(Hj,{setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(c.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),c.createVNode(yw,{id:e.id,data:t.dataWithLink,state:t.state,class:c.normalizeClass(t.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[5]||(n[5]=a=>t.forwardEvent(c.unref(G).SHOW_DESCRIPTION,a)),onExpand:n[6]||(n[6]=a=>t.forwardEvent(c.unref(G).EXPAND,t.expandData)),onOpenLink:n[7]||(n[7]=a=>t.forwardEvent(c.unref(G).OPEN_LINK,a)),onMouseover:n[8]||(n[8]=a=>t.forwardEvent(c.unref(G).MOUSE_OVER,a)),onMouseleave:n[9]||(n[9]=a=>t.forwardEvent(c.unref(G).MOUSE_LEAVE))},{content:c.withCtx(()=>[t.taskExecution?(c.openBlock(),c.createBlock(_w,{key:0,execution:t.taskExecution,task:e.data.node.task,color:t.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):c.createCommentVNode("",!0)]),"badge-button-before":c.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["circle-button",["bg-warning"]]),onClick:n[0]||(n[0]=a=>t.$emit(c.unref(G).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:c.unref(Lt).TASKS}))},[c.createVNode(fe,{title:t.$t("show task condition")},{default:c.withCtx(()=>[c.createVNode(xw,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):c.createCommentVNode("",!0),t.taskExecution?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=a=>t.$emit(c.unref(G).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[c.createVNode(fe,{title:t.$t("show task logs")},{default:c.withCtx(()=>[c.createVNode(ww,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(c.openBlock(),c.createElementBlock("span",{key:2,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[2]||(n[2]=a=>t.$emit(c.unref(G).ADD_ERROR,{task:e.data.node.task}))},[c.createVNode(fe,{title:t.$t("add error handler")},{default:c.withCtx(()=>[c.createVNode(kw,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(c.openBlock(),c.createElementBlock("span",{key:3,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[3]||(n[3]=a=>t.$emit(c.unref(G).EDIT,{task:e.data.node.task,section:c.unref(Lt).TASKS}))},[c.createVNode(fe,{title:t.$t("edit")},{default:c.withCtx(()=>[c.createVNode(li,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(c.openBlock(),c.createElementBlock("span",{key:4,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[4]||(n[4]=a=>t.$emit(c.unref(G).DELETE,{id:t.taskId,section:c.unref(Lt).TASKS}))},[c.createVNode(fe,{title:t.$t("delete")},{default:c.withCtx(()=>[c.createVNode(mi,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),c.createVNode(c.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Xj={name:"Task",inheritAttrs:!1,computed:{...sp("execution",["execution"]),SECTIONS(){return Lt},EVENTS(){return G},color(){return this.data.color??"primary"},formattedData(){var e,t,n,a;return{...this.data,unused:((t=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:t.disabled)||((a=(n=this.data.node)==null?void 0:n.trigger)==null?void 0:a.disabled)}},triggerId(){return Ee.afterLastDot(this.id)}},emits:[G.DELETE,G.EDIT,G.SHOW_DESCRIPTION],components:{Delete:mi,Pencil:li,Handle:re.Handle,Tooltip:fe},props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Yj=Object.assign(Xj,{setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(c.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),c.createVNode(yw,{id:e.id,data:t.formattedData,color:t.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[2]||(n[2]=a=>t.forwardEvent(c.unref(G).SHOW_DESCRIPTION,a)),onExpand:n[3]||(n[3]=a=>t.forwardEvent(c.unref(G).EXPAND,{id:e.id}))},c.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:c.withCtx(()=>[t.execution?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[0]||(n[0]=a=>t.$emit(c.unref(G).EDIT,{task:e.data.node.triggerDeclaration,section:c.unref(Lt).TRIGGERS}))},[c.createVNode(fe,{title:t.$t("edit")},{default:c.withCtx(()=>[c.createVNode(li,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),t.execution?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=a=>t.$emit(c.unref(G).DELETE,{id:t.triggerId,section:c.unref(Lt).TRIGGERS}))},[c.createVNode(fe,{title:t.$t("delete")},{default:c.withCtx(()=>[c.createVNode(mi,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),c.createVNode(c.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Qj={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jj=["aria-hidden","aria-label"],e9=["fill","width","height"],t9={d:"M11 15H6L13 1V9H18L11 23V15Z"},n9={key:0};function a9(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",t9,[n.title?(c.openBlock(),c.createElementBlock("title",n9,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,e9))],16,Jj)}const i9=Y(Qj,[["render",a9]]),r9={class:"collapsed-cluster-node d-flex"},o9={class:"node-text"},s9={class:"text-white top-button-div"},c9={components:{Tooltip:fe,Handle:re.Handle,ArrowExpand:oi,LightningBolt:i9},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 G},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},l9=Y(Object.assign(c9,{__name:"CollapsedClusterNode",setup(e){return(t,n)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(c.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),c.createElementVNode("div",r9,[c.createElementVNode("span",o9,[e.data.iconComponent?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.data.iconComponent),{key:0,class:c.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):c.createCommentVNode("",!0),c.createTextVNode(" "+c.toDisplayString(c.unref(Ee).afterLastDot(e.id)),1)]),c.createElementVNode("div",s9,[c.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),t.expandable?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[0]||(n[0]=a=>t.$emit(c.unref(G).EXPAND,{id:e.id}))},[c.createVNode(fe,{title:t.$t("expand")},{default:c.withCtx(()=>[c.createVNode(oi,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):c.createCommentVNode("",!0),c.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])]),c.createVNode(c.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),[["__scopeId","data-v-89413b39"]]),m9={name:"SplitCellsVerticalIcon",emits:["click"]},p9={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d9(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("svg",p9,t[0]||(t[0]=[c.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[c.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),c.createElementVNode("defs",null,[c.createElementVNode("clipPath",{id:"clip0_1111_7266"},[c.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)]))}const u9=Y(m9,[["render",d9],["__scopeId","data-v-084c51e6"]]),g9={name:"SplitCellsHorizontalIcon",emits:["click"]},b9={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f9(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("svg",b9,t[0]||(t[0]=[c.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[c.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),c.createElementVNode("defs",null,[c.createElementVNode("clipPath",{id:"clip0_796_3996"},[c.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)]))}const h9=Y(g9,[["render",f9],["__scopeId","data-v-c77c1469"]]),y9={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_9=["aria-hidden","aria-label"],w9=["fill","width","height"],k9={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},x9={key:0};function v9(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon download-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",k9,[n.title?(c.openBlock(),c.createElementBlock("title",x9,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,w9))],16,_9)}const A9=Y(y9,[["render",v9]]);function C9(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),a=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(a),n.body.appendChild(i),t&&(a.href=t),i.href=e,i.href}const z9=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Bt(e){const t=[];for(let n=0,a=e.length;n<a;n++)t.push(e[n]);return t}function pi(e,t){const a=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return a?parseFloat(a.replace("px","")):0}function $9(e){const t=pi(e,"border-left-width"),n=pi(e,"border-right-width");return e.clientWidth+t+n}function S9(e){const t=pi(e,"border-top-width"),n=pi(e,"border-bottom-width");return e.clientHeight+t+n}function vw(e,t={}){const n=t.width||$9(e),a=t.height||S9(e);return{width:n,height:a}}function E9(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const pt=16384;function j9(e){(e.width>pt||e.height>pt)&&(e.width>pt&&e.height>pt?e.width>e.height?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt):e.width>pt?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt))}function di(e){return new Promise((t,n)=>{const a=new Image;a.decode=()=>t(a),a.onload=()=>t(a),a.onerror=n,a.crossOrigin="anonymous",a.decoding="async",a.src=e})}async function T9(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Z9(e,t,n){const a="http://www.w3.org/2000/svg",i=document.createElementNS(a,"svg"),r=document.createElementNS(a,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),i.appendChild(r),r.appendChild(e),T9(i)}const nt=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||nt(n,t)};function q9(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function N9(e){return Bt(e).map(t=>{const n=e.getPropertyValue(t),a=e.getPropertyPriority(t);return`${t}: ${n}${a?" !important":""};`}).join(" ")}function F9(e,t,n){const a=`.${e}:${t}`,i=n.cssText?q9(n):N9(n);return document.createTextNode(`${a}{${i}}`)}function Aw(e,t,n){const a=window.getComputedStyle(e,n),i=a.getPropertyValue("content");if(i===""||i==="none")return;const r=z9();try{t.className=`${t.className} ${r}`}catch{return}const o=document.createElement("style");o.appendChild(F9(r,n,a)),t.appendChild(o)}function L9(e,t){Aw(e,t,":before"),Aw(e,t,":after")}const Cw="application/font-woff",zw="image/jpeg",P9={woff:Cw,woff2:Cw,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:zw,jpeg:zw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function R9(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function lp(e){const t=R9(e).toLowerCase();return P9[t]||""}function I9(e){return e.split(/,/)[1]}function mp(e){return e.search(/^(data:)/)!==-1}function O9(e,t){return`data:${t};base64,${e}`}async function $w(e,t,n){const a=await fetch(e,t);if(a.status===404)throw new Error(`Resource "${a.url}" not found`);const i=await a.blob();return new Promise((r,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{r(n({res:a,result:s.result}))}catch(l){o(l)}},s.readAsDataURL(i)})}const pp={};function D9(e,t,n){let a=e.replace(/\?.*/,"");return n&&(a=e),/ttf|otf|eot|woff2?/i.test(a)&&(a=a.replace(/.*\//,"")),t?`[${t}]${a}`:a}async function dp(e,t,n){const a=D9(e,t,n.includeQueryParams);if(pp[a]!=null)return pp[a];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const r=await $w(e,n.fetchRequestInit,({res:o,result:s})=>(t||(t=o.headers.get("Content-Type")||""),I9(s)));i=O9(r,t)}catch(r){i=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;r&&(o=typeof r=="string"?r:r.message),o&&console.warn(o)}return pp[a]=i,i}async function M9(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):di(t)}async function B9(e,t){if(e.currentSrc){const r=document.createElement("canvas"),o=r.getContext("2d");r.width=e.clientWidth,r.height=e.clientHeight,o==null||o.drawImage(e,0,0,r.width,r.height);const s=r.toDataURL();return di(s)}const n=e.poster,a=lp(n),i=await dp(n,a,t);return di(i)}async function G9(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await ui(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function U9(e,t){return nt(e,HTMLCanvasElement)?M9(e):nt(e,HTMLVideoElement)?B9(e,t):nt(e,HTMLIFrameElement)?G9(e):e.cloneNode(!1)}const W9=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function V9(e,t,n){var a,i;let r=[];return W9(e)&&e.assignedNodes?r=Bt(e.assignedNodes()):nt(e,HTMLIFrameElement)&&(!((a=e.contentDocument)===null||a===void 0)&&a.body)?r=Bt(e.contentDocument.body.childNodes):r=Bt(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),r.length===0||nt(e,HTMLVideoElement)||await r.reduce((o,s)=>o.then(()=>ui(s,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function H9(e,t){const n=t.style;if(!n)return;const a=window.getComputedStyle(e);a.cssText?(n.cssText=a.cssText,n.transformOrigin=a.transformOrigin):Bt(a).forEach(i=>{let r=a.getPropertyValue(i);i==="font-size"&&r.endsWith("px")&&(r=`${Math.floor(parseFloat(r.substring(0,r.length-2)))-.1}px`),nt(e,HTMLIFrameElement)&&i==="display"&&r==="inline"&&(r="block"),i==="d"&&t.getAttribute("d")&&(r=`path(${t.getAttribute("d")})`),n.setProperty(i,r,a.getPropertyPriority(i))})}function K9(e,t){nt(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),nt(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function X9(e,t){if(nt(e,HTMLSelectElement)){const n=t,a=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));a&&a.setAttribute("selected","")}}function Y9(e,t){return nt(t,Element)&&(H9(e,t),L9(e,t),K9(e,t),X9(e,t)),t}async function Q9(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const a={};for(let r=0;r<n.length;r++){const s=n[r].getAttribute("xlink:href");if(s){const l=e.querySelector(s),m=document.querySelector(s);!l&&m&&!a[s]&&(a[s]=await ui(m,t,!0))}}const i=Object.values(a);if(i.length){const r="http://www.w3.org/1999/xhtml",o=document.createElementNS(r,"svg");o.setAttribute("xmlns",r),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";const s=document.createElementNS(r,"defs");o.appendChild(s);for(let l=0;l<i.length;l++)s.appendChild(i[l]);e.appendChild(o)}return e}async function ui(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(a=>U9(a,t)).then(a=>V9(e,a,t)).then(a=>Y9(e,a)).then(a=>Q9(a,t))}const Sw=/url\((['"]?)([^'"]+?)\1\)/g,J9=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,eT=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function tT(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function nT(e){const t=[];return e.replace(Sw,(n,a,i)=>(t.push(i),n)),t.filter(n=>!mp(n))}async function aT(e,t,n,a,i){try{const r=n?C9(t,n):t,o=lp(t);let s;return i||(s=await dp(r,o,a)),e.replace(tT(t),`$1${s}$3`)}catch{}return e}function iT(e,{preferredFontFormat:t}){return t?e.replace(eT,n=>{for(;;){const[a,,i]=J9.exec(n)||[];if(!i)return"";if(i===t)return`src: ${a};`}}):e}function Ew(e){return e.search(Sw)!==-1}async function jw(e,t,n){if(!Ew(e))return e;const a=iT(e,n);return nT(a).reduce((r,o)=>r.then(s=>aT(s,o,t,n)),Promise.resolve(a))}async function gi(e,t,n){var a;const i=(a=t.style)===null||a===void 0?void 0:a.getPropertyValue(e);if(i){const r=await jw(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function rT(e,t){await gi("background",e,t)||await gi("background-image",e,t),await gi("mask",e,t)||await gi("mask-image",e,t)}async function oT(e,t){const n=nt(e,HTMLImageElement);if(!(n&&!mp(e.src))&&!(nt(e,SVGImageElement)&&!mp(e.href.baseVal)))return;const a=n?e.src:e.href.baseVal,i=await dp(a,lp(a),t);await new Promise((r,o)=>{e.onload=r,e.onerror=o;const s=e;s.decode&&(s.decode=r),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function sT(e,t){const a=Bt(e.childNodes).map(i=>Tw(i,t));await Promise.all(a).then(()=>e)}async function Tw(e,t){nt(e,Element)&&(await rT(e,t),await oT(e,t),await sT(e,t))}function cT(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const a=t.style;return a!=null&&Object.keys(a).forEach(i=>{n[i]=a[i]}),e}const Zw={};async function qw(e){let t=Zw[e];if(t!=null)return t;const a=await(await fetch(e)).text();return t={url:e,cssText:a},Zw[e]=t,t}async function Nw(e,t){let n=e.cssText;const a=/url\(["']?([^"')]+)["']?\)/g,r=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(a,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),$w(s,t.fetchRequestInit,({result:l})=>(n=n.replace(o,`url(${l})`),[o,l]))});return Promise.all(r).then(()=>n)}function Fw(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let a=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(a);if(l===null)break;t.push(l[0])}a=a.replace(i,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let l=r.exec(a);if(l===null){if(l=s.exec(a),l===null)break;r.lastIndex=s.lastIndex}else s.lastIndex=r.lastIndex;t.push(l[0])}return t}async function lT(e,t){const n=[],a=[];return e.forEach(i=>{if("cssRules"in i)try{Bt(i.cssRules||[]).forEach((r,o)=>{if(r.type===CSSRule.IMPORT_RULE){let s=o+1;const l=r.href,m=qw(l).then(p=>Nw(p,t)).then(p=>Fw(p).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?s+=1:i.cssRules.length)}catch(u){console.error("Error inserting rule from remote css",{rule:d,error:u})}})).catch(p=>{console.error("Error loading remote css",p.toString())});a.push(m)}})}catch(r){const o=e.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&a.push(qw(i.href).then(s=>Nw(s,t)).then(s=>Fw(s).forEach(l=>{o.insertRule(l,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",r)}}),Promise.all(a).then(()=>(e.forEach(i=>{if("cssRules"in i)try{Bt(i.cssRules||[]).forEach(r=>{n.push(r)})}catch(r){console.error(`Error while reading CSS rules from ${i.href}`,r)}}),n))}function mT(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ew(t.style.getPropertyValue("src")))}async function pT(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Bt(e.ownerDocument.styleSheets),a=await lT(n,t);return mT(a)}async function dT(e,t){const n=await pT(e,t);return(await Promise.all(n.map(i=>{const r=i.parentStyleSheet?i.parentStyleSheet.href:null;return jw(i.cssText,r,t)}))).join(`
|
|
29
29
|
`)}async function uT(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await dT(e,t);if(n){const a=document.createElement("style"),i=document.createTextNode(n);a.appendChild(i),e.firstChild?e.insertBefore(a,e.firstChild):e.appendChild(a)}}async function gT(e,t={}){const{width:n,height:a}=vw(e,t),i=await ui(e,t,!0);return await uT(i,t),await Tw(i,t),cT(i,t),await Z9(i,n,a)}async function Lw(e,t={}){const{width:n,height:a}=vw(e,t),i=await gT(e,t),r=await di(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=t.pixelRatio||E9(),m=t.canvasWidth||n,p=t.canvasHeight||a;return o.width=m*l,o.height=p*l,t.skipAutoScale||j9(o),o.style.width=`${m}`,o.style.height=`${p}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(r,0,0,o.width,o.height),o}async function bT(e,t={}){return(await Lw(e,t)).toDataURL()}async function fT(e,t={}){return(await Lw(e,t)).toDataURL("image/jpeg",t.quality||1)}function hT(){const e=c.ref(""),t=c.ref("png"),n=c.ref();async function a(s,l={}){let m;const p=l.fileName??`vue-flow-screenshot-${Date.now()}`;switch(l.type){case"jpeg":m=await i(s,l);break;case"png":m=await r(s,l);break;default:m=await r(s,l);break}return l.shouldDownload&&p!==""&&o(p),m}function i(s,l={quality:.95}){return n.value=null,fT(s,l).then(m=>(e.value=m,t.value="jpeg",m)).catch(m=>{throw m.value=m,new Error(m)})}function r(s,l={quality:.95}){return n.value=null,bT(s,l).then(m=>(e.value=m,t.value="png",m)).catch(m=>{throw m.value=m,new Error(m)})}function o(s){const l=document.createElement("a");l.download=`${s}.${t.value}`,l.href=e.value,l.click()}return{capture:a,download:o,dataUrl:e,error:n}}const yT={key:1,class:"exporting"},_T=c.defineComponent({__name:"Topology",props:{id:{type:String,required:!0},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{type:String,default:void 0,required:!0},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{type:Object,required:!0},flowId:{type:String,required:!1,default:void 0},namespace:{type:String,required:!1,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},emits:[G.EDIT,G.DELETE,G.OPEN_LINK,G.SHOW_LOGS,G.SHOW_DESCRIPTION,"on-add-flowable-error",G.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",G.SHOW_CONDITION],setup(e,{emit:t}){const n=e,a=c.ref(!1),i=c.ref(),{getNodes:r,onNodeDrag:o,onNodeDragStart:s,onNodeDragStop:l,fitView:m,setElements:p,vueFlowRef:d}=re.useVueFlow(n.id),u=c.ref({}),g=c.ref([]),_=c.ref(new Set),y=c.ref([]),{capture:f}=hT(),b=t;c.onMounted(()=>{h()}),c.watch(()=>n.flowGraph,()=>{h()}),c.watch(()=>n.isHorizontal,()=>{h()});const h=()=>{Ua.cleanGraph(n.id),c.nextTick(()=>{b("loading",!0);const P=_.value;_.value=new Set,g.value=[],u.value={},P.forEach(ee=>$(Ht+ee,!1,!1));const q=Ua.generateGraph(n.id,n.flowId,n.namespace,n.flowGraph,n.source,g.value,n.isHorizontal,u.value,_.value,y.value,n.isReadOnly,n.isAllowedEdit,n.enableSubflowInteraction);q&&(p(q),m(),b("loading",!1))})},k=P=>{a.value||Ua.linkedElements(n.id,P.uid).forEach(q=>{(q==null?void 0:q.type)==="task"&&(q.style={...q.style,outline:"0.5px solid "+ct("--bs-gray-900")},q.class="rounded-3")})},w=()=>{v()},v=()=>{r.value.filter(P=>P.type==="task"||P.type==="trigger").forEach(P=>{P.style={...P.style,opacity:"1",outline:"none"},P.class=""})};s(P=>{a.value=!0,v(),P.node.style={...P.node.style,zIndex:1976},i.value=P.node.position}),l(P=>{if(a.value=!1,P.intersections&&x(P.intersections,P.node)===null){const q=P.node,ee=P.intersections.find(H=>H.type==="task");if(ee)try{n.source&&b("swapped-task",{newSource:La.swapTasks(n.source,Ee.afterLastDot(q.id)??"",Ee.afterLastDot(ee.id)??""),swappedTasks:[q.id,ee.id]})}catch(H){b("message",{variant:"error",title:"cannot swap tasks",message:`${H.message}, ${H.messageOptions}`}),q.position=i.value}else q.position=i.value}else P.node.position=i.value;v(),P.node.style={...P.node.style,zIndex:5},i.value=null});const A=c.computed(()=>{var P;return(P=n.flowGraph)!=null&&P.clusters?n.flowGraph.clusters.filter(q=>q.cluster.type.endsWith("SubflowGraphCluster")).map(q=>q.cluster.taskNode.uid+"."):[]});o(P=>{v(),r.value.filter(q=>q.id!==P.node.id).forEach(q=>{var ee;q.type==="trigger"||q.type==="task"&&(q.id.startsWith(P.node.id+".")||P.node.id.startsWith(q.id+"."))||(ee=A==null?void 0:A.value)!=null&&ee.some(H=>q.id.startsWith(H))?q.style={...q.style,opacity:"0.5"}:q.style={...q.style,opacity:"1"}}),P.intersections&&!x(P.intersections,P.node)&&P.intersections.filter(q=>q.type==="task").length===1&&(P.intersections.forEach(q=>{q.type==="task"&&(q.style={...q.style,outline:"0.5px solid "+ct("--bs-primary")},q.class="rounded-3")}),P.node.style={...P.node.style,outline:"0.5px solid "+ct("--bs-primary")},P.node.class="rounded-3")});const x=(P,q)=>{const ee=P.filter(H=>H.type==="task").map(H=>Ee.afterLastDot(H.id));if(ee.length>1)return"toomuchtaskerror";try{if(ee.length===1&&n.source&&La.isParentChildrenRelation(n.source,Ee.afterLastDot(ee[0])??"",Ee.afterLastDot(q.id)??""))return"parentchildrenerror"}catch{return"parentchildrenerror"}return P.filter(H=>H.type==="trigger").length>0?"triggererror":null},$=(P,q,ee=!1)=>{const H=n.flowGraph.clusters.find(se=>se.cluster.uid.endsWith(P)),B=P.replace(Ht,"");_.value.add(B),g.value=g.value.concat(H.nodes.filter(se=>se!==B||ee)),g.value=g.value.concat([H.cluster.uid]),u.value={...u.value,[H.cluster.uid]:B,[H.start]:B,[H.end]:B};for(let se of H.nodes)n.flowGraph.clusters.map(Ae=>Ae.cluster.uid).includes(se)&&$(se,!1,!0);q&&h()},S=P=>{if(["io.kestra.core.tasks.flows.Flow","io.kestra.core.tasks.flows.Subflow","io.kestra.plugin.core.flow.Subflow","io.kestra.core.tasks.flows.ForEachItem$ForEachItemExecutable","io.kestra.plugin.core.flow.ForEachItem$ForEachItemExecutable"].includes(P.type)&&!n.expandedSubflows.includes(P.id)){b("expand-subflow",[...n.expandedSubflows,P.id]);return}u.value={},g.value=[],y.value=[],_.value.delete(P.id),_.value.forEach(ee=>$(ee,!1,!1)),h()},E=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,N=c.ref(!0),O=c.ref(!1),W=()=>O.value=!O.value;function Q(P){if(!d.value){console.warn("Flow not found");return}N.value=!1,f(d.value,{type:P,shouldDownload:!0}).then(()=>N.value=!0).finally(()=>O.value=!1)}return(P,q)=>(c.openBlock(),c.createBlock(c.unref(re.VueFlow),{id:e.id,"default-marker-color":c.unref(ct)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":c.withCtx(ee=>[c.createVNode(sE,c.mergeProps(ee,{onCollapse:q[0]||(q[0]=H=>$(H,!0))}),null,16)]),"node-dot":c.withCtx(ee=>[c.createVNode(bE,c.normalizeProps(c.guardReactiveProps(ee)),null,16)]),"node-task":c.withCtx(ee=>[c.createVNode(Kj,c.mergeProps(ee,{icons:e.icons,"icon-component":e.iconComponent,onEdit:q[1]||(q[1]=H=>b(c.unref(G).EDIT,H)),onDelete:q[2]||(q[2]=H=>b(c.unref(G).DELETE,H)),onExpand:q[3]||(q[3]=H=>S(H)),onOpenLink:q[4]||(q[4]=H=>b(c.unref(G).OPEN_LINK,H)),onShowLogs:q[5]||(q[5]=H=>b(c.unref(G).SHOW_LOGS,H)),onShowDescription:q[6]||(q[6]=H=>b(c.unref(G).SHOW_DESCRIPTION,H)),onShowCondition:q[7]||(q[7]=H=>b(c.unref(G).SHOW_CONDITION,H)),onMouseover:q[8]||(q[8]=H=>k(H)),onMouseleave:q[9]||(q[9]=H=>w()),onAddError:q[10]||(q[10]=H=>b("on-add-flowable-error",H)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":c.withCtx(ee=>[c.createVNode(Yj,c.mergeProps(ee,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:q[11]||(q[11]=H=>b(c.unref(G).DELETE,H)),onEdit:q[12]||(q[12]=H=>b(c.unref(G).EDIT,H)),onShowDescription:q[13]||(q[13]=H=>b(c.unref(G).SHOW_DESCRIPTION,H))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":c.withCtx(ee=>[c.createVNode(l9,c.mergeProps(ee,{onExpand:q[14]||(q[14]=H=>S(H))}),null,16)]),"edge-edge":c.withCtx(ee=>[c.createVNode($E,c.mergeProps(ee,{"yaml-source":e.source,onAddTask:q[15]||(q[15]=H=>b(c.unref(G).ADD_TASK,H)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:c.withCtx(()=>[c.createVNode(c.unref(YS),{"pattern-color":E?c.unref(ct)("--bs-grey-500"):c.unref(ct)("--bs-grey-300")},null,8,["pattern-color"]),N.value?(c.openBlock(),c.createBlock(c.unref(Vi.Controls),{key:0,"show-interactive":!1},{default:c.withCtx(()=>[e.toggleOrientationButton?(c.openBlock(),c.createBlock(c.unref(Vi.ControlButton),{key:0,onClick:q[16]||(q[16]=ee=>b("toggle-orientation",ee))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.isHorizontal?h9:u9)))]),_:1})):c.createCommentVNode("",!0),c.createVNode(c.unref(Vi.ControlButton),{onClick:W},{default:c.withCtx(()=>[c.createVNode(A9)]),_:1}),O.value?(c.openBlock(),c.createElementBlock("ul",yT,[c.createElementVNode("li",{onClick:q[17]||(q[17]=ee=>Q("jpeg")),class:"item"}," Export as .JPEG "),c.createElementVNode("li",{onClick:q[18]||(q[18]=ee=>Q("png")),class:"item"}," Export as .PNG ")])):c.createCommentVNode("",!0)]),_:1})):c.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),wT=Y(_T,[["__scopeId","data-v-a4ca7d73"]]),kT={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xT=["aria-hidden","aria-label"],vT=["fill","width","height"],AT={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},CT={key:0};function zT(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",AT,[n.title?(c.openBlock(),c.createElementBlock("title",CT,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,vT))],16,xT)}const $T=Y(kT,[["render",zT]]),ST={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ET=["aria-hidden","aria-label"],jT=["fill","width","height"],TT={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},ZT={key:0};function qT(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon content-copy-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",TT,[n.title?(c.openBlock(),c.createElementBlock("title",ZT,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,jT))],16,ET)}const NT=Y(ST,[["render",qT]]),FT={key:0,class:"language"},LT=["innerHTML"],Pw=Y(c.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(e){const t={ContentCopy:c.shallowRef(NT),Check:c.shallowRef($T)},n=e,a=c.ref(!1),i=c.ref(),r=c.shallowRef(t.ContentCopy.value),o=c.ref(),s=c.ref(),l=c.ref(n.highlighter.codeToHtml(n.code,{lang:n.language,theme:n.theme}));function m(){a.value=!0,i.value&&c.nextTick(()=>{o.value&&s.value&&bv.createPopper(o.value,s.value,{placement:"left"})})}function p(){clearTimeout(i.value),navigator.clipboard.writeText(n.code.trimEnd()),r.value=t.Check.value,i.value=setTimeout(()=>{r.value=t.ContentCopy.value,i.value=void 0},2e3)}return(d,u)=>(c.openBlock(),c.createElementBlock("div",{class:"code-block",onMouseover:m,onMouseleave:u[0]||(u[0]=g=>a.value=!1)},[d.language&&!a.value?(c.openBlock(),c.createElementBlock("div",FT,c.toDisplayString(d.language),1)):c.createCommentVNode("",!0),a.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createElementVNode("button",{ref_key:"copyButton",ref:o,class:"copy"},[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(r.value),{onClick:p}))],512),i.value?(c.openBlock(),c.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},u[1]||(u[1]=[c.createTextVNode(" Copied! "),c.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),c.createElementVNode("div",{innerHTML:l.value},null,8,LT)],32))}}),[["__scopeId","data-v-43f26c29"]]),PT={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},RT=["aria-hidden","aria-label"],IT=["fill","width","height"],OT={d:"M10,17L15,12L10,7V17Z"},DT={key:0};function MT(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-right-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",OT,[n.title?(c.openBlock(),c.createElementBlock("title",DT,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,IT))],16,RT)}const BT=Y(PT,[["render",MT]]),GT={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},UT=["aria-hidden","aria-label"],WT=["fill","width","height"],VT={d:"M7,10L12,15L17,10H7Z"},HT={key:0};function KT(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-down-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",VT,[n.title?(c.openBlock(),c.createElementBlock("title",HT,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,WT))],16,UT)}const XT=Y(GT,[["render",KT]]),YT=["id"],QT=["data-target","aria-controls"],JT={class:"d-flex gap-2 align-items-center"},eZ={key:0,class:"d-flex flex-grow-1"},tZ=["id"],nZ=c.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const n=e,a=c.ref(!n.initiallyExpanded),i=xa.useRoute(),r=xa.useRouter(),o=c.computed(()=>`#${n.href}-body`),s=()=>{a.value=!a.value,r.replace({hash:a.value?"":o.value})},l=t;return c.watch(()=>i.hash,m=>{m===o.value&&(a.value=!1,l("expand"))},{immediate:!0}),c.watch(()=>n.initiallyExpanded,m=>{m&&(a.value=!m)},{immediate:!0}),(m,p)=>(c.openBlock(),c.createElementBlock("div",{id:m.href,class:c.normalizeClass(["d-flex flex-column",{"gap-2":!a.value}])},[c.createElementVNode("button",{onClick:s,class:c.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:a.value}]),"data-toggle":"collapse","data-target":o.value,"aria-expanded":"false","aria-controls":m.href+"-body"},[c.createElementVNode("span",JT,[m.arrow?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(a.value?BT:XT),{key:0,class:"arrow"})):c.createCommentVNode("",!0),c.createTextVNode(c.toDisplayString(m.clickableText),1),c.renderSlot(m.$slots,"additionalButtonText",{},void 0,!0)]),m.$slots.buttonRight?(c.openBlock(),c.createElementBlock("span",eZ,[c.renderSlot(m.$slots,"buttonRight",{collapsed:a.value},void 0,!0)])):c.createCommentVNode("",!0)],10,QT),m.$slots.content?(c.openBlock(),c.createElementBlock("div",{key:0,id:m.href+"-body",class:c.normalizeClass(["collapsible-body",{collapsed:a.value}])},[c.createElementVNode("div",null,[c.renderSlot(m.$slots,"content",{},void 0,!0)])],10,tZ)):c.createCommentVNode("",!0)],10,YT))}}),bi=Y(nZ,[["__scopeId","data-v-9838d839"]]);function fi(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function Rw(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function aZ(e){var t,n;if(e.enum)return e.enum;if((t=e.items)!=null&&t.enum)return e.items.enum;if((n=e.additionalProperties)!=null&&n.enum)return e.additionalProperties.enum}function iZ(e){return e.allOf&&(e=e.allOf.reduce((t,n)=>({...t,...n}),{...e}),delete e.allOf),e}function Iw(e){const t={},n=fi(e);return n?t.types=[n]:e.anyOf?t.types=e.anyOf.map(fi).filter(a=>a!==void 0).filter(Ee.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=fi(e.additionalProperties):e.items&&(t.subType=fi(e.items)),t}const rZ={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},oZ=["aria-hidden","aria-label"],sZ=["fill","width","height"],cZ={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},lZ={key:0};function mZ(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",cZ,[n.title?(c.openBlock(),c.createElementBlock("title",lZ,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,sZ))],16,oZ)}const pZ=Y(rZ,[["render",mZ]]),dZ={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uZ=["aria-hidden","aria-label"],gZ=["fill","width","height"],bZ={d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},fZ={key:0};function hZ(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",bZ,[n.title?(c.openBlock(),c.createElementBlock("title",fZ,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,gZ))],16,uZ)}const Ow=Y(dZ,[["render",hZ]]),yZ={class:"property-detail"},_Z={key:0},wZ=["href"],kZ={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},xZ={class:"ref-type"},vZ={key:1,class:"type-box rounded fs-7 px-2 py-1"},AZ={key:1},CZ={key:2},zZ={class:"border rounded px-2 py-1"},$Z={key:3},SZ={class:"border rounded px-2 py-1"},EZ={key:4},jZ={class:"border rounded px-2 py-1"},TZ={key:5},ZZ={class:"border rounded px-2 py-1"},qZ={key:6},NZ={class:"border rounded px-2 py-1"},FZ={key:7},LZ={class:"border rounded px-2 py-1"},PZ={key:8},RZ={class:"border rounded px-2 py-1"},IZ={key:9},OZ={class:"border rounded px-2 py-1"},DZ={key:10},MZ={class:"border rounded px-2 py-1"},BZ={key:11},GZ={class:"border rounded px-2 py-1"},UZ={key:12},WZ={class:"border rounded px-2 py-1"},VZ={key:13},HZ={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},KZ={key:14},XZ={class:"property-description markdown"},YZ={key:2},QZ=Y(c.defineComponent({__name:"PropertyDetail",props:{property:{},isDynamic:{type:Boolean},showDynamic:{type:Boolean,default:!0}},setup(e){const t=e,n=c.ref(Iw(t.property).subType),a=c.ref(aZ(t.property)),i=r=>r.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(r,o)=>{const s=c.resolveComponent("Alert");return c.openBlock(),c.createElementBlock("div",yZ,[n.value?(c.openBlock(),c.createElementBlock("div",_Z,[o[1]||(o[1]=c.createElementVNode("span",null," SubType ",-1)),n.value.startsWith("#")?(c.openBlock(),c.createElementBlock("a",{key:0,href:n.value,onClick:o[0]||(o[0]=c.withModifiers(()=>{},["stop"]))},[c.createElementVNode("button",kZ,[c.createElementVNode("span",xZ,c.toDisplayString(c.unref(Rw)(n.value)),1),c.createVNode(Ow)])],8,wZ)):(c.openBlock(),c.createElementBlock("span",vZ,c.toDisplayString(n.value),1))])):c.createCommentVNode("",!0),r.showDynamic?(c.openBlock(),c.createElementBlock("div",AZ,[o[2]||(o[2]=c.createElementVNode("span",null," Dynamic ",-1)),c.createElementVNode("code",{class:c.normalizeClass(["border rounded px-2 py-1",{"border-red":!r.isDynamic}])},c.toDisplayString(r.isDynamic?"YES":"NO"),3)])):c.createCommentVNode("",!0),r.property.default!==void 0?(c.openBlock(),c.createElementBlock("div",CZ,[o[3]||(o[3]=c.createElementVNode("span",null," Default ",-1)),c.createElementVNode("code",zZ,c.toDisplayString(r.property.default),1)])):c.createCommentVNode("",!0),r.property.pattern!==void 0?(c.openBlock(),c.createElementBlock("div",$Z,[o[4]||(o[4]=c.createElementVNode("span",null," Validation RegExp ",-1)),c.createElementVNode("code",SZ,c.toDisplayString(r.property.pattern),1)])):c.createCommentVNode("",!0),r.property.minLength!==void 0?(c.openBlock(),c.createElementBlock("div",EZ,[o[5]||(o[5]=c.createElementVNode("span",null," Min length ",-1)),c.createElementVNode("code",jZ,c.toDisplayString(r.property.minLength),1)])):c.createCommentVNode("",!0),r.property.maxLength!==void 0?(c.openBlock(),c.createElementBlock("div",TZ,[o[6]||(o[6]=c.createElementVNode("span",null," Max length ",-1)),c.createElementVNode("code",ZZ,c.toDisplayString(r.property.maxLength),1)])):c.createCommentVNode("",!0),r.property.minItems!==void 0?(c.openBlock(),c.createElementBlock("div",qZ,[o[7]||(o[7]=c.createElementVNode("span",null," Min items ",-1)),c.createElementVNode("code",NZ,c.toDisplayString(r.property.minItems),1)])):c.createCommentVNode("",!0),r.property.maxItems!==void 0?(c.openBlock(),c.createElementBlock("div",FZ,[o[8]||(o[8]=c.createElementVNode("span",null," Max items ",-1)),c.createElementVNode("code",LZ,c.toDisplayString(r.property.maxItems),1)])):c.createCommentVNode("",!0),r.property.minimum!==void 0?(c.openBlock(),c.createElementBlock("div",PZ,[o[9]||(o[9]=c.createElementVNode("span",null," Minimum ",-1)),c.createElementVNode("code",RZ," >= "+c.toDisplayString(r.property.minimum),1)])):c.createCommentVNode("",!0),r.property.exclusiveMinimum!==void 0?(c.openBlock(),c.createElementBlock("div",IZ,[o[10]||(o[10]=c.createElementVNode("span",null," Minimum ",-1)),c.createElementVNode("code",OZ," > "+c.toDisplayString(r.property.minimum),1)])):c.createCommentVNode("",!0),r.property.maximum!==void 0?(c.openBlock(),c.createElementBlock("div",DZ,[o[11]||(o[11]=c.createElementVNode("span",null," Maximum ",-1)),c.createElementVNode("code",MZ," <= "+c.toDisplayString(r.property.maximum),1)])):c.createCommentVNode("",!0),r.property.exclusiveMaximum!==void 0?(c.openBlock(),c.createElementBlock("div",BZ,[o[12]||(o[12]=c.createElementVNode("span",null," Maximum ",-1)),c.createElementVNode("code",GZ," < "+c.toDisplayString(r.property.maximum),1)])):c.createCommentVNode("",!0),r.property.format!==void 0?(c.openBlock(),c.createElementBlock("div",UZ,[o[13]||(o[13]=c.createElementVNode("span",null," Format ",-1)),c.createElementVNode("code",WZ,c.toDisplayString(r.property.format),1)])):c.createCommentVNode("",!0),a.value!==void 0?(c.openBlock(),c.createElementBlock("div",VZ,[o[14]||(o[14]=c.createElementVNode("span",null," Possible Values ",-1)),c.createElementVNode("div",HZ,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,(l,m)=>(c.openBlock(),c.createElementBlock("code",{class:"border rounded px-2 py-1",key:m},c.toDisplayString(l),1))),128))])])):c.createCommentVNode("",!0),r.property.title!==void 0||r.property.description!==void 0?(c.openBlock(),c.createElementBlock("div",KZ,[c.createElementVNode("div",XZ,[r.property.title!==void 0?c.renderSlot(r.$slots,"markdown",{key:0,content:i(r.property.title)},void 0,!0):c.createCommentVNode("",!0),r.property.description!==void 0?c.renderSlot(r.$slots,"markdown",{key:1,content:i(r.property.description)},void 0,!0):c.createCommentVNode("",!0),r.property.$internalStorageURI?(c.openBlock(),c.createElementBlock("div",YZ,[c.createVNode(s,{type:"info"},{default:c.withCtx(()=>[c.renderSlot(r.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-26b65cfc"]]),JZ={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},eq=["aria-hidden","aria-label"],tq=["fill","width","height"],nq={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},aq={key:0};function iq(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",nq,[n.title?(c.openBlock(),c.createElementBlock("title",aq,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,tq))],16,eq)}const rq=Y(JZ,[["render",iq]]),oq={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sq=["aria-hidden","aria-label"],cq=["fill","width","height"],lq={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},mq={key:0};function pq(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",lq,[n.title?(c.openBlock(),c.createElementBlock("title",mq,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,cq))],16,sq)}const dq=Y(oq,[["render",pq]]),uq={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gq=["aria-hidden","aria-label"],bq=["fill","width","height"],fq={d:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z"},hq={key:0};function yq(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon snowflake-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",fq,[n.title?(c.openBlock(),c.createElementBlock("title",hq,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,bq))],16,gq)}const _q=Y(uq,[["render",yq]]),wq={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},kq=["aria-hidden","aria-label"],xq=["fill","width","height"],vq={d:"M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M15,10.5V9A2,2 0 0,0 13,7H9V17H13A2,2 0 0,0 15,15V13.5C15,12.7 14.3,12 13.5,12C14.3,12 15,11.3 15,10.5M13,15H11V13H13V15M13,11H11V9H13V11Z"},Aq={key:0};function Cq(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",vq,[n.title?(c.openBlock(),c.createElementBlock("title",Aq,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,xq))],16,kq)}const zq=Y(wq,[["render",Cq]]),$q={class:"border overflow-hidden"},Sq={class:"d-flex flex-grow-1 align-items-center justify-content-between"},Eq={class:"d-flex gap-2"},jq={class:"d-flex gap-2"},Tq=["href"],Zq={class:"ref-type"},qq={key:1,class:"type-box rounded fs-7 px-2 py-1"},Nq=c.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const n=t,a=c.ref(!1);c.watch(a,o=>{o&&n("expand")});const i=o=>{var s;return o.$dynamic===!0?!0:o.$dynamic===!1?!1:((s=o.anyOf)==null?void 0:s.some(l=>l.$dynamic===!0))??!1};function r(o){const s=[],l=[];for(const d in o)typeof o[d]=="object"&&(o[d]=iZ(o[d]),o[d].$required?s.push(d):l.push(d));const m=[...s.sort(),...l.sort()],p={};return m.forEach(d=>{p[d]=o[d]}),p}return(o,s)=>(c.openBlock(),c.createBlock(bi,{class:"section-collapsible","clickable-text":o.sectionName,href:o.href,onExpand:s[2]||(s[2]=l=>n("expand")),"initially-expanded":o.initiallyExpanded||a.value},c.createSlots({_:2},[Object.keys(o.properties??{}).length>0?{name:"content",fn:c.withCtx(()=>[c.createElementVNode("div",$q,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(r(o.properties),(l,m)=>(c.openBlock(),c.createBlock(bi,{class:"property",key:m,arrow:!1,"clickable-text":m,href:o.href+"_"+m,onExpand:s[1]||(s[1]=p=>a.value=!0)},{additionalButtonText:c.withCtx(()=>[l.$required?(c.openBlock(),c.createBlock(fe,{key:0,class:"d-flex",title:"Required"},{default:c.withCtx(()=>s[3]||(s[3]=[c.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):c.createCommentVNode("",!0)]),buttonRight:c.withCtx(({collapsed:p})=>[c.createElementVNode("span",Sq,[c.createElementVNode("span",Eq,[o.showDynamic&&!i(l)?(c.openBlock(),c.createBlock(fe,{key:0,class:"d-flex",title:"Non-dynamic"},{default:c.withCtx(()=>[c.createVNode(_q,{class:"text-info"})]),_:1})):c.createCommentVNode("",!0),l.$beta?(c.openBlock(),c.createBlock(fe,{key:1,class:"d-flex",title:"Beta"},{default:c.withCtx(()=>[c.createVNode(zq,{class:"text-warning"})]),_:1})):c.createCommentVNode("",!0),l.$deprecated?(c.openBlock(),c.createBlock(fe,{key:2,class:"d-flex",title:"Deprecated"},{default:c.withCtx(()=>[c.createVNode(dq,{class:"text-warning"})]),_:1})):c.createCommentVNode("",!0)]),c.createElementVNode("span",jq,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(Iw)(l).types,d=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:d},[d.startsWith("#")?(c.openBlock(),c.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:d,onClick:s[0]||(s[0]=c.withModifiers(()=>{},["stop"]))},[c.createElementVNode("span",Zq,c.toDisplayString(c.unref(Rw)(d)),1),c.createVNode(Ow)],8,Tq)):(c.openBlock(),c.createElementBlock("span",qq,c.toDisplayString(d),1))],64))),128)),(c.openBlock(),c.createBlock(c.resolveDynamicComponent(p?pZ:rq),{class:"arrow"}))])])]),content:c.withCtx(()=>[c.createVNode(QZ,{"show-dynamic":o.showDynamic,"is-dynamic":o.showDynamic&&i(l),property:l},{markdown:c.withCtx(({content:p})=>[c.renderSlot(o.$slots,"markdown",{content:p},void 0,!0)]),_:2},1032,["show-dynamic","is-dynamic","property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),up=Y(Nq,[["__scopeId","data-v-236d3a37"]]),Fq={class:"d-flex flex-column gap-6"},Lq={key:0,class:"alert alert-info",role:"alert"},Pq={key:1,class:"plugin-title markdown"},Rq={key:2,class:"markdown"},Iq={class:"d-flex flex-column gap-4"},Oq={class:"d-flex flex-column gap-3"},Dq={class:"markdown"},Mq={key:0,class:"w-100 align-self-center"},Bq={class:"markdown"},Gq={class:"markdown"},Uq={class:"d-flex flex-column gap-7 ps-3"},Wq={class:"markdown"},Vq=Y(c.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1}},async setup(e){let t,n;const a=e,i=c.ref(!1),r=f=>{var b;return f!=null&&f.full?f.code:`id: "${(b=a.pluginType.split(".").reverse()[0])==null?void 0:b.toLowerCase()}"
|
|
30
30
|
type: "${a.pluginType}"
|
|
31
31
|
`.concat(f.code)},o=c.ref(null),s=c.computed(()=>{var f;return(f=a.schema.properties)==null?void 0:f.$examples}),{githubLight:l,githubDark:m,yaml:p,python:d,javascript:u,createJavaScriptRegexEngine:g,createHighlighterCore:_}=([t,n]=c.withAsyncContext(()=>Promise.resolve().then(()=>DR)),t=await t,n(),t);o.value=([t,n]=c.withAsyncContext(()=>_({themes:[a.darkMode?m:l],langs:[p,d,u],engine:g()})),t=await t,n(),t);const y="github-"+(a.darkMode?"dark":"light");return c.onUnmounted(()=>{var f;return(f=o.value)==null?void 0:f.dispose()}),(f,b)=>{var h,k,w,v,A;return c.openBlock(),c.createElementBlock("div",Fq,[c.createElementVNode("div",null,[(h=f.schema.properties)!=null&&h.$beta?(c.openBlock(),c.createElementBlock("div",Lq,b[1]||(b[1]=[c.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)]))):c.createCommentVNode("",!0),(k=f.schema.properties)!=null&&k.title?(c.openBlock(),c.createElementBlock("div",Pq,[c.renderSlot(f.$slots,"markdown",{content:f.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):c.createCommentVNode("",!0),(w=f.schema.properties)!=null&&w.description?(c.openBlock(),c.createElementBlock("div",Rq,[c.renderSlot(f.$slots,"markdown",{content:f.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):c.createCommentVNode("",!0),(c.openBlock(),c.createBlock(Pw,{highlighter:o.value,language:"yaml",theme:y,code:`type: "${f.pluginType}"`,key:f.pluginType},null,8,["highlighter","code"]))]),(c.openBlock(),c.createElementBlock("div",{class:"d-flex flex-column gap-3",key:f.pluginType},[s.value?(c.openBlock(),c.createBlock(bi,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:c.withCtx(()=>[c.createElementVNode("div",Iq,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,(x,$)=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:f.pluginType+"-"+$},[c.createElementVNode("div",Oq,[c.createElementVNode("div",Dq,[x.title?c.renderSlot(f.$slots,"markdown",{key:0,content:x.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):c.createCommentVNode("",!0)]),x.code?(c.openBlock(),c.createBlock(Pw,{key:0,highlighter:o.value,language:x.lang??"yaml",theme:y,code:r(x)},null,8,["highlighter","language","code"])):c.createCommentVNode("",!0)]),$<s.value.length-1?(c.openBlock(),c.createElementBlock("hr",Mq)):c.createCommentVNode("",!0)],64))),128))])]),_:3})):c.createCommentVNode("",!0),(v=f.schema.properties)!=null&&v.properties?(c.openBlock(),c.createBlock(up,{key:1,class:"plugin-section",properties:f.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":f.propsInitiallyExpanded,"show-dynamic":!1},{markdown:c.withCtx(({content:x})=>[c.createElementVNode("div",Bq,[c.renderSlot(f.$slots,"markdown",{content:x},void 0,!0)])]),_:3},8,["properties","initially-expanded"])):c.createCommentVNode("",!0),(A=f.schema.outputs)!=null&&A.properties&&Object.keys(f.schema.outputs.properties).length>0?(c.openBlock(),c.createBlock(up,{key:2,class:"plugin-section",properties:f.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:c.withCtx(({content:x})=>[c.createElementVNode("div",Gq,[c.renderSlot(f.$slots,"markdown",{content:x},void 0,!0)])]),_:3},8,["properties"])):c.createCommentVNode("",!0),f.schema.definitions&&Object.keys(f.schema.definitions).length>0?(c.openBlock(),c.createBlock(bi,{key:3,class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":i.value},{content:c.withCtx(()=>[c.createElementVNode("div",Uq,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(Object.entries(f.schema.definitions),([x,$])=>(c.openBlock(),c.createBlock(up,{properties:$.properties,"section-name":$.title??x.split("_")[0],href:x,"show-dynamic":!1,key:f.pluginType+"-"+x,class:"plugin-section nested-button-py-2",onExpand:b[0]||(b[0]=S=>i.value=!0)},{markdown:c.withCtx(({content:S})=>[c.createElementVNode("div",Wq,[c.renderSlot(f.$slots,"markdown",{content:S},void 0,!0)])]),_:2},1032,["properties","section-name","href"]))),128))])]),_:3},8,["initially-expanded"])):c.createCommentVNode("",!0)]))])}}}),[["__scopeId","data-v-bfd518f4"]]),Hq={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kq=["aria-hidden","aria-label"],Xq=["fill","width","height"],Yq={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},Qq={key:0};function Jq(e,t,n,a,i,r){return c.openBlock(),c.createElementBlock("span",c.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:t[0]||(t[0]=o=>e.$emit("click",o))}),[(c.openBlock(),c.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[c.createElementVNode("path",Yq,[n.title?(c.openBlock(),c.createElementBlock("title",Qq,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)])],8,Xq))],16,Kq)}const e2=Y(Hq,[["render",Jq]]),t2=["href"],n2=["src","alt"],Dw=Y(c.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const t=e,{path:n}=xa.useRoute(),a=c.computed(()=>t.href===void 0?`${n}/${ln(t.text)}`:t.href);return(i,r)=>(c.openBlock(),c.createElementBlock("a",{href:a.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[c.createElementVNode("img",{src:i.iconB64Svg,alt:`${i.text} icon`},null,8,n2),c.createTextVNode(c.toDisplayString(i.text)+" ",1),c.createVNode(e2,{class:"ms-auto"})],8,t2))}}),[["__scopeId","data-v-b787c0f3"]]),a2={class:"d-flex flex-column gap-4"},i2={key:1,class:"d-flex flex-column"},r2=["id"],o2={class:"d-flex flex-column"},s2=c.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const t=e,n=c.computed(()=>t.plugins.find(d=>t.subGroup===void 0?!0:ln(Sn(d))===t.subGroup)),a=c.computed(()=>{var d,u;return((d=n.value)==null?void 0:d.longDescription)??((u=n.value)==null?void 0:u.description)}),i=c.computed(()=>t.plugins.filter(d=>d.name.toLowerCase()===t.pluginName.toLowerCase()&&d.subGroup!==void 0)),r=d=>{let u=d.split(".");return u==null?void 0:u[u.length-1]},{path:o}=xa.useRoute(),s=d=>`${o}/${ln(d)}`,l=d=>`${o}/${d}`;function m(d){return Object.fromEntries(Object.entries(d).filter(([u,g])=>Wy(u,g)).map(([u,g])=>[u.replaceAll(/[A-Z]/g,_=>` ${_}`),g]))}const p=c.computed(()=>m(n.value));return(d,u)=>(c.openBlock(),c.createElementBlock("div",a2,[a.value!==void 0?c.renderSlot(d.$slots,"markdown",{key:0,content:a.value.replaceAll(/ *:(?![ /])/g,": ")}):c.createCommentVNode("",!0),d.subGroup===void 0&&d.plugins.length>1?(c.openBlock(),c.createElementBlock("div",i2,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.value,g=>(c.openBlock(),c.createBlock(Dw,{id:`group-${c.unref(ln)(c.unref(Sn)(g))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+d.icons[g.subGroup],text:c.unref(Sn)(g),href:s(c.unref(Sn)(g)),key:c.unref(Sn)(g),class:"text-capitalize",onClick:_=>d.$emit("goTo",{subGroup:g})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:2},c.renderList(p.value,(g,_)=>(c.openBlock(),c.createElementBlock("div",{class:"d-flex flex-column elements-section",key:_},[c.createElementVNode("h4",{id:`section-${c.unref(ln)(_)}`,class:"text-capitalize"},c.toDisplayString(_),9,r2),c.createElementVNode("div",o2,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(g,y=>(c.openBlock(),c.createBlock(Dw,{id:c.unref(ln)(y),"icon-b64-svg":"data:image/svg+xml;base64,"+d.icons[y],text:r(y),href:l(y),key:y,class:"text-capitalize",onClick:f=>d.$emit("goTo",{element:y})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),c2=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,l2=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,m2=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function p2(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){d2(e);return}return t}function d2(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function u2(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!m2.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(c2.test(e)||l2.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,p2)}return JSON.parse(e)}catch(a){if(t.strict)throw a;return e}}const g2=/\d/,b2=["-","_","/","."];function f2(e=""){if(!g2.test(e))return e!==e.toLowerCase()}function Mw(e,t){const n=b2,a=[];if(!e||typeof e!="string")return a;let i="",r,o;for(const s of e){const l=n.includes(s);if(l===!0){a.push(i),i="",r=void 0;continue}const m=f2(s);if(o===!1){if(r===!1&&m===!0){a.push(i),i=s,r=m;continue}if(r===!0&&m===!1&&i.length>1){const p=i.at(-1);a.push(i.slice(0,Math.max(0,i.length-1))),i=p+s,r=m;continue}}i+=s,r=m,o=l}return a.push(i),a}function h2(e){return e?e[0].toUpperCase()+e.slice(1):""}function Bw(e,t){return e?(Array.isArray(e)?e:Mw(e)).map(n=>h2(n)).join(""):""}function y2(e,t){return e?(Array.isArray(e)?e:Mw(e)).map(n=>n.toLowerCase()).join("-"):""}let oa=class{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}};oa.prototype.normal={},oa.prototype.property={},oa.prototype.space=void 0;function Gw(e,t){const n={},a={};for(const i of e)Object.assign(n,i.property),Object.assign(a,i.normal);return new oa(n,a,t)}function gp(e){return e.toLowerCase()}let at=class{constructor(t,n){this.attribute=n,this.property=t}};at.prototype.attribute="",at.prototype.booleanish=!1,at.prototype.boolean=!1,at.prototype.commaOrSpaceSeparated=!1,at.prototype.commaSeparated=!1,at.prototype.defined=!1,at.prototype.mustUseProperty=!1,at.prototype.number=!1,at.prototype.overloadedBoolean=!1,at.prototype.property="",at.prototype.spaceSeparated=!1,at.prototype.space=void 0;let _2=0;const te=bn(),Fe=bn(),Uw=bn(),R=bn(),ke=bn(),Nn=bn(),dt=bn();function bn(){return 2**++_2}const bp=Object.freeze(Object.defineProperty({__proto__:null,boolean:te,booleanish:Fe,commaOrSpaceSeparated:dt,commaSeparated:Nn,number:R,overloadedBoolean:Uw,spaceSeparated:ke},Symbol.toStringTag,{value:"Module"})),fp=Object.keys(bp);let hp=class extends at{constructor(t,n,a,i){let r=-1;if(super(t,n),Ww(this,"space",i),typeof a=="number")for(;++r<fp.length;){const o=fp[r];Ww(this,fp[r],(a&bp[o])===bp[o])}}};hp.prototype.defined=!0;function Ww(e,t,n){n&&(e[t]=n)}function Fn(e){const t={},n={};for(const[a,i]of Object.entries(e.properties)){const r=new hp(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(r.mustUseProperty=!0),t[a]=r,n[gp(a)]=a,n[gp(r.attribute)]=a}return new oa(t,n,e.space)}const Vw=Fn({properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:ke,ariaCurrent:null,ariaDescribedBy:ke,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:ke,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:ke,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ke,ariaLevel:R,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:ke,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:ke,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:Fe,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Hw(e,t){return t in e?e[t]:t}function Kw(e,t){return Hw(e,t.toLowerCase())}const w2=Fn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Nn,acceptCharset:ke,accessKey:ke,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:ke,autoFocus:te,autoPlay:te,blocking:ke,capture:null,charSet:null,checked:te,cite:null,className:ke,cols:R,colSpan:null,content:null,contentEditable:Fe,controls:te,controlsList:ke,coords:R|Nn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:te,defer:te,dir:null,dirName:null,disabled:te,download:Uw,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:ke,height:R,hidden:te,high:R,href:null,hrefLang:null,htmlFor:ke,httpEquiv:ke,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:ke,itemRef:ke,itemScope:te,itemType:ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:te,optimum:R,pattern:null,ping:ke,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:ke,required:te,reversed:te,rows:R,rowSpan:R,sandbox:ke,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootDelegatesFocus:te,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:te,useMap:null,value:Fe,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ke,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:te,noHref:te,noShade:te,noWrap:te,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:te,disableRemotePlayback:te,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:Kw}),k2=Fn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:dt,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:ke,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:te,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Nn,g2:Nn,glyphName:Nn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:dt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dt,rev:dt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dt,requiredFeatures:dt,requiredFonts:dt,requiredFormats:dt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:dt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dt,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Hw}),Xw=Fn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Yw=Fn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Kw}),Qw=Fn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),x2=/[A-Z]/g,Jw=/-[a-z]/g,v2=/^data[-\w.:]+$/i;function A2(e,t){const n=gp(t);let a=t,i=at;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&v2.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(Jw,z2);a="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!Jw.test(r)){let o=r.replace(x2,C2);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=hp}return new i(a,t)}function C2(e){return"-"+e.toLowerCase()}function z2(e){return e.charAt(1).toUpperCase()}const $2=Gw([Vw,w2,Xw,Yw,Qw],"html");Gw([Vw,k2,Xw,Yw,Qw],"svg");const yp=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],S2=["p","h1","h2","h3","h4","h5","h6","li"];function hi(e,t){return e.type===t||typeof e.type=="object"&&e.type.tag===t||e.tag===t}function _p(e){return hi(e,"text")||hi(e,Symbol.for("v-txt"))}function ek(e){var t;return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof((t=e.children)==null?void 0:t.default)=="function"?e.children.default():[]}function yi(e){if(!e)return"";if(Array.isArray(e))return e.map(yi).join("");if(_p(e))return e.value||e.children||"";const t=ek(e);return Array.isArray(t)?t.map(yi).filter(Boolean).join(""):""}function tk(e,t=[]){if(Array.isArray(e))return e.flatMap(a=>tk(a,t));let n=e;return t.some(a=>a==="*"||hi(e,a))&&(n=ek(e)||e,!Array.isArray(n)&&S2.some(a=>hi(e,a))&&(n=[n])),n}function nk(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(n=>nk(tk(n,[t[0]]),t.slice(1))).filter(n=>!(_p(n)&&yi(n).trim()==="")):e}function ak(e,t=[]){return typeof t=="string"&&(t=t.split(/[,\s]/).map(n=>n.trim()).filter(Boolean)),t.length?nk(e,t).reduce((n,a)=>(_p(a)?typeof n[n.length-1]=="string"?n[n.length-1]+=a.children:n.push(a.children):n.push(a),n),[]):e}function E2(e,t){return t.reduce((n,a)=>{const i=j2(e,a);return i!==void 0&&(n[a]=i),n},{})}function j2(e,t){return t.split(".").reduce((n,a)=>n&&n[a],e)}const wp="default",ik=/^@|^v-on:/,rk=/^:|^v-bind:/,T2=/^v-model/,Z2=["select","textarea","input"],q2=["math","svg"],N2=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(e=>[e,`prose-${e}`])),F2=c.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(e){var m,p,d,u,g,_,y;const t=(p=(m=c.getCurrentInstance())==null?void 0:m.appContext)==null?void 0:p.app,n=t==null?void 0:t.$nuxt,a=(n==null?void 0:n.$route)||(n==null?void 0:n._route),{mdc:i}=((d=n==null?void 0:n.$config)==null?void 0:d.public)||{},r={...(u=i==null?void 0:i.components)!=null&&u.prose&&e.prose!==!1?N2:{},...((g=i==null?void 0:i.components)==null?void 0:g.map)||{},...c.toRaw(((y=(_=e.data)==null?void 0:_.mdc)==null?void 0:y.components)||{}),...e.components},o=c.computed(()=>{var b;const f=(((b=e.body)==null?void 0:b.children)||[]).map(h=>h.tag||h.type).filter(h=>!yp.includes(h));return Array.from(new Set(f)).sort().join(".")}),s=c.reactive({...e.data});c.watch(()=>e.data,f=>{Object.assign(s,f)}),await W2(e.body,{tags:r});function l(f,b){const h=f.split(".").length-1;return f.split(".").reduce((k,w,v)=>v==h&&k?(k[w]=b,k[w]):typeof k=="object"?k[w]:void 0,s)}return{tags:r,contentKey:o,route:a,runtimeData:s,updateRuntimeData:l}},render(e){var g,_;const{tags:t,tag:n,body:a,data:i,contentKey:r,route:o,unwrap:s,runtimeData:l,updateRuntimeData:m}=e;if(!a)return null;const p={...i,tags:t,$route:o,runtimeData:l,updateRuntimeData:m},d=n!==!1?kp(n||((g=p.component)==null?void 0:g.name)||p.component||"div"):void 0;return d?c.h(d,{...(_=p.component)==null?void 0:_.props,class:e.class,...this.$attrs,key:r},{default:u}):u==null?void 0:u();function u(){const y=ok(a,c.h,{documentMeta:p,parentScope:p,resolveComponent:kp});return y!=null&&y.default?s?ak(y.default(),typeof s=="string"?s.split(" "):["*"]):y.default():null}}});function L2(e,t,n){const{documentMeta:a,parentScope:i,resolveComponent:r}=n;if(e.type==="text")return t(c.Text,e.value);if(e.type==="comment")return t(c.Comment,null,e.value);const o=e.tag,s=ck(e,a.tags);if(e.tag==="binding")return P2(e,t,a,i);const l=sk(s)?d=>d:r;if(s==="script")return t("pre",{class:"script-to-pre"},`<script>
|