@kestra-io/ui-libs 0.0.249 → 0.0.251
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/plugins/PluginIndex.vue.d.ts +1 -0
- package/dist/components/plugins/PluginIndex.vue.d.ts.map +1 -1
- package/dist/{index-Btqd6xqX.cjs → index-BxbuvsFe.cjs} +12 -12
- package/dist/{index-Btqd6xqX.cjs.map → index-BxbuvsFe.cjs.map} +1 -1
- package/dist/{index-DD-eCpul.js → index-Cw0jnbSC.js} +740 -739
- package/dist/{index-DD-eCpul.js.map → index-Cw0jnbSC.js.map} +1 -1
- package/dist/kestra-index.cjs.js +1 -1
- package/dist/kestra-index.es.js +1 -1
- package/dist/{shikiToolset-JFZHkI0W.cjs → shikiToolset-CEIFqfnA.cjs} +2 -2
- package/dist/{shikiToolset-JFZHkI0W.cjs.map → shikiToolset-CEIFqfnA.cjs.map} +1 -1
- package/dist/{shikiToolset-OJfgApPL.js → shikiToolset-D9uEaauu.js} +2 -2
- package/dist/{shikiToolset-OJfgApPL.js.map → shikiToolset-D9uEaauu.js.map} +1 -1
- package/dist/ui-libs.css +1 -1
- package/package.json +1 -1
- package/src/components/plugins/PluginIndex.vue +3 -1
- package/src/scss/ks-theme-dark.scss +1 -0
- package/src/scss/ks-theme-light.scss +1 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
"use strict";var or=Object.create;var jn=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var rr=Object.getOwnPropertyNames;var ar=Object.getPrototypeOf,ir=Object.prototype.hasOwnProperty;var sr=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of rr(n))!ir.call(e,a)&&a!==o&&jn(e,a,{get:()=>n[a],enumerable:!(l=lr(n,a))||l.enumerable});return e};var cr=(e,n,o)=>(o=e!=null?or(ar(e)):{},sr(n||!e||!e.__esModule?jn(o,"default",{value:e,enumerable:!0}):o,e));const Ge=require("yaml"),w=require("./VueFlowUtils-BhZNyVgG.cjs"),G=require("./FlowYamlUtils-CB_0RSKT.cjs"),t=require("vue"),ne=require("@vue-flow/core"),Qt=require("@vue-flow/controls"),en=require("moment"),ur=require("@popperjs/core"),bn=require("vue-router"),dr={lineWidth:0},Kn=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],fr={stringify:G.stringify,parse:G.parse,pairsToMap:G.pairsToMap,extractTask(e,n){for(const o of Kn){const l=G.extractBlock({source:e,section:o,key:n});if(l)return l}},_extractTask(e,n,o){function l(r){if(r){if(r instanceof Ge.YAMLMap&&r.get("type")!==void 0&&n===r.get("id"))return o?o(r):r;if(r.items)for(const[i,s]of r.items.entries()){let c;if(s instanceof Ge.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(r instanceof Ge.YAMLMap?r.set(s.key.value,c):r.items[i]=c),!o&&c))return c}}}const a=l(e.contents);if(a!==void 0)return o?new Ge.Document(a):new Ge.Document(a)},replaceTaskInDocument(e,n,o,l="tasks",a="id"){return G.replaceBlockInDocument({source:e,section:l,keyName:a,key:n,newContent:o})},sort:G.sort,getAllCharts:G.getAllCharts,getChartAtPosition:G.getChartAtPosition,localizeElementAtIndex:G.localizeElementAtIndex,getTaskType:G.getTypeAtPosition,swapTasks(e,n,o){const l=Ge.parseDocument(e),a=this._extractTask(l,n),r=this._extractTask(l,o);return Ge.visit(l,{Pair(i,s){if(s.key.value==="dependsOn"&&s.value.items.map(c=>c.value).includes(o))throw{message:"dependency task",messageOptions:{taskId:o}}}}),this._extractTask(l,n,()=>r),this._extractTask(l,o,()=>a),l.toString(dr)},insertTask(e,n,o,l,a){return G.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:a})},insertSection(e,n,o){return G.insertBlock({source:n,section:e,newBlock:o})},insertErrorInFlowable:G.insertErrorInFlowable,deleteSection(e,n,o){return G.deleteBlock({source:e,section:n,key:o})},deleteTask(e,n,o){return(o===w.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((a,r)=>G.deleteBlock({source:a,section:r,key:n}),e)},getLastTask(e,n){return G.getLastBlock({source:e,section:"tasks",parentKey:n})},checkTaskAlreadyExist(e,n){return G.checkBlockAlreadyExists({source:e,section:"tasks",newContent:n,keyName:"id"})},isParentChildrenRelation(e,n,o){return G.isParentChildrenRelation({source:e,sections:Kn,key1:n,key2:o,keyName:"id"})},replaceIdAndNamespace:G.replaceIdAndNamespace,updateMetadata:G.updateMetadata,cleanMetadata:G.cleanMetadata,getMetadata:G.getMetadata,deleteMetadata:G.deleteMetadata,flowHaveTasks:G.flowHaveTasks,extractPluginDefault:G.extractPluginDefault,replacePluginDefaultsInDocument:G.replacePluginDefaultsInDocument,deletePluginDefaults:G.deletePluginDefaults,extractFieldFromMaps:G.extractFieldFromMaps,getVersionAtPosition:G.getVersionAtPosition},Ce=e=>{const n=document.querySelector(":root");return(n?getComputedStyle(n):null)?.getPropertyValue(e)};var mr=w.requireMapValues();const kt=G.getDefaultExportFromCjs(mr),$=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},pr={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gr=["aria-hidden","aria-label"],hr=["fill","width","height"],Er={d:"M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},_r={key:0};function kr(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Er,[o.title?(t.openBlock(),t.createElementBlock("title",_r,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,hr))],16,gr)}const Yn=$(pr,[["render",kr]]),yr={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cr=["aria-hidden","aria-label"],vr=["fill","width","height"],Nr={d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"},Sr={key:0};function br(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Nr,[o.title?(t.openBlock(),t.createElementBlock("title",Sr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,vr))],16,Cr)}const Lr=$(yr,[["render",br]]),wr={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tr=["aria-hidden","aria-label"],Ar=["fill","width","height"],Ir={d:"M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Vr={key:0};function Br(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ir,[o.title?(t.openBlock(),t.createElementBlock("title",Vr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ar))],16,Tr)}const Or=$(wr,[["render",Br]]),Dr={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$r=["aria-hidden","aria-label"],Pr=["fill","width","height"],Rr={d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},Mr={key:0};function xr(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon close-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Rr,[o.title?(t.openBlock(),t.createElementBlock("title",Mr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Pr))],16,$r)}const an=$(Dr,[["render",xr]]),Fr={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ur=["aria-hidden","aria-label"],Hr=["fill","width","height"],zr={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9"},Gr={key:0};function Wr(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",zr,[o.title?(t.openBlock(),t.createElementBlock("title",Gr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Hr))],16,Ur)}const jr=$(Fr,[["render",Wr]]),Kr={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yr=["aria-hidden","aria-label"],qr=["fill","width","height"],Xr={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M8,8H10V16H8M16,8V16L11,12"},Zr={key:0};function Jr(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xr,[o.title?(t.openBlock(),t.createElementBlock("title",Zr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qr))],16,Yr)}const Qr=$(Kr,[["render",Jr]]),ea={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ta=["aria-hidden","aria-label"],na=["fill","width","height"],oa={d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},la={key:0};function ra(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",oa,[o.title?(t.openBlock(),t.createElementBlock("title",la,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,na))],16,ta)}const Tt=$(ea,[["render",ra]]),aa={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ia=["aria-hidden","aria-label"],sa=["fill","width","height"],ca={d:"M2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12M10.5,12A1.5,1.5 0 0,0 12,13.5A1.5,1.5 0 0,0 13.5,12A1.5,1.5 0 0,0 12,10.5A1.5,1.5 0 0,0 10.5,12M10.5,17.5A1.5,1.5 0 0,0 12,19A1.5,1.5 0 0,0 13.5,17.5A1.5,1.5 0 0,0 12,16A1.5,1.5 0 0,0 10.5,17.5M10.5,6.5A1.5,1.5 0 0,0 12,8A1.5,1.5 0 0,0 13.5,6.5A1.5,1.5 0 0,0 12,5A1.5,1.5 0 0,0 10.5,6.5Z"},ua={key:0};function da(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ca,[o.title?(t.openBlock(),t.createElementBlock("title",ua,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,sa))],16,ia)}const fa=$(aa,[["render",da]]),ma={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pa=["aria-hidden","aria-label"],ga=["fill","width","height"],ha={d:"M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7M9 9H11V15H9M13 9H15V15H13"},Ea={key:0};function _a(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon motion-pause-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ha,[o.title?(t.openBlock(),t.createElementBlock("title",Ea,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ga))],16,pa)}const ka=$(ma,[["render",_a]]),ya={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ca=["aria-hidden","aria-label"],va=["fill","width","height"],Na={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},Sa={key:0};function ba(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon refresh-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Na,[o.title?(t.openBlock(),t.createElementBlock("title",Sa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,va))],16,Ca)}const qn=$(ya,[["render",ba]]),La={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wa=["aria-hidden","aria-label"],Ta=["fill","width","height"],Aa={d:"M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z"},Ia={key:0};function Va(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon cancel-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Aa,[o.title?(t.openBlock(),t.createElementBlock("title",Ia,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ta))],16,wa)}const Xn=$(La,[["render",Va]]),z=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:fa,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:Qr,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:Lr,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:Or,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:an,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:jr,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:Tt,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:an,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:Yn,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:Xn,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:Xn,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:ka,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:qn,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:qn,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:Yn,isRunning:!1,isKillable:!1,isFailed:!1}});class te{static get CREATED(){return z.CREATED.name}static get RESTARTED(){return z.RESTARTED.name}static get SUCCESS(){return z.SUCCESS.name}static get RUNNING(){return z.RUNNING.name}static get KILLING(){return z.KILLING.name}static get KILLED(){return z.KILLED.name}static get FAILED(){return z.FAILED.name}static get WARNING(){return z.WARNING.name}static get PAUSED(){return z.PAUSED.name}static get CANCELLED(){return z.CANCELLED.name}static get SKIPPED(){return z.SKIPPED.name}static get QUEUED(){return z.QUEUED.name}static get RETRYING(){return z.RETRYING.name}static get RETRIED(){return z.RETRIED.name}static get BREAKPOINT(){return z.BREAKPOINT.name}static isRunning(n){return z[n]&&z[n].isRunning}static isKillable(n){return z[n]&&z[n].isKillable}static isPaused(n){return z[n]&&z[n]===z.PAUSED}static isFailed(n){return z[n]&&z[n].isFailed}static isQueued(n){return z[n]&&z[n]===z.QUEUED}static allStates(){return kt(z,n=>({key:n.name,icon:n.icon,color:""}))}static arrayAllStates(){return Object.values(z)}static colorClass(){return kt(z,n=>n.colorClass)}static color(){return kt(z,n=>Ce("--bs-"+n.colorClass))}static getStateColor(n){return z[n].color}static icon(){return kt(z,n=>n.icon)}static getTerminatedStates(){return Object.values(z).filter(n=>!n.isRunning).map(n=>n.name)}}let yt;async function Ba(){if(yt)return yt;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-BSBsFUCO.cjs")).then(o=>o.useMarkdownParser);return yt=await(e.default??e)(),yt}var Lt={exports:{}},Oa=Lt.exports,Zn;function Da(){return Zn||(Zn=1,(function(e,n){(function(o,l,a){e.exports=a(),e.exports.default=a()})("slugify",Oa,function(){var o=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),l=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function a(r,i){if(typeof r!="string")throw new Error("slugify: string argument expected");i=typeof i=="string"?{replacement:i}:i||{};var s=l[i.locale]||{},c=i.replacement===void 0?"-":i.replacement,u=i.trim===void 0?!0:i.trim,p=r.normalize().split("").reduce(function(E,h){var _=s[h];return _===void 0&&(_=o[h]),_===void 0&&(_=h),_===c&&(_=" "),E+_.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(p=p.replace(/[^A-Za-z0-9\s]/g,"")),u&&(p=p.trim()),p=p.replace(/\s+/g,c),i.lower&&(p=p.toLowerCase()),p}return a.extend=function(r){Object.assign(o,r)},a})})(Lt)),Lt.exports}var $a=Da();const xo=G.getDefaultExportFromCjs($a);xo.extend({"(":"-",")":""});function We(e){return xo(e,{lower:!0,locale:"en"})}function Fo(e,n){return Array.isArray(n)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(n.length===0||n[0]?.cls!==void 0)}function et(e){const n=e.title.replace(/\.([a-zA-Z])/g,(o,l)=>` ${l.toUpperCase()}`);return n.charAt(0).toUpperCase()+n.slice(1)}const Pa={name:"DotsCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ra=["aria-hidden","aria-label"],Ma=["fill","width","height"],xa={d:"M12 19C13.1 19 14 19.9 14 21S13.1 23 12 23 10 22.1 10 21 10.9 19 12 19M12 1C13.1 1 14 1.9 14 3S13.1 5 12 5 10 4.1 10 3 10.9 1 12 1M6 16C7.1 16 8 16.9 8 18S7.1 20 6 20 4 19.1 4 18 4.9 16 6 16M3 10C4.1 10 5 10.9 5 12S4.1 14 3 14 1 13.1 1 12 1.9 10 3 10M6 4C7.1 4 8 4.9 8 6S7.1 8 6 8 4 7.1 4 6 4.9 4 6 4M18 16C19.1 16 20 16.9 20 18S19.1 20 18 20 16 19.1 16 18 16.9 16 18 16M21 10C22.1 10 23 10.9 23 12S22.1 14 21 14 19 13.1 19 12 19.9 10 21 10M18 4C19.1 4 20 4.9 20 6S19.1 8 18 8 16 7.1 16 6 16.9 4 18 4Z"},Fa={key:0};function Ua(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon dots-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",xa,[o.title?(t.openBlock(),t.createElementBlock("title",Fa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ma))],16,Ra)}const Ha=$(Pa,[["render",Ua]]),za=t.defineComponent({__name:"RotatingDots",props:{alt:{}},setup(e){return(n,o)=>(t.openBlock(),t.createBlock(Ha,{class:"loading-dots-circle",alt:n.alt},null,8,["alt"]))}}),Uo=$(za,[["__scopeId","data-v-a7ad4137"]]);/*!
|
|
1
|
+
"use strict";var or=Object.create;var jn=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var rr=Object.getOwnPropertyNames;var ar=Object.getPrototypeOf,ir=Object.prototype.hasOwnProperty;var sr=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of rr(n))!ir.call(e,a)&&a!==o&&jn(e,a,{get:()=>n[a],enumerable:!(l=lr(n,a))||l.enumerable});return e};var cr=(e,n,o)=>(o=e!=null?or(ar(e)):{},sr(n||!e||!e.__esModule?jn(o,"default",{value:e,enumerable:!0}):o,e));const Ge=require("yaml"),w=require("./VueFlowUtils-BhZNyVgG.cjs"),G=require("./FlowYamlUtils-CB_0RSKT.cjs"),t=require("vue"),ne=require("@vue-flow/core"),Qt=require("@vue-flow/controls"),en=require("moment"),ur=require("@popperjs/core"),bn=require("vue-router"),dr={lineWidth:0},Kn=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],fr={stringify:G.stringify,parse:G.parse,pairsToMap:G.pairsToMap,extractTask(e,n){for(const o of Kn){const l=G.extractBlock({source:e,section:o,key:n});if(l)return l}},_extractTask(e,n,o){function l(r){if(r){if(r instanceof Ge.YAMLMap&&r.get("type")!==void 0&&n===r.get("id"))return o?o(r):r;if(r.items)for(const[i,s]of r.items.entries()){let c;if(s instanceof Ge.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(r instanceof Ge.YAMLMap?r.set(s.key.value,c):r.items[i]=c),!o&&c))return c}}}const a=l(e.contents);if(a!==void 0)return o?new Ge.Document(a):new Ge.Document(a)},replaceTaskInDocument(e,n,o,l="tasks",a="id"){return G.replaceBlockInDocument({source:e,section:l,keyName:a,key:n,newContent:o})},sort:G.sort,getAllCharts:G.getAllCharts,getChartAtPosition:G.getChartAtPosition,localizeElementAtIndex:G.localizeElementAtIndex,getTaskType:G.getTypeAtPosition,swapTasks(e,n,o){const l=Ge.parseDocument(e),a=this._extractTask(l,n),r=this._extractTask(l,o);return Ge.visit(l,{Pair(i,s){if(s.key.value==="dependsOn"&&s.value.items.map(c=>c.value).includes(o))throw{message:"dependency task",messageOptions:{taskId:o}}}}),this._extractTask(l,n,()=>r),this._extractTask(l,o,()=>a),l.toString(dr)},insertTask(e,n,o,l,a){return G.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:a})},insertSection(e,n,o){return G.insertBlock({source:n,section:e,newBlock:o})},insertErrorInFlowable:G.insertErrorInFlowable,deleteSection(e,n,o){return G.deleteBlock({source:e,section:n,key:o})},deleteTask(e,n,o){return(o===w.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((a,r)=>G.deleteBlock({source:a,section:r,key:n}),e)},getLastTask(e,n){return G.getLastBlock({source:e,section:"tasks",parentKey:n})},checkTaskAlreadyExist(e,n){return G.checkBlockAlreadyExists({source:e,section:"tasks",newContent:n,keyName:"id"})},isParentChildrenRelation(e,n,o){return G.isParentChildrenRelation({source:e,sections:Kn,key1:n,key2:o,keyName:"id"})},replaceIdAndNamespace:G.replaceIdAndNamespace,updateMetadata:G.updateMetadata,cleanMetadata:G.cleanMetadata,getMetadata:G.getMetadata,deleteMetadata:G.deleteMetadata,flowHaveTasks:G.flowHaveTasks,extractPluginDefault:G.extractPluginDefault,replacePluginDefaultsInDocument:G.replacePluginDefaultsInDocument,deletePluginDefaults:G.deletePluginDefaults,extractFieldFromMaps:G.extractFieldFromMaps,getVersionAtPosition:G.getVersionAtPosition},Ce=e=>{const n=document.querySelector(":root");return(n?getComputedStyle(n):null)?.getPropertyValue(e)};var mr=w.requireMapValues();const kt=G.getDefaultExportFromCjs(mr),P=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},pr={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gr=["aria-hidden","aria-label"],hr=["fill","width","height"],Er={d:"M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},_r={key:0};function kr(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Er,[o.title?(t.openBlock(),t.createElementBlock("title",_r,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,hr))],16,gr)}const Yn=P(pr,[["render",kr]]),yr={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cr=["aria-hidden","aria-label"],vr=["fill","width","height"],Nr={d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"},Sr={key:0};function br(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Nr,[o.title?(t.openBlock(),t.createElementBlock("title",Sr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,vr))],16,Cr)}const Lr=P(yr,[["render",br]]),wr={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tr=["aria-hidden","aria-label"],Ar=["fill","width","height"],Ir={d:"M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Vr={key:0};function Br(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ir,[o.title?(t.openBlock(),t.createElementBlock("title",Vr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ar))],16,Tr)}const Or=P(wr,[["render",Br]]),Dr={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Pr=["aria-hidden","aria-label"],$r=["fill","width","height"],Rr={d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},Mr={key:0};function xr(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon close-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Rr,[o.title?(t.openBlock(),t.createElementBlock("title",Mr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,$r))],16,Pr)}const an=P(Dr,[["render",xr]]),Fr={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ur=["aria-hidden","aria-label"],Hr=["fill","width","height"],zr={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9"},Gr={key:0};function Wr(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",zr,[o.title?(t.openBlock(),t.createElementBlock("title",Gr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Hr))],16,Ur)}const jr=P(Fr,[["render",Wr]]),Kr={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yr=["aria-hidden","aria-label"],qr=["fill","width","height"],Xr={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M8,8H10V16H8M16,8V16L11,12"},Zr={key:0};function Jr(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xr,[o.title?(t.openBlock(),t.createElementBlock("title",Zr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qr))],16,Yr)}const Qr=P(Kr,[["render",Jr]]),ea={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ta=["aria-hidden","aria-label"],na=["fill","width","height"],oa={d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},la={key:0};function ra(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",oa,[o.title?(t.openBlock(),t.createElementBlock("title",la,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,na))],16,ta)}const Tt=P(ea,[["render",ra]]),aa={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ia=["aria-hidden","aria-label"],sa=["fill","width","height"],ca={d:"M2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12M10.5,12A1.5,1.5 0 0,0 12,13.5A1.5,1.5 0 0,0 13.5,12A1.5,1.5 0 0,0 12,10.5A1.5,1.5 0 0,0 10.5,12M10.5,17.5A1.5,1.5 0 0,0 12,19A1.5,1.5 0 0,0 13.5,17.5A1.5,1.5 0 0,0 12,16A1.5,1.5 0 0,0 10.5,17.5M10.5,6.5A1.5,1.5 0 0,0 12,8A1.5,1.5 0 0,0 13.5,6.5A1.5,1.5 0 0,0 12,5A1.5,1.5 0 0,0 10.5,6.5Z"},ua={key:0};function da(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ca,[o.title?(t.openBlock(),t.createElementBlock("title",ua,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,sa))],16,ia)}const fa=P(aa,[["render",da]]),ma={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pa=["aria-hidden","aria-label"],ga=["fill","width","height"],ha={d:"M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7M9 9H11V15H9M13 9H15V15H13"},Ea={key:0};function _a(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon motion-pause-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ha,[o.title?(t.openBlock(),t.createElementBlock("title",Ea,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ga))],16,pa)}const ka=P(ma,[["render",_a]]),ya={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ca=["aria-hidden","aria-label"],va=["fill","width","height"],Na={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},Sa={key:0};function ba(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon refresh-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Na,[o.title?(t.openBlock(),t.createElementBlock("title",Sa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,va))],16,Ca)}const qn=P(ya,[["render",ba]]),La={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wa=["aria-hidden","aria-label"],Ta=["fill","width","height"],Aa={d:"M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z"},Ia={key:0};function Va(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon cancel-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Aa,[o.title?(t.openBlock(),t.createElementBlock("title",Ia,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ta))],16,wa)}const Xn=P(La,[["render",Va]]),z=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:fa,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:Qr,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:Lr,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:Or,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:an,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:jr,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:Tt,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:an,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:Yn,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:Xn,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:Xn,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:ka,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:qn,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:qn,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:Yn,isRunning:!1,isKillable:!1,isFailed:!1}});class te{static get CREATED(){return z.CREATED.name}static get RESTARTED(){return z.RESTARTED.name}static get SUCCESS(){return z.SUCCESS.name}static get RUNNING(){return z.RUNNING.name}static get KILLING(){return z.KILLING.name}static get KILLED(){return z.KILLED.name}static get FAILED(){return z.FAILED.name}static get WARNING(){return z.WARNING.name}static get PAUSED(){return z.PAUSED.name}static get CANCELLED(){return z.CANCELLED.name}static get SKIPPED(){return z.SKIPPED.name}static get QUEUED(){return z.QUEUED.name}static get RETRYING(){return z.RETRYING.name}static get RETRIED(){return z.RETRIED.name}static get BREAKPOINT(){return z.BREAKPOINT.name}static isRunning(n){return z[n]&&z[n].isRunning}static isKillable(n){return z[n]&&z[n].isKillable}static isPaused(n){return z[n]&&z[n]===z.PAUSED}static isFailed(n){return z[n]&&z[n].isFailed}static isQueued(n){return z[n]&&z[n]===z.QUEUED}static allStates(){return kt(z,n=>({key:n.name,icon:n.icon,color:""}))}static arrayAllStates(){return Object.values(z)}static colorClass(){return kt(z,n=>n.colorClass)}static color(){return kt(z,n=>Ce("--bs-"+n.colorClass))}static getStateColor(n){return z[n].color}static icon(){return kt(z,n=>n.icon)}static getTerminatedStates(){return Object.values(z).filter(n=>!n.isRunning).map(n=>n.name)}}let yt;async function Ba(){if(yt)return yt;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-BSBsFUCO.cjs")).then(o=>o.useMarkdownParser);return yt=await(e.default??e)(),yt}var Lt={exports:{}},Oa=Lt.exports,Zn;function Da(){return Zn||(Zn=1,(function(e,n){(function(o,l,a){e.exports=a(),e.exports.default=a()})("slugify",Oa,function(){var o=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),l=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function a(r,i){if(typeof r!="string")throw new Error("slugify: string argument expected");i=typeof i=="string"?{replacement:i}:i||{};var s=l[i.locale]||{},c=i.replacement===void 0?"-":i.replacement,u=i.trim===void 0?!0:i.trim,g=r.normalize().split("").reduce(function(_,p){var E=s[p];return E===void 0&&(E=o[p]),E===void 0&&(E=p),E===c&&(E=" "),_+E.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(g=g.replace(/[^A-Za-z0-9\s]/g,"")),u&&(g=g.trim()),g=g.replace(/\s+/g,c),i.lower&&(g=g.toLowerCase()),g}return a.extend=function(r){Object.assign(o,r)},a})})(Lt)),Lt.exports}var Pa=Da();const xo=G.getDefaultExportFromCjs(Pa);xo.extend({"(":"-",")":""});function We(e){return xo(e,{lower:!0,locale:"en"})}function Fo(e,n){return Array.isArray(n)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(n.length===0||n[0]?.cls!==void 0)}function et(e){const n=e.title.replace(/\.([a-zA-Z])/g,(o,l)=>` ${l.toUpperCase()}`);return n.charAt(0).toUpperCase()+n.slice(1)}const $a={name:"DotsCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ra=["aria-hidden","aria-label"],Ma=["fill","width","height"],xa={d:"M12 19C13.1 19 14 19.9 14 21S13.1 23 12 23 10 22.1 10 21 10.9 19 12 19M12 1C13.1 1 14 1.9 14 3S13.1 5 12 5 10 4.1 10 3 10.9 1 12 1M6 16C7.1 16 8 16.9 8 18S7.1 20 6 20 4 19.1 4 18 4.9 16 6 16M3 10C4.1 10 5 10.9 5 12S4.1 14 3 14 1 13.1 1 12 1.9 10 3 10M6 4C7.1 4 8 4.9 8 6S7.1 8 6 8 4 7.1 4 6 4.9 4 6 4M18 16C19.1 16 20 16.9 20 18S19.1 20 18 20 16 19.1 16 18 16.9 16 18 16M21 10C22.1 10 23 10.9 23 12S22.1 14 21 14 19 13.1 19 12 19.9 10 21 10M18 4C19.1 4 20 4.9 20 6S19.1 8 18 8 16 7.1 16 6 16.9 4 18 4Z"},Fa={key:0};function Ua(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon dots-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",xa,[o.title?(t.openBlock(),t.createElementBlock("title",Fa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ma))],16,Ra)}const Ha=P($a,[["render",Ua]]),za=t.defineComponent({__name:"RotatingDots",props:{alt:{}},setup(e){return(n,o)=>(t.openBlock(),t.createBlock(Ha,{class:"loading-dots-circle",alt:n.alt},null,8,["alt"]))}}),Uo=P(za,[["__scopeId","data-v-a7ad4137"]]);/*!
|
|
2
2
|
* shared v11.1.12
|
|
3
3
|
* (c) 2025 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
5
|
-
*/function Ae(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}const Jn={};function Ga(e){Jn[e]||(Jn[e]=!0,Ae(e))}const De=typeof window<"u";let ve,Ke;if(process.env.NODE_ENV!=="production"){const e=De&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ve=n=>{e.mark(n)},Ke=(n,o,l)=>{e.measure(n,o,l),e.clearMarks(o),e.clearMarks(l)})}const Wa=/\{([0-9a-zA-Z]+)\}/g;function Mt(e,...n){return n.length===1&&K(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),e.replace(Wa,(o,l)=>n.hasOwnProperty(l)?n[l]:"")}const
|
|
5
|
+
*/function Ae(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}const Jn={};function Ga(e){Jn[e]||(Jn[e]=!0,Ae(e))}const De=typeof window<"u";let ve,Ke;if(process.env.NODE_ENV!=="production"){const e=De&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ve=n=>{e.mark(n)},Ke=(n,o,l)=>{e.measure(n,o,l),e.clearMarks(o),e.clearMarks(l)})}const Wa=/\{([0-9a-zA-Z]+)\}/g;function Mt(e,...n){return n.length===1&&K(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),e.replace(Wa,(o,l)=>n.hasOwnProperty(l)?n[l]:"")}const Pe=(e,n=!1)=>n?Symbol.for(e):Symbol(e),ja=(e,n,o)=>Ka({l:e,k:n,s:o}),Ka=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ce=e=>typeof e=="number"&&isFinite(e),Ya=e=>Ln(e)==="[object Date]",At=e=>Ln(e)==="[object RegExp]",xt=e=>j(e)&&Object.keys(e).length===0,ue=Object.assign,qa=Object.create,X=(e=null)=>qa(e);let Qn;const je=()=>Qn||(Qn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:X());function eo(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function to(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Xa(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(l,a,r)=>`${a}="${to(r)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(l,a,r)=>`${a}='${to(r)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Ae("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(l=>{e=e.replace(l,"$1javascript:")}),e}const Za=Object.prototype.hasOwnProperty;function Se(e,n){return Za.call(e,n)}const ie=Array.isArray,ee=e=>typeof e=="function",O=e=>typeof e=="string",ae=e=>typeof e=="boolean",K=e=>e!==null&&typeof e=="object",Ja=e=>K(e)&&ee(e.then)&&ee(e.catch),Ho=Object.prototype.toString,Ln=e=>Ho.call(e),j=e=>Ln(e)==="[object Object]",Qa=e=>e==null?"":ie(e)||j(e)&&e.toString===Ho?JSON.stringify(e,null,2):String(e);function wn(e,n=""){return e.reduce((o,l,a)=>a===0?o+l:o+n+l,"")}const no=2;function ei(e,n=0,o=e.length){const l=e.split(/\r?\n/);let a=0;const r=[];for(let i=0;i<l.length;i++)if(a+=l[i].length+1,a>=n){for(let s=i-no;s<=i+no||o>a;s++){if(s<0||s>=l.length)continue;const c=s+1;r.push(`${c}${" ".repeat(3-String(c).length)}| ${l[s]}`);const u=l[s].length;if(s===i){const g=n-(a-u)+1,_=Math.max(1,o>a?u-g:o-n);r.push(" | "+" ".repeat(g)+"^".repeat(_))}else if(s>i){if(o>a){const g=Math.max(Math.min(o-a,u),1);r.push(" | "+"^".repeat(g))}a+=u+1}}break}return r.join(`
|
|
6
6
|
`)}function ti(){const e=new Map;return{events:e,on(o,l){const a=e.get(o);a&&a.push(l)||e.set(o,[l])},off(o,l){const a=e.get(o);a&&a.splice(a.indexOf(l)>>>0,1)},emit(o,l){(e.get(o)||[]).slice().map(a=>a(l)),(e.get("*")||[]).slice().map(a=>a(o,l))}}}const Ct=e=>!K(e)||ie(e);function wt(e,n){if(Ct(e)||Ct(n))throw new Error("Invalid value");const o=[{src:e,des:n}];for(;o.length;){const{src:l,des:a}=o.pop();Object.keys(l).forEach(r=>{r!=="__proto__"&&(K(l[r])&&!K(a[r])&&(a[r]=Array.isArray(l[r])?[]:X()),Ct(a[r])||Ct(l[r])?a[r]=l[r]:o.push({src:l[r],des:a[r]}))})}}/*!
|
|
7
7
|
* message-compiler v11.1.12
|
|
8
8
|
* (c) 2025 kazuya kawaguchi
|
|
9
9
|
* Released under the MIT License.
|
|
10
10
|
*/function ni(e,n,o){return{line:e,column:n,offset:o}}function sn(e,n,o){return{start:e,end:n}}const M={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},oi=17,li={[M.EXPECTED_TOKEN]:"Expected token: '{0}'",[M.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[M.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[M.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[M.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[M.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[M.EMPTY_PLACEHOLDER]:"Empty placeholder",[M.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[M.INVALID_LINKED_FORMAT]:"Invalid linked format",[M.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[M.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[M.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[M.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[M.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function lt(e,n,o={}){const{domain:l,messages:a,args:r}=o,i=process.env.NODE_ENV!=="production"?Mt((a||li)[e]||"",...r||[]):e,s=new SyntaxError(String(i));return s.code=e,n&&(s.location=n),s.domain=l,s}function ri(e){throw e}const ai=/<\/?[\w\s="/.':;#-\/]+>/,ii=e=>ai.test(e),Le=" ",si="\r",me=`
|
|
11
|
-
`,ci="\u2028",ui="\u2029";function di(e){const n=e;let o=0,l=1,a=1,r=0;const i=v=>n[v]===si&&n[v+1]===me,s=v=>n[v]===me,c=v=>n[v]===ui,u=v=>n[v]===ci,p=v=>i(v)||s(v)||c(v)||u(v),E=()=>o,h=()=>l,_=()=>a,B=()=>r,S=v=>i(v)||c(v)||u(v)?me:n[v],C=()=>S(o),m=()=>S(o+r);function k(){return r=0,p(o)&&(l++,a=0),i(o)&&o++,o++,a++,n[o]}function b(){return i(o+r)&&r++,r++,n[o+r]}function g(){o=0,l=1,a=1,r=0}function I(v=0){r=v}function L(){const v=o+r;for(;v!==o;)k();r=0}return{index:E,line:h,column:_,peekOffset:B,charAt:S,currentChar:C,currentPeek:m,next:k,peek:b,reset:g,resetPeek:I,skipToPeek:L}}const Ve=void 0,fi=".",oo="'",mi="tokenizer";function pi(e,n={}){const o=n.location!==!1,l=di(e),a=()=>l.index(),r=()=>ni(l.line(),l.column(),l.index()),i=r(),s=a(),c={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:p}=n;function E(d,f,N,...D){const Q=u();if(f.column+=N,f.offset+=N,p){const le=o?sn(Q.startLoc,f):null,W=lt(d,le,{domain:mi,args:D});p(W)}}function h(d,f,N){d.endLoc=r(),d.currentType=f;const D={type:f};return o&&(D.loc=sn(d.startLoc,d.endLoc)),N!=null&&(D.value=N),D}const _=d=>h(d,13);function B(d,f){return d.currentChar()===f?(d.next(),f):(E(M.EXPECTED_TOKEN,r(),0,f),"")}function S(d){let f="";for(;d.currentPeek()===Le||d.currentPeek()===me;)f+=d.currentPeek(),d.peek();return f}function C(d){const f=S(d);return d.skipToPeek(),f}function m(d){if(d===Ve)return!1;const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function k(d){if(d===Ve)return!1;const f=d.charCodeAt(0);return f>=48&&f<=57}function b(d,f){const{currentType:N}=f;if(N!==2)return!1;S(d);const D=m(d.currentPeek());return d.resetPeek(),D}function g(d,f){const{currentType:N}=f;if(N!==2)return!1;S(d);const D=d.currentPeek()==="-"?d.peek():d.currentPeek(),Q=k(D);return d.resetPeek(),Q}function I(d,f){const{currentType:N}=f;if(N!==2)return!1;S(d);const D=d.currentPeek()===oo;return d.resetPeek(),D}function L(d,f){const{currentType:N}=f;if(N!==7)return!1;S(d);const D=d.currentPeek()===".";return d.resetPeek(),D}function v(d,f){const{currentType:N}=f;if(N!==8)return!1;S(d);const D=m(d.currentPeek());return d.resetPeek(),D}function x(d,f){const{currentType:N}=f;if(!(N===7||N===11))return!1;S(d);const D=d.currentPeek()===":";return d.resetPeek(),D}function U(d,f){const{currentType:N}=f;if(N!==9)return!1;const D=()=>{const le=d.currentPeek();return le==="{"?m(d.peek()):le==="@"||le==="|"||le===":"||le==="."||le===Le||!le?!1:le===me?(d.peek(),D()):ge(d,!1)},Q=D();return d.resetPeek(),Q}function oe(d){S(d);const f=d.currentPeek()==="|";return d.resetPeek(),f}function ge(d,f=!0){const N=(Q=!1,le="")=>{const W=d.currentPeek();return W==="{"||W==="@"||!W?Q:W==="|"?!(le===Le||le===me):W===Le?(d.peek(),N(!0,Le)):W===me?(d.peek(),N(!0,me)):!0},D=N();return f&&d.resetPeek(),D}function Z(d,f){const N=d.currentChar();return N===Ve?Ve:f(N)?(d.next(),N):null}function Pe(d){const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function Xe(d){return Z(d,Pe)}function P(d){const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function V(d){return Z(d,P)}function H(d){const f=d.charCodeAt(0);return f>=48&&f<=57}function R(d){return Z(d,H)}function Ie(d){const f=d.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function fe(d){return Z(d,Ie)}function Fe(d){let f="",N="";for(;f=R(d);)N+=f;return N}function Gt(d){let f="";for(;;){const N=d.currentChar();if(N==="{"||N==="}"||N==="@"||N==="|"||!N)break;if(N===Le||N===me)if(ge(d))f+=N,d.next();else{if(oe(d))break;f+=N,d.next()}else f+=N,d.next()}return f}function Wt(d){C(d);let f="",N="";for(;f=V(d);)N+=f;const D=d.currentChar();if(D&&D!=="}"&&D!==Ve&&D!==Le&&D!==me&&D!==" "){const Q=Et(d);return E(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,N+Q),N+Q}return d.currentChar()===Ve&&E(M.UNTERMINATED_CLOSING_BRACE,r(),0),N}function jt(d){C(d);let f="";return d.currentChar()==="-"?(d.next(),f+=`-${Fe(d)}`):f+=Fe(d),d.currentChar()===Ve&&E(M.UNTERMINATED_CLOSING_BRACE,r(),0),f}function Kt(d){return d!==oo&&d!==me}function Gn(d){C(d),B(d,"'");let f="",N="";for(;f=Z(d,Kt);)f==="\\"?N+=Yt(d):N+=f;const D=d.currentChar();return D===me||D===Ve?(E(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),D===me&&(d.next(),B(d,"'")),N):(B(d,"'"),N)}function Yt(d){const f=d.currentChar();switch(f){case"\\":case"'":return d.next(),`\\${f}`;case"u":return ht(d,f,4);case"U":return ht(d,f,6);default:return E(M.UNKNOWN_ESCAPE_SEQUENCE,r(),0,f),""}}function ht(d,f,N){B(d,f);let D="";for(let Q=0;Q<N;Q++){const le=fe(d);if(!le){E(M.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${f}${D}${d.currentChar()}`);break}D+=le}return`\\${f}${D}`}function qt(d){return d!=="{"&&d!=="}"&&d!==Le&&d!==me}function Et(d){C(d);let f="",N="";for(;f=Z(d,qt);)N+=f;return N}function Xt(d){let f="",N="";for(;f=Xe(d);)N+=f;return N}function Zt(d){const f=N=>{const D=d.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===Le?N:(N+=D,d.next(),f(N))};return f("")}function at(d){C(d);const f=B(d,"|");return C(d),f}function it(d,f){let N=null;switch(d.currentChar()){case"{":return f.braceNest>=1&&E(M.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),d.next(),N=h(f,2,"{"),C(d),f.braceNest++,N;case"}":return f.braceNest>0&&f.currentType===2&&E(M.EMPTY_PLACEHOLDER,r(),0),d.next(),N=h(f,3,"}"),f.braceNest--,f.braceNest>0&&C(d),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),N;case"@":return f.braceNest>0&&E(M.UNTERMINATED_CLOSING_BRACE,r(),0),N=Ue(d,f)||_(f),f.braceNest=0,N;default:{let Q=!0,le=!0,W=!0;if(oe(d))return f.braceNest>0&&E(M.UNTERMINATED_CLOSING_BRACE,r(),0),N=h(f,1,at(d)),f.braceNest=0,f.inLinked=!1,N;if(f.braceNest>0&&(f.currentType===4||f.currentType===5||f.currentType===6))return E(M.UNTERMINATED_CLOSING_BRACE,r(),0),f.braceNest=0,st(d,f);if(Q=b(d,f))return N=h(f,4,Wt(d)),C(d),N;if(le=g(d,f))return N=h(f,5,jt(d)),C(d),N;if(W=I(d,f))return N=h(f,6,Gn(d)),C(d),N;if(!Q&&!le&&!W)return N=h(f,12,Et(d)),E(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,N.value),C(d),N;break}}return N}function Ue(d,f){const{currentType:N}=f;let D=null;const Q=d.currentChar();switch((N===7||N===8||N===11||N===9)&&(Q===me||Q===Le)&&E(M.INVALID_LINKED_FORMAT,r(),0),Q){case"@":return d.next(),D=h(f,7,"@"),f.inLinked=!0,D;case".":return C(d),d.next(),h(f,8,".");case":":return C(d),d.next(),h(f,9,":");default:return oe(d)?(D=h(f,1,at(d)),f.braceNest=0,f.inLinked=!1,D):L(d,f)||x(d,f)?(C(d),Ue(d,f)):v(d,f)?(C(d),h(f,11,Xt(d))):U(d,f)?(C(d),Q==="{"?it(d,f)||D:h(f,10,Zt(d))):(N===7&&E(M.INVALID_LINKED_FORMAT,r(),0),f.braceNest=0,f.inLinked=!1,st(d,f))}}function st(d,f){let N={type:13};if(f.braceNest>0)return it(d,f)||_(f);if(f.inLinked)return Ue(d,f)||_(f);switch(d.currentChar()){case"{":return it(d,f)||_(f);case"}":return E(M.UNBALANCED_CLOSING_BRACE,r(),0),d.next(),h(f,3,"}");case"@":return Ue(d,f)||_(f);default:{if(oe(d))return N=h(f,1,at(d)),f.braceNest=0,f.inLinked=!1,N;if(ge(d))return h(f,0,Gt(d));break}}return N}function Jt(){const{currentType:d,offset:f,startLoc:N,endLoc:D}=c;return c.lastType=d,c.lastOffset=f,c.lastStartLoc=N,c.lastEndLoc=D,c.offset=a(),c.startLoc=r(),l.currentChar()===Ve?h(c,13):st(l,c)}return{nextToken:Jt,currentOffset:a,currentPosition:r,context:u}}const gi="parser",hi=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ei(e,n,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const l=parseInt(n||o,16);return l<=55295||l>=57344?String.fromCodePoint(l):"�"}}}function _i(e={}){const n=e.location!==!1,{onError:o}=e;function l(m,k,b,g,...I){const L=m.currentPosition();if(L.offset+=g,L.column+=g,o){const v=n?sn(b,L):null,x=lt(k,v,{domain:gi,args:I});o(x)}}function a(m,k,b){const g={type:m};return n&&(g.start=k,g.end=k,g.loc={start:b,end:b}),g}function r(m,k,b,g){n&&(m.end=k,m.loc&&(m.loc.end=b))}function i(m,k){const b=m.context(),g=a(3,b.offset,b.startLoc);return g.value=k,r(g,m.currentOffset(),m.currentPosition()),g}function s(m,k){const b=m.context(),{lastOffset:g,lastStartLoc:I}=b,L=a(5,g,I);return L.index=parseInt(k,10),m.nextToken(),r(L,m.currentOffset(),m.currentPosition()),L}function c(m,k){const b=m.context(),{lastOffset:g,lastStartLoc:I}=b,L=a(4,g,I);return L.key=k,m.nextToken(),r(L,m.currentOffset(),m.currentPosition()),L}function u(m,k){const b=m.context(),{lastOffset:g,lastStartLoc:I}=b,L=a(9,g,I);return L.value=k.replace(hi,Ei),m.nextToken(),r(L,m.currentOffset(),m.currentPosition()),L}function p(m){const k=m.nextToken(),b=m.context(),{lastOffset:g,lastStartLoc:I}=b,L=a(8,g,I);return k.type!==11?(l(m,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),L.value="",r(L,g,I),{nextConsumeToken:k,node:L}):(k.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,we(k)),L.value=k.value||"",r(L,m.currentOffset(),m.currentPosition()),{node:L})}function E(m,k){const b=m.context(),g=a(7,b.offset,b.startLoc);return g.value=k,r(g,m.currentOffset(),m.currentPosition()),g}function h(m){const k=m.context(),b=a(6,k.offset,k.startLoc);let g=m.nextToken();if(g.type===8){const I=p(m);b.modifier=I.node,g=I.nextConsumeToken||m.nextToken()}switch(g.type!==9&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(g)),g=m.nextToken(),g.type===2&&(g=m.nextToken()),g.type){case 10:g.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(g)),b.key=E(m,g.value||"");break;case 4:g.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(g)),b.key=c(m,g.value||"");break;case 5:g.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(g)),b.key=s(m,g.value||"");break;case 6:g.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(g)),b.key=u(m,g.value||"");break;default:{l(m,M.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const I=m.context(),L=a(7,I.offset,I.startLoc);return L.value="",r(L,I.offset,I.startLoc),b.key=L,r(b,I.offset,I.startLoc),{nextConsumeToken:g,node:b}}}return r(b,m.currentOffset(),m.currentPosition()),{node:b}}function _(m){const k=m.context(),b=k.currentType===1?m.currentOffset():k.offset,g=k.currentType===1?k.endLoc:k.startLoc,I=a(2,b,g);I.items=[];let L=null;do{const U=L||m.nextToken();switch(L=null,U.type){case 0:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(U)),I.items.push(i(m,U.value||""));break;case 5:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(U)),I.items.push(s(m,U.value||""));break;case 4:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(U)),I.items.push(c(m,U.value||""));break;case 6:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(U)),I.items.push(u(m,U.value||""));break;case 7:{const oe=h(m);I.items.push(oe.node),L=oe.nextConsumeToken||null;break}}}while(k.currentType!==13&&k.currentType!==1);const v=k.currentType===1?k.lastOffset:m.currentOffset(),x=k.currentType===1?k.lastEndLoc:m.currentPosition();return r(I,v,x),I}function B(m,k,b,g){const I=m.context();let L=g.items.length===0;const v=a(1,k,b);v.cases=[],v.cases.push(g);do{const x=_(m);L||(L=x.items.length===0),v.cases.push(x)}while(I.currentType!==13);return L&&l(m,M.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),r(v,m.currentOffset(),m.currentPosition()),v}function S(m){const k=m.context(),{offset:b,startLoc:g}=k,I=_(m);return k.currentType===13?I:B(m,b,g,I)}function C(m){const k=pi(m,ue({},e)),b=k.context(),g=a(0,b.offset,b.startLoc);return n&&g.loc&&(g.loc.source=m),g.body=S(k),e.onCacheKey&&(g.cacheKey=e.onCacheKey(m)),b.currentType!==13&&l(k,M.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,m[b.offset]||""),r(g,k.currentOffset(),k.currentPosition()),g}return{parse:C}}function we(e){if(e.type===13)return"EOF";const n=(e.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function ki(e,n={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:r=>(o.helpers.add(r),r)}}function lo(e,n){for(let o=0;o<e.length;o++)Tn(e[o],n)}function Tn(e,n){switch(e.type){case 1:lo(e.cases,n),n.helper("plural");break;case 2:lo(e.items,n);break;case 6:{Tn(e.key,n),n.helper("linked"),n.helper("type");break}case 5:n.helper("interpolate"),n.helper("list");break;case 4:n.helper("interpolate"),n.helper("named");break}}function yi(e,n={}){const o=ki(e);o.helper("normalize"),e.body&&Tn(e.body,o);const l=o.context();e.helpers=Array.from(l.helpers)}function Ci(e){const n=e.body;return n.type===2?ro(n):n.cases.forEach(o=>ro(o)),e}function ro(e){if(e.items.length===1){const n=e.items[0];(n.type===3||n.type===9)&&(e.static=n.value,delete n.value)}else{const n=[];for(let o=0;o<e.items.length;o++){const l=e.items[o];if(!(l.type===3||l.type===9)||l.value==null)break;n.push(l.value)}if(n.length===e.items.length){e.static=wn(n);for(let o=0;o<e.items.length;o++){const l=e.items[o];(l.type===3||l.type===9)&&delete l.value}}}}const vi="minifier";function tt(e){switch(e.t=e.type,e.type){case 0:{const n=e;tt(n.body),n.b=n.body,delete n.body;break}case 1:{const n=e,o=n.cases;for(let l=0;l<o.length;l++)tt(o[l]);n.c=o,delete n.cases;break}case 2:{const n=e,o=n.items;for(let l=0;l<o.length;l++)tt(o[l]);n.i=o,delete n.items,n.static&&(n.s=n.static,delete n.static);break}case 3:case 9:case 8:case 7:{const n=e;n.value&&(n.v=n.value,delete n.value);break}case 6:{const n=e;tt(n.key),n.k=n.key,delete n.key,n.modifier&&(tt(n.modifier),n.m=n.modifier,delete n.modifier);break}case 5:{const n=e;n.i=n.index,delete n.index;break}case 4:{const n=e;n.k=n.key,delete n.key;break}default:if(process.env.NODE_ENV!=="production")throw lt(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:vi,args:[e.type]})}delete e.type}const Ni="parser";function Si(e,n){const{filename:o,breakLineCode:l,needIndent:a}=n,r=n.location!==!1,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const s=()=>i;function c(S,C){i.code+=S}function u(S,C=!0){const m=C?l:"";c(a?m+" ".repeat(S):m)}function p(S=!0){const C=++i.indentLevel;S&&u(C)}function E(S=!0){const C=--i.indentLevel;S&&u(C)}function h(){u(i.indentLevel)}return{context:s,push:c,indent:p,deindent:E,newline:h,helper:S=>`_${S}`,needIndent:()=>i.needIndent}}function bi(e,n){const{helper:o}=e;e.push(`${o("linked")}(`),ot(e,n.key),n.modifier?(e.push(", "),ot(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Li(e,n){const{helper:o,needIndent:l}=e;e.push(`${o("normalize")}([`),e.indent(l());const a=n.items.length;for(let r=0;r<a&&(ot(e,n.items[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}function wi(e,n){const{helper:o,needIndent:l}=e;if(n.cases.length>1){e.push(`${o("plural")}([`),e.indent(l());const a=n.cases.length;for(let r=0;r<a&&(ot(e,n.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}}function Ti(e,n){n.body?ot(e,n.body):e.push("null")}function ot(e,n){const{helper:o}=e;switch(n.type){case 0:Ti(e,n);break;case 1:wi(e,n);break;case 2:Li(e,n);break;case 6:bi(e,n);break;case 8:e.push(JSON.stringify(n.value),n);break;case 7:e.push(JSON.stringify(n.value),n);break;case 5:e.push(`${o("interpolate")}(${o("list")}(${n.index}))`,n);break;case 4:e.push(`${o("interpolate")}(${o("named")}(${JSON.stringify(n.key)}))`,n);break;case 9:e.push(JSON.stringify(n.value),n);break;case 3:e.push(JSON.stringify(n.value),n);break;default:if(process.env.NODE_ENV!=="production")throw lt(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ni,args:[n.type]})}}const Ai=(e,n={})=>{const o=O(n.mode)?n.mode:"normal",l=O(n.filename)?n.filename:"message.intl";n.sourceMap;const a=n.breakLineCode!=null?n.breakLineCode:o==="arrow"?";":`
|
|
12
|
-
`,r=n.needIndent?n.needIndent:o!=="arrow",i=e.helpers||[],s=Si(e,{filename:l,breakLineCode:a,needIndent:r});s.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(r),i.length>0&&(s.push(`const { ${wn(i.map(
|
|
11
|
+
`,ci="\u2028",ui="\u2029";function di(e){const n=e;let o=0,l=1,a=1,r=0;const i=v=>n[v]===si&&n[v+1]===me,s=v=>n[v]===me,c=v=>n[v]===ui,u=v=>n[v]===ci,g=v=>i(v)||s(v)||c(v)||u(v),_=()=>o,p=()=>l,E=()=>a,V=()=>r,N=v=>i(v)||c(v)||u(v)?me:n[v],C=()=>N(o),m=()=>N(o+r);function k(){return r=0,g(o)&&(l++,a=0),i(o)&&o++,o++,a++,n[o]}function b(){return i(o+r)&&r++,r++,n[o+r]}function h(){o=0,l=1,a=1,r=0}function I(v=0){r=v}function L(){const v=o+r;for(;v!==o;)k();r=0}return{index:_,line:p,column:E,peekOffset:V,charAt:N,currentChar:C,currentPeek:m,next:k,peek:b,reset:h,resetPeek:I,skipToPeek:L}}const Ve=void 0,fi=".",oo="'",mi="tokenizer";function pi(e,n={}){const o=n.location!==!1,l=di(e),a=()=>l.index(),r=()=>ni(l.line(),l.column(),l.index()),i=r(),s=a(),c={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:g}=n;function _(d,f,S,...D){const Q=u();if(f.column+=S,f.offset+=S,g){const le=o?sn(Q.startLoc,f):null,W=lt(d,le,{domain:mi,args:D});g(W)}}function p(d,f,S){d.endLoc=r(),d.currentType=f;const D={type:f};return o&&(D.loc=sn(d.startLoc,d.endLoc)),S!=null&&(D.value=S),D}const E=d=>p(d,13);function V(d,f){return d.currentChar()===f?(d.next(),f):(_(M.EXPECTED_TOKEN,r(),0,f),"")}function N(d){let f="";for(;d.currentPeek()===Le||d.currentPeek()===me;)f+=d.currentPeek(),d.peek();return f}function C(d){const f=N(d);return d.skipToPeek(),f}function m(d){if(d===Ve)return!1;const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function k(d){if(d===Ve)return!1;const f=d.charCodeAt(0);return f>=48&&f<=57}function b(d,f){const{currentType:S}=f;if(S!==2)return!1;N(d);const D=m(d.currentPeek());return d.resetPeek(),D}function h(d,f){const{currentType:S}=f;if(S!==2)return!1;N(d);const D=d.currentPeek()==="-"?d.peek():d.currentPeek(),Q=k(D);return d.resetPeek(),Q}function I(d,f){const{currentType:S}=f;if(S!==2)return!1;N(d);const D=d.currentPeek()===oo;return d.resetPeek(),D}function L(d,f){const{currentType:S}=f;if(S!==7)return!1;N(d);const D=d.currentPeek()===".";return d.resetPeek(),D}function v(d,f){const{currentType:S}=f;if(S!==8)return!1;N(d);const D=m(d.currentPeek());return d.resetPeek(),D}function x(d,f){const{currentType:S}=f;if(!(S===7||S===11))return!1;N(d);const D=d.currentPeek()===":";return d.resetPeek(),D}function U(d,f){const{currentType:S}=f;if(S!==9)return!1;const D=()=>{const le=d.currentPeek();return le==="{"?m(d.peek()):le==="@"||le==="|"||le===":"||le==="."||le===Le||!le?!1:le===me?(d.peek(),D()):ge(d,!1)},Q=D();return d.resetPeek(),Q}function oe(d){N(d);const f=d.currentPeek()==="|";return d.resetPeek(),f}function ge(d,f=!0){const S=(Q=!1,le="")=>{const W=d.currentPeek();return W==="{"||W==="@"||!W?Q:W==="|"?!(le===Le||le===me):W===Le?(d.peek(),S(!0,Le)):W===me?(d.peek(),S(!0,me)):!0},D=S();return f&&d.resetPeek(),D}function Z(d,f){const S=d.currentChar();return S===Ve?Ve:f(S)?(d.next(),S):null}function $e(d){const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function Xe(d){return Z(d,$e)}function $(d){const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function B(d){return Z(d,$)}function H(d){const f=d.charCodeAt(0);return f>=48&&f<=57}function R(d){return Z(d,H)}function Ie(d){const f=d.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function fe(d){return Z(d,Ie)}function Fe(d){let f="",S="";for(;f=R(d);)S+=f;return S}function Gt(d){let f="";for(;;){const S=d.currentChar();if(S==="{"||S==="}"||S==="@"||S==="|"||!S)break;if(S===Le||S===me)if(ge(d))f+=S,d.next();else{if(oe(d))break;f+=S,d.next()}else f+=S,d.next()}return f}function Wt(d){C(d);let f="",S="";for(;f=B(d);)S+=f;const D=d.currentChar();if(D&&D!=="}"&&D!==Ve&&D!==Le&&D!==me&&D!==" "){const Q=Et(d);return _(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,S+Q),S+Q}return d.currentChar()===Ve&&_(M.UNTERMINATED_CLOSING_BRACE,r(),0),S}function jt(d){C(d);let f="";return d.currentChar()==="-"?(d.next(),f+=`-${Fe(d)}`):f+=Fe(d),d.currentChar()===Ve&&_(M.UNTERMINATED_CLOSING_BRACE,r(),0),f}function Kt(d){return d!==oo&&d!==me}function Gn(d){C(d),V(d,"'");let f="",S="";for(;f=Z(d,Kt);)f==="\\"?S+=Yt(d):S+=f;const D=d.currentChar();return D===me||D===Ve?(_(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),D===me&&(d.next(),V(d,"'")),S):(V(d,"'"),S)}function Yt(d){const f=d.currentChar();switch(f){case"\\":case"'":return d.next(),`\\${f}`;case"u":return ht(d,f,4);case"U":return ht(d,f,6);default:return _(M.UNKNOWN_ESCAPE_SEQUENCE,r(),0,f),""}}function ht(d,f,S){V(d,f);let D="";for(let Q=0;Q<S;Q++){const le=fe(d);if(!le){_(M.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${f}${D}${d.currentChar()}`);break}D+=le}return`\\${f}${D}`}function qt(d){return d!=="{"&&d!=="}"&&d!==Le&&d!==me}function Et(d){C(d);let f="",S="";for(;f=Z(d,qt);)S+=f;return S}function Xt(d){let f="",S="";for(;f=Xe(d);)S+=f;return S}function Zt(d){const f=S=>{const D=d.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===Le?S:(S+=D,d.next(),f(S))};return f("")}function at(d){C(d);const f=V(d,"|");return C(d),f}function it(d,f){let S=null;switch(d.currentChar()){case"{":return f.braceNest>=1&&_(M.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),d.next(),S=p(f,2,"{"),C(d),f.braceNest++,S;case"}":return f.braceNest>0&&f.currentType===2&&_(M.EMPTY_PLACEHOLDER,r(),0),d.next(),S=p(f,3,"}"),f.braceNest--,f.braceNest>0&&C(d),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),S;case"@":return f.braceNest>0&&_(M.UNTERMINATED_CLOSING_BRACE,r(),0),S=Ue(d,f)||E(f),f.braceNest=0,S;default:{let Q=!0,le=!0,W=!0;if(oe(d))return f.braceNest>0&&_(M.UNTERMINATED_CLOSING_BRACE,r(),0),S=p(f,1,at(d)),f.braceNest=0,f.inLinked=!1,S;if(f.braceNest>0&&(f.currentType===4||f.currentType===5||f.currentType===6))return _(M.UNTERMINATED_CLOSING_BRACE,r(),0),f.braceNest=0,st(d,f);if(Q=b(d,f))return S=p(f,4,Wt(d)),C(d),S;if(le=h(d,f))return S=p(f,5,jt(d)),C(d),S;if(W=I(d,f))return S=p(f,6,Gn(d)),C(d),S;if(!Q&&!le&&!W)return S=p(f,12,Et(d)),_(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,S.value),C(d),S;break}}return S}function Ue(d,f){const{currentType:S}=f;let D=null;const Q=d.currentChar();switch((S===7||S===8||S===11||S===9)&&(Q===me||Q===Le)&&_(M.INVALID_LINKED_FORMAT,r(),0),Q){case"@":return d.next(),D=p(f,7,"@"),f.inLinked=!0,D;case".":return C(d),d.next(),p(f,8,".");case":":return C(d),d.next(),p(f,9,":");default:return oe(d)?(D=p(f,1,at(d)),f.braceNest=0,f.inLinked=!1,D):L(d,f)||x(d,f)?(C(d),Ue(d,f)):v(d,f)?(C(d),p(f,11,Xt(d))):U(d,f)?(C(d),Q==="{"?it(d,f)||D:p(f,10,Zt(d))):(S===7&&_(M.INVALID_LINKED_FORMAT,r(),0),f.braceNest=0,f.inLinked=!1,st(d,f))}}function st(d,f){let S={type:13};if(f.braceNest>0)return it(d,f)||E(f);if(f.inLinked)return Ue(d,f)||E(f);switch(d.currentChar()){case"{":return it(d,f)||E(f);case"}":return _(M.UNBALANCED_CLOSING_BRACE,r(),0),d.next(),p(f,3,"}");case"@":return Ue(d,f)||E(f);default:{if(oe(d))return S=p(f,1,at(d)),f.braceNest=0,f.inLinked=!1,S;if(ge(d))return p(f,0,Gt(d));break}}return S}function Jt(){const{currentType:d,offset:f,startLoc:S,endLoc:D}=c;return c.lastType=d,c.lastOffset=f,c.lastStartLoc=S,c.lastEndLoc=D,c.offset=a(),c.startLoc=r(),l.currentChar()===Ve?p(c,13):st(l,c)}return{nextToken:Jt,currentOffset:a,currentPosition:r,context:u}}const gi="parser",hi=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ei(e,n,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const l=parseInt(n||o,16);return l<=55295||l>=57344?String.fromCodePoint(l):"�"}}}function _i(e={}){const n=e.location!==!1,{onError:o}=e;function l(m,k,b,h,...I){const L=m.currentPosition();if(L.offset+=h,L.column+=h,o){const v=n?sn(b,L):null,x=lt(k,v,{domain:gi,args:I});o(x)}}function a(m,k,b){const h={type:m};return n&&(h.start=k,h.end=k,h.loc={start:b,end:b}),h}function r(m,k,b,h){n&&(m.end=k,m.loc&&(m.loc.end=b))}function i(m,k){const b=m.context(),h=a(3,b.offset,b.startLoc);return h.value=k,r(h,m.currentOffset(),m.currentPosition()),h}function s(m,k){const b=m.context(),{lastOffset:h,lastStartLoc:I}=b,L=a(5,h,I);return L.index=parseInt(k,10),m.nextToken(),r(L,m.currentOffset(),m.currentPosition()),L}function c(m,k){const b=m.context(),{lastOffset:h,lastStartLoc:I}=b,L=a(4,h,I);return L.key=k,m.nextToken(),r(L,m.currentOffset(),m.currentPosition()),L}function u(m,k){const b=m.context(),{lastOffset:h,lastStartLoc:I}=b,L=a(9,h,I);return L.value=k.replace(hi,Ei),m.nextToken(),r(L,m.currentOffset(),m.currentPosition()),L}function g(m){const k=m.nextToken(),b=m.context(),{lastOffset:h,lastStartLoc:I}=b,L=a(8,h,I);return k.type!==11?(l(m,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),L.value="",r(L,h,I),{nextConsumeToken:k,node:L}):(k.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,we(k)),L.value=k.value||"",r(L,m.currentOffset(),m.currentPosition()),{node:L})}function _(m,k){const b=m.context(),h=a(7,b.offset,b.startLoc);return h.value=k,r(h,m.currentOffset(),m.currentPosition()),h}function p(m){const k=m.context(),b=a(6,k.offset,k.startLoc);let h=m.nextToken();if(h.type===8){const I=g(m);b.modifier=I.node,h=I.nextConsumeToken||m.nextToken()}switch(h.type!==9&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(h)),h=m.nextToken(),h.type===2&&(h=m.nextToken()),h.type){case 10:h.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(h)),b.key=_(m,h.value||"");break;case 4:h.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(h)),b.key=c(m,h.value||"");break;case 5:h.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(h)),b.key=s(m,h.value||"");break;case 6:h.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(h)),b.key=u(m,h.value||"");break;default:{l(m,M.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const I=m.context(),L=a(7,I.offset,I.startLoc);return L.value="",r(L,I.offset,I.startLoc),b.key=L,r(b,I.offset,I.startLoc),{nextConsumeToken:h,node:b}}}return r(b,m.currentOffset(),m.currentPosition()),{node:b}}function E(m){const k=m.context(),b=k.currentType===1?m.currentOffset():k.offset,h=k.currentType===1?k.endLoc:k.startLoc,I=a(2,b,h);I.items=[];let L=null;do{const U=L||m.nextToken();switch(L=null,U.type){case 0:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(U)),I.items.push(i(m,U.value||""));break;case 5:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(U)),I.items.push(s(m,U.value||""));break;case 4:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(U)),I.items.push(c(m,U.value||""));break;case 6:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(U)),I.items.push(u(m,U.value||""));break;case 7:{const oe=p(m);I.items.push(oe.node),L=oe.nextConsumeToken||null;break}}}while(k.currentType!==13&&k.currentType!==1);const v=k.currentType===1?k.lastOffset:m.currentOffset(),x=k.currentType===1?k.lastEndLoc:m.currentPosition();return r(I,v,x),I}function V(m,k,b,h){const I=m.context();let L=h.items.length===0;const v=a(1,k,b);v.cases=[],v.cases.push(h);do{const x=E(m);L||(L=x.items.length===0),v.cases.push(x)}while(I.currentType!==13);return L&&l(m,M.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),r(v,m.currentOffset(),m.currentPosition()),v}function N(m){const k=m.context(),{offset:b,startLoc:h}=k,I=E(m);return k.currentType===13?I:V(m,b,h,I)}function C(m){const k=pi(m,ue({},e)),b=k.context(),h=a(0,b.offset,b.startLoc);return n&&h.loc&&(h.loc.source=m),h.body=N(k),e.onCacheKey&&(h.cacheKey=e.onCacheKey(m)),b.currentType!==13&&l(k,M.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,m[b.offset]||""),r(h,k.currentOffset(),k.currentPosition()),h}return{parse:C}}function we(e){if(e.type===13)return"EOF";const n=(e.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function ki(e,n={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:r=>(o.helpers.add(r),r)}}function lo(e,n){for(let o=0;o<e.length;o++)Tn(e[o],n)}function Tn(e,n){switch(e.type){case 1:lo(e.cases,n),n.helper("plural");break;case 2:lo(e.items,n);break;case 6:{Tn(e.key,n),n.helper("linked"),n.helper("type");break}case 5:n.helper("interpolate"),n.helper("list");break;case 4:n.helper("interpolate"),n.helper("named");break}}function yi(e,n={}){const o=ki(e);o.helper("normalize"),e.body&&Tn(e.body,o);const l=o.context();e.helpers=Array.from(l.helpers)}function Ci(e){const n=e.body;return n.type===2?ro(n):n.cases.forEach(o=>ro(o)),e}function ro(e){if(e.items.length===1){const n=e.items[0];(n.type===3||n.type===9)&&(e.static=n.value,delete n.value)}else{const n=[];for(let o=0;o<e.items.length;o++){const l=e.items[o];if(!(l.type===3||l.type===9)||l.value==null)break;n.push(l.value)}if(n.length===e.items.length){e.static=wn(n);for(let o=0;o<e.items.length;o++){const l=e.items[o];(l.type===3||l.type===9)&&delete l.value}}}}const vi="minifier";function tt(e){switch(e.t=e.type,e.type){case 0:{const n=e;tt(n.body),n.b=n.body,delete n.body;break}case 1:{const n=e,o=n.cases;for(let l=0;l<o.length;l++)tt(o[l]);n.c=o,delete n.cases;break}case 2:{const n=e,o=n.items;for(let l=0;l<o.length;l++)tt(o[l]);n.i=o,delete n.items,n.static&&(n.s=n.static,delete n.static);break}case 3:case 9:case 8:case 7:{const n=e;n.value&&(n.v=n.value,delete n.value);break}case 6:{const n=e;tt(n.key),n.k=n.key,delete n.key,n.modifier&&(tt(n.modifier),n.m=n.modifier,delete n.modifier);break}case 5:{const n=e;n.i=n.index,delete n.index;break}case 4:{const n=e;n.k=n.key,delete n.key;break}default:if(process.env.NODE_ENV!=="production")throw lt(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:vi,args:[e.type]})}delete e.type}const Ni="parser";function Si(e,n){const{filename:o,breakLineCode:l,needIndent:a}=n,r=n.location!==!1,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const s=()=>i;function c(N,C){i.code+=N}function u(N,C=!0){const m=C?l:"";c(a?m+" ".repeat(N):m)}function g(N=!0){const C=++i.indentLevel;N&&u(C)}function _(N=!0){const C=--i.indentLevel;N&&u(C)}function p(){u(i.indentLevel)}return{context:s,push:c,indent:g,deindent:_,newline:p,helper:N=>`_${N}`,needIndent:()=>i.needIndent}}function bi(e,n){const{helper:o}=e;e.push(`${o("linked")}(`),ot(e,n.key),n.modifier?(e.push(", "),ot(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Li(e,n){const{helper:o,needIndent:l}=e;e.push(`${o("normalize")}([`),e.indent(l());const a=n.items.length;for(let r=0;r<a&&(ot(e,n.items[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}function wi(e,n){const{helper:o,needIndent:l}=e;if(n.cases.length>1){e.push(`${o("plural")}([`),e.indent(l());const a=n.cases.length;for(let r=0;r<a&&(ot(e,n.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}}function Ti(e,n){n.body?ot(e,n.body):e.push("null")}function ot(e,n){const{helper:o}=e;switch(n.type){case 0:Ti(e,n);break;case 1:wi(e,n);break;case 2:Li(e,n);break;case 6:bi(e,n);break;case 8:e.push(JSON.stringify(n.value),n);break;case 7:e.push(JSON.stringify(n.value),n);break;case 5:e.push(`${o("interpolate")}(${o("list")}(${n.index}))`,n);break;case 4:e.push(`${o("interpolate")}(${o("named")}(${JSON.stringify(n.key)}))`,n);break;case 9:e.push(JSON.stringify(n.value),n);break;case 3:e.push(JSON.stringify(n.value),n);break;default:if(process.env.NODE_ENV!=="production")throw lt(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ni,args:[n.type]})}}const Ai=(e,n={})=>{const o=O(n.mode)?n.mode:"normal",l=O(n.filename)?n.filename:"message.intl";n.sourceMap;const a=n.breakLineCode!=null?n.breakLineCode:o==="arrow"?";":`
|
|
12
|
+
`,r=n.needIndent?n.needIndent:o!=="arrow",i=e.helpers||[],s=Si(e,{filename:l,breakLineCode:a,needIndent:r});s.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(r),i.length>0&&(s.push(`const { ${wn(i.map(g=>`${g}: _${g}`),", ")} } = ctx`),s.newline()),s.push("return "),ot(s,e),s.deindent(r),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function Ii(e,n={}){const o=ue({},n),l=!!o.jit,a=!!o.minify,r=o.optimize==null?!0:o.optimize,s=_i(o).parse(e);return l?(r&&Ci(s),a&&tt(s),{ast:s,code:""}):(yi(s,o),Ai(s,o))}/*!
|
|
13
13
|
* core-base v11.1.12
|
|
14
14
|
* (c) 2025 kazuya kawaguchi
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/function Vi(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(je().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(je().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function be(e){return K(e)&&An(e)===0&&(Se(e,"b")||Se(e,"body"))}const zo=["b","body"];function Bi(e){return Me(e,zo)}const Go=["c","cases"];function Oi(e){return Me(e,Go,[])}const Wo=["s","static"];function Di(e){return Me(e,Wo)}const jo=["i","items"];function $i(e){return Me(e,jo,[])}const Ko=["t","type"];function An(e){return Me(e,Ko)}const Yo=["v","value"];function vt(e,n){const o=Me(e,Yo);if(o!=null)return o;throw ut(n)}const qo=["m","modifier"];function Pi(e){return Me(e,qo)}const Xo=["k","key"];function Ri(e){const n=Me(e,Xo);if(n)return n;throw ut(6)}function Me(e,n,o){for(let l=0;l<n.length;l++){const a=n[l];if(Se(e,a)&&e[a]!=null)return e[a]}return o}const Zo=[...zo,...Go,...Wo,...jo,...Xo,...qo,...Yo,...Ko];function ut(e){return new Error(`unhandled node type: ${e}`)}function tn(e){return o=>Mi(o,e)}function Mi(e,n){const o=Bi(n);if(o==null)throw ut(0);if(An(o)===1){const r=Oi(o);return e.plural(r.reduce((i,s)=>[...i,ao(e,s)],[]))}else return ao(e,o)}function ao(e,n){const o=Di(n);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const l=$i(n).reduce((a,r)=>[...a,cn(e,r)],[]);return e.normalize(l)}}function cn(e,n){const o=An(n);switch(o){case 3:return vt(n,o);case 9:return vt(n,o);case 4:{const l=n;if(Se(l,"k")&&l.k)return e.interpolate(e.named(l.k));if(Se(l,"key")&&l.key)return e.interpolate(e.named(l.key));throw ut(o)}case 5:{const l=n;if(Se(l,"i")&&ce(l.i))return e.interpolate(e.list(l.i));if(Se(l,"index")&&ce(l.index))return e.interpolate(e.list(l.index));throw ut(o)}case 6:{const l=n,a=Pi(l),r=Ri(l);return e.linked(cn(e,r),a?cn(e,a):void 0,e.type)}case 7:return vt(n,o);case 8:return vt(n,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const xi="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Fi(e,n){n&&ii(e)&&Ae(Mt(xi,{source:e}))}const Ui=e=>e;let Nt=X();function Hi(e,n={}){let o=!1;const l=n.onError||ri;return n.onError=a=>{o=!0,l(a)},{...Ii(e,n),detectError:o}}function zi(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&O(e)){const o=ae(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Fi(e,o);const a=(n.onCacheKey||Ui)(e),r=Nt[a];if(r)return r;const{ast:i,detectError:s}=Hi(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),c=tn(i);return s?c:Nt[a]=c}else{if(process.env.NODE_ENV!=="production"&&!be(e))return Ae(`the message that is resolve with key '${n.key}' is not supported for jit compilation`),(()=>e);const o=e.cacheKey;if(o){const l=Nt[o];return l||(Nt[o]=tn(e))}else return tn(e)}}let dt=null;function Gi(e){dt=e}function Wi(e,n,o){dt&&dt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:o})}const ji=Ki("function:translate");function Ki(e){return n=>dt&&dt.emit(e,n)}const pe={INVALID_ARGUMENT:oi,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Yi=24;function Be(e){return lt(e,null,process.env.NODE_ENV!=="production"?{messages:qi}:void 0)}const qi={[pe.INVALID_ARGUMENT]:"Invalid arguments",[pe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[pe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[pe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[pe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function In(e,n){return n.locale!=null?io(n.locale):io(e.locale)}let nn;function io(e){if(O(e))return e;if(ee(e)){if(e.resolvedOnce&&nn!=null)return nn;if(e.constructor.name==="Function"){const n=e();if(Ja(n))throw Be(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return nn=n}else throw Be(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Be(pe.NOT_SUPPORT_LOCALE_TYPE)}function Xi(e,n,o){return[...new Set([o,...ie(n)?n:K(n)?Object.keys(n):O(n)?[n]:[o]])]}function Jo(e,n,o){const l=O(o)?o:It,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(l);if(!r){r=[];let i=[o];for(;ie(i);)i=so(r,i,n);const s=ie(n)||!j(n)?n:n.default?n.default:null;i=O(s)?[s]:s,ie(i)&&so(r,i,!1),a.__localeChainCache.set(l,r)}return r}function so(e,n,o){let l=!0;for(let a=0;a<n.length&&ae(l);a++){const r=n[a];O(r)&&(l=Zi(e,n[a],o))}return l}function Zi(e,n,o){let l;const a=n.split("-");do{const r=a.join("-");l=Ji(e,r,o),a.splice(-1,1)}while(a.length&&l===!0);return l}function Ji(e,n,o){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const a=n.replace(/!/g,"");e.push(a),(ie(o)||j(o))&&o[a]&&(l=o[a])}return l}const xe=[];xe[0]={w:[0],i:[3,0],"[":[4],o:[7]};xe[1]={w:[1],".":[2],"[":[4],o:[7]};xe[2]={w:[2],i:[3,0],0:[3,0]};xe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};xe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};xe[5]={"'":[4,0],o:8,l:[5,0]};xe[6]={'"':[4,0],o:8,l:[6,0]};const Qi=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function es(e){return Qi.test(e)}function ts(e){const n=e.charCodeAt(0),o=e.charCodeAt(e.length-1);return n===o&&(n===34||n===39)?e.slice(1,-1):e}function ns(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function os(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:es(n)?ts(n):"*"+n}function ls(e){const n=[];let o=-1,l=0,a=0,r,i,s,c,u,p,E;const h=[];h[0]=()=>{i===void 0?i=s:i+=s},h[1]=()=>{i!==void 0&&(n.push(i),i=void 0)},h[2]=()=>{h[0](),a++},h[3]=()=>{if(a>0)a--,l=4,h[0]();else{if(a=0,i===void 0||(i=os(i),i===!1))return!1;h[1]()}};function _(){const B=e[o+1];if(l===5&&B==="'"||l===6&&B==='"')return o++,s="\\"+B,h[0](),!0}for(;l!==null;)if(o++,r=e[o],!(r==="\\"&&_())){if(c=ns(r),E=xe[l],u=E[c]||E.l||8,u===8||(l=u[0],u[1]!==void 0&&(p=h[u[1]],p&&(s=r,p()===!1))))return;if(l===7)return n}}const co=new Map;function rs(e,n){return K(e)?e[n]:null}function as(e,n){if(!K(e))return null;let o=co.get(n);if(o||(o=ls(n),o&&co.set(n,o)),!o)return null;const l=o.length;let a=e,r=0;for(;r<l;){const i=o[r];if(Zo.includes(i)&&be(a))return null;const s=a[i];if(s===void 0||ee(a))return null;a=s,r++}return a}const he={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},is=8,ss={[he.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[he.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[he.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[he.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ye(e,...n){return Mt(ss[e],...n)}const cs="11.1.12",Ft=-1,It="en-US",Vt="",uo=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function us(){return{upper:(e,n)=>n==="text"&&O(e)?e.toUpperCase():n==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&O(e)?e.toLowerCase():n==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&O(e)?uo(e):n==="vnode"&&K(e)&&"__v_isVNode"in e?uo(e.children):e}}let Qo;function ds(e){Qo=e}let el;function fs(e){el=e}let tl;function ms(e){tl=e}let nl=null;const ps=e=>{nl=e},gs=()=>nl;let ol=null;const fo=e=>{ol=e},hs=()=>ol;let mo=0;function Es(e={}){const n=ee(e.onWarn)?e.onWarn:Ae,o=O(e.version)?e.version:cs,l=O(e.locale)||ee(e.locale)?e.locale:It,a=ee(l)?It:l,r=ie(e.fallbackLocale)||j(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=j(e.messages)?e.messages:on(a),s=j(e.datetimeFormats)?e.datetimeFormats:on(a),c=j(e.numberFormats)?e.numberFormats:on(a),u=ue(X(),e.modifiers,us()),p=e.pluralRules||X(),E=ee(e.missing)?e.missing:null,h=ae(e.missingWarn)||At(e.missingWarn)?e.missingWarn:!0,_=ae(e.fallbackWarn)||At(e.fallbackWarn)?e.fallbackWarn:!0,B=!!e.fallbackFormat,S=!!e.unresolving,C=ee(e.postTranslation)?e.postTranslation:null,m=j(e.processor)?e.processor:null,k=ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,g=ee(e.messageCompiler)?e.messageCompiler:Qo;process.env.NODE_ENV!=="production"&&ee(e.messageCompiler)&&Ga(Ye(he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const I=ee(e.messageResolver)?e.messageResolver:el||rs,L=ee(e.localeFallbacker)?e.localeFallbacker:tl||Xi,v=K(e.fallbackContext)?e.fallbackContext:void 0,x=e,U=K(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,oe=K(x.__numberFormatters)?x.__numberFormatters:new Map,ge=K(x.__meta)?x.__meta:{};mo++;const Z={version:o,cid:mo,locale:l,fallbackLocale:r,messages:i,modifiers:u,pluralRules:p,missing:E,missingWarn:h,fallbackWarn:_,fallbackFormat:B,unresolving:S,postTranslation:C,processor:m,warnHtmlMessage:k,escapeParameter:b,messageCompiler:g,messageResolver:I,localeFallbacker:L,fallbackContext:v,onWarn:n,__meta:ge};return Z.datetimeFormats=s,Z.numberFormats=c,Z.__datetimeFormatters=U,Z.__numberFormatters=oe,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=x.__v_emitter!=null?x.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Wi(Z,o,ge),Z}const on=e=>({[e]:X()});function Ut(e,n){return e instanceof RegExp?e.test(n):e}function ll(e,n){return e instanceof RegExp?e.test(n):e}function Vn(e,n,o,l,a){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:n,type:a,groupId:`${a}:${n}`})}if(r!==null){const s=r(e,o,n,a);return O(s)?s:n}else return process.env.NODE_ENV!=="production"&&ll(l,n)&&i(Ye(he.NOT_FOUND_KEY,{key:n,locale:o})),n}function ct(e,n,o){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,o,n)}function rl(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function _s(e,n){const o=n.indexOf(e);if(o===-1)return!1;for(let l=o+1;l<n.length;l++)if(rl(e,n[l]))return!0;return!1}const po=typeof Intl<"u",al={dateTimeFormat:po&&typeof Intl.DateTimeFormat<"u",numberFormat:po&&typeof Intl.NumberFormat<"u"};function go(e,...n){const{datetimeFormats:o,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!al.dateTimeFormat)return r(Ye(he.CANNOT_FORMAT_DATE)),Vt;const[c,u,p,E]=un(...n),h=ae(p.missingWarn)?p.missingWarn:e.missingWarn,_=ae(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,B=!!p.part,S=In(e,p),C=i(e,a,S);if(!O(c)||c==="")return new Intl.DateTimeFormat(S,E).format(u);let m={},k,b=null,g=S,I=null;const L="datetime format";for(let U=0;U<C.length;U++){if(k=I=C[U],process.env.NODE_ENV!=="production"&&S!==k&&Ut(_,c)&&r(Ye(he.FALLBACK_TO_DATE_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&S!==k){const oe=e.__v_emitter;oe&&oe.emit("fallback",{type:L,key:c,from:g,to:I,groupId:`${L}:${c}`})}if(m=o[k]||{},b=m[c],j(b))break;Vn(e,c,k,h,L),g=I}if(!j(b)||!O(k))return l?Ft:c;let v=`${k}__${c}`;xt(E)||(v=`${v}__${JSON.stringify(E)}`);let x=s.get(v);return x||(x=new Intl.DateTimeFormat(k,ue({},b,E)),s.set(v,x)),B?x.formatToParts(u):x.format(u)}const il=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function un(...e){const[n,o,l,a]=e,r=X();let i=X(),s;if(O(n)){const c=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Be(pe.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Be(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(Ya(n)){if(isNaN(n.getTime()))throw Be(pe.INVALID_DATE_ARGUMENT);s=n}else if(ce(n))s=n;else throw Be(pe.INVALID_ARGUMENT);return O(o)?r.key=o:j(o)&&Object.keys(o).forEach(c=>{il.includes(c)?i[c]=o[c]:r[c]=o[c]}),O(l)?r.locale=l:j(l)&&(i=l),j(a)&&(i=a),[r.key||"",s,r,i]}function ho(e,n,o){const l=e;for(const a in o){const r=`${n}__${a}`;l.__datetimeFormatters.has(r)&&l.__datetimeFormatters.delete(r)}}function Eo(e,...n){const{numberFormats:o,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!al.numberFormat)return r(Ye(he.CANNOT_FORMAT_NUMBER)),Vt;const[c,u,p,E]=dn(...n),h=ae(p.missingWarn)?p.missingWarn:e.missingWarn,_=ae(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,B=!!p.part,S=In(e,p),C=i(e,a,S);if(!O(c)||c==="")return new Intl.NumberFormat(S,E).format(u);let m={},k,b=null,g=S,I=null;const L="number format";for(let U=0;U<C.length;U++){if(k=I=C[U],process.env.NODE_ENV!=="production"&&S!==k&&Ut(_,c)&&r(Ye(he.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&S!==k){const oe=e.__v_emitter;oe&&oe.emit("fallback",{type:L,key:c,from:g,to:I,groupId:`${L}:${c}`})}if(m=o[k]||{},b=m[c],j(b))break;Vn(e,c,k,h,L),g=I}if(!j(b)||!O(k))return l?Ft:c;let v=`${k}__${c}`;xt(E)||(v=`${v}__${JSON.stringify(E)}`);let x=s.get(v);return x||(x=new Intl.NumberFormat(k,ue({},b,E)),s.set(v,x)),B?x.formatToParts(u):x.format(u)}const sl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function dn(...e){const[n,o,l,a]=e,r=X();let i=X();if(!ce(n))throw Be(pe.INVALID_ARGUMENT);const s=n;return O(o)?r.key=o:j(o)&&Object.keys(o).forEach(c=>{sl.includes(c)?i[c]=o[c]:r[c]=o[c]}),O(l)?r.locale=l:j(l)&&(i=l),j(a)&&(i=a),[r.key||"",s,r,i]}function _o(e,n,o){const l=e;for(const a in o){const r=`${n}__${a}`;l.__numberFormatters.has(r)&&l.__numberFormatters.delete(r)}}const ks=e=>e,ys=e=>"",Cs="text",vs=e=>e.length===0?"":wn(e),Ns=Qa;function ko(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ss(e){const n=ce(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ce(e.named.count)||ce(e.named.n))?ce(e.named.count)?e.named.count:ce(e.named.n)?e.named.n:n:n}function bs(e,n){n.count||(n.count=e),n.n||(n.n=e)}function Ls(e={}){const n=e.locale,o=Ss(e),l=K(e.pluralRules)&&O(n)&&ee(e.pluralRules[n])?e.pluralRules[n]:ko,a=K(e.pluralRules)&&O(n)&&ee(e.pluralRules[n])?ko:void 0,r=m=>m[l(o,m.length,a)],i=e.list||[],s=m=>i[m],c=e.named||X();ce(e.pluralIndex)&&bs(o,c);const u=m=>c[m];function p(m,k){const b=ee(e.messages)?e.messages(m,!!k):K(e.messages)?e.messages[m]:!1;return b||(e.parent?e.parent.message(m):ys)}const E=m=>e.modifiers?e.modifiers[m]:ks,h=j(e.processor)&&ee(e.processor.normalize)?e.processor.normalize:vs,_=j(e.processor)&&ee(e.processor.interpolate)?e.processor.interpolate:Ns,B=j(e.processor)&&O(e.processor.type)?e.processor.type:Cs,C={list:s,named:u,plural:r,linked:(m,...k)=>{const[b,g]=k;let I="text",L="";k.length===1?K(b)?(L=b.modifier||L,I=b.type||I):O(b)&&(L=b||L):k.length===2&&(O(b)&&(L=b||L),O(g)&&(I=g||I));const v=p(m,!0)(C),x=I==="vnode"&&ie(v)&&L?v[0]:v;return L?E(L)(x,I):x},message:p,type:B,interpolate:_,normalize:h,values:ue(X(),i,c)};return C}const yo=()=>"",Ne=e=>ee(e);function Co(e,...n){const{fallbackFormat:o,postTranslation:l,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:s}=e,[c,u]=fn(...n),p=ae(u.missingWarn)?u.missingWarn:e.missingWarn,E=ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=ae(u.escapeParameter)?u.escapeParameter:e.escapeParameter,_=!!u.resolvedMessage,B=O(u.default)||ae(u.default)?ae(u.default)?r?c:()=>c:u.default:o?r?c:()=>c:null,S=o||B!=null&&(O(B)||ee(B)),C=In(e,u);h&&ws(u);let[m,k,b]=_?[c,C,s[C]||X()]:cl(e,c,C,i,E,p),g=m,I=c;if(!_&&!(O(g)||be(g)||Ne(g))&&S&&(g=B,I=g),!_&&(!(O(g)||be(g)||Ne(g))||!O(k)))return a?Ft:c;if(process.env.NODE_ENV!=="production"&&O(g)&&e.messageCompiler==null)return Ae(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let L=!1;const v=()=>{L=!0},x=Ne(g)?g:ul(e,c,k,g,I,v);if(L)return g;const U=Vs(e,k,b,u),oe=Ls(U),ge=Ts(e,x,oe);let Z=l?l(ge,c):ge;if(h&&O(Z)&&(Z=Xa(Z)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Pe={timestamp:Date.now(),key:O(c)?c:Ne(g)?g.key:"",locale:k||(Ne(g)?g.locale:""),format:O(g)?g:Ne(g)?g.source:"",message:Z};Pe.meta=ue({},e.__meta,gs()||{}),ji(Pe)}return Z}function ws(e){ie(e.list)?e.list=e.list.map(n=>O(n)?eo(n):n):K(e.named)&&Object.keys(e.named).forEach(n=>{O(e.named[n])&&(e.named[n]=eo(e.named[n]))})}function cl(e,n,o,l,a,r){const{messages:i,onWarn:s,messageResolver:c,localeFallbacker:u}=e,p=u(e,l,o);let E=X(),h,_=null,B=o,S=null;const C="translate";for(let m=0;m<p.length;m++){if(h=S=p[m],process.env.NODE_ENV!=="production"&&o!==h&&!rl(o,h)&&Ut(a,n)&&s(Ye(he.FALLBACK_TO_TRANSLATE,{key:n,target:h})),process.env.NODE_ENV!=="production"&&o!==h){const I=e.__v_emitter;I&&I.emit("fallback",{type:C,key:n,from:B,to:S,groupId:`${C}:${n}`})}E=i[h]||X();let k=null,b,g;if(process.env.NODE_ENV!=="production"&&De&&(k=window.performance.now(),b="intlify-message-resolve-start",g="intlify-message-resolve-end",ve&&ve(b)),(_=c(E,n))===null&&(_=E[n]),process.env.NODE_ENV!=="production"&&De){const I=window.performance.now(),L=e.__v_emitter;L&&k&&_&&L.emit("message-resolve",{type:"message-resolve",key:n,message:_,time:I-k,groupId:`${C}:${n}`}),b&&g&&ve&&Ke&&(ve(g),Ke("intlify message resolve",b,g))}if(O(_)||be(_)||Ne(_))break;if(!_s(h,p)){const I=Vn(e,n,h,r,C);I!==n&&(_=I)}B=S}return[_,h,E]}function ul(e,n,o,l,a,r){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Ne(l)){const h=l;return h.locale=h.locale||o,h.key=h.key||n,h}if(i==null){const h=(()=>l);return h.locale=o,h.key=n,h}let c=null,u,p;process.env.NODE_ENV!=="production"&&De&&(c=window.performance.now(),u="intlify-message-compilation-start",p="intlify-message-compilation-end",ve&&ve(u));const E=i(l,As(e,o,a,l,s,r));if(process.env.NODE_ENV!=="production"&&De){const h=window.performance.now(),_=e.__v_emitter;_&&c&&_.emit("message-compilation",{type:"message-compilation",message:l,time:h-c,groupId:`translate:${n}`}),u&&p&&ve&&Ke&&(ve(p),Ke("intlify message compilation",u,p))}return E.locale=o,E.key=n,E.source=l,E}function Ts(e,n,o){let l=null,a,r;process.env.NODE_ENV!=="production"&&De&&(l=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",ve&&ve(a));const i=n(o);if(process.env.NODE_ENV!=="production"&&De){const s=window.performance.now(),c=e.__v_emitter;c&&l&&c.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-l,groupId:`translate:${n.key}`}),a&&r&&ve&&Ke&&(ve(r),Ke("intlify message evaluation",a,r))}return i}function fn(...e){const[n,o,l]=e,a=X();if(!O(n)&&!ce(n)&&!Ne(n)&&!be(n))throw Be(pe.INVALID_ARGUMENT);const r=ce(n)?String(n):(Ne(n),n);return ce(o)?a.plural=o:O(o)?a.default=o:j(o)&&!xt(o)?a.named=o:ie(o)&&(a.list=o),ce(l)?a.plural=l:O(l)?a.default=l:j(l)&&ue(a,l),[r,a]}function As(e,n,o,l,a,r){return{locale:n,key:o,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const s=Is(l),c=`Message compilation error: ${i.message}`,u=i.location&&s&&ei(s,i.location.start.offset,i.location.end.offset),p=e.__v_emitter;p&&s&&p.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${o}`}),console.error(u?`${c}
|
|
17
|
-
${u}`:c)}else throw i},onCacheKey:i=>ja(n,o,i)}}function Is(e){if(O(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Vs(e,n,o,l){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:
|
|
16
|
+
*/function Vi(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(je().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(je().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function be(e){return K(e)&&An(e)===0&&(Se(e,"b")||Se(e,"body"))}const zo=["b","body"];function Bi(e){return Me(e,zo)}const Go=["c","cases"];function Oi(e){return Me(e,Go,[])}const Wo=["s","static"];function Di(e){return Me(e,Wo)}const jo=["i","items"];function Pi(e){return Me(e,jo,[])}const Ko=["t","type"];function An(e){return Me(e,Ko)}const Yo=["v","value"];function vt(e,n){const o=Me(e,Yo);if(o!=null)return o;throw ut(n)}const qo=["m","modifier"];function $i(e){return Me(e,qo)}const Xo=["k","key"];function Ri(e){const n=Me(e,Xo);if(n)return n;throw ut(6)}function Me(e,n,o){for(let l=0;l<n.length;l++){const a=n[l];if(Se(e,a)&&e[a]!=null)return e[a]}return o}const Zo=[...zo,...Go,...Wo,...jo,...Xo,...qo,...Yo,...Ko];function ut(e){return new Error(`unhandled node type: ${e}`)}function tn(e){return o=>Mi(o,e)}function Mi(e,n){const o=Bi(n);if(o==null)throw ut(0);if(An(o)===1){const r=Oi(o);return e.plural(r.reduce((i,s)=>[...i,ao(e,s)],[]))}else return ao(e,o)}function ao(e,n){const o=Di(n);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const l=Pi(n).reduce((a,r)=>[...a,cn(e,r)],[]);return e.normalize(l)}}function cn(e,n){const o=An(n);switch(o){case 3:return vt(n,o);case 9:return vt(n,o);case 4:{const l=n;if(Se(l,"k")&&l.k)return e.interpolate(e.named(l.k));if(Se(l,"key")&&l.key)return e.interpolate(e.named(l.key));throw ut(o)}case 5:{const l=n;if(Se(l,"i")&&ce(l.i))return e.interpolate(e.list(l.i));if(Se(l,"index")&&ce(l.index))return e.interpolate(e.list(l.index));throw ut(o)}case 6:{const l=n,a=$i(l),r=Ri(l);return e.linked(cn(e,r),a?cn(e,a):void 0,e.type)}case 7:return vt(n,o);case 8:return vt(n,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const xi="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Fi(e,n){n&&ii(e)&&Ae(Mt(xi,{source:e}))}const Ui=e=>e;let Nt=X();function Hi(e,n={}){let o=!1;const l=n.onError||ri;return n.onError=a=>{o=!0,l(a)},{...Ii(e,n),detectError:o}}function zi(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&O(e)){const o=ae(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Fi(e,o);const a=(n.onCacheKey||Ui)(e),r=Nt[a];if(r)return r;const{ast:i,detectError:s}=Hi(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),c=tn(i);return s?c:Nt[a]=c}else{if(process.env.NODE_ENV!=="production"&&!be(e))return Ae(`the message that is resolve with key '${n.key}' is not supported for jit compilation`),(()=>e);const o=e.cacheKey;if(o){const l=Nt[o];return l||(Nt[o]=tn(e))}else return tn(e)}}let dt=null;function Gi(e){dt=e}function Wi(e,n,o){dt&&dt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:o})}const ji=Ki("function:translate");function Ki(e){return n=>dt&&dt.emit(e,n)}const pe={INVALID_ARGUMENT:oi,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Yi=24;function Be(e){return lt(e,null,process.env.NODE_ENV!=="production"?{messages:qi}:void 0)}const qi={[pe.INVALID_ARGUMENT]:"Invalid arguments",[pe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[pe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[pe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[pe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function In(e,n){return n.locale!=null?io(n.locale):io(e.locale)}let nn;function io(e){if(O(e))return e;if(ee(e)){if(e.resolvedOnce&&nn!=null)return nn;if(e.constructor.name==="Function"){const n=e();if(Ja(n))throw Be(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return nn=n}else throw Be(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Be(pe.NOT_SUPPORT_LOCALE_TYPE)}function Xi(e,n,o){return[...new Set([o,...ie(n)?n:K(n)?Object.keys(n):O(n)?[n]:[o]])]}function Jo(e,n,o){const l=O(o)?o:It,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(l);if(!r){r=[];let i=[o];for(;ie(i);)i=so(r,i,n);const s=ie(n)||!j(n)?n:n.default?n.default:null;i=O(s)?[s]:s,ie(i)&&so(r,i,!1),a.__localeChainCache.set(l,r)}return r}function so(e,n,o){let l=!0;for(let a=0;a<n.length&&ae(l);a++){const r=n[a];O(r)&&(l=Zi(e,n[a],o))}return l}function Zi(e,n,o){let l;const a=n.split("-");do{const r=a.join("-");l=Ji(e,r,o),a.splice(-1,1)}while(a.length&&l===!0);return l}function Ji(e,n,o){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const a=n.replace(/!/g,"");e.push(a),(ie(o)||j(o))&&o[a]&&(l=o[a])}return l}const xe=[];xe[0]={w:[0],i:[3,0],"[":[4],o:[7]};xe[1]={w:[1],".":[2],"[":[4],o:[7]};xe[2]={w:[2],i:[3,0],0:[3,0]};xe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};xe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};xe[5]={"'":[4,0],o:8,l:[5,0]};xe[6]={'"':[4,0],o:8,l:[6,0]};const Qi=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function es(e){return Qi.test(e)}function ts(e){const n=e.charCodeAt(0),o=e.charCodeAt(e.length-1);return n===o&&(n===34||n===39)?e.slice(1,-1):e}function ns(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function os(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:es(n)?ts(n):"*"+n}function ls(e){const n=[];let o=-1,l=0,a=0,r,i,s,c,u,g,_;const p=[];p[0]=()=>{i===void 0?i=s:i+=s},p[1]=()=>{i!==void 0&&(n.push(i),i=void 0)},p[2]=()=>{p[0](),a++},p[3]=()=>{if(a>0)a--,l=4,p[0]();else{if(a=0,i===void 0||(i=os(i),i===!1))return!1;p[1]()}};function E(){const V=e[o+1];if(l===5&&V==="'"||l===6&&V==='"')return o++,s="\\"+V,p[0](),!0}for(;l!==null;)if(o++,r=e[o],!(r==="\\"&&E())){if(c=ns(r),_=xe[l],u=_[c]||_.l||8,u===8||(l=u[0],u[1]!==void 0&&(g=p[u[1]],g&&(s=r,g()===!1))))return;if(l===7)return n}}const co=new Map;function rs(e,n){return K(e)?e[n]:null}function as(e,n){if(!K(e))return null;let o=co.get(n);if(o||(o=ls(n),o&&co.set(n,o)),!o)return null;const l=o.length;let a=e,r=0;for(;r<l;){const i=o[r];if(Zo.includes(i)&&be(a))return null;const s=a[i];if(s===void 0||ee(a))return null;a=s,r++}return a}const he={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},is=8,ss={[he.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[he.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[he.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[he.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ye(e,...n){return Mt(ss[e],...n)}const cs="11.1.12",Ft=-1,It="en-US",Vt="",uo=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function us(){return{upper:(e,n)=>n==="text"&&O(e)?e.toUpperCase():n==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&O(e)?e.toLowerCase():n==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&O(e)?uo(e):n==="vnode"&&K(e)&&"__v_isVNode"in e?uo(e.children):e}}let Qo;function ds(e){Qo=e}let el;function fs(e){el=e}let tl;function ms(e){tl=e}let nl=null;const ps=e=>{nl=e},gs=()=>nl;let ol=null;const fo=e=>{ol=e},hs=()=>ol;let mo=0;function Es(e={}){const n=ee(e.onWarn)?e.onWarn:Ae,o=O(e.version)?e.version:cs,l=O(e.locale)||ee(e.locale)?e.locale:It,a=ee(l)?It:l,r=ie(e.fallbackLocale)||j(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=j(e.messages)?e.messages:on(a),s=j(e.datetimeFormats)?e.datetimeFormats:on(a),c=j(e.numberFormats)?e.numberFormats:on(a),u=ue(X(),e.modifiers,us()),g=e.pluralRules||X(),_=ee(e.missing)?e.missing:null,p=ae(e.missingWarn)||At(e.missingWarn)?e.missingWarn:!0,E=ae(e.fallbackWarn)||At(e.fallbackWarn)?e.fallbackWarn:!0,V=!!e.fallbackFormat,N=!!e.unresolving,C=ee(e.postTranslation)?e.postTranslation:null,m=j(e.processor)?e.processor:null,k=ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,h=ee(e.messageCompiler)?e.messageCompiler:Qo;process.env.NODE_ENV!=="production"&&ee(e.messageCompiler)&&Ga(Ye(he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const I=ee(e.messageResolver)?e.messageResolver:el||rs,L=ee(e.localeFallbacker)?e.localeFallbacker:tl||Xi,v=K(e.fallbackContext)?e.fallbackContext:void 0,x=e,U=K(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,oe=K(x.__numberFormatters)?x.__numberFormatters:new Map,ge=K(x.__meta)?x.__meta:{};mo++;const Z={version:o,cid:mo,locale:l,fallbackLocale:r,messages:i,modifiers:u,pluralRules:g,missing:_,missingWarn:p,fallbackWarn:E,fallbackFormat:V,unresolving:N,postTranslation:C,processor:m,warnHtmlMessage:k,escapeParameter:b,messageCompiler:h,messageResolver:I,localeFallbacker:L,fallbackContext:v,onWarn:n,__meta:ge};return Z.datetimeFormats=s,Z.numberFormats=c,Z.__datetimeFormatters=U,Z.__numberFormatters=oe,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=x.__v_emitter!=null?x.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Wi(Z,o,ge),Z}const on=e=>({[e]:X()});function Ut(e,n){return e instanceof RegExp?e.test(n):e}function ll(e,n){return e instanceof RegExp?e.test(n):e}function Vn(e,n,o,l,a){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:n,type:a,groupId:`${a}:${n}`})}if(r!==null){const s=r(e,o,n,a);return O(s)?s:n}else return process.env.NODE_ENV!=="production"&&ll(l,n)&&i(Ye(he.NOT_FOUND_KEY,{key:n,locale:o})),n}function ct(e,n,o){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,o,n)}function rl(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function _s(e,n){const o=n.indexOf(e);if(o===-1)return!1;for(let l=o+1;l<n.length;l++)if(rl(e,n[l]))return!0;return!1}const po=typeof Intl<"u",al={dateTimeFormat:po&&typeof Intl.DateTimeFormat<"u",numberFormat:po&&typeof Intl.NumberFormat<"u"};function go(e,...n){const{datetimeFormats:o,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!al.dateTimeFormat)return r(Ye(he.CANNOT_FORMAT_DATE)),Vt;const[c,u,g,_]=un(...n),p=ae(g.missingWarn)?g.missingWarn:e.missingWarn,E=ae(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn,V=!!g.part,N=In(e,g),C=i(e,a,N);if(!O(c)||c==="")return new Intl.DateTimeFormat(N,_).format(u);let m={},k,b=null,h=N,I=null;const L="datetime format";for(let U=0;U<C.length;U++){if(k=I=C[U],process.env.NODE_ENV!=="production"&&N!==k&&Ut(E,c)&&r(Ye(he.FALLBACK_TO_DATE_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&N!==k){const oe=e.__v_emitter;oe&&oe.emit("fallback",{type:L,key:c,from:h,to:I,groupId:`${L}:${c}`})}if(m=o[k]||{},b=m[c],j(b))break;Vn(e,c,k,p,L),h=I}if(!j(b)||!O(k))return l?Ft:c;let v=`${k}__${c}`;xt(_)||(v=`${v}__${JSON.stringify(_)}`);let x=s.get(v);return x||(x=new Intl.DateTimeFormat(k,ue({},b,_)),s.set(v,x)),V?x.formatToParts(u):x.format(u)}const il=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function un(...e){const[n,o,l,a]=e,r=X();let i=X(),s;if(O(n)){const c=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Be(pe.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Be(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(Ya(n)){if(isNaN(n.getTime()))throw Be(pe.INVALID_DATE_ARGUMENT);s=n}else if(ce(n))s=n;else throw Be(pe.INVALID_ARGUMENT);return O(o)?r.key=o:j(o)&&Object.keys(o).forEach(c=>{il.includes(c)?i[c]=o[c]:r[c]=o[c]}),O(l)?r.locale=l:j(l)&&(i=l),j(a)&&(i=a),[r.key||"",s,r,i]}function ho(e,n,o){const l=e;for(const a in o){const r=`${n}__${a}`;l.__datetimeFormatters.has(r)&&l.__datetimeFormatters.delete(r)}}function Eo(e,...n){const{numberFormats:o,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!al.numberFormat)return r(Ye(he.CANNOT_FORMAT_NUMBER)),Vt;const[c,u,g,_]=dn(...n),p=ae(g.missingWarn)?g.missingWarn:e.missingWarn,E=ae(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn,V=!!g.part,N=In(e,g),C=i(e,a,N);if(!O(c)||c==="")return new Intl.NumberFormat(N,_).format(u);let m={},k,b=null,h=N,I=null;const L="number format";for(let U=0;U<C.length;U++){if(k=I=C[U],process.env.NODE_ENV!=="production"&&N!==k&&Ut(E,c)&&r(Ye(he.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&N!==k){const oe=e.__v_emitter;oe&&oe.emit("fallback",{type:L,key:c,from:h,to:I,groupId:`${L}:${c}`})}if(m=o[k]||{},b=m[c],j(b))break;Vn(e,c,k,p,L),h=I}if(!j(b)||!O(k))return l?Ft:c;let v=`${k}__${c}`;xt(_)||(v=`${v}__${JSON.stringify(_)}`);let x=s.get(v);return x||(x=new Intl.NumberFormat(k,ue({},b,_)),s.set(v,x)),V?x.formatToParts(u):x.format(u)}const sl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function dn(...e){const[n,o,l,a]=e,r=X();let i=X();if(!ce(n))throw Be(pe.INVALID_ARGUMENT);const s=n;return O(o)?r.key=o:j(o)&&Object.keys(o).forEach(c=>{sl.includes(c)?i[c]=o[c]:r[c]=o[c]}),O(l)?r.locale=l:j(l)&&(i=l),j(a)&&(i=a),[r.key||"",s,r,i]}function _o(e,n,o){const l=e;for(const a in o){const r=`${n}__${a}`;l.__numberFormatters.has(r)&&l.__numberFormatters.delete(r)}}const ks=e=>e,ys=e=>"",Cs="text",vs=e=>e.length===0?"":wn(e),Ns=Qa;function ko(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ss(e){const n=ce(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ce(e.named.count)||ce(e.named.n))?ce(e.named.count)?e.named.count:ce(e.named.n)?e.named.n:n:n}function bs(e,n){n.count||(n.count=e),n.n||(n.n=e)}function Ls(e={}){const n=e.locale,o=Ss(e),l=K(e.pluralRules)&&O(n)&&ee(e.pluralRules[n])?e.pluralRules[n]:ko,a=K(e.pluralRules)&&O(n)&&ee(e.pluralRules[n])?ko:void 0,r=m=>m[l(o,m.length,a)],i=e.list||[],s=m=>i[m],c=e.named||X();ce(e.pluralIndex)&&bs(o,c);const u=m=>c[m];function g(m,k){const b=ee(e.messages)?e.messages(m,!!k):K(e.messages)?e.messages[m]:!1;return b||(e.parent?e.parent.message(m):ys)}const _=m=>e.modifiers?e.modifiers[m]:ks,p=j(e.processor)&&ee(e.processor.normalize)?e.processor.normalize:vs,E=j(e.processor)&&ee(e.processor.interpolate)?e.processor.interpolate:Ns,V=j(e.processor)&&O(e.processor.type)?e.processor.type:Cs,C={list:s,named:u,plural:r,linked:(m,...k)=>{const[b,h]=k;let I="text",L="";k.length===1?K(b)?(L=b.modifier||L,I=b.type||I):O(b)&&(L=b||L):k.length===2&&(O(b)&&(L=b||L),O(h)&&(I=h||I));const v=g(m,!0)(C),x=I==="vnode"&&ie(v)&&L?v[0]:v;return L?_(L)(x,I):x},message:g,type:V,interpolate:E,normalize:p,values:ue(X(),i,c)};return C}const yo=()=>"",Ne=e=>ee(e);function Co(e,...n){const{fallbackFormat:o,postTranslation:l,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:s}=e,[c,u]=fn(...n),g=ae(u.missingWarn)?u.missingWarn:e.missingWarn,_=ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=ae(u.escapeParameter)?u.escapeParameter:e.escapeParameter,E=!!u.resolvedMessage,V=O(u.default)||ae(u.default)?ae(u.default)?r?c:()=>c:u.default:o?r?c:()=>c:null,N=o||V!=null&&(O(V)||ee(V)),C=In(e,u);p&&ws(u);let[m,k,b]=E?[c,C,s[C]||X()]:cl(e,c,C,i,_,g),h=m,I=c;if(!E&&!(O(h)||be(h)||Ne(h))&&N&&(h=V,I=h),!E&&(!(O(h)||be(h)||Ne(h))||!O(k)))return a?Ft:c;if(process.env.NODE_ENV!=="production"&&O(h)&&e.messageCompiler==null)return Ae(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let L=!1;const v=()=>{L=!0},x=Ne(h)?h:ul(e,c,k,h,I,v);if(L)return h;const U=Vs(e,k,b,u),oe=Ls(U),ge=Ts(e,x,oe);let Z=l?l(ge,c):ge;if(p&&O(Z)&&(Z=Xa(Z)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const $e={timestamp:Date.now(),key:O(c)?c:Ne(h)?h.key:"",locale:k||(Ne(h)?h.locale:""),format:O(h)?h:Ne(h)?h.source:"",message:Z};$e.meta=ue({},e.__meta,gs()||{}),ji($e)}return Z}function ws(e){ie(e.list)?e.list=e.list.map(n=>O(n)?eo(n):n):K(e.named)&&Object.keys(e.named).forEach(n=>{O(e.named[n])&&(e.named[n]=eo(e.named[n]))})}function cl(e,n,o,l,a,r){const{messages:i,onWarn:s,messageResolver:c,localeFallbacker:u}=e,g=u(e,l,o);let _=X(),p,E=null,V=o,N=null;const C="translate";for(let m=0;m<g.length;m++){if(p=N=g[m],process.env.NODE_ENV!=="production"&&o!==p&&!rl(o,p)&&Ut(a,n)&&s(Ye(he.FALLBACK_TO_TRANSLATE,{key:n,target:p})),process.env.NODE_ENV!=="production"&&o!==p){const I=e.__v_emitter;I&&I.emit("fallback",{type:C,key:n,from:V,to:N,groupId:`${C}:${n}`})}_=i[p]||X();let k=null,b,h;if(process.env.NODE_ENV!=="production"&&De&&(k=window.performance.now(),b="intlify-message-resolve-start",h="intlify-message-resolve-end",ve&&ve(b)),(E=c(_,n))===null&&(E=_[n]),process.env.NODE_ENV!=="production"&&De){const I=window.performance.now(),L=e.__v_emitter;L&&k&&E&&L.emit("message-resolve",{type:"message-resolve",key:n,message:E,time:I-k,groupId:`${C}:${n}`}),b&&h&&ve&&Ke&&(ve(h),Ke("intlify message resolve",b,h))}if(O(E)||be(E)||Ne(E))break;if(!_s(p,g)){const I=Vn(e,n,p,r,C);I!==n&&(E=I)}V=N}return[E,p,_]}function ul(e,n,o,l,a,r){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Ne(l)){const p=l;return p.locale=p.locale||o,p.key=p.key||n,p}if(i==null){const p=(()=>l);return p.locale=o,p.key=n,p}let c=null,u,g;process.env.NODE_ENV!=="production"&&De&&(c=window.performance.now(),u="intlify-message-compilation-start",g="intlify-message-compilation-end",ve&&ve(u));const _=i(l,As(e,o,a,l,s,r));if(process.env.NODE_ENV!=="production"&&De){const p=window.performance.now(),E=e.__v_emitter;E&&c&&E.emit("message-compilation",{type:"message-compilation",message:l,time:p-c,groupId:`translate:${n}`}),u&&g&&ve&&Ke&&(ve(g),Ke("intlify message compilation",u,g))}return _.locale=o,_.key=n,_.source=l,_}function Ts(e,n,o){let l=null,a,r;process.env.NODE_ENV!=="production"&&De&&(l=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",ve&&ve(a));const i=n(o);if(process.env.NODE_ENV!=="production"&&De){const s=window.performance.now(),c=e.__v_emitter;c&&l&&c.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-l,groupId:`translate:${n.key}`}),a&&r&&ve&&Ke&&(ve(r),Ke("intlify message evaluation",a,r))}return i}function fn(...e){const[n,o,l]=e,a=X();if(!O(n)&&!ce(n)&&!Ne(n)&&!be(n))throw Be(pe.INVALID_ARGUMENT);const r=ce(n)?String(n):(Ne(n),n);return ce(o)?a.plural=o:O(o)?a.default=o:j(o)&&!xt(o)?a.named=o:ie(o)&&(a.list=o),ce(l)?a.plural=l:O(l)?a.default=l:j(l)&&ue(a,l),[r,a]}function As(e,n,o,l,a,r){return{locale:n,key:o,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const s=Is(l),c=`Message compilation error: ${i.message}`,u=i.location&&s&&ei(s,i.location.start.offset,i.location.end.offset),g=e.__v_emitter;g&&s&&g.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${o}`}),console.error(u?`${c}
|
|
17
|
+
${u}`:c)}else throw i},onCacheKey:i=>ja(n,o,i)}}function Is(e){if(O(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Vs(e,n,o,l){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:g}=e,p={locale:n,modifiers:a,pluralRules:r,messages:(E,V)=>{let N=i(o,E);if(N==null&&(g||V)){const[,,C]=cl(g||e,E,n,s,c,u);N=i(C,E)}if(O(N)||be(N)){let C=!1;const k=ul(e,E,n,N,E,()=>{C=!0});return C?yo:k}else return Ne(N)?N:yo}};return e.processor&&(p.processor=e.processor),l.list&&(p.list=l.list),l.named&&(p.named=l.named),ce(l.plural)&&(p.pluralIndex=l.plural),p}Vi();/*!
|
|
18
18
|
* vue-i18n v11.1.12
|
|
19
19
|
* (c) 2025 kazuya kawaguchi
|
|
20
20
|
* Released under the MIT License.
|
|
21
|
-
*/const Bs="11.1.12";function Os(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(je().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(je().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(je().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(je().__INTLIFY_PROD_DEVTOOLS__=!1)}const de={UNEXPECTED_RETURN_TYPE:Yi,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ft(e,...n){return lt(e,null,process.env.NODE_ENV!=="production"?{messages:Ds,args:n}:void 0)}const Ds={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},mn
|
|
22
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Te.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Te.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Bt(e,...n){return Mt(Ps[e],...n)}function mt(e){if(!K(e)||be(e))return e;for(const n in e)if(Se(e,n))if(!n.includes("."))K(e[n])&&mt(e[n]);else{const o=n.split("."),l=o.length-1;let a=e,r=!1;for(let i=0;i<l;i++){if(o[i]==="__proto__")throw new Error(`unsafe key: ${o[i]}`);if(o[i]in a||(a[o[i]]=X()),!K(a[o[i]])){process.env.NODE_ENV!=="production"&&Ae(Bt(Te.IGNORE_OBJ_FLATTEN,{key:o[i]})),r=!0;break}a=a[o[i]]}if(r||(be(a)?Zo.includes(o[l])||delete e[n]:(a[o[l]]=e[n],delete e[n])),!be(a)){const i=a[o[l]];K(i)&&mt(i)}}return e}function fl(e,n){const{messages:o,__i18n:l,messageResolver:a,flatJson:r}=n,i=j(o)?o:ie(l)?X():{[e]:X()};if(ie(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(i[c]=i[c]||X(),wt(u,i[c])):wt(u,i)}else O(s)&&wt(JSON.parse(s),i)}),a==null&&r)for(const s in i)Se(i,s)&&mt(i[s]);return i}function ml(e){return e.type}function Rs(e,n,o){let l=K(n.messages)?n.messages:X();"__i18nGlobal"in o&&(l=fl(e.locale.value,{messages:l,__i18n:o.__i18nGlobal}));const a=Object.keys(l);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(K(n.datetimeFormats)){const r=Object.keys(n.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,n.datetimeFormats[i])})}if(K(n.numberFormats)){const r=Object.keys(n.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,n.numberFormats[i])})}}}function vo(e){return t.createVNode(t.Text,null,e,0)}const No="__INTLIFY_META__",So=()=>[],Ms=()=>!1;let bo=0;function Lo(e){return((n,o,l,a)=>e(o,l,t.getCurrentInstance()||void 0,a))}const xs=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=ml(e)[No])?{[No]:n}:null};function Fs(e={}){const{__root:n,__injectWithOption:o}=e,l=n===void 0,a=e.flatJson,r=De?t.ref:t.shallowRef;let i=ae(e.inheritLocale)?e.inheritLocale:!0;const s=r(n&&i?n.locale.value:O(e.locale)?e.locale:It),c=r(n&&i?n.fallbackLocale.value:O(e.fallbackLocale)||ie(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=r(fl(s.value,e)),p=r(j(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),E=r(j(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=n?n.missingWarn:ae(e.missingWarn)||At(e.missingWarn)?e.missingWarn:!0,_=n?n.fallbackWarn:ae(e.fallbackWarn)||At(e.fallbackWarn)?e.fallbackWarn:!0,B=n?n.fallbackRoot:ae(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,C=ee(e.missing)?e.missing:null,m=ee(e.missing)?Lo(e.missing):null,k=ee(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const I=n?n.modifiers:j(e.modifiers)?e.modifiers:{};let L=e.pluralRules||n&&n.pluralRules,v;v=(()=>{l&&fo(null);const y={version:Bs,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:I,pluralRules:L,missing:m===null?void 0:m,missingWarn:h,fallbackWarn:_,fallbackFormat:S,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:b,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};y.datetimeFormats=p.value,y.numberFormats=E.value,y.__datetimeFormatters=j(v)?v.__datetimeFormatters:void 0,y.__numberFormatters=j(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(y.__v_emitter=j(v)?v.__v_emitter:void 0);const T=Es(y);return l&&fo(T),T})(),ct(v,s.value,c.value);function U(){return[s.value,c.value,u.value,p.value,E.value]}const oe=t.computed({get:()=>s.value,set:y=>{v.locale=y,s.value=y}}),ge=t.computed({get:()=>c.value,set:y=>{v.fallbackLocale=y,c.value=y,ct(v,s.value,y)}}),Z=t.computed(()=>u.value),Pe=t.computed(()=>p.value),Xe=t.computed(()=>E.value);function P(){return ee(k)?k:null}function V(y){k=y,v.postTranslation=y}function H(){return C}function R(y){y!==null&&(m=Lo(y)),C=y,v.missing=m}function Ie(y,T){return y!=="translate"||!T.resolvedMessage}const fe=(y,T,Y,re,He,_t)=>{U();let Ze;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(v.fallbackContext=n?hs():void 0),Ze=y(v)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(v.fallbackContext=void 0)}if(Y!=="translate exists"&&ce(Ze)&&Ze===Ft||Y==="translate exists"&&!Ze){const[ze,nr]=T();if(process.env.NODE_ENV!=="production"&&n&&O(ze)&&Ie(Y,nr)&&(B&&(Ut(_,ze)||ll(h,ze))&&Ae(Bt(Te.FALLBACK_TO_ROOT,{key:ze,type:Y})),process.env.NODE_ENV!=="production")){const{__v_emitter:Wn}=v;Wn&&B&&Wn.emit("fallback",{type:Y,key:ze,to:"global",groupId:`${Y}:${ze}`})}return n&&B?re(n):He(ze)}else{if(_t(Ze))return Ze;throw ft(de.UNEXPECTED_RETURN_TYPE)}};function Fe(...y){return fe(T=>Reflect.apply(Co,null,[T,...y]),()=>fn(...y),"translate",T=>Reflect.apply(T.t,T,[...y]),T=>T,T=>O(T))}function Gt(...y){const[T,Y,re]=y;if(re&&!K(re))throw ft(de.INVALID_ARGUMENT);return Fe(T,Y,ue({resolvedMessage:!0},re||{}))}function Wt(...y){return fe(T=>Reflect.apply(go,null,[T,...y]),()=>un(...y),"datetime format",T=>Reflect.apply(T.d,T,[...y]),()=>Vt,T=>O(T)||ie(T))}function jt(...y){return fe(T=>Reflect.apply(Eo,null,[T,...y]),()=>dn(...y),"number format",T=>Reflect.apply(T.n,T,[...y]),()=>Vt,T=>O(T)||ie(T))}function Kt(y){return y.map(T=>O(T)||ce(T)||ae(T)?vo(String(T)):T)}const Yt={normalize:Kt,interpolate:y=>y,type:"vnode"};function ht(...y){return fe(T=>{let Y;const re=T;try{re.processor=Yt,Y=Reflect.apply(Co,null,[re,...y])}finally{re.processor=null}return Y},()=>fn(...y),"translate",T=>T[mn](...y),T=>[vo(T)],T=>ie(T))}function qt(...y){return fe(T=>Reflect.apply(Eo,null,[T,...y]),()=>dn(...y),"number format",T=>T[gn](...y),So,T=>O(T)||ie(T))}function Et(...y){return fe(T=>Reflect.apply(go,null,[T,...y]),()=>un(...y),"datetime format",T=>T[pn](...y),So,T=>O(T)||ie(T))}function Xt(y){L=y,v.pluralRules=L}function Zt(y,T){return fe(()=>{if(!y)return!1;const Y=O(T)?T:s.value,re=Ue(Y),He=v.messageResolver(re,y);return be(He)||Ne(He)||O(He)},()=>[y],"translate exists",Y=>Reflect.apply(Y.te,Y,[y,T]),Ms,Y=>ae(Y))}function at(y){let T=null;const Y=Jo(v,c.value,s.value);for(let re=0;re<Y.length;re++){const He=u.value[Y[re]]||{},_t=v.messageResolver(He,y);if(_t!=null){T=_t;break}}return T}function it(y){const T=at(y);return T??(n?n.tm(y)||{}:{})}function Ue(y){return u.value[y]||{}}function st(y,T){if(a){const Y={[y]:T};for(const re in Y)Se(Y,re)&&mt(Y[re]);T=Y[y]}u.value[y]=T,v.messages=u.value}function Jt(y,T){u.value[y]=u.value[y]||{};const Y={[y]:T};if(a)for(const re in Y)Se(Y,re)&&mt(Y[re]);T=Y[y],wt(T,u.value[y]),v.messages=u.value}function d(y){return p.value[y]||{}}function f(y,T){p.value[y]=T,v.datetimeFormats=p.value,ho(v,y,T)}function N(y,T){p.value[y]=ue(p.value[y]||{},T),v.datetimeFormats=p.value,ho(v,y,T)}function D(y){return E.value[y]||{}}function Q(y,T){E.value[y]=T,v.numberFormats=E.value,_o(v,y,T)}function le(y,T){E.value[y]=ue(E.value[y]||{},T),v.numberFormats=E.value,_o(v,y,T)}bo++,n&&De&&(t.watch(n.locale,y=>{i&&(s.value=y,v.locale=y,ct(v,s.value,c.value))}),t.watch(n.fallbackLocale,y=>{i&&(c.value=y,v.fallbackLocale=y,ct(v,s.value,c.value))}));const W={id:bo,locale:oe,fallbackLocale:ge,get inheritLocale(){return i},set inheritLocale(y){i=y,y&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,ct(v,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Z,get modifiers(){return I},get pluralRules(){return L||{}},get isGlobal(){return l},get missingWarn(){return h},set missingWarn(y){h=y,v.missingWarn=h},get fallbackWarn(){return _},set fallbackWarn(y){_=y,v.fallbackWarn=_},get fallbackRoot(){return B},set fallbackRoot(y){B=y},get fallbackFormat(){return S},set fallbackFormat(y){S=y,v.fallbackFormat=S},get warnHtmlMessage(){return b},set warnHtmlMessage(y){b=y,v.warnHtmlMessage=y},get escapeParameter(){return g},set escapeParameter(y){g=y,v.escapeParameter=y},t:Fe,getLocaleMessage:Ue,setLocaleMessage:st,mergeLocaleMessage:Jt,getPostTranslationHandler:P,setPostTranslationHandler:V,getMissingHandler:H,setMissingHandler:R,[$s]:Xt};return W.datetimeFormats=Pe,W.numberFormats=Xe,W.rt=Gt,W.te=Zt,W.tm=it,W.d=Wt,W.n=jt,W.getDateTimeFormat=d,W.setDateTimeFormat=f,W.mergeDateTimeFormat=N,W.getNumberFormat=D,W.setNumberFormat=Q,W.mergeNumberFormat=le,W[dl]=o,W[mn]=ht,W[pn]=Et,W[gn]=qt,process.env.NODE_ENV!=="production"&&(W[hn]=y=>{v.__v_emitter=y},W[En]=()=>{v.__v_emitter=void 0}),W}function wo(e,n){}const Bn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Us({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((l,a)=>[...l,...a.type===t.Fragment?a.children:[a]],[]):n.reduce((o,l)=>{const a=e[l];return a&&(o[l]=a()),o},X())}function pl(){return t.Fragment}ue({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ce(e)||!isNaN(e)}},Bn);function Hs(e){return ie(e)&&!O(e[0])}function gl(e,n,o,l){const{slots:a,attrs:r}=n;return()=>{const i={part:!0};let s=X();e.locale&&(i.locale=e.locale),O(e.format)?i.key=e.format:K(e.format)&&(O(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((h,_)=>o.includes(_)?ue(X(),h,{[_]:e.format[_]}):h,X()));const c=l(e.value,i,s);let u=[i.key];ie(c)?u=c.map((h,_)=>{const B=a[h.type],S=B?B({[h.type]:h.value,index:_,parts:c}):[h.value];return Hs(S)&&(S[0].key=`${h.type}-${_}`),S}):O(c)&&(u=[c]);const p=ue(X(),r),E=O(e.tag)||K(e.tag)?e.tag:pl();return t.h(E,p,u)}}ue({value:{type:Number,required:!0},format:{type:[String,Object]}},Bn);const zs=$e("global-vue-i18n");function pt(e={}){const n=t.getCurrentInstance();if(n==null)throw ft(de.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw ft(de.NOT_INSTALLED);const o=Gs(n),l=js(o),a=ml(n),r=Ws(e,a);if(r==="global")return Rs(l,e,a),l;if(r==="parent"){let c=Ks(o,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ae(Bt(Te.NOT_FOUND_PARENT_SCOPE)),c=l),c}const i=o;let s=i.__getInstance(n);if(s==null){const c=ue({},e);"__i18n"in a&&(c.__i18n=a.__i18n),l&&(c.__root=l),s=Fs(c),i.__composerExtend&&(s[_n]=i.__composerExtend(s)),qs(i,n,s),i.__setInstance(n,s)}else process.env.NODE_ENV!=="production"&&r==="local"&&Ae(Bt(Te.DUPLICATE_USE_I18N_CALLING));return s}function Gs(e){const n=t.inject(e.isCE?zs:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw ft(e.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return n}function Ws(e,n){return xt(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function js(e){return e.mode==="composition"?e.global:e.global.__composer}function Ks(e,n,o=!1){let l=null;const a=n.root;let r=Ys(n,o);for(;r!=null;){const i=e;if(e.mode==="composition")l=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(r);s!=null&&(l=s.__composer,o&&l&&!l[dl]&&(l=null))}if(l!=null||a===r)break;r=r.parent}return l}function Ys(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function qs(e,n,o){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=o,l=ti();const a=o;a[hn]&&a[hn](l),l.on("*",wo)}},n),t.onUnmounted(()=>{const a=o;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(l&&l.off("*",wo),a[En]&&a[En](),delete n.vnode.el.__VUE_I18N__),e.__deleteInstance(n);const r=a[_n];r&&(r(),delete a[_n])},n)}ue({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Bn);Os();ds(zi);fs(as);ms(Jo);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=je();e.__INTLIFY__=!0,Gi(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const q=t.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let n;typeof document<"u"&&(n=import("bootstrap"));const o=e,l=t.ref(),a=t.ref(),r=t.ref();return t.onMounted(async()=>{t.nextTick(async()=>{const i=await n;typeof document<"u"&&a.value&&r.value&&(l.value=new i.Tooltip(a.value,{trigger:"hover",html:!0,placement:o.placement,title:r.value.innerHTML,customClass:"tooltip-custom"}))})}),t.onBeforeUnmount(async()=>{l.value?.dispose()}),(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("span",t.mergeProps({ref_key:"$tooltip",ref:a},i.$attrs),[t.renderSlot(i.$slots,"default")],16),t.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:r},[t.renderSlot(i.$slots,"content",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])],512)],64))}}),Xs=t.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const n=e,o=t.computed(()=>`data:image/svg+xml;base64,${r.value}`),l=t.computed(()=>({flowable:i.value?i.value.flowable:!1})),a=t.computed(()=>({backgroundImage:`url(${o.value})`})),r=t.computed(()=>{let c=i.value&&i.value.icon?window.atob(i.value.icon):void 0;c||(c='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');const u=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;let p=Ce(u?"--bs-gray-900":"--bs-black")??"#FFFFFF";return n.theme&&(p=(n.theme==="dark"?Ce("--bs-gray-900"):Ce("--bs-black"))??p),n.variable&&(p=Ce(n.variable)??p),c=c.replace(/currentColor/g,p),window.btoa(c)}),i=t.computed(()=>n.cls?(n.icons||{})[s(n.cls)]:n.customIcon);function s(c){return c.includes("$")?c.substring(0,c.indexOf("$")):c}return(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([l.value,"wrapper"])},[c.onlyIcon?(t.openBlock(),t.createElementBlock("div",{key:1,class:"icon",style:t.normalizeStyle(a.value)},null,4)):(t.openBlock(),t.createBlock(q,{key:0,title:c.cls},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle(a.value)},null,4)]),_:1},8,["title"]))],2))}}),On=$(Xs,[["__scopeId","data-v-23f8d853"]]),Zs={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Js=["aria-hidden","aria-label"],Qs=["fill","width","height"],ec={d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"},tc={key:0};function nc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon open-in-new-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ec,[o.title?(t.openBlock(),t.createElementBlock("title",tc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Qs))],16,Js)}const hl=$(Zs,[["render",nc]]),oc={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lc=["aria-hidden","aria-label"],rc=["fill","width","height"],ac={d:"M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z"},ic={key:0};function sc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-all-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ac,[o.title?(t.openBlock(),t.createElementBlock("title",ic,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,rc))],16,lc)}const cc=$(oc,[["render",sc]]),uc={class:"dependency-text d-flex flex-column flex-grow-1"},dc={class:"dependency-flow-text text-truncate"},fc={class:"dependency-namespace-text text-truncate"},mc={class:"text-white top-button-div"},pc=t.defineComponent({name:"Dependencies",inheritAttrs:!1,__name:"DependenciesNode",props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0}},emits:[w.EVENTS.EXPAND_DEPENDENCIES,w.EVENTS.OPEN_LINK,w.EVENTS.MOUSE_OVER,w.EVENTS.MOUSE_LEAVE],setup(e,{emit:n}){const o=n,{t:l}=pt(),a=t.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
21
|
+
*/const Bs="11.1.12";function Os(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(je().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(je().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(je().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(je().__INTLIFY_PROD_DEVTOOLS__=!1)}const de={UNEXPECTED_RETURN_TYPE:Yi,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ft(e,...n){return lt(e,null,process.env.NODE_ENV!=="production"?{messages:Ds,args:n}:void 0)}const Ds={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},mn=Pe("__translateVNode"),pn=Pe("__datetimeParts"),gn=Pe("__numberParts"),hn=Pe("__enableEmitter"),En=Pe("__disableEmitter"),Ps=Pe("__setPluralRules"),dl=Pe("__injectWithOption"),_n=Pe("__dispose"),Te={FALLBACK_TO_ROOT:is,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},$s={[Te.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Te.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Te.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Te.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
22
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Te.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Te.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Bt(e,...n){return Mt($s[e],...n)}function mt(e){if(!K(e)||be(e))return e;for(const n in e)if(Se(e,n))if(!n.includes("."))K(e[n])&&mt(e[n]);else{const o=n.split("."),l=o.length-1;let a=e,r=!1;for(let i=0;i<l;i++){if(o[i]==="__proto__")throw new Error(`unsafe key: ${o[i]}`);if(o[i]in a||(a[o[i]]=X()),!K(a[o[i]])){process.env.NODE_ENV!=="production"&&Ae(Bt(Te.IGNORE_OBJ_FLATTEN,{key:o[i]})),r=!0;break}a=a[o[i]]}if(r||(be(a)?Zo.includes(o[l])||delete e[n]:(a[o[l]]=e[n],delete e[n])),!be(a)){const i=a[o[l]];K(i)&&mt(i)}}return e}function fl(e,n){const{messages:o,__i18n:l,messageResolver:a,flatJson:r}=n,i=j(o)?o:ie(l)?X():{[e]:X()};if(ie(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(i[c]=i[c]||X(),wt(u,i[c])):wt(u,i)}else O(s)&&wt(JSON.parse(s),i)}),a==null&&r)for(const s in i)Se(i,s)&&mt(i[s]);return i}function ml(e){return e.type}function Rs(e,n,o){let l=K(n.messages)?n.messages:X();"__i18nGlobal"in o&&(l=fl(e.locale.value,{messages:l,__i18n:o.__i18nGlobal}));const a=Object.keys(l);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(K(n.datetimeFormats)){const r=Object.keys(n.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,n.datetimeFormats[i])})}if(K(n.numberFormats)){const r=Object.keys(n.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,n.numberFormats[i])})}}}function vo(e){return t.createVNode(t.Text,null,e,0)}const No="__INTLIFY_META__",So=()=>[],Ms=()=>!1;let bo=0;function Lo(e){return((n,o,l,a)=>e(o,l,t.getCurrentInstance()||void 0,a))}const xs=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=ml(e)[No])?{[No]:n}:null};function Fs(e={}){const{__root:n,__injectWithOption:o}=e,l=n===void 0,a=e.flatJson,r=De?t.ref:t.shallowRef;let i=ae(e.inheritLocale)?e.inheritLocale:!0;const s=r(n&&i?n.locale.value:O(e.locale)?e.locale:It),c=r(n&&i?n.fallbackLocale.value:O(e.fallbackLocale)||ie(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=r(fl(s.value,e)),g=r(j(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),_=r(j(e.numberFormats)?e.numberFormats:{[s.value]:{}});let p=n?n.missingWarn:ae(e.missingWarn)||At(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:ae(e.fallbackWarn)||At(e.fallbackWarn)?e.fallbackWarn:!0,V=n?n.fallbackRoot:ae(e.fallbackRoot)?e.fallbackRoot:!0,N=!!e.fallbackFormat,C=ee(e.missing)?e.missing:null,m=ee(e.missing)?Lo(e.missing):null,k=ee(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter;const I=n?n.modifiers:j(e.modifiers)?e.modifiers:{};let L=e.pluralRules||n&&n.pluralRules,v;v=(()=>{l&&fo(null);const y={version:Bs,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:I,pluralRules:L,missing:m===null?void 0:m,missingWarn:p,fallbackWarn:E,fallbackFormat:N,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:b,escapeParameter:h,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};y.datetimeFormats=g.value,y.numberFormats=_.value,y.__datetimeFormatters=j(v)?v.__datetimeFormatters:void 0,y.__numberFormatters=j(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(y.__v_emitter=j(v)?v.__v_emitter:void 0);const T=Es(y);return l&&fo(T),T})(),ct(v,s.value,c.value);function U(){return[s.value,c.value,u.value,g.value,_.value]}const oe=t.computed({get:()=>s.value,set:y=>{v.locale=y,s.value=y}}),ge=t.computed({get:()=>c.value,set:y=>{v.fallbackLocale=y,c.value=y,ct(v,s.value,y)}}),Z=t.computed(()=>u.value),$e=t.computed(()=>g.value),Xe=t.computed(()=>_.value);function $(){return ee(k)?k:null}function B(y){k=y,v.postTranslation=y}function H(){return C}function R(y){y!==null&&(m=Lo(y)),C=y,v.missing=m}function Ie(y,T){return y!=="translate"||!T.resolvedMessage}const fe=(y,T,Y,re,He,_t)=>{U();let Ze;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(v.fallbackContext=n?hs():void 0),Ze=y(v)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(v.fallbackContext=void 0)}if(Y!=="translate exists"&&ce(Ze)&&Ze===Ft||Y==="translate exists"&&!Ze){const[ze,nr]=T();if(process.env.NODE_ENV!=="production"&&n&&O(ze)&&Ie(Y,nr)&&(V&&(Ut(E,ze)||ll(p,ze))&&Ae(Bt(Te.FALLBACK_TO_ROOT,{key:ze,type:Y})),process.env.NODE_ENV!=="production")){const{__v_emitter:Wn}=v;Wn&&V&&Wn.emit("fallback",{type:Y,key:ze,to:"global",groupId:`${Y}:${ze}`})}return n&&V?re(n):He(ze)}else{if(_t(Ze))return Ze;throw ft(de.UNEXPECTED_RETURN_TYPE)}};function Fe(...y){return fe(T=>Reflect.apply(Co,null,[T,...y]),()=>fn(...y),"translate",T=>Reflect.apply(T.t,T,[...y]),T=>T,T=>O(T))}function Gt(...y){const[T,Y,re]=y;if(re&&!K(re))throw ft(de.INVALID_ARGUMENT);return Fe(T,Y,ue({resolvedMessage:!0},re||{}))}function Wt(...y){return fe(T=>Reflect.apply(go,null,[T,...y]),()=>un(...y),"datetime format",T=>Reflect.apply(T.d,T,[...y]),()=>Vt,T=>O(T)||ie(T))}function jt(...y){return fe(T=>Reflect.apply(Eo,null,[T,...y]),()=>dn(...y),"number format",T=>Reflect.apply(T.n,T,[...y]),()=>Vt,T=>O(T)||ie(T))}function Kt(y){return y.map(T=>O(T)||ce(T)||ae(T)?vo(String(T)):T)}const Yt={normalize:Kt,interpolate:y=>y,type:"vnode"};function ht(...y){return fe(T=>{let Y;const re=T;try{re.processor=Yt,Y=Reflect.apply(Co,null,[re,...y])}finally{re.processor=null}return Y},()=>fn(...y),"translate",T=>T[mn](...y),T=>[vo(T)],T=>ie(T))}function qt(...y){return fe(T=>Reflect.apply(Eo,null,[T,...y]),()=>dn(...y),"number format",T=>T[gn](...y),So,T=>O(T)||ie(T))}function Et(...y){return fe(T=>Reflect.apply(go,null,[T,...y]),()=>un(...y),"datetime format",T=>T[pn](...y),So,T=>O(T)||ie(T))}function Xt(y){L=y,v.pluralRules=L}function Zt(y,T){return fe(()=>{if(!y)return!1;const Y=O(T)?T:s.value,re=Ue(Y),He=v.messageResolver(re,y);return be(He)||Ne(He)||O(He)},()=>[y],"translate exists",Y=>Reflect.apply(Y.te,Y,[y,T]),Ms,Y=>ae(Y))}function at(y){let T=null;const Y=Jo(v,c.value,s.value);for(let re=0;re<Y.length;re++){const He=u.value[Y[re]]||{},_t=v.messageResolver(He,y);if(_t!=null){T=_t;break}}return T}function it(y){const T=at(y);return T??(n?n.tm(y)||{}:{})}function Ue(y){return u.value[y]||{}}function st(y,T){if(a){const Y={[y]:T};for(const re in Y)Se(Y,re)&&mt(Y[re]);T=Y[y]}u.value[y]=T,v.messages=u.value}function Jt(y,T){u.value[y]=u.value[y]||{};const Y={[y]:T};if(a)for(const re in Y)Se(Y,re)&&mt(Y[re]);T=Y[y],wt(T,u.value[y]),v.messages=u.value}function d(y){return g.value[y]||{}}function f(y,T){g.value[y]=T,v.datetimeFormats=g.value,ho(v,y,T)}function S(y,T){g.value[y]=ue(g.value[y]||{},T),v.datetimeFormats=g.value,ho(v,y,T)}function D(y){return _.value[y]||{}}function Q(y,T){_.value[y]=T,v.numberFormats=_.value,_o(v,y,T)}function le(y,T){_.value[y]=ue(_.value[y]||{},T),v.numberFormats=_.value,_o(v,y,T)}bo++,n&&De&&(t.watch(n.locale,y=>{i&&(s.value=y,v.locale=y,ct(v,s.value,c.value))}),t.watch(n.fallbackLocale,y=>{i&&(c.value=y,v.fallbackLocale=y,ct(v,s.value,c.value))}));const W={id:bo,locale:oe,fallbackLocale:ge,get inheritLocale(){return i},set inheritLocale(y){i=y,y&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,ct(v,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Z,get modifiers(){return I},get pluralRules(){return L||{}},get isGlobal(){return l},get missingWarn(){return p},set missingWarn(y){p=y,v.missingWarn=p},get fallbackWarn(){return E},set fallbackWarn(y){E=y,v.fallbackWarn=E},get fallbackRoot(){return V},set fallbackRoot(y){V=y},get fallbackFormat(){return N},set fallbackFormat(y){N=y,v.fallbackFormat=N},get warnHtmlMessage(){return b},set warnHtmlMessage(y){b=y,v.warnHtmlMessage=y},get escapeParameter(){return h},set escapeParameter(y){h=y,v.escapeParameter=y},t:Fe,getLocaleMessage:Ue,setLocaleMessage:st,mergeLocaleMessage:Jt,getPostTranslationHandler:$,setPostTranslationHandler:B,getMissingHandler:H,setMissingHandler:R,[Ps]:Xt};return W.datetimeFormats=$e,W.numberFormats=Xe,W.rt=Gt,W.te=Zt,W.tm=it,W.d=Wt,W.n=jt,W.getDateTimeFormat=d,W.setDateTimeFormat=f,W.mergeDateTimeFormat=S,W.getNumberFormat=D,W.setNumberFormat=Q,W.mergeNumberFormat=le,W[dl]=o,W[mn]=ht,W[pn]=Et,W[gn]=qt,process.env.NODE_ENV!=="production"&&(W[hn]=y=>{v.__v_emitter=y},W[En]=()=>{v.__v_emitter=void 0}),W}function wo(e,n){}const Bn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Us({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((l,a)=>[...l,...a.type===t.Fragment?a.children:[a]],[]):n.reduce((o,l)=>{const a=e[l];return a&&(o[l]=a()),o},X())}function pl(){return t.Fragment}ue({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ce(e)||!isNaN(e)}},Bn);function Hs(e){return ie(e)&&!O(e[0])}function gl(e,n,o,l){const{slots:a,attrs:r}=n;return()=>{const i={part:!0};let s=X();e.locale&&(i.locale=e.locale),O(e.format)?i.key=e.format:K(e.format)&&(O(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((p,E)=>o.includes(E)?ue(X(),p,{[E]:e.format[E]}):p,X()));const c=l(e.value,i,s);let u=[i.key];ie(c)?u=c.map((p,E)=>{const V=a[p.type],N=V?V({[p.type]:p.value,index:E,parts:c}):[p.value];return Hs(N)&&(N[0].key=`${p.type}-${E}`),N}):O(c)&&(u=[c]);const g=ue(X(),r),_=O(e.tag)||K(e.tag)?e.tag:pl();return t.h(_,g,u)}}ue({value:{type:Number,required:!0},format:{type:[String,Object]}},Bn);const zs=Pe("global-vue-i18n");function pt(e={}){const n=t.getCurrentInstance();if(n==null)throw ft(de.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw ft(de.NOT_INSTALLED);const o=Gs(n),l=js(o),a=ml(n),r=Ws(e,a);if(r==="global")return Rs(l,e,a),l;if(r==="parent"){let c=Ks(o,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ae(Bt(Te.NOT_FOUND_PARENT_SCOPE)),c=l),c}const i=o;let s=i.__getInstance(n);if(s==null){const c=ue({},e);"__i18n"in a&&(c.__i18n=a.__i18n),l&&(c.__root=l),s=Fs(c),i.__composerExtend&&(s[_n]=i.__composerExtend(s)),qs(i,n,s),i.__setInstance(n,s)}else process.env.NODE_ENV!=="production"&&r==="local"&&Ae(Bt(Te.DUPLICATE_USE_I18N_CALLING));return s}function Gs(e){const n=t.inject(e.isCE?zs:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw ft(e.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return n}function Ws(e,n){return xt(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function js(e){return e.mode==="composition"?e.global:e.global.__composer}function Ks(e,n,o=!1){let l=null;const a=n.root;let r=Ys(n,o);for(;r!=null;){const i=e;if(e.mode==="composition")l=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(r);s!=null&&(l=s.__composer,o&&l&&!l[dl]&&(l=null))}if(l!=null||a===r)break;r=r.parent}return l}function Ys(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function qs(e,n,o){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=o,l=ti();const a=o;a[hn]&&a[hn](l),l.on("*",wo)}},n),t.onUnmounted(()=>{const a=o;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(l&&l.off("*",wo),a[En]&&a[En](),delete n.vnode.el.__VUE_I18N__),e.__deleteInstance(n);const r=a[_n];r&&(r(),delete a[_n])},n)}ue({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Bn);Os();ds(zi);fs(as);ms(Jo);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=je();e.__INTLIFY__=!0,Gi(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const q=t.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let n;typeof document<"u"&&(n=import("bootstrap"));const o=e,l=t.ref(),a=t.ref(),r=t.ref();return t.onMounted(async()=>{t.nextTick(async()=>{const i=await n;typeof document<"u"&&a.value&&r.value&&(l.value=new i.Tooltip(a.value,{trigger:"hover",html:!0,placement:o.placement,title:r.value.innerHTML,customClass:"tooltip-custom"}))})}),t.onBeforeUnmount(async()=>{l.value?.dispose()}),(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("span",t.mergeProps({ref_key:"$tooltip",ref:a},i.$attrs),[t.renderSlot(i.$slots,"default")],16),t.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:r},[t.renderSlot(i.$slots,"content",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])],512)],64))}}),Xs=t.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const n=e,o=t.computed(()=>`data:image/svg+xml;base64,${r.value}`),l=t.computed(()=>({flowable:i.value?i.value.flowable:!1})),a=t.computed(()=>({backgroundImage:`url(${o.value})`})),r=t.computed(()=>{let c=i.value&&i.value.icon?window.atob(i.value.icon):void 0;c||(c='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');const u=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;let g=Ce(u?"--bs-gray-900":"--bs-black")??"#FFFFFF";return n.theme&&(g=(n.theme==="dark"?Ce("--bs-gray-900"):Ce("--bs-black"))??g),n.variable&&(g=Ce(n.variable)??g),c=c.replace(/currentColor/g,g),window.btoa(c)}),i=t.computed(()=>n.cls?(n.icons||{})[s(n.cls)]:n.customIcon);function s(c){return c.includes("$")?c.substring(0,c.indexOf("$")):c}return(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([l.value,"wrapper"])},[c.onlyIcon?(t.openBlock(),t.createElementBlock("div",{key:1,class:"icon",style:t.normalizeStyle(a.value)},null,4)):(t.openBlock(),t.createBlock(q,{key:0,title:c.cls},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle(a.value)},null,4)]),_:1},8,["title"]))],2))}}),On=P(Xs,[["__scopeId","data-v-23f8d853"]]),Zs={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Js=["aria-hidden","aria-label"],Qs=["fill","width","height"],ec={d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"},tc={key:0};function nc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon open-in-new-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ec,[o.title?(t.openBlock(),t.createElementBlock("title",tc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Qs))],16,Js)}const hl=P(Zs,[["render",nc]]),oc={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lc=["aria-hidden","aria-label"],rc=["fill","width","height"],ac={d:"M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z"},ic={key:0};function sc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-all-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ac,[o.title?(t.openBlock(),t.createElementBlock("title",ic,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,rc))],16,lc)}const cc=P(oc,[["render",sc]]),uc={class:"dependency-text d-flex flex-column flex-grow-1"},dc={class:"dependency-flow-text text-truncate"},fc={class:"dependency-namespace-text text-truncate"},mc={class:"text-white top-button-div"},pc=t.defineComponent({name:"Dependencies",inheritAttrs:!1,__name:"DependenciesNode",props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0}},emits:[w.EVENTS.EXPAND_DEPENDENCIES,w.EVENTS.OPEN_LINK,w.EVENTS.MOUSE_OVER,w.EVENTS.MOUSE_LEAVE],setup(e,{emit:n}){const o=n,{t:l}=pt(),a=t.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
23
23
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.34546 9.63757C4.74074 10.5277 5.31782 11.3221 6.03835 11.9681L7.03434 10.8209C6.4739 10.3185 6.02504 9.70059 5.71758 9.00824C5.41012 8.3159 5.25111 7.56496 5.25111 6.80532C5.25111 6.04568 5.41012 5.29475 5.71758 4.6024C6.02504 3.91006 6.4739 3.29216 7.03434 2.78977L6.03835 1.64258C5.31782 2.28851 4.74074 3.08293 4.34546 3.97307C3.95019 4.86321 3.74575 5.82867 3.74575 6.80532C3.74575 7.78197 3.95019 8.74744 4.34546 9.63757ZM16.955 4.38931C17.4802 3.97411 18.1261 3.74777 18.7913 3.74576C19.5894 3.74576 20.3547 4.06807 20.919 4.64177C21.4833 5.21548 21.8004 5.9936 21.8004 6.80494C21.8004 7.61628 21.4833 8.3944 20.919 8.96811C20.3547 9.54181 19.5894 9.86412 18.7913 9.86412C18.2559 9.86126 17.7312 9.71144 17.2725 9.43048L12.3325 14.4529L11.2688 13.3715L16.2088 8.34906C16.0668 8.10583 15.9592 7.84348 15.8891 7.56973H11.2688V6.04014H15.8891C16.055 5.38511 16.4298 4.80451 16.955 4.38931ZM17.9555 8.07674C18.2029 8.24482 18.4938 8.33453 18.7913 8.33453C19.1902 8.33412 19.5727 8.17284 19.8548 7.88607C20.1368 7.59931 20.2955 7.21049 20.2959 6.80494C20.2959 6.50241 20.2076 6.20668 20.0423 5.95514C19.877 5.70361 19.642 5.50756 19.3671 5.39178C19.0922 5.27601 18.7897 5.24572 18.4978 5.30474C18.206 5.36376 17.9379 5.50944 17.7275 5.72336C17.5171 5.93727 17.3738 6.20982 17.3157 6.50653C17.2577 6.80324 17.2875 7.11079 17.4014 7.39029C17.5152 7.66978 17.7081 7.90867 17.9555 8.07674ZM3.74621 15.2177V16.7473H7.19606L2.2417 21.7842L3.30539 22.8656L8.25975 17.8287V21.336H9.76427V15.2177H3.74621ZM15.7823 18.2769H12.7733V19.8064H15.7823V22.1008H21.8004V15.9825H15.7823V18.2769ZM17.2868 20.5712V17.5121H20.2959V20.5712H17.2868ZM8.02885 9.67292C7.62863 9.31407 7.30809 8.87275 7.08853 8.37827C6.86897 7.88378 6.75542 7.34747 6.75542 6.80494C6.75542 6.26241 6.86897 5.72609 7.08853 5.23161C7.30809 4.73713 7.62863 4.29581 8.02885 3.93696L9.02484 5.08415C8.78458 5.29946 8.59215 5.5643 8.46034 5.86106C8.32853 6.15782 8.26035 6.47971 8.26035 6.80532C8.26035 7.13094 8.32853 7.45282 8.46034 7.74958C8.59215 8.04634 8.78458 8.31118 9.02484 8.52649L8.02885 9.67292Z" fill="white"/>
|
|
24
|
-
</svg>`));return(r,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass([[`border-${e.data.color}`],"dependency-node-wrapper rounded-3 border"])},[t.createVNode(On,{"custom-icon":{icon:a.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),t.createElementVNode("div",uc,[t.createElementVNode("div",dc,[t.createVNode(q,{title:e.data.flowId},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),t.createElementVNode("div",fc,[t.createVNode(q,{title:e.data.namespace},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),t.createElementVNode("div",mc,[t.renderSlot(r.$slots,"badge-button-before",{},void 0,!0),e.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>r.$emit(t.unref(w.EVENTS).OPEN_LINK,e.data))},[t.createVNode(q,{title:t.unref(l)("open")},{default:t.withCtx(()=>[t.createVNode(hl,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),e.data.expandEnabled?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[1]||(i[1]=s=>o(t.unref(w.EVENTS).EXPAND_DEPENDENCIES,e.data))},[t.createVNode(q,{title:t.unref(l)("expand")},{default:t.withCtx(()=>[t.createVNode(cc,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"badge-button-after",{},void 0,!0)])],2),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),gc=$(pc,[["__scopeId","data-v-2271d5b0"]]);var Oe=(e=>(e.Lines="lines",e.Dots="dots",e))(Oe||{});const El=function({dimensions:e,size:n,color:o}){return t.h("path",{stroke:o,"stroke-width":n,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},_l=function({radius:e,color:n}){return t.h("circle",{cx:e,cy:e,r:e,fill:n})};Oe.Lines+"",Oe.Dots+"";const hc={[Oe.Dots]:"#81818a",[Oe.Lines]:"#eee"},Ec=["id","x","y","width","height","patternTransform"],_c={key:2,height:"100",width:"100"},kc=["fill"],yc=["x","y","fill"],Cc={name:"Background",compatConfig:{MODE:3}},vc=t.defineComponent({...Cc,props:{id:{},variant:{default:()=>Oe.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:n,viewport:o}=ne.useVueFlow(),l=t.computed(()=>{const i=o.value.zoom,[s,c]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[s*i||1,c*i||1],p=e.size*i,[E,h]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset],_=[E*i||1+u[0]/2,h*i||1+u[1]/2];return{scaledGap:u,offset:_,size:p}}),a=t.toRef(()=>`pattern-${n}${e.id?`-${e.id}`:""}`),r=t.toRef(()=>e.color||e.patternColor||hc[e.variant||Oe.Dots]);return(i,s)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:t.normalizeStyle({height:`${i.height>100?100:i.height}%`,width:`${i.width>100?100:i.width}%`})},[t.renderSlot(i.$slots,"pattern-container",{id:a.value},()=>[t.createElementVNode("pattern",{id:a.value,x:t.unref(o).x%l.value.scaledGap[0],y:t.unref(o).y%l.value.scaledGap[1],width:l.value.scaledGap[0],height:l.value.scaledGap[1],patternTransform:`translate(-${l.value.offset[0]},-${l.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[t.renderSlot(i.$slots,"pattern",{},()=>[i.variant===t.unref(Oe).Lines?(t.openBlock(),t.createBlock(t.unref(El),{key:0,size:i.lineWidth,color:r.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):i.variant===t.unref(Oe).Dots?(t.openBlock(),t.createBlock(t.unref(_l),{key:1,color:r.value,radius:l.value.size/2},null,8,["color","radius"])):t.createCommentVNode("",!0),i.bgColor?(t.openBlock(),t.createElementBlock("svg",_c,[t.createElementVNode("rect",{width:"100%",height:"100%",fill:i.bgColor},null,8,kc)])):t.createCommentVNode("",!0)])],8,Ec)]),t.createElementVNode("rect",{x:i.x,y:i.y,width:"100%",height:"100%",fill:`url(#${a.value})`},null,8,yc),t.renderSlot(i.$slots,"default",{id:a.value})],4))}}),Nc={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sc=["aria-hidden","aria-label"],bc=["fill","width","height"],Lc={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},wc={key:0};function Tc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Lc,[o.title?(t.openBlock(),t.createElementBlock("title",wc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,bc))],16,Sc)}const Ac=$(Nc,[["render",Tc]]),Ic={class:"top-button-div text-white d-flex"},Vc={inheritAttrs:!1,components:{Tooltip:q},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){const e=this.data.taskNode;if(e?.type?.endsWith("SubflowGraphTask")){const n=e.task.subflowId??e.task;return n.namespace+" "+n.flowId}return w.Utils.afterLastDot(this.id)}}},Bc=Object.assign(Vc,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:ne.Position,default:void 0},targetPosition:{type:ne.Position,default:void 0},id:{type:String,default:void 0}},emits:[w.EVENTS.COLLAPSE],setup(e,{emit:n}){const o=e,l=n,a=()=>{l(w.EVENTS.COLLAPSE,o.id)};return(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.classes)},[t.createElementVNode("span",{class:t.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},t.toDisplayString(r.clusterName),3),t.createElementVNode("div",Ic,[e.data.collapsable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>a())},[t.createVNode(q,{title:r.$t("collapse")},{default:t.withCtx(()=>[t.createVNode(Ac,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)])],2))}}),Oc=$(Bc,[["__scopeId","data-v-0c251e77"]]),Dc={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$c=["aria-hidden","aria-label"],Pc=["fill","width","height"],Rc={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Mc={key:0};function xc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Rc,[o.title?(t.openBlock(),t.createElementBlock("title",Mc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Pc))],16,$c)}const kl=$(Dc,[["render",xc]]),Fc={name:"Dot",components:{Handle:ne.Handle,CircleIcon:kl},inheritAttrs:!1,props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},label:{type:String,default:void 0}},computed:{classes(){return{"unused-path":this.data.unused,[w.Utils.afterLastDot(this.data.node.type)]:!0}}}},Uc=Object.assign(Fc,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.classes)},[t.createVNode(t.unref(ne.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass(["dot",n.classes])},[t.createVNode(kl,{class:t.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),t.createVNode(t.unref(ne.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),Hc=$(Uc,[["__scopeId","data-v-666f472b"]]),zc={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Gc=["aria-hidden","aria-label"],Wc=["fill","width","height"],jc={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Kc={key:0};function Yc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",jc,[o.title?(t.openBlock(),t.createElementBlock("title",Kc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Wc))],16,Gc)}const qc=$(zc,[["render",Yc]]),Xc={class:"add-task-div rounded d-flex justify-content-center align-items-center"},Zc=t.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",Xc,[n.addTask?(t.openBlock(),t.createBlock(qc,{key:0,alt:"add task icon"})):t.createCommentVNode("",!0)]))}}),Jc=$(Zc,[["__scopeId","data-v-4afc4738"]]),Qc=["id","d","marker-end"],eu=t.defineComponent({inheritAttrs:!1,__name:"EdgeNode",props:{id:{type:String,default:void 0},data:{type:Object,default:void 0},sourceX:{type:Number,default:void 0},sourceY:{type:Number,default:void 0},targetX:{type:Number,default:void 0},targetY:{type:Number,default:void 0},markerEnd:{type:String,default:void 0},sourcePosition:{type:String,default:void 0},targetPosition:{type:String,default:void 0}},setup(e){const n=e,o=t.computed(()=>n.data?{"vue-flow__edge-path":!0,["stroke-"+n.data.color]:n.data.color,"unused-path":n.data.unused}:{});let l=i=>i;try{const{t:i}=pt();l=i}catch{}const a=t.computed(()=>{const{haveAdd:i}=n.data??{};return`${l("add task")} ${i?.length===2?`${l(i[1])} ${i[0]}`:""}`.trim()}),r=t.computed(()=>ne.getSmoothStepPath(n));return(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[r.value?.length?(t.openBlock(),t.createElementBlock("path",{key:0,id:e.id,class:t.normalizeClass(o.value),style:t.normalizeStyle(e.data.haveDashArray?{strokeDasharray:"2"}:{}),d:r.value[0],"marker-end":e.markerEnd},null,14,Qc)):t.createCommentVNode("",!0),r.value?.length?(t.openBlock(),t.createBlock(t.unref(ne.EdgeLabelRenderer),{key:1,style:{"z-index":"10"}},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${r.value[1]}px,${r.value[2]}px)`})},[t.createVNode(q,{title:a.value},{default:t.withCtx(()=>[e.data.haveAdd?(t.openBlock(),t.createBlock(Jc,{key:0,"add-task":!0,onClick:s[0]||(s[0]=c=>i.$emit(t.unref(w.EVENTS).ADD_TASK,e.data.haveAdd)),class:t.normalizeClass({"text-danger":e.data.color})},null,8,["class"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})):t.createCommentVNode("",!0)],64))}}),tu=$(eu,[["__scopeId","data-v-5e05a3ec"]]),nu=["innerHTML"],ou=t.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const n=e;t.watch(()=>n.histories,(_,B)=>{B[0].date!==_[0].date&&s()});const o=t.ref(""),l=t.ref();t.onMounted(()=>{s()});const a=t.computed(()=>n.histories?.length&&new Date(n.histories[0].date.toString()).getTime()),r=t.computed(()=>n.histories[n.histories.length-1]),i=t.computed(()=>n.histories.filter(_=>_.date.isValid()&&_.date&&_.state));function s(){l.value||(l.value=setInterval(()=>{E(),n.histories&&!te.isRunning(r.value.state)&&c()},100))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){return p()-a.value}function p(){return!n.histories||te.isRunning(r.value.state)?+new Date:new Date(r.value.date.toString()).getTime()}function E(){o.value=i.value.length===0?" ":w.humanDuration(u()/1e3)}function h(_){return"ks-duration-tt-square-"+_.toLowerCase()}return t.onBeforeUnmount(()=>{c()}),(_,B)=>(t.openBlock(),t.createBlock(q,{key:r.value.date.toString()},{content:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(S,C)=>(t.openBlock(),t.createElementBlock("span",{key:"tt-"+C,class:"ks-duration-tt"},[t.createElementVNode("span",{class:t.normalizeClass(["ks-duration-tt-square",h(S.state)])},null,2),t.createElementVNode("strong",null,t.toDisplayString(S.state)+": ",1),t.createTextVNode(t.toDisplayString(w.dateFilter(S.date.toISOString(),"iso"))+" ",1),B[0]||(B[0]=t.createElementVNode("br",null,null,-1))]))),128))]),default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:o.value},null,8,nu)]),_:1}))}}),lu={class:"btn-group content rounded-1 content-children text-truncate"},ru={key:0,class:"taskRunCount"},au={key:1},iu={key:2},su=t.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{},state:{}},setup(e){const n=e,o=t.computed(()=>n.execution?.taskRunList?n.execution.taskRunList:[]),l=t.computed(()=>o.value.filter(r=>r.taskId===w.afterLastDot(n.uid??""))),a=t.computed(()=>{if(!l.value)return;const r=Math.max(...l.value.filter(s=>s.state.histories&&s.state.histories.length>0).map(s=>new Date(s.state.histories[s.state.histories.length-1].date).getTime())),i=Math.max(...l.value.map(s=>en.duration(s.state.duration).asMilliseconds()/1e3,0));return[{date:en(r).subtract(i,"second"),state:"CREATED"},{date:en(r),state:n.state}]});return(r,i)=>(t.openBlock(),t.createElementBlock("div",lu,[l.value.length>0?(t.openBlock(),t.createElementBlock("span",ru,t.toDisplayString(l.value.length)+" task runs",1)):t.createCommentVNode("",!0),l.value.length>0?(t.openBlock(),t.createElementBlock("span",au," | ")):t.createCommentVNode("",!0),a.value?(t.openBlock(),t.createElementBlock("span",iu,[t.createVNode(ou,{histories:a.value},null,8,["histories"])])):t.createCommentVNode("",!0)]))}}),cu=$(su,[["__scopeId","data-v-96fa5d6e"]]),uu={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},du=["aria-hidden","aria-label"],fu=["fill","width","height"],mu={d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"},pu={key:0};function gu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon information-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",mu,[o.title?(t.openBlock(),t.createElementBlock("title",pu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,fu))],16,du)}const hu=$(uu,[["render",gu]]),Eu={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_u=["aria-hidden","aria-label"],ku=["fill","width","height"],yu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},Cu={key:0};function vu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",yu,[o.title?(t.openBlock(),t.createElementBlock("title",Cu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ku))],16,_u)}const Dn=$(Eu,[["render",vu]]),Nu={class:"icon rounded"},Su={class:"node-content"},bu={class:"d-flex node-title"},Lu={class:"text-truncate task-title"},wu={key:0,class:"d-flex"},Tu={class:"text-white top-button-div"},Au=t.defineComponent({name:"BasicNode",inheritAttrs:!1,__name:"BasicNode",props:{id:{},title:{},type:{},disabled:{type:Boolean},state:{},data:{},icons:{},iconComponent:{},class:{}},emits:[w.EVENTS.EXPAND,w.EVENTS.OPEN_LINK,w.EVENTS.SHOW_LOGS,w.EVENTS.MOUSE_OVER,w.EVENTS.MOUSE_LEAVE,w.EVENTS.ADD_ERROR,w.EVENTS.EDIT,w.EVENTS.DELETE,w.EVENTS.ADD_TASK,w.EVENTS.SHOW_DESCRIPTION],setup(e,{emit:n}){const o=n,l=e;function a(){o(w.EVENTS.MOUSE_OVER,l.data.node)}function r(){o(w.EVENTS.MOUSE_LEAVE)}const i=t.computed(()=>l.data?.expandable||!1),s=t.computed(()=>{const _=l.data.node.task??l.data.node.trigger??null;return _?_.description??null:null}),c=t.computed(()=>w.Utils.afterLastDot(l.id??"")),u=t.computed(()=>["default","danger"].includes(l.data.color)?"":l.data.color),p=t.computed(()=>[{"unused-path":l.data.unused,disabled:l.data.node.task?.disabled||l.data.parent?.taskNode?.task?.disabled},l.class]),E=t.computed(()=>{if(l.data.node.triggerDeclaration)return l.data.node.triggerDeclaration.type;if(l.data.node?.task)return l.data.node.task.type}),h=t.computed(()=>{if(l.data.node.type?.endsWith("SubflowGraphTask")){const _=l.data.node.task.subflowId??l.data.node.task;return _.namespace+" "+_.flowId}return c.value});return(_,B)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["node-wrapper rounded-3",{...p.value,"running-border-animation":_.state==="RUNNING"}]),style:t.normalizeStyle({borderColor:_.state?`var(--ks-border-${_.state.toLowerCase()})`:void 0}),onMouseover:a,onMouseleave:r},[t.createElementVNode("div",Nu,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.iconComponent||On),{cls:E.value,class:t.normalizeClass([u.value,"rounded bg-white"]),theme:"light",icons:_.icons},null,8,["cls","class","icons"]))]),t.createElementVNode("div",Su,[t.createElementVNode("div",bu,[t.createElementVNode("div",Lu,[t.createVNode(q,{title:h.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(_.title??c.value),1)]),_:1},8,["title"])]),s.value?(t.openBlock(),t.createElementBlock("span",wu,[t.createVNode(q,{title:_.$t("show description"),class:"d-flex align-items-center"},{default:t.withCtx(()=>[t.createVNode(hu,{onClick:B[0]||(B[0]=S=>_.$emit(t.unref(w.EVENTS).SHOW_DESCRIPTION,{id:c.value,description:s.value})),class:"description-button ms-2"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),t.renderSlot(_.$slots,"content",{},void 0,!0)]),t.createElementVNode("div",Tu,[t.renderSlot(_.$slots,"badge-button-before",{},void 0,!0),_.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${_.data.color}`]]),onClick:B[1]||(B[1]=S=>_.$emit(t.unref(w.EVENTS).OPEN_LINK,{link:_.data.link}))},[t.createVNode(q,{title:_.$t("open")},{default:t.withCtx(()=>[t.createVNode(hl,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${_.data.color}`]]),onClick:B[2]||(B[2]=S=>_.$emit(t.unref(w.EVENTS).EXPAND))},[t.createVNode(q,{title:_.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Dn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(_.$slots,"badge-button-after",{},void 0,!0)])],38))}}),yl=$(Au,[["__scopeId","data-v-394f20a4"]]),$n=Symbol("execution-injection-key"),Cl=Symbol("subflows-executions-injection-key"),Iu={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Vu=["aria-hidden","aria-label"],Bu=["fill","width","height"],Ou={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"},Du={key:0};function $u(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ou,[o.title?(t.openBlock(),t.createElementBlock("title",Du,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Bu))],16,Vu)}const Pn=$(Iu,[["render",$u]]),Pu={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ru=["aria-hidden","aria-label"],Mu=["fill","width","height"],xu={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},Fu={key:0};function Uu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon delete-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",xu,[o.title?(t.openBlock(),t.createElementBlock("title",Fu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Mu))],16,Ru)}const Rn=$(Pu,[["render",Uu]]),Hu={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zu=["aria-hidden","aria-label"],Gu=["fill","width","height"],Wu={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"},ju={key:0};function Ku(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Wu,[o.title?(t.openBlock(),t.createElementBlock("title",ju,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gu))],16,zu)}const Yu=$(Hu,[["render",Ku]]),qu={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xu=["aria-hidden","aria-label"],Zu=["fill","width","height"],Ju={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Qu={key:0};function ed(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ju,[o.title?(t.openBlock(),t.createElementBlock("title",Qu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zu))],16,Xu)}const td=$(qu,[["render",ed]]),nd={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},od=["aria-hidden","aria-label"],ld=["fill","width","height"],rd={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"},ad={key:0};function id(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon send-lock-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",rd,[o.title?(t.openBlock(),t.createElementBlock("title",ad,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ld))],16,od)}const sd=$(nd,[["render",id]]),cd={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ud=["aria-hidden","aria-label"],dd=["fill","width","height"],fd={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},md={key:0};function pd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",fd,[o.title?(t.openBlock(),t.createElementBlock("title",md,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,dd))],16,ud)}const gd=$(cd,[["render",pd]]),hd={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ed=["aria-hidden","aria-label"],_d=["fill","width","height"],kd={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},yd={key:0};function Cd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",kd,[o.title?(t.openBlock(),t.createElementBlock("title",yd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_d))],16,Ed)}const vl=$(hd,[["render",Cd]]),vd={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Nd=["aria-hidden","aria-label"],Sd=["fill","width","height"],bd={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},Ld={key:0};function wd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",bd,[o.title?(t.openBlock(),t.createElementBlock("title",Ld,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Sd))],16,Nd)}const Mn=$(vd,[["render",wd]]),Td={name:"SkipForwardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ad=["aria-hidden","aria-label"],Id=["fill","width","height"],Vd={d:"M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12"},Bd={key:0};function Od(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-forward-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Vd,[o.title?(t.openBlock(),t.createElementBlock("title",Bd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Id))],16,Ad)}const Dd=$(Td,[["render",Od]]),$d=t.defineComponent({name:"TaskNode",inheritAttrs:!1,__name:"TaskNode",props:{data:{},sourcePosition:{default:ne.Position.Right},targetPosition:{default:ne.Position.Left},id:{},icons:{default:void 0},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},playgroundEnabled:{type:Boolean},playgroundReadyToStart:{type:Boolean}},setup(e,{emit:n}){const o=e,l=n,a=t.inject($n),r=t.inject(Cl),i=t.computed(()=>o.data.color??"primary"),s=t.computed(()=>w.Utils.afterLastDot(o.id)),c=t.computed(()=>{const C=o.data.executionId;if(C)return C===a?.value?.id?a?.value:Object.values(r?.value||{}).find(m=>m.id===C)}),u=t.computed(()=>c.value&&c.value.taskRunList?c.value.taskRunList:[]),p=t.computed(()=>u.value.filter(C=>C.taskId===w.Utils.afterLastDot(o.data.node.uid))),E=t.computed(()=>{if(!p.value?.length)return null;if(p.value.length===1)return p.value[0].state.current;const C=p.value.map(b=>b.state.current),m=[te.FAILED,te.KILLED,te.WARNING,te.SKIPPED,te.KILLING,te.RUNNING,te.SUCCESS,te.RESTARTED,te.CREATED];return C.map(b=>[m.indexOf(b[1]),b]).sort().map(b=>b[1])[0]}),h=t.computed(()=>({"execution-no-taskrun":!!(c.value&&p.value&&p.value.length===0)})),_=t.computed(()=>({id:o.id,type:String(o.data.node.task.type)})),B=t.computed(()=>{if(o.data.node.type?.endsWith("SubflowGraphTask")&&o.enableSubflowInteraction){const C=o.data.node.task.subflowId??o.data.node.task;return{...o.data,link:{namespace:C.namespace,id:C.flowId,executionId:c.value?.taskRunList.filter(m=>m.taskId===o.data.node.task.id&&m.outputs?.executionId)?.[0]?.outputs?.executionId}}}return o.data}),S=t.computed(()=>{if(E.value===te.RUNNING)return"task is running";if(E.value===te.SUCCESS)return"task was successful";if(E.value===te.WARNING)return"task sent a warning";if(E.value===te.SKIPPED)return"task was skipped";if(E.value===te.FAILED)return"task failed"});return(C,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:C.sourcePosition},null,8,["position"]),t.createVNode(yl,{id:C.id,data:B.value,state:E.value,class:t.normalizeClass(h.value),icons:C.icons,"icon-component":C.iconComponent,onShowDescription:m[6]||(m[6]=k=>l(t.unref(w.EVENTS).SHOW_DESCRIPTION,k)),onExpand:m[7]||(m[7]=k=>l(t.unref(w.EVENTS).EXPAND,_.value)),onOpenLink:m[8]||(m[8]=k=>l(t.unref(w.EVENTS).OPEN_LINK,k)),onMouseover:m[9]||(m[9]=k=>l(t.unref(w.EVENTS).MOUSE_OVER,k)),onMouseleave:m[10]||(m[10]=k=>l(t.unref(w.EVENTS).MOUSE_LEAVE))},{content:t.withCtx(()=>[c.value?(t.openBlock(),t.createBlock(cu,{key:0,execution:c.value,task:C.data.node.task,color:i.value,uid:C.data.node.uid,state:E.value},null,8,["execution","task","color","uid","state"])):t.createCommentVNode("",!0),C.data.node.task?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[C.playgroundEnabled&&C.playgroundReadyToStart?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"playground-button",onClick:m[0]||(m[0]=k=>l(t.unref(w.EVENTS).RUN_TASK,{task:C.data.node.task}))},[t.createVNode(q,{style:{display:"flex"},title:C.$t("run task in playground")},{default:t.withCtx(()=>[t.createVNode(gd,{class:"button-play-icon",alt:C.$t("run task in playground")},null,8,["alt"])]),_:1},8,["title"])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"playground-button",style:t.normalizeStyle({color:`var(--ks-content-${E.value?.toLowerCase()})`,backgroundColor:`var(--ks-background-${E.value?.toLowerCase()})`})},[t.createVNode(q,{style:{display:"flex"},title:S.value?C.$t(S.value):void 0},{default:t.withCtx(()=>[E.value===t.unref(te).RUNNING?(t.openBlock(),t.createBlock(Uo,{key:0,alt:S.value?C.$t(S.value):void 0},null,8,["alt"])):E.value===t.unref(te).SUCCESS?(t.openBlock(),t.createBlock(vl,{key:1,alt:S.value?C.$t(S.value):void 0},null,8,["alt"])):E.value===t.unref(te).WARNING?(t.openBlock(),t.createBlock(Mn,{key:2,alt:S.value?C.$t(S.value):void 0},null,8,["alt"])):E.value===t.unref(te).SKIPPED?(t.openBlock(),t.createBlock(Dd,{key:3,alt:S.value?C.$t(S.value):void 0},null,8,["alt"])):E.value===t.unref(te).FAILED?(t.openBlock(),t.createBlock(Tt,{key:4,alt:S.value?C.$t(S.value):void 0},null,8,["alt"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4))],64)):t.createCommentVNode("",!0)]),"badge-button-before":t.withCtx(()=>[C.data.node.task&&C.data.node.task.runIf?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",["bg-warning"]]),onClick:m[1]||(m[1]=k=>l(t.unref(w.EVENTS).SHOW_CONDITION,{id:s.value,task:C.data.node.task,section:t.unref(w.SECTIONS).TASKS}))},[t.createVNode(q,{title:C.$t("show task condition")},{default:t.withCtx(()=>[t.createVNode(sd,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[2]||(m[2]=k=>l(t.unref(w.EVENTS).SHOW_LOGS,{id:s.value,execution:c.value,taskRuns:p.value}))},[t.createVNode(q,{title:C.$t("show task logs")},{default:t.withCtx(()=>[t.createVNode(Yu,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly&&C.data.isFlowable?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[3]||(m[3]=k=>l(t.unref(w.EVENTS).ADD_ERROR,{task:C.data.node.task}))},[t.createVNode(q,{title:C.$t("add error handler")},{default:t.withCtx(()=>[t.createVNode(td,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[4]||(m[4]=k=>l(t.unref(w.EVENTS).EDIT,{task:C.data.node.task,section:t.unref(w.SECTIONS).TASKS}))},[t.createVNode(q,{title:C.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Pn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:4,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[5]||(m[5]=k=>l(t.unref(w.EVENTS).DELETE,{id:s.value,section:t.unref(w.SECTIONS).TASKS}))},[t.createVNode(q,{title:C.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Rn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:C.targetPosition},null,8,["position"])],64))}}),Pd=$($d,[["__scopeId","data-v-a1d3d303"]]),Rd={name:"Task",inheritAttrs:!1,inject:{execution:{from:$n}},computed:{SECTIONS(){return w.SECTIONS},EVENTS(){return w.EVENTS},color(){return this.data.color??"primary"},formattedData(){return{...this.data,unused:this.data.node?.triggerDeclaration?.disabled||this.data.node?.trigger?.disabled}},triggerId(){return w.Utils.afterLastDot(this.id)}},emits:[w.EVENTS.DELETE,w.EVENTS.EDIT,w.EVENTS.SHOW_DESCRIPTION],components:{Delete:Rn,Pencil:Pn,Handle:ne.Handle,Tooltip:q},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,n){this.$emit(e,n)}}},Md=Object.assign(Rd,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(yl,{id:e.id,data:n.formattedData,color:n.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:o[2]||(o[2]=l=>n.forwardEvent(t.unref(w.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[3]||(o[3]=l=>n.forwardEvent(t.unref(w.EVENTS).EXPAND,{id:e.id}))},t.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:t.withCtx(()=>[n.execution?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(t.unref(w.EVENTS).EDIT,{task:e.data.node.triggerDeclaration,section:t.unref(w.SECTIONS).TRIGGERS}))},[t.createVNode(q,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Pn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),n.execution?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[1]||(o[1]=l=>n.$emit(t.unref(w.EVENTS).DELETE,{id:n.triggerId,section:t.unref(w.SECTIONS).TRIGGERS}))},[t.createVNode(q,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Rn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),xd={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Fd=["aria-hidden","aria-label"],Ud=["fill","width","height"],Hd={d:"M11 15H6L13 1V9H18L11 23V15Z"},zd={key:0};function Gd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Hd,[o.title?(t.openBlock(),t.createElementBlock("title",zd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ud))],16,Fd)}const Wd=$(xd,[["render",Gd]]),jd={class:"collapsed-cluster-node d-flex"},Kd={class:"node-text"},Yd={class:"text-white top-button-div"},qd={components:{Tooltip:q,Handle:ne.Handle,ArrowExpand:Dn,LightningBolt:Wd},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 w.EVENTS},expandable(){return this.data?.expandable||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},Xd=Object.assign(qd,{__name:"CollapsedClusterNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",jd,[t.createElementVNode("span",Kd,[e.data.iconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.data.iconComponent),{key:0,class:t.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(w.Utils).afterLastDot(e.id)),1)]),t.createElementVNode("div",Yd,[t.renderSlot(n.$slots,"badge-button-before",{},void 0,!0),n.expandable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(t.unref(w.EVENTS).EXPAND,{id:e.id}))},[t.createVNode(q,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Dn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"badge-button-after",{},void 0,!0)])]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Zd=$(Xd,[["__scopeId","data-v-89413b39"]]),Jd={name:"SplitCellsVerticalIcon",emits:["click"]},Qd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ef(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",Qd,[...n[0]||(n[0]=[t.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[t.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),t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_1111_7266"},[t.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)])])}const tf=$(Jd,[["render",ef],["__scopeId","data-v-084c51e6"]]),nf={name:"SplitCellsHorizontalIcon",emits:["click"]},of={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lf(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",of,[...n[0]||(n[0]=[t.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[t.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),t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_796_3996"},[t.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)])])}const rf=$(nf,[["render",lf],["__scopeId","data-v-c77c1469"]]),af={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sf=["aria-hidden","aria-label"],cf=["fill","width","height"],uf={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},df={key:0};function ff(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon download-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",uf,[o.title?(t.openBlock(),t.createElementBlock("title",df,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,cf))],16,sf)}const mf=$(af,[["render",ff]]);function pf(e,n){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 o=document.implementation.createHTMLDocument(),l=o.createElement("base"),a=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(a),n&&(l.href=n),a.href=e,a.href}const gf=(()=>{let e=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${n()}${e}`)})();function Re(e){const n=[];for(let o=0,l=e.length;o<l;o++)n.push(e[o]);return n}let Je=null;function Nl(e={}){return Je||(e.includeStyleProperties?(Je=e.includeStyleProperties,Je):(Je=Re(window.getComputedStyle(document.documentElement)),Je))}function Ot(e,n){const l=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(n);return l?parseFloat(l.replace("px","")):0}function hf(e){const n=Ot(e,"border-left-width"),o=Ot(e,"border-right-width");return e.clientWidth+n+o}function Ef(e){const n=Ot(e,"border-top-width"),o=Ot(e,"border-bottom-width");return e.clientHeight+n+o}function Sl(e,n={}){const o=n.width||hf(e),l=n.height||Ef(e);return{width:o,height:l}}function _f(){let e,n;try{n=process}catch{}const o=n&&n.env?n.env.devicePixelRatio:null;return o&&(e=parseInt(o,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const ke=16384;function kf(e){(e.width>ke||e.height>ke)&&(e.width>ke&&e.height>ke?e.width>e.height?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke):e.width>ke?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke))}function Dt(e){return new Promise((n,o)=>{const l=new Image;l.onload=()=>{l.decode().then(()=>{requestAnimationFrame(()=>n(l))})},l.onerror=o,l.crossOrigin="anonymous",l.decoding="async",l.src=e})}async function yf(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function Cf(e,n,o){const l="http://www.w3.org/2000/svg",a=document.createElementNS(l,"svg"),r=document.createElementNS(l,"foreignObject");return a.setAttribute("width",`${n}`),a.setAttribute("height",`${o}`),a.setAttribute("viewBox",`0 0 ${n} ${o}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),a.appendChild(r),r.appendChild(e),yf(a)}const Ee=(e,n)=>{if(e instanceof n)return!0;const o=Object.getPrototypeOf(e);return o===null?!1:o.constructor.name===n.name||Ee(o,n)};function vf(e){const n=e.getPropertyValue("content");return`${e.cssText} content: '${n.replace(/'|"/g,"")}';`}function Nf(e,n){return Nl(n).map(o=>{const l=e.getPropertyValue(o),a=e.getPropertyPriority(o);return`${o}: ${l}${a?" !important":""};`}).join(" ")}function Sf(e,n,o,l){const a=`.${e}:${n}`,r=o.cssText?vf(o):Nf(o,l);return document.createTextNode(`${a}{${r}}`)}function To(e,n,o,l){const a=window.getComputedStyle(e,o),r=a.getPropertyValue("content");if(r===""||r==="none")return;const i=gf();try{n.className=`${n.className} ${i}`}catch{return}const s=document.createElement("style");s.appendChild(Sf(i,o,a,l)),n.appendChild(s)}function bf(e,n,o){To(e,n,":before",o),To(e,n,":after",o)}const Ao="application/font-woff",Io="image/jpeg",Lf={woff:Ao,woff2:Ao,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Io,jpeg:Io,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function wf(e){const n=/\.([^./]*?)$/g.exec(e);return n?n[1]:""}function xn(e){const n=wf(e).toLowerCase();return Lf[n]||""}function Tf(e){return e.split(/,/)[1]}function kn(e){return e.search(/^(data:)/)!==-1}function Af(e,n){return`data:${n};base64,${e}`}async function bl(e,n,o){const l=await fetch(e,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const a=await l.blob();return new Promise((r,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{r(o({res:l,result:s.result}))}catch(c){i(c)}},s.readAsDataURL(a)})}const ln={};function If(e,n,o){let l=e.replace(/\?.*/,"");return o&&(l=e),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),n?`[${n}]${l}`:l}async function Fn(e,n,o){const l=If(e,n,o.includeQueryParams);if(ln[l]!=null)return ln[l];o.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const r=await bl(e,o.fetchRequestInit,({res:i,result:s})=>(n||(n=i.headers.get("Content-Type")||""),Tf(s)));a=Af(r,n)}catch(r){a=o.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;r&&(i=typeof r=="string"?r:r.message),i&&console.warn(i)}return ln[l]=a,a}async function Vf(e){const n=e.toDataURL();return n==="data:,"?e.cloneNode(!1):Dt(n)}async function Bf(e,n){if(e.currentSrc){const r=document.createElement("canvas"),i=r.getContext("2d");r.width=e.clientWidth,r.height=e.clientHeight,i?.drawImage(e,0,0,r.width,r.height);const s=r.toDataURL();return Dt(s)}const o=e.poster,l=xn(o),a=await Fn(o,l,n);return Dt(a)}async function Of(e,n){var o;try{if(!((o=e?.contentDocument)===null||o===void 0)&&o.body)return await Ht(e.contentDocument.body,n,!0)}catch{}return e.cloneNode(!1)}async function Df(e,n){return Ee(e,HTMLCanvasElement)?Vf(e):Ee(e,HTMLVideoElement)?Bf(e,n):Ee(e,HTMLIFrameElement)?Of(e,n):e.cloneNode(Ll(e))}const $f=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Ll=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Pf(e,n,o){var l,a;if(Ll(n))return n;let r=[];return $f(e)&&e.assignedNodes?r=Re(e.assignedNodes()):Ee(e,HTMLIFrameElement)&&(!((l=e.contentDocument)===null||l===void 0)&&l.body)?r=Re(e.contentDocument.body.childNodes):r=Re(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),r.length===0||Ee(e,HTMLVideoElement)||await r.reduce((i,s)=>i.then(()=>Ht(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function Rf(e,n,o){const l=n.style;if(!l)return;const a=window.getComputedStyle(e);a.cssText?(l.cssText=a.cssText,l.transformOrigin=a.transformOrigin):Nl(o).forEach(r=>{let i=a.getPropertyValue(r);r==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),Ee(e,HTMLIFrameElement)&&r==="display"&&i==="inline"&&(i="block"),r==="d"&&n.getAttribute("d")&&(i=`path(${n.getAttribute("d")})`),l.setProperty(r,i,a.getPropertyPriority(r))})}function Mf(e,n){Ee(e,HTMLTextAreaElement)&&(n.innerHTML=e.value),Ee(e,HTMLInputElement)&&n.setAttribute("value",e.value)}function xf(e,n){if(Ee(e,HTMLSelectElement)){const o=n,l=Array.from(o.children).find(a=>e.value===a.getAttribute("value"));l&&l.setAttribute("selected","")}}function Ff(e,n,o){return Ee(n,Element)&&(Rf(e,n,o),bf(e,n,o),Mf(e,n),xf(e,n)),n}async function Uf(e,n){const o=e.querySelectorAll?e.querySelectorAll("use"):[];if(o.length===0)return e;const l={};for(let r=0;r<o.length;r++){const s=o[r].getAttribute("xlink:href");if(s){const c=e.querySelector(s),u=document.querySelector(s);!c&&u&&!l[s]&&(l[s]=await Ht(u,n,!0))}}const a=Object.values(l);if(a.length){const r="http://www.w3.org/1999/xhtml",i=document.createElementNS(r,"svg");i.setAttribute("xmlns",r),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(r,"defs");i.appendChild(s);for(let c=0;c<a.length;c++)s.appendChild(a[c]);e.appendChild(i)}return e}async function Ht(e,n,o){return!o&&n.filter&&!n.filter(e)?null:Promise.resolve(e).then(l=>Df(l,n)).then(l=>Pf(e,l,n)).then(l=>Ff(e,l,n)).then(l=>Uf(l,n))}const wl=/url\((['"]?)([^'"]+?)\1\)/g,Hf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Gf(e){const n=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function Wf(e){const n=[];return e.replace(wl,(o,l,a)=>(n.push(a),o)),n.filter(o=>!kn(o))}async function jf(e,n,o,l,a){try{const r=o?pf(n,o):n,i=xn(n);let s;return a||(s=await Fn(r,i,l)),e.replace(Gf(n),`$1${s}$3`)}catch{}return e}function Kf(e,{preferredFontFormat:n}){return n?e.replace(zf,o=>{for(;;){const[l,,a]=Hf.exec(o)||[];if(!a)return"";if(a===n)return`src: ${l};`}}):e}function Tl(e){return e.search(wl)!==-1}async function Al(e,n,o){if(!Tl(e))return e;const l=Kf(e,o);return Wf(l).reduce((r,i)=>r.then(s=>jf(s,i,n,o)),Promise.resolve(l))}async function Qe(e,n,o){var l;const a=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(e);if(a){const r=await Al(a,null,o);return n.style.setProperty(e,r,n.style.getPropertyPriority(e)),!0}return!1}async function Yf(e,n){await Qe("background",e,n)||await Qe("background-image",e,n),await Qe("mask",e,n)||await Qe("-webkit-mask",e,n)||await Qe("mask-image",e,n)||await Qe("-webkit-mask-image",e,n)}async function qf(e,n){const o=Ee(e,HTMLImageElement);if(!(o&&!kn(e.src))&&!(Ee(e,SVGImageElement)&&!kn(e.href.baseVal)))return;const l=o?e.src:e.href.baseVal,a=await Fn(l,xn(l),n);await new Promise((r,i)=>{e.onload=r,e.onerror=n.onImageErrorHandler?(...c)=>{try{r(n.onImageErrorHandler(...c))}catch(u){i(u)}}:i;const s=e;s.decode&&(s.decode=r),s.loading==="lazy"&&(s.loading="eager"),o?(e.srcset="",e.src=a):e.href.baseVal=a})}async function Xf(e,n){const l=Re(e.childNodes).map(a=>Il(a,n));await Promise.all(l).then(()=>e)}async function Il(e,n){Ee(e,Element)&&(await Yf(e,n),await qf(e,n),await Xf(e,n))}function Zf(e,n){const{style:o}=e;n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.width&&(o.width=`${n.width}px`),n.height&&(o.height=`${n.height}px`);const l=n.style;return l!=null&&Object.keys(l).forEach(a=>{o[a]=l[a]}),e}const Vo={};async function Bo(e){let n=Vo[e];if(n!=null)return n;const l=await(await fetch(e)).text();return n={url:e,cssText:l},Vo[e]=n,n}async function Oo(e,n){let o=e.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,r=(o.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),bl(s,n.fetchRequestInit,({result:c})=>(o=o.replace(i,`url(${c})`),[i,c]))});return Promise.all(r).then(()=>o)}function Do(e){if(e==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=e.replace(o,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=a.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(a,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(i,"gi");for(;;){let c=r.exec(l);if(c===null){if(c=s.exec(l),c===null)break;r.lastIndex=s.lastIndex}else s.lastIndex=r.lastIndex;n.push(c[0])}return n}async function Jf(e,n){const o=[],l=[];return e.forEach(a=>{if("cssRules"in a)try{Re(a.cssRules||[]).forEach((r,i)=>{if(r.type===CSSRule.IMPORT_RULE){let s=i+1;const c=r.href,u=Bo(c).then(p=>Oo(p,n)).then(p=>Do(p).forEach(E=>{try{a.insertRule(E,E.startsWith("@import")?s+=1:a.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:E,error:h})}})).catch(p=>{console.error("Error loading remote css",p.toString())});l.push(u)}})}catch(r){const i=e.find(s=>s.href==null)||document.styleSheets[0];a.href!=null&&l.push(Bo(a.href).then(s=>Oo(s,n)).then(s=>Do(s).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",r)}}),Promise.all(l).then(()=>(e.forEach(a=>{if("cssRules"in a)try{Re(a.cssRules||[]).forEach(r=>{o.push(r)})}catch(r){console.error(`Error while reading CSS rules from ${a.href}`,r)}}),o))}function Qf(e){return e.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Tl(n.style.getPropertyValue("src")))}async function em(e,n){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=Re(e.ownerDocument.styleSheets),l=await Jf(o,n);return Qf(l)}function Vl(e){return e.trim().replace(/["']/g,"")}function tm(e){const n=new Set;function o(l){(l.style.fontFamily||getComputedStyle(l).fontFamily).split(",").forEach(r=>{n.add(Vl(r))}),Array.from(l.children).forEach(r=>{r instanceof HTMLElement&&o(r)})}return o(e),n}async function nm(e,n){const o=await em(e,n),l=tm(e);return(await Promise.all(o.filter(r=>l.has(Vl(r.style.fontFamily))).map(r=>{const i=r.parentStyleSheet?r.parentStyleSheet.href:null;return Al(r.cssText,i,n)}))).join(`
|
|
25
|
-
`)}async function om(e,n){const o=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await nm(e,n);if(o){const l=document.createElement("style"),a=document.createTextNode(o);l.appendChild(a),e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}}async function lm(e,n={}){const{width:o,height:l}=Sl(e,n),a=await Ht(e,n,!0);return await om(a,n),await Il(a,n),Zf(a,n),await Cf(a,o,l)}async function Bl(e,n={}){const{width:o,height:l}=Sl(e,n),a=await lm(e,n),r=await Dt(a),i=document.createElement("canvas"),s=i.getContext("2d"),c=n.pixelRatio||_f(),u=n.canvasWidth||o,p=n.canvasHeight||l;return i.width=u*c,i.height=p*c,n.skipAutoScale||kf(i),i.style.width=`${u}`,i.style.height=`${p}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(r,0,0,i.width,i.height),i}async function rm(e,n={}){return(await Bl(e,n)).toDataURL()}async function am(e,n={}){return(await Bl(e,n)).toDataURL("image/jpeg",n.quality||1)}function im(){const e=t.ref(""),n=t.ref("png"),o=t.ref();async function l(s,c={}){let u;const p=c.fileName??`vue-flow-screenshot-${Date.now()}`;switch(c.type){case"jpeg":u=await a(s,c);break;case"png":u=await r(s,c);break;default:u=await r(s,c);break}return c.shouldDownload&&p!==""&&i(p),u}function a(s,c={quality:.95}){return o.value=null,am(s,c).then(u=>(e.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function r(s,c={quality:.95}){return o.value=null,rm(s,c).then(u=>(e.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=e.value,c.click()}return{capture:l,download:i,dataUrl:e,error:o}}const sm={key:1,class:"exporting"},cm=t.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,default:void 0},namespace:{type:String,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{type:Object,default:void 0},subflowsExecutions:{type:Object,default:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1}},emits:[w.EVENTS.EDIT,w.EVENTS.DELETE,w.EVENTS.RUN_TASK,w.EVENTS.OPEN_LINK,w.EVENTS.SHOW_LOGS,w.EVENTS.SHOW_DESCRIPTION,w.EVENTS.RUN_TASK,"on-add-flowable-error",w.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",w.EVENTS.SHOW_CONDITION],setup(e,{emit:n}){const o=e,l=t.ref(!1),a=t.ref(),{getNodes:r,onNodeDrag:i,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:p,vueFlowRef:E}=ne.useVueFlow(o.id),h=t.ref({}),_=t.ref([]),B=t.ref(new Set),S=t.ref([]),{capture:C}=im();t.provide($n,t.computed(()=>o.execution)),t.provide(Cl,t.computed(()=>o.subflowsExecutions));const m=n;t.onMounted(()=>{k()}),t.watch(()=>o.flowGraph,()=>{k()}),t.watch(()=>o.isHorizontal,()=>{k()});const k=()=>{w.cleanGraph(o.id),t.nextTick(()=>{m("loading",!0);const P=B.value;B.value=new Set,_.value=[],h.value={},P.forEach(H=>x(w.CLUSTER_PREFIX+H,!1,!1));const V=w.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,_.value,o.isHorizontal,h.value,B.value,S.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction);V&&(p(V),u(),m("loading",!1))})},b=P=>{l.value||w.linkedElements(o.id,P.uid).forEach(V=>{V?.type==="task"&&(V.style={...V.style,outline:"0.5px solid "+Ce("--bs-gray-900")},V.class="rounded-3")})},g=()=>{I()},I=()=>{r.value.filter(P=>P.type==="task"||P.type==="trigger").forEach(P=>{P.style={...P.style,opacity:"1",outline:"none"},P.class=""})};s(P=>{l.value=!0,I(),P.node.style={...P.node.style,zIndex:1976},a.value=P.node.position}),c(P=>{if(l.value=!1,P.intersections&&v(P.intersections,P.node)===null){const V=P.node,H=P.intersections.find(R=>R.type==="task");if(H)try{o.source&&m("swapped-task",{newSource:G.swapBlocks({source:o.source,section:"tasks",key1:w.Utils.afterLastDot(V.id)??"",key2:w.Utils.afterLastDot(H.id)??""}),swappedTasks:[V.id,H.id]})}catch(R){m("message",{variant:"error",title:"cannot swap tasks",message:`${R.message}, ${R.messageOptions}`}),V.position=a.value}else V.position=a.value}else P.node.position=a.value;I(),P.node.style={...P.node.style,zIndex:5},a.value=null});const L=t.computed(()=>o.flowGraph?.clusters?o.flowGraph.clusters.filter(P=>P.cluster.type.endsWith("SubflowGraphCluster")).map(P=>P.cluster.taskNode.uid+"."):[]);i(P=>{I(),r.value.filter(V=>V.id!==P.node.id).forEach(V=>{V.type==="trigger"||V.type==="task"&&(V.id.startsWith(P.node.id+".")||P.node.id.startsWith(V.id+"."))||L?.value?.some(H=>V.id.startsWith(H))?V.style={...V.style,opacity:"0.5"}:V.style={...V.style,opacity:"1"}}),P.intersections&&!v(P.intersections,P.node)&&P.intersections.filter(V=>V.type==="task").length===1&&(P.intersections.forEach(V=>{V.type==="task"&&(V.style={...V.style,outline:"0.5px solid "+Ce("--bs-primary")},V.class="rounded-3")}),P.node.style={...P.node.style,outline:"0.5px solid "+Ce("--bs-primary")},P.node.class="rounded-3")});const v=(P,V)=>{const H=P.filter(R=>R.type==="task").map(R=>w.Utils.afterLastDot(R.id));if(H.length>1)return"toomuchtaskerror";try{if(H.length===1&&o.source&&G.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:w.Utils.afterLastDot(H[0])??"",key2:w.Utils.afterLastDot(V.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return P.filter(R=>R.type==="trigger").length>0?"triggererror":null},x=(P,V,H=!1)=>{const R=o.flowGraph.clusters.find(fe=>fe.cluster.uid.endsWith(P)),Ie=P.replace(w.CLUSTER_PREFIX,"");B.value.add(Ie),_.value=_.value.concat(R.nodes.filter(fe=>fe!==Ie||H)),_.value=_.value.concat([R.cluster.uid]),h.value={...h.value,[R.cluster.uid]:Ie,[R.start]:Ie,[R.end]:Ie};for(let fe of R.nodes)o.flowGraph.clusters.map(Fe=>Fe.cluster.uid).includes(fe)&&x(fe,!1,!0);V&&k()},U=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)&&!o.expandedSubflows.includes(P.id)){m("expand-subflow",[...o.expandedSubflows,P.id]);return}h.value={},_.value=[],S.value=[],B.value.delete(P.id),B.value.forEach(H=>x(H,!1,!1)),k()},oe=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ge=t.ref(!0),Z=t.ref(!1),Pe=()=>Z.value=!Z.value;function Xe(P){if(!E.value){console.warn("Flow not found");return}ge.value=!1,C(E.value,{type:P,shouldDownload:!0}).then(()=>ge.value=!0).finally(()=>Z.value=!1)}return(P,V)=>(t.openBlock(),t.createBlock(t.unref(ne.VueFlow),{id:e.id,"default-marker-color":t.unref(Ce)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":t.withCtx(H=>[t.createVNode(Oc,t.mergeProps(H,{onCollapse:V[0]||(V[0]=R=>x(R,!0))}),null,16)]),"node-dot":t.withCtx(H=>[t.createVNode(Hc,t.normalizeProps(t.guardReactiveProps(H)),null,16)]),"node-task":t.withCtx(H=>[t.createVNode(Pd,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent,"playground-enabled":e.playgroundEnabled,"playground-ready-to-start":e.playgroundReadyToStart,onEdit:V[1]||(V[1]=R=>m(t.unref(w.EVENTS).EDIT,R)),onDelete:V[2]||(V[2]=R=>m(t.unref(w.EVENTS).DELETE,R)),onRunTask:V[3]||(V[3]=R=>m(t.unref(w.EVENTS).RUN_TASK,R)),onExpand:V[4]||(V[4]=R=>U(R)),onOpenLink:V[5]||(V[5]=R=>m(t.unref(w.EVENTS).OPEN_LINK,R)),onShowLogs:V[6]||(V[6]=R=>m(t.unref(w.EVENTS).SHOW_LOGS,R)),onShowDescription:V[7]||(V[7]=R=>m(t.unref(w.EVENTS).SHOW_DESCRIPTION,R)),onShowCondition:V[8]||(V[8]=R=>m(t.unref(w.EVENTS).SHOW_CONDITION,R)),onMouseover:V[9]||(V[9]=R=>b(R)),onMouseleave:V[10]||(V[10]=R=>g()),onAddError:V[11]||(V[11]=R=>m("on-add-flowable-error",R)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-trigger":t.withCtx(H=>[t.createVNode(Md,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:V[12]||(V[12]=R=>m(t.unref(w.EVENTS).DELETE,R)),onEdit:V[13]||(V[13]=R=>m(t.unref(w.EVENTS).EDIT,R)),onShowDescription:V[14]||(V[14]=R=>m(t.unref(w.EVENTS).SHOW_DESCRIPTION,R))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":t.withCtx(H=>[t.createVNode(Zd,t.mergeProps(H,{onExpand:V[15]||(V[15]=R=>U(R))}),null,16)]),"edge-edge":t.withCtx(H=>[t.createVNode(tu,t.mergeProps(H,{"yaml-source":e.source,onAddTask:V[16]||(V[16]=R=>m(t.unref(w.EVENTS).ADD_TASK,R)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:t.withCtx(()=>[t.createVNode(t.unref(vc),{"pattern-color":oe?t.unref(Ce)("--bs-grey-500"):t.unref(Ce)("--bs-grey-300")},null,8,["pattern-color"]),ge.value?(t.openBlock(),t.createBlock(t.unref(Qt.Controls),{key:0,"show-interactive":!1},{default:t.withCtx(()=>[e.toggleOrientationButton?(t.openBlock(),t.createBlock(t.unref(Qt.ControlButton),{key:0,onClick:V[17]||(V[17]=H=>m("toggle-orientation",H))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isHorizontal?rf:tf)))]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(Qt.ControlButton),{onClick:Pe},{default:t.withCtx(()=>[t.createVNode(mf)]),_:1}),Z.value?(t.openBlock(),t.createElementBlock("ul",sm,[t.createElementVNode("li",{onClick:V[18]||(V[18]=H=>Xe("jpeg")),class:"item"}," Export as .JPEG "),t.createElementVNode("li",{onClick:V[19]||(V[19]=H=>Xe("png")),class:"item"}," Export as .PNG ")])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),um=$(cm,[["__scopeId","data-v-f889d0c2"]]),dm={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fm=["aria-hidden","aria-label"],mm=["fill","width","height"],pm={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"},gm={key:0};function hm(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",pm,[o.title?(t.openBlock(),t.createElementBlock("title",gm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,mm))],16,fm)}const Em=$(dm,[["render",hm]]),_m={key:0,class:"language"},km=["innerHTML"],ym=t.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 n={ContentCopy:t.shallowRef(Em),Check:t.shallowRef(vl)},o=e,l=t.ref(!1),a=t.ref(),r=t.shallowRef(n.ContentCopy.value),i=t.ref(),s=t.ref(),c=t.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,a.value&&t.nextTick(()=>{i.value&&s.value&&ur.createPopper(i.value,s.value,{placement:"left"})})}function p(){clearTimeout(a.value),navigator.clipboard.writeText(o.code.trimEnd()),r.value=n.Check.value,a.value=setTimeout(()=>{r.value=n.ContentCopy.value,a.value=void 0},2e3)}return(E,h)=>(t.openBlock(),t.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:h[0]||(h[0]=_=>l.value=!1)},[E.language&&!l.value?(t.openBlock(),t.createElementBlock("div",_m,t.toDisplayString(E.language),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_key:"copyButton",ref:i,class:"copy"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value),{onClick:p}))],512),a.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},[...h[1]||(h[1]=[t.createTextVNode(" Copied! ",-1),t.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)])],512)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{innerHTML:c.value},null,8,km)],32))}}),$o=$(ym,[["__scopeId","data-v-a899f6a1"]]),Cm={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vm=["aria-hidden","aria-label"],Nm=["fill","width","height"],Sm={d:"M10,17L15,12L10,7V17Z"},bm={key:0};function Lm(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Sm,[o.title?(t.openBlock(),t.createElementBlock("title",bm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Nm))],16,vm)}const wm=$(Cm,[["render",Lm]]),Tm={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Am=["aria-hidden","aria-label"],Im=["fill","width","height"],Vm={d:"M7,10L12,15L17,10H7Z"},Bm={key:0};function Om(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Vm,[o.title?(t.openBlock(),t.createElementBlock("title",Bm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Im))],16,Am)}const Dm=$(Tm,[["render",Om]]),$m=["id","open"],Pm={class:"d-flex gap-2 align-items-center"},Rm={key:0,class:"d-flex flex-grow-1"},Mm=["id"],xm=t.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=t.ref(!0),a=bn.useRoute(),r=n,i=t.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||r("expand"),!o.noUrlChange&&(window.location.hash=l.value?"":i.value)},c=t.ref(!1);return t.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),t.watch(()=>a.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,p)=>(t.openBlock(),t.createElementBlock("details",{id:u.href,open:c.value},[t.createElementVNode("summary",{class:t.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:l.value}]),onClick:s},[t.createElementVNode("span",Pm,[u.arrow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?wm:Dm),{key:0,class:"arrow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(u.clickableText)+" ",1),t.renderSlot(u.$slots,"additionalButtonText",{},void 0,!0)]),u.$slots.buttonRight?(t.openBlock(),t.createElementBlock("span",Rm,[t.renderSlot(u.$slots,"buttonRight",{collapsed:l.value},void 0,!0)])):t.createCommentVNode("",!0)],2),u.$slots.content?(t.openBlock(),t.createElementBlock("div",{key:0,id:u.href+"-body"},[t.createElementVNode("div",null,[t.renderSlot(u.$slots,"content",{},void 0,!0)])],8,Mm)):t.createCommentVNode("",!0)],8,$m))}}),$t=$(xm,[["__scopeId","data-v-d580b6d0"]]);function St(e){if(e.type)return Array.isArray(e.type)?e.type:[e.type];if(e.$ref)return["#"+e.$ref.slice(8)]}function Ol(e){const n=e.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function Fm(e){if(e.enum)return e.enum;if(e.items?.enum)return e.items.enum;if(e.additionalProperties?.enum)return e.additionalProperties.enum}function Um(e){return e.allOf&&(e=e.allOf.reduce((n,o)=>({...n,...o}),{...e}),delete e.allOf),e}function Dl(e){const n={},o=a=>{const r=St(a);if(r&&r.length>0)return r;if(a.anyOf)return a.anyOf.flatMap(St).filter(i=>i!==void 0).filter(w.Utils.distinctFilter)},l=o(e);if(l?n.types=l:n.types=["object"],n.types.includes("array")&&e.items){const a=o(e.items);a&&e.items.anyOf&&(n.types=n.types.filter(r=>r!=="array").concat(a))}return e.additionalProperties?n.subType=St(e.additionalProperties)?.[0]:e.items&&(n.subType=St(e.items)?.[0]),n}const Hm={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zm=["aria-hidden","aria-label"],Gm=["fill","width","height"],Wm={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},jm={key:0};function Km(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Wm,[o.title?(t.openBlock(),t.createElementBlock("title",jm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gm))],16,zm)}const Ym=$(Hm,[["render",Km]]),qm={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xm=["aria-hidden","aria-label"],Zm=["fill","width","height"],Jm={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"},Qm={key:0};function ep(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Jm,[o.title?(t.openBlock(),t.createElementBlock("title",Qm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zm))],16,Xm)}const $l=$(qm,[["render",ep]]),tp={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},np=["aria-hidden","aria-label"],op=["fill","width","height"],lp={d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"},rp={key:0};function ap(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",lp,[o.title?(t.openBlock(),t.createElementBlock("title",rp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,op))],16,np)}const ip=$(tp,[["render",ap]]),sp={class:"me-3"},cp={class:"d-flex flex-column"},up=t.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"success":return ip;case"info":return Tt;case"warning":return Mn;case"danger":return an;default:return Tt}});return(l,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass("doc-alert alert alert-"+l.type),role:"alert"},[t.createElementVNode("div",sp,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),t.createElementVNode("div",cp,[t.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),dp=$(up,[["__scopeId","data-v-f7fd8bc1"]]),fp={class:"property-detail"},mp={key:0},pp=["href"],gp={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},hp={class:"ref-type"},Ep={key:1,class:"type-box rounded fs-7 px-2 py-1"},_p={key:1},kp={class:"border rounded px-2 py-1"},yp={key:2},Cp={class:"border rounded px-2 py-1"},vp={key:3},Np={class:"border rounded px-2 py-1"},Sp={key:4},bp={class:"border rounded px-2 py-1"},Lp={key:5},wp={class:"border rounded px-2 py-1"},Tp={key:6},Ap={class:"border rounded px-2 py-1"},Ip={key:7},Vp={class:"border rounded px-2 py-1"},Bp={key:8},Op={class:"border rounded px-2 py-1"},Dp={key:9},$p={class:"border rounded px-2 py-1"},Pp={key:10},Rp={class:"border rounded px-2 py-1"},Mp={key:11},xp={class:"border rounded px-2 py-1"},Fp={key:12},Up={class:"border rounded px-2 py-1"},Hp={key:13},zp={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},Gp={key:14},Wp={class:"property-description markdown"},jp={key:2},Kp=t.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const n=e,o=t.ref(Dl(n.property).subType),l=t.ref(Fm(n.property)),a=r=>r.replace(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replace(new RegExp("(?<!:):(?![: /])","g"),": ");return(r,i)=>(t.openBlock(),t.createElementBlock("div",fp,[o.value?(t.openBlock(),t.createElementBlock("div",mp,[i[1]||(i[1]=t.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,href:o.value,onClick:i[0]||(i[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("button",gp,[t.createElementVNode("span",hp,t.toDisplayString(t.unref(Ol)(o.value)),1),t.createVNode($l)])],8,pp)):(t.openBlock(),t.createElementBlock("span",Ep,t.toDisplayString(o.value),1))])):t.createCommentVNode("",!0),r.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",_p,[i[2]||(i[2]=t.createElementVNode("span",null," Default ",-1)),t.createElementVNode("code",kp,t.toDisplayString(r.property.default),1)])):t.createCommentVNode("",!0),r.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",yp,[i[3]||(i[3]=t.createElementVNode("span",null," Validation RegExp ",-1)),t.createElementVNode("code",Cp,t.toDisplayString(r.property.pattern),1)])):t.createCommentVNode("",!0),r.property.unit!==void 0&&r.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",vp,[i[4]||(i[4]=t.createElementVNode("span",null," Unit ",-1)),t.createElementVNode("code",Np,t.toDisplayString(r.property.unit),1)])):t.createCommentVNode("",!0),r.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",Sp,[i[5]||(i[5]=t.createElementVNode("span",null," Min length ",-1)),t.createElementVNode("code",bp,t.toDisplayString(r.property.minLength),1)])):t.createCommentVNode("",!0),r.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",Lp,[i[6]||(i[6]=t.createElementVNode("span",null," Max length ",-1)),t.createElementVNode("code",wp,t.toDisplayString(r.property.maxLength),1)])):t.createCommentVNode("",!0),r.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",Tp,[i[7]||(i[7]=t.createElementVNode("span",null," Min items ",-1)),t.createElementVNode("code",Ap,t.toDisplayString(r.property.minItems),1)])):t.createCommentVNode("",!0),r.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",Ip,[i[8]||(i[8]=t.createElementVNode("span",null," Max items ",-1)),t.createElementVNode("code",Vp,t.toDisplayString(r.property.maxItems),1)])):t.createCommentVNode("",!0),r.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",Bp,[i[9]||(i[9]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",Op," >= "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",Dp,[i[10]||(i[10]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",$p," > "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",Pp,[i[11]||(i[11]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",Rp," <= "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",Mp,[i[12]||(i[12]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",xp," < "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",Fp,[i[13]||(i[13]=t.createElementVNode("span",null," Format ",-1)),t.createElementVNode("code",Up,t.toDisplayString(r.property.format),1)])):t.createCommentVNode("",!0),l.value!==void 0?(t.openBlock(),t.createElementBlock("div",Hp,[i[14]||(i[14]=t.createElementVNode("span",null," Possible Values ",-1)),t.createElementVNode("div",zp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(s,c)=>(t.openBlock(),t.createElementBlock("code",{class:"border rounded px-2 py-1",key:c},t.toDisplayString(s),1))),128))])])):t.createCommentVNode("",!0),r.property.title!==void 0||r.property.description!==void 0?(t.openBlock(),t.createElementBlock("div",Gp,[t.createElementVNode("div",Wp,[r.property.title!==void 0?t.renderSlot(r.$slots,"markdown",{key:0,content:a(r.property.title)},void 0,!0):t.createCommentVNode("",!0),r.property.description!==void 0?t.renderSlot(r.$slots,"markdown",{key:1,content:a(r.property.description)},void 0,!0):t.createCommentVNode("",!0),r.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",jp,[t.createVNode(dp,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),Yp=$(Kp,[["__scopeId","data-v-721fbdf5"]]),qp={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xp=["aria-hidden","aria-label"],Zp=["fill","width","height"],Jp={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},Qp={key:0};function e1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Jp,[o.title?(t.openBlock(),t.createElementBlock("title",Qp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zp))],16,Xp)}const t1=$(qp,[["render",e1]]),n1={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},o1=["aria-hidden","aria-label"],l1=["fill","width","height"],r1={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"},a1={key:0};function i1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",r1,[o.title?(t.openBlock(),t.createElementBlock("title",a1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,l1))],16,o1)}const s1=$(n1,[["render",i1]]),c1={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},u1=["aria-hidden","aria-label"],d1=["fill","width","height"],f1={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"},m1={key:0};function p1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",f1,[o.title?(t.openBlock(),t.createElementBlock("title",m1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,d1))],16,u1)}const g1=$(c1,[["render",p1]]),h1={class:"border overflow-hidden"},E1={class:"d-flex flex-grow-1 align-items-center justify-content-between"},_1={class:"d-flex gap-2"},k1={class:"d-flex flex-wrap justify-content-end gap-2"},y1=["href"],C1={class:"ref-type"},v1={key:1,class:"type-box rounded fs-7 px-2 py-1"},N1=t.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=n,a=t.ref(!1);t.watch(a,s=>{s&&l("expand")});const r=s=>s.$dynamic===!0?!0:s.$dynamic===!1?!1:s.anyOf?.some(c=>c.$dynamic===!0)??!1;function i(s){const c=[],u=[];for(const h in s)typeof s[h]=="object"&&(s[h]=Um(s[h]),s[h].$required?c.push(h):u.push(h));const p=[...c.sort(),...u.sort()],E={};return p.forEach(h=>{(!s[h].$deprecated||o.forceInclude?.includes(h))&&(E[h]=s[h])}),E}return(s,c)=>(t.openBlock(),t.createBlock($t,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:c[2]||(c[2]=u=>l("expand")),"initially-expanded":s.initiallyExpanded||a.value},t.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",h1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i(s.properties),(u,p)=>(t.openBlock(),t.createBlock($t,{class:"property",key:p,arrow:!1,"clickable-text":p,href:s.href+"_"+p,onExpand:c[1]||(c[1]=E=>a.value=!0),"no-url-change":s.noUrlChange},{additionalButtonText:t.withCtx(()=>[u.$required?(t.openBlock(),t.createBlock(q,{key:0,class:"d-flex",title:"Required"},{default:t.withCtx(()=>[...c[3]||(c[3]=[t.createElementVNode("span",{class:"text-danger"}," *",-1)])]),_:1})):t.createCommentVNode("",!0)]),buttonRight:t.withCtx(({collapsed:E})=>[t.createElementVNode("span",E1,[t.createElementVNode("span",_1,[s.showDynamic&&!r(u)?(t.openBlock(),t.createBlock(q,{key:0,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(s1,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),u.$beta?(t.openBlock(),t.createBlock(q,{key:1,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(g1,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),u.$deprecated?(t.openBlock(),t.createBlock(q,{key:2,class:"d-flex",title:"Deprecated"},{default:t.withCtx(()=>[t.createVNode(Mn,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("span",k1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Dl)(u).types,h=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:h},[h.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:h,onClick:c[0]||(c[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("span",C1,t.toDisplayString(t.unref(Ol)(h)),1),t.createVNode($l)],8,y1)):(t.openBlock(),t.createElementBlock("span",v1,t.toDisplayString(h),1))],64))),128)),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(E?Ym:t1),{class:"arrow"}))])])]),content:t.withCtx(()=>[t.createVNode(Yp,{property:u},{markdown:t.withCtx(({content:E})=>[t.renderSlot(s.$slots,"markdown",{content:E},void 0,!0)]),_:3},8,["property"])]),_:2},1032,["clickable-text","href","no-url-change"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),bt=$(N1,[["__scopeId","data-v-1d731489"]]),S1={class:"d-flex flex-column gap-6"},b1={key:0,class:"alert alert-info mb-2",role:"alert"},L1={key:1,class:"plugin-title markdown"},w1={key:2,class:"markdown"},T1={class:"d-flex flex-column gap-4"},A1={class:"d-flex flex-column gap-3"},I1={class:"markdown"},V1={key:0,class:"w-100 align-self-center"},B1={class:"markdown"},O1={class:"markdown"},D1={class:"markdown"},$1={class:"d-flex flex-column gap-7 ps-3"},P1={class:"markdown"},R1=t.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(e){let n,o;const l=e,a=t.ref(!1),r=t.ref(new Set),i=t.ref(0),s=async()=>{const g=window.location.hash.slice(1);if(!g||!l.schema.definitions){r.value.clear();return}const I=g.includes("#")?g.split("#").pop()?.split(".").pop():g;if(I&&I in l.schema.definitions){a.value=!0,i.value+=1,r.value.clear(),r.value.add(I),await t.nextTick();let L=0;const v=30,x=()=>{const U=document.getElementById(I);U?U.scrollIntoView({behavior:"smooth",block:"start"}):L<v&&(L++,requestAnimationFrame(x))};requestAnimationFrame(x)}else r.value.clear()};t.watch([()=>l.schema,()=>l.pluginType],([g,I],[L,v])=>{(g!==L||I!==v)&&l.schema.definitions&&s()});const c=g=>g?.full?g.code:`id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
|
|
24
|
+
</svg>`));return(r,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass([[`border-${e.data.color}`],"dependency-node-wrapper rounded-3 border"])},[t.createVNode(On,{"custom-icon":{icon:a.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),t.createElementVNode("div",uc,[t.createElementVNode("div",dc,[t.createVNode(q,{title:e.data.flowId},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),t.createElementVNode("div",fc,[t.createVNode(q,{title:e.data.namespace},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),t.createElementVNode("div",mc,[t.renderSlot(r.$slots,"badge-button-before",{},void 0,!0),e.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>r.$emit(t.unref(w.EVENTS).OPEN_LINK,e.data))},[t.createVNode(q,{title:t.unref(l)("open")},{default:t.withCtx(()=>[t.createVNode(hl,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),e.data.expandEnabled?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[1]||(i[1]=s=>o(t.unref(w.EVENTS).EXPAND_DEPENDENCIES,e.data))},[t.createVNode(q,{title:t.unref(l)("expand")},{default:t.withCtx(()=>[t.createVNode(cc,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"badge-button-after",{},void 0,!0)])],2),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),gc=P(pc,[["__scopeId","data-v-2271d5b0"]]);var Oe=(e=>(e.Lines="lines",e.Dots="dots",e))(Oe||{});const El=function({dimensions:e,size:n,color:o}){return t.h("path",{stroke:o,"stroke-width":n,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},_l=function({radius:e,color:n}){return t.h("circle",{cx:e,cy:e,r:e,fill:n})};Oe.Lines+"",Oe.Dots+"";const hc={[Oe.Dots]:"#81818a",[Oe.Lines]:"#eee"},Ec=["id","x","y","width","height","patternTransform"],_c={key:2,height:"100",width:"100"},kc=["fill"],yc=["x","y","fill"],Cc={name:"Background",compatConfig:{MODE:3}},vc=t.defineComponent({...Cc,props:{id:{},variant:{default:()=>Oe.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:n,viewport:o}=ne.useVueFlow(),l=t.computed(()=>{const i=o.value.zoom,[s,c]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[s*i||1,c*i||1],g=e.size*i,[_,p]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset],E=[_*i||1+u[0]/2,p*i||1+u[1]/2];return{scaledGap:u,offset:E,size:g}}),a=t.toRef(()=>`pattern-${n}${e.id?`-${e.id}`:""}`),r=t.toRef(()=>e.color||e.patternColor||hc[e.variant||Oe.Dots]);return(i,s)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:t.normalizeStyle({height:`${i.height>100?100:i.height}%`,width:`${i.width>100?100:i.width}%`})},[t.renderSlot(i.$slots,"pattern-container",{id:a.value},()=>[t.createElementVNode("pattern",{id:a.value,x:t.unref(o).x%l.value.scaledGap[0],y:t.unref(o).y%l.value.scaledGap[1],width:l.value.scaledGap[0],height:l.value.scaledGap[1],patternTransform:`translate(-${l.value.offset[0]},-${l.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[t.renderSlot(i.$slots,"pattern",{},()=>[i.variant===t.unref(Oe).Lines?(t.openBlock(),t.createBlock(t.unref(El),{key:0,size:i.lineWidth,color:r.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):i.variant===t.unref(Oe).Dots?(t.openBlock(),t.createBlock(t.unref(_l),{key:1,color:r.value,radius:l.value.size/2},null,8,["color","radius"])):t.createCommentVNode("",!0),i.bgColor?(t.openBlock(),t.createElementBlock("svg",_c,[t.createElementVNode("rect",{width:"100%",height:"100%",fill:i.bgColor},null,8,kc)])):t.createCommentVNode("",!0)])],8,Ec)]),t.createElementVNode("rect",{x:i.x,y:i.y,width:"100%",height:"100%",fill:`url(#${a.value})`},null,8,yc),t.renderSlot(i.$slots,"default",{id:a.value})],4))}}),Nc={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sc=["aria-hidden","aria-label"],bc=["fill","width","height"],Lc={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},wc={key:0};function Tc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Lc,[o.title?(t.openBlock(),t.createElementBlock("title",wc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,bc))],16,Sc)}const Ac=P(Nc,[["render",Tc]]),Ic={class:"top-button-div text-white d-flex"},Vc={inheritAttrs:!1,components:{Tooltip:q},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){const e=this.data.taskNode;if(e?.type?.endsWith("SubflowGraphTask")){const n=e.task.subflowId??e.task;return n.namespace+" "+n.flowId}return w.Utils.afterLastDot(this.id)}}},Bc=Object.assign(Vc,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:ne.Position,default:void 0},targetPosition:{type:ne.Position,default:void 0},id:{type:String,default:void 0}},emits:[w.EVENTS.COLLAPSE],setup(e,{emit:n}){const o=e,l=n,a=()=>{l(w.EVENTS.COLLAPSE,o.id)};return(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.classes)},[t.createElementVNode("span",{class:t.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},t.toDisplayString(r.clusterName),3),t.createElementVNode("div",Ic,[e.data.collapsable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>a())},[t.createVNode(q,{title:r.$t("collapse")},{default:t.withCtx(()=>[t.createVNode(Ac,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)])],2))}}),Oc=P(Bc,[["__scopeId","data-v-0c251e77"]]),Dc={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Pc=["aria-hidden","aria-label"],$c=["fill","width","height"],Rc={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Mc={key:0};function xc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Rc,[o.title?(t.openBlock(),t.createElementBlock("title",Mc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,$c))],16,Pc)}const kl=P(Dc,[["render",xc]]),Fc={name:"Dot",components:{Handle:ne.Handle,CircleIcon:kl},inheritAttrs:!1,props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},label:{type:String,default:void 0}},computed:{classes(){return{"unused-path":this.data.unused,[w.Utils.afterLastDot(this.data.node.type)]:!0}}}},Uc=Object.assign(Fc,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.classes)},[t.createVNode(t.unref(ne.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass(["dot",n.classes])},[t.createVNode(kl,{class:t.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),t.createVNode(t.unref(ne.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),Hc=P(Uc,[["__scopeId","data-v-666f472b"]]),zc={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Gc=["aria-hidden","aria-label"],Wc=["fill","width","height"],jc={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Kc={key:0};function Yc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",jc,[o.title?(t.openBlock(),t.createElementBlock("title",Kc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Wc))],16,Gc)}const qc=P(zc,[["render",Yc]]),Xc={class:"add-task-div rounded d-flex justify-content-center align-items-center"},Zc=t.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",Xc,[n.addTask?(t.openBlock(),t.createBlock(qc,{key:0,alt:"add task icon"})):t.createCommentVNode("",!0)]))}}),Jc=P(Zc,[["__scopeId","data-v-4afc4738"]]),Qc=["id","d","marker-end"],eu=t.defineComponent({inheritAttrs:!1,__name:"EdgeNode",props:{id:{type:String,default:void 0},data:{type:Object,default:void 0},sourceX:{type:Number,default:void 0},sourceY:{type:Number,default:void 0},targetX:{type:Number,default:void 0},targetY:{type:Number,default:void 0},markerEnd:{type:String,default:void 0},sourcePosition:{type:String,default:void 0},targetPosition:{type:String,default:void 0}},setup(e){const n=e,o=t.computed(()=>n.data?{"vue-flow__edge-path":!0,["stroke-"+n.data.color]:n.data.color,"unused-path":n.data.unused}:{});let l=i=>i;try{const{t:i}=pt();l=i}catch{}const a=t.computed(()=>{const{haveAdd:i}=n.data??{};return`${l("add task")} ${i?.length===2?`${l(i[1])} ${i[0]}`:""}`.trim()}),r=t.computed(()=>ne.getSmoothStepPath(n));return(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[r.value?.length?(t.openBlock(),t.createElementBlock("path",{key:0,id:e.id,class:t.normalizeClass(o.value),style:t.normalizeStyle(e.data.haveDashArray?{strokeDasharray:"2"}:{}),d:r.value[0],"marker-end":e.markerEnd},null,14,Qc)):t.createCommentVNode("",!0),r.value?.length?(t.openBlock(),t.createBlock(t.unref(ne.EdgeLabelRenderer),{key:1,style:{"z-index":"10"}},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${r.value[1]}px,${r.value[2]}px)`})},[t.createVNode(q,{title:a.value},{default:t.withCtx(()=>[e.data.haveAdd?(t.openBlock(),t.createBlock(Jc,{key:0,"add-task":!0,onClick:s[0]||(s[0]=c=>i.$emit(t.unref(w.EVENTS).ADD_TASK,e.data.haveAdd)),class:t.normalizeClass({"text-danger":e.data.color})},null,8,["class"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})):t.createCommentVNode("",!0)],64))}}),tu=P(eu,[["__scopeId","data-v-5e05a3ec"]]),nu=["innerHTML"],ou=t.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const n=e;t.watch(()=>n.histories,(E,V)=>{V[0].date!==E[0].date&&s()});const o=t.ref(""),l=t.ref();t.onMounted(()=>{s()});const a=t.computed(()=>n.histories?.length&&new Date(n.histories[0].date.toString()).getTime()),r=t.computed(()=>n.histories[n.histories.length-1]),i=t.computed(()=>n.histories.filter(E=>E.date.isValid()&&E.date&&E.state));function s(){l.value||(l.value=setInterval(()=>{_(),n.histories&&!te.isRunning(r.value.state)&&c()},100))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){return g()-a.value}function g(){return!n.histories||te.isRunning(r.value.state)?+new Date:new Date(r.value.date.toString()).getTime()}function _(){o.value=i.value.length===0?" ":w.humanDuration(u()/1e3)}function p(E){return"ks-duration-tt-square-"+E.toLowerCase()}return t.onBeforeUnmount(()=>{c()}),(E,V)=>(t.openBlock(),t.createBlock(q,{key:r.value.date.toString()},{content:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(N,C)=>(t.openBlock(),t.createElementBlock("span",{key:"tt-"+C,class:"ks-duration-tt"},[t.createElementVNode("span",{class:t.normalizeClass(["ks-duration-tt-square",p(N.state)])},null,2),t.createElementVNode("strong",null,t.toDisplayString(N.state)+": ",1),t.createTextVNode(t.toDisplayString(w.dateFilter(N.date.toISOString(),"iso"))+" ",1),V[0]||(V[0]=t.createElementVNode("br",null,null,-1))]))),128))]),default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:o.value},null,8,nu)]),_:1}))}}),lu={class:"btn-group content rounded-1 content-children text-truncate"},ru={key:0,class:"taskRunCount"},au={key:1},iu={key:2},su=t.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{},state:{}},setup(e){const n=e,o=t.computed(()=>n.execution?.taskRunList?n.execution.taskRunList:[]),l=t.computed(()=>o.value.filter(r=>r.taskId===w.afterLastDot(n.uid??""))),a=t.computed(()=>{if(!l.value)return;const r=Math.max(...l.value.filter(s=>s.state.histories&&s.state.histories.length>0).map(s=>new Date(s.state.histories[s.state.histories.length-1].date).getTime())),i=Math.max(...l.value.map(s=>en.duration(s.state.duration).asMilliseconds()/1e3,0));return[{date:en(r).subtract(i,"second"),state:"CREATED"},{date:en(r),state:n.state}]});return(r,i)=>(t.openBlock(),t.createElementBlock("div",lu,[l.value.length>0?(t.openBlock(),t.createElementBlock("span",ru,t.toDisplayString(l.value.length)+" task runs",1)):t.createCommentVNode("",!0),l.value.length>0?(t.openBlock(),t.createElementBlock("span",au," | ")):t.createCommentVNode("",!0),a.value?(t.openBlock(),t.createElementBlock("span",iu,[t.createVNode(ou,{histories:a.value},null,8,["histories"])])):t.createCommentVNode("",!0)]))}}),cu=P(su,[["__scopeId","data-v-96fa5d6e"]]),uu={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},du=["aria-hidden","aria-label"],fu=["fill","width","height"],mu={d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"},pu={key:0};function gu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon information-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",mu,[o.title?(t.openBlock(),t.createElementBlock("title",pu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,fu))],16,du)}const hu=P(uu,[["render",gu]]),Eu={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_u=["aria-hidden","aria-label"],ku=["fill","width","height"],yu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},Cu={key:0};function vu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",yu,[o.title?(t.openBlock(),t.createElementBlock("title",Cu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ku))],16,_u)}const Dn=P(Eu,[["render",vu]]),Nu={class:"icon rounded"},Su={class:"node-content"},bu={class:"d-flex node-title"},Lu={class:"text-truncate task-title"},wu={key:0,class:"d-flex"},Tu={class:"text-white top-button-div"},Au=t.defineComponent({name:"BasicNode",inheritAttrs:!1,__name:"BasicNode",props:{id:{},title:{},type:{},disabled:{type:Boolean},state:{},data:{},icons:{},iconComponent:{},class:{}},emits:[w.EVENTS.EXPAND,w.EVENTS.OPEN_LINK,w.EVENTS.SHOW_LOGS,w.EVENTS.MOUSE_OVER,w.EVENTS.MOUSE_LEAVE,w.EVENTS.ADD_ERROR,w.EVENTS.EDIT,w.EVENTS.DELETE,w.EVENTS.ADD_TASK,w.EVENTS.SHOW_DESCRIPTION],setup(e,{emit:n}){const o=n,l=e;function a(){o(w.EVENTS.MOUSE_OVER,l.data.node)}function r(){o(w.EVENTS.MOUSE_LEAVE)}const i=t.computed(()=>l.data?.expandable||!1),s=t.computed(()=>{const E=l.data.node.task??l.data.node.trigger??null;return E?E.description??null:null}),c=t.computed(()=>w.Utils.afterLastDot(l.id??"")),u=t.computed(()=>["default","danger"].includes(l.data.color)?"":l.data.color),g=t.computed(()=>[{"unused-path":l.data.unused,disabled:l.data.node.task?.disabled||l.data.parent?.taskNode?.task?.disabled},l.class]),_=t.computed(()=>{if(l.data.node.triggerDeclaration)return l.data.node.triggerDeclaration.type;if(l.data.node?.task)return l.data.node.task.type}),p=t.computed(()=>{if(l.data.node.type?.endsWith("SubflowGraphTask")){const E=l.data.node.task.subflowId??l.data.node.task;return E.namespace+" "+E.flowId}return c.value});return(E,V)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["node-wrapper rounded-3",{...g.value,"running-border-animation":E.state==="RUNNING"}]),style:t.normalizeStyle({borderColor:E.state?`var(--ks-border-${E.state.toLowerCase()})`:void 0}),onMouseover:a,onMouseleave:r},[t.createElementVNode("div",Nu,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(E.iconComponent||On),{cls:_.value,class:t.normalizeClass([u.value,"rounded bg-white"]),theme:"light",icons:E.icons},null,8,["cls","class","icons"]))]),t.createElementVNode("div",Su,[t.createElementVNode("div",bu,[t.createElementVNode("div",Lu,[t.createVNode(q,{title:p.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(E.title??c.value),1)]),_:1},8,["title"])]),s.value?(t.openBlock(),t.createElementBlock("span",wu,[t.createVNode(q,{title:E.$t("show description"),class:"d-flex align-items-center"},{default:t.withCtx(()=>[t.createVNode(hu,{onClick:V[0]||(V[0]=N=>E.$emit(t.unref(w.EVENTS).SHOW_DESCRIPTION,{id:c.value,description:s.value})),class:"description-button ms-2"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),t.renderSlot(E.$slots,"content",{},void 0,!0)]),t.createElementVNode("div",Tu,[t.renderSlot(E.$slots,"badge-button-before",{},void 0,!0),E.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${E.data.color}`]]),onClick:V[1]||(V[1]=N=>E.$emit(t.unref(w.EVENTS).OPEN_LINK,{link:E.data.link}))},[t.createVNode(q,{title:E.$t("open")},{default:t.withCtx(()=>[t.createVNode(hl,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${E.data.color}`]]),onClick:V[2]||(V[2]=N=>E.$emit(t.unref(w.EVENTS).EXPAND))},[t.createVNode(q,{title:E.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Dn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(E.$slots,"badge-button-after",{},void 0,!0)])],38))}}),yl=P(Au,[["__scopeId","data-v-394f20a4"]]),Pn=Symbol("execution-injection-key"),Cl=Symbol("subflows-executions-injection-key"),Iu={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Vu=["aria-hidden","aria-label"],Bu=["fill","width","height"],Ou={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"},Du={key:0};function Pu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ou,[o.title?(t.openBlock(),t.createElementBlock("title",Du,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Bu))],16,Vu)}const $n=P(Iu,[["render",Pu]]),$u={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ru=["aria-hidden","aria-label"],Mu=["fill","width","height"],xu={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},Fu={key:0};function Uu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon delete-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",xu,[o.title?(t.openBlock(),t.createElementBlock("title",Fu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Mu))],16,Ru)}const Rn=P($u,[["render",Uu]]),Hu={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zu=["aria-hidden","aria-label"],Gu=["fill","width","height"],Wu={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"},ju={key:0};function Ku(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Wu,[o.title?(t.openBlock(),t.createElementBlock("title",ju,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gu))],16,zu)}const Yu=P(Hu,[["render",Ku]]),qu={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xu=["aria-hidden","aria-label"],Zu=["fill","width","height"],Ju={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Qu={key:0};function ed(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ju,[o.title?(t.openBlock(),t.createElementBlock("title",Qu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zu))],16,Xu)}const td=P(qu,[["render",ed]]),nd={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},od=["aria-hidden","aria-label"],ld=["fill","width","height"],rd={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"},ad={key:0};function id(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon send-lock-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",rd,[o.title?(t.openBlock(),t.createElementBlock("title",ad,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ld))],16,od)}const sd=P(nd,[["render",id]]),cd={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ud=["aria-hidden","aria-label"],dd=["fill","width","height"],fd={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},md={key:0};function pd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",fd,[o.title?(t.openBlock(),t.createElementBlock("title",md,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,dd))],16,ud)}const gd=P(cd,[["render",pd]]),hd={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ed=["aria-hidden","aria-label"],_d=["fill","width","height"],kd={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},yd={key:0};function Cd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",kd,[o.title?(t.openBlock(),t.createElementBlock("title",yd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_d))],16,Ed)}const vl=P(hd,[["render",Cd]]),vd={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Nd=["aria-hidden","aria-label"],Sd=["fill","width","height"],bd={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},Ld={key:0};function wd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",bd,[o.title?(t.openBlock(),t.createElementBlock("title",Ld,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Sd))],16,Nd)}const Mn=P(vd,[["render",wd]]),Td={name:"SkipForwardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ad=["aria-hidden","aria-label"],Id=["fill","width","height"],Vd={d:"M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12"},Bd={key:0};function Od(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-forward-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Vd,[o.title?(t.openBlock(),t.createElementBlock("title",Bd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Id))],16,Ad)}const Dd=P(Td,[["render",Od]]),Pd=t.defineComponent({name:"TaskNode",inheritAttrs:!1,__name:"TaskNode",props:{data:{},sourcePosition:{default:ne.Position.Right},targetPosition:{default:ne.Position.Left},id:{},icons:{default:void 0},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},playgroundEnabled:{type:Boolean},playgroundReadyToStart:{type:Boolean}},setup(e,{emit:n}){const o=e,l=n,a=t.inject(Pn),r=t.inject(Cl),i=t.computed(()=>o.data.color??"primary"),s=t.computed(()=>w.Utils.afterLastDot(o.id)),c=t.computed(()=>{const C=o.data.executionId;if(C)return C===a?.value?.id?a?.value:Object.values(r?.value||{}).find(m=>m.id===C)}),u=t.computed(()=>c.value&&c.value.taskRunList?c.value.taskRunList:[]),g=t.computed(()=>u.value.filter(C=>C.taskId===w.Utils.afterLastDot(o.data.node.uid))),_=t.computed(()=>{if(!g.value?.length)return null;if(g.value.length===1)return g.value[0].state.current;const C=g.value.map(b=>b.state.current),m=[te.FAILED,te.KILLED,te.WARNING,te.SKIPPED,te.KILLING,te.RUNNING,te.SUCCESS,te.RESTARTED,te.CREATED];return C.map(b=>[m.indexOf(b[1]),b]).sort().map(b=>b[1])[0]}),p=t.computed(()=>({"execution-no-taskrun":!!(c.value&&g.value&&g.value.length===0)})),E=t.computed(()=>({id:o.id,type:String(o.data.node.task.type)})),V=t.computed(()=>{if(o.data.node.type?.endsWith("SubflowGraphTask")&&o.enableSubflowInteraction){const C=o.data.node.task.subflowId??o.data.node.task;return{...o.data,link:{namespace:C.namespace,id:C.flowId,executionId:c.value?.taskRunList.filter(m=>m.taskId===o.data.node.task.id&&m.outputs?.executionId)?.[0]?.outputs?.executionId}}}return o.data}),N=t.computed(()=>{if(_.value===te.RUNNING)return"task is running";if(_.value===te.SUCCESS)return"task was successful";if(_.value===te.WARNING)return"task sent a warning";if(_.value===te.SKIPPED)return"task was skipped";if(_.value===te.FAILED)return"task failed"});return(C,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:C.sourcePosition},null,8,["position"]),t.createVNode(yl,{id:C.id,data:V.value,state:_.value,class:t.normalizeClass(p.value),icons:C.icons,"icon-component":C.iconComponent,onShowDescription:m[6]||(m[6]=k=>l(t.unref(w.EVENTS).SHOW_DESCRIPTION,k)),onExpand:m[7]||(m[7]=k=>l(t.unref(w.EVENTS).EXPAND,E.value)),onOpenLink:m[8]||(m[8]=k=>l(t.unref(w.EVENTS).OPEN_LINK,k)),onMouseover:m[9]||(m[9]=k=>l(t.unref(w.EVENTS).MOUSE_OVER,k)),onMouseleave:m[10]||(m[10]=k=>l(t.unref(w.EVENTS).MOUSE_LEAVE))},{content:t.withCtx(()=>[c.value?(t.openBlock(),t.createBlock(cu,{key:0,execution:c.value,task:C.data.node.task,color:i.value,uid:C.data.node.uid,state:_.value},null,8,["execution","task","color","uid","state"])):t.createCommentVNode("",!0),C.data.node.task?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[C.playgroundEnabled&&C.playgroundReadyToStart?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"playground-button",onClick:m[0]||(m[0]=k=>l(t.unref(w.EVENTS).RUN_TASK,{task:C.data.node.task}))},[t.createVNode(q,{style:{display:"flex"},title:C.$t("run task in playground")},{default:t.withCtx(()=>[t.createVNode(gd,{class:"button-play-icon",alt:C.$t("run task in playground")},null,8,["alt"])]),_:1},8,["title"])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"playground-button",style:t.normalizeStyle({color:`var(--ks-content-${_.value?.toLowerCase()})`,backgroundColor:`var(--ks-background-${_.value?.toLowerCase()})`})},[t.createVNode(q,{style:{display:"flex"},title:N.value?C.$t(N.value):void 0},{default:t.withCtx(()=>[_.value===t.unref(te).RUNNING?(t.openBlock(),t.createBlock(Uo,{key:0,alt:N.value?C.$t(N.value):void 0},null,8,["alt"])):_.value===t.unref(te).SUCCESS?(t.openBlock(),t.createBlock(vl,{key:1,alt:N.value?C.$t(N.value):void 0},null,8,["alt"])):_.value===t.unref(te).WARNING?(t.openBlock(),t.createBlock(Mn,{key:2,alt:N.value?C.$t(N.value):void 0},null,8,["alt"])):_.value===t.unref(te).SKIPPED?(t.openBlock(),t.createBlock(Dd,{key:3,alt:N.value?C.$t(N.value):void 0},null,8,["alt"])):_.value===t.unref(te).FAILED?(t.openBlock(),t.createBlock(Tt,{key:4,alt:N.value?C.$t(N.value):void 0},null,8,["alt"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4))],64)):t.createCommentVNode("",!0)]),"badge-button-before":t.withCtx(()=>[C.data.node.task&&C.data.node.task.runIf?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",["bg-warning"]]),onClick:m[1]||(m[1]=k=>l(t.unref(w.EVENTS).SHOW_CONDITION,{id:s.value,task:C.data.node.task,section:t.unref(w.SECTIONS).TASKS}))},[t.createVNode(q,{title:C.$t("show task condition")},{default:t.withCtx(()=>[t.createVNode(sd,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[2]||(m[2]=k=>l(t.unref(w.EVENTS).SHOW_LOGS,{id:s.value,execution:c.value,taskRuns:g.value}))},[t.createVNode(q,{title:C.$t("show task logs")},{default:t.withCtx(()=>[t.createVNode(Yu,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly&&C.data.isFlowable?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[3]||(m[3]=k=>l(t.unref(w.EVENTS).ADD_ERROR,{task:C.data.node.task}))},[t.createVNode(q,{title:C.$t("add error handler")},{default:t.withCtx(()=>[t.createVNode(td,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[4]||(m[4]=k=>l(t.unref(w.EVENTS).EDIT,{task:C.data.node.task,section:t.unref(w.SECTIONS).TASKS}))},[t.createVNode(q,{title:C.$t("edit")},{default:t.withCtx(()=>[t.createVNode($n,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:4,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[5]||(m[5]=k=>l(t.unref(w.EVENTS).DELETE,{id:s.value,section:t.unref(w.SECTIONS).TASKS}))},[t.createVNode(q,{title:C.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Rn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:C.targetPosition},null,8,["position"])],64))}}),$d=P(Pd,[["__scopeId","data-v-a1d3d303"]]),Rd={name:"Task",inheritAttrs:!1,inject:{execution:{from:Pn}},computed:{SECTIONS(){return w.SECTIONS},EVENTS(){return w.EVENTS},color(){return this.data.color??"primary"},formattedData(){return{...this.data,unused:this.data.node?.triggerDeclaration?.disabled||this.data.node?.trigger?.disabled}},triggerId(){return w.Utils.afterLastDot(this.id)}},emits:[w.EVENTS.DELETE,w.EVENTS.EDIT,w.EVENTS.SHOW_DESCRIPTION],components:{Delete:Rn,Pencil:$n,Handle:ne.Handle,Tooltip:q},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,n){this.$emit(e,n)}}},Md=Object.assign(Rd,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(yl,{id:e.id,data:n.formattedData,color:n.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:o[2]||(o[2]=l=>n.forwardEvent(t.unref(w.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[3]||(o[3]=l=>n.forwardEvent(t.unref(w.EVENTS).EXPAND,{id:e.id}))},t.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:t.withCtx(()=>[n.execution?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(t.unref(w.EVENTS).EDIT,{task:e.data.node.triggerDeclaration,section:t.unref(w.SECTIONS).TRIGGERS}))},[t.createVNode(q,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode($n,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),n.execution?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[1]||(o[1]=l=>n.$emit(t.unref(w.EVENTS).DELETE,{id:n.triggerId,section:t.unref(w.SECTIONS).TRIGGERS}))},[t.createVNode(q,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Rn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),xd={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Fd=["aria-hidden","aria-label"],Ud=["fill","width","height"],Hd={d:"M11 15H6L13 1V9H18L11 23V15Z"},zd={key:0};function Gd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Hd,[o.title?(t.openBlock(),t.createElementBlock("title",zd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ud))],16,Fd)}const Wd=P(xd,[["render",Gd]]),jd={class:"collapsed-cluster-node d-flex"},Kd={class:"node-text"},Yd={class:"text-white top-button-div"},qd={components:{Tooltip:q,Handle:ne.Handle,ArrowExpand:Dn,LightningBolt:Wd},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 w.EVENTS},expandable(){return this.data?.expandable||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},Xd=Object.assign(qd,{__name:"CollapsedClusterNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",jd,[t.createElementVNode("span",Kd,[e.data.iconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.data.iconComponent),{key:0,class:t.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(w.Utils).afterLastDot(e.id)),1)]),t.createElementVNode("div",Yd,[t.renderSlot(n.$slots,"badge-button-before",{},void 0,!0),n.expandable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(t.unref(w.EVENTS).EXPAND,{id:e.id}))},[t.createVNode(q,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Dn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"badge-button-after",{},void 0,!0)])]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Zd=P(Xd,[["__scopeId","data-v-89413b39"]]),Jd={name:"SplitCellsVerticalIcon",emits:["click"]},Qd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ef(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",Qd,[...n[0]||(n[0]=[t.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[t.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),t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_1111_7266"},[t.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)])])}const tf=P(Jd,[["render",ef],["__scopeId","data-v-084c51e6"]]),nf={name:"SplitCellsHorizontalIcon",emits:["click"]},of={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lf(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",of,[...n[0]||(n[0]=[t.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[t.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),t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_796_3996"},[t.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)])])}const rf=P(nf,[["render",lf],["__scopeId","data-v-c77c1469"]]),af={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sf=["aria-hidden","aria-label"],cf=["fill","width","height"],uf={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},df={key:0};function ff(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon download-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",uf,[o.title?(t.openBlock(),t.createElementBlock("title",df,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,cf))],16,sf)}const mf=P(af,[["render",ff]]);function pf(e,n){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 o=document.implementation.createHTMLDocument(),l=o.createElement("base"),a=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(a),n&&(l.href=n),a.href=e,a.href}const gf=(()=>{let e=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${n()}${e}`)})();function Re(e){const n=[];for(let o=0,l=e.length;o<l;o++)n.push(e[o]);return n}let Je=null;function Nl(e={}){return Je||(e.includeStyleProperties?(Je=e.includeStyleProperties,Je):(Je=Re(window.getComputedStyle(document.documentElement)),Je))}function Ot(e,n){const l=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(n);return l?parseFloat(l.replace("px","")):0}function hf(e){const n=Ot(e,"border-left-width"),o=Ot(e,"border-right-width");return e.clientWidth+n+o}function Ef(e){const n=Ot(e,"border-top-width"),o=Ot(e,"border-bottom-width");return e.clientHeight+n+o}function Sl(e,n={}){const o=n.width||hf(e),l=n.height||Ef(e);return{width:o,height:l}}function _f(){let e,n;try{n=process}catch{}const o=n&&n.env?n.env.devicePixelRatio:null;return o&&(e=parseInt(o,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const ke=16384;function kf(e){(e.width>ke||e.height>ke)&&(e.width>ke&&e.height>ke?e.width>e.height?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke):e.width>ke?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke))}function Dt(e){return new Promise((n,o)=>{const l=new Image;l.onload=()=>{l.decode().then(()=>{requestAnimationFrame(()=>n(l))})},l.onerror=o,l.crossOrigin="anonymous",l.decoding="async",l.src=e})}async function yf(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function Cf(e,n,o){const l="http://www.w3.org/2000/svg",a=document.createElementNS(l,"svg"),r=document.createElementNS(l,"foreignObject");return a.setAttribute("width",`${n}`),a.setAttribute("height",`${o}`),a.setAttribute("viewBox",`0 0 ${n} ${o}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),a.appendChild(r),r.appendChild(e),yf(a)}const Ee=(e,n)=>{if(e instanceof n)return!0;const o=Object.getPrototypeOf(e);return o===null?!1:o.constructor.name===n.name||Ee(o,n)};function vf(e){const n=e.getPropertyValue("content");return`${e.cssText} content: '${n.replace(/'|"/g,"")}';`}function Nf(e,n){return Nl(n).map(o=>{const l=e.getPropertyValue(o),a=e.getPropertyPriority(o);return`${o}: ${l}${a?" !important":""};`}).join(" ")}function Sf(e,n,o,l){const a=`.${e}:${n}`,r=o.cssText?vf(o):Nf(o,l);return document.createTextNode(`${a}{${r}}`)}function To(e,n,o,l){const a=window.getComputedStyle(e,o),r=a.getPropertyValue("content");if(r===""||r==="none")return;const i=gf();try{n.className=`${n.className} ${i}`}catch{return}const s=document.createElement("style");s.appendChild(Sf(i,o,a,l)),n.appendChild(s)}function bf(e,n,o){To(e,n,":before",o),To(e,n,":after",o)}const Ao="application/font-woff",Io="image/jpeg",Lf={woff:Ao,woff2:Ao,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Io,jpeg:Io,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function wf(e){const n=/\.([^./]*?)$/g.exec(e);return n?n[1]:""}function xn(e){const n=wf(e).toLowerCase();return Lf[n]||""}function Tf(e){return e.split(/,/)[1]}function kn(e){return e.search(/^(data:)/)!==-1}function Af(e,n){return`data:${n};base64,${e}`}async function bl(e,n,o){const l=await fetch(e,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const a=await l.blob();return new Promise((r,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{r(o({res:l,result:s.result}))}catch(c){i(c)}},s.readAsDataURL(a)})}const ln={};function If(e,n,o){let l=e.replace(/\?.*/,"");return o&&(l=e),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),n?`[${n}]${l}`:l}async function Fn(e,n,o){const l=If(e,n,o.includeQueryParams);if(ln[l]!=null)return ln[l];o.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const r=await bl(e,o.fetchRequestInit,({res:i,result:s})=>(n||(n=i.headers.get("Content-Type")||""),Tf(s)));a=Af(r,n)}catch(r){a=o.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;r&&(i=typeof r=="string"?r:r.message),i&&console.warn(i)}return ln[l]=a,a}async function Vf(e){const n=e.toDataURL();return n==="data:,"?e.cloneNode(!1):Dt(n)}async function Bf(e,n){if(e.currentSrc){const r=document.createElement("canvas"),i=r.getContext("2d");r.width=e.clientWidth,r.height=e.clientHeight,i?.drawImage(e,0,0,r.width,r.height);const s=r.toDataURL();return Dt(s)}const o=e.poster,l=xn(o),a=await Fn(o,l,n);return Dt(a)}async function Of(e,n){var o;try{if(!((o=e?.contentDocument)===null||o===void 0)&&o.body)return await Ht(e.contentDocument.body,n,!0)}catch{}return e.cloneNode(!1)}async function Df(e,n){return Ee(e,HTMLCanvasElement)?Vf(e):Ee(e,HTMLVideoElement)?Bf(e,n):Ee(e,HTMLIFrameElement)?Of(e,n):e.cloneNode(Ll(e))}const Pf=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Ll=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function $f(e,n,o){var l,a;if(Ll(n))return n;let r=[];return Pf(e)&&e.assignedNodes?r=Re(e.assignedNodes()):Ee(e,HTMLIFrameElement)&&(!((l=e.contentDocument)===null||l===void 0)&&l.body)?r=Re(e.contentDocument.body.childNodes):r=Re(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),r.length===0||Ee(e,HTMLVideoElement)||await r.reduce((i,s)=>i.then(()=>Ht(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function Rf(e,n,o){const l=n.style;if(!l)return;const a=window.getComputedStyle(e);a.cssText?(l.cssText=a.cssText,l.transformOrigin=a.transformOrigin):Nl(o).forEach(r=>{let i=a.getPropertyValue(r);r==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),Ee(e,HTMLIFrameElement)&&r==="display"&&i==="inline"&&(i="block"),r==="d"&&n.getAttribute("d")&&(i=`path(${n.getAttribute("d")})`),l.setProperty(r,i,a.getPropertyPriority(r))})}function Mf(e,n){Ee(e,HTMLTextAreaElement)&&(n.innerHTML=e.value),Ee(e,HTMLInputElement)&&n.setAttribute("value",e.value)}function xf(e,n){if(Ee(e,HTMLSelectElement)){const o=n,l=Array.from(o.children).find(a=>e.value===a.getAttribute("value"));l&&l.setAttribute("selected","")}}function Ff(e,n,o){return Ee(n,Element)&&(Rf(e,n,o),bf(e,n,o),Mf(e,n),xf(e,n)),n}async function Uf(e,n){const o=e.querySelectorAll?e.querySelectorAll("use"):[];if(o.length===0)return e;const l={};for(let r=0;r<o.length;r++){const s=o[r].getAttribute("xlink:href");if(s){const c=e.querySelector(s),u=document.querySelector(s);!c&&u&&!l[s]&&(l[s]=await Ht(u,n,!0))}}const a=Object.values(l);if(a.length){const r="http://www.w3.org/1999/xhtml",i=document.createElementNS(r,"svg");i.setAttribute("xmlns",r),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(r,"defs");i.appendChild(s);for(let c=0;c<a.length;c++)s.appendChild(a[c]);e.appendChild(i)}return e}async function Ht(e,n,o){return!o&&n.filter&&!n.filter(e)?null:Promise.resolve(e).then(l=>Df(l,n)).then(l=>$f(e,l,n)).then(l=>Ff(e,l,n)).then(l=>Uf(l,n))}const wl=/url\((['"]?)([^'"]+?)\1\)/g,Hf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Gf(e){const n=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function Wf(e){const n=[];return e.replace(wl,(o,l,a)=>(n.push(a),o)),n.filter(o=>!kn(o))}async function jf(e,n,o,l,a){try{const r=o?pf(n,o):n,i=xn(n);let s;return a||(s=await Fn(r,i,l)),e.replace(Gf(n),`$1${s}$3`)}catch{}return e}function Kf(e,{preferredFontFormat:n}){return n?e.replace(zf,o=>{for(;;){const[l,,a]=Hf.exec(o)||[];if(!a)return"";if(a===n)return`src: ${l};`}}):e}function Tl(e){return e.search(wl)!==-1}async function Al(e,n,o){if(!Tl(e))return e;const l=Kf(e,o);return Wf(l).reduce((r,i)=>r.then(s=>jf(s,i,n,o)),Promise.resolve(l))}async function Qe(e,n,o){var l;const a=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(e);if(a){const r=await Al(a,null,o);return n.style.setProperty(e,r,n.style.getPropertyPriority(e)),!0}return!1}async function Yf(e,n){await Qe("background",e,n)||await Qe("background-image",e,n),await Qe("mask",e,n)||await Qe("-webkit-mask",e,n)||await Qe("mask-image",e,n)||await Qe("-webkit-mask-image",e,n)}async function qf(e,n){const o=Ee(e,HTMLImageElement);if(!(o&&!kn(e.src))&&!(Ee(e,SVGImageElement)&&!kn(e.href.baseVal)))return;const l=o?e.src:e.href.baseVal,a=await Fn(l,xn(l),n);await new Promise((r,i)=>{e.onload=r,e.onerror=n.onImageErrorHandler?(...c)=>{try{r(n.onImageErrorHandler(...c))}catch(u){i(u)}}:i;const s=e;s.decode&&(s.decode=r),s.loading==="lazy"&&(s.loading="eager"),o?(e.srcset="",e.src=a):e.href.baseVal=a})}async function Xf(e,n){const l=Re(e.childNodes).map(a=>Il(a,n));await Promise.all(l).then(()=>e)}async function Il(e,n){Ee(e,Element)&&(await Yf(e,n),await qf(e,n),await Xf(e,n))}function Zf(e,n){const{style:o}=e;n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.width&&(o.width=`${n.width}px`),n.height&&(o.height=`${n.height}px`);const l=n.style;return l!=null&&Object.keys(l).forEach(a=>{o[a]=l[a]}),e}const Vo={};async function Bo(e){let n=Vo[e];if(n!=null)return n;const l=await(await fetch(e)).text();return n={url:e,cssText:l},Vo[e]=n,n}async function Oo(e,n){let o=e.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,r=(o.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),bl(s,n.fetchRequestInit,({result:c})=>(o=o.replace(i,`url(${c})`),[i,c]))});return Promise.all(r).then(()=>o)}function Do(e){if(e==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=e.replace(o,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=a.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(a,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(i,"gi");for(;;){let c=r.exec(l);if(c===null){if(c=s.exec(l),c===null)break;r.lastIndex=s.lastIndex}else s.lastIndex=r.lastIndex;n.push(c[0])}return n}async function Jf(e,n){const o=[],l=[];return e.forEach(a=>{if("cssRules"in a)try{Re(a.cssRules||[]).forEach((r,i)=>{if(r.type===CSSRule.IMPORT_RULE){let s=i+1;const c=r.href,u=Bo(c).then(g=>Oo(g,n)).then(g=>Do(g).forEach(_=>{try{a.insertRule(_,_.startsWith("@import")?s+=1:a.cssRules.length)}catch(p){console.error("Error inserting rule from remote css",{rule:_,error:p})}})).catch(g=>{console.error("Error loading remote css",g.toString())});l.push(u)}})}catch(r){const i=e.find(s=>s.href==null)||document.styleSheets[0];a.href!=null&&l.push(Bo(a.href).then(s=>Oo(s,n)).then(s=>Do(s).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",r)}}),Promise.all(l).then(()=>(e.forEach(a=>{if("cssRules"in a)try{Re(a.cssRules||[]).forEach(r=>{o.push(r)})}catch(r){console.error(`Error while reading CSS rules from ${a.href}`,r)}}),o))}function Qf(e){return e.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Tl(n.style.getPropertyValue("src")))}async function em(e,n){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=Re(e.ownerDocument.styleSheets),l=await Jf(o,n);return Qf(l)}function Vl(e){return e.trim().replace(/["']/g,"")}function tm(e){const n=new Set;function o(l){(l.style.fontFamily||getComputedStyle(l).fontFamily).split(",").forEach(r=>{n.add(Vl(r))}),Array.from(l.children).forEach(r=>{r instanceof HTMLElement&&o(r)})}return o(e),n}async function nm(e,n){const o=await em(e,n),l=tm(e);return(await Promise.all(o.filter(r=>l.has(Vl(r.style.fontFamily))).map(r=>{const i=r.parentStyleSheet?r.parentStyleSheet.href:null;return Al(r.cssText,i,n)}))).join(`
|
|
25
|
+
`)}async function om(e,n){const o=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await nm(e,n);if(o){const l=document.createElement("style"),a=document.createTextNode(o);l.appendChild(a),e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}}async function lm(e,n={}){const{width:o,height:l}=Sl(e,n),a=await Ht(e,n,!0);return await om(a,n),await Il(a,n),Zf(a,n),await Cf(a,o,l)}async function Bl(e,n={}){const{width:o,height:l}=Sl(e,n),a=await lm(e,n),r=await Dt(a),i=document.createElement("canvas"),s=i.getContext("2d"),c=n.pixelRatio||_f(),u=n.canvasWidth||o,g=n.canvasHeight||l;return i.width=u*c,i.height=g*c,n.skipAutoScale||kf(i),i.style.width=`${u}`,i.style.height=`${g}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(r,0,0,i.width,i.height),i}async function rm(e,n={}){return(await Bl(e,n)).toDataURL()}async function am(e,n={}){return(await Bl(e,n)).toDataURL("image/jpeg",n.quality||1)}function im(){const e=t.ref(""),n=t.ref("png"),o=t.ref();async function l(s,c={}){let u;const g=c.fileName??`vue-flow-screenshot-${Date.now()}`;switch(c.type){case"jpeg":u=await a(s,c);break;case"png":u=await r(s,c);break;default:u=await r(s,c);break}return c.shouldDownload&&g!==""&&i(g),u}function a(s,c={quality:.95}){return o.value=null,am(s,c).then(u=>(e.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function r(s,c={quality:.95}){return o.value=null,rm(s,c).then(u=>(e.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=e.value,c.click()}return{capture:l,download:i,dataUrl:e,error:o}}const sm={key:1,class:"exporting"},cm=t.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,default:void 0},namespace:{type:String,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{type:Object,default:void 0},subflowsExecutions:{type:Object,default:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1}},emits:[w.EVENTS.EDIT,w.EVENTS.DELETE,w.EVENTS.RUN_TASK,w.EVENTS.OPEN_LINK,w.EVENTS.SHOW_LOGS,w.EVENTS.SHOW_DESCRIPTION,w.EVENTS.RUN_TASK,"on-add-flowable-error",w.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",w.EVENTS.SHOW_CONDITION],setup(e,{emit:n}){const o=e,l=t.ref(!1),a=t.ref(),{getNodes:r,onNodeDrag:i,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:g,vueFlowRef:_}=ne.useVueFlow(o.id),p=t.ref({}),E=t.ref([]),V=t.ref(new Set),N=t.ref([]),{capture:C}=im();t.provide(Pn,t.computed(()=>o.execution)),t.provide(Cl,t.computed(()=>o.subflowsExecutions));const m=n;t.onMounted(()=>{k()}),t.watch(()=>o.flowGraph,()=>{k()}),t.watch(()=>o.isHorizontal,()=>{k()});const k=()=>{w.cleanGraph(o.id),t.nextTick(()=>{m("loading",!0);const $=V.value;V.value=new Set,E.value=[],p.value={},$.forEach(H=>x(w.CLUSTER_PREFIX+H,!1,!1));const B=w.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,E.value,o.isHorizontal,p.value,V.value,N.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction);B&&(g(B),u(),m("loading",!1))})},b=$=>{l.value||w.linkedElements(o.id,$.uid).forEach(B=>{B?.type==="task"&&(B.style={...B.style,outline:"0.5px solid "+Ce("--bs-gray-900")},B.class="rounded-3")})},h=()=>{I()},I=()=>{r.value.filter($=>$.type==="task"||$.type==="trigger").forEach($=>{$.style={...$.style,opacity:"1",outline:"none"},$.class=""})};s($=>{l.value=!0,I(),$.node.style={...$.node.style,zIndex:1976},a.value=$.node.position}),c($=>{if(l.value=!1,$.intersections&&v($.intersections,$.node)===null){const B=$.node,H=$.intersections.find(R=>R.type==="task");if(H)try{o.source&&m("swapped-task",{newSource:G.swapBlocks({source:o.source,section:"tasks",key1:w.Utils.afterLastDot(B.id)??"",key2:w.Utils.afterLastDot(H.id)??""}),swappedTasks:[B.id,H.id]})}catch(R){m("message",{variant:"error",title:"cannot swap tasks",message:`${R.message}, ${R.messageOptions}`}),B.position=a.value}else B.position=a.value}else $.node.position=a.value;I(),$.node.style={...$.node.style,zIndex:5},a.value=null});const L=t.computed(()=>o.flowGraph?.clusters?o.flowGraph.clusters.filter($=>$.cluster.type.endsWith("SubflowGraphCluster")).map($=>$.cluster.taskNode.uid+"."):[]);i($=>{I(),r.value.filter(B=>B.id!==$.node.id).forEach(B=>{B.type==="trigger"||B.type==="task"&&(B.id.startsWith($.node.id+".")||$.node.id.startsWith(B.id+"."))||L?.value?.some(H=>B.id.startsWith(H))?B.style={...B.style,opacity:"0.5"}:B.style={...B.style,opacity:"1"}}),$.intersections&&!v($.intersections,$.node)&&$.intersections.filter(B=>B.type==="task").length===1&&($.intersections.forEach(B=>{B.type==="task"&&(B.style={...B.style,outline:"0.5px solid "+Ce("--bs-primary")},B.class="rounded-3")}),$.node.style={...$.node.style,outline:"0.5px solid "+Ce("--bs-primary")},$.node.class="rounded-3")});const v=($,B)=>{const H=$.filter(R=>R.type==="task").map(R=>w.Utils.afterLastDot(R.id));if(H.length>1)return"toomuchtaskerror";try{if(H.length===1&&o.source&&G.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:w.Utils.afterLastDot(H[0])??"",key2:w.Utils.afterLastDot(B.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return $.filter(R=>R.type==="trigger").length>0?"triggererror":null},x=($,B,H=!1)=>{const R=o.flowGraph.clusters.find(fe=>fe.cluster.uid.endsWith($)),Ie=$.replace(w.CLUSTER_PREFIX,"");V.value.add(Ie),E.value=E.value.concat(R.nodes.filter(fe=>fe!==Ie||H)),E.value=E.value.concat([R.cluster.uid]),p.value={...p.value,[R.cluster.uid]:Ie,[R.start]:Ie,[R.end]:Ie};for(let fe of R.nodes)o.flowGraph.clusters.map(Fe=>Fe.cluster.uid).includes(fe)&&x(fe,!1,!0);B&&k()},U=$=>{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($.type)&&!o.expandedSubflows.includes($.id)){m("expand-subflow",[...o.expandedSubflows,$.id]);return}p.value={},E.value=[],N.value=[],V.value.delete($.id),V.value.forEach(H=>x(H,!1,!1)),k()},oe=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ge=t.ref(!0),Z=t.ref(!1),$e=()=>Z.value=!Z.value;function Xe($){if(!_.value){console.warn("Flow not found");return}ge.value=!1,C(_.value,{type:$,shouldDownload:!0}).then(()=>ge.value=!0).finally(()=>Z.value=!1)}return($,B)=>(t.openBlock(),t.createBlock(t.unref(ne.VueFlow),{id:e.id,"default-marker-color":t.unref(Ce)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":t.withCtx(H=>[t.createVNode(Oc,t.mergeProps(H,{onCollapse:B[0]||(B[0]=R=>x(R,!0))}),null,16)]),"node-dot":t.withCtx(H=>[t.createVNode(Hc,t.normalizeProps(t.guardReactiveProps(H)),null,16)]),"node-task":t.withCtx(H=>[t.createVNode($d,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent,"playground-enabled":e.playgroundEnabled,"playground-ready-to-start":e.playgroundReadyToStart,onEdit:B[1]||(B[1]=R=>m(t.unref(w.EVENTS).EDIT,R)),onDelete:B[2]||(B[2]=R=>m(t.unref(w.EVENTS).DELETE,R)),onRunTask:B[3]||(B[3]=R=>m(t.unref(w.EVENTS).RUN_TASK,R)),onExpand:B[4]||(B[4]=R=>U(R)),onOpenLink:B[5]||(B[5]=R=>m(t.unref(w.EVENTS).OPEN_LINK,R)),onShowLogs:B[6]||(B[6]=R=>m(t.unref(w.EVENTS).SHOW_LOGS,R)),onShowDescription:B[7]||(B[7]=R=>m(t.unref(w.EVENTS).SHOW_DESCRIPTION,R)),onShowCondition:B[8]||(B[8]=R=>m(t.unref(w.EVENTS).SHOW_CONDITION,R)),onMouseover:B[9]||(B[9]=R=>b(R)),onMouseleave:B[10]||(B[10]=R=>h()),onAddError:B[11]||(B[11]=R=>m("on-add-flowable-error",R)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-trigger":t.withCtx(H=>[t.createVNode(Md,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:B[12]||(B[12]=R=>m(t.unref(w.EVENTS).DELETE,R)),onEdit:B[13]||(B[13]=R=>m(t.unref(w.EVENTS).EDIT,R)),onShowDescription:B[14]||(B[14]=R=>m(t.unref(w.EVENTS).SHOW_DESCRIPTION,R))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":t.withCtx(H=>[t.createVNode(Zd,t.mergeProps(H,{onExpand:B[15]||(B[15]=R=>U(R))}),null,16)]),"edge-edge":t.withCtx(H=>[t.createVNode(tu,t.mergeProps(H,{"yaml-source":e.source,onAddTask:B[16]||(B[16]=R=>m(t.unref(w.EVENTS).ADD_TASK,R)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:t.withCtx(()=>[t.createVNode(t.unref(vc),{"pattern-color":oe?t.unref(Ce)("--bs-grey-500"):t.unref(Ce)("--bs-grey-300")},null,8,["pattern-color"]),ge.value?(t.openBlock(),t.createBlock(t.unref(Qt.Controls),{key:0,"show-interactive":!1},{default:t.withCtx(()=>[e.toggleOrientationButton?(t.openBlock(),t.createBlock(t.unref(Qt.ControlButton),{key:0,onClick:B[17]||(B[17]=H=>m("toggle-orientation",H))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isHorizontal?rf:tf)))]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(Qt.ControlButton),{onClick:$e},{default:t.withCtx(()=>[t.createVNode(mf)]),_:1}),Z.value?(t.openBlock(),t.createElementBlock("ul",sm,[t.createElementVNode("li",{onClick:B[18]||(B[18]=H=>Xe("jpeg")),class:"item"}," Export as .JPEG "),t.createElementVNode("li",{onClick:B[19]||(B[19]=H=>Xe("png")),class:"item"}," Export as .PNG ")])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),um=P(cm,[["__scopeId","data-v-f889d0c2"]]),dm={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fm=["aria-hidden","aria-label"],mm=["fill","width","height"],pm={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"},gm={key:0};function hm(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",pm,[o.title?(t.openBlock(),t.createElementBlock("title",gm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,mm))],16,fm)}const Em=P(dm,[["render",hm]]),_m={key:0,class:"language"},km=["innerHTML"],ym=t.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 n={ContentCopy:t.shallowRef(Em),Check:t.shallowRef(vl)},o=e,l=t.ref(!1),a=t.ref(),r=t.shallowRef(n.ContentCopy.value),i=t.ref(),s=t.ref(),c=t.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,a.value&&t.nextTick(()=>{i.value&&s.value&&ur.createPopper(i.value,s.value,{placement:"left"})})}function g(){clearTimeout(a.value),navigator.clipboard.writeText(o.code.trimEnd()),r.value=n.Check.value,a.value=setTimeout(()=>{r.value=n.ContentCopy.value,a.value=void 0},2e3)}return(_,p)=>(t.openBlock(),t.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:p[0]||(p[0]=E=>l.value=!1)},[_.language&&!l.value?(t.openBlock(),t.createElementBlock("div",_m,t.toDisplayString(_.language),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_key:"copyButton",ref:i,class:"copy"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value),{onClick:g}))],512),a.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},[...p[1]||(p[1]=[t.createTextVNode(" Copied! ",-1),t.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)])],512)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{innerHTML:c.value},null,8,km)],32))}}),Po=P(ym,[["__scopeId","data-v-a899f6a1"]]),Cm={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vm=["aria-hidden","aria-label"],Nm=["fill","width","height"],Sm={d:"M10,17L15,12L10,7V17Z"},bm={key:0};function Lm(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Sm,[o.title?(t.openBlock(),t.createElementBlock("title",bm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Nm))],16,vm)}const wm=P(Cm,[["render",Lm]]),Tm={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Am=["aria-hidden","aria-label"],Im=["fill","width","height"],Vm={d:"M7,10L12,15L17,10H7Z"},Bm={key:0};function Om(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Vm,[o.title?(t.openBlock(),t.createElementBlock("title",Bm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Im))],16,Am)}const Dm=P(Tm,[["render",Om]]),Pm=["id","open"],$m={class:"d-flex gap-2 align-items-center"},Rm={key:0,class:"d-flex flex-grow-1"},Mm=["id"],xm=t.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=t.ref(!0),a=bn.useRoute(),r=n,i=t.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||r("expand"),!o.noUrlChange&&(window.location.hash=l.value?"":i.value)},c=t.ref(!1);return t.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),t.watch(()=>a.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,g)=>(t.openBlock(),t.createElementBlock("details",{id:u.href,open:c.value},[t.createElementVNode("summary",{class:t.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:l.value}]),onClick:s},[t.createElementVNode("span",$m,[u.arrow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?wm:Dm),{key:0,class:"arrow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(u.clickableText)+" ",1),t.renderSlot(u.$slots,"additionalButtonText",{},void 0,!0)]),u.$slots.buttonRight?(t.openBlock(),t.createElementBlock("span",Rm,[t.renderSlot(u.$slots,"buttonRight",{collapsed:l.value},void 0,!0)])):t.createCommentVNode("",!0)],2),u.$slots.content?(t.openBlock(),t.createElementBlock("div",{key:0,id:u.href+"-body"},[t.createElementVNode("div",null,[t.renderSlot(u.$slots,"content",{},void 0,!0)])],8,Mm)):t.createCommentVNode("",!0)],8,Pm))}}),Pt=P(xm,[["__scopeId","data-v-d580b6d0"]]);function St(e){if(e.type)return Array.isArray(e.type)?e.type:[e.type];if(e.$ref)return["#"+e.$ref.slice(8)]}function Ol(e){const n=e.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function Fm(e){if(e.enum)return e.enum;if(e.items?.enum)return e.items.enum;if(e.additionalProperties?.enum)return e.additionalProperties.enum}function Um(e){return e.allOf&&(e=e.allOf.reduce((n,o)=>({...n,...o}),{...e}),delete e.allOf),e}function Dl(e){const n={},o=a=>{const r=St(a);if(r&&r.length>0)return r;if(a.anyOf)return a.anyOf.flatMap(St).filter(i=>i!==void 0).filter(w.Utils.distinctFilter)},l=o(e);if(l?n.types=l:n.types=["object"],n.types.includes("array")&&e.items){const a=o(e.items);a&&e.items.anyOf&&(n.types=n.types.filter(r=>r!=="array").concat(a))}return e.additionalProperties?n.subType=St(e.additionalProperties)?.[0]:e.items&&(n.subType=St(e.items)?.[0]),n}const Hm={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zm=["aria-hidden","aria-label"],Gm=["fill","width","height"],Wm={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},jm={key:0};function Km(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Wm,[o.title?(t.openBlock(),t.createElementBlock("title",jm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gm))],16,zm)}const Ym=P(Hm,[["render",Km]]),qm={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xm=["aria-hidden","aria-label"],Zm=["fill","width","height"],Jm={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"},Qm={key:0};function ep(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Jm,[o.title?(t.openBlock(),t.createElementBlock("title",Qm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zm))],16,Xm)}const Pl=P(qm,[["render",ep]]),tp={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},np=["aria-hidden","aria-label"],op=["fill","width","height"],lp={d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"},rp={key:0};function ap(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",lp,[o.title?(t.openBlock(),t.createElementBlock("title",rp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,op))],16,np)}const ip=P(tp,[["render",ap]]),sp={class:"me-3"},cp={class:"d-flex flex-column"},up=t.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"success":return ip;case"info":return Tt;case"warning":return Mn;case"danger":return an;default:return Tt}});return(l,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass("doc-alert alert alert-"+l.type),role:"alert"},[t.createElementVNode("div",sp,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),t.createElementVNode("div",cp,[t.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),dp=P(up,[["__scopeId","data-v-f7fd8bc1"]]),fp={class:"property-detail"},mp={key:0},pp=["href"],gp={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},hp={class:"ref-type"},Ep={key:1,class:"type-box rounded fs-7 px-2 py-1"},_p={key:1},kp={class:"border rounded px-2 py-1"},yp={key:2},Cp={class:"border rounded px-2 py-1"},vp={key:3},Np={class:"border rounded px-2 py-1"},Sp={key:4},bp={class:"border rounded px-2 py-1"},Lp={key:5},wp={class:"border rounded px-2 py-1"},Tp={key:6},Ap={class:"border rounded px-2 py-1"},Ip={key:7},Vp={class:"border rounded px-2 py-1"},Bp={key:8},Op={class:"border rounded px-2 py-1"},Dp={key:9},Pp={class:"border rounded px-2 py-1"},$p={key:10},Rp={class:"border rounded px-2 py-1"},Mp={key:11},xp={class:"border rounded px-2 py-1"},Fp={key:12},Up={class:"border rounded px-2 py-1"},Hp={key:13},zp={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},Gp={key:14},Wp={class:"property-description markdown"},jp={key:2},Kp=t.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const n=e,o=t.ref(Dl(n.property).subType),l=t.ref(Fm(n.property)),a=r=>r.replace(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replace(new RegExp("(?<!:):(?![: /])","g"),": ");return(r,i)=>(t.openBlock(),t.createElementBlock("div",fp,[o.value?(t.openBlock(),t.createElementBlock("div",mp,[i[1]||(i[1]=t.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,href:o.value,onClick:i[0]||(i[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("button",gp,[t.createElementVNode("span",hp,t.toDisplayString(t.unref(Ol)(o.value)),1),t.createVNode(Pl)])],8,pp)):(t.openBlock(),t.createElementBlock("span",Ep,t.toDisplayString(o.value),1))])):t.createCommentVNode("",!0),r.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",_p,[i[2]||(i[2]=t.createElementVNode("span",null," Default ",-1)),t.createElementVNode("code",kp,t.toDisplayString(r.property.default),1)])):t.createCommentVNode("",!0),r.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",yp,[i[3]||(i[3]=t.createElementVNode("span",null," Validation RegExp ",-1)),t.createElementVNode("code",Cp,t.toDisplayString(r.property.pattern),1)])):t.createCommentVNode("",!0),r.property.unit!==void 0&&r.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",vp,[i[4]||(i[4]=t.createElementVNode("span",null," Unit ",-1)),t.createElementVNode("code",Np,t.toDisplayString(r.property.unit),1)])):t.createCommentVNode("",!0),r.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",Sp,[i[5]||(i[5]=t.createElementVNode("span",null," Min length ",-1)),t.createElementVNode("code",bp,t.toDisplayString(r.property.minLength),1)])):t.createCommentVNode("",!0),r.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",Lp,[i[6]||(i[6]=t.createElementVNode("span",null," Max length ",-1)),t.createElementVNode("code",wp,t.toDisplayString(r.property.maxLength),1)])):t.createCommentVNode("",!0),r.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",Tp,[i[7]||(i[7]=t.createElementVNode("span",null," Min items ",-1)),t.createElementVNode("code",Ap,t.toDisplayString(r.property.minItems),1)])):t.createCommentVNode("",!0),r.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",Ip,[i[8]||(i[8]=t.createElementVNode("span",null," Max items ",-1)),t.createElementVNode("code",Vp,t.toDisplayString(r.property.maxItems),1)])):t.createCommentVNode("",!0),r.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",Bp,[i[9]||(i[9]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",Op," >= "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",Dp,[i[10]||(i[10]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",Pp," > "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",$p,[i[11]||(i[11]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",Rp," <= "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",Mp,[i[12]||(i[12]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",xp," < "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",Fp,[i[13]||(i[13]=t.createElementVNode("span",null," Format ",-1)),t.createElementVNode("code",Up,t.toDisplayString(r.property.format),1)])):t.createCommentVNode("",!0),l.value!==void 0?(t.openBlock(),t.createElementBlock("div",Hp,[i[14]||(i[14]=t.createElementVNode("span",null," Possible Values ",-1)),t.createElementVNode("div",zp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(s,c)=>(t.openBlock(),t.createElementBlock("code",{class:"border rounded px-2 py-1",key:c},t.toDisplayString(s),1))),128))])])):t.createCommentVNode("",!0),r.property.title!==void 0||r.property.description!==void 0?(t.openBlock(),t.createElementBlock("div",Gp,[t.createElementVNode("div",Wp,[r.property.title!==void 0?t.renderSlot(r.$slots,"markdown",{key:0,content:a(r.property.title)},void 0,!0):t.createCommentVNode("",!0),r.property.description!==void 0?t.renderSlot(r.$slots,"markdown",{key:1,content:a(r.property.description)},void 0,!0):t.createCommentVNode("",!0),r.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",jp,[t.createVNode(dp,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),Yp=P(Kp,[["__scopeId","data-v-721fbdf5"]]),qp={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xp=["aria-hidden","aria-label"],Zp=["fill","width","height"],Jp={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},Qp={key:0};function e1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Jp,[o.title?(t.openBlock(),t.createElementBlock("title",Qp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zp))],16,Xp)}const t1=P(qp,[["render",e1]]),n1={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},o1=["aria-hidden","aria-label"],l1=["fill","width","height"],r1={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"},a1={key:0};function i1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",r1,[o.title?(t.openBlock(),t.createElementBlock("title",a1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,l1))],16,o1)}const s1=P(n1,[["render",i1]]),c1={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},u1=["aria-hidden","aria-label"],d1=["fill","width","height"],f1={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"},m1={key:0};function p1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",f1,[o.title?(t.openBlock(),t.createElementBlock("title",m1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,d1))],16,u1)}const g1=P(c1,[["render",p1]]),h1={class:"border overflow-hidden"},E1={class:"d-flex flex-grow-1 align-items-center justify-content-between"},_1={class:"d-flex gap-2"},k1={class:"d-flex flex-wrap justify-content-end gap-2"},y1=["href"],C1={class:"ref-type"},v1={key:1,class:"type-box rounded fs-7 px-2 py-1"},N1=t.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=n,a=t.ref(!1);t.watch(a,s=>{s&&l("expand")});const r=s=>s.$dynamic===!0?!0:s.$dynamic===!1?!1:s.anyOf?.some(c=>c.$dynamic===!0)??!1;function i(s){const c=[],u=[];for(const p in s)typeof s[p]=="object"&&(s[p]=Um(s[p]),s[p].$required?c.push(p):u.push(p));const g=[...c.sort(),...u.sort()],_={};return g.forEach(p=>{(!s[p].$deprecated||o.forceInclude?.includes(p))&&(_[p]=s[p])}),_}return(s,c)=>(t.openBlock(),t.createBlock(Pt,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:c[2]||(c[2]=u=>l("expand")),"initially-expanded":s.initiallyExpanded||a.value},t.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",h1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i(s.properties),(u,g)=>(t.openBlock(),t.createBlock(Pt,{class:"property",key:g,arrow:!1,"clickable-text":g,href:s.href+"_"+g,onExpand:c[1]||(c[1]=_=>a.value=!0),"no-url-change":s.noUrlChange},{additionalButtonText:t.withCtx(()=>[u.$required?(t.openBlock(),t.createBlock(q,{key:0,class:"d-flex",title:"Required"},{default:t.withCtx(()=>[...c[3]||(c[3]=[t.createElementVNode("span",{class:"text-danger"}," *",-1)])]),_:1})):t.createCommentVNode("",!0)]),buttonRight:t.withCtx(({collapsed:_})=>[t.createElementVNode("span",E1,[t.createElementVNode("span",_1,[s.showDynamic&&!r(u)?(t.openBlock(),t.createBlock(q,{key:0,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(s1,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),u.$beta?(t.openBlock(),t.createBlock(q,{key:1,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(g1,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),u.$deprecated?(t.openBlock(),t.createBlock(q,{key:2,class:"d-flex",title:"Deprecated"},{default:t.withCtx(()=>[t.createVNode(Mn,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("span",k1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Dl)(u).types,p=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[p.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:p,onClick:c[0]||(c[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("span",C1,t.toDisplayString(t.unref(Ol)(p)),1),t.createVNode(Pl)],8,y1)):(t.openBlock(),t.createElementBlock("span",v1,t.toDisplayString(p),1))],64))),128)),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_?Ym:t1),{class:"arrow"}))])])]),content:t.withCtx(()=>[t.createVNode(Yp,{property:u},{markdown:t.withCtx(({content:_})=>[t.renderSlot(s.$slots,"markdown",{content:_},void 0,!0)]),_:3},8,["property"])]),_:2},1032,["clickable-text","href","no-url-change"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),bt=P(N1,[["__scopeId","data-v-1d731489"]]),S1={class:"d-flex flex-column gap-6"},b1={key:0,class:"alert alert-info mb-2",role:"alert"},L1={key:1,class:"plugin-title markdown"},w1={key:2,class:"markdown"},T1={class:"d-flex flex-column gap-4"},A1={class:"d-flex flex-column gap-3"},I1={class:"markdown"},V1={key:0,class:"w-100 align-self-center"},B1={class:"markdown"},O1={class:"markdown"},D1={class:"markdown"},P1={class:"d-flex flex-column gap-7 ps-3"},$1={class:"markdown"},R1=t.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(e){let n,o;const l=e,a=t.ref(!1),r=t.ref(new Set),i=t.ref(0),s=async()=>{const h=window.location.hash.slice(1);if(!h||!l.schema.definitions){r.value.clear();return}const I=h.includes("#")?h.split("#").pop()?.split(".").pop():h;if(I&&I in l.schema.definitions){a.value=!0,i.value+=1,r.value.clear(),r.value.add(I),await t.nextTick();let L=0;const v=30,x=()=>{const U=document.getElementById(I);U?U.scrollIntoView({behavior:"smooth",block:"start"}):L<v&&(L++,requestAnimationFrame(x))};requestAnimationFrame(x)}else r.value.clear()};t.watch([()=>l.schema,()=>l.pluginType],([h,I],[L,v])=>{(h!==L||I!==v)&&l.schema.definitions&&s()});const c=h=>h?.full?h.code:`id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
|
|
26
26
|
type: "${l.pluginType}"
|
|
27
|
-
`.concat(g.code),u=t.ref(null),p=t.computed(()=>l.schema.properties?.$examples),E=t.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(g=>[g.name,{...g,name:void 0}]))),{githubLight:h,githubDark:_,yaml:B,python:S,javascript:C,createJavaScriptRegexEngine:m,createHighlighterCore:k}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-JFZHkI0W.cjs"))),n=await n,o(),n);u.value=([n,o]=t.withAsyncContext(()=>k({themes:[l.darkMode?_:h],langs:[B,S,C],engine:m()})),n=await n,o(),n);const b="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),t.onUnmounted(()=>{window.removeEventListener("hashchange",s),u.value?.dispose()}),(g,I)=>(t.openBlock(),t.createElementBlock("div",S1,[t.createElementVNode("div",null,[g.schema.properties?.$beta?(t.openBlock(),t.createElementBlock("div",b1,[...I[0]||(I[0]=[t.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)])])):t.createCommentVNode("",!0),g.schema.properties?.title?(t.openBlock(),t.createElementBlock("div",L1,[t.renderSlot(g.$slots,"markdown",{content:g.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),g.schema.properties?.description?(t.openBlock(),t.createElementBlock("div",w1,[t.renderSlot(g.$slots,"markdown",{content:g.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock($o,{highlighter:u.value,language:"yaml",theme:b,code:`type: "${g.pluginType}"`,key:g.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column gap-3",key:g.pluginType},[p.value?(t.openBlock(),t.createBlock($t,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples","no-url-change":g.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",T1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.value,(L,v)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:g.pluginType+"-"+v},[t.createElementVNode("div",A1,[t.createElementVNode("div",I1,[L.title?t.renderSlot(g.$slots,"markdown",{key:0,content:L.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),L.code?(t.openBlock(),t.createBlock($o,{key:0,highlighter:u.value,language:L.lang??"yaml",theme:b,code:c(L)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),v<p.value.length-1?(t.openBlock(),t.createElementBlock("hr",V1)):t.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):t.createCommentVNode("",!0),g.schema.properties?.properties?(t.openBlock(),t.createBlock(bt,{key:1,class:"plugin-section",properties:g.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":g.propsInitiallyExpanded,"force-include":g.forceIncludeProperties,"no-url-change":g.noUrlChange},{markdown:t.withCtx(({content:L})=>[t.createElementVNode("div",B1,[t.renderSlot(g.$slots,"markdown",{content:L},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","no-url-change"])):t.createCommentVNode("",!0),g.schema.outputs?.properties&&Object.keys(g.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(bt,{key:2,class:"plugin-section",properties:g.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,"no-url-change":g.noUrlChange},{markdown:t.withCtx(({content:L})=>[t.createElementVNode("div",O1,[t.renderSlot(g.$slots,"markdown",{content:L},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),g.schema.properties?.$metrics?(t.openBlock(),t.createBlock(bt,{key:3,class:"plugin-section",properties:E.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,"no-url-change":g.noUrlChange},{markdown:t.withCtx(({content:L})=>[t.createElementVNode("div",D1,[t.renderSlot(g.$slots,"markdown",{content:L},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),g.schema.definitions&&Object.keys(g.schema.definitions).length>0?(t.openBlock(),t.createBlock($t,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":a.value,key:`definitions-${g.pluginType}-${i.value}`,"no-url-change":g.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",$1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.entries(g.schema.definitions),([L,v])=>(t.openBlock(),t.createBlock(bt,{properties:v.properties,"section-name":v.title??L.split("_")[0],href:L,"show-dynamic":!1,"initially-expanded":r.value.has(L),key:g.pluginType+"-"+L,class:"plugin-section nested-button-py-2",onExpand:x=>{a.value=!0,r.value.add(L)},"no-url-change":g.noUrlChange},{markdown:t.withCtx(({content:x})=>[t.createElementVNode("div",P1,[t.renderSlot(g.$slots,"markdown",{content:x},void 0,!0)])]),_:3},8,["properties","section-name","href","initially-expanded","onExpand","no-url-change"]))),128))])]),_:3},8,["initially-expanded","no-url-change"])):t.createCommentVNode("",!0)]))]))}}),M1=$(R1,[["__scopeId","data-v-67aa6175"]]),x1={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},F1=["aria-hidden","aria-label"],U1=["fill","width","height"],H1={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},z1={key:0};function G1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",H1,[o.title?(t.openBlock(),t.createElementBlock("title",z1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,U1))],16,F1)}const W1=$(x1,[["render",G1]]),j1=["href"],K1=["src","alt"],Y1=t.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const n=e,{path:o}=bn.useRoute(),l=t.computed(()=>n.href===void 0?`${o}/${We(n.text)}`:n.href);return(a,r)=>(t.openBlock(),t.createElementBlock("a",{href:l.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[t.createElementVNode("img",{src:a.iconB64Svg,alt:`${a.text} icon`},null,8,K1),t.createTextVNode(t.toDisplayString(a.text)+" ",1),t.createVNode(W1,{class:"ms-auto"})],8,j1))}}),Po=$(Y1,[["__scopeId","data-v-b787c0f3"]]),q1={class:"d-flex flex-column gap-4"},X1={key:1,class:"d-flex flex-column"},Z1=["id"],J1={class:"d-flex flex-column"},Q1=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const n=e,o=t.computed(()=>n.plugins.find(E=>n.subGroup===void 0?!0:We(et(E))===n.subGroup)),l=t.computed(()=>o.value?.longDescription??o.value?.description),a=t.computed(()=>n.plugins.filter(E=>E.name.toLowerCase()===n.pluginName.toLowerCase()&&E.subGroup!==void 0)),r=E=>{let h=E.split(".");return h?.[h.length-1]},{path:i}=bn.useRoute(),s=E=>`${i}/${We(E)}`,c=E=>`${i}/${E}`;function u(E){return Object.fromEntries(Object.entries(E).filter(([h,_])=>Fo(h,_)).map(([h,_])=>[h.replace(/[A-Z]/g,B=>` ${B}`),_.filter(({deprecated:B})=>!B).map(({cls:B})=>B)]))}const p=t.computed(()=>u(o.value));return(E,h)=>(t.openBlock(),t.createElementBlock("div",q1,[l.value!==void 0?t.renderSlot(E.$slots,"markdown",{key:0,content:l.value.replace(/ *:(?![ /])/g,": ")}):t.createCommentVNode("",!0),E.subGroup===void 0&&E.plugins.length>1?(t.openBlock(),t.createElementBlock("div",X1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,_=>(t.openBlock(),t.createBlock(Po,{id:`group-${t.unref(We)(t.unref(et)(_))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(E.icons[_.subGroup]??E.icons[_.group]),text:t.unref(et)(_),href:s(t.unref(et)(_)),key:t.unref(et)(_),class:"text-capitalize",onClick:B=>E.$emit("goTo",{subGroup:_})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(p.value,(_,B)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section",key:B},[t.createElementVNode("h4",{id:`section-${t.unref(We)(B)}`,class:"text-capitalize"},t.toDisplayString(B),9,Z1),t.createElementVNode("div",J1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,S=>(t.openBlock(),t.createBlock(Po,{id:t.unref(We)(S),"icon-b64-svg":"data:image/svg+xml;base64,"+(E.icons[S]??E.icons[o.value.subGroup??o.value.group]??E.icons[o.value.group]),text:r(S),href:c(S),key:S,class:"text-capitalize",onClick:C=>E.$emit("goTo",{element:S})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),eg=/"(?:_|\\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*:/,tg=/"(?: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*:/,ng=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function og(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){lg(e);return}return n}function lg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function rg(e,n={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const o=e.trim();if(o.length<=9)switch(o.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(!ng.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(eg.test(e)||tg.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,og)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const ag=/\d/,ig=["-","_","/","."];function sg(e=""){if(!ag.test(e))return e!==e.toLowerCase()}function Pl(e,n){const o=ig,l=[];if(!e||typeof e!="string")return l;let a="",r,i;for(const s of e){const c=o.includes(s);if(c===!0){l.push(a),a="",r=void 0;continue}const u=sg(s);if(i===!1){if(r===!1&&u===!0){l.push(a),a=s,r=u;continue}if(r===!0&&u===!1&&a.length>1){const p=a.at(-1);l.push(a.slice(0,Math.max(0,a.length-1))),a=p+s,r=u;continue}}a+=s,r=u,i=c}return l.push(a),l}function cg(e){return e?e[0].toUpperCase()+e.slice(1):""}function Rl(e,n){return e?(Array.isArray(e)?e:Pl(e)).map(o=>cg(o)).join(""):""}function ug(e,n){return e?(Array.isArray(e)?e:Pl(e)).map(o=>o.toLowerCase()).join("-"):""}class gt{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}gt.prototype.normal={};gt.prototype.property={};gt.prototype.space=void 0;function Ml(e,n){const o={},l={};for(const a of e)Object.assign(o,a.property),Object.assign(l,a.normal);return new gt(o,l,n)}function yn(e){return e.toLowerCase()}class _e{constructor(n,o){this.attribute=o,this.property=n}}_e.prototype.attribute="";_e.prototype.booleanish=!1;_e.prototype.boolean=!1;_e.prototype.commaOrSpaceSeparated=!1;_e.prototype.commaSeparated=!1;_e.prototype.defined=!1;_e.prototype.mustUseProperty=!1;_e.prototype.number=!1;_e.prototype.overloadedBoolean=!1;_e.prototype.property="";_e.prototype.spaceSeparated=!1;_e.prototype.space=void 0;let dg=0;const F=qe(),se=qe(),Cn=qe(),A=qe(),J=qe(),nt=qe(),ye=qe();function qe(){return 2**++dg}const vn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:se,commaOrSpaceSeparated:ye,commaSeparated:nt,number:A,overloadedBoolean:Cn,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),rn=Object.keys(vn);class Un extends _e{constructor(n,o,l,a){let r=-1;if(super(n,o),Ro(this,"space",a),typeof l=="number")for(;++r<rn.length;){const i=rn[r];Ro(this,rn[r],(l&vn[i])===vn[i])}}}Un.prototype.defined=!0;function Ro(e,n,o){o&&(e[n]=o)}function rt(e){const n={},o={};for(const[l,a]of Object.entries(e.properties)){const r=new Un(l,e.transform(e.attributes||{},l),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,o[yn(l)]=l,o[yn(r.attribute)]=l}return new gt(n,o,e.space)}const xl=rt({properties:{ariaActiveDescendant:null,ariaAtomic:se,ariaAutoComplete:null,ariaBusy:se,ariaChecked:se,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:se,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:se,ariaFlowTo:J,ariaGrabbed:se,ariaHasPopup:null,ariaHidden:se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:A,ariaLive:null,ariaModal:se,ariaMultiLine:se,ariaMultiSelectable:se,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:se,ariaReadOnly:se,ariaRelevant:null,ariaRequired:se,ariaRoleDescription:J,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:se,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Fl(e,n){return n in e?e[n]:n}function Ul(e,n){return Fl(e,n.toLowerCase())}const fg=rt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nt,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:J,autoFocus:F,autoPlay:F,blocking:J,capture:null,charSet:null,checked:F,cite:null,className:J,cols:A,colSpan:null,content:null,contentEditable:se,controls:F,controlsList:J,coords:A|nt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:Cn,draggable:se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:J,height:A,hidden:Cn,high:A,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:J,itemRef:J,itemScope:F,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:A,pattern:null,ping:J,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:J,required:F,reversed:F,rows:A,rowSpan:A,sandbox:J,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:se,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:se,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:Ul}),mg=rt({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:ye,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:J,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:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:nt,g2:nt,glyphName:nt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,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:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ye,rev:ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ye,requiredFeatures:ye,requiredFonts:ye,requiredFormats:ye,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ye,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Fl}),Hl=rt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),zl=rt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ul}),Gl=rt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),pg=/[A-Z]/g,Mo=/-[a-z]/g,gg=/^data[-\w.:]+$/i;function Wl(e,n){const o=yn(n);let l=n,a=_e;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&gg.test(n)){if(n.charAt(4)==="-"){const r=n.slice(5).replace(Mo,Eg);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=n.slice(4);if(!Mo.test(r)){let i=r.replace(pg,hg);i.charAt(0)!=="-"&&(i="-"+i),n="data"+i}}a=Un}return new a(l,n)}function hg(e){return"-"+e.toLowerCase()}function Eg(e){return e.charAt(1).toUpperCase()}const jl=Ml([xl,fg,Hl,zl,Gl],"html"),_g=Ml([xl,mg,Hl,zl,Gl],"svg"),Hn=["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"],kg=["p","h1","h2","h3","h4","h5","h6","li"];function Pt(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function zn(e){return Pt(e,"text")||Pt(e,Symbol.for("v-txt"))}function Kl(e){return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof e.children?.default=="function"?e.children.default():[]}function Rt(e){if(!e)return"";if(Array.isArray(e))return e.map(Rt).join("");if(zn(e))return e.value||e.children||"";const n=Kl(e);return Array.isArray(n)?n.map(Rt).filter(Boolean).join(""):""}function Yl(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>Yl(l,n));let o=e;return n.some(l=>l==="*"||Pt(e,l))&&(o=Kl(e)||e,!Array.isArray(o)&&kg.some(l=>Pt(e,l))&&(o=[o])),o}function ql(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>ql(Yl(o,[n[0]]),n.slice(1))).filter(o=>!(zn(o)&&Rt(o).trim()==="")):e}function Xl(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?ql(e,n).reduce((o,l)=>(zn(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):e}function yg(e,n){return n.reduce((o,l)=>{const a=Cg(e,l);return a!==void 0&&(o[l]=a),o},{})}function Cg(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const Nn="default",Zl=/^@|^v-on:/,Jl=/^:|^v-bind:/,vg=/^v-model/,Ng=["select","textarea","input"],Sg=["math","svg"],bg=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}`])),Lg=["script","base"],wg=t.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){const o=t.getCurrentInstance()?.appContext?.app?.$nuxt,l=o?.$route||o?._route,{mdc:a}=o?.$config?.public||{},r=t.computed(()=>({...a?.components?.prose&&e.prose!==!1?bg:{},...a?.components?.map||{},...t.toRaw(e.data?.mdc?.components||{}),...e.components})),i=t.computed(()=>{const u=(e.body?.children||[]).map(p=>p.tag||p.type).filter(p=>!Hn.includes(p));return Array.from(new Set(u)).sort().join(".")}),s=t.reactive({...e.data});t.watch(()=>e.data,u=>{Object.assign(s,u)}),await Mg(e.body,{tags:r.value});function c(u,p){const E=u.split(".").length-1;return u.split(".").reduce((h,_,B)=>B==E&&h?(h[_]=p,h[_]):typeof h=="object"?h[_]:void 0,s)}return{tags:r,contentKey:i,route:l,runtimeData:s,updateRuntimeData:c}},render(e){const{tags:n,tag:o,body:l,data:a,contentKey:r,route:i,unwrap:s,runtimeData:c,updateRuntimeData:u}=e;if(!l)return null;const p={...a,tags:n,$route:i,runtimeData:c,updateRuntimeData:u},E=o!==!1?Sn(o||p.component?.name||p.component||"div"):void 0;return E?t.h(E,{...p.component?.props,class:e.class,...this.$attrs,key:r},{default:h}):h?.();function h(){const _=Ql(l,t.h,{documentMeta:p,parentScope:p,resolveComponent:Sn});return _?.default?s?Xl(_.default(),typeof s=="string"?s.split(" "):["*"]):_.default():null}}});function Tg(e,n,o,l){const{documentMeta:a,parentScope:r,resolveComponent:i}=o;if(e.type==="text")return n(t.Text,e.value);if(e.type==="comment")return n(t.Comment,null,e.value);const s=e.tag,c=tr(e,a.tags);if(e.tag==="binding")return Ag(e,n,a,r);const u=er(c)?h=>h:i;if(Lg.includes(c))return n("pre",{class:"mdc-renderer-dangerous-tag"},"<"+c+">"+Rt(e)+"</"+c+">");const p=u(c);typeof p=="object"&&(p.tag=s);const E=Ig(e,a);return l&&(E.key=l),n(p,E,Ql(e,n,{documentMeta:a,parentScope:{...r,...E},resolveComponent:u}))}function Ql(e,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o,s=(e.children||[]).reduce((u,p)=>{if(!Pg(p))return u[Nn].children.push(p),u;const E=$g(p);return u[E]=u[E]||{props:{},children:[]},p.type==="element"&&(u[E].props=p.props,u[E].children.push(...p.children||[])),u},{[Nn]:{props:{},children:[]}});return Object.entries(s).reduce((u,[p,{props:E,children:h}])=>(h.length&&(u[p]=(_={})=>{const B=yg(_,Object.keys(E||{}));let S=h.map((C,m)=>Tg(C,n,{documentMeta:l,parentScope:{...a,...B},resolveComponent:r},String(C.props?.key||m)));return E?.unwrap&&(S=Xl(S,E.unwrap)),Rg(S)}),u),{})}function Ag(e,n,o,l={}){const a={...o.runtimeData,...l,$document:o,$doc:o},r=/\.|\[(\d+)\]/,s=(e.props?.value.trim().split(r).filter(Boolean)).reduce((u,p)=>{if(u&&p in u)return typeof u[p]=="function"?u[p]():u[p]},a),c=e.props?.defaultValue;return n(t.Text,s??c??"")}function Ig(e,n){const{tag:o="",props:l={}}=e;return Object.keys(l).reduce(function(a,r){if(r==="__ignoreMap")return a;const i=l[r];if(vg.test(r))return Vg(r,i,a,n,{native:Ng.includes(o)});if(r==="v-bind")return Bg(r,i,a,n);if(Zl.test(r))return Og(r,i,a,n);if(Jl.test(r))return Dg(r,i,a,n);const{attribute:s}=Wl(jl,r);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(a[s]=i.join(" "),a):(a[s]=i,a)},{})}function Vg(e,n,o,l,{native:a}){const r=e.match(/^v-model:([^=]+)/)?.[1]||"modelValue",i=a?"value":r,s=a?"onInput":`onUpdate:${r}`;return o[i]=zt(n,l.runtimeData),o[s]=c=>{l.updateRuntimeData(n,a?c.target?.value:c)},o}function Bg(e,n,o,l){const a=zt(n,l);return o=Object.assign(o,a),o}function Og(e,n,o,l){return e=e.replace(Zl,""),o.on=o.on||{},o.on[e]=()=>zt(n,l),o}function Dg(e,n,o,l){return e=e.replace(Jl,""),o[e]=zt(n,l),o}const Sn=e=>{if(typeof e=="string"){if(Hn.includes(e))return e;const n=t.resolveComponent(Rl(e),!1);return!e||n?.name==="AsyncComponentWrapper"||typeof n=="string"?n:"setup"in n?t.defineAsyncComponent(()=>new Promise(o=>o(n))):n}return e};function zt(e,n){const o=e.split(".").reduce((l,a)=>typeof l=="object"?l[a]:void 0,n);return typeof o>"u"?rg(e):o}function $g(e){let n="";for(const o of Object.keys(e.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){n=o.split(/[:#]/,2)[1];break}return n||Nn}function Pg(e){return e.tag==="template"}function er(e){return Sg.includes(e)}function Rg(e){const n=[];for(const o of e){const l=n[n.length-1];o.type===t.Text&&l?.type===t.Text?l.children=l.children+o.children:n.push(o)}return n}async function Mg(e,n){if(!e)return;const o=Array.from(new Set(l(e,n)));await Promise.all(o.map(async a=>{if(a?.render||a?.ssrRender||a?.__ssrInlineRender)return;const r=Sn(a);r?.__asyncLoader&&!r.__asyncResolved&&await r.__asyncLoader()}));function l(a,r){const i=a.tag;if(a.type==="text"||i==="binding"||a.type==="comment")return[];const s=tr(a,r.tags);if(er(s))return[];const c=[];a.type!=="root"&&!Hn.includes(s)&&c.push(s);for(const u of a.children||[])c.push(...l(u,r));return c}}function tr(e,n){const o=e.tag;return!o||typeof e.props?.__ignoreMap<"u"?o:n[o]||n[Rl(o)]||n[ug(e.tag)]||o}const xg=t.defineComponent({__name:"MDCRenderer",setup(e){return(n,o)=>(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[t.createVNode(wg,t.mergeProps(n.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.DependenciesNode=gc;exports.RotatingDots=Uo;exports.STATES=z;exports.SchemaToHtml=M1;exports.State=te;exports.TaskIcon=On;exports.Topology=um;exports.YamlUtils=fr;exports._sfc_main=Q1;exports._sfc_main$1=xg;exports.cssVariable=Ce;exports.find=Wl;exports.getMDCParser=Ba;exports.html=jl;exports.isEntryAPluginElementPredicate=Fo;exports.slugify=We;exports.subGroupName=et;exports.svg=_g;
|
|
28
|
-
//# sourceMappingURL=index-
|
|
27
|
+
`.concat(h.code),u=t.ref(null),g=t.computed(()=>l.schema.properties?.$examples),_=t.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(h=>[h.name,{...h,name:void 0}]))),{githubLight:p,githubDark:E,yaml:V,python:N,javascript:C,createJavaScriptRegexEngine:m,createHighlighterCore:k}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-CEIFqfnA.cjs"))),n=await n,o(),n);u.value=([n,o]=t.withAsyncContext(()=>k({themes:[l.darkMode?E:p],langs:[V,N,C],engine:m()})),n=await n,o(),n);const b="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),t.onUnmounted(()=>{window.removeEventListener("hashchange",s),u.value?.dispose()}),(h,I)=>(t.openBlock(),t.createElementBlock("div",S1,[t.createElementVNode("div",null,[h.schema.properties?.$beta?(t.openBlock(),t.createElementBlock("div",b1,[...I[0]||(I[0]=[t.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)])])):t.createCommentVNode("",!0),h.schema.properties?.title?(t.openBlock(),t.createElementBlock("div",L1,[t.renderSlot(h.$slots,"markdown",{content:h.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),h.schema.properties?.description?(t.openBlock(),t.createElementBlock("div",w1,[t.renderSlot(h.$slots,"markdown",{content:h.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Po,{highlighter:u.value,language:"yaml",theme:b,code:`type: "${h.pluginType}"`,key:h.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column gap-3",key:h.pluginType},[g.value?(t.openBlock(),t.createBlock(Pt,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples","no-url-change":h.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",T1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,(L,v)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:h.pluginType+"-"+v},[t.createElementVNode("div",A1,[t.createElementVNode("div",I1,[L.title?t.renderSlot(h.$slots,"markdown",{key:0,content:L.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),L.code?(t.openBlock(),t.createBlock(Po,{key:0,highlighter:u.value,language:L.lang??"yaml",theme:b,code:c(L)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),v<g.value.length-1?(t.openBlock(),t.createElementBlock("hr",V1)):t.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):t.createCommentVNode("",!0),h.schema.properties?.properties?(t.openBlock(),t.createBlock(bt,{key:1,class:"plugin-section",properties:h.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":h.propsInitiallyExpanded,"force-include":h.forceIncludeProperties,"no-url-change":h.noUrlChange},{markdown:t.withCtx(({content:L})=>[t.createElementVNode("div",B1,[t.renderSlot(h.$slots,"markdown",{content:L},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","no-url-change"])):t.createCommentVNode("",!0),h.schema.outputs?.properties&&Object.keys(h.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(bt,{key:2,class:"plugin-section",properties:h.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,"no-url-change":h.noUrlChange},{markdown:t.withCtx(({content:L})=>[t.createElementVNode("div",O1,[t.renderSlot(h.$slots,"markdown",{content:L},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),h.schema.properties?.$metrics?(t.openBlock(),t.createBlock(bt,{key:3,class:"plugin-section",properties:_.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,"no-url-change":h.noUrlChange},{markdown:t.withCtx(({content:L})=>[t.createElementVNode("div",D1,[t.renderSlot(h.$slots,"markdown",{content:L},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),h.schema.definitions&&Object.keys(h.schema.definitions).length>0?(t.openBlock(),t.createBlock(Pt,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":a.value,key:`definitions-${h.pluginType}-${i.value}`,"no-url-change":h.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",P1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.entries(h.schema.definitions),([L,v])=>(t.openBlock(),t.createBlock(bt,{properties:v.properties,"section-name":v.title??L.split("_")[0],href:L,"show-dynamic":!1,"initially-expanded":r.value.has(L),key:h.pluginType+"-"+L,class:"plugin-section nested-button-py-2",onExpand:x=>{a.value=!0,r.value.add(L)},"no-url-change":h.noUrlChange},{markdown:t.withCtx(({content:x})=>[t.createElementVNode("div",$1,[t.renderSlot(h.$slots,"markdown",{content:x},void 0,!0)])]),_:3},8,["properties","section-name","href","initially-expanded","onExpand","no-url-change"]))),128))])]),_:3},8,["initially-expanded","no-url-change"])):t.createCommentVNode("",!0)]))]))}}),M1=P(R1,[["__scopeId","data-v-67aa6175"]]),x1={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},F1=["aria-hidden","aria-label"],U1=["fill","width","height"],H1={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},z1={key:0};function G1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",H1,[o.title?(t.openBlock(),t.createElementBlock("title",z1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,U1))],16,F1)}const W1=P(x1,[["render",G1]]),j1=["href"],K1=["src","alt"],Y1=t.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const n=e,{path:o}=bn.useRoute(),l=t.computed(()=>n.href===void 0?`${o}/${We(n.text)}`:n.href);return(a,r)=>(t.openBlock(),t.createElementBlock("a",{href:l.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[t.createElementVNode("img",{src:a.iconB64Svg,alt:`${a.text} icon`},null,8,K1),t.createTextVNode(t.toDisplayString(a.text)+" ",1),t.createVNode(W1,{class:"ms-auto"})],8,j1))}}),$o=P(Y1,[["__scopeId","data-v-b787c0f3"]]),q1={class:"d-flex flex-column gap-4"},X1={key:1,class:"d-flex flex-column"},Z1=["id"],J1={class:"d-flex flex-column"},Q1=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{},routePath:{}},emits:["goTo"],setup(e){const n=e,o=t.computed(()=>n.plugins.find(p=>n.subGroup===void 0?!0:We(et(p))===n.subGroup)),l=t.computed(()=>o.value?.longDescription??o.value?.description),a=t.computed(()=>n.plugins.filter(p=>p.name.toLowerCase()===n.pluginName.toLowerCase()&&p.subGroup!==void 0)),r=p=>{let E=p.split(".");return E?.[E.length-1]},s=bn.useRoute()?.path??n.routePath,c=p=>`${s}/${We(p)}`,u=p=>`${s}/${p}`;function g(p){return Object.fromEntries(Object.entries(p).filter(([E,V])=>Fo(E,V)).map(([E,V])=>[E.replace(/[A-Z]/g,N=>` ${N}`),V.filter(({deprecated:N})=>!N).map(({cls:N})=>N)]))}const _=t.computed(()=>g(o.value));return(p,E)=>(t.openBlock(),t.createElementBlock("div",q1,[l.value!==void 0?t.renderSlot(p.$slots,"markdown",{key:0,content:l.value.replace(/ *:(?![ /])/g,": ")}):t.createCommentVNode("",!0),p.subGroup===void 0&&p.plugins.length>1?(t.openBlock(),t.createElementBlock("div",X1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,V=>(t.openBlock(),t.createBlock($o,{id:`group-${t.unref(We)(t.unref(et)(V))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(p.icons[V.subGroup]??p.icons[V.group]),text:t.unref(et)(V),href:c(t.unref(et)(V)),key:t.unref(et)(V),class:"text-capitalize",onClick:N=>p.$emit("goTo",{subGroup:V})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(_.value,(V,N)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section",key:N},[t.createElementVNode("h4",{id:`section-${t.unref(We)(N)}`,class:"text-capitalize"},t.toDisplayString(N),9,Z1),t.createElementVNode("div",J1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(V,C=>(t.openBlock(),t.createBlock($o,{id:t.unref(We)(C),"icon-b64-svg":"data:image/svg+xml;base64,"+(p.icons[C]??p.icons[o.value.subGroup??o.value.group]??p.icons[o.value.group]),text:r(C),href:u(C),key:C,class:"text-capitalize",onClick:m=>p.$emit("goTo",{element:C})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),eg=/"(?:_|\\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*:/,tg=/"(?: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*:/,ng=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function og(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){lg(e);return}return n}function lg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function rg(e,n={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const o=e.trim();if(o.length<=9)switch(o.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(!ng.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(eg.test(e)||tg.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,og)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const ag=/\d/,ig=["-","_","/","."];function sg(e=""){if(!ag.test(e))return e!==e.toLowerCase()}function $l(e,n){const o=ig,l=[];if(!e||typeof e!="string")return l;let a="",r,i;for(const s of e){const c=o.includes(s);if(c===!0){l.push(a),a="",r=void 0;continue}const u=sg(s);if(i===!1){if(r===!1&&u===!0){l.push(a),a=s,r=u;continue}if(r===!0&&u===!1&&a.length>1){const g=a.at(-1);l.push(a.slice(0,Math.max(0,a.length-1))),a=g+s,r=u;continue}}a+=s,r=u,i=c}return l.push(a),l}function cg(e){return e?e[0].toUpperCase()+e.slice(1):""}function Rl(e,n){return e?(Array.isArray(e)?e:$l(e)).map(o=>cg(o)).join(""):""}function ug(e,n){return e?(Array.isArray(e)?e:$l(e)).map(o=>o.toLowerCase()).join("-"):""}class gt{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}gt.prototype.normal={};gt.prototype.property={};gt.prototype.space=void 0;function Ml(e,n){const o={},l={};for(const a of e)Object.assign(o,a.property),Object.assign(l,a.normal);return new gt(o,l,n)}function yn(e){return e.toLowerCase()}class _e{constructor(n,o){this.attribute=o,this.property=n}}_e.prototype.attribute="";_e.prototype.booleanish=!1;_e.prototype.boolean=!1;_e.prototype.commaOrSpaceSeparated=!1;_e.prototype.commaSeparated=!1;_e.prototype.defined=!1;_e.prototype.mustUseProperty=!1;_e.prototype.number=!1;_e.prototype.overloadedBoolean=!1;_e.prototype.property="";_e.prototype.spaceSeparated=!1;_e.prototype.space=void 0;let dg=0;const F=qe(),se=qe(),Cn=qe(),A=qe(),J=qe(),nt=qe(),ye=qe();function qe(){return 2**++dg}const vn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:se,commaOrSpaceSeparated:ye,commaSeparated:nt,number:A,overloadedBoolean:Cn,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),rn=Object.keys(vn);class Un extends _e{constructor(n,o,l,a){let r=-1;if(super(n,o),Ro(this,"space",a),typeof l=="number")for(;++r<rn.length;){const i=rn[r];Ro(this,rn[r],(l&vn[i])===vn[i])}}}Un.prototype.defined=!0;function Ro(e,n,o){o&&(e[n]=o)}function rt(e){const n={},o={};for(const[l,a]of Object.entries(e.properties)){const r=new Un(l,e.transform(e.attributes||{},l),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,o[yn(l)]=l,o[yn(r.attribute)]=l}return new gt(n,o,e.space)}const xl=rt({properties:{ariaActiveDescendant:null,ariaAtomic:se,ariaAutoComplete:null,ariaBusy:se,ariaChecked:se,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:se,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:se,ariaFlowTo:J,ariaGrabbed:se,ariaHasPopup:null,ariaHidden:se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:A,ariaLive:null,ariaModal:se,ariaMultiLine:se,ariaMultiSelectable:se,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:se,ariaReadOnly:se,ariaRelevant:null,ariaRequired:se,ariaRoleDescription:J,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:se,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Fl(e,n){return n in e?e[n]:n}function Ul(e,n){return Fl(e,n.toLowerCase())}const fg=rt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nt,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:J,autoFocus:F,autoPlay:F,blocking:J,capture:null,charSet:null,checked:F,cite:null,className:J,cols:A,colSpan:null,content:null,contentEditable:se,controls:F,controlsList:J,coords:A|nt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:Cn,draggable:se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:J,height:A,hidden:Cn,high:A,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:J,itemRef:J,itemScope:F,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:A,pattern:null,ping:J,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:J,required:F,reversed:F,rows:A,rowSpan:A,sandbox:J,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:se,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:se,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:Ul}),mg=rt({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:ye,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:J,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:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:nt,g2:nt,glyphName:nt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,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:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ye,rev:ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ye,requiredFeatures:ye,requiredFonts:ye,requiredFormats:ye,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ye,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Fl}),Hl=rt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),zl=rt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ul}),Gl=rt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),pg=/[A-Z]/g,Mo=/-[a-z]/g,gg=/^data[-\w.:]+$/i;function Wl(e,n){const o=yn(n);let l=n,a=_e;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&gg.test(n)){if(n.charAt(4)==="-"){const r=n.slice(5).replace(Mo,Eg);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=n.slice(4);if(!Mo.test(r)){let i=r.replace(pg,hg);i.charAt(0)!=="-"&&(i="-"+i),n="data"+i}}a=Un}return new a(l,n)}function hg(e){return"-"+e.toLowerCase()}function Eg(e){return e.charAt(1).toUpperCase()}const jl=Ml([xl,fg,Hl,zl,Gl],"html"),_g=Ml([xl,mg,Hl,zl,Gl],"svg"),Hn=["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"],kg=["p","h1","h2","h3","h4","h5","h6","li"];function $t(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function zn(e){return $t(e,"text")||$t(e,Symbol.for("v-txt"))}function Kl(e){return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof e.children?.default=="function"?e.children.default():[]}function Rt(e){if(!e)return"";if(Array.isArray(e))return e.map(Rt).join("");if(zn(e))return e.value||e.children||"";const n=Kl(e);return Array.isArray(n)?n.map(Rt).filter(Boolean).join(""):""}function Yl(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>Yl(l,n));let o=e;return n.some(l=>l==="*"||$t(e,l))&&(o=Kl(e)||e,!Array.isArray(o)&&kg.some(l=>$t(e,l))&&(o=[o])),o}function ql(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>ql(Yl(o,[n[0]]),n.slice(1))).filter(o=>!(zn(o)&&Rt(o).trim()==="")):e}function Xl(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?ql(e,n).reduce((o,l)=>(zn(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):e}function yg(e,n){return n.reduce((o,l)=>{const a=Cg(e,l);return a!==void 0&&(o[l]=a),o},{})}function Cg(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const Nn="default",Zl=/^@|^v-on:/,Jl=/^:|^v-bind:/,vg=/^v-model/,Ng=["select","textarea","input"],Sg=["math","svg"],bg=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}`])),Lg=["script","base"],wg=t.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){const o=t.getCurrentInstance()?.appContext?.app?.$nuxt,l=o?.$route||o?._route,{mdc:a}=o?.$config?.public||{},r=t.computed(()=>({...a?.components?.prose&&e.prose!==!1?bg:{},...a?.components?.map||{},...t.toRaw(e.data?.mdc?.components||{}),...e.components})),i=t.computed(()=>{const u=(e.body?.children||[]).map(g=>g.tag||g.type).filter(g=>!Hn.includes(g));return Array.from(new Set(u)).sort().join(".")}),s=t.reactive({...e.data});t.watch(()=>e.data,u=>{Object.assign(s,u)}),await Mg(e.body,{tags:r.value});function c(u,g){const _=u.split(".").length-1;return u.split(".").reduce((p,E,V)=>V==_&&p?(p[E]=g,p[E]):typeof p=="object"?p[E]:void 0,s)}return{tags:r,contentKey:i,route:l,runtimeData:s,updateRuntimeData:c}},render(e){const{tags:n,tag:o,body:l,data:a,contentKey:r,route:i,unwrap:s,runtimeData:c,updateRuntimeData:u}=e;if(!l)return null;const g={...a,tags:n,$route:i,runtimeData:c,updateRuntimeData:u},_=o!==!1?Sn(o||g.component?.name||g.component||"div"):void 0;return _?t.h(_,{...g.component?.props,class:e.class,...this.$attrs,key:r},{default:p}):p?.();function p(){const E=Ql(l,t.h,{documentMeta:g,parentScope:g,resolveComponent:Sn});return E?.default?s?Xl(E.default(),typeof s=="string"?s.split(" "):["*"]):E.default():null}}});function Tg(e,n,o,l){const{documentMeta:a,parentScope:r,resolveComponent:i}=o;if(e.type==="text")return n(t.Text,e.value);if(e.type==="comment")return n(t.Comment,null,e.value);const s=e.tag,c=tr(e,a.tags);if(e.tag==="binding")return Ag(e,n,a,r);const u=er(c)?p=>p:i;if(Lg.includes(c))return n("pre",{class:"mdc-renderer-dangerous-tag"},"<"+c+">"+Rt(e)+"</"+c+">");const g=u(c);typeof g=="object"&&(g.tag=s);const _=Ig(e,a);return l&&(_.key=l),n(g,_,Ql(e,n,{documentMeta:a,parentScope:{...r,..._},resolveComponent:u}))}function Ql(e,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o,s=(e.children||[]).reduce((u,g)=>{if(!$g(g))return u[Nn].children.push(g),u;const _=Pg(g);return u[_]=u[_]||{props:{},children:[]},g.type==="element"&&(u[_].props=g.props,u[_].children.push(...g.children||[])),u},{[Nn]:{props:{},children:[]}});return Object.entries(s).reduce((u,[g,{props:_,children:p}])=>(p.length&&(u[g]=(E={})=>{const V=yg(E,Object.keys(_||{}));let N=p.map((C,m)=>Tg(C,n,{documentMeta:l,parentScope:{...a,...V},resolveComponent:r},String(C.props?.key||m)));return _?.unwrap&&(N=Xl(N,_.unwrap)),Rg(N)}),u),{})}function Ag(e,n,o,l={}){const a={...o.runtimeData,...l,$document:o,$doc:o},r=/\.|\[(\d+)\]/,s=(e.props?.value.trim().split(r).filter(Boolean)).reduce((u,g)=>{if(u&&g in u)return typeof u[g]=="function"?u[g]():u[g]},a),c=e.props?.defaultValue;return n(t.Text,s??c??"")}function Ig(e,n){const{tag:o="",props:l={}}=e;return Object.keys(l).reduce(function(a,r){if(r==="__ignoreMap")return a;const i=l[r];if(vg.test(r))return Vg(r,i,a,n,{native:Ng.includes(o)});if(r==="v-bind")return Bg(r,i,a,n);if(Zl.test(r))return Og(r,i,a,n);if(Jl.test(r))return Dg(r,i,a,n);const{attribute:s}=Wl(jl,r);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(a[s]=i.join(" "),a):(a[s]=i,a)},{})}function Vg(e,n,o,l,{native:a}){const r=e.match(/^v-model:([^=]+)/)?.[1]||"modelValue",i=a?"value":r,s=a?"onInput":`onUpdate:${r}`;return o[i]=zt(n,l.runtimeData),o[s]=c=>{l.updateRuntimeData(n,a?c.target?.value:c)},o}function Bg(e,n,o,l){const a=zt(n,l);return o=Object.assign(o,a),o}function Og(e,n,o,l){return e=e.replace(Zl,""),o.on=o.on||{},o.on[e]=()=>zt(n,l),o}function Dg(e,n,o,l){return e=e.replace(Jl,""),o[e]=zt(n,l),o}const Sn=e=>{if(typeof e=="string"){if(Hn.includes(e))return e;const n=t.resolveComponent(Rl(e),!1);return!e||n?.name==="AsyncComponentWrapper"||typeof n=="string"?n:"setup"in n?t.defineAsyncComponent(()=>new Promise(o=>o(n))):n}return e};function zt(e,n){const o=e.split(".").reduce((l,a)=>typeof l=="object"?l[a]:void 0,n);return typeof o>"u"?rg(e):o}function Pg(e){let n="";for(const o of Object.keys(e.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){n=o.split(/[:#]/,2)[1];break}return n||Nn}function $g(e){return e.tag==="template"}function er(e){return Sg.includes(e)}function Rg(e){const n=[];for(const o of e){const l=n[n.length-1];o.type===t.Text&&l?.type===t.Text?l.children=l.children+o.children:n.push(o)}return n}async function Mg(e,n){if(!e)return;const o=Array.from(new Set(l(e,n)));await Promise.all(o.map(async a=>{if(a?.render||a?.ssrRender||a?.__ssrInlineRender)return;const r=Sn(a);r?.__asyncLoader&&!r.__asyncResolved&&await r.__asyncLoader()}));function l(a,r){const i=a.tag;if(a.type==="text"||i==="binding"||a.type==="comment")return[];const s=tr(a,r.tags);if(er(s))return[];const c=[];a.type!=="root"&&!Hn.includes(s)&&c.push(s);for(const u of a.children||[])c.push(...l(u,r));return c}}function tr(e,n){const o=e.tag;return!o||typeof e.props?.__ignoreMap<"u"?o:n[o]||n[Rl(o)]||n[ug(e.tag)]||o}const xg=t.defineComponent({__name:"MDCRenderer",setup(e){return(n,o)=>(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[t.createVNode(wg,t.mergeProps(n.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.DependenciesNode=gc;exports.RotatingDots=Uo;exports.STATES=z;exports.SchemaToHtml=M1;exports.State=te;exports.TaskIcon=On;exports.Topology=um;exports.YamlUtils=fr;exports._sfc_main=Q1;exports._sfc_main$1=xg;exports.cssVariable=Ce;exports.find=Wl;exports.getMDCParser=Ba;exports.html=jl;exports.isEntryAPluginElementPredicate=Fo;exports.slugify=We;exports.subGroupName=et;exports.svg=_g;
|
|
28
|
+
//# sourceMappingURL=index-BxbuvsFe.cjs.map
|