@kestra-io/ui-libs 0.0.284 → 0.0.286
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/{FlowYamlUtils-DS9E9TyK.js → FlowYamlUtils-ByEGfKdP.js} +576 -563
- package/dist/{FlowYamlUtils-DS9E9TyK.js.map → FlowYamlUtils-ByEGfKdP.js.map} +1 -1
- package/dist/FlowYamlUtils-CAwjZu0s.cjs +3 -0
- package/dist/{FlowYamlUtils-BR3BpHdP.cjs.map → FlowYamlUtils-CAwjZu0s.cjs.map} +1 -1
- package/dist/{VueFlowUtils-CAqlzP8f.cjs → VueFlowUtils-CLCIuGav.cjs} +2 -2
- package/dist/{VueFlowUtils-CAqlzP8f.cjs.map → VueFlowUtils-CLCIuGav.cjs.map} +1 -1
- package/dist/{VueFlowUtils-CZUZUZIC.js → VueFlowUtils-CVECjUbY.js} +2 -2
- package/dist/{VueFlowUtils-CZUZUZIC.js.map → VueFlowUtils-CVECjUbY.js.map} +1 -1
- package/dist/kestra-flowyamlutils.cjs.js +1 -1
- package/dist/kestra-flowyamlutils.es.js +1 -1
- package/dist/kestra-index.cjs.js +1 -1
- package/dist/kestra-index.es.js +3 -3
- package/dist/kestra-vueflowutils.cjs.js +1 -1
- package/dist/kestra-vueflowutils.es.js +2 -2
- package/dist/utils/FlowYamlUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/utils/FlowYamlUtils.test.ts +37 -0
- package/src/utils/FlowYamlUtils.ts +41 -16
- package/dist/FlowYamlUtils-BR3BpHdP.cjs +0 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("js-yaml");require("yaml");const e=require("./FlowYamlUtils-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("js-yaml");require("yaml");const e=require("./FlowYamlUtils-CAwjZu0s.cjs");exports.FLOW_SECTION_KEYS=e.FLOW_SECTION_KEYS;exports.ORDERED_FLOW_ROOT_KEYS=e.ORDERED_FLOW_ROOT_KEYS;exports.checkBlockAlreadyExists=e.checkBlockAlreadyExists;exports.cleanMetadata=e.cleanMetadata;exports.deleteBlock=e.deleteBlock;exports.deleteBlockWithPath=e.deleteBlockWithPath;exports.deleteMetadata=e.deleteMetadata;exports.deletePluginDefaults=e.deletePluginDefaults;exports.extractBlock=e.extractBlock;exports.extractBlockWithPath=e.extractBlockWithPath;exports.extractFieldFromMaps=e.extractFieldFromMaps;exports.extractPluginDefault=e.extractPluginDefault;exports.flowHaveTasks=e.flowHaveTasks;exports.getAllCharts=e.getAllCharts;exports.getChartAtPosition=e.getChartAtPosition;exports.getLastBlock=e.getLastBlock;exports.getMetadata=e.getMetadata;exports.getPathFromSectionAndId=e.getPathFromSectionAndId;exports.getTasksLines=e.getTasksLines;exports.getTypeAtPosition=e.getTypeAtPosition;exports.getVersionAtPosition=e.getVersionAtPosition;exports.insertBlock=e.insertBlock;exports.insertBlockWithPath=e.insertBlockWithPath;exports.insertErrorInFlowable=e.insertErrorInFlowable;exports.isParentChildrenRelation=e.isParentChildrenRelation;exports.localizeElementAtIndex=e.localizeElementAtIndex;exports.pairsToMap=e.pairsToMap;exports.parse=e.parse;exports.parsePath=e.parsePath;exports.replaceBlockInDocument=e.replaceBlockInDocument;exports.replaceBlockWithPath=e.replaceBlockWithPath;exports.replaceIdAndNamespace=e.replaceIdAndNamespace;exports.replacePluginDefaultsInDocument=e.replacePluginDefaultsInDocument;exports.sort=e.sort;exports.stringify=e.stringify;exports.swapBlocks=e.swapBlocks;exports.updateMetadata=e.updateMetadata;
|
|
2
2
|
//# sourceMappingURL=kestra-flowyamlutils.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "js-yaml";
|
|
2
2
|
import "yaml";
|
|
3
|
-
import { af as l, ag as o, v as i, h as r, x as c, ah as n, b as d, d as p, A as h, ai as k, e as g, a as P, f as m, n as B, m as u, w as A, c as f, aj as x, ak as E, k as D, g as I, y as F, al as M, j as O, t as T, l as W, p as C, o as _, am as w, z as y, an as L, i as R, r as S, s as b, q as j, C as v, u as z } from "./FlowYamlUtils-
|
|
3
|
+
import { af as l, ag as o, v as i, h as r, x as c, ah as n, b as d, d as p, A as h, ai as k, e as g, a as P, f as m, n as B, m as u, w as A, c as f, aj as x, ak as E, k as D, g as I, y as F, al as M, j as O, t as T, l as W, p as C, o as _, am as w, z as y, an as L, i as R, r as S, s as b, q as j, C as v, u as z } from "./FlowYamlUtils-ByEGfKdP.js";
|
|
4
4
|
export {
|
|
5
5
|
l as FLOW_SECTION_KEYS,
|
|
6
6
|
o as ORDERED_FLOW_ROOT_KEYS,
|
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Br=Object.create;var ao=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Dr=Object.getPrototypeOf,$r=Object.prototype.hasOwnProperty;var Or=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ar(n))!$r.call(e,r)&&r!==o&&ao(e,r,{get:()=>n[r],enumerable:!(l=Ir(n,r))||l.enumerable});return e};var Pr=(e,n,o)=>(o=e!=null?Br(Dr(e)):{},Or(n||!e||!e.__esModule?ao(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ge=require("yaml"),S=require("./VueFlowUtils-CAqlzP8f.cjs"),W=require("./FlowYamlUtils-BR3BpHdP.cjs"),t=require("vue"),oe=require("@vue-flow/core"),an=require("@vue-flow/controls"),sn=require("moment"),xr=require("@popperjs/core");function Rr(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,l.get?l:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const cn=Rr(t),Mr={lineWidth:0},io=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],Fr={stringify:W.stringify,parse:W.parse,pairsToMap:W.pairsToMap,extractTask(e,n){for(const o of io){const l=W.extractBlock({source:e,section:o,key:n});if(l)return l}},_extractTask(e,n,o){function l(a){if(a){if(a instanceof Ge.YAMLMap&&a.get("type")!==void 0&&n===a.get("id"))return o?o(a):a;if(a.items)for(const[i,s]of a.items.entries()){let c;if(s instanceof Ge.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(a instanceof Ge.YAMLMap?a.set(s.key.value,c):a.items[i]=c),!o&&c))return c}}}const r=l(e.contents);if(r!==void 0)return o?new Ge.Document(r):new Ge.Document(r)},replaceTaskInDocument(e,n,o,l="tasks",r="id"){return W.replaceBlockInDocument({source:e,section:l,keyName:r,key:n,newContent:o})},sort:W.sort,getAllCharts:W.getAllCharts,getChartAtPosition:W.getChartAtPosition,localizeElementAtIndex:W.localizeElementAtIndex,getTaskType:W.getTypeAtPosition,swapTasks(e,n,o){const l=Ge.parseDocument(e),r=this._extractTask(l,n),a=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,()=>a),this._extractTask(l,o,()=>r),l.toString(Mr)},insertTask(e,n,o,l,r){return W.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:r})},insertSection(e,n,o){return W.insertBlock({source:n,section:e,newBlock:o})},insertErrorInFlowable:W.insertErrorInFlowable,deleteSection(e,n,o){return W.deleteBlock({source:e,section:n,key:o})},deleteTask(e,n,o){return(o===S.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((r,a)=>W.deleteBlock({source:r,section:a,key:n}),e)},getLastTask(e,n){return W.getLastBlock({source:e,section:"tasks",parentKey:n})},checkTaskAlreadyExist(e,n){return W.checkBlockAlreadyExists({source:e,section:"tasks",newContent:n,keyName:"id"})},isParentChildrenRelation(e,n,o){return W.isParentChildrenRelation({source:e,sections:io,key1:n,key2:o,keyName:"id"})},replaceIdAndNamespace:W.replaceIdAndNamespace,updateMetadata:W.updateMetadata,cleanMetadata:W.cleanMetadata,getMetadata:W.getMetadata,deleteMetadata:W.deleteMetadata,flowHaveTasks:W.flowHaveTasks,extractPluginDefault:W.extractPluginDefault,replacePluginDefaultsInDocument:W.replacePluginDefaultsInDocument,deletePluginDefaults:W.deletePluginDefaults,extractFieldFromMaps:W.extractFieldFromMaps,getVersionAtPosition:W.getVersionAtPosition},_e=e=>{const n=document.querySelector(":root");return(n?getComputedStyle(n):null)?.getPropertyValue(e)};var Ur=S.requireMapValues();const Nt=W.getDefaultExportFromCjs(Ur),D=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Hr={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zr=["aria-hidden","aria-label"],Wr=["fill","width","height"],jr={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"},Gr={key:0};function Kr(e,n,o,l,r,a){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",jr,[o.title?(t.openBlock(),t.createElementBlock("title",Gr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Wr))],16,zr)}const so=D(Hr,[["render",Kr]]),Yr={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qr=["aria-hidden","aria-label"],Xr=["fill","width","height"],Zr={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"},Jr={key:0};function Qr(e,n,o,l,r,a){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",Zr,[o.title?(t.openBlock(),t.createElementBlock("title",Jr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xr))],16,qr)}const ea=D(Yr,[["render",Qr]]),ta={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},na=["aria-hidden","aria-label"],oa=["fill","width","height"],la={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"},ra={key:0};function aa(e,n,o,l,r,a){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",la,[o.title?(t.openBlock(),t.createElementBlock("title",ra,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,oa))],16,na)}const ia=D(ta,[["render",aa]]),sa={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ca=["aria-hidden","aria-label"],ua=["fill","width","height"],da={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"},ma={key:0};function fa(e,n,o,l,r,a){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",da,[o.title?(t.openBlock(),t.createElementBlock("title",ma,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ua))],16,ca)}const hn=D(sa,[["render",fa]]),pa={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ga=["aria-hidden","aria-label"],ha=["fill","width","height"],Ea={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"},ya={key:0};function ka(e,n,o,l,r,a){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",Ea,[o.title?(t.openBlock(),t.createElementBlock("title",ya,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ha))],16,ga)}const va=D(pa,[["render",ka]]),Ca={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_a=["aria-hidden","aria-label"],Na=["fill","width","height"],Sa={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"},ba={key:0};function wa(e,n,o,l,r,a){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",Sa,[o.title?(t.openBlock(),t.createElementBlock("title",ba,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Na))],16,_a)}const La=D(Ca,[["render",wa]]),Ta={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Va=["aria-hidden","aria-label"],Ba=["fill","width","height"],Ia={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"},Aa={key:0};function Da(e,n,o,l,r,a){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",Ia,[o.title?(t.openBlock(),t.createElementBlock("title",Aa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ba))],16,Va)}const At=D(Ta,[["render",Da]]),$a={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Oa=["aria-hidden","aria-label"],Pa=["fill","width","height"],xa={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"},Ra={key:0};function Ma(e,n,o,l,r,a){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",xa,[o.title?(t.openBlock(),t.createElementBlock("title",Ra,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Pa))],16,Oa)}const Fa=D($a,[["render",Ma]]),Ua={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ha=["aria-hidden","aria-label"],za=["fill","width","height"],Wa={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"},ja={key:0};function Ga(e,n,o,l,r,a){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",Wa,[o.title?(t.openBlock(),t.createElementBlock("title",ja,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,za))],16,Ha)}const Ka=D(Ua,[["render",Ga]]),Ya={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qa=["aria-hidden","aria-label"],Xa=["fill","width","height"],Za={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"},Ja={key:0};function Qa(e,n,o,l,r,a){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",Za,[o.title?(t.openBlock(),t.createElementBlock("title",Ja,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xa))],16,qa)}const co=D(Ya,[["render",Qa]]),ei={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ti=["aria-hidden","aria-label"],ni=["fill","width","height"],oi={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"},li={key:0};function ri(e,n,o,l,r,a){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",oi,[o.title?(t.openBlock(),t.createElementBlock("title",li,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ni))],16,ti)}const uo=D(ei,[["render",ri]]),ai=["ERROR","WARN","INFO","DEBUG","TRACE"],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:La,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:ea,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:ia,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:hn,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:va,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:At,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:hn,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:so,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:uo,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:uo,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:co,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:co,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:so,isRunning:!1,isKillable:!1,isFailed:!1}});class ne{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 Nt(z,n=>({key:n.name,icon:n.icon,color:""}))}static arrayAllStates(){return Object.values(z)}static colorClass(){return Nt(z,n=>n.colorClass)}static color(){return Nt(z,n=>_e("--bs-"+n.colorClass))}static getStateColor(n){return z[n].color}static icon(){return Nt(z,n=>n.icon)}static getTerminatedStates(){return Object.values(z).filter(n=>!n.isRunning).map(n=>n.name)}}let St;async function ii(){if(St)return St;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-cPr4eWCu.cjs"));return St=await(e.default??e)(),St}var Bt={exports:{}},si=Bt.exports,mo;function ci(){return mo||(mo=1,(function(e,n){(function(o,l,r){e.exports=r(),e.exports.default=r()})("slugify",si,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 r(a,i){if(typeof a!="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,d=a.normalize().split("").reduce(function(h,p){var k=s[p];return k===void 0&&(k=o[p]),k===void 0&&(k=p),k===c&&(k=" "),h+k.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),u&&(d=d.trim()),d=d.replace(/\s+/g,c),i.lower&&(d=d.toLowerCase()),d}return r.extend=function(a){Object.assign(o,a)},r})})(Bt)),Bt.exports}var ui=ci();const tl=W.getDefaultExportFromCjs(ui);tl.extend({"(":"-",")":""});function Ce(e){return tl(e,{lower:!0,locale:"en"})}function $n(e,n){return Array.isArray(n)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(n.length===0||n[0]?.cls!==void 0)}function De(e){const o=(e.title??"").replace(/\.([a-zA-Z])/g,(l,r)=>` ${r.toUpperCase()}`);return o.charAt(0).toUpperCase()+o.slice(1)}function Ht(e){return Object.fromEntries(Object.entries(e).filter(([n,o])=>$n(n,o)).map(([n,o])=>[n.replace(/[A-Z]/g,l=>` ${l}`),o.filter(({deprecated:l})=>!l).map(({cls:l})=>l)]))}function di(e){return e.flatMap(n=>{const o=Object.entries(n).filter(([l,r])=>$n(l,r)).map(([l,r])=>[l,r.filter(a=>!a.deprecated)]).filter(([,l])=>l.length>0);return o.length>0?[{...n,...Object.fromEntries(o)}]:[]})}function mi(e){const n={clsToSubgroup:{},clsToPlugin:{},shortNameToCls:{}};for(const o of e??[]){const l=Ht(o),r=o.group??o.name??"",a=Ce(r),i=o.subGroup?Ce(De(o)):void 0;Object.values(l).forEach(s=>{s.forEach(c=>{i&&(n.clsToSubgroup[c]=i),n.clsToPlugin[c]={slug:a,raw:r};const u=(c.split(".").pop()??c).toLowerCase();n.shortNameToCls[u]=n.shortNameToCls[u]??[],n.shortNameToCls[u].includes(c)||n.shortNameToCls[u].push(c)})})}return n}function nl(e){const n=t.computed(()=>{const l=t.isRef(e)?e.value:e;return l?Ht(l):{}}),o=t.computed(()=>Object.values(n.value).reduce((l,r)=>l+r.length,0));return{elementsByType:n,total:o}}const fi={name:"DotsCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pi=["aria-hidden","aria-label"],gi=["fill","width","height"],hi={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"},Ei={key:0};function yi(e,n,o,l,r,a){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",hi,[o.title?(t.openBlock(),t.createElementBlock("title",Ei,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,gi))],16,pi)}const ki=D(fi,[["render",yi]]),vi=t.defineComponent({__name:"RotatingDots",props:{alt:{}},setup(e){return(n,o)=>(t.openBlock(),t.createBlock(ki,{class:"loading-dots-circle",alt:e.alt},null,8,["alt"]))}}),ol=D(vi,[["__scopeId","data-v-a7ad4137"]]);function Be(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}const fo={};function Ci(e){fo[e]||(fo[e]=!0,Be(e))}const Pe=typeof window<"u";let Ne,qe;if(process.env.NODE_ENV!=="production"){const e=Pe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Ne=n=>{e.mark(n)},qe=(n,o,l)=>{e.measure(n,o,l),e.clearMarks(o),e.clearMarks(l)})}const _i=/\{([0-9a-zA-Z]+)\}/g;function zt(e,...n){return n.length===1&&Y(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),e.replace(_i,(o,l)=>n.hasOwnProperty(l)?n[l]:"")}const xe=(e,n=!1)=>n?Symbol.for(e):Symbol(e),Ni=(e,n,o)=>Si({l:e,k:n,s:o}),Si=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ce=e=>typeof e=="number"&&isFinite(e),bi=e=>On(e)==="[object Date]",Dt=e=>On(e)==="[object RegExp]",Wt=e=>K(e)&&Object.keys(e).length===0,ue=Object.assign,wi=Object.create,X=(e=null)=>wi(e);let po;const Ke=()=>po||(po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:X());function go(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function ho(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Li(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(l,r,a)=>`${r}="${ho(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(l,r,a)=>`${r}='${ho(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Be("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 Ti=Object.prototype.hasOwnProperty;function be(e,n){return Ti.call(e,n)}const ie=Array.isArray,te=e=>typeof e=="function",$=e=>typeof e=="string",ae=e=>typeof e=="boolean",Y=e=>e!==null&&typeof e=="object",Vi=e=>Y(e)&&te(e.then)&&te(e.catch),ll=Object.prototype.toString,On=e=>ll.call(e),K=e=>On(e)==="[object Object]",Bi=e=>e==null?"":ie(e)||K(e)&&e.toString===ll?JSON.stringify(e,null,2):String(e);function Pn(e,n=""){return e.reduce((o,l,r)=>r===0?o+l:o+n+l,"")}const Eo=2;function Ii(e,n=0,o=e.length){const l=e.split(/\r?\n/);let r=0;const a=[];for(let i=0;i<l.length;i++)if(r+=l[i].length+1,r>=n){for(let s=i-Eo;s<=i+Eo||o>r;s++){if(s<0||s>=l.length)continue;const c=s+1;a.push(`${c}${" ".repeat(3-String(c).length)}| ${l[s]}`);const u=l[s].length;if(s===i){const d=n-(r-u)+1,h=Math.max(1,o>r?u-d:o-n);a.push(" | "+" ".repeat(d)+"^".repeat(h))}else if(s>i){if(o>r){const d=Math.max(Math.min(o-r,u),1);a.push(" | "+"^".repeat(d))}r+=u+1}}break}return a.join(`
|
|
1
|
+
"use strict";var Br=Object.create;var ao=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Dr=Object.getPrototypeOf,$r=Object.prototype.hasOwnProperty;var Or=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ar(n))!$r.call(e,r)&&r!==o&&ao(e,r,{get:()=>n[r],enumerable:!(l=Ir(n,r))||l.enumerable});return e};var Pr=(e,n,o)=>(o=e!=null?Br(Dr(e)):{},Or(n||!e||!e.__esModule?ao(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ge=require("yaml"),S=require("./VueFlowUtils-CLCIuGav.cjs"),W=require("./FlowYamlUtils-CAwjZu0s.cjs"),t=require("vue"),oe=require("@vue-flow/core"),an=require("@vue-flow/controls"),sn=require("moment"),xr=require("@popperjs/core");function Rr(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,l.get?l:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const cn=Rr(t),Mr={lineWidth:0},io=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],Fr={stringify:W.stringify,parse:W.parse,pairsToMap:W.pairsToMap,extractTask(e,n){for(const o of io){const l=W.extractBlock({source:e,section:o,key:n});if(l)return l}},_extractTask(e,n,o){function l(a){if(a){if(a instanceof Ge.YAMLMap&&a.get("type")!==void 0&&n===a.get("id"))return o?o(a):a;if(a.items)for(const[i,s]of a.items.entries()){let c;if(s instanceof Ge.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(a instanceof Ge.YAMLMap?a.set(s.key.value,c):a.items[i]=c),!o&&c))return c}}}const r=l(e.contents);if(r!==void 0)return o?new Ge.Document(r):new Ge.Document(r)},replaceTaskInDocument(e,n,o,l="tasks",r="id"){return W.replaceBlockInDocument({source:e,section:l,keyName:r,key:n,newContent:o})},sort:W.sort,getAllCharts:W.getAllCharts,getChartAtPosition:W.getChartAtPosition,localizeElementAtIndex:W.localizeElementAtIndex,getTaskType:W.getTypeAtPosition,swapTasks(e,n,o){const l=Ge.parseDocument(e),r=this._extractTask(l,n),a=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,()=>a),this._extractTask(l,o,()=>r),l.toString(Mr)},insertTask(e,n,o,l,r){return W.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:r})},insertSection(e,n,o){return W.insertBlock({source:n,section:e,newBlock:o})},insertErrorInFlowable:W.insertErrorInFlowable,deleteSection(e,n,o){return W.deleteBlock({source:e,section:n,key:o})},deleteTask(e,n,o){return(o===S.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((r,a)=>W.deleteBlock({source:r,section:a,key:n}),e)},getLastTask(e,n){return W.getLastBlock({source:e,section:"tasks",parentKey:n})},checkTaskAlreadyExist(e,n){return W.checkBlockAlreadyExists({source:e,section:"tasks",newContent:n,keyName:"id"})},isParentChildrenRelation(e,n,o){return W.isParentChildrenRelation({source:e,sections:io,key1:n,key2:o,keyName:"id"})},replaceIdAndNamespace:W.replaceIdAndNamespace,updateMetadata:W.updateMetadata,cleanMetadata:W.cleanMetadata,getMetadata:W.getMetadata,deleteMetadata:W.deleteMetadata,flowHaveTasks:W.flowHaveTasks,extractPluginDefault:W.extractPluginDefault,replacePluginDefaultsInDocument:W.replacePluginDefaultsInDocument,deletePluginDefaults:W.deletePluginDefaults,extractFieldFromMaps:W.extractFieldFromMaps,getVersionAtPosition:W.getVersionAtPosition},_e=e=>{const n=document.querySelector(":root");return(n?getComputedStyle(n):null)?.getPropertyValue(e)};var Ur=S.requireMapValues();const Nt=W.getDefaultExportFromCjs(Ur),D=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Hr={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zr=["aria-hidden","aria-label"],Wr=["fill","width","height"],jr={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"},Gr={key:0};function Kr(e,n,o,l,r,a){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",jr,[o.title?(t.openBlock(),t.createElementBlock("title",Gr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Wr))],16,zr)}const so=D(Hr,[["render",Kr]]),Yr={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qr=["aria-hidden","aria-label"],Xr=["fill","width","height"],Zr={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"},Jr={key:0};function Qr(e,n,o,l,r,a){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",Zr,[o.title?(t.openBlock(),t.createElementBlock("title",Jr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xr))],16,qr)}const ea=D(Yr,[["render",Qr]]),ta={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},na=["aria-hidden","aria-label"],oa=["fill","width","height"],la={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"},ra={key:0};function aa(e,n,o,l,r,a){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",la,[o.title?(t.openBlock(),t.createElementBlock("title",ra,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,oa))],16,na)}const ia=D(ta,[["render",aa]]),sa={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ca=["aria-hidden","aria-label"],ua=["fill","width","height"],da={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"},ma={key:0};function fa(e,n,o,l,r,a){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",da,[o.title?(t.openBlock(),t.createElementBlock("title",ma,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ua))],16,ca)}const hn=D(sa,[["render",fa]]),pa={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ga=["aria-hidden","aria-label"],ha=["fill","width","height"],Ea={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"},ya={key:0};function ka(e,n,o,l,r,a){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",Ea,[o.title?(t.openBlock(),t.createElementBlock("title",ya,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ha))],16,ga)}const va=D(pa,[["render",ka]]),Ca={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_a=["aria-hidden","aria-label"],Na=["fill","width","height"],Sa={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"},ba={key:0};function wa(e,n,o,l,r,a){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",Sa,[o.title?(t.openBlock(),t.createElementBlock("title",ba,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Na))],16,_a)}const La=D(Ca,[["render",wa]]),Ta={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Va=["aria-hidden","aria-label"],Ba=["fill","width","height"],Ia={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"},Aa={key:0};function Da(e,n,o,l,r,a){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",Ia,[o.title?(t.openBlock(),t.createElementBlock("title",Aa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ba))],16,Va)}const At=D(Ta,[["render",Da]]),$a={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Oa=["aria-hidden","aria-label"],Pa=["fill","width","height"],xa={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"},Ra={key:0};function Ma(e,n,o,l,r,a){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",xa,[o.title?(t.openBlock(),t.createElementBlock("title",Ra,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Pa))],16,Oa)}const Fa=D($a,[["render",Ma]]),Ua={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ha=["aria-hidden","aria-label"],za=["fill","width","height"],Wa={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"},ja={key:0};function Ga(e,n,o,l,r,a){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",Wa,[o.title?(t.openBlock(),t.createElementBlock("title",ja,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,za))],16,Ha)}const Ka=D(Ua,[["render",Ga]]),Ya={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qa=["aria-hidden","aria-label"],Xa=["fill","width","height"],Za={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"},Ja={key:0};function Qa(e,n,o,l,r,a){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",Za,[o.title?(t.openBlock(),t.createElementBlock("title",Ja,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xa))],16,qa)}const co=D(Ya,[["render",Qa]]),ei={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ti=["aria-hidden","aria-label"],ni=["fill","width","height"],oi={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"},li={key:0};function ri(e,n,o,l,r,a){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",oi,[o.title?(t.openBlock(),t.createElementBlock("title",li,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ni))],16,ti)}const uo=D(ei,[["render",ri]]),ai=["ERROR","WARN","INFO","DEBUG","TRACE"],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:La,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:ea,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:ia,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:hn,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:va,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:At,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:hn,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:so,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:uo,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:uo,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:co,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:co,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:so,isRunning:!1,isKillable:!1,isFailed:!1}});class ne{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 Nt(z,n=>({key:n.name,icon:n.icon,color:""}))}static arrayAllStates(){return Object.values(z)}static colorClass(){return Nt(z,n=>n.colorClass)}static color(){return Nt(z,n=>_e("--bs-"+n.colorClass))}static getStateColor(n){return z[n].color}static icon(){return Nt(z,n=>n.icon)}static getTerminatedStates(){return Object.values(z).filter(n=>!n.isRunning).map(n=>n.name)}}let St;async function ii(){if(St)return St;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-cPr4eWCu.cjs"));return St=await(e.default??e)(),St}var Bt={exports:{}},si=Bt.exports,mo;function ci(){return mo||(mo=1,(function(e,n){(function(o,l,r){e.exports=r(),e.exports.default=r()})("slugify",si,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 r(a,i){if(typeof a!="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,d=a.normalize().split("").reduce(function(h,p){var k=s[p];return k===void 0&&(k=o[p]),k===void 0&&(k=p),k===c&&(k=" "),h+k.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),u&&(d=d.trim()),d=d.replace(/\s+/g,c),i.lower&&(d=d.toLowerCase()),d}return r.extend=function(a){Object.assign(o,a)},r})})(Bt)),Bt.exports}var ui=ci();const tl=W.getDefaultExportFromCjs(ui);tl.extend({"(":"-",")":""});function Ce(e){return tl(e,{lower:!0,locale:"en"})}function $n(e,n){return Array.isArray(n)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(n.length===0||n[0]?.cls!==void 0)}function De(e){const o=(e.title??"").replace(/\.([a-zA-Z])/g,(l,r)=>` ${r.toUpperCase()}`);return o.charAt(0).toUpperCase()+o.slice(1)}function Ht(e){return Object.fromEntries(Object.entries(e).filter(([n,o])=>$n(n,o)).map(([n,o])=>[n.replace(/[A-Z]/g,l=>` ${l}`),o.filter(({deprecated:l})=>!l).map(({cls:l})=>l)]))}function di(e){return e.flatMap(n=>{const o=Object.entries(n).filter(([l,r])=>$n(l,r)).map(([l,r])=>[l,r.filter(a=>!a.deprecated)]).filter(([,l])=>l.length>0);return o.length>0?[{...n,...Object.fromEntries(o)}]:[]})}function mi(e){const n={clsToSubgroup:{},clsToPlugin:{},shortNameToCls:{}};for(const o of e??[]){const l=Ht(o),r=o.group??o.name??"",a=Ce(r),i=o.subGroup?Ce(De(o)):void 0;Object.values(l).forEach(s=>{s.forEach(c=>{i&&(n.clsToSubgroup[c]=i),n.clsToPlugin[c]={slug:a,raw:r};const u=(c.split(".").pop()??c).toLowerCase();n.shortNameToCls[u]=n.shortNameToCls[u]??[],n.shortNameToCls[u].includes(c)||n.shortNameToCls[u].push(c)})})}return n}function nl(e){const n=t.computed(()=>{const l=t.isRef(e)?e.value:e;return l?Ht(l):{}}),o=t.computed(()=>Object.values(n.value).reduce((l,r)=>l+r.length,0));return{elementsByType:n,total:o}}const fi={name:"DotsCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pi=["aria-hidden","aria-label"],gi=["fill","width","height"],hi={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"},Ei={key:0};function yi(e,n,o,l,r,a){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",hi,[o.title?(t.openBlock(),t.createElementBlock("title",Ei,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,gi))],16,pi)}const ki=D(fi,[["render",yi]]),vi=t.defineComponent({__name:"RotatingDots",props:{alt:{}},setup(e){return(n,o)=>(t.openBlock(),t.createBlock(ki,{class:"loading-dots-circle",alt:e.alt},null,8,["alt"]))}}),ol=D(vi,[["__scopeId","data-v-a7ad4137"]]);function Be(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}const fo={};function Ci(e){fo[e]||(fo[e]=!0,Be(e))}const Pe=typeof window<"u";let Ne,qe;if(process.env.NODE_ENV!=="production"){const e=Pe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Ne=n=>{e.mark(n)},qe=(n,o,l)=>{e.measure(n,o,l),e.clearMarks(o),e.clearMarks(l)})}const _i=/\{([0-9a-zA-Z]+)\}/g;function zt(e,...n){return n.length===1&&Y(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),e.replace(_i,(o,l)=>n.hasOwnProperty(l)?n[l]:"")}const xe=(e,n=!1)=>n?Symbol.for(e):Symbol(e),Ni=(e,n,o)=>Si({l:e,k:n,s:o}),Si=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ce=e=>typeof e=="number"&&isFinite(e),bi=e=>On(e)==="[object Date]",Dt=e=>On(e)==="[object RegExp]",Wt=e=>K(e)&&Object.keys(e).length===0,ue=Object.assign,wi=Object.create,X=(e=null)=>wi(e);let po;const Ke=()=>po||(po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:X());function go(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function ho(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Li(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(l,r,a)=>`${r}="${ho(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(l,r,a)=>`${r}='${ho(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Be("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 Ti=Object.prototype.hasOwnProperty;function be(e,n){return Ti.call(e,n)}const ie=Array.isArray,te=e=>typeof e=="function",$=e=>typeof e=="string",ae=e=>typeof e=="boolean",Y=e=>e!==null&&typeof e=="object",Vi=e=>Y(e)&&te(e.then)&&te(e.catch),ll=Object.prototype.toString,On=e=>ll.call(e),K=e=>On(e)==="[object Object]",Bi=e=>e==null?"":ie(e)||K(e)&&e.toString===ll?JSON.stringify(e,null,2):String(e);function Pn(e,n=""){return e.reduce((o,l,r)=>r===0?o+l:o+n+l,"")}const Eo=2;function Ii(e,n=0,o=e.length){const l=e.split(/\r?\n/);let r=0;const a=[];for(let i=0;i<l.length;i++)if(r+=l[i].length+1,r>=n){for(let s=i-Eo;s<=i+Eo||o>r;s++){if(s<0||s>=l.length)continue;const c=s+1;a.push(`${c}${" ".repeat(3-String(c).length)}| ${l[s]}`);const u=l[s].length;if(s===i){const d=n-(r-u)+1,h=Math.max(1,o>r?u-d:o-n);a.push(" | "+" ".repeat(d)+"^".repeat(h))}else if(s>i){if(o>r){const d=Math.max(Math.min(o-r,u),1);a.push(" | "+"^".repeat(d))}r+=u+1}}break}return a.join(`
|
|
2
2
|
`)}function Ai(){const e=new Map;return{events:e,on(o,l){const r=e.get(o);r&&r.push(l)||e.set(o,[l])},off(o,l){const r=e.get(o);r&&r.splice(r.indexOf(l)>>>0,1)},emit(o,l){(e.get(o)||[]).slice().map(r=>r(l)),(e.get("*")||[]).slice().map(r=>r(o,l))}}}const bt=e=>!Y(e)||ie(e);function It(e,n){if(bt(e)||bt(n))throw new Error("Invalid value");const o=[{src:e,des:n}];for(;o.length;){const{src:l,des:r}=o.pop();Object.keys(l).forEach(a=>{a!=="__proto__"&&(Y(l[a])&&!Y(r[a])&&(r[a]=Array.isArray(l[a])?[]:X()),bt(r[a])||bt(l[a])?r[a]=l[a]:o.push({src:l[a],des:r[a]}))})}}function Di(e,n,o){return{line:e,column:n,offset:o}}function En(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},$i=17,Oi={[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 rt(e,n,o={}){const{domain:l,messages:r,args:a}=o,i=process.env.NODE_ENV!=="production"?zt((r||Oi)[e]||"",...a||[]):e,s=new SyntaxError(String(i));return s.code=e,n&&(s.location=n),s.domain=l,s}function Pi(e){throw e}const xi=/<\/?[\w\s="/.':;#-\/]+>/,Ri=e=>xi.test(e),Le=" ",Mi="\r",fe=`
|
|
3
3
|
`,Fi="\u2028",Ui="\u2029";function Hi(e){const n=e;let o=0,l=1,r=1,a=0;const i=C=>n[C]===Mi&&n[C+1]===fe,s=C=>n[C]===fe,c=C=>n[C]===Ui,u=C=>n[C]===Fi,d=C=>i(C)||s(C)||c(C)||u(C),h=()=>o,p=()=>l,k=()=>r,I=()=>a,y=C=>i(C)||c(C)||u(C)?fe:n[C],N=()=>y(o),m=()=>y(o+a);function E(){return a=0,d(o)&&(l++,r=0),i(o)&&o++,o++,r++,n[o]}function w(){return i(o+a)&&a++,a++,n[o+a]}function _(){o=0,l=1,r=1,a=0}function b(C=0){a=C}function B(){const C=o+a;for(;C!==o;)E();a=0}return{index:h,line:p,column:k,peekOffset:I,charAt:y,currentChar:N,currentPeek:m,next:E,peek:w,reset:_,resetPeek:b,skipToPeek:B}}const Ae=void 0,zi=".",yo="'",Wi="tokenizer";function ji(e,n={}){const o=n.location!==!1,l=Hi(e),r=()=>l.index(),a=()=>Di(l.line(),l.column(),l.index()),i=a(),s=r(),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:d}=n;function h(f,g,L,...O){const ee=u();if(g.column+=L,g.offset+=L,d){const le=o?En(ee.startLoc,g):null,G=rt(f,le,{domain:Wi,args:O});d(G)}}function p(f,g,L){f.endLoc=a(),f.currentType=g;const O={type:g};return o&&(O.loc=En(f.startLoc,f.endLoc)),L!=null&&(O.value=L),O}const k=f=>p(f,13);function I(f,g){return f.currentChar()===g?(f.next(),g):(h(M.EXPECTED_TOKEN,a(),0,g),"")}function y(f){let g="";for(;f.currentPeek()===Le||f.currentPeek()===fe;)g+=f.currentPeek(),f.peek();return g}function N(f){const g=y(f);return f.skipToPeek(),g}function m(f){if(f===Ae)return!1;const g=f.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g===95}function E(f){if(f===Ae)return!1;const g=f.charCodeAt(0);return g>=48&&g<=57}function w(f,g){const{currentType:L}=g;if(L!==2)return!1;y(f);const O=m(f.currentPeek());return f.resetPeek(),O}function _(f,g){const{currentType:L}=g;if(L!==2)return!1;y(f);const O=f.currentPeek()==="-"?f.peek():f.currentPeek(),ee=E(O);return f.resetPeek(),ee}function b(f,g){const{currentType:L}=g;if(L!==2)return!1;y(f);const O=f.currentPeek()===yo;return f.resetPeek(),O}function B(f,g){const{currentType:L}=g;if(L!==7)return!1;y(f);const O=f.currentPeek()===".";return f.resetPeek(),O}function C(f,g){const{currentType:L}=g;if(L!==8)return!1;y(f);const O=m(f.currentPeek());return f.resetPeek(),O}function R(f,g){const{currentType:L}=g;if(!(L===7||L===11))return!1;y(f);const O=f.currentPeek()===":";return f.resetPeek(),O}function U(f,g){const{currentType:L}=g;if(L!==9)return!1;const O=()=>{const le=f.currentPeek();return le==="{"?m(f.peek()):le==="@"||le==="|"||le===":"||le==="."||le===Le||!le?!1:le===fe?(f.peek(),O()):ge(f,!1)},ee=O();return f.resetPeek(),ee}function Q(f){y(f);const g=f.currentPeek()==="|";return f.resetPeek(),g}function ge(f,g=!0){const L=(ee=!1,le="")=>{const G=f.currentPeek();return G==="{"||G==="@"||!G?ee:G==="|"?!(le===Le||le===fe):G===Le?(f.peek(),L(!0,Le)):G===fe?(f.peek(),L(!0,fe)):!0},O=L();return g&&f.resetPeek(),O}function Z(f,g){const L=f.currentChar();return L===Ae?Ae:g(L)?(f.next(),L):null}function Re(f){const g=f.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36}function Je(f){return Z(f,Re)}function P(f){const g=f.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36||g===45}function A(f){return Z(f,P)}function H(f){const g=f.charCodeAt(0);return g>=48&&g<=57}function x(f){return Z(f,H)}function Ie(f){const g=f.charCodeAt(0);return g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102}function me(f){return Z(f,Ie)}function He(f){let g="",L="";for(;g=x(f);)L+=g;return L}function Zt(f){let g="";for(;;){const L=f.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L===Le||L===fe)if(ge(f))g+=L,f.next();else{if(Q(f))break;g+=L,f.next()}else g+=L,f.next()}return g}function Jt(f){N(f);let g="",L="";for(;g=A(f);)L+=g;const O=f.currentChar();if(O&&O!=="}"&&O!==Ae&&O!==Le&&O!==fe&&O!==" "){const ee=Ct(f);return h(M.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,L+ee),L+ee}return f.currentChar()===Ae&&h(M.UNTERMINATED_CLOSING_BRACE,a(),0),L}function Qt(f){N(f);let g="";return f.currentChar()==="-"?(f.next(),g+=`-${He(f)}`):g+=He(f),f.currentChar()===Ae&&h(M.UNTERMINATED_CLOSING_BRACE,a(),0),g}function en(f){return f!==yo&&f!==fe}function lo(f){N(f),I(f,"'");let g="",L="";for(;g=Z(f,en);)g==="\\"?L+=tn(f):L+=g;const O=f.currentChar();return O===fe||O===Ae?(h(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),O===fe&&(f.next(),I(f,"'")),L):(I(f,"'"),L)}function tn(f){const g=f.currentChar();switch(g){case"\\":case"'":return f.next(),`\\${g}`;case"u":return vt(f,g,4);case"U":return vt(f,g,6);default:return h(M.UNKNOWN_ESCAPE_SEQUENCE,a(),0,g),""}}function vt(f,g,L){I(f,g);let O="";for(let ee=0;ee<L;ee++){const le=me(f);if(!le){h(M.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${g}${O}${f.currentChar()}`);break}O+=le}return`\\${g}${O}`}function nn(f){return f!=="{"&&f!=="}"&&f!==Le&&f!==fe}function Ct(f){N(f);let g="",L="";for(;g=Z(f,nn);)L+=g;return L}function on(f){let g="",L="";for(;g=Je(f);)L+=g;return L}function ln(f){const g=L=>{const O=f.currentChar();return O==="{"||O==="@"||O==="|"||O==="("||O===")"||!O||O===Le?L:(L+=O,f.next(),g(L))};return g("")}function st(f){N(f);const g=I(f,"|");return N(f),g}function ct(f,g){let L=null;switch(f.currentChar()){case"{":return g.braceNest>=1&&h(M.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),f.next(),L=p(g,2,"{"),N(f),g.braceNest++,L;case"}":return g.braceNest>0&&g.currentType===2&&h(M.EMPTY_PLACEHOLDER,a(),0),f.next(),L=p(g,3,"}"),g.braceNest--,g.braceNest>0&&N(f),g.inLinked&&g.braceNest===0&&(g.inLinked=!1),L;case"@":return g.braceNest>0&&h(M.UNTERMINATED_CLOSING_BRACE,a(),0),L=ze(f,g)||k(g),g.braceNest=0,L;default:{let ee=!0,le=!0,G=!0;if(Q(f))return g.braceNest>0&&h(M.UNTERMINATED_CLOSING_BRACE,a(),0),L=p(g,1,st(f)),g.braceNest=0,g.inLinked=!1,L;if(g.braceNest>0&&(g.currentType===4||g.currentType===5||g.currentType===6))return h(M.UNTERMINATED_CLOSING_BRACE,a(),0),g.braceNest=0,ut(f,g);if(ee=w(f,g))return L=p(g,4,Jt(f)),N(f),L;if(le=_(f,g))return L=p(g,5,Qt(f)),N(f),L;if(G=b(f,g))return L=p(g,6,lo(f)),N(f),L;if(!ee&&!le&&!G)return L=p(g,12,Ct(f)),h(M.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,L.value),N(f),L;break}}return L}function ze(f,g){const{currentType:L}=g;let O=null;const ee=f.currentChar();switch((L===7||L===8||L===11||L===9)&&(ee===fe||ee===Le)&&h(M.INVALID_LINKED_FORMAT,a(),0),ee){case"@":return f.next(),O=p(g,7,"@"),g.inLinked=!0,O;case".":return N(f),f.next(),p(g,8,".");case":":return N(f),f.next(),p(g,9,":");default:return Q(f)?(O=p(g,1,st(f)),g.braceNest=0,g.inLinked=!1,O):B(f,g)||R(f,g)?(N(f),ze(f,g)):C(f,g)?(N(f),p(g,11,on(f))):U(f,g)?(N(f),ee==="{"?ct(f,g)||O:p(g,10,ln(f))):(L===7&&h(M.INVALID_LINKED_FORMAT,a(),0),g.braceNest=0,g.inLinked=!1,ut(f,g))}}function ut(f,g){let L={type:13};if(g.braceNest>0)return ct(f,g)||k(g);if(g.inLinked)return ze(f,g)||k(g);switch(f.currentChar()){case"{":return ct(f,g)||k(g);case"}":return h(M.UNBALANCED_CLOSING_BRACE,a(),0),f.next(),p(g,3,"}");case"@":return ze(f,g)||k(g);default:{if(Q(f))return L=p(g,1,st(f)),g.braceNest=0,g.inLinked=!1,L;if(ge(f))return p(g,0,Zt(f));break}}return L}function rn(){const{currentType:f,offset:g,startLoc:L,endLoc:O}=c;return c.lastType=f,c.lastOffset=g,c.lastStartLoc=L,c.lastEndLoc=O,c.offset=r(),c.startLoc=a(),l.currentChar()===Ae?p(c,13):ut(l,c)}return{nextToken:rn,currentOffset:r,currentPosition:a,context:u}}const Gi="parser",Ki=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Yi(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 qi(e={}){const n=e.location!==!1,{onError:o}=e;function l(m,E,w,_,...b){const B=m.currentPosition();if(B.offset+=_,B.column+=_,o){const C=n?En(w,B):null,R=rt(E,C,{domain:Gi,args:b});o(R)}}function r(m,E,w){const _={type:m};return n&&(_.start=E,_.end=E,_.loc={start:w,end:w}),_}function a(m,E,w,_){n&&(m.end=E,m.loc&&(m.loc.end=w))}function i(m,E){const w=m.context(),_=r(3,w.offset,w.startLoc);return _.value=E,a(_,m.currentOffset(),m.currentPosition()),_}function s(m,E){const w=m.context(),{lastOffset:_,lastStartLoc:b}=w,B=r(5,_,b);return B.index=parseInt(E,10),m.nextToken(),a(B,m.currentOffset(),m.currentPosition()),B}function c(m,E){const w=m.context(),{lastOffset:_,lastStartLoc:b}=w,B=r(4,_,b);return B.key=E,m.nextToken(),a(B,m.currentOffset(),m.currentPosition()),B}function u(m,E){const w=m.context(),{lastOffset:_,lastStartLoc:b}=w,B=r(9,_,b);return B.value=E.replace(Ki,Yi),m.nextToken(),a(B,m.currentOffset(),m.currentPosition()),B}function d(m){const E=m.nextToken(),w=m.context(),{lastOffset:_,lastStartLoc:b}=w,B=r(8,_,b);return E.type!==11?(l(m,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),B.value="",a(B,_,b),{nextConsumeToken:E,node:B}):(E.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Te(E)),B.value=E.value||"",a(B,m.currentOffset(),m.currentPosition()),{node:B})}function h(m,E){const w=m.context(),_=r(7,w.offset,w.startLoc);return _.value=E,a(_,m.currentOffset(),m.currentPosition()),_}function p(m){const E=m.context(),w=r(6,E.offset,E.startLoc);let _=m.nextToken();if(_.type===8){const b=d(m);w.modifier=b.node,_=b.nextConsumeToken||m.nextToken()}switch(_.type!==9&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),_=m.nextToken(),_.type===2&&(_=m.nextToken()),_.type){case 10:_.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),w.key=h(m,_.value||"");break;case 4:_.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),w.key=c(m,_.value||"");break;case 5:_.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),w.key=s(m,_.value||"");break;case 6:_.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),w.key=u(m,_.value||"");break;default:{l(m,M.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const b=m.context(),B=r(7,b.offset,b.startLoc);return B.value="",a(B,b.offset,b.startLoc),w.key=B,a(w,b.offset,b.startLoc),{nextConsumeToken:_,node:w}}}return a(w,m.currentOffset(),m.currentPosition()),{node:w}}function k(m){const E=m.context(),w=E.currentType===1?m.currentOffset():E.offset,_=E.currentType===1?E.endLoc:E.startLoc,b=r(2,w,_);b.items=[];let B=null;do{const U=B||m.nextToken();switch(B=null,U.type){case 0:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),b.items.push(i(m,U.value||""));break;case 5:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),b.items.push(s(m,U.value||""));break;case 4:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),b.items.push(c(m,U.value||""));break;case 6:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),b.items.push(u(m,U.value||""));break;case 7:{const Q=p(m);b.items.push(Q.node),B=Q.nextConsumeToken||null;break}}}while(E.currentType!==13&&E.currentType!==1);const C=E.currentType===1?E.lastOffset:m.currentOffset(),R=E.currentType===1?E.lastEndLoc:m.currentPosition();return a(b,C,R),b}function I(m,E,w,_){const b=m.context();let B=_.items.length===0;const C=r(1,E,w);C.cases=[],C.cases.push(_);do{const R=k(m);B||(B=R.items.length===0),C.cases.push(R)}while(b.currentType!==13);return B&&l(m,M.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),a(C,m.currentOffset(),m.currentPosition()),C}function y(m){const E=m.context(),{offset:w,startLoc:_}=E,b=k(m);return E.currentType===13?b:I(m,w,_,b)}function N(m){const E=ji(m,ue({},e)),w=E.context(),_=r(0,w.offset,w.startLoc);return n&&_.loc&&(_.loc.source=m),_.body=y(E),e.onCacheKey&&(_.cacheKey=e.onCacheKey(m)),w.currentType!==13&&l(E,M.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,m[w.offset]||""),a(_,E.currentOffset(),E.currentPosition()),_}return{parse:N}}function Te(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 Xi(e,n={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:a=>(o.helpers.add(a),a)}}function ko(e,n){for(let o=0;o<e.length;o++)xn(e[o],n)}function xn(e,n){switch(e.type){case 1:ko(e.cases,n),n.helper("plural");break;case 2:ko(e.items,n);break;case 6:{xn(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 Zi(e,n={}){const o=Xi(e);o.helper("normalize"),e.body&&xn(e.body,o);const l=o.context();e.helpers=Array.from(l.helpers)}function Ji(e){const n=e.body;return n.type===2?vo(n):n.cases.forEach(o=>vo(o)),e}function vo(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=Pn(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 Qi="minifier";function nt(e){switch(e.t=e.type,e.type){case 0:{const n=e;nt(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++)nt(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++)nt(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;nt(n.key),n.k=n.key,delete n.key,n.modifier&&(nt(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 rt(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Qi,args:[e.type]})}delete e.type}const es="parser";function ts(e,n){const{filename:o,breakLineCode:l,needIndent:r}=n,a=n.location!==!1,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:r,indentLevel:0};a&&e.loc&&(i.source=e.loc.source);const s=()=>i;function c(y,N){i.code+=y}function u(y,N=!0){const m=N?l:"";c(r?m+" ".repeat(y):m)}function d(y=!0){const N=++i.indentLevel;y&&u(N)}function h(y=!0){const N=--i.indentLevel;y&&u(N)}function p(){u(i.indentLevel)}return{context:s,push:c,indent:d,deindent:h,newline:p,helper:y=>`_${y}`,needIndent:()=>i.needIndent}}function ns(e,n){const{helper:o}=e;e.push(`${o("linked")}(`),lt(e,n.key),n.modifier?(e.push(", "),lt(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function os(e,n){const{helper:o,needIndent:l}=e;e.push(`${o("normalize")}([`),e.indent(l());const r=n.items.length;for(let a=0;a<r&&(lt(e,n.items[a]),a!==r-1);a++)e.push(", ");e.deindent(l()),e.push("])")}function ls(e,n){const{helper:o,needIndent:l}=e;if(n.cases.length>1){e.push(`${o("plural")}([`),e.indent(l());const r=n.cases.length;for(let a=0;a<r&&(lt(e,n.cases[a]),a!==r-1);a++)e.push(", ");e.deindent(l()),e.push("])")}}function rs(e,n){n.body?lt(e,n.body):e.push("null")}function lt(e,n){const{helper:o}=e;switch(n.type){case 0:rs(e,n);break;case 1:ls(e,n);break;case 2:os(e,n);break;case 6:ns(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 rt(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:es,args:[n.type]})}}const as=(e,n={})=>{const o=$(n.mode)?n.mode:"normal",l=$(n.filename)?n.filename:"message.intl";n.sourceMap;const r=n.breakLineCode!=null?n.breakLineCode:o==="arrow"?";":`
|
|
4
4
|
`,a=n.needIndent?n.needIndent:o!=="arrow",i=e.helpers||[],s=ts(e,{filename:l,breakLineCode:r,needIndent:a});s.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(a),i.length>0&&(s.push(`const { ${Pn(i.map(d=>`${d}: _${d}`),", ")} } = ctx`),s.newline()),s.push("return "),lt(s,e),s.deindent(a),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function is(e,n={}){const o=ue({},n),l=!!o.jit,r=!!o.minify,a=o.optimize==null?!0:o.optimize,s=qi(o).parse(e);return l?(a&&Ji(s),r&&nt(s),{ast:s,code:""}):(Zi(s,o),as(s,o))}function ss(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ke().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ke().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function we(e){return Y(e)&&Rn(e)===0&&(be(e,"b")||be(e,"body"))}const rl=["b","body"];function cs(e){return Fe(e,rl)}const al=["c","cases"];function us(e){return Fe(e,al,[])}const il=["s","static"];function ds(e){return Fe(e,il)}const sl=["i","items"];function ms(e){return Fe(e,sl,[])}const cl=["t","type"];function Rn(e){return Fe(e,cl)}const ul=["v","value"];function wt(e,n){const o=Fe(e,ul);if(o!=null)return o;throw mt(n)}const dl=["m","modifier"];function fs(e){return Fe(e,dl)}const ml=["k","key"];function ps(e){const n=Fe(e,ml);if(n)return n;throw mt(6)}function Fe(e,n,o){for(let l=0;l<n.length;l++){const r=n[l];if(be(e,r)&&e[r]!=null)return e[r]}return o}const fl=[...rl,...al,...il,...sl,...ml,...dl,...ul,...cl];function mt(e){return new Error(`unhandled node type: ${e}`)}function un(e){return o=>gs(o,e)}function gs(e,n){const o=cs(n);if(o==null)throw mt(0);if(Rn(o)===1){const a=us(o);return e.plural(a.reduce((i,s)=>[...i,Co(e,s)],[]))}else return Co(e,o)}function Co(e,n){const o=ds(n);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const l=ms(n).reduce((r,a)=>[...r,yn(e,a)],[]);return e.normalize(l)}}function yn(e,n){const o=Rn(n);switch(o){case 3:return wt(n,o);case 9:return wt(n,o);case 4:{const l=n;if(be(l,"k")&&l.k)return e.interpolate(e.named(l.k));if(be(l,"key")&&l.key)return e.interpolate(e.named(l.key));throw mt(o)}case 5:{const l=n;if(be(l,"i")&&ce(l.i))return e.interpolate(e.list(l.i));if(be(l,"index")&&ce(l.index))return e.interpolate(e.list(l.index));throw mt(o)}case 6:{const l=n,r=fs(l),a=ps(l);return e.linked(yn(e,a),r?yn(e,r):void 0,e.type)}case 7:return wt(n,o);case 8:return wt(n,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const hs="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Es(e,n){n&&Ri(e)&&Be(zt(hs,{source:e}))}const ys=e=>e;let Lt=X();function ks(e,n={}){let o=!1;const l=n.onError||Pi;return n.onError=r=>{o=!0,l(r)},{...is(e,n),detectError:o}}function vs(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&$(e)){const o=ae(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Es(e,o);const r=(n.onCacheKey||ys)(e),a=Lt[r];if(a)return a;const{ast:i,detectError:s}=ks(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),c=un(i);return s?c:Lt[r]=c}else{if(process.env.NODE_ENV!=="production"&&!we(e))return Be(`the message that is resolve with key '${n.key}' is not supported for jit compilation`),(()=>e);const o=e.cacheKey;if(o){const l=Lt[o];return l||(Lt[o]=un(e))}else return un(e)}}let ft=null;function Cs(e){ft=e}function _s(e,n,o){ft&&ft.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:o})}const Ns=Ss("function:translate");function Ss(e){return n=>ft&&ft.emit(e,n)}const pe={INVALID_ARGUMENT:$i,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},bs=24;function $e(e){return rt(e,null,process.env.NODE_ENV!=="production"?{messages:ws}:void 0)}const ws={[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 Mn(e,n){return n.locale!=null?_o(n.locale):_o(e.locale)}let dn;function _o(e){if($(e))return e;if(te(e)){if(e.resolvedOnce&&dn!=null)return dn;if(e.constructor.name==="Function"){const n=e();if(Vi(n))throw $e(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return dn=n}else throw $e(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw $e(pe.NOT_SUPPORT_LOCALE_TYPE)}function Ls(e,n,o){return[...new Set([o,...ie(n)?n:Y(n)?Object.keys(n):$(n)?[n]:[o]])]}function pl(e,n,o){const l=$(o)?o:$t,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let a=r.__localeChainCache.get(l);if(!a){a=[];let i=[o];for(;ie(i);)i=No(a,i,n);const s=ie(n)||!K(n)?n:n.default?n.default:null;i=$(s)?[s]:s,ie(i)&&No(a,i,!1),r.__localeChainCache.set(l,a)}return a}function No(e,n,o){let l=!0;for(let r=0;r<n.length&&ae(l);r++){const a=n[r];$(a)&&(l=Ts(e,n[r],o))}return l}function Ts(e,n,o){let l;const r=n.split("-");do{const a=r.join("-");l=Vs(e,a,o),r.splice(-1,1)}while(r.length&&l===!0);return l}function Vs(e,n,o){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const r=n.replace(/!/g,"");e.push(r),(ie(o)||K(o))&&o[r]&&(l=o[r])}return l}const Ue=[];Ue[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ue[1]={w:[1],".":[2],"[":[4],o:[7]};Ue[2]={w:[2],i:[3,0],0:[3,0]};Ue[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ue[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ue[5]={"'":[4,0],o:8,l:[5,0]};Ue[6]={'"':[4,0],o:8,l:[6,0]};const Bs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Is(e){return Bs.test(e)}function As(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 Ds(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 $s(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Is(n)?As(n):"*"+n}function Os(e){const n=[];let o=-1,l=0,r=0,a,i,s,c,u,d,h;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](),r++},p[3]=()=>{if(r>0)r--,l=4,p[0]();else{if(r=0,i===void 0||(i=$s(i),i===!1))return!1;p[1]()}};function k(){const I=e[o+1];if(l===5&&I==="'"||l===6&&I==='"')return o++,s="\\"+I,p[0](),!0}for(;l!==null;)if(o++,a=e[o],!(a==="\\"&&k())){if(c=Ds(a),h=Ue[l],u=h[c]||h.l||8,u===8||(l=u[0],u[1]!==void 0&&(d=p[u[1]],d&&(s=a,d()===!1))))return;if(l===7)return n}}const So=new Map;function Ps(e,n){return Y(e)?e[n]:null}function xs(e,n){if(!Y(e))return null;let o=So.get(n);if(o||(o=Os(n),o&&So.set(n,o)),!o)return null;const l=o.length;let r=e,a=0;for(;a<l;){const i=o[a];if(fl.includes(i)&&we(r))return null;const s=r[i];if(s===void 0||te(r))return null;r=s,a++}return r}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},Rs=8,Ms={[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 Xe(e,...n){return zt(Ms[e],...n)}const Fs="11.2.8",jt=-1,$t="en-US",Ot="",bo=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Us(){return{upper:(e,n)=>n==="text"&&$(e)?e.toUpperCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&$(e)?e.toLowerCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&$(e)?bo(e):n==="vnode"&&Y(e)&&"__v_isVNode"in e?bo(e.children):e}}let gl;function Hs(e){gl=e}let hl;function zs(e){hl=e}let El;function Ws(e){El=e}let yl=null;const js=e=>{yl=e},Gs=()=>yl;let kl=null;const wo=e=>{kl=e},Ks=()=>kl;let Lo=0;function Ys(e={}){const n=te(e.onWarn)?e.onWarn:Be,o=$(e.version)?e.version:Fs,l=$(e.locale)||te(e.locale)?e.locale:$t,r=te(l)?$t:l,a=ie(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,i=K(e.messages)?e.messages:mn(r),s=K(e.datetimeFormats)?e.datetimeFormats:mn(r),c=K(e.numberFormats)?e.numberFormats:mn(r),u=ue(X(),e.modifiers,Us()),d=e.pluralRules||X(),h=te(e.missing)?e.missing:null,p=ae(e.missingWarn)||Dt(e.missingWarn)?e.missingWarn:!0,k=ae(e.fallbackWarn)||Dt(e.fallbackWarn)?e.fallbackWarn:!0,I=!!e.fallbackFormat,y=!!e.unresolving,N=te(e.postTranslation)?e.postTranslation:null,m=K(e.processor)?e.processor:null,E=ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,_=te(e.messageCompiler)?e.messageCompiler:gl;process.env.NODE_ENV!=="production"&&te(e.messageCompiler)&&Ci(Xe(he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const b=te(e.messageResolver)?e.messageResolver:hl||Ps,B=te(e.localeFallbacker)?e.localeFallbacker:El||Ls,C=Y(e.fallbackContext)?e.fallbackContext:void 0,R=e,U=Y(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,Q=Y(R.__numberFormatters)?R.__numberFormatters:new Map,ge=Y(R.__meta)?R.__meta:{};Lo++;const Z={version:o,cid:Lo,locale:l,fallbackLocale:a,messages:i,modifiers:u,pluralRules:d,missing:h,missingWarn:p,fallbackWarn:k,fallbackFormat:I,unresolving:y,postTranslation:N,processor:m,warnHtmlMessage:E,escapeParameter:w,messageCompiler:_,messageResolver:b,localeFallbacker:B,fallbackContext:C,onWarn:n,__meta:ge};return Z.datetimeFormats=s,Z.numberFormats=c,Z.__datetimeFormatters=U,Z.__numberFormatters=Q,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&_s(Z,o,ge),Z}const mn=e=>({[e]:X()});function Gt(e,n){return e instanceof RegExp?e.test(n):e}function vl(e,n){return e instanceof RegExp?e.test(n):e}function Fn(e,n,o,l,r){const{missing:a,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:n,type:r,groupId:`${r}:${n}`})}if(a!==null){const s=a(e,o,n,r);return $(s)?s:n}else return process.env.NODE_ENV!=="production"&&vl(l,n)&&i(Xe(he.NOT_FOUND_KEY,{key:n,locale:o})),n}function dt(e,n,o){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,o,n)}function Cl(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function qs(e,n){const o=n.indexOf(e);if(o===-1)return!1;for(let l=o+1;l<n.length;l++)if(Cl(e,n[l]))return!0;return!1}const To=typeof Intl<"u",_l={dateTimeFormat:To&&typeof Intl.DateTimeFormat<"u",numberFormat:To&&typeof Intl.NumberFormat<"u"};function Vo(e,...n){const{datetimeFormats:o,unresolving:l,fallbackLocale:r,onWarn:a,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!_l.dateTimeFormat)return a(Xe(he.CANNOT_FORMAT_DATE)),Ot;const[c,u,d,h]=kn(...n),p=ae(d.missingWarn)?d.missingWarn:e.missingWarn,k=ae(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,I=!!d.part,y=Mn(e,d),N=i(e,r,y);if(!$(c)||c==="")return new Intl.DateTimeFormat(y,h).format(u);let m={},E,w=null,_=y,b=null;const B="datetime format";for(let U=0;U<N.length;U++){if(E=b=N[U],process.env.NODE_ENV!=="production"&&y!==E&&Gt(k,c)&&a(Xe(he.FALLBACK_TO_DATE_FORMAT,{key:c,target:E})),process.env.NODE_ENV!=="production"&&y!==E){const Q=e.__v_emitter;Q&&Q.emit("fallback",{type:B,key:c,from:_,to:b,groupId:`${B}:${c}`})}if(m=o[E]||{},w=m[c],K(w))break;Fn(e,c,E,p,B),_=b}if(!K(w)||!$(E))return l?jt:c;let C=`${E}__${c}`;Wt(h)||(C=`${C}__${JSON.stringify(h)}`);let R=s.get(C);return R||(R=new Intl.DateTimeFormat(E,ue({},w,h)),s.set(C,R)),I?R.formatToParts(u):R.format(u)}const Nl=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function kn(...e){const[n,o,l,r]=e,a=X();let i=X(),s;if($(n)){const c=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw $e(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 $e(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(bi(n)){if(isNaN(n.getTime()))throw $e(pe.INVALID_DATE_ARGUMENT);s=n}else if(ce(n))s=n;else throw $e(pe.INVALID_ARGUMENT);return $(o)?a.key=o:K(o)&&Object.keys(o).forEach(c=>{Nl.includes(c)?i[c]=o[c]:a[c]=o[c]}),$(l)?a.locale=l:K(l)&&(i=l),K(r)&&(i=r),[a.key||"",s,a,i]}function Bo(e,n,o){const l=e;for(const r in o){const a=`${n}__${r}`;l.__datetimeFormatters.has(a)&&l.__datetimeFormatters.delete(a)}}function Io(e,...n){const{numberFormats:o,unresolving:l,fallbackLocale:r,onWarn:a,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!_l.numberFormat)return a(Xe(he.CANNOT_FORMAT_NUMBER)),Ot;const[c,u,d,h]=vn(...n),p=ae(d.missingWarn)?d.missingWarn:e.missingWarn,k=ae(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,I=!!d.part,y=Mn(e,d),N=i(e,r,y);if(!$(c)||c==="")return new Intl.NumberFormat(y,h).format(u);let m={},E,w=null,_=y,b=null;const B="number format";for(let U=0;U<N.length;U++){if(E=b=N[U],process.env.NODE_ENV!=="production"&&y!==E&&Gt(k,c)&&a(Xe(he.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:E})),process.env.NODE_ENV!=="production"&&y!==E){const Q=e.__v_emitter;Q&&Q.emit("fallback",{type:B,key:c,from:_,to:b,groupId:`${B}:${c}`})}if(m=o[E]||{},w=m[c],K(w))break;Fn(e,c,E,p,B),_=b}if(!K(w)||!$(E))return l?jt:c;let C=`${E}__${c}`;Wt(h)||(C=`${C}__${JSON.stringify(h)}`);let R=s.get(C);return R||(R=new Intl.NumberFormat(E,ue({},w,h)),s.set(C,R)),I?R.formatToParts(u):R.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 vn(...e){const[n,o,l,r]=e,a=X();let i=X();if(!ce(n))throw $e(pe.INVALID_ARGUMENT);const s=n;return $(o)?a.key=o:K(o)&&Object.keys(o).forEach(c=>{Sl.includes(c)?i[c]=o[c]:a[c]=o[c]}),$(l)?a.locale=l:K(l)&&(i=l),K(r)&&(i=r),[a.key||"",s,a,i]}function Ao(e,n,o){const l=e;for(const r in o){const a=`${n}__${r}`;l.__numberFormatters.has(a)&&l.__numberFormatters.delete(a)}}const Xs=e=>e,Zs=e=>"",Js="text",Qs=e=>e.length===0?"":Pn(e),ec=Bi;function Do(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function tc(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 nc(e,n){n.count||(n.count=e),n.n||(n.n=e)}function oc(e={}){const n=e.locale,o=tc(e),l=Y(e.pluralRules)&&$(n)&&te(e.pluralRules[n])?e.pluralRules[n]:Do,r=Y(e.pluralRules)&&$(n)&&te(e.pluralRules[n])?Do:void 0,a=m=>m[l(o,m.length,r)],i=e.list||[],s=m=>i[m],c=e.named||X();ce(e.pluralIndex)&&nc(o,c);const u=m=>c[m];function d(m,E){const w=te(e.messages)?e.messages(m,!!E):Y(e.messages)?e.messages[m]:!1;return w||(e.parent?e.parent.message(m):Zs)}const h=m=>e.modifiers?e.modifiers[m]:Xs,p=K(e.processor)&&te(e.processor.normalize)?e.processor.normalize:Qs,k=K(e.processor)&&te(e.processor.interpolate)?e.processor.interpolate:ec,I=K(e.processor)&&$(e.processor.type)?e.processor.type:Js,N={list:s,named:u,plural:a,linked:(m,...E)=>{const[w,_]=E;let b="text",B="";E.length===1?Y(w)?(B=w.modifier||B,b=w.type||b):$(w)&&(B=w||B):E.length===2&&($(w)&&(B=w||B),$(_)&&(b=_||b));const C=d(m,!0)(N),R=b==="vnode"&&ie(C)&&B?C[0]:C;return B?h(B)(R,b):R},message:d,type:I,interpolate:k,normalize:p,values:ue(X(),i,c)};return N}const $o=()=>"",Se=e=>te(e);function Oo(e,...n){const{fallbackFormat:o,postTranslation:l,unresolving:r,messageCompiler:a,fallbackLocale:i,messages:s}=e,[c,u]=Cn(...n),d=ae(u.missingWarn)?u.missingWarn:e.missingWarn,h=ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=ae(u.escapeParameter)?u.escapeParameter:e.escapeParameter,k=!!u.resolvedMessage,I=$(u.default)||ae(u.default)?ae(u.default)?a?c:()=>c:u.default:o?a?c:()=>c:null,y=o||I!=null&&($(I)||te(I)),N=Mn(e,u);p&&lc(u);let[m,E,w]=k?[c,N,s[N]||X()]:bl(e,c,N,i,h,d),_=m,b=c;if(!k&&!($(_)||we(_)||Se(_))&&y&&(_=I,b=_),!k&&(!($(_)||we(_)||Se(_))||!$(E)))return r?jt:c;if(process.env.NODE_ENV!=="production"&&$(_)&&e.messageCompiler==null)return Be(`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 B=!1;const C=()=>{B=!0},R=Se(_)?_:wl(e,c,E,_,b,C);if(B)return _;const U=sc(e,E,w,u),Q=oc(U),ge=rc(e,R,Q);let Z=l?l(ge,c):ge;if(p&&$(Z)&&(Z=Li(Z)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Re={timestamp:Date.now(),key:$(c)?c:Se(_)?_.key:"",locale:E||(Se(_)?_.locale:""),format:$(_)?_:Se(_)?_.source:"",message:Z};Re.meta=ue({},e.__meta,Gs()||{}),Ns(Re)}return Z}function lc(e){ie(e.list)?e.list=e.list.map(n=>$(n)?go(n):n):Y(e.named)&&Object.keys(e.named).forEach(n=>{$(e.named[n])&&(e.named[n]=go(e.named[n]))})}function bl(e,n,o,l,r,a){const{messages:i,onWarn:s,messageResolver:c,localeFallbacker:u}=e,d=u(e,l,o);let h=X(),p,k=null,I=o,y=null;const N="translate";for(let m=0;m<d.length;m++){if(p=y=d[m],process.env.NODE_ENV!=="production"&&o!==p&&!Cl(o,p)&&Gt(r,n)&&s(Xe(he.FALLBACK_TO_TRANSLATE,{key:n,target:p})),process.env.NODE_ENV!=="production"&&o!==p){const b=e.__v_emitter;b&&b.emit("fallback",{type:N,key:n,from:I,to:y,groupId:`${N}:${n}`})}h=i[p]||X();let E=null,w,_;if(process.env.NODE_ENV!=="production"&&Pe&&(E=window.performance.now(),w="intlify-message-resolve-start",_="intlify-message-resolve-end",Ne&&Ne(w)),(k=c(h,n))===null&&(k=h[n]),process.env.NODE_ENV!=="production"&&Pe){const b=window.performance.now(),B=e.__v_emitter;B&&E&&k&&B.emit("message-resolve",{type:"message-resolve",key:n,message:k,time:b-E,groupId:`${N}:${n}`}),w&&_&&Ne&&qe&&(Ne(_),qe("intlify message resolve",w,_))}if($(k)||we(k)||Se(k))break;if(!qs(p,d)){const b=Fn(e,n,p,a,N);b!==n&&(k=b)}I=y}return[k,p,h]}function wl(e,n,o,l,r,a){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Se(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,d;process.env.NODE_ENV!=="production"&&Pe&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",Ne&&Ne(u));const h=i(l,ac(e,o,r,l,s,a));if(process.env.NODE_ENV!=="production"&&Pe){const p=window.performance.now(),k=e.__v_emitter;k&&c&&k.emit("message-compilation",{type:"message-compilation",message:l,time:p-c,groupId:`translate:${n}`}),u&&d&&Ne&&qe&&(Ne(d),qe("intlify message compilation",u,d))}return h.locale=o,h.key=n,h.source=l,h}function rc(e,n,o){let l=null,r,a;process.env.NODE_ENV!=="production"&&Pe&&(l=window.performance.now(),r="intlify-message-evaluation-start",a="intlify-message-evaluation-end",Ne&&Ne(r));const i=n(o);if(process.env.NODE_ENV!=="production"&&Pe){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}`}),r&&a&&Ne&&qe&&(Ne(a),qe("intlify message evaluation",r,a))}return i}function Cn(...e){const[n,o,l]=e,r=X();if(!$(n)&&!ce(n)&&!Se(n)&&!we(n))throw $e(pe.INVALID_ARGUMENT);const a=ce(n)?String(n):(Se(n),n);return ce(o)?r.plural=o:$(o)?r.default=o:K(o)&&!Wt(o)?r.named=o:ie(o)&&(r.list=o),ce(l)?r.plural=l:$(l)?r.default=l:K(l)&&ue(r,l),[a,r]}function ac(e,n,o,l,r,a){return{locale:n,key:o,warnHtmlMessage:r,onError:i=>{if(a&&a(i),process.env.NODE_ENV!=="production"){const s=ic(l),c=`Message compilation error: ${i.message}`,u=i.location&&s&&Ii(s,i.location.start.offset,i.location.end.offset),d=e.__v_emitter;d&&s&&d.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}
|
package/dist/kestra-index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import xi, { Document as Mi, YAMLMap as Rn } from "yaml";
|
|
2
|
-
import { S as mt, r as Er, E as B, U as xe, h as br, d as Cr, a as kr, c as wr, g as Sr, C as Vi, l as Lr, s as si } from "./VueFlowUtils-
|
|
3
|
-
import { N as Bv, V as zv } from "./VueFlowUtils-
|
|
4
|
-
import { g as Tr, e as Nr, d as Ir, r as $r, a as Ar, f as Or, b as Dr, c as Rr, h as Pr, u as xr, i as Mr, j as Vr, k as Ur, l as Fr, m as Hr, n as Br, s as zr, p as Wr, o as jr, q as Gr, t as Ul, v as Kr, w as Yr, x as Ui, y as Fi, z as qr, A as Xr, B as Fl, C as Zr } from "./FlowYamlUtils-
|
|
2
|
+
import { S as mt, r as Er, E as B, U as xe, h as br, d as Cr, a as kr, c as wr, g as Sr, C as Vi, l as Lr, s as si } from "./VueFlowUtils-CVECjUbY.js";
|
|
3
|
+
import { N as Bv, V as zv } from "./VueFlowUtils-CVECjUbY.js";
|
|
4
|
+
import { g as Tr, e as Nr, d as Ir, r as $r, a as Ar, f as Or, b as Dr, c as Rr, h as Pr, u as xr, i as Mr, j as Vr, k as Ur, l as Fr, m as Hr, n as Br, s as zr, p as Wr, o as jr, q as Gr, t as Ul, v as Kr, w as Yr, x as Ui, y as Fi, z as qr, A as Xr, B as Fl, C as Zr } from "./FlowYamlUtils-ByEGfKdP.js";
|
|
5
5
|
import * as Pn from "vue";
|
|
6
6
|
import { openBlock as u, createElementBlock as c, mergeProps as X, createElementVNode as h, toDisplayString as A, createCommentVNode as _, computed as V, isRef as Jr, defineComponent as ie, createBlock as j, inject as zn, watch as Se, onMounted as yt, onUnmounted as Hl, ref as Z, shallowRef as Jt, h as St, createVNode as x, Text as Rt, Fragment as ue, nextTick as Ut, onBeforeUnmount as Bl, renderSlot as K, createTextVNode as Be, normalizeClass as te, withCtx as U, normalizeStyle as ht, unref as $, toRef as Hi, renderList as Ie, resolveDynamicComponent as qe, createSlots as ui, provide as Bi, normalizeProps as zi, guardReactiveProps as Wi, getCurrentScope as Qr, onScopeDispose as ea, getCurrentInstance as ci, reactive as zl, withModifiers as pn, withAsyncContext as tn, resolveComponent as Wl, toRaw as ta, defineAsyncComponent as na, Comment as ia, Suspense as la } from "vue";
|
|
7
7
|
import { Handle as Ve, useVueFlow as jl, Position as nn, getSmoothStepPath as oa, EdgeLabelRenderer as ra, VueFlow as aa } from "@vue-flow/core";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@vue-flow/core");const e=require("./VueFlowUtils-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@vue-flow/core");const e=require("./VueFlowUtils-CLCIuGav.cjs");require("./FlowYamlUtils-CAwjZu0s.cjs");exports.areTasksIdenticalInGraphUntilTask=e.areTasksIdenticalInGraphUntilTask;exports.cleanGraph=e.cleanGraph;exports.computeClusterColor=e.computeClusterColor;exports.flowHaveTasks=e.flowHaveTasks;exports.generateDagreGraph=e.generateDagreGraph;exports.generateGraph=e.generateGraph;exports.getEdgeColor=e.getEdgeColor;exports.getNextTaskNodes=e.getNextTaskNodes;exports.getNodeHeight=e.getNodeHeight;exports.getNodePosition=e.getNodePosition;exports.getNodeWidth=e.getNodeWidth;exports.getRootNodes=e.getRootNodes;exports.getTargetNodesEdges=e.getTargetNodesEdges;exports.haveAdd=e.haveAdd;exports.isClusterRootOrEnd=e.isClusterRootOrEnd;exports.isCollapsedCluster=e.isCollapsedCluster;exports.isCustomNode=e.isCustomNode;exports.isExpandableTask=e.isExpandableTask;exports.isTaskNode=e.isTaskNode;exports.isTriggerNode=e.isTriggerNode;exports.linkedElements=e.linkedElements;exports.nodeColor=e.nodeColor;exports.predecessorsEdge=e.predecessorsEdge;exports.predecessorsNode=e.predecessorsNode;exports.replaceIfCollapsed=e.replaceIfCollapsed;exports.successorsEdge=e.successorsEdge;exports.successorsNode=e.successorsNode;
|
|
2
2
|
//# sourceMappingURL=kestra-vueflowutils.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@vue-flow/core";
|
|
2
|
-
import { b as r, c as t, e as d, f as g, i as l, g as i, j as p, k as n, m as N, n as c, o as C, p as k, q as u, t as T, u as h, v as m, w as E, x as G, y as f, z as x, l as v, A as H, B as I, D as b, F as w, G as A, H as D } from "./VueFlowUtils-
|
|
3
|
-
import "./FlowYamlUtils-
|
|
2
|
+
import { b as r, c as t, e as d, f as g, i as l, g as i, j as p, k as n, m as N, n as c, o as C, p as k, q as u, t as T, u as h, v as m, w as E, x as G, y as f, z as x, l as v, A as H, B as I, D as b, F as w, G as A, H as D } from "./VueFlowUtils-CVECjUbY.js";
|
|
3
|
+
import "./FlowYamlUtils-ByEGfKdP.js";
|
|
4
4
|
export {
|
|
5
5
|
r as areTasksIdenticalInGraphUntilTask,
|
|
6
6
|
t as cleanGraph,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowYamlUtils.d.ts","sourceRoot":"","sources":["../../src/utils/FlowYamlUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,OAAO,EAWP,KAAK,EAER,MAAM,MAAM,CAAC;AAGd,wBAAgB,KAAK,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,YAAY,UAAO,GAAG,CAAC,GAAG,SAAS,CAShF;AA+BD,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,UAalC;AA0BD,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAG9C;AAED,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,6BAUvC;AAwFD,wBAAgB,uBAAuB,CAAC,EACpC,MAAM,EACN,OAAO,EACP,EAAE,GACL,EAAE;IACC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAA;CACb,GAAG,MAAM,GAAG,SAAS,CAgBrB;AAID,wBAAgB,YAAY,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAC,EAAE;IAC1D,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,sBAkBA;AAyDD,wBAAgB,oBAAoB,CAAC,EAAC,MAAM,EAAE,IAAI,EAAC,EAAE;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAA;CACf,sBASA;AAoBD,wBAAgB,oBAAoB,CAAC,EAAC,MAAM,EAAE,IAAI,EAAE,UAAU,EAAC,EAAE;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAA;CACrB,UAoBA;AAED,wBAAgB,sBAAsB,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU,EAAC,EAAE;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAA;CACrB,sBAoBA;AAsBD,wBAAgB,UAAU,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,EAAE;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,UAiCA;AAED,wBAAgB,WAAW,CAAC,EAAC,MAAM,EAC/B,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,SAAS,EACT,OAAO,EACP,YAAY,EACf,EAAE;IACC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,UA0EA;AAkBD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,uBAerC;
|
|
1
|
+
{"version":3,"file":"FlowYamlUtils.d.ts","sourceRoot":"","sources":["../../src/utils/FlowYamlUtils.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -924,6 +924,43 @@ describe("insertBlockWithPath", () => {
|
|
|
924
924
|
"
|
|
925
925
|
`)
|
|
926
926
|
})
|
|
927
|
+
|
|
928
|
+
test("insert parent when double missing", () => {
|
|
929
|
+
const srcWithTriggers = `
|
|
930
|
+
tasks:
|
|
931
|
+
- id: plugin1
|
|
932
|
+
- id: for_each
|
|
933
|
+
type: io.kestra.plugin.core.flow.ForEach
|
|
934
|
+
tasks:
|
|
935
|
+
- id: plugin2
|
|
936
|
+
- id: my_switch
|
|
937
|
+
type: io.kestra.plugin.core.flow.Switch
|
|
938
|
+
value: baz
|
|
939
|
+
`;
|
|
940
|
+
|
|
941
|
+
const result = YamlUtils.insertBlockWithPath({
|
|
942
|
+
source: srcWithTriggers,
|
|
943
|
+
parentPath: "tasks[1].tasks[1].cases.12",
|
|
944
|
+
newBlock: newValue,
|
|
945
|
+
});;
|
|
946
|
+
expect(result).toMatchInlineSnapshot(`
|
|
947
|
+
"tasks:
|
|
948
|
+
- id: plugin1
|
|
949
|
+
- id: for_each
|
|
950
|
+
type: io.kestra.plugin.core.flow.ForEach
|
|
951
|
+
tasks:
|
|
952
|
+
- id: plugin2
|
|
953
|
+
- id: my_switch
|
|
954
|
+
type: io.kestra.plugin.core.flow.Switch
|
|
955
|
+
value: baz
|
|
956
|
+
cases:
|
|
957
|
+
- "12":
|
|
958
|
+
- id: plugin3
|
|
959
|
+
type: type3
|
|
960
|
+
name: Plugin 3
|
|
961
|
+
"
|
|
962
|
+
`)
|
|
963
|
+
})
|
|
927
964
|
})
|
|
928
965
|
|
|
929
966
|
describe("deleteBlockWithPath", () => {
|
|
@@ -580,6 +580,41 @@ export function parsePath(path: string) {
|
|
|
580
580
|
}, [])
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
+
function getParentNode(yamlDoc: ReturnType<typeof parseDocumentTyped>, parentPath: string) {
|
|
584
|
+
if(!parentPath.includes(".")){
|
|
585
|
+
if(!yamlDoc.contents){
|
|
586
|
+
throw new Error(`Document is empty, cannot insert block with path ${parentPath}`);
|
|
587
|
+
}
|
|
588
|
+
return yamlDoc.contents;
|
|
589
|
+
} else {
|
|
590
|
+
// remove everything after the last "."
|
|
591
|
+
const parentPathWithoutKey = parentPath.substring(0, parentPath.lastIndexOf("."));
|
|
592
|
+
const parentNode = yamlDoc.getIn(parsePath(parentPathWithoutKey)) as YAMLMap<{ value: string }, Node>;
|
|
593
|
+
if (!parentNode) {
|
|
594
|
+
// create the missing parent node
|
|
595
|
+
const newParentNode = createParentNode(parentPathWithoutKey);
|
|
596
|
+
// attach it to the parents parent
|
|
597
|
+
const parentParentNode = getParentNode(yamlDoc, parentPathWithoutKey);
|
|
598
|
+
parentParentNode?.items.push(newParentNode);
|
|
599
|
+
return newParentNode.value
|
|
600
|
+
}
|
|
601
|
+
return parentNode
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
function createParentNode(parentPath: string) {
|
|
606
|
+
const newParentNode = new YAMLSeq();
|
|
607
|
+
const parentKey = parentPath.split(".").pop() as string;
|
|
608
|
+
const parentKeyNode = new Pair(new Scalar(parentKey), newParentNode);
|
|
609
|
+
return parentKeyNode;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
function createPairNode(parentKey: string, newPropNode: Node) {
|
|
613
|
+
const newPairNodeValue = new YAMLSeq();
|
|
614
|
+
newPairNodeValue.add(newPropNode);
|
|
615
|
+
return new Pair(new Scalar(parentKey), newPairNodeValue);
|
|
616
|
+
}
|
|
617
|
+
|
|
583
618
|
export function insertBlockWithPath({
|
|
584
619
|
source,
|
|
585
620
|
newBlock,
|
|
@@ -602,24 +637,14 @@ export function insertBlockWithPath({
|
|
|
602
637
|
const parsedPath = parsePath(parentPath);
|
|
603
638
|
|
|
604
639
|
const parentNode = yamlDoc.getIn(parsedPath) as YAMLMap<{ value: string }, Node>;
|
|
640
|
+
|
|
605
641
|
if (!parentNode) {
|
|
606
|
-
const
|
|
607
|
-
newParentNode
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
if(parentKey.length === parentPath.length){
|
|
611
|
-
yamlDoc.contents?.items.push(parentKeyNode);
|
|
612
|
-
return yamlDoc.toString(TOSTRING_OPTIONS);
|
|
613
|
-
} else {
|
|
614
|
-
const parentPathWithoutKey = parentPath.substring(0, parentPath.length - parentKey.length - 1);
|
|
615
|
-
const parentNode = yamlDoc.getIn(parsePath(parentPathWithoutKey)) as YAMLMap<{ value: string }, Node>;
|
|
616
|
-
if (!parentNode) {
|
|
617
|
-
throw new Error(`Parent block with path ${parentPathWithoutKey} not found`);
|
|
618
|
-
}
|
|
619
|
-
parentNode.items.push(parentKeyNode);
|
|
620
|
-
return yamlDoc.toString(TOSTRING_OPTIONS);
|
|
621
|
-
}
|
|
642
|
+
const newPairNode = createPairNode(parentPath.split(".").pop() as string, newPropNode);
|
|
643
|
+
const newParentNode = getParentNode(yamlDoc, parentPath);
|
|
644
|
+
newParentNode?.items.push(newPairNode);
|
|
645
|
+
return yamlDoc.toString(TOSTRING_OPTIONS);
|
|
622
646
|
}
|
|
647
|
+
|
|
623
648
|
const index = getNodeIndexInParent(yamlDoc, parentNode, parsedPath, refPath);
|
|
624
649
|
if (position === "before") {
|
|
625
650
|
parentNode.items.splice(index, 0, newPropNode);
|