ddy-process-pc-vue3 1.0.1-rc.3.69 → 1.0.1-rc.3.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(Ni,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("vue"),require("checked-pick-pc")):typeof define=="function"&&define.amd?define(["exports","vue","checked-pick-pc"],x):(Ni=typeof globalThis<"u"?globalThis:Ni||self,x(Ni["ddy-process-pc-vue3"]={},Ni.Vue,Ni.checkedPickPc))})(this,function(Ni,x,JM){"use strict";const KM=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function XM(e,n){for(var i=0;i<n.length;i++){const a=n[i];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(a,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Mi=KM(x),Tp={name:"ddy-process-pc-vue3",version:"1.0.1-rc.3.69",description:"> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6",main:"./ddy-process-pc-vue3.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-pc-vue3.js",require:"./ddy-process-pc-vue3.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},author:"",license:"ISC"};let Ze;const Wt="/aws",tn="/bladex/blade-workflow",i1="/auth",Xe={getAjaxObj:()=>({get:(e,n)=>{let i={url:e,param:n.params,type:"get"};return Ze(i)},post:(e,n)=>Ze({url:e,param:n,type:"post"})}),getAjax:()=>Ze,setAjax:e=>{Ze=e},common:{deptUser(e){return Ze({url:"/system/dept/list/dept/user",param:{subjectId:e},type:"get"})},getTaskAuditor(e,n){return Ze({url:"/auth/post/getTaskAuditor",param:{deptId:e,taskPostIds:n},type:"post"})},chexiao(e){let n={url:tn+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},cuiban(e){let n={url:tn+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)}},pis:{start(e){let n={url:Wt+"/pis/start",param:e,type:"post"};return Ze(n)},createAndStart(e){let n={url:tn+"/pis/createAndStart",param:e,type:"post"};return Ze(n)},cancel(e,n){let i={url:Wt+"/pis/cancel",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(i)},findNodeParticipantRows(e){let n={url:Wt+"/pis/findNodeParticipantRows",param:{processInstId:e},type:"get"};return Ze(n)},revoke(e,n){let i={url:Wt+"/pis/revoke",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(i)},getProcessStatus(e,n){let i={url:Wt+"/pis/getProcessStatus",param:{processInstId:e,taskId:n||""},type:"get"};return Ze(i)},getProcessInstanceById(e){let n={url:Wt+"/pis/getProcessInstanceById",param:{processInstId:e},type:"get"};return Ze(n)},reactivate(e){let n={url:tn+"/pis/reactivate",param:e,type:"post"};return Ze(n)},getProcessInstanceByBusinessKey(e){let n={url:Wt+"/pis/getProcessInstanceByBusinessKey",param:{businessKey:e},type:"get"};return Ze(n)},getProcessForecast(e){let n={url:Wt+"/pis/getProcessForecast",param:e,type:"post"};return Ze(n)},deleteProcessById(e){let n={url:Wt+"/pis/deleteProcessById",param:{processInstId:e},type:"get"};return Ze(n)}},tis:{getTaskModelDetail(e){let n={url:tn+"/tis/getTaskModelDetail",param:e,type:"get"};return Ze(n)},query(e,n,i,a){let s={url:Wt+"/tis/query",param:{appId:e,firstRow:n*i-i,rowCount:n*i,returnVars:!0,titleLike:a,taskState:1},type:"get"};return Ze(s)},patchSave(e){let n={url:Wt+"/meta/annex/patchSave",param:e,type:"post"};return Ze(n)},queryTaskPage(e,n,i,a,s=e_.\u5F85\u5904\u7406,c,p){let m={url:Wt+"/tis/queryTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:i,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},queryHiTaskPage(e,n,i,a="",s=e_.\u5F85\u5904\u7406,c,p){let m={url:Wt+"/tis/queryHiTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:i,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},getTaskCommentList(e,n){let i={url:Wt+"/tis/getTaskCommentList",param:{processInstId:e,processBusinessKey:n},type:"get"};return Ze(i)},complete(e){let n={url:tn+"/tis/complete",param:e,type:"post"};return Ze(n)},delegate(e){let n={url:Wt+"/tis/delegate",param:e,type:"post"};return Ze(n)},transferTask(e){let n={url:tn+"/tis/transferTask",param:e,type:"post"};return Ze(n)},withdrawTask(e){let n={url:tn+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},addMultiInstance(e){let n={url:tn+"/tis/addSignTask",param:e,type:"post"};return Ze(n)},reject(e,n){let i={url:Wt+"/tis/reject",param:{taskInstId:e,commentMsg:n},type:"post"};return Ze(i)},simulation(e,n,i){let a={url:tn+"/tis/simulation",param:{taskId:e},type:"get"};return Ze(a)},createDynamicTask(e){let n={url:Wt+"/tis/createDynamicTask",param:e,type:"post"};return Ze(n)},createCCTask(e){let n={url:tn+"/tis/createCCTask",param:e,type:"post"};return Ze(n)},reminders(e){let n={url:tn+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)},getReturnableNodes(e){let n={url:Wt+"/tis/getReturnableNodes",param:{taskId:e},type:"get"};return Ze(n)},rollback(e,n,i){let a={url:tn+"/tis/rollback",param:{taskInstId:e,rollbackReason:i,targetActivityId:n},type:"post"};return Ze(a)}},repository:{getUserTaskModelCmd(e){let n={url:Wt+"/repository/getUserTaskModel",param:{taskId:e},type:"get"};return Ze(n)},getAfferentParticipantNodeList(e){let n={url:Wt+"/repository/getAfferentParticipantNodeList",param:{processDefId:e},type:"get"};return Ze(n)},getXmlByProcessDefId(e){let n={url:tn+"/process/getXmlByProcessDefId",param:e,type:"get"};return Ze(n)},backNodes(e){let n={url:tn+"/process/getBackNodes",param:e,type:"get"};return Ze(n)},getDiagramUrl(e){let n={url:tn+"/repository/getDiagramUrl",param:e,type:"get"};return Ze(n)},getTrackUrl(e){let n={url:Wt+"/repository/getTrackUrl",param:e,type:"get"};return Ze(n)},getProcessDefList(e,n,i){let a={url:tn+"/repository/getProcessDefList",param:{appId:e,processGroupName:n,subjectId:i},type:"post"};return Ze(a)},getProcessDefListNew(e){let n={url:tn+"/repository/getProcessDefList",param:{...e,subjectId:e.userInfo?e.userInfo.subjectId:"",businessCode:e.businessCode||e.businessType},type:"post"};return Ze(n)},getOutgoingProcessNode(e,n){let i={url:tn+"/tis/getOutgoingProcessNode",param:{taskId:e,processNodeId:n},type:"get"};return Ze(i)},queryTaskNodeList(e){let n={url:tn+"/repository/queryTaskNodeList",param:{processInstId:e},type:"get"};return Ze(n)},getFirstProcessNode(e){let n={url:tn+"/repository/getAllProcessNode",param:{processDefId:e},type:"get"};return Ze(n)},getParticipantsOfPerformerNames(e,n){let i={url:Wt+"/repository/getParticipantsOfPerformerNames?taskInstId="+e,param:{taskInstId:e,userTaskDefIds:n},type:"post"};return Ze(i)}},org:{list(e="",n="",i=""){let a={url:Wt+"/org/list",param:{deptId:n,companyId:i,searchKey:e},type:"get"};return Ze(a)},findTeamMember(e="",n=""){let i={url:Wt+"/org/findTeamMember",param:{teamId:n,searchKey:e},type:"get"};return Ze(i)}},user:{getTaskAuditor(e){let n={url:i1+"/user/getTaskAuditor",param:e,type:"post",headers:{"X-Tag":"lwl "}};return Ze(n)},getSelectTree(e){let n={url:i1+"/dept/list/user/dept/selectTree",param:e,type:"get",headers:{"X-Tag":"lwl "}};return Ze(n)}}},bt={success:200,err:500,empty:404},ZM={\u7F29\u7565\u56FE:0,\u539F\u59CB\u5927\u56FE:1},qb={\u7535\u8111\u7AEF:"pc",\u79FB\u52A8\u7AEF:"mobile"},Wu={\u4EBA\u5458:1,\u90E8\u95E8:0,\u4E3B\u4F53:-1,\u7FA4\u7EC4:2},e_={\u5F85\u5904\u7406:1,\u6284\u9001:2,\u4E0D\u5904\u7406:4,\u65E0\u5B50\u8282\u70B9:11},$M={\u6D41\u7A0B\u5F85\u529E:1,\u4E1A\u52A1\u5F85\u529E:2},qM={\u9605\u529E:0,\u4F1A\u7B7E:1,\u52A0\u7B7E:2,\u534F\u540C:3},e4={\u52A0\u7B7E:"counterSignLabel"},t_={\u5355\u4E00\u5206\u652F:"ExclusiveGatewayModel",\u7528\u6237\u4EFB\u52A1:"UserTaskModel",\u7528\u6237\u8282\u70B9:"userTask",\u591A\u9009\u8282\u70B9:"InclusiveGatewayModel",\u7ED3\u675F:"endEvent",\u7ED3\u675F\u4E8B\u4EF6:"EndEventModel"},Np=Object.freeze(Object.defineProperty({__proto__:null,apiCode:bt,DiagramType:ZM,SourceType:qb,UserType:Wu,TaskState:e_,SealBusinessSign:$M,AdHocType:qM,OperationType:e4,ProcessNodeType:t_},Symbol.toStringTag,{value:"Module"}));/*!
1
+ (function(Ni,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("vue"),require("checked-pick-pc")):typeof define=="function"&&define.amd?define(["exports","vue","checked-pick-pc"],x):(Ni=typeof globalThis<"u"?globalThis:Ni||self,x(Ni["ddy-process-pc-vue3"]={},Ni.Vue,Ni.checkedPickPc))})(this,function(Ni,x,JM){"use strict";const KM=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function XM(e,n){for(var i=0;i<n.length;i++){const a=n[i];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(a,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Mi=KM(x),Tp={name:"ddy-process-pc-vue3",version:"1.0.1-rc.3.73",description:"> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6",main:"./ddy-process-pc-vue3.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-pc-vue3.js",require:"./ddy-process-pc-vue3.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},author:"",license:"ISC"};let Ze;const Wt="/aws",tn="/bladex/blade-workflow",i1="/auth",Xe={getAjaxObj:()=>({get:(e,n)=>{let i={url:e,param:n.params,type:"get"};return Ze(i)},post:(e,n)=>Ze({url:e,param:n,type:"post"})}),getAjax:()=>Ze,setAjax:e=>{Ze=e},common:{deptUser(e){return Ze({url:"/system/dept/list/dept/user",param:{subjectId:e},type:"get"})},getTaskAuditor(e,n){return Ze({url:"/auth/post/getTaskAuditor",param:{deptId:e,taskPostIds:n},type:"post"})},chexiao(e){let n={url:tn+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},cuiban(e){let n={url:tn+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)}},pis:{start(e){let n={url:Wt+"/pis/start",param:e,type:"post"};return Ze(n)},createAndStart(e){let n={url:tn+"/pis/createAndStart",param:e,type:"post"};return Ze(n)},cancel(e,n){let i={url:Wt+"/pis/cancel",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(i)},findNodeParticipantRows(e){let n={url:Wt+"/pis/findNodeParticipantRows",param:{processInstId:e},type:"get"};return Ze(n)},revoke(e,n){let i={url:Wt+"/pis/revoke",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(i)},getProcessStatus(e,n){let i={url:Wt+"/pis/getProcessStatus",param:{processInstId:e,taskId:n||""},type:"get"};return Ze(i)},getProcessInstanceById(e){let n={url:Wt+"/pis/getProcessInstanceById",param:{processInstId:e},type:"get"};return Ze(n)},reactivate(e){let n={url:tn+"/pis/reactivate",param:e,type:"post"};return Ze(n)},getProcessInstanceByBusinessKey(e){let n={url:Wt+"/pis/getProcessInstanceByBusinessKey",param:{businessKey:e},type:"get"};return Ze(n)},getProcessForecast(e){let n={url:Wt+"/pis/getProcessForecast",param:e,type:"post"};return Ze(n)},deleteProcessById(e){let n={url:Wt+"/pis/deleteProcessById",param:{processInstId:e},type:"get"};return Ze(n)}},tis:{getTaskModelDetail(e){let n={url:tn+"/tis/getTaskModelDetail",param:e,type:"get"};return Ze(n)},query(e,n,i,a){let s={url:Wt+"/tis/query",param:{appId:e,firstRow:n*i-i,rowCount:n*i,returnVars:!0,titleLike:a,taskState:1},type:"get"};return Ze(s)},patchSave(e){let n={url:Wt+"/meta/annex/patchSave",param:e,type:"post"};return Ze(n)},queryTaskPage(e,n,i,a,s=e_.\u5F85\u5904\u7406,c,p){let m={url:Wt+"/tis/queryTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:i,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},queryHiTaskPage(e,n,i,a="",s=e_.\u5F85\u5904\u7406,c,p){let m={url:Wt+"/tis/queryHiTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:i,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},getTaskCommentList(e,n){let i={url:Wt+"/tis/getTaskCommentList",param:{processInstId:e,processBusinessKey:n},type:"get"};return Ze(i)},complete(e){let n={url:tn+"/tis/complete",param:e,type:"post"};return Ze(n)},delegate(e){let n={url:Wt+"/tis/delegate",param:e,type:"post"};return Ze(n)},transferTask(e){let n={url:tn+"/tis/transferTask",param:e,type:"post"};return Ze(n)},withdrawTask(e){let n={url:tn+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},addMultiInstance(e){let n={url:tn+"/tis/addSignTask",param:e,type:"post"};return Ze(n)},reject(e,n){let i={url:Wt+"/tis/reject",param:{taskInstId:e,commentMsg:n},type:"post"};return Ze(i)},simulation(e,n,i){let a={url:tn+"/tis/simulation",param:{taskId:e},type:"get"};return Ze(a)},createDynamicTask(e){let n={url:Wt+"/tis/createDynamicTask",param:e,type:"post"};return Ze(n)},createCCTask(e){let n={url:tn+"/tis/createCCTask",param:e,type:"post"};return Ze(n)},reminders(e){let n={url:tn+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)},getReturnableNodes(e){let n={url:Wt+"/tis/getReturnableNodes",param:{taskId:e},type:"get"};return Ze(n)},rollback(e,n,i){let a={url:tn+"/tis/rollback",param:{taskInstId:e,rollbackReason:i,targetActivityId:n},type:"post"};return Ze(a)}},repository:{getUserTaskModelCmd(e){let n={url:Wt+"/repository/getUserTaskModel",param:{taskId:e},type:"get"};return Ze(n)},getAfferentParticipantNodeList(e){let n={url:Wt+"/repository/getAfferentParticipantNodeList",param:{processDefId:e},type:"get"};return Ze(n)},getXmlByProcessDefId(e){let n={url:tn+"/process/getXmlByProcessDefId",param:e,type:"get"};return Ze(n)},backNodes(e){let n={url:tn+"/process/getBackNodes",param:e,type:"get"};return Ze(n)},getDiagramUrl(e){let n={url:tn+"/repository/getDiagramUrl",param:e,type:"get"};return Ze(n)},getTrackUrl(e){let n={url:Wt+"/repository/getTrackUrl",param:e,type:"get"};return Ze(n)},getProcessDefList(e,n,i){let a={url:tn+"/repository/getProcessDefList",param:{appId:e,processGroupName:n,subjectId:i},type:"post"};return Ze(a)},getProcessDefListNew(e){let n={url:tn+"/repository/getProcessDefList",param:{...e,subjectId:e.userInfo?e.userInfo.subjectId:"",businessCode:e.businessCode||e.businessType},type:"post"};return Ze(n)},getOutgoingProcessNode(e,n){let i={url:tn+"/tis/getOutgoingProcessNode",param:{taskId:e,processNodeId:n},type:"get"};return Ze(i)},queryTaskNodeList(e){let n={url:tn+"/repository/queryTaskNodeList",param:{processInstId:e},type:"get"};return Ze(n)},getFirstProcessNode(e){let n={url:tn+"/repository/getAllProcessNode",param:{processDefId:e},type:"get"};return Ze(n)},getParticipantsOfPerformerNames(e,n){let i={url:Wt+"/repository/getParticipantsOfPerformerNames?taskInstId="+e,param:{taskInstId:e,userTaskDefIds:n},type:"post"};return Ze(i)}},org:{list(e="",n="",i=""){let a={url:Wt+"/org/list",param:{deptId:n,companyId:i,searchKey:e},type:"get"};return Ze(a)},findTeamMember(e="",n=""){let i={url:Wt+"/org/findTeamMember",param:{teamId:n,searchKey:e},type:"get"};return Ze(i)}},user:{getTaskAuditor(e){let n={url:i1+"/user/getTaskAuditor",param:e,type:"post",headers:{"X-Tag":"lwl "}};return Ze(n)},getSelectTree(e){let n={url:i1+"/dept/list/user/dept/selectTree",param:e,type:"get",headers:{"X-Tag":"lwl "}};return Ze(n)}}},bt={success:200,err:500,empty:404},ZM={\u7F29\u7565\u56FE:0,\u539F\u59CB\u5927\u56FE:1},qb={\u7535\u8111\u7AEF:"pc",\u79FB\u52A8\u7AEF:"mobile"},Wu={\u4EBA\u5458:1,\u90E8\u95E8:0,\u4E3B\u4F53:-1,\u7FA4\u7EC4:2},e_={\u5F85\u5904\u7406:1,\u6284\u9001:2,\u4E0D\u5904\u7406:4,\u65E0\u5B50\u8282\u70B9:11},$M={\u6D41\u7A0B\u5F85\u529E:1,\u4E1A\u52A1\u5F85\u529E:2},qM={\u9605\u529E:0,\u4F1A\u7B7E:1,\u52A0\u7B7E:2,\u534F\u540C:3},e4={\u52A0\u7B7E:"counterSignLabel"},t_={\u5355\u4E00\u5206\u652F:"ExclusiveGatewayModel",\u7528\u6237\u4EFB\u52A1:"UserTaskModel",\u7528\u6237\u8282\u70B9:"userTask",\u591A\u9009\u8282\u70B9:"InclusiveGatewayModel",\u7ED3\u675F:"endEvent",\u7ED3\u675F\u4E8B\u4EF6:"EndEventModel"},Np=Object.freeze(Object.defineProperty({__proto__:null,apiCode:bt,DiagramType:ZM,SourceType:qb,UserType:Wu,TaskState:e_,SealBusinessSign:$M,AdHocType:qM,OperationType:e4,ProcessNodeType:t_},Symbol.toStringTag,{value:"Module"}));/*!
2
2
  * Vue.js v2.6.14
3
3
  * (c) 2014-2021 Evan You
4
4
  * Released under the MIT License.
@@ -31,7 +31,7 @@ usage: app.provide(ID_INJECTION_KEY, {
31
31
  z-index:-1000 !important;
32
32
  top:0 !important;
33
33
  right:0 !important;
34
- `,jQ=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function LQ(e){const n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing"),a=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),s=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:jQ.map(p=>`${p}:${n.getPropertyValue(p)}`).join(";"),paddingSize:a,borderSize:s,boxSizing:i}}function cB(e,n=1,i){var a;xr||(xr=document.createElement("textarea"),document.body.appendChild(xr));const{paddingSize:s,borderSize:c,boxSizing:p,contextStyle:m}=LQ(e);xr.setAttribute("style",`${m};${RQ}`),xr.value=e.value||e.placeholder||"";let g=xr.scrollHeight;const y={};p==="border-box"?g=g+c:p==="content-box"&&(g=g-s),xr.value="";const O=xr.scrollHeight-s;if(ds(n)){let E=O*n;p==="border-box"&&(E=E+s+c),g=Math.max(E,g),y.minHeight=`${E}px`}if(ds(i)){let E=O*i;p==="border-box"&&(E=E+s+c),g=Math.min(E,g)}return y.height=`${g}px`,(a=xr.parentNode)==null||a.removeChild(xr),xr=void 0,y}const QQ=fs({id:{type:String,default:void 0},size:Ty,disabled:Boolean,modelValue:{type:mi([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:mi([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:fd},prefixIcon:{type:fd},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:mi([Object,Array,String]),default:()=>jI({})},autofocus:{type:Boolean,default:!1}}),zQ={[Dy]:e=>yr(e),input:e=>yr(e),change:e=>yr(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},HQ=["role"],VQ=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],UQ=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],YQ=x.defineComponent({name:"ElInput",inheritAttrs:!1}),WQ=x.defineComponent({...YQ,props:QQ,emits:zQ,setup(e,{expose:n,emit:i}){const a=e,s=x.useAttrs(),c=x.useSlots(),p=x.computed(()=>{const G={};return a.containerRole==="combobox"&&(G["aria-haspopup"]=s["aria-haspopup"],G["aria-owns"]=s["aria-owns"],G["aria-expanded"]=s["aria-expanded"]),G}),m=x.computed(()=>[a.type==="textarea"?P.b():M.b(),M.m(_.value),M.is("disabled",S.value),M.is("exceed",xe.value),{[M.b("group")]:c.prepend||c.append,[M.bm("group","append")]:c.append,[M.bm("group","prepend")]:c.prepend,[M.m("prefix")]:c.prefix||a.prefixIcon,[M.m("suffix")]:c.suffix||a.suffixIcon||a.clearable||a.showPassword,[M.bm("suffix","password-clear")]:ge.value&&Te.value},s.class]),g=x.computed(()=>[M.e("wrapper"),M.is("focus",ne.value)]),y=rQ({excludeKeys:x.computed(()=>Object.keys(p.value))}),{form:O,formItem:E}=lB(),{inputId:N}=PQ(a,{formItemContext:E}),_=sB(),S=Py(),M=Yr("input"),P=Yr("textarea"),T=x.shallowRef(),R=x.shallowRef(),b=x.ref(!1),w=x.ref(!1),B=x.ref(!1),z=x.ref(),F=x.shallowRef(a.inputStyle),H=x.computed(()=>T.value||R.value),{wrapperRef:ee,isFocused:ne,handleFocus:se,handleBlur:me}=IQ(H,{afterBlur(){var G;a.validateEvent&&((G=E==null?void 0:E.validate)==null||G.call(E,"blur").catch(ae=>Ur(ae)))}}),pe=x.computed(()=>{var G;return(G=O==null?void 0:O.statusIcon)!=null?G:!1}),Se=x.computed(()=>(E==null?void 0:E.validateState)||""),ye=x.computed(()=>Se.value&&ZL[Se.value]),_e=x.computed(()=>B.value?JL:VL),W=x.computed(()=>[s.style,a.inputStyle]),J=x.computed(()=>[a.inputStyle,F.value,{resize:a.resize}]),re=x.computed(()=>xI(a.modelValue)?"":String(a.modelValue)),ge=x.computed(()=>a.clearable&&!S.value&&!a.readonly&&!!re.value&&(ne.value||b.value)),Te=x.computed(()=>a.showPassword&&!S.value&&!a.readonly&&!!re.value&&(!!re.value||ne.value)),le=x.computed(()=>a.showWordLimit&&!!y.value.maxlength&&(a.type==="text"||a.type==="textarea")&&!S.value&&!a.readonly&&!a.showPassword),he=x.computed(()=>re.value.length),xe=x.computed(()=>!!le.value&&he.value>Number(y.value.maxlength)),Fe=x.computed(()=>!!c.suffix||!!a.suffixIcon||ge.value||a.showPassword||le.value||!!Se.value&&pe.value),[K,j]=SQ(T);lI(R,G=>{if(X(),!le.value||a.resize!=="both")return;const ae=G[0],{width:ke}=ae.contentRect;z.value={right:`calc(100% - ${ke+15+6}px)`}});const k=()=>{const{type:G,autosize:ae}=a;if(!(!hi||G!=="textarea"||!R.value))if(ae){const ke=cd(ae)?ae.minRows:void 0,je=cd(ae)?ae.maxRows:void 0,it=cB(R.value,ke,je);F.value={overflowY:"hidden",...it},x.nextTick(()=>{R.value.offsetHeight,F.value=it})}else F.value={minHeight:cB(R.value).minHeight}},X=(G=>{let ae=!1;return()=>{var ke;if(ae||!a.autosize)return;((ke=R.value)==null?void 0:ke.offsetParent)===null||(G(),ae=!0)}})(k),te=()=>{const G=H.value,ae=a.formatter?a.formatter(re.value):re.value;!G||G.value===ae||(G.value=ae)},fe=async G=>{K();let{value:ae}=G.target;if(a.formatter&&(ae=a.parser?a.parser(ae):ae),!w.value){if(ae===re.value){te();return}i(Dy,ae),i("input",ae),await x.nextTick(),te(),j()}},De=G=>{i("change",G.target.value)},Re=G=>{i("compositionstart",G),w.value=!0},Ke=G=>{var ae;i("compositionupdate",G);const ke=(ae=G.target)==null?void 0:ae.value,je=ke[ke.length-1]||"";w.value=!tQ(je)},_t=G=>{i("compositionend",G),w.value&&(w.value=!1,fe(G))},pt=()=>{B.value=!B.value,Bt()},Bt=async()=>{var G;await x.nextTick(),(G=H.value)==null||G.focus()},sn=()=>{var G;return(G=H.value)==null?void 0:G.blur()},ct=G=>{b.value=!1,i("mouseleave",G)},Ot=G=>{b.value=!0,i("mouseenter",G)},fn=G=>{i("keydown",G)},ve=()=>{var G;(G=H.value)==null||G.select()},q=()=>{i(Dy,""),i("change",""),i("clear"),i("input","")};return x.watch(()=>a.modelValue,()=>{var G;x.nextTick(()=>k()),a.validateEvent&&((G=E==null?void 0:E.validate)==null||G.call(E,"change").catch(ae=>Ur(ae)))}),x.watch(re,()=>te()),x.watch(()=>a.type,async()=>{await x.nextTick(),te(),k()}),x.onMounted(()=>{!a.formatter&&a.parser&&Ur("ElInput","If you set the parser, you also need to set the formatter."),te(),x.nextTick(k)}),n({input:T,textarea:R,ref:H,textareaStyle:J,autosize:x.toRef(a,"autosize"),focus:Bt,blur:sn,select:ve,clear:q,resizeTextarea:k}),(G,ae)=>x.withDirectives((x.openBlock(),x.createElementBlock("div",x.mergeProps(x.unref(p),{class:x.unref(m),style:x.unref(W),role:G.containerRole,onMouseenter:Ot,onMouseleave:ct}),[x.createCommentVNode(" input "),G.type!=="textarea"?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[x.createCommentVNode(" prepend slot "),G.$slots.prepend?(x.openBlock(),x.createElementBlock("div",{key:0,class:x.normalizeClass(x.unref(M).be("group","prepend"))},[x.renderSlot(G.$slots,"prepend")],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{ref_key:"wrapperRef",ref:ee,class:x.normalizeClass(x.unref(g))},[x.createCommentVNode(" prefix slot "),G.$slots.prefix||G.prefixIcon?(x.openBlock(),x.createElementBlock("span",{key:0,class:x.normalizeClass(x.unref(M).e("prefix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("prefix-inner"))},[x.renderSlot(G.$slots,"prefix"),G.prefixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(M).e("icon"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(G.prefixIcon)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],2)],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("input",x.mergeProps({id:x.unref(N),ref_key:"input",ref:T,class:x.unref(M).e("inner")},x.unref(y),{type:G.showPassword?B.value?"text":"password":G.type,disabled:x.unref(S),formatter:G.formatter,parser:G.parser,readonly:G.readonly,autocomplete:G.autocomplete,tabindex:G.tabindex,"aria-label":G.label,placeholder:G.placeholder,style:G.inputStyle,form:a.form,autofocus:a.autofocus,onCompositionstart:Re,onCompositionupdate:Ke,onCompositionend:_t,onInput:fe,onFocus:ae[0]||(ae[0]=(...ke)=>x.unref(se)&&x.unref(se)(...ke)),onBlur:ae[1]||(ae[1]=(...ke)=>x.unref(me)&&x.unref(me)(...ke)),onChange:De,onKeydown:fn}),null,16,VQ),x.createCommentVNode(" suffix slot "),x.unref(Fe)?(x.openBlock(),x.createElementBlock("span",{key:1,class:x.normalizeClass(x.unref(M).e("suffix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("suffix-inner"))},[!x.unref(ge)||!x.unref(Te)||!x.unref(le)?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[x.renderSlot(G.$slots,"suffix"),G.suffixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(M).e("icon"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(G.suffixIcon)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],64)):x.createCommentVNode("v-if",!0),x.unref(ge)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("clear")]),onMousedown:x.withModifiers(x.unref(Yl),["prevent"]),onClick:q},{default:x.withCtx(()=>[x.createVNode(x.unref(II))]),_:1},8,["class","onMousedown"])):x.createCommentVNode("v-if",!0),x.unref(Te)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("password")]),onClick:pt},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(_e))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.unref(le)?(x.openBlock(),x.createElementBlock("span",{key:3,class:x.normalizeClass(x.unref(M).e("count"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("count-inner"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),3)],2)):x.createCommentVNode("v-if",!0),x.unref(Se)&&x.unref(ye)&&x.unref(pe)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:4,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("validateIcon"),x.unref(M).is("loading",x.unref(Se)==="validating")])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(ye))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],2)],2)):x.createCommentVNode("v-if",!0)],2),x.createCommentVNode(" append slot "),G.$slots.append?(x.openBlock(),x.createElementBlock("div",{key:1,class:x.normalizeClass(x.unref(M).be("group","append"))},[x.renderSlot(G.$slots,"append")],2)):x.createCommentVNode("v-if",!0)],64)):(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[x.createCommentVNode(" textarea "),x.createElementVNode("textarea",x.mergeProps({id:x.unref(N),ref_key:"textarea",ref:R,class:x.unref(P).e("inner")},x.unref(y),{tabindex:G.tabindex,disabled:x.unref(S),readonly:G.readonly,autocomplete:G.autocomplete,style:x.unref(J),"aria-label":G.label,placeholder:G.placeholder,form:a.form,autofocus:a.autofocus,onCompositionstart:Re,onCompositionupdate:Ke,onCompositionend:_t,onInput:fe,onFocus:ae[2]||(ae[2]=(...ke)=>x.unref(se)&&x.unref(se)(...ke)),onBlur:ae[3]||(ae[3]=(...ke)=>x.unref(me)&&x.unref(me)(...ke)),onChange:De,onKeydown:fn}),null,16,UQ),x.unref(le)?(x.openBlock(),x.createElementBlock("span",{key:0,style:x.normalizeStyle(z.value),class:x.normalizeClass(x.unref(M).e("count"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),7)):x.createCommentVNode("v-if",!0)],64))],16,HQ)),[[x.vShow,G.type!=="hidden"]])}});var GQ=Za(WQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const JQ=Eh(GQ),Ry="focus-trap.focus-after-trapped",jy="focus-trap.focus-after-released",KQ="focus-trap.focusout-prevented",uB={cancelable:!0,bubbles:!1},XQ={cancelable:!0,bubbles:!1},dB="focusAfterTrapped",fB="focusAfterReleased",ZQ=Symbol("elFocusTrap"),Ly=x.ref(),Oh=x.ref(0),Qy=x.ref(0);let Th=0;const pB=e=>{const n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)n.push(i.currentNode);return n},hB=(e,n)=>{for(const i of e)if(!$Q(i,n))return i},$Q=(e,n)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},qQ=e=>{const n=pB(e),i=hB(n,e),a=hB(n.reverse(),e);return[i,a]},ez=e=>e instanceof HTMLInputElement&&"select"in e,$a=(e,n)=>{if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),Qy.value=window.performance.now(),e!==i&&ez(e)&&n&&e.select()}};function mB(e,n){const i=[...e],a=e.indexOf(n);return a!==-1&&i.splice(a,1),i}const tz=()=>{let e=[];return{push:a=>{const s=e[0];s&&a!==s&&s.pause(),e=mB(e,a),e.unshift(a)},remove:a=>{var s,c;e=mB(e,a),(c=(s=e[0])==null?void 0:s.resume)==null||c.call(s)}}},nz=(e,n=!1)=>{const i=document.activeElement;for(const a of e)if($a(a,n),document.activeElement!==i)return},gB=tz(),iz=()=>Oh.value>Qy.value,Nh=()=>{Ly.value="pointer",Oh.value=window.performance.now()},AB=()=>{Ly.value="keyboard",Oh.value=window.performance.now()},rz=()=>(x.onMounted(()=>{Th===0&&(document.addEventListener("mousedown",Nh),document.addEventListener("touchstart",Nh),document.addEventListener("keydown",AB)),Th++}),x.onBeforeUnmount(()=>{Th--,Th<=0&&(document.removeEventListener("mousedown",Nh),document.removeEventListener("touchstart",Nh),document.removeEventListener("keydown",AB))}),{focusReason:Ly,lastUserFocusTimestamp:Oh,lastAutomatedFocusTimestamp:Qy}),Mh=e=>new CustomEvent(KQ,{...XQ,detail:e}),az=x.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[dB,fB,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const i=x.ref();let a,s;const{focusReason:c}=rz();kQ(S=>{e.trapped&&!p.paused&&n("release-requested",S)});const p={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=S=>{if(!e.loop&&!e.trapped||p.paused)return;const{key:M,altKey:P,ctrlKey:T,metaKey:R,currentTarget:b,shiftKey:w}=S,{loop:B}=e,z=M===kh.tab&&!P&&!T&&!R,F=document.activeElement;if(z&&F){const H=b,[ee,ne]=qQ(H);if(ee&&ne){if(!w&&F===ne){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(S.preventDefault(),B&&$a(ee,!0))}else if(w&&[ee,H].includes(F)){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(S.preventDefault(),B&&$a(ne,!0))}}else if(F===H){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||S.preventDefault()}}};x.provide(ZQ,{focusTrapRef:i,onKeydown:m}),x.watch(()=>e.focusTrapEl,S=>{S&&(i.value=S)},{immediate:!0}),x.watch([i],([S],[M])=>{S&&(S.addEventListener("keydown",m),S.addEventListener("focusin",O),S.addEventListener("focusout",E)),M&&(M.removeEventListener("keydown",m),M.removeEventListener("focusin",O),M.removeEventListener("focusout",E))});const g=S=>{n(dB,S)},y=S=>n(fB,S),O=S=>{const M=x.unref(i);if(!M)return;const P=S.target,T=S.relatedTarget,R=P&&M.contains(P);e.trapped||T&&M.contains(T)||(a=T),R&&n("focusin",S),!p.paused&&e.trapped&&(R?s=P:$a(s,!0))},E=S=>{const M=x.unref(i);if(!(p.paused||!M))if(e.trapped){const P=S.relatedTarget;!xI(P)&&!M.contains(P)&&setTimeout(()=>{if(!p.paused&&e.trapped){const T=Mh({focusReason:c.value});n("focusout-prevented",T),T.defaultPrevented||$a(s,!0)}},0)}else{const P=S.target;P&&M.contains(P)||n("focusout",S)}};async function N(){await x.nextTick();const S=x.unref(i);if(S){gB.push(p);const M=S.contains(document.activeElement)?a:document.activeElement;if(a=M,!S.contains(M)){const T=new Event(Ry,uB);S.addEventListener(Ry,g),S.dispatchEvent(T),T.defaultPrevented||x.nextTick(()=>{let R=e.focusStartEl;yr(R)||($a(R),document.activeElement!==R&&(R="first")),R==="first"&&nz(pB(S),!0),(document.activeElement===M||R==="container")&&$a(S)})}}}function _(){const S=x.unref(i);if(S){S.removeEventListener(Ry,g);const M=new CustomEvent(jy,{...uB,detail:{focusReason:c.value}});S.addEventListener(jy,y),S.dispatchEvent(M),!M.defaultPrevented&&(c.value=="keyboard"||!iz()||S.contains(document.activeElement))&&$a(a!=null?a:document.body),S.removeEventListener(jy,y),gB.remove(p)}}return x.onMounted(()=>{e.trapped&&N(),x.watch(()=>e.trapped,S=>{S?N():_()})}),x.onBeforeUnmount(()=>{e.trapped&&_()}),{onKeydown:m}}});function oz(e,n,i,a,s,c){return x.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var sz=Za(az,[["render",oz],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const lz=fs({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),cz=["textContent"],uz=x.defineComponent({name:"ElBadge"}),dz=x.defineComponent({...uz,props:lz,setup(e,{expose:n}){const i=e,a=Yr("badge"),s=x.computed(()=>i.isDot?"":ds(i.value)&&ds(i.max)?i.max<i.value?`${i.max}+`:`${i.value}`:`${i.value}`);return n({content:s}),(c,p)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(x.unref(a).b())},[x.renderSlot(c.$slots,"default"),x.createVNode(x.Transition,{name:`${x.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("sup",{class:x.normalizeClass([x.unref(a).e("content"),x.unref(a).em("content",c.type),x.unref(a).is("fixed",!!c.$slots.default),x.unref(a).is("dot",c.isDot)]),textContent:x.toDisplayString(x.unref(s))},null,10,cz),[[x.vShow,!c.hidden&&(x.unref(s)||c.isDot)]])]),_:1},8,["name"])],2))}});var fz=Za(dz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const pz=Eh(fz),vB=Symbol("buttonGroupContextKey"),hz=(e,n)=>{aQ({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x.computed(()=>e.type==="text"));const i=x.inject(vB,void 0),a=Ny("button"),{form:s}=lB(),c=sB(x.computed(()=>i==null?void 0:i.size)),p=Py(),m=x.ref(),g=x.useSlots(),y=x.computed(()=>e.type||(i==null?void 0:i.type)||""),O=x.computed(()=>{var S,M,P;return(P=(M=e.autoInsertSpace)!=null?M:(S=a.value)==null?void 0:S.autoInsertSpace)!=null?P:!1}),E=x.computed(()=>e.tag==="button"?{ariaDisabled:p.value||e.loading,disabled:p.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),N=x.computed(()=>{var S;const M=(S=g.default)==null?void 0:S.call(g);if(O.value&&(M==null?void 0:M.length)===1){const P=M[0];if((P==null?void 0:P.type)===x.Text){const T=P.children;return/^\p{Unified_Ideograph}{2}$/u.test(T.trim())}}return!1});return{_disabled:p,_size:c,_type:y,_ref:m,_props:E,shouldAddSpace:N,handleClick:S=>{e.nativeType==="reset"&&(s==null||s.resetFields()),n("click",S)}}},zy=fs({size:Ty,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:fd},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:fd,default:()=>OI},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:mi([String,Object]),default:"button"}}),mz={click:e=>e instanceof MouseEvent};function On(e,n){gz(e)&&(e="100%");var i=Az(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),i&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function Fh(e){return Math.min(1,Math.max(0,e))}function gz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Az(e){return typeof e=="string"&&e.indexOf("%")!==-1}function bB(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ph(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hs(e){return e.length===1?"0"+e:String(e)}function vz(e,n,i){return{r:On(e,255)*255,g:On(n,255)*255,b:On(i,255)*255}}function _B(e,n,i){e=On(e,255),n=On(n,255),i=On(i,255);var a=Math.max(e,n,i),s=Math.min(e,n,i),c=0,p=0,m=(a+s)/2;if(a===s)p=0,c=0;else{var g=a-s;switch(p=m>.5?g/(2-a-s):g/(a+s),a){case e:c=(n-i)/g+(n<i?6:0);break;case n:c=(i-e)/g+2;break;case i:c=(e-n)/g+4;break}c/=6}return{h:c,s:p,l:m}}function Hy(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*(6*i):i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}function bz(e,n,i){var a,s,c;if(e=On(e,360),n=On(n,100),i=On(i,100),n===0)s=i,c=i,a=i;else{var p=i<.5?i*(1+n):i+n-i*n,m=2*i-p;a=Hy(m,p,e+1/3),s=Hy(m,p,e),c=Hy(m,p,e-1/3)}return{r:a*255,g:s*255,b:c*255}}function yB(e,n,i){e=On(e,255),n=On(n,255),i=On(i,255);var a=Math.max(e,n,i),s=Math.min(e,n,i),c=0,p=a,m=a-s,g=a===0?0:m/a;if(a===s)c=0;else{switch(a){case e:c=(n-i)/m+(n<i?6:0);break;case n:c=(i-e)/m+2;break;case i:c=(e-n)/m+4;break}c/=6}return{h:c,s:g,v:p}}function _z(e,n,i){e=On(e,360)*6,n=On(n,100),i=On(i,100);var a=Math.floor(e),s=e-a,c=i*(1-n),p=i*(1-s*n),m=i*(1-(1-s)*n),g=a%6,y=[i,p,c,c,m,i][g],O=[m,i,i,p,c,c][g],E=[c,c,m,i,i,p][g];return{r:y*255,g:O*255,b:E*255}}function xB(e,n,i,a){var s=[hs(Math.round(e).toString(16)),hs(Math.round(n).toString(16)),hs(Math.round(i).toString(16))];return a&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function yz(e,n,i,a,s){var c=[hs(Math.round(e).toString(16)),hs(Math.round(n).toString(16)),hs(Math.round(i).toString(16)),hs(xz(a))];return s&&c[0].startsWith(c[0].charAt(1))&&c[1].startsWith(c[1].charAt(1))&&c[2].startsWith(c[2].charAt(1))&&c[3].startsWith(c[3].charAt(1))?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}function xz(e){return Math.round(parseFloat(e)*255).toString(16)}function wB(e){return ji(e)/255}function ji(e){return parseInt(e,16)}function wz(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Vy={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ez(e){var n={r:0,g:0,b:0},i=1,a=null,s=null,c=null,p=!1,m=!1;return typeof e=="string"&&(e=Sz(e)),typeof e=="object"&&(_a(e.r)&&_a(e.g)&&_a(e.b)?(n=vz(e.r,e.g,e.b),p=!0,m=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_a(e.h)&&_a(e.s)&&_a(e.v)?(a=Ph(e.s),s=Ph(e.v),n=_z(e.h,a,s),p=!0,m="hsv"):_a(e.h)&&_a(e.s)&&_a(e.l)&&(a=Ph(e.s),c=Ph(e.l),n=bz(e.h,a,c),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=bB(i),{ok:p,format:e.format||m,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:i}}var kz="[-\\+]?\\d+%?",Cz="[-\\+]?\\d*\\.\\d+%?",qa="(?:".concat(Cz,")|(?:").concat(kz,")"),Uy="[\\s|\\(]+(".concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")\\s*\\)?"),Yy="[\\s|\\(]+(".concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")\\s*\\)?"),wr={CSS_UNIT:new RegExp(qa),rgb:new RegExp("rgb"+Uy),rgba:new RegExp("rgba"+Yy),hsl:new RegExp("hsl"+Uy),hsla:new RegExp("hsla"+Yy),hsv:new RegExp("hsv"+Uy),hsva:new RegExp("hsva"+Yy),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Sz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Vy[e])e=Vy[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i=wr.rgb.exec(e);return i?{r:i[1],g:i[2],b:i[3]}:(i=wr.rgba.exec(e),i?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=wr.hsl.exec(e),i?{h:i[1],s:i[2],l:i[3]}:(i=wr.hsla.exec(e),i?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=wr.hsv.exec(e),i?{h:i[1],s:i[2],v:i[3]}:(i=wr.hsva.exec(e),i?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=wr.hex8.exec(e),i?{r:ji(i[1]),g:ji(i[2]),b:ji(i[3]),a:wB(i[4]),format:n?"name":"hex8"}:(i=wr.hex6.exec(e),i?{r:ji(i[1]),g:ji(i[2]),b:ji(i[3]),format:n?"name":"hex"}:(i=wr.hex4.exec(e),i?{r:ji(i[1]+i[1]),g:ji(i[2]+i[2]),b:ji(i[3]+i[3]),a:wB(i[4]+i[4]),format:n?"name":"hex8"}:(i=wr.hex3.exec(e),i?{r:ji(i[1]+i[1]),g:ji(i[2]+i[2]),b:ji(i[3]+i[3]),format:n?"name":"hex"}:!1)))))))))}function _a(e){return Boolean(wr.CSS_UNIT.exec(String(e)))}var Dz=function(){function e(n,i){n===void 0&&(n=""),i===void 0&&(i={});var a;if(n instanceof e)return n;typeof n=="number"&&(n=wz(n)),this.originalInput=n;var s=Ez(n);this.originalInput=n,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=i.format)!==null&&a!==void 0?a:s.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),i,a,s,c=n.r/255,p=n.g/255,m=n.b/255;return c<=.03928?i=c/12.92:i=Math.pow((c+.055)/1.055,2.4),p<=.03928?a=p/12.92:a=Math.pow((p+.055)/1.055,2.4),m<=.03928?s=m/12.92:s=Math.pow((m+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=bB(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},e.prototype.toHsv=function(){var n=yB(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=yB(this.r,this.g,this.b),i=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.v*100);return this.a===1?"hsv(".concat(i,", ").concat(a,"%, ").concat(s,"%)"):"hsva(".concat(i,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=_B(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=_B(this.r,this.g,this.b),i=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.l*100);return this.a===1?"hsl(".concat(i,", ").concat(a,"%, ").concat(s,"%)"):"hsla(".concat(i,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),xB(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=!1),yz(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var n=Math.round(this.r),i=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(i,", ").concat(a,")"):"rgba(".concat(n,", ").concat(i,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(i){return"".concat(Math.round(On(i,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(i){return Math.round(On(i,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+xB(this.r,this.g,this.b,!1),i=0,a=Object.entries(Vy);i<a.length;i++){var s=a[i],c=s[0],p=s[1];if(n===p)return c}return!1},e.prototype.toString=function(n){var i=Boolean(n);n=n!=null?n:this.format;var a=!1,s=this.a<1&&this.a>=0,c=!i&&s&&(n.startsWith("hex")||n==="name");return c?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(a=this.toRgbString()),n==="prgb"&&(a=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(a=this.toHexString()),n==="hex3"&&(a=this.toHexString(!0)),n==="hex4"&&(a=this.toHex8String(!0)),n==="hex8"&&(a=this.toHex8String()),n==="name"&&(a=this.toName()),n==="hsl"&&(a=this.toHslString()),n==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.l+=n/100,i.l=Fh(i.l),new e(i)},e.prototype.brighten=function(n){n===void 0&&(n=10);var i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(n/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(n/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(n/100)))),new e(i)},e.prototype.darken=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.l-=n/100,i.l=Fh(i.l),new e(i)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.s-=n/100,i.s=Fh(i.s),new e(i)},e.prototype.saturate=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.s+=n/100,i.s=Fh(i.s),new e(i)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var i=this.toHsl(),a=(i.h+n)%360;return i.h=a<0?360+a:a,new e(i)},e.prototype.mix=function(n,i){i===void 0&&(i=50);var a=this.toRgb(),s=new e(n).toRgb(),c=i/100,p={r:(s.r-a.r)*c+a.r,g:(s.g-a.g)*c+a.g,b:(s.b-a.b)*c+a.b,a:(s.a-a.a)*c+a.a};return new e(p)},e.prototype.analogous=function(n,i){n===void 0&&(n=6),i===void 0&&(i=30);var a=this.toHsl(),s=360/i,c=[this];for(a.h=(a.h-(s*n>>1)+720)%360;--n;)a.h=(a.h+s)%360,c.push(new e(a));return c},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var i=this.toHsv(),a=i.h,s=i.s,c=i.v,p=[],m=1/n;n--;)p.push(new e({h:a,s,v:c})),c=(c+m)%1;return p},e.prototype.splitcomplement=function(){var n=this.toHsl(),i=n.h;return[this,new e({h:(i+72)%360,s:n.s,l:n.l}),new e({h:(i+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var i=this.toRgb(),a=new e(n).toRgb(),s=i.a+a.a*(1-i.a);return new e({r:(i.r*i.a+a.r*a.a*(1-i.a))/s,g:(i.g*i.a+a.g*a.a*(1-i.a))/s,b:(i.b*i.a+a.b*a.a*(1-i.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var i=this.toHsl(),a=i.h,s=[this],c=360/n,p=1;p<n;p++)s.push(new e({h:(a+p*c)%360,s:i.s,l:i.l}));return s},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e}();function eo(e,n=20){return e.mix("#141414",n).toString()}function Iz(e){const n=Py(),i=Yr("button");return x.computed(()=>{let a={};const s=e.color;if(s){const c=new Dz(s),p=e.dark?c.tint(20).toString():eo(c,20);if(e.plain)a=i.cssVarBlock({"bg-color":e.dark?eo(c,90):c.tint(90).toString(),"text-color":s,"border-color":e.dark?eo(c,50):c.tint(50).toString(),"hover-text-color":`var(${i.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":p,"active-text-color":`var(${i.cssVarName("color-white")})`,"active-border-color":p}),n.value&&(a[i.cssVarBlockName("disabled-bg-color")]=e.dark?eo(c,90):c.tint(90).toString(),a[i.cssVarBlockName("disabled-text-color")]=e.dark?eo(c,50):c.tint(50).toString(),a[i.cssVarBlockName("disabled-border-color")]=e.dark?eo(c,80):c.tint(80).toString());else{const m=e.dark?eo(c,30):c.tint(30).toString(),g=c.isDark()?`var(${i.cssVarName("color-white")})`:`var(${i.cssVarName("color-black")})`;if(a=i.cssVarBlock({"bg-color":s,"text-color":g,"border-color":s,"hover-bg-color":m,"hover-text-color":g,"hover-border-color":m,"active-bg-color":p,"active-border-color":p}),n.value){const y=e.dark?eo(c,50):c.tint(50).toString();a[i.cssVarBlockName("disabled-bg-color")]=y,a[i.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${i.cssVarName("color-white")})`,a[i.cssVarBlockName("disabled-border-color")]=y}}}return a})}const Bz=x.defineComponent({name:"ElButton"}),Oz=x.defineComponent({...Bz,props:zy,emits:mz,setup(e,{expose:n,emit:i}){const a=e,s=Iz(a),c=Yr("button"),{_ref:p,_size:m,_type:g,_disabled:y,_props:O,shouldAddSpace:E,handleClick:N}=hz(a,i);return n({ref:p,size:m,type:g,disabled:y,shouldAddSpace:E}),(_,S)=>(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.tag),x.mergeProps({ref_key:"_ref",ref:p},x.unref(O),{class:[x.unref(c).b(),x.unref(c).m(x.unref(g)),x.unref(c).m(x.unref(m)),x.unref(c).is("disabled",x.unref(y)),x.unref(c).is("loading",_.loading),x.unref(c).is("plain",_.plain),x.unref(c).is("round",_.round),x.unref(c).is("circle",_.circle),x.unref(c).is("text",_.text),x.unref(c).is("link",_.link),x.unref(c).is("has-bg",_.bg)],style:x.unref(s),onClick:x.unref(N)}),{default:x.withCtx(()=>[_.loading?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[_.$slots.loading?x.renderSlot(_.$slots,"loading",{key:0}):(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass(x.unref(c).is("loading"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.loadingIcon)))]),_:1},8,["class"]))],64)):_.icon||_.$slots.icon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1},{default:x.withCtx(()=>[_.icon?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.icon),{key:0})):x.renderSlot(_.$slots,"icon",{key:1})]),_:3})):x.createCommentVNode("v-if",!0),_.$slots.default?(x.openBlock(),x.createElementBlock("span",{key:2,class:x.normalizeClass({[x.unref(c).em("text","expand")]:x.unref(E)})},[x.renderSlot(_.$slots,"default")],2)):x.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Tz=Za(Oz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Nz={size:zy.size,type:zy.type},Mz=x.defineComponent({name:"ElButtonGroup"}),Fz=x.defineComponent({...Mz,props:Nz,setup(e){const n=e;x.provide(vB,x.reactive({size:x.toRef(n,"size"),type:x.toRef(n,"type")}));const i=Yr("button");return(a,s)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(`${x.unref(i).b("group")}`)},[x.renderSlot(a.$slots,"default")],2))}});var EB=Za(Fz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Pz=Eh(Tz,{ButtonGroup:EB});qL(EB);const Wy="_trap-focus-children",ms=[],kB=e=>{var n;if(ms.length===0)return;const i=ms[ms.length-1][Wy];if(i.length>0&&e.code===kh.tab){if(i.length===1){e.preventDefault(),document.activeElement!==i[0]&&i[0].focus();return}const a=e.shiftKey,s=e.target===i[0],c=e.target===i[i.length-1];if(s&&a&&(e.preventDefault(),i[i.length-1].focus()),c&&!a&&(e.preventDefault(),i[0].focus()),process.env.NODE_ENV==="test"){const p=i.indexOf(e.target);p!==-1&&((n=i[a?p-1:p+1])==null||n.focus())}}},Rz={beforeMount(e){e[Wy]=nI(e),ms.push(e),ms.length<=1&&document.addEventListener("keydown",kB)},updated(e){x.nextTick(()=>{e[Wy]=nI(e)})},unmounted(){ms.shift(),ms.length===0&&document.removeEventListener("keydown",kB)}},jz=fs({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:mi([String,Array,Object])},zIndex:{type:mi([String,Number])}}),Lz={click:e=>e instanceof MouseEvent},Qz="overlay";var zz=x.defineComponent({name:"ElOverlay",props:jz,emits:Lz,setup(e,{slots:n,emit:i}){const a=Yr(Qz),s=g=>{i("click",g)},{onClick:c,onMousedown:p,onMouseup:m}=ZI(e.customMaskEvent?void 0:s);return()=>e.mask?x.createVNode("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:c,onMousedown:p,onMouseup:m},[x.renderSlot(n,"default")],Ch.STYLE|Ch.CLASS|Ch.PROPS,["onClick","onMouseup","onMousedown"]):x.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[x.renderSlot(n,"default")])}});const Hz=zz,CB=["success","info","warning","error"],gi=jI({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:hi?document.body:void 0}),Vz=fs({customClass:{type:String,default:gi.customClass},center:{type:Boolean,default:gi.center},dangerouslyUseHTMLString:{type:Boolean,default:gi.dangerouslyUseHTMLString},duration:{type:Number,default:gi.duration},icon:{type:fd,default:gi.icon},id:{type:String,default:gi.id},message:{type:mi([String,Object,Function]),default:gi.message},onClose:{type:mi(Function),required:!1},showClose:{type:Boolean,default:gi.showClose},type:{type:String,values:CB,default:gi.type},offset:{type:Number,default:gi.offset},zIndex:{type:Number,default:gi.zIndex},grouping:{type:Boolean,default:gi.grouping},repeatNum:{type:Number,default:gi.repeatNum}}),Uz={destroy:()=>!0},Er=x.shallowReactive([]),Yz=e=>{const n=Er.findIndex(s=>s.id===e),i=Er[n];let a;return n>0&&(a=Er[n-1]),{current:i,prev:a}},Wz=e=>{const{prev:n}=Yz(e);return n?n.vm.exposed.bottom.value:0},Gz=(e,n)=>Er.findIndex(a=>a.id===e)>0?20:n,Jz=["id"],Kz=["innerHTML"],Xz=x.defineComponent({name:"ElMessage"}),Zz=x.defineComponent({...Xz,props:Vz,emits:Uz,setup(e,{expose:n}){const i=e,{Close:a}=PI,{ns:s,zIndex:c}=rB("message"),{currentZIndex:p,nextZIndex:m}=c,g=x.ref(),y=x.ref(!1),O=x.ref(0);let E;const N=x.computed(()=>i.type?i.type==="error"?"danger":i.type:"info"),_=x.computed(()=>{const F=i.type;return{[s.bm("icon",F)]:F&&wh[F]}}),S=x.computed(()=>i.icon||wh[i.type]||""),M=x.computed(()=>Wz(i.id)),P=x.computed(()=>Gz(i.id,i.offset)+M.value),T=x.computed(()=>O.value+P.value),R=x.computed(()=>({top:`${P.value}px`,zIndex:p.value}));function b(){i.duration!==0&&({stop:E}=Q6(()=>{B()},i.duration))}function w(){E==null||E()}function B(){y.value=!1}function z({code:F}){F===kh.esc&&B()}return x.onMounted(()=>{b(),m(),y.value=!0}),x.watch(()=>i.repeatNum,()=>{w(),b()}),oI(document,"keydown",z),lI(g,()=>{O.value=g.value.getBoundingClientRect().height}),n({visible:y,bottom:T,close:B}),(F,H)=>(x.openBlock(),x.createBlock(x.Transition,{name:x.unref(s).b("fade"),onBeforeLeave:F.onClose,onAfterLeave:H[0]||(H[0]=ee=>F.$emit("destroy")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("div",{id:F.id,ref_key:"messageRef",ref:g,class:x.normalizeClass([x.unref(s).b(),{[x.unref(s).m(F.type)]:F.type&&!F.icon},x.unref(s).is("center",F.center),x.unref(s).is("closable",F.showClose),F.customClass]),style:x.normalizeStyle(x.unref(R)),role:"alert",onMouseenter:w,onMouseleave:b},[F.repeatNum>1?(x.openBlock(),x.createBlock(x.unref(pz),{key:0,value:F.repeatNum,type:x.unref(N),class:x.normalizeClass(x.unref(s).e("badge"))},null,8,["value","type","class"])):x.createCommentVNode("v-if",!0),x.unref(S)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass([x.unref(s).e("icon"),x.unref(_)])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(S))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.renderSlot(F.$slots,"default",{},()=>[F.dangerouslyUseHTMLString?(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[x.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),x.createElementVNode("p",{class:x.normalizeClass(x.unref(s).e("content")),innerHTML:F.message},null,10,Kz)],2112)):(x.openBlock(),x.createElementBlock("p",{key:0,class:x.normalizeClass(x.unref(s).e("content"))},x.toDisplayString(F.message),3))]),F.showClose?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass(x.unref(s).e("closeBtn")),onClick:x.withModifiers(B,["stop"])},{default:x.withCtx(()=>[x.createVNode(x.unref(a))]),_:1},8,["class","onClick"])):x.createCommentVNode("v-if",!0)],46,Jz),[[x.vShow,y.value]])]),_:3},8,["name","onBeforeLeave"]))}});var $z=Za(Zz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let qz=1;const SB=e=>{const n=!e||yr(e)||x.isVNode(e)||ls(e)?{message:e}:e,i={...gi,...n};if(!i.appendTo)i.appendTo=document.body;else if(yr(i.appendTo)){let a=document.querySelector(i.appendTo);Cy(a)||(Ur("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),i.appendTo=a}return i},e8=e=>{const n=Er.indexOf(e);if(n===-1)return;Er.splice(n,1);const{handler:i}=e;i.close()},t8=({appendTo:e,...n},i)=>{const a=`message_${qz++}`,s=n.onClose,c=document.createElement("div"),p={...n,id:a,onClose:()=>{s==null||s(),e8(O)},onDestroy:()=>{x.render(null,c)}},m=x.createVNode($z,p,ls(p.message)||x.isVNode(p.message)?{default:ls(p.message)?p.message:()=>p.message}:null);m.appContext=i||Kl._context,x.render(m,c),e.appendChild(c.firstElementChild);const g=m.component,O={id:a,vnode:m,vm:g,handler:{close:()=>{g.exposed.visible.value=!1}},props:m.component.props};return O},Kl=(e={},n)=>{if(!hi)return{close:()=>{}};if(ds(My.max)&&Er.length>=My.max)return{close:()=>{}};const i=SB(e);if(i.grouping&&Er.length){const s=Er.find(({vnode:c})=>{var p;return((p=c.props)==null?void 0:p.message)===i.message});if(s)return s.props.repeatNum+=1,s.props.type=i.type,s.handler}const a=t8(i,n);return Er.push(a),a.handler};CB.forEach(e=>{Kl[e]=(n={},i)=>{const a=SB(n);return Kl({...a,type:e},i)}});function n8(e){for(const n of Er)(!e||e===n.props.type)&&n.handler.close()}Kl.closeAll=n8,Kl._context=null;const hd=$L(Kl,"$message"),i8=x.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Rz},components:{ElButton:Pz,ElFocusTrap:sz,ElInput:JQ,ElOverlay:Hz,ElIcon:Wr,...PI},inheritAttrs:!1,props:{buttonSize:{type:String,validator:eQ},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:n}){const{locale:i,zIndex:a,ns:s,size:c}=rB("message-box",x.computed(()=>e.buttonSize)),{t:p}=i,{nextZIndex:m}=a,g=x.ref(!1),y=x.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:m()}),O=x.computed(()=>{const ye=y.type;return{[s.bm("icon",ye)]:ye&&wh[ye]}}),E=Oy(),N=Oy(),_=x.computed(()=>y.icon||wh[y.type]||""),S=x.computed(()=>!!y.message),M=x.ref(),P=x.ref(),T=x.ref(),R=x.ref(),b=x.ref(),w=x.computed(()=>y.confirmButtonClass);x.watch(()=>y.inputValue,async ye=>{await x.nextTick(),e.boxType==="prompt"&&ye!==null&&se()},{immediate:!0}),x.watch(()=>g.value,ye=>{var _e,W;ye&&(e.boxType!=="prompt"&&(y.autofocus?T.value=(W=(_e=b.value)==null?void 0:_e.$el)!=null?W:M.value:T.value=M.value),y.zIndex=m()),e.boxType==="prompt"&&(ye?x.nextTick().then(()=>{var J;R.value&&R.value.$el&&(y.autofocus?T.value=(J=me())!=null?J:M.value:T.value=M.value)}):(y.editorErrorMessage="",y.validateError=!1))});const B=x.computed(()=>e.draggable);oQ(M,P,B),x.onMounted(async()=>{await x.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",z)}),x.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",z)});function z(){!g.value||(g.value=!1,x.nextTick(()=>{y.action&&n("action",y.action)}))}const F=()=>{e.closeOnClickModal&&ne(y.distinguishCancelAndClose?"close":"cancel")},H=ZI(F),ee=ye=>{if(y.inputType!=="textarea")return ye.preventDefault(),ne("confirm")},ne=ye=>{var _e;e.boxType==="prompt"&&ye==="confirm"&&!se()||(y.action=ye,y.beforeClose?(_e=y.beforeClose)==null||_e.call(y,ye,y,z):z())},se=()=>{if(e.boxType==="prompt"){const ye=y.inputPattern;if(ye&&!ye.test(y.inputValue||""))return y.editorErrorMessage=y.inputErrorMessage||p("el.messagebox.error"),y.validateError=!0,!1;const _e=y.inputValidator;if(typeof _e=="function"){const W=_e(y.inputValue);if(W===!1)return y.editorErrorMessage=y.inputErrorMessage||p("el.messagebox.error"),y.validateError=!0,!1;if(typeof W=="string")return y.editorErrorMessage=W,y.validateError=!0,!1}}return y.editorErrorMessage="",y.validateError=!1,!0},me=()=>{const ye=R.value.$refs;return ye.input||ye.textarea},pe=()=>{ne("close")},Se=()=>{e.closeOnPressEscape&&pe()};return e.lockScroll&&xQ(g),{...x.toRefs(y),ns:s,overlayEvent:H,visible:g,hasMessage:S,typeClass:O,contentId:E,inputId:N,btnSize:c,iconComponent:_,confirmButtonClasses:w,rootRef:M,focusStartRef:T,headerRef:P,inputRef:R,confirmRef:b,doClose:z,handleClose:pe,onCloseRequested:Se,handleWrapperClick:F,handleInputEnter:ee,handleAction:ne,t:p}}}),r8=["aria-label","aria-describedby"],a8=["aria-label"],o8=["id"];function s8(e,n,i,a,s,c){const p=x.resolveComponent("el-icon"),m=x.resolveComponent("close"),g=x.resolveComponent("el-input"),y=x.resolveComponent("el-button"),O=x.resolveComponent("el-focus-trap"),E=x.resolveComponent("el-overlay");return x.openBlock(),x.createBlock(x.Transition,{name:"fade-in-linear",onAfterLeave:n[11]||(n[11]=N=>e.$emit("vanish")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createVNode(E,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:x.withCtx(()=>[x.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:x.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:n[8]||(n[8]=(...N)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...N)),onMousedown:n[9]||(n[9]=(...N)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...N)),onMouseup:n[10]||(n[10]=(...N)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...N))},[x.createVNode(O,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:x.withCtx(()=>[x.createElementVNode("div",{ref:"rootRef",class:x.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:x.normalizeStyle(e.customStyle),tabindex:"-1",onClick:n[7]||(n[7]=x.withModifiers(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(x.openBlock(),x.createElementBlock("div",{key:0,ref:"headerRef",class:x.normalizeClass(e.ns.e("header"))},[x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(x.openBlock(),x.createBlock(p,{key:0,class:x.normalizeClass([e.ns.e("status"),e.typeClass])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.createElementVNode("span",null,x.toDisplayString(e.title),1)],2),e.showClose?(x.openBlock(),x.createElementBlock("button",{key:0,type:"button",class:x.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:n[0]||(n[0]=N=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:n[1]||(n[1]=x.withKeys(x.withModifiers(N=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[x.createVNode(p,{class:x.normalizeClass(e.ns.e("close"))},{default:x.withCtx(()=>[x.createVNode(m)]),_:1},8,["class"])],42,a8)):x.createCommentVNode("v-if",!0)],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{id:e.contentId,class:x.normalizeClass(e.ns.e("content"))},[x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(x.openBlock(),x.createBlock(p,{key:0,class:x.normalizeClass([e.ns.e("status"),e.typeClass])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),e.hasMessage?(x.openBlock(),x.createElementBlock("div",{key:1,class:x.normalizeClass(e.ns.e("message"))},[x.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):x.createCommentVNode("v-if",!0)],2),x.withDirectives(x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("input"))},[x.createVNode(g,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":n[2]||(n[2]=N=>e.inputValue=N),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:x.normalizeClass({invalid:e.validateError}),onKeydown:x.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("errormsg")),style:x.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},x.toDisplayString(e.editorErrorMessage),7)],2),[[x.vShow,e.showInput]])],10,o8),x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(x.openBlock(),x.createBlock(y,{key:0,loading:e.cancelButtonLoading,class:x.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:n[3]||(n[3]=N=>e.handleAction("cancel")),onKeydown:n[4]||(n[4]=x.withKeys(x.withModifiers(N=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):x.createCommentVNode("v-if",!0),x.withDirectives(x.createVNode(y,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:x.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:n[5]||(n[5]=N=>e.handleAction("confirm")),onKeydown:n[6]||(n[6]=x.withKeys(x.withModifiers(N=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[x.vShow,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,r8)]),_:3},8,["z-index","overlay-class","mask"]),[[x.vShow,e.visible]])]),_:3})}var l8=Za(i8,[["render",s8],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const md=new Map,c8=e=>{let n=document.body;return e.appendTo&&(yr(e.appendTo)&&(n=document.querySelector(e.appendTo)),Cy(e.appendTo)&&(n=e.appendTo),Cy(n)||(Ur("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body)),n},u8=(e,n,i=null)=>{const a=x.createVNode(l8,e,ls(e.message)||x.isVNode(e.message)?{default:ls(e.message)?e.message:()=>e.message}:null);return a.appContext=i,x.render(a,n),c8(e).appendChild(n.firstElementChild),a.component},d8=()=>document.createElement("div"),f8=(e,n)=>{const i=d8();e.onVanish=()=>{x.render(null,i),md.delete(s)},e.onAction=c=>{const p=md.get(s);let m;e.showInput?m={value:s.inputValue,action:c}:m=c,e.callback?e.callback(m,a.proxy):c==="cancel"||c==="close"?e.distinguishCancelAndClose&&c!=="cancel"?p.reject("close"):p.reject("cancel"):p.resolve(m)};const a=u8(e,i,n),s=a.proxy;for(const c in e)bh(e,c)&&!bh(s.$props,c)&&(s[c]=e[c]);return s.visible=!0,s};function Xl(e,n=null){if(!hi)return Promise.reject();let i;return yr(e)||x.isVNode(e)?e={message:e}:i=e.callback,new Promise((a,s)=>{const c=f8(e,n!=null?n:Xl._context);md.set(c,{options:e,callback:i,resolve:a,reject:s})})}const p8=["alert","confirm","prompt"],h8={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};p8.forEach(e=>{Xl[e]=m8(e)});function m8(e){return(n,i,a,s)=>{let c="";return cd(i)?(a=i,c=""):wI(i)?c="":c=i,Xl(Object.assign({title:c,message:n,type:"",...h8[e]},a,{boxType:e}),s)}}Xl.close=()=>{md.forEach((e,n)=>{n.doClose()}),md.clear()},Xl._context=null;const to=Xl;to.install=e=>{to._context=e._context,e.config.globalProperties.$msgbox=to,e.config.globalProperties.$messageBox=to,e.config.globalProperties.$alert=to.alert,e.config.globalProperties.$confirm=to.confirm,e.config.globalProperties.$prompt=to.prompt};const DB=to;var g8=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"foot-item",style:{}},[e.process.status=="todo"?[e.getButton("wf_pass")?i("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!0,e.getButton("wf_pass").name)}}},[i("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?i("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!1,e.getButton("wf_reject").name)}}},[i("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.userId==e.process.variables.applyUserId?i("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("reminders")}}},[i("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?i("el-button",{attrs:{type:"primary",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"transfer",checkType:"radio",name:e.getButton("wf_transfer").name})}}},[e._v(e._s(e.getButton("wf_transfer").name))]):e._e(),e.getButton("wf_delegate")?i("el-button",{attrs:{type:"warning",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"delegate",checkType:"radio",name:e.getButton("wf_delegate").name})}}},[e._v(" "+e._s(e.getButton("wf_delegate").name)+" ")]):e._e(),e.getButton("wf_rollback")?i("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("rollback",e.getButton("wf_rollback").name)}}},[e._v(" "+e._s(e.getButton("wf_rollback").name)+" ")]):e._e(),e.getButton("wf_terminate")?i("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("terminate")}}},[e._v(" "+e._s(e.getButton("wf_terminate").name)+" ")]):e._e(),e.process.isMultiInstance&&e.getButton("wf_add_instance")?i("el-button",{attrs:{type:"primary",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:e.getButton("wf_add_instance").name})}}},[e._v(" "+e._s(e.getButton("wf_add_instance").name)+" ")]):e._e(),e.getButton("wf_cctask")?i("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[i("span",[e._v(e._s(e.getButton("wf_cctask").name))])]):e._e()]:e._e(),e.process.isOwner&&e.process.isReturnable&&!["deleted"].includes(e.process.processIsFinished)?i("el-button",{attrs:{type:"warning",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("withdraw","\u64A4\u9500")}}},[e._v(" \u64A4\u9500 ")]):e._e(),e.getButton("wf_print")?i("el-button",{attrs:{type:"info",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("print")}}},[e._v(" "+e._s(e.getButton("wf_print").name)+" ")]):e._e()],2)],1)},A8=[];const MZ="",v8={name:"nf-button",props:{userId:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:Object,comment:String},data(){return{isCollapse:!0,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{"process.taskId":{handler(e){e&&Xe.repository.backNodes({taskId:e}).then(n=>{const i=n.data;this.backNodes=i})},immediate:!0}},methods:{getButton(e){return this.buttonList.find(n=>n.buttonKey==e)}}},IB={};var b8=qt(v8,g8,A8,!1,_8,"1d36c4be",null,null);function _8(e){for(let n in IB)this[n]=IB[n]}const y8=function(){return b8.exports}(),x8=e=>{var n=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[n.call(e)]},Gy=e=>{var n=x8(e),i;if(n==="array")i=[];else if(n==="object")i={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)i.push(Gy(e[a]));else if(n==="object")for(var c in e)i[c]=Gy(e[c]);return i};function BB(e,n="YYYY-MM-DD HH:mm:ss"){return ld(e).format(n)}function w8(e){e=Gy(e);const n={};e.forEach(a=>{n[a.historyActivityId]?n[a.historyActivityId].push(a):n[a.historyActivityId]=[a]});for(let a in n){const s=n[a];if(s.length>1){const c=e.findLast(p=>p.historyActivityId==a);c.assigneeName=Array.from(new Set(s.map(p=>p.assigneeName))).join("/")}}const i=[];return e.forEach(a=>{let{assigneeName:s,createTime:c,endTime:p,comments:m}=a;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(c=c.replace(/-/g,"/"),p=p.replace(/-/g,"/"));const g={id:a.historyActivityId,class:!p&&a.historyActivityType!="candidate"?"nodePrimary":""};let y="";if(s||m&&m.length>0){if(y=`<span title='${s}'>${s}</span><br>`,c&&(y+=`<span title='${c}'>${BB(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let E,{type:N,fullMessage:_}=m.find(S=>S.action=="AddComment")||{};N=="assigneeComment"&&(E="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(E="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(E="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(E="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(E="\u6307\u5B9A\u56DE\u9000\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(E="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),(N=="addMultiInstanceComment"||(N||"").includes("\u52A0\u7B7E"))&&(E="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(E="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(E="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(E="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(E="\u62D2\u7EDD\uFF1A"+_,g.class="nodeError"),N=="comment"&&(E="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),E&&(y+=`<span title='${E}'>${E}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=i.findIndex(E=>E.id==a.historyActivityId);O!=-1?i.splice(O,1,g):i.push(g)}),i}function Jy(e){const n=[],i=[],a=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(s=>{s.type==="user"?n.push(...s.ids.filter(c=>c&&c.trim()!=="")):s.type==="post"?i.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(i)],deptIds:[...new Set(a)]}}function Ky(e){const n=[];return e.forEach(i=>{let{assigneeName:a,createTime:s,endTime:c,comments:p}=i;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(s=s.replace(/-/g,"/"),c=c.replace(/-/g,"/"));const m={id:i.historyActivityId,class:!c&&i.historyActivityType!="candidate"?"nodePrimary":""};let g="";if(a||p&&p.length>0){if(g=`<span title='${a}'>${a}</span><br>`,s&&(g+=`<span title='${s}'>${BB(s,"YYYY-MM-DD HH:mm")}</span><br>`),p&&p.length>0){let O,{type:E,fullMessage:N}=p.find(_=>_.action=="AddComment")||{};E=="assigneeComment"&&(O="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+N,m.class="nodeWarn"),E=="dispatchComment"&&(O="\u8C03\u5EA6\uFF1A"+N,m.class="nodeWarn"),E=="transferComment"&&(O="\u8F6C\u529E\uFF1A"+N,m.class="nodeWarn"),E=="delegateComment"&&(O="\u59D4\u6258\uFF1A"+N,m.class="nodeWarn"),E=="rollbackComment"&&(O="\u6307\u5B9A\u56DE\u9000\uFF1A"+N,m.class="nodeError"),E=="terminateComment"&&(O="\u7EC8\u6B62\uFF1A"+N,m.class="nodeError"),(E=="addMultiInstanceComment"||(E||"").includes("\u52A0\u7B7E"))&&(O="\u52A0\u7B7E\uFF1A"+N,m.class="nodeWarn"),E=="deleteMultiInstanceComment"&&(O="\u51CF\u7B7E\uFF1A"+N,m.class="nodeError"),E=="withdrawComment"&&(O="\u64A4\u9500\uFF1A"+N,m.class="nodeWarn"),E=="deleteProcessComment"&&(O="\u5220\u9664\u6D41\u7A0B\uFF1A"+N,m.class="nodeError"),E=="cancelProcessComment"&&(O="\u62D2\u7EDD\uFF1A"+N,m.class="nodeError"),E=="comment"&&(O="\u5BA1\u6279\uFF1A"+N,m.class="nodeSuccess"),O&&(g+=`<span title='${O}'>${O}</span>`)}m.tooltip=g}i.historyActivityType=="sequenceFlow"?m.class="lineWarn":!m.class&&i.historyActivityType!="candidate"&&(m.class="nodeSuccess");const y=n.findIndex(O=>O.id==i.historyActivityId);y!=-1?n.splice(y,1,m):n.push({...i,...m})}),n}var E8=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-row",{attrs:{type:"flex"}},[i("el-timeline",[e._l(e.getColors(e.flowList),function(a,s){return[["candidate","sequenceFlow"].includes(a.historyActivityType)?e._e():i("el-timeline-item",{key:a.id,attrs:{timestamp:a.endTime||a.createTime,placement:"top"}},[i("el-card",{class:a.endTime?"":"cur-process"},[i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?a.comments[a.comments.length-1].userId:"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),i("span",{staticClass:"flow-node"},[e._v(e._s(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),a.historyActivityDurationTime?i("p",{staticClass:"flow-time"},[e._v(" \u4EFB\u52A1\u5386\u65F6 "+e._s(a.historyActivityDurationTime)+" ")]):e._e(),a.comments&&a.comments.length>0?[e._l(a.comments.filter(function(c){return c.action==="AddComment"}),function(c,p){return i("p",{key:p},[p<1?[i("span",{class:["comment-type",a.class]},[e._v(e._s(e.commentMap[c.type]||c.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),i("span",[e._v(" "+e._s(c.fullMessage)+" ")]),a.comments.filter(function(m){return m.action==="AddComment"}).length>1?i("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),i("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),i("el-icon",[e.isFlag?i("el-icon-arrow-up"):i("el-icon-arrow-down")],1)],1):e._e(),c.time&&e.isFlag?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e(),p>0&&e.isFlag?[i("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[c.type]||c.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),i("span",[e._v(" "+e._s(c.fullMessage)+" ")]),c.time?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e()],2)}),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u7B7E\u5B57: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",refInFor:!0,attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:a.attachmentsQianzi,callback:function(c){e.$set(a,"attachmentsQianzi",c)},expression:"item.attachmentsQianzi"}})],1)])]:e._e(),a.attachmentsFujian&&a.attachmentsFujian.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u9644\u4EF6: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",refInFor:!0,attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:a.attachmentsFujian,callback:function(c){e.$set(a,"attachmentsFujian",c)},expression:"item.attachmentsFujian"}})],1)])]:e._e()]:e._e(),a.endTime?i("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(a.endTime))]):e._e()],2)],1)]})],2)],1)},k8=[];const FZ="",C8={name:"nf-flow",props:{flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ky,isFlag:!1,toggleText:"\u5C55\u5F00",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",skipComment:"\u8DF3\u8FC7",cancelProcessComment:"\u62D2\u7EDD",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},OB={};var S8=qt(C8,E8,k8,!1,D8,"d478ca20",null,null);function D8(e){for(let n in OB)this[n]=OB[n]}const I8=function(){return S8.exports}();function Gr(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const gd=Object.prototype.toString,B8=Object.prototype.hasOwnProperty;function Xy(e){return e===void 0}function Zl(e){return e!==void 0}function TB(e){return e==null}function kr(e){return gd.call(e)==="[object Array]"}function gs(e){return gd.call(e)==="[object Object]"}function no(e){return gd.call(e)==="[object Number]"}function As(e){const n=gd.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"||n==="[object Proxy]"}function Cr(e){return gd.call(e)==="[object String]"}function $l(e,n){return!TB(e)&&B8.call(e,n)}function Sr(e,n){const i=Zy(n);let a;return We(e,function(s,c){if(i(s,c))return a=s,!1}),a}function O8(e,n){const i=Zy(n);let a=kr(e)?-1:void 0;return We(e,function(s,c){if(i(s,c))return a=c,!1}),a}function ql(e,n){const i=Zy(n);let a=[];return We(e,function(s,c){i(s,c)&&a.push(s)}),a}function We(e,n){let i,a;if(Xy(e))return;const s=kr(e)?M8:N8;for(let c in e)if($l(e,c)&&(i=e[c],a=n(i,s(c)),a===!1))return i}function ec(e,n,i){return We(e,function(a,s){i=n(i,a,s)}),i}function NB(e,n){return!!ec(e,function(i,a,s){return i&&n(a,s)},!0)}function MB(e,n){return!!Sr(e,n)}function T8(e,n){let i=[];return We(e,function(a,s){i.push(n(a,s))}),i}function FB(e){return function(n){return NB(e,function(i,a){return n[a]===i})}}function Zy(e){return As(e)?e:n=>n===e}function N8(e){return e}function M8(e){return Number(e)}function F8(e,n){let i,a,s,c;function p(E){let N=Date.now(),_=E?0:c+n-N;if(_>0)return m(_);e.apply(s,a),g()}function m(E){i=setTimeout(p,E)}function g(){i&&clearTimeout(i),i=c=a=s=void 0}function y(){i&&p(!0),g()}function O(...E){c=Date.now(),a=E,s=this,i||m(n)}return O.flush=y,O.cancel=g,O}function io(e,n){return e.bind(n)}function Je(e,...n){return Object.assign(e,...n)}function P8(e,n,i){let a=e;return We(n,function(s,c){if(typeof s!="number"&&typeof s!="string")throw new Error("illegal key type: "+typeof s+". Key should be of type number or string.");if(s==="constructor")throw new Error("illegal key: constructor");if(s==="__proto__")throw new Error("illegal key: __proto__");let p=n[c+1],m=a[s];Zl(p)&&TB(m)&&(m=a[s]=isNaN(+p)?{}:[]),Xy(p)?Xy(i)?delete a[s]:a[s]=i:a=m}),e}function R8(e,n){let i={},a=Object(e);return We(n,function(s){s in a&&(i[s]=e[s])}),i}function j8(e,n){let i={},a=Object(e);return We(a,function(s,c){n.indexOf(c)===-1&&(i[c]=s)}),i}var L8=1e3;function ya(e,n){var i=this;n=n||L8,e.on(["render.shape","render.connection"],n,function(a,s){var c=a.type,p=s.element,m=s.gfx,g=s.attrs;if(i.canRender(p))return c==="render.shape"?i.drawShape(m,p,g):i.drawConnection(m,p,g)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(a,s){if(i.canRender(s))return a.type==="render.getShapePath"?i.getShapePath(s):i.getConnectionPath(s)})}ya.prototype.canRender=function(e){},ya.prototype.drawShape=function(e,n){},ya.prototype.drawConnection=function(e,n){},ya.prototype.getShapePath=function(e){},ya.prototype.getConnectionPath=function(e){};function Ge(e,n){var i=Ut(e);return i&&typeof i.$instanceOf=="function"&&i.$instanceOf(n)}function Q8(e,n){return MB(n,function(i){return Ge(e,i)})}function Ut(e){return e&&e.businessObject||e}function vs(e){return e&&e.di}function bs(e,n){return Ge(e,"bpmn:CallActivity")?!1:Ge(e,"bpmn:SubProcess")?(n=n||vs(e),n&&Ge(n,"bpmndi:BPMNPlane")?!0:n&&!!n.isExpanded):Ge(e,"bpmn:Participant")?!!Ut(e).processRef:!0}function PB(e){if(!(!Ge(e,"bpmn:Participant")&&!Ge(e,"bpmn:Lane"))){var n=vs(e).isHorizontal;return n===void 0?!0:n}}function z8(e){return e&&!!Ut(e).triggeredByEvent}function H8(e){return gs(e)&&$l(e,"waypoints")}var Rh={width:90,height:20},RB=15;function V8(e){return Ge(e,"bpmn:Event")||Ge(e,"bpmn:Gateway")||Ge(e,"bpmn:DataStoreReference")||Ge(e,"bpmn:DataObjectReference")||Ge(e,"bpmn:DataInput")||Ge(e,"bpmn:DataOutput")||Ge(e,"bpmn:SequenceFlow")||Ge(e,"bpmn:MessageFlow")||Ge(e,"bpmn:Group")}function U8(e){var n=e.length/2-1,i=e[Math.floor(n)],a=e[Math.ceil(n+.01)],s=Y8(e),c=Math.atan((a.y-i.y)/(a.x-i.x)),p=s.x,m=s.y;return Math.abs(c)<Math.PI/2?m-=RB:p+=RB,{x:p,y:m}}function Y8(e){var n=e.length/2-1,i=e[Math.floor(n)],a=e[Math.ceil(n+.01)];return{x:i.x+(a.x-i.x)/2,y:i.y+(a.y-i.y)/2}}function W8(e){return e.waypoints?U8(e.waypoints):Ge(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+Rh.height/2}:{x:e.x+e.width/2,y:e.y+e.height+Rh.height/2}}function G8(e,n){var i,a,s,c=e.label;return c&&c.bounds?(s=c.bounds,a={width:Math.max(Rh.width,s.width),height:s.height},i={x:s.x+s.width/2,y:s.y+s.height/2}):(i=W8(n),a=Rh),Je({x:i.x-a.width/2,y:i.y-a.height/2},a)}function J8(e){if(Ge(e,"bpmn:FlowElement")||Ge(e,"bpmn:Participant")||Ge(e,"bpmn:Lane")||Ge(e,"bpmn:SequenceFlow")||Ge(e,"bpmn:MessageFlow")||Ge(e,"bpmn:DataInput")||Ge(e,"bpmn:DataOutput"))return"name";if(Ge(e,"bpmn:TextAnnotation"))return"text";if(Ge(e,"bpmn:Group"))return"categoryValueRef"}function K8(e){var n=e.categoryValueRef;return n&&n.value||""}function jh(e){var n=e.businessObject,i=J8(n);if(i)return i==="categoryValueRef"?K8(n):n[i]||""}function X8(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}function jB(e,n){return n.appendChild(X8(e,n))}function yn(e,n){return jB(n,e),e}var $y=2,LB={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":$y,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":$y,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Z8(e,n){return LB[n]?e.style[n]:e.getAttributeNS(null,n)}function QB(e,n,i){var a=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=LB[a];s?(s===$y&&typeof i=="number"&&(i=String(i)+"px"),e.style[a]=i):e.setAttributeNS(null,n,i)}function $8(e,n){var i=Object.keys(n),a,s;for(a=0,s;s=i[a];a++)QB(e,s,n[s])}function Pt(e,n,i){if(typeof n=="string")if(i!==void 0)QB(e,n,i);else return Z8(e,n);else $8(e,n);return e}const q8=Object.prototype.toString;function Jr(e){return new ro(e)}function ro(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}ro.prototype.add=function(e){return this.list.add(e),this},ro.prototype.remove=function(e){return q8.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ro.prototype.removeMatching=function(e){const n=this.array();for(let i=0;i<n.length;i++)e.test(n[i])&&this.remove(n[i]);return this},ro.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},ro.prototype.array=function(){return Array.from(this.list)},ro.prototype.has=ro.prototype.contains=function(e){return this.list.contains(e)};function e9(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}var qy={svg:"http://www.w3.org/2000/svg"},zB='<svg xmlns="'+qy.svg+'"';function HB(e){var n=!1;e.substring(0,4)==="<svg"?e.indexOf(qy.svg)===-1&&(e=zB+e.substring(4)):(e=zB+">"+e+"</svg>",n=!0);var i=t9(e);if(!n)return i;for(var a=document.createDocumentFragment(),s=i.firstChild;s.firstChild;)a.appendChild(s.firstChild);return a}function t9(e){var n;return n=new DOMParser,n.async=!1,n.parseFromString(e,"text/xml")}function Rt(e,n){var i;return e=e.trim(),e.charAt(0)==="<"?(i=HB(e).firstChild,i=document.importNode(i,!0)):i=document.createElementNS(qy.svg,e),n&&Pt(i,n),i}var ex=null;function tx(){return ex===null&&(ex=Rt("svg")),ex}function VB(e,n){var i,a,s=Object.keys(n);for(i=0;a=s[i];i++)e[a]=n[a];return e}function n9(e,n,i,a,s,c){var p=tx().createSVGMatrix();switch(arguments.length){case 0:return p;case 1:return VB(p,e);case 6:return VB(p,{a:e,b:n,c:i,d:a,e:s,f:c})}}function Ad(e){return e?tx().createSVGTransformFromMatrix(e):tx().createSVGTransform()}var UB=/([&<>]{1})/g,i9=/([&<>\n\r"]{1})/g,r9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function nx(e,n){function i(a,s){return r9[s]||s}return e.replace(n,i)}function YB(e,n){var i,a,s,c,p;switch(e.nodeType){case 3:n.push(nx(e.textContent,UB));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(s=e.attributes,i=0,a=s.length;i<a;++i)c=s.item(i),n.push(" ",c.name,'="',nx(c.value,i9),'"');if(e.hasChildNodes()){for(n.push(">"),p=e.childNodes,i=0,a=p.length;i<a;++i)YB(p.item(i),n);n.push("</",e.tagName,">")}else n.push("/>");break;case 8:n.push("<!--",nx(e.nodeValue,UB),"-->");break;case 4:n.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function a9(e,n){var i=HB(n);if(e9(e),!!n){s9(i)||(i=i.documentElement);for(var a=l9(i.childNodes),s=0;s<a.length;s++)jB(a[s],e)}}function o9(e){for(var n=e.firstChild,i=[];n;)YB(n,i),n=n.nextSibling;return i.join("")}function s9(e){return e.nodeName==="#document-fragment"}function WB(e,n){if(n!==void 0){try{a9(e,n)}catch(i){throw new Error("error parsing SVG: "+i.message)}return e}else return o9(e)}function l9(e){return Array.prototype.slice.call(e)}function vd(e){var n=e.parentNode;return n&&n.removeChild(e),e}function c9(e,n){return n instanceof SVGMatrix?e.createSVGTransformFromMatrix(n):n}function u9(e,n){var i,a;for(e.clear(),i=0;a=n[i];i++)e.appendItem(c9(e,a))}function bd(e,n){var i=e.transform.baseVal;return n&&(Array.isArray(n)||(n=[n]),u9(i,n)),i.consolidate()}function _s(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function d9(e){return["M",e.x,e.y]}function ix(e){return["L",e.x,e.y]}function f9(e,n,i){return["C",e.x,e.y,n.x,n.y,i.x,i.y]}function p9(e,n){const i=e.length,a=[d9(e[0])];for(let s=1;s<i;s++){const c=e[s-1],p=e[s],m=e[s+1];if(!m||!n){a.push(ix(p));continue}const g=Math.min(n,rx(p.x-c.x,p.y-c.y),rx(m.x-p.x,m.y-p.y));if(!g){a.push(ix(p));continue}const y=Lh(p,c,g),O=Lh(p,c,g*.5),E=Lh(p,m,g),N=Lh(p,m,g*.5);a.push(ix(y)),a.push(f9(O,N,E))}return a}function Lh(e,n,i){const a=n.x-e.x,s=n.y-e.y,c=rx(a,s),p=i/c;return{x:e.x+a*p,y:e.y+s*p}}function rx(e,n){return Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}function ax(e,n,i){no(n)&&(i=n,n=null),n||(n={});const a=Rt("path",n);return no(i)&&(a.dataset.cornerRadius=String(i)),GB(a,e)}function GB(e,n){const i=parseInt(e.dataset.cornerRadius,10)||0;return Pt(e,{d:_s(p9(n,i))}),e}var ox="hsl(225, 10%, 15%)",h9="white";function Kr(e,n){return MB(e.eventDefinitions,function(i){return i.$type===n})}function m9(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function g9(e){var n=e.dataObjectRef;return e.isCollection||n&&n.isCollection}function st(e,n,i){var a=vs(e);return i||a.get("color:background-color")||a.get("bioc:fill")||n||h9}function Qe(e,n,i){var a=vs(e);return i||a.get("color:border-color")||a.get("bioc:stroke")||n||ox}function _d(e,n,i,a){var s=vs(e),c=s.get("label");return a||c&&c.get("color:color")||n||Qe(e,i)}function A9(e){var n=e.x+e.width/2,i=e.y+e.height/2,a=e.width/2,s=[["M",n,i],["m",0,-a],["a",a,a,0,1,1,0,2*a],["a",a,a,0,1,1,0,-2*a],["z"]];return _s(s)}function v9(e,n){var i=e.x,a=e.y,s=e.width,c=e.height,p=[["M",i+n,a],["l",s-n*2,0],["a",n,n,0,0,1,n,n],["l",0,c-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-s,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-c],["a",n,n,0,0,1,n,-n],["z"]];return _s(p)}function b9(e){var n=e.width,i=e.height,a=e.x,s=e.y,c=n/2,p=i/2,m=[["M",a+c,s],["l",c,p],["l",-c,p],["l",-c,-p],["z"]];return _s(m)}function _9(e){var n=e.x,i=e.y,a=e.width,s=e.height,c=[["M",n,i],["l",a,0],["l",0,s],["l",-a,0],["z"]];return _s(c)}function yd(e,n={}){return{width:er(e,n),height:Ai(e,n)}}function er(e,n={}){return $l(n,"width")?n.width:e.width}function Ai(e,n={}){return $l(n,"height")?n.height:e.height}function y9(e,n){return n.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(a){if(a!=="default"&&!(a in e)){var s=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:function(){return i[a]}})}})}),Object.freeze(e)}const x9=Object.prototype.toString,w9=Object.prototype.hasOwnProperty;function E9(e){return e===void 0}function k9(e){return x9.call(e)==="[object Array]"}function C9(e,n){return w9.call(e,n)}function JB(e,n){let i,a;if(E9(e))return;const s=k9(e)?D9:S9;for(let c in e)if(C9(e,c)&&(i=e[c],a=n(i,s(c)),a===!1))return i}function S9(e){return e}function D9(e){return Number(e)}function Tn(e,...n){const i=e.style;return JB(n,function(a){!a||JB(a,function(s,c){i[c]=s})}),e}function sx(e,n,i){return arguments.length==2?e.getAttribute(n):i===null?e.removeAttribute(n):(e.setAttribute(n,i),e)}const I9=Object.prototype.toString;function ys(e){return new ao(e)}function ao(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}ao.prototype.add=function(e){return this.list.add(e),this},ao.prototype.remove=function(e){return I9.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ao.prototype.removeMatching=function(e){const n=this.array();for(let i=0;i<n.length;i++)e.test(n[i])&&this.remove(n[i]);return this},ao.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},ao.prototype.array=function(){return Array.from(this.list)},ao.prototype.has=ao.prototype.contains=function(e){return this.list.contains(e)};function KB(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function XB(e,n,i){var a=i?e:e.parentNode;return a&&typeof a.closest=="function"&&a.closest(n)||null}var Qh={},zh,lx,cx;function ZB(){zh=window.addEventListener?"addEventListener":"attachEvent",lx=window.removeEventListener?"removeEventListener":"detachEvent",cx=zh!=="addEventListener"?"on":""}var B9=Qh.bind=function(e,n,i,a){return zh||ZB(),e[zh](cx+n,i,a||!1),i},O9=Qh.unbind=function(e,n,i,a){return lx||ZB(),e[lx](cx+n,i,a||!1),i},xs=y9({__proto__:null,bind:B9,unbind:O9,default:Qh},[Qh]),$B=["focus","blur"];function T9(e,n,i,a,s){return $B.indexOf(i)!==-1&&(s=!0),xs.bind(e,i,function(c){var p=c.target||c.srcElement;c.delegateTarget=XB(p,n,!0),c.delegateTarget&&a.call(e,c)},s)}function N9(e,n,i,a){return $B.indexOf(n)!==-1&&(a=!0),xs.unbind(e,n,i,a)}var tc={bind:T9,unbind:N9},M9=F9,qB=!1,Hh;typeof document<"u"&&(Hh=document.createElement("div"),Hh.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',qB=!Hh.getElementsByTagName("link").length,Hh=void 0);var an={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:qB?[1,"X<div>","</div>"]:[0,"",""]};an.td=an.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],an.option=an.optgroup=[1,'<select multiple="multiple">',"</select>"],an.thead=an.tbody=an.colgroup=an.caption=an.tfoot=[1,"<table>","</table>"],an.polyline=an.ellipse=an.polygon=an.circle=an.text=an.line=an.path=an.rect=an.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function F9(e,n){if(typeof e!="string")throw new TypeError("String expected");n||(n=document);var i=/<([\w:]+)/.exec(e);if(!i)return n.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var a=i[1];if(a=="body"){var g=n.createElement("html");return g.innerHTML=e,g.removeChild(g.lastChild)}var s=Object.prototype.hasOwnProperty.call(an,a)?an[a]:an._default,c=s[0],p=s[1],m=s[2],g=n.createElement("div");for(g.innerHTML=p+e+m;c--;)g=g.lastChild;if(g.firstChild==g.lastChild)return g.removeChild(g.firstChild);for(var y=n.createDocumentFragment();g.firstChild;)y.appendChild(g.removeChild(g.firstChild));return y}var Li=M9;function xa(e,n){return n=n||document,n.querySelector(e)}function P9(e,n){return n=n||document,n.querySelectorAll(e)}function nc(e){e.parentNode&&e.parentNode.removeChild(e)}function ux(e,n,i,a,s){var c=Ad();c.setTranslate(n,i);var p=Ad();p.setRotate(a||0,0,0);var m=Ad();m.setScale(s||1,s||1),bd(e,[c,p,m])}function e2(e,n,i){var a=Ad();a.setTranslate(n,i),bd(e,a)}function R9(e,n){var i=Ad();i.setRotate(n,0,0),bd(e,i)}function j9(e,n){return n={exports:{}},e(n,n.exports),n.exports}var L9=j9(function(e){var n=e.exports=function(i,a){if(a||(a=16),i===void 0&&(i=128),i<=0)return"0";for(var s=Math.log(Math.pow(2,i))/Math.log(a),c=2;s===1/0;c*=2)s=Math.log(Math.pow(2,i/c))/Math.log(a)*c;for(var p=s-Math.floor(s),m="",c=0;c<Math.floor(s);c++){var g=Math.floor(Math.random()*a).toString(a);m=g+m}if(p){var y=Math.pow(a,p),g=Math.floor(Math.random()*y).toString(a);m=g+m}var O=parseInt(m,a);return O!==1/0&&O>=Math.pow(2,i)?n(i,a):m};n.rack=function(i,a,s){var c=function(m){var g=0;do{if(g++>10)if(s)i+=s;else throw new Error("too many ID collisions, use more bits");var y=n(i,a)}while(Object.hasOwnProperty.call(p,y));return p[y]=m,y},p=c.hats={};return c.get=function(m){return c.hats[m]},c.set=function(m,g){return c.hats[m]=g,c},c.bits=i||128,c.base=a||16,c}});function wa(e){if(!(this instanceof wa))return new wa(e);e=e||[128,36,1],this._seed=e.length?L9.rack(e[0],e[1],e[2]):e}wa.prototype.next=function(e){return this._seed(e||!0)},wa.prototype.nextPrefixed=function(e,n){var i;do i=e+this.next(!0);while(this.assigned(i));return this.claim(i,n),i},wa.prototype.claim=function(e,n){this._seed.set(e,n||!0)},wa.prototype.assigned=function(e){return this._seed.get(e)||!1},wa.prototype.unclaim=function(e){delete this._seed.hats[e]},wa.prototype.clear=function(){var e=this._seed.hats,n;for(n in e)this.unclaim(n)};var Q9=new wa,z9=10,Vh=3,H9=1.5,Uh=10,ic=.95,V9=1,U9=.25;function ws(e,n,i,a,s,c,p){ya.call(this,n,p);var m=e&&e.defaultFillColor,g=e&&e.defaultStrokeColor,y=e&&e.defaultLabelColor;function O(j){return i.computeStyle(j,{strokeLinecap:"round",strokeLinejoin:"round",stroke:ox,strokeWidth:2,fill:"white"})}function E(j){return i.computeStyle(j,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:ox,strokeWidth:2})}function N(j,k){var{ref:C={x:0,y:0},scale:X=1,element:te,parentGfx:fe=s._svg}=k,De=Rt("marker",{id:j,viewBox:"0 0 20 20",refX:C.x,refY:C.y,markerWidth:20*X,markerHeight:20*X,orient:"auto"});yn(De,te);var Re=xa(":scope > defs",fe);Re||(Re=Rt("defs"),yn(fe,Re)),yn(Re,De)}function _(j,k,C,X){var te=Q9.nextPrefixed("marker-");return S(j,te,k,C,X),"url(#"+te+")"}function S(j,k,C,X,te){if(C==="sequenceflow-end"){var fe=Rt("path",{d:"M 1 5 L 11 10 L 1 15 Z",...O({fill:te,stroke:te,strokeWidth:1})});N(k,{element:fe,ref:{x:11,y:10},scale:.5,parentGfx:j})}if(C==="messageflow-start"){var De=Rt("circle",{cx:6,cy:6,r:3.5,...O({fill:X,stroke:te,strokeWidth:1,strokeDasharray:[1e4,1]})});N(k,{element:De,ref:{x:6,y:6},parentGfx:j})}if(C==="messageflow-end"){var Re=Rt("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...O({fill:X,stroke:te,strokeWidth:1,strokeDasharray:[1e4,1]})});N(k,{element:Re,ref:{x:8.5,y:5},parentGfx:j})}if(C==="association-start"){var Ke=Rt("path",{d:"M 11 5 L 1 10 L 11 15",...E({fill:"none",stroke:te,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(k,{element:Ke,ref:{x:1,y:10},scale:.5,parentGfx:j})}if(C==="association-end"){var _t=Rt("path",{d:"M 1 5 L 11 10 L 1 15",...E({fill:"none",stroke:te,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(k,{element:_t,ref:{x:11,y:10},scale:.5,parentGfx:j})}if(C==="conditional-flow-marker"){var pt=Rt("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...O({fill:X,stroke:te})});N(k,{element:pt,ref:{x:-1,y:10},scale:.5,parentGfx:j})}if(C==="conditional-default-flow-marker"){var Bt=Rt("path",{d:"M 6 4 L 10 16",...O({stroke:te,fill:"none"})});N(k,{element:Bt,ref:{x:0,y:10},scale:.5,parentGfx:j})}}function M(j,k,C,X,te={}){gs(X)&&(te=X,X=0),X=X||0,te=O(te);var fe=k/2,De=C/2,Re=Rt("circle",{cx:fe,cy:De,r:Math.round((k+C)/4-X),...te});return yn(j,Re),Re}function P(j,k,C,X,te,fe){gs(te)&&(fe=te,te=0),te=te||0,fe=O(fe);var De=Rt("rect",{x:te,y:te,width:k-te*2,height:C-te*2,rx:X,ry:X,...fe});return yn(j,De),De}function T(j,k,C,X){var te=k/2,fe=C/2,De=[{x:te,y:0},{x:k,y:fe},{x:te,y:C},{x:0,y:fe}],Re=De.map(function(_t){return _t.x+","+_t.y}).join(" ");X=O(X);var Ke=Rt("polygon",{...X,points:Re});return yn(j,Ke),Ke}function R(j,k,C,X){C=E(C);var te=ax(k,C,X);return yn(j,te),te}function b(j,k,C){return R(j,k,C,5)}function w(j,k,C){C=E(C);var X=Rt("path",{...C,d:k});return yn(j,X),X}function B(j,k,C,X){return w(k,C,Je({"data-marker":j},X))}function z(j){return K[j]}function F(j){return function(k,C,X){return z(j)(k,C,X)}}var H={"bpmn:MessageEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.235,my:.315}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill),De=X?st(k,m,C.fill):Qe(k,g,C.stroke),Re=w(j,te,{fill:fe,stroke:De,strokeWidth:1});return Re},"bpmn:TimerEventDefinition":function(j,k,C={}){var X=C.width||k.width,te=C.height||k.height,fe=C.width?1:2,De=M(j,X,te,.2*te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:fe}),Re=a.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:te,position:{mx:.5,my:.5}});w(j,Re,{stroke:Qe(k,g,C.stroke),strokeWidth:fe});for(var Ke=0;Ke<12;Ke++){var _t=a.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:te,position:{mx:.5,my:.5}}),pt=X/2,Bt=te/2;w(j,_t,{strokeWidth:1,stroke:Qe(k,g,C.stroke),transform:"rotate("+Ke*30+","+Bt+","+pt+")"})}return De},"bpmn:EscalationEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.5,my:.2}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(j,k,C={}){var X=a.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.5,my:.222}});return w(j,X,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:.57,my:.263}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.2,my:.722}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:.638,my:-.055}}),fe=X?Qe(k,g,C.stroke):"none",De=w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1});return R9(De,45),De},"bpmn:CompensateEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.22,my:.5}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.5,my:.2}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{strokeWidth:1,fill:fe,stroke:Qe(k,g,C.stroke)})},"bpmn:MultipleEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.211,my:.36}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(j,k,C={}){var X=a.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.458,my:.194}});return w(j,X,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(j,k,C={}){var X=M(j,k.width,k.height,8,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:4});return X}};function ee(j,k,C={},X){var te=Ut(j),fe=m9(te),De=X||j;return te.get("eventDefinitions")&&te.get("eventDefinitions").length>1?te.get("parallelMultiple")?H["bpmn:ParallelMultipleEventDefinition"](k,De,C,fe):H["bpmn:MultipleEventDefinition"](k,De,C,fe):Kr(te,"bpmn:MessageEventDefinition")?H["bpmn:MessageEventDefinition"](k,De,C,fe):Kr(te,"bpmn:TimerEventDefinition")?H["bpmn:TimerEventDefinition"](k,De,C,fe):Kr(te,"bpmn:ConditionalEventDefinition")?H["bpmn:ConditionalEventDefinition"](k,De,C,fe):Kr(te,"bpmn:SignalEventDefinition")?H["bpmn:SignalEventDefinition"](k,De,C,fe):Kr(te,"bpmn:EscalationEventDefinition")?H["bpmn:EscalationEventDefinition"](k,De,C,fe):Kr(te,"bpmn:LinkEventDefinition")?H["bpmn:LinkEventDefinition"](k,De,C,fe):Kr(te,"bpmn:ErrorEventDefinition")?H["bpmn:ErrorEventDefinition"](k,De,C,fe):Kr(te,"bpmn:CancelEventDefinition")?H["bpmn:CancelEventDefinition"](k,De,C,fe):Kr(te,"bpmn:CompensateEventDefinition")?H["bpmn:CompensateEventDefinition"](k,De,C,fe):Kr(te,"bpmn:TerminateEventDefinition")?H["bpmn:TerminateEventDefinition"](k,De,C,fe):null}var ne={ParticipantMultiplicityMarker:function(j,k,C={}){var X=er(k,C),te=Ai(k,C),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2-6)/X,my:(te-15)/te}});B("participant-multiplicity",j,fe,{strokeWidth:2,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},SubProcessMarker:function(j,k,C={}){var X=P(j,14,14,0,{strokeWidth:1,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)});e2(X,k.width/2-7.5,k.height-20);var te=a.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:k.width,containerHeight:k.height,position:{mx:(k.width/2-7.5)/k.width,my:(k.height-20)/k.height}});B("sub-process",j,te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},ParallelMarker:function(j,k,C){var X=er(k,C),te=Ai(k,C),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+C.parallel)/X,my:(te-20)/te}});B("parallel",j,fe,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},SequentialMarker:function(j,k,C){var X=a.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:(k.width/2+C.seq)/k.width,my:(k.height-19)/k.height}});B("sequential",j,X,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},CompensationMarker:function(j,k,C){var X=a.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:(k.width/2+C.compensation)/k.width,my:(k.height-13)/k.height}});B("compensation",j,X,{strokeWidth:1,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},LoopMarker:function(j,k,C){var X=er(k,C),te=Ai(k,C),fe=a.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+C.loop)/X,my:(te-7)/te}});B("loop",j,fe,{strokeWidth:1.5,fill:"none",stroke:Qe(k,g,C.stroke),strokeMiterlimit:.5})},AdhocMarker:function(j,k,C){var X=er(k,C),te=Ai(k,C),fe=a.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+C.adhoc)/X,my:(te-15)/te}});B("adhoc",j,fe,{strokeWidth:1,fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke)})}};function se(j,k,C,X){ne[j](k,C,X)}function me(j,k,C=[],X={}){X={fill:X.fill,stroke:X.stroke,width:er(k,X),height:Ai(k,X)};var te=Ut(k),fe=C.includes("SubProcessMarker");fe?X={...X,seq:-21,parallel:-22,compensation:-25,loop:-18,adhoc:10}:X={...X,seq:-5,parallel:-6,compensation:-7,loop:0,adhoc:-8},te.get("isForCompensation")&&C.push("CompensationMarker"),Ge(te,"bpmn:AdHocSubProcess")&&(C.push("AdhocMarker"),fe||Je(X,{compensation:X.compensation-18}));var De=te.get("loopCharacteristics"),Re=De&&De.get("isSequential");De&&(Je(X,{compensation:X.compensation-18}),C.includes("AdhocMarker")&&Je(X,{seq:-23,loop:-18,parallel:-24}),Re===void 0&&C.push("LoopMarker"),Re===!1&&C.push("ParallelMarker"),Re===!0&&C.push("SequentialMarker")),C.includes("CompensationMarker")&&C.length===1&&Je(X,{compensation:-8}),We(C,function(Ke){se(Ke,j,k,X)})}function pe(j,k,C={}){C=Je({size:{width:100}},C);var X=c.createText(k||"",C);return Jr(X).add("djs-label"),yn(j,X),X}function Se(j,k,C,X={}){var te=Ut(k),fe=yd({x:k.x,y:k.y,width:k.width,height:k.height},X);return pe(j,te.name,{align:C,box:fe,padding:7,style:{fill:_d(k,y,g,X.stroke)}})}function ye(j,k,C={}){var X={width:90,height:30,x:k.width/2+k.x,y:k.height/2+k.y};return pe(j,jh(k),{box:X,fitBox:!0,style:Je({},c.getExternalStyle(),{fill:_d(k,y,g,C.stroke)})})}function _e(j,k,C,X={}){var te=PB(C),fe=pe(j,k,{box:{height:30,width:te?Ai(C,X):er(C,X)},align:"center-middle",style:{fill:_d(C,y,g,X.stroke)}});if(te){var De=-1*Ai(C,X);ux(fe,0,-De,270)}}function W(j,k,C={}){var{width:X,height:te}=yd(k,C);return P(j,X,te,Uh,{...C,fill:st(k,m,C.fill),fillOpacity:ic,stroke:Qe(k,g,C.stroke)})}function J(j,k,C={}){var X=Ut(k),te=st(k,m,C.fill),fe=Qe(k,g,C.stroke);return(X.get("associationDirection")==="One"||X.get("associationDirection")==="Both")&&(C.markerEnd=_(j,"association-end",te,fe)),X.get("associationDirection")==="Both"&&(C.markerStart=_(j,"association-start",te,fe)),C=gt(C,["markerStart","markerEnd"]),b(j,k.waypoints,{...C,stroke:fe,strokeDasharray:"0, 5"})}function re(j,k,C={}){var X=st(k,m,C.fill),te=Qe(k,g,C.stroke),fe=a.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:.474,my:.296}}),De=w(j,fe,{fill:X,fillOpacity:ic,stroke:te}),Re=Ut(k);if(g9(Re)){var Ke=a.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:.33,my:(k.height-18)/k.height}});w(j,Ke,{strokeWidth:2,fill:X,stroke:te})}return De}function ge(j,k,C={}){return M(j,k.width,k.height,{fillOpacity:ic,...C,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})}function Te(j,k,C={}){return T(j,k.width,k.height,{fill:st(k,m,C.fill),fillOpacity:ic,stroke:Qe(k,g,C.stroke)})}function le(j,k,C={}){var X=P(j,er(k,C),Ai(k,C),0,{fill:st(k,m,C.fill),fillOpacity:C.fillOpacity||ic,stroke:Qe(k,g,C.stroke),strokeWidth:1.5}),te=Ut(k);if(Ge(te,"bpmn:Lane")){var fe=te.get("name");_e(j,fe,k,C)}return X}function he(j,k,C={}){var X=W(j,k,C),te=bs(k);if(z8(k)&&(Pt(X,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),!te)){var fe=Ut(k).flowElements||[],De=fe.filter(Re=>Ge(Re,"bpmn:StartEvent"));De.length===1&&xe(De[0],j,C,k)}return Se(j,k,te?"center-top":"center-middle",C),te?me(j,k,void 0,C):me(j,k,["SubProcessMarker"],C),X}function xe(j,k,C,X){var te=22,fe={fill:st(X,m,C.fill),stroke:Qe(X,g,C.stroke),width:te,height:te},De=Ut(j).isInterrupting,Re=De?0:3,Ke=De?1:1.2,_t=20,pt=(te-_t)/2,Bt="translate("+pt+","+pt+")";M(k,_t,_t,{fill:fe.fill,stroke:fe.stroke,strokeWidth:Ke,strokeDasharray:Re,transform:Bt}),ee(j,k,fe,X)}function Fe(j,k,C={}){var X=W(j,k,C);return Se(j,k,"center-middle",C),me(j,k,void 0,C),X}var K=this.handlers={"bpmn:AdHocSubProcess":function(j,k,C={}){return bs(k)?C=gt(C,["fill","stroke","width","height"]):C=gt(C,["fill","stroke"]),he(j,k,C)},"bpmn:Association":function(j,k,C={}){return C=gt(C,["fill","stroke"]),J(j,k,C)},"bpmn:BoundaryEvent":function(j,k,C={}){var{renderIcon:X=!0}=C;C=gt(C,["fill","stroke"]);var te=Ut(k),fe=te.get("cancelActivity");C={strokeWidth:1.5,fill:st(k,m,C.fill),fillOpacity:V9,stroke:Qe(k,g,C.stroke)},fe||(C.strokeDasharray="6");var De=ge(j,k,C);return M(j,k.width,k.height,Vh,{...C,fill:"none"}),X&&ee(k,j,C),De},"bpmn:BusinessRuleTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),fe=w(j,te);Pt(fe,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1});var De=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),Re=w(j,De);return Pt(Re,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:CallActivity":function(j,k,C={}){return C=gt(C,["fill","stroke"]),he(j,k,{strokeWidth:5,...C})},"bpmn:ComplexGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Te(j,k,C),te=a.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:k.width,containerHeight:k.height,position:{mx:.46,my:.26}});return w(j,te,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:DataInput":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),te=re(j,k,C);return w(j,X,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:1}),te},"bpmn:DataInputAssociation":function(j,k,C={}){return C=gt(C,["fill","stroke"]),J(j,k,{...C,markerEnd:_(j,"association-end",st(k,m,C.fill),Qe(k,g,C.stroke))})},"bpmn:DataObject":function(j,k,C={}){return C=gt(C,["fill","stroke"]),re(j,k,C)},"bpmn:DataObjectReference":F("bpmn:DataObject"),"bpmn:DataOutput":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),te=re(j,k,C);return w(j,X,{strokeWidth:1,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)}),te},"bpmn:DataOutputAssociation":function(j,k,C={}){return C=gt(C,["fill","stroke"]),J(j,k,{...C,markerEnd:_(j,"association-end",st(k,m,C.fill),Qe(k,g,C.stroke))})},"bpmn:DataStoreReference":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=a.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:0,my:.133}});return w(j,X,{fill:st(k,m,C.fill),fillOpacity:ic,stroke:Qe(k,g,C.stroke),strokeWidth:2})},"bpmn:EndEvent":function(j,k,C={}){var{renderIcon:X=!0}=C;C=gt(C,["fill","stroke"]);var te=ge(j,k,{...C,strokeWidth:4});return X&&ee(k,j,C),te},"bpmn:EventBasedGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Ut(k),te=Te(j,k,C);M(j,k.width,k.height,k.height*.2,{fill:st(k,"none",C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1});var fe=X.get("eventGatewayType"),De=!!X.get("instantiate");function Re(){var _t=a.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:k.width,containerHeight:k.height,position:{mx:.36,my:.44}});w(j,_t,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:2})}if(fe==="Parallel"){var Ke=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:k.width,containerHeight:k.height,position:{mx:.474,my:.296}});w(j,Ke,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:1})}else fe==="Exclusive"&&(De||M(j,k.width,k.height,k.height*.26,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:1}),Re());return te},"bpmn:ExclusiveGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Te(j,k,C),te=a.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:k.width,containerHeight:k.height,position:{mx:.32,my:.3}}),fe=vs(k);return fe.get("isMarkerVisible")&&w(j,te,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:Gateway":function(j,k,C={}){return C=gt(C,["fill","stroke"]),Te(j,k,C)},"bpmn:Group":function(j,k,C={}){return C=gt(C,["fill","stroke","width","height"]),P(j,k.width,k.height,Uh,{stroke:Qe(k,g,C.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:er(k,C),height:Ai(k,C)})},"bpmn:InclusiveGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Te(j,k,C);return M(j,k.width,k.height,k.height*.24,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:2.5}),X},"bpmn:IntermediateEvent":function(j,k,C={}){var{renderIcon:X=!0}=C;C=gt(C,["fill","stroke"]);var te=ge(j,k,{...C,strokeWidth:1.5});return M(j,k.width,k.height,Vh,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:1.5}),X&&ee(k,j,C),te},"bpmn:IntermediateCatchEvent":F("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":F("bpmn:IntermediateEvent"),"bpmn:Lane":function(j,k,C={}){return C=gt(C,["fill","stroke","width","height"]),le(j,k,{...C,fillOpacity:U9})},"bpmn:ManualTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=a.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return w(j,te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:.5}),X},"bpmn:MessageFlow":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Ut(k),te=vs(k),fe=st(k,m,C.fill),De=Qe(k,g,C.stroke),Re=b(j,k.waypoints,{markerEnd:_(j,"messageflow-end",fe,De),markerStart:_(j,"messageflow-start",fe,De),stroke:De,strokeDasharray:"10, 11",strokeWidth:1.5});if(X.get("messageRef")){var Ke=Re.getPointAtLength(Re.getTotalLength()/2),_t=a.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Ke.x,y:Ke.y}}),pt={strokeWidth:1};te.get("messageVisibleKind")==="initiating"?(pt.fill=fe,pt.stroke=De):(pt.fill=De,pt.stroke=fe);var Bt=w(j,_t,pt),sn=X.get("messageRef"),ct=sn.get("name"),Ot=pe(j,ct,{align:"center-top",fitBox:!0,style:{fill:De}}),fn=Bt.getBBox(),ve=Ot.getBBox(),q=Ke.x-ve.width/2,G=Ke.y+fn.height/2+z9;ux(Ot,q,G,0)}return Re},"bpmn:ParallelGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Te(j,k,C),te=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:k.width,containerHeight:k.height,position:{mx:.46,my:.2}});return w(j,te,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:Participant":function(j,k,C={}){C=gt(C,["fill","stroke","width","height"]);var X=le(j,k,C),te=bs(k),fe=PB(k),De=Ut(k),Re=De.get("name");if(te){var Ke=fe?[{x:30,y:0},{x:30,y:Ai(k,C)}]:[{x:0,y:30},{x:er(k,C),y:30}];R(j,Ke,{stroke:Qe(k,g,C.stroke),strokeWidth:H9}),_e(j,Re,k,C)}else{var _t=yd(k,C);fe||(_t.height=er(k,C),_t.width=Ai(k,C));var pt=pe(j,Re,{box:_t,align:"center-middle",style:{fill:_d(k,y,g,C.stroke)}});if(!fe){var Bt=-1*Ai(k,C);ux(pt,0,-Bt,270)}}return De.get("participantMultiplicity")&&se("ParticipantMultiplicityMarker",j,k,C),X},"bpmn:ReceiveTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Ut(k),te=Fe(j,k,C),fe;return X.get("instantiate")?(M(j,28,28,20*.22,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),fe=a.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):fe=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),w(j,fe,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),te},"bpmn:ScriptTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=a.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return w(j,te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:SendTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return w(j,te,{fill:Qe(k,g,C.stroke),stroke:st(k,m,C.fill),strokeWidth:1}),X},"bpmn:SequenceFlow":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=st(k,m,C.fill),te=Qe(k,g,C.stroke),fe=b(j,k.waypoints,{markerEnd:_(j,"sequenceflow-end",X,te),stroke:te}),De=Ut(k),{source:Re}=k;if(Re){var Ke=Ut(Re);De.get("conditionExpression")&&Ge(Ke,"bpmn:Activity")&&Pt(fe,{markerStart:_(j,"conditional-flow-marker",X,te)}),Ke.get("default")&&(Ge(Ke,"bpmn:Gateway")||Ge(Ke,"bpmn:Activity"))&&Ke.get("default")===De&&Pt(fe,{markerStart:_(j,"conditional-default-flow-marker",X,te)})}return fe},"bpmn:ServiceTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C);M(j,10,10,{fill:st(k,m,C.fill),stroke:"none",transform:"translate(6, 6)"});var te=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});w(j,te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),M(j,10,10,{fill:st(k,m,C.fill),stroke:"none",transform:"translate(11, 10)"});var fe=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return w(j,fe,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:StartEvent":function(j,k,C={}){var{renderIcon:X=!0}=C;C=gt(C,["fill","stroke"]);var te=Ut(k);te.get("isInterrupting")||(C={...C,strokeDasharray:"6"});var fe=ge(j,k,C);return X&&ee(k,j,C),fe},"bpmn:SubProcess":function(j,k,C={}){return bs(k)?C=gt(C,["fill","stroke","width","height"]):C=gt(C,["fill","stroke"]),he(j,k,C)},"bpmn:Task":function(j,k,C={}){return C=gt(C,["fill","stroke"]),Fe(j,k,C)},"bpmn:TextAnnotation":function(j,k,C={}){C=gt(C,["fill","stroke","width","height"]);var{width:X,height:te}=yd(k,C),fe=P(j,X,te,0,0,{fill:"none",stroke:"none"}),De=a.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:0,my:0}});w(j,De,{stroke:Qe(k,g,C.stroke)});var Re=Ut(k),Ke=Re.get("text")||"";return pe(j,Ke,{align:"left-top",box:yd(k,C),padding:7,style:{fill:_d(k,y,g,C.stroke)}}),fe},"bpmn:Transaction":function(j,k,C={}){bs(k)?C=gt(C,["fill","stroke","width","height"]):C=gt(C,["fill","stroke"]);var X=he(j,k,{strokeWidth:1.5,...C}),te=i.style(["no-fill","no-events"],{stroke:Qe(k,g,C.stroke),strokeWidth:1.5}),fe=bs(k);return fe||(C={}),P(j,er(k,C),Ai(k,C),Uh-Vh,Vh,te),X},"bpmn:UserTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=15,fe=12,De=a.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:te,y:fe}});w(j,De,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:.5});var Re=a.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:te,y:fe}});w(j,Re,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:.5});var Ke=a.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:te,y:fe}});return w(j,Ke,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:.5}),X},label:function(j,k,C={}){return ye(j,k,C)}};this._drawPath=w,this._renderer=z}Gr(ws,ya),ws.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],ws.prototype.canRender=function(e){return Ge(e,"bpmn:BaseElement")},ws.prototype.drawShape=function(e,n,i={}){var{type:a}=n,s=this._renderer(a);return s(e,n,i)},ws.prototype.drawConnection=function(e,n,i={}){var{type:a}=n,s=this._renderer(a);return s(e,n,i)},ws.prototype.getShapePath=function(e){return Ge(e,"bpmn:Event")?A9(e):Ge(e,"bpmn:Activity")?v9(e,Uh):Ge(e,"bpmn:Gateway")?b9(e):_9(e)};function gt(e,n=[]){return n.reduce((i,a)=>(e[a]&&(i[a]=e[a]),i),{})}var Y9=0,W9={width:150,height:50};function G9(e){var n=e.split("-");return{horizontal:n[0]||"center",vertical:n[1]||"top"}}function J9(e){return gs(e)?Je({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function K9(e,n){n.textContent=e;var i;try{var a,s=e==="";return n.textContent=s?"dummy":e,i=n.getBBox(),a={width:i.width+i.x*2,height:i.height},s&&(a.width=0),a}catch(c){return{width:0,height:0}}}function X9(e,n,i){for(var a=e.shift(),s=a,c;;){if(c=K9(s,i),c.width=s?c.width:0,s===" "||s===""||c.width<Math.round(n)||s.length<2)return Z9(e,s,a,c);s=q9(s,c.width,n)}}function Z9(e,n,i,a){if(n.length<i.length){var s=i.slice(n.length).trim();e.unshift(s)}return{width:a.width,height:a.height,text:n}}var t2="\xAD";function $9(e,n){var i=e.split(/(\s|-|\u00AD)/g),a,s=[],c=0;if(i.length>1)for(;a=i.shift();)if(a.length+c<n)s.push(a),c+=a.length;else{(a==="-"||a===t2)&&s.pop();break}var p=s[s.length-1];return p&&p===t2&&(s[s.length-1]="-"),s.join("")}function q9(e,n,i){var a=Math.max(e.length*(i/n),1),s=$9(e,a);return s||(s=e.slice(0,Math.max(Math.round(a-1),1))),s}function e7(){var e=document.getElementById("helper-svg");return e||(e=Rt("svg"),Pt(e,{id:"helper-svg"}),Tn(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function Yh(e){this._config=Je({},{size:W9,padding:Y9,style:{},align:"center-top"},e||{})}Yh.prototype.createText=function(e,n){return this.layoutText(e,n).element},Yh.prototype.getDimensions=function(e,n){return this.layoutText(e,n).dimensions},Yh.prototype.layoutText=function(e,n){var i=Je({},this._config.size,n.box),a=Je({},this._config.style,n.style),s=G9(n.align||this._config.align),c=J9(n.padding!==void 0?n.padding:this._config.padding),p=n.fitBox||!1,m=t7(a),g=e.split(/\u00AD?\r?\n/),y=[],O=i.width-c.left-c.right,E=Rt("text");Pt(E,{x:0,y:0}),Pt(E,a);var N=e7();for(yn(N,E);g.length;)y.push(X9(g,O,E));s.vertical==="middle"&&(c.top=c.bottom=0);var _=ec(y,function(R,b,w){return R+(m||b.height)},0)+c.top+c.bottom,S=ec(y,function(R,b,w){return b.width>R?b.width:R},0),M=c.top;s.vertical==="middle"&&(M+=(i.height-_)/2),M-=(m||y[0].height)/4;var P=Rt("text");Pt(P,a),We(y,function(R){var b;switch(M+=m||R.height,s.horizontal){case"left":b=c.left;break;case"right":b=(p?S:O)-c.right-R.width;break;default:b=Math.max(((p?S:O)-R.width)/2+c.left,0)}var w=Rt("tspan");Pt(w,{x:b,y:M}),w.textContent=R.text,yn(P,w)}),vd(E);var T={width:S,height:_};return{dimensions:T,element:P}};function t7(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var n7=12,i7=1.2,r7=30;function n2(e){var n=Je({fontFamily:"Arial, sans-serif",fontSize:n7,fontWeight:"normal",lineHeight:i7},e&&e.defaultStyle||{}),i=parseInt(n.fontSize,10)-1,a=Je({},n,{fontSize:i},e&&e.externalStyle||{}),s=new Yh({style:n});this.getExternalLabelBounds=function(c,p){var m=s.getDimensions(p,{box:{width:90,height:30},style:a});return{x:Math.round(c.x+c.width/2-m.width/2),y:Math.round(c.y),width:Math.ceil(m.width),height:Math.ceil(m.height)}},this.getTextAnnotationBounds=function(c,p){var m=s.getDimensions(p,{box:c,style:n,align:"left-top",padding:5});return{x:c.x,y:c.y,width:c.width,height:Math.max(r7,Math.round(m.height))}},this.createText=function(c,p){return s.createText(c,p||{})},this.getDefaultStyle=function(){return n},this.getExternalStyle=function(){return a}}n2.$inject=["config.textRenderer"];function a7(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(n){return this.pathMap[n].d},this.getScaledPath=function(n,i){var a=this.pathMap[n],s,c;i.abspos?(s=i.abspos.x,c=i.abspos.y):(s=i.containerWidth*i.position.mx,c=i.containerHeight*i.position.my);var p={};if(i.position){for(var m=i.containerHeight/a.height*i.yScaleFactor,g=i.containerWidth/a.width*i.xScaleFactor,y=0;y<a.heightElements.length;y++)p["y"+y]=a.heightElements[y]*m;for(var O=0;O<a.widthElements.length;O++)p["x"+O]=a.widthElements[O]*g}var E=c7(a.d,{mx:s,my:c,e:p});return E}}var o7=/\{([^{}]+)\}/g,s7=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function l7(e,n,i){var a=i;return n.replace(s7,function(s,c,p,m,g){c=c||m,a&&(c in a&&(a=a[c]),typeof a=="function"&&g&&(a=a()))}),a=(a==null||a==i?e:a)+"",a}function c7(e,n){return String(e).replace(o7,function(i,a){return l7(i,a,n)})}const u7={__init__:["bpmnRenderer"],bpmnRenderer:["type",ws],textRenderer:["type",n2],pathMap:["type",a7]};function d7(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(i,a){return n[a]||"{"+a+"}"})}const i2={translate:["value",d7]};function f7(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function dx(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function p7(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function h7(e){return f7({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function m7(e){for(var n=e.waypoints,i=n.reduce(function(y,O,E){var N=n[E-1];if(N){var _=y[y.length-1],S=_&&_.endLength||0,M=g7(N,O);y.push({start:N,end:O,startLength:S,endLength:S+M,length:M})}return y},[]),a=i.reduce(function(y,O){return y+O.length},0),s=a/2,c=0,p=i[c];p.endLength<s;)p=i[++c];var m=(s-p.startLength)/p.length,g={x:p.start.x+(p.end.x-p.start.x)*m,y:p.start.y+(p.end.y-p.start.y)*m};return g}function fx(e){return H8(e)?m7(e):h7(e)}function g7(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Nn(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function Wh(e,n,i){return Je({id:e.id,type:e.$type,businessObject:e,di:n},i)}function A7(e,n,i){var a=e.waypoint;return!a||a.length<2?[fx(n),fx(i)]:a.map(function(s){return{x:s.x,y:s.y}})}function r2(e,n,i){return new Error(`element ${Nn(n)} referenced by ${Nn(e)}#${i} not yet drawn`)}function Ea(e,n,i,a,s){this._eventBus=e,this._canvas=n,this._elementFactory=i,this._elementRegistry=a,this._textRenderer=s}Ea.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],Ea.prototype.add=function(e,n,i){var a,s,c;if(Ge(n,"bpmndi:BPMNPlane")){var p=Ge(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};a=this._elementFactory.createRoot(Wh(e,n,p)),this._canvas.addRootElement(a)}else if(Ge(n,"bpmndi:BPMNShape")){var m=!bs(e,n),g=b7(e);s=i&&(i.hidden||i.collapsed);var y=n.bounds;a=this._elementFactory.createShape(Wh(e,n,{collapsed:m,hidden:s,x:Math.round(y.x),y:Math.round(y.y),width:Math.round(y.width),height:Math.round(y.height),isFrame:g})),Ge(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,a),Ge(e,"bpmn:Lane")&&(c=0),Ge(e,"bpmn:DataStoreReference")&&(v7(i,fx(y))||(i=this._canvas.findRoot(i))),this._canvas.addShape(a,i,c)}else if(Ge(n,"bpmndi:BPMNEdge")){var O=this._getSource(e),E=this._getTarget(e);s=i&&(i.hidden||i.collapsed),a=this._elementFactory.createConnection(Wh(e,n,{hidden:s,source:O,target:E,waypoints:A7(n,O,E)})),Ge(e,"bpmn:DataAssociation")&&(i=this._canvas.findRoot(i)),this._canvas.addConnection(a,i,c)}else throw new Error(`unknown di ${Nn(n)} for element ${Nn(e)}`);return V8(e)&&jh(a)&&this.addLabel(e,n,a),this._eventBus.fire("bpmnElement.added",{element:a}),a},Ea.prototype._attachBoundary=function(e,n){var i=e.attachedToRef;if(!i)throw new Error(`missing ${Nn(e)}#attachedToRef`);var a=this._elementRegistry.get(i.id),s=a&&a.attachers;if(!a)throw r2(e,i,"attachedToRef");n.host=a,s||(a.attachers=s=[]),s.indexOf(n)===-1&&s.push(n)},Ea.prototype.addLabel=function(e,n,i){var a,s,c;return a=G8(n,i),s=jh(i),s&&(a=this._textRenderer.getExternalLabelBounds(a,s)),c=this._elementFactory.createLabel(Wh(e,n,{id:e.id+"_label",labelTarget:i,type:"label",hidden:i.hidden||!jh(i),x:Math.round(a.x),y:Math.round(a.y),width:Math.round(a.width),height:Math.round(a.height)})),this._canvas.addShape(c,i.parent)},Ea.prototype._getConnectedElement=function(e,n){var i,a,s=e.$type;if(a=e[n+"Ref"],n==="source"&&s==="bpmn:DataInputAssociation"&&(a=a&&a[0]),(n==="source"&&s==="bpmn:DataOutputAssociation"||n==="target"&&s==="bpmn:DataInputAssociation")&&(a=e.$parent),i=a&&this._getElement(a),i)return i;throw a?r2(e,a,n+"Ref"):new Error(`${Nn(e)}#${n} Ref not specified`)},Ea.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},Ea.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},Ea.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function v7(e,n){var i=n.x,a=n.y;return i>=e.x&&i<=e.x+e.width&&a>=e.y&&a<=e.y+e.height}function b7(e){return Ge(e,"bpmn:Group")}const _7={__depends__:[u7,{__depends__:[i2],bpmnImporter:["type",Ea]}]};function xd(e,n){n=!!n,kr(e)||(e=[e]);var i,a,s,c;return We(e,function(p){var m=p;p.waypoints&&!n&&(m=xd(p.waypoints,!0));var g=m.x,y=m.y,O=m.height||0,E=m.width||0;(g<i||i===void 0)&&(i=g),(y<a||a===void 0)&&(a=y),(g+E>s||s===void 0)&&(s=g+E),(y+O>c||c===void 0)&&(c=y+O)}),{x:i,y:a,height:c-a,width:s-i}}function a2(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function o2(e){return!!(e&&e.isFrame)}function px(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}px.prototype.next=function(){return this._prefix+ ++this._counter};var y7=new px("ov"),x7=500;function xn(e,n,i,a){this._eventBus=n,this._canvas=i,this._elementRegistry=a,this._ids=y7,this._overlayDefaults=Je({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=w7(i.getContainer()),this._init()}xn.$inject=["config.overlays","eventBus","canvas","elementRegistry"],xn.prototype.get=function(e){if(Cr(e)&&(e={id:e}),Cr(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?ql(n.overlays,FB({type:e.type})):n.overlays.slice():[]}else return e.type?ql(this._overlays,FB({type:e.type})):e.id?this._overlays[e.id]:null},xn.prototype.add=function(e,n,i){if(gs(n)&&(i=n,n=null),e.id||(e=this._elementRegistry.get(e)),!i.position)throw new Error("must specifiy overlay position");if(!i.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var a=this._ids.next();return i=Je({},this._overlayDefaults,i,{id:a,type:n,element:e,html:i.html}),this._addOverlay(i),a},xn.prototype.remove=function(e){var n=this.get(e)||[];kr(n)||(n=[n]);var i=this;We(n,function(a){var s=i._getOverlayContainer(a.element,!0);if(a&&(nc(a.html),nc(a.htmlContainer),delete a.htmlContainer,delete a.element,delete i._overlays[a.id]),s){var c=s.overlays.indexOf(a);c!==-1&&s.overlays.splice(c,1)}})},xn.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},xn.prototype.show=function(){Gh(this._overlayRoot)},xn.prototype.hide=function(){Gh(this._overlayRoot,!1)},xn.prototype.clear=function(){this._overlays={},this._overlayContainers=[],KB(this._overlayRoot)},xn.prototype._updateOverlayContainer=function(e){var n=e.element,i=e.html,a=n.x,s=n.y;if(n.waypoints){var c=xd(n);a=c.x,s=c.y}s2(i,a,s),sx(e.html,"data-container-id",n.id)},xn.prototype._updateOverlay=function(e){var n=e.position,i=e.htmlContainer,a=e.element,s=n.left,c=n.top;if(n.right!==void 0){var p;a.waypoints?p=xd(a).width:p=a.width,s=n.right*-1+p}if(n.bottom!==void 0){var m;a.waypoints?m=xd(a).height:m=a.height,c=n.bottom*-1+m}s2(i,s||0,c||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},xn.prototype._createOverlayContainer=function(e){var n=Li('<div class="djs-overlays" />');Tn(n,{position:"absolute"}),this._overlayRoot.appendChild(n);var i={html:n,element:e,overlays:[]};return this._updateOverlayContainer(i),this._overlayContainers.push(i),i},xn.prototype._updateRoot=function(e){var n=e.scale||1,i="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";l2(this._overlayRoot,i)},xn.prototype._getOverlayContainer=function(e,n){var i=Sr(this._overlayContainers,function(a){return a.element===e});return!i&&!n?this._createOverlayContainer(e):i},xn.prototype._addOverlay=function(e){var n=e.id,i=e.element,a=e.html,s,c;a.get&&a.constructor.prototype.jquery&&(a=a.get(0)),Cr(a)&&(a=Li(a)),c=this._getOverlayContainer(i),s=Li('<div class="djs-overlay" data-overlay-id="'+n+'">'),Tn(s,{position:"absolute"}),s.appendChild(a),e.type&&ys(s).add("djs-overlay-"+e.type);var p=this._canvas.findRoot(i),m=this._canvas.getRootElement();Gh(s,p===m),e.htmlContainer=s,c.overlays.push(e),c.html.appendChild(s),this._overlays[n]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},xn.prototype._updateOverlayVisibilty=function(e,n){var i=e.show,a=this._canvas.findRoot(e.element),s=i&&i.minZoom,c=i&&i.maxZoom,p=e.htmlContainer,m=this._canvas.getRootElement(),g=!0;(a!==m||i&&(Zl(s)&&s>n.scale||Zl(c)&&c<n.scale))&&(g=!1),Gh(p,g),this._updateOverlayScale(e,n)},xn.prototype._updateOverlayScale=function(e,n){var i=e.scale,a,s,c=e.htmlContainer,p,m="";i!==!0&&(i===!1?(a=1,s=1):(a=i.min,s=i.max),Zl(a)&&n.scale<a&&(p=(1/n.scale||1)*a),Zl(s)&&n.scale>s&&(p=(1/n.scale||1)*s)),Zl(p)&&(m="scale("+p+","+p+")"),l2(c,m)},xn.prototype._updateOverlaysVisibilty=function(e){var n=this;We(this._overlays,function(i){n._updateOverlayVisibilty(i,e)})},xn.prototype._init=function(){var e=this._eventBus,n=this;function i(a){n._updateRoot(a),n._updateOverlaysVisibilty(a),n.show()}e.on("canvas.viewbox.changing",function(a){n.hide()}),e.on("canvas.viewbox.changed",function(a){i(a.viewbox)}),e.on(["shape.remove","connection.remove"],function(a){var s=a.element,c=n.get({element:s});We(c,function(g){n.remove(g.id)});var p=n._getOverlayContainer(s);if(p){nc(p.html);var m=n._overlayContainers.indexOf(p);m!==-1&&n._overlayContainers.splice(m,1)}}),e.on("element.changed",x7,function(a){var s=a.element,c=n._getOverlayContainer(s,!0);c&&(We(c.overlays,function(p){n._updateOverlay(p)}),n._updateOverlayContainer(c))}),e.on("element.marker.update",function(a){var s=n._getOverlayContainer(a.element,!0);s&&ys(s.html)[a.add?"add":"remove"](a.marker)}),e.on("root.set",function(){n._updateOverlaysVisibilty(n._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function w7(e){var n=Li('<div class="djs-overlay-container" />');return Tn(n,{position:"absolute",width:0,height:0}),e.insertBefore(n,e.firstChild),n}function s2(e,n,i){Tn(e,{left:n+"px",top:i+"px"})}function Gh(e,n){e.style.display=n===!1?"none":""}function l2(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(i){e.style[i+"transform"]=n})}const c2={__init__:["overlays"],overlays:["type",xn]};function u2(e,n,i,a){e.on("element.changed",function(s){var c=s.element;(c.parent||c===n.getRootElement())&&(s.gfx=i.getGraphics(c)),s.gfx&&e.fire(a2(c)+".changed",s)}),e.on("elements.changed",function(s){var c=s.elements;c.forEach(function(p){e.fire("element.changed",{element:p})}),a.updateContainments(c)}),e.on("shape.changed",function(s){a.update("shape",s.element,s.gfx)}),e.on("connection.changed",function(s){a.update("connection",s.element,s.gfx)})}u2.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const E7={__init__:["changeSupport"],changeSupport:["type",u2]};var k7=1e3;function $n(e){this._eventBus=e}$n.$inject=["eventBus"];function C7(e,n){return function(i){return e.call(n||null,i.context,i.command,i)}}$n.prototype.on=function(e,n,i,a,s,c){if((As(n)||no(n))&&(c=s,s=a,a=i,i=n,n=null),As(i)&&(c=s,s=a,a=i,i=k7),gs(s)&&(c=s,s=!1),!As(a))throw new Error("handlerFn must be a function");kr(e)||(e=[e]);var p=this._eventBus;We(e,function(m){var g=["commandStack",m,n].filter(function(y){return y}).join(".");p.on(g,i,s?C7(a,c):a,c)})},$n.prototype.canExecute=ka("canExecute"),$n.prototype.preExecute=ka("preExecute"),$n.prototype.preExecuted=ka("preExecuted"),$n.prototype.execute=ka("execute"),$n.prototype.executed=ka("executed"),$n.prototype.postExecute=ka("postExecute"),$n.prototype.postExecuted=ka("postExecuted"),$n.prototype.revert=ka("revert"),$n.prototype.reverted=ka("reverted");function ka(e){return function(i,a,s,c,p){(As(i)||no(i))&&(p=c,c=s,s=a,a=i,i=null),this.on(i,e,a,s,c,p)}}function hx(e,n){n.invoke($n,this),this.executed(function(i){var a=i.context;a.rootElement?e.setRootElement(a.rootElement):a.rootElement=e.getRootElement()}),this.revert(function(i){var a=i.context;a.rootElement&&e.setRootElement(a.rootElement)})}Gr(hx,$n),hx.$inject=["canvas","injector"];const S7={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",hx]};var D7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function I7(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(n){return D7[n]})}var B7="_plane";function mx(e){var n=e.id;return Ge(e,"bpmn:SubProcess")?O7(n):n}function O7(e){return e+B7}var T7="bjs-breadcrumbs-shown";function d2(e,n,i){var a=Li('<ul class="bjs-breadcrumbs"></ul>'),s=i.getContainer(),c=ys(s);s.appendChild(a);var p=[];e.on("element.changed",function(g){var y=g.element,O=Ut(y),E=Sr(p,function(N){return N===O});!E||m()});function m(g){g&&(p=N7(g));var y=p.flatMap(function(E){var N=i.findRoot(mx(E))||i.findRoot(E.id);if(!N&&Ge(E,"bpmn:Process")){var _=n.find(function(P){var T=Ut(P);return T&&T.get("processRef")===E});N=_&&i.findRoot(_.id)}if(!N)return[];var S=I7(E.name||E.id),M=Li('<li><span class="bjs-crumb"><a title="'+S+'">'+S+"</a></span></li>");return M.addEventListener("click",function(){i.setRootElement(N)}),M});a.innerHTML="";var O=y.length>1;c.toggle(T7,O),y.forEach(function(E){a.appendChild(E)})}e.on("root.set",function(g){m(g.element)})}d2.$inject=["eventBus","elementRegistry","canvas"];function N7(e){for(var n=Ut(e),i=[],a=n;a;a=a.$parent)(Ge(a,"bpmn:SubProcess")||Ge(a,"bpmn:Process"))&&i.push(a);return i.reverse()}function f2(e,n){var i=null,a=new M7;e.on("root.set",function(s){var c=s.element,p=n.viewbox(),m=a.get(c);if(a.set(i,{x:p.x,y:p.y,zoom:p.scale}),i=c,!(!Ge(c,"bpmn:SubProcess")&&!m)){m=m||{x:0,y:0,zoom:1};var g=(p.x-m.x)*p.scale,y=(p.y-m.y)*p.scale;(g!==0||y!==0)&&n.scroll({dx:g,dy:y}),m.zoom!==p.scale&&n.zoom(m.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){a.clear(),i=null})}f2.$inject=["eventBus","canvas"];function M7(){this._entries=[],this.set=function(e,n){var i=!1;for(var a in this._entries)if(this._entries[a][0]===e){this._entries[a][1]=n,i=!0;break}i||this._entries.push([e,n])},this.get=function(e){for(var n in this._entries)if(this._entries[n][0]===e)return this._entries[n][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var n=-1;for(var i in this._entries)if(this._entries[i][0]===e){n=i;break}n!==-1&&this._entries.splice(n,1)}}var p2={x:180,y:160};function Es(e,n){this._eventBus=e,this._moddle=n;var i=this;e.on("import.render.start",1500,function(a,s){i._handleImport(s.definitions)})}Es.prototype._handleImport=function(e){if(!!e.diagrams){var n=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(a){!a.plane||!a.plane.bpmnElement||(n._processToDiagramMap[a.plane.bpmnElement.id]=a)});var i=e.diagrams.filter(a=>a.plane).flatMap(a=>n._createNewDiagrams(a.plane));i.forEach(function(a){n._movePlaneElementsToOrigin(a.plane)})}},Es.prototype._createNewDiagrams=function(e){var n=this,i=[],a=[];e.get("planeElement").forEach(function(c){var p=c.bpmnElement;if(!!p){var m=p.$parent;Ge(p,"bpmn:SubProcess")&&!c.isExpanded&&i.push(p),P7(p,e)&&a.push({diElement:c,parent:m})}});var s=[];return i.forEach(function(c){if(!n._processToDiagramMap[c.id]){var p=n._createDiagram(c);n._processToDiagramMap[c.id]=p,s.push(p)}}),a.forEach(function(c){for(var p=c.diElement,m=c.parent;m&&i.indexOf(m)===-1;)m=m.$parent;if(!!m){var g=n._processToDiagramMap[m.id];n._moveToDiPlane(p,g.plane)}}),s},Es.prototype._movePlaneElementsToOrigin=function(e){var n=e.get("planeElement"),i=F7(e),a={x:i.x-p2.x,y:i.y-p2.y};n.forEach(function(s){s.waypoint?s.waypoint.forEach(function(c){c.x=c.x-a.x,c.y=c.y-a.y}):s.bounds&&(s.bounds.x=s.bounds.x-a.x,s.bounds.y=s.bounds.y-a.y)})},Es.prototype._moveToDiPlane=function(e,n){var i=h2(e),a=i.plane.get("planeElement");a.splice(a.indexOf(e),1),n.get("planeElement").push(e)},Es.prototype._createDiagram=function(e){var n=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),i=this._moddle.create("bpmndi:BPMNDiagram",{plane:n});return n.$parent=i,n.bpmnElement=e,i.$parent=this._definitions,this._definitions.diagrams.push(i),i},Es.$inject=["eventBus","moddle"];function h2(e){return Ge(e,"bpmndi:BPMNDiagram")?e:h2(e.$parent)}function F7(e){var n={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(i){if(!!i.bounds){var a=dx(i.bounds);n.top=Math.min(a.top,n.top),n.left=Math.min(a.left,n.left)}}),p7(n)}function P7(e,n){var i=e.$parent;return!(!Ge(i,"bpmn:SubProcess")||i===n.bpmnElement||Q8(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var Jh=250,R7='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',j7="bjs-drilldown-empty";function oo(e,n,i,a,s){$n.call(this,n),this._canvas=e,this._eventBus=n,this._elementRegistry=i,this._overlays=a,this._translate=s;var c=this;this.executed("shape.toggleCollapse",Jh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.reverted("shape.toggleCollapse",Jh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.executed(["shape.create","shape.move","shape.delete"],Jh,function(p){var m=p.oldParent,g=p.newParent||p.parent,y=p.shape;c._canDrillDown(y)&&c._addOverlay(y),c._updateDrilldownOverlay(m),c._updateDrilldownOverlay(g),c._updateDrilldownOverlay(y)},!0),this.reverted(["shape.create","shape.move","shape.delete"],Jh,function(p){var m=p.oldParent,g=p.newParent||p.parent,y=p.shape;c._canDrillDown(y)&&c._addOverlay(y),c._updateDrilldownOverlay(m),c._updateDrilldownOverlay(g),c._updateDrilldownOverlay(y)},!0),n.on("import.render.complete",function(){i.filter(function(p){return c._canDrillDown(p)}).map(function(p){c._addOverlay(p)})})}Gr(oo,$n),oo.prototype._updateDrilldownOverlay=function(e){var n=this._canvas;if(!!e){var i=n.findRoot(e);i&&this._updateOverlayVisibility(i)}},oo.prototype._canDrillDown=function(e){var n=this._canvas;return Ge(e,"bpmn:SubProcess")&&n.findRoot(mx(e))},oo.prototype._updateOverlayVisibility=function(e){var n=this._overlays,i=Ut(e),a=n.get({element:i.id,type:"drilldown"})[0];if(!!a){var s=i&&i.get("flowElements")&&i.get("flowElements").length;ys(a.html).toggle(j7,!s)}},oo.prototype._addOverlay=function(e){var n=this._canvas,i=this._overlays,a=Ut(e),s=i.get({element:e,type:"drilldown"});s.length&&this._removeOverlay(e);var c=Li('<button type="button" class="bjs-drilldown">'+R7+"</button>"),p=a.get("name")||a.get("id"),m=this._translate("Open {element}",{element:p});c.setAttribute("title",m),c.addEventListener("click",function(){n.setRootElement(n.findRoot(mx(e)))}),i.add(e,"drilldown",{position:{bottom:-7,right:-8},html:c}),this._updateOverlayVisibility(e)},oo.prototype._removeOverlay=function(e){var n=this._overlays;n.remove({element:e,type:"drilldown"})},oo.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const L7={__depends__:[c2,E7,S7],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",d2],drilldownCentering:["type",f2],drilldownOverlayBehavior:["type",oo],subprocessCompatibility:["type",Es]};function m2(e){return e.originalEvent||e.srcEvent}function g2(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function A2(e,n){return(m2(e)||e).button===n}function Kh(e){return A2(e,0)}function Q7(e){return A2(e,1)}function z7(e){var n=m2(e)||e;return Kh(e)&&n.shiftKey}function H7(e){return!0}function Xh(e){return Kh(e)||Q7(e)}var v2=500;function b2(e,n,i){var a=this;function s(H,ee,ne){if(!m(H,ee)){var se,me,pe;ne?me=n.getGraphics(ne):(se=ee.delegateTarget||ee.target,se&&(me=se,ne=n.get(me))),!(!me||!ne)&&(pe=e.fire(H,{element:ne,gfx:me,originalEvent:ee}),pe===!1&&(ee.stopPropagation(),ee.preventDefault()))}}var c={};function p(H){return c[H]}function m(H,ee){var ne=y[H]||Kh;return!ne(ee)}var g={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},y={"element.contextmenu":H7,"element.mousedown":Xh,"element.mouseup":Xh,"element.click":Xh,"element.dblclick":Xh};function O(H,ee,ne){var se=g[H];if(!se)throw new Error("unmapped DOM event name <"+H+">");return s(se,ee,ne)}var E="svg, .djs-element";function N(H,ee,ne,se){var me=c[ne]=function(pe){s(ne,pe)};se&&(y[ne]=se),me.$delegate=tc.bind(H,E,ee,me)}function _(H,ee,ne){var se=p(ne);!se||tc.unbind(H,ee,se.$delegate)}function S(H){We(g,function(ee,ne){N(H,ne,ee)})}function M(H){We(g,function(ee,ne){_(H,ne,ee)})}e.on("canvas.destroy",function(H){M(H.svg)}),e.on("canvas.init",function(H){S(H.svg)}),e.on(["shape.added","connection.added"],function(H){var ee=H.element,ne=H.gfx;e.fire("interactionEvents.createHit",{element:ee,gfx:ne})}),e.on(["shape.changed","connection.changed"],v2,function(H){var ee=H.element,ne=H.gfx;e.fire("interactionEvents.updateHit",{element:ee,gfx:ne})}),e.on("interactionEvents.createHit",v2,function(H){var ee=H.element,ne=H.gfx;a.createDefaultHit(ee,ne)}),e.on("interactionEvents.updateHit",function(H){var ee=H.element,ne=H.gfx;a.updateDefaultHit(ee,ne)});var P=B("djs-hit djs-hit-stroke"),T=B("djs-hit djs-hit-click-stroke"),R=B("djs-hit djs-hit-all"),b=B("djs-hit djs-hit-no-move"),w={all:R,"click-stroke":T,stroke:P,"no-move":b};function B(H,ee){return ee=Je({stroke:"white",strokeWidth:15},ee||{}),i.cls(H,["no-fill","no-border"],ee)}function z(H,ee){var ne=w[ee];if(!ne)throw new Error("invalid hit type <"+ee+">");return Pt(H,ne),H}function F(H,ee){yn(H,ee)}this.removeHits=function(H){var ee=P9(".djs-hit",H);We(ee,vd)},this.createDefaultHit=function(H,ee){var ne=H.waypoints,se=H.isFrame,me;return ne?this.createWaypointsHit(ee,ne):(me=se?"stroke":"all",this.createBoxHit(ee,me,{width:H.width,height:H.height}))},this.createWaypointsHit=function(H,ee){var ne=ax(ee);return z(ne,"stroke"),F(H,ne),ne},this.createBoxHit=function(H,ee,ne){ne=Je({x:0,y:0},ne);var se=Rt("rect");return z(se,ee),Pt(se,ne),F(H,se),se},this.updateDefaultHit=function(H,ee){var ne=xa(".djs-hit",ee);if(!!ne)return H.waypoints?GB(ne,H.waypoints):Pt(ne,{width:H.width,height:H.height}),ne},this.fire=s,this.triggerMouseEvent=O,this.mouseHandler=p,this.registerEvent=N,this.unregisterEvent=_}b2.$inject=["eventBus","elementRegistry","styles"];const V7={__init__:["interactionEvents"],interactionEvents:["type",b2]};function rc(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var i=this;e.on(["shape.remove","connection.remove"],function(a){var s=a.element;i.deselect(s)}),e.on(["diagram.clear","root.set"],function(a){i.select(null)})}rc.$inject=["eventBus","canvas"],rc.prototype.deselect=function(e){var n=this._selectedElements,i=n.indexOf(e);if(i!==-1){var a=n.slice();n.splice(i,1),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:n})}},rc.prototype.get=function(){return this._selectedElements},rc.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},rc.prototype.select=function(e,n){var i=this._selectedElements,a=i.slice();kr(e)||(e=e?[e]:[]);var s=this._canvas,c=s.getRootElement();e=e.filter(function(p){var m=s.findRoot(p);return c===m}),n?We(e,function(p){i.indexOf(p)===-1&&i.push(p)}):this._selectedElements=i=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:i})};var _2="hover",y2="selected";function x2(e,n){this._canvas=e;function i(s,c){e.addMarker(s,c)}function a(s,c){e.removeMarker(s,c)}n.on("element.hover",function(s){i(s.element,_2)}),n.on("element.out",function(s){a(s.element,_2)}),n.on("selection.changed",function(s){function c(y){a(y,y2)}function p(y){i(y,y2)}var m=s.oldSelection,g=s.newSelection;We(m,function(y){g.indexOf(y)===-1&&c(y)}),We(g,function(y){m.indexOf(y)===-1&&p(y)})})}x2.$inject=["canvas","eventBus"];function w2(e,n,i,a){e.on("create.end",500,function(s){var c=s.context,p=c.canExecute,m=c.elements,g=c.hints||{},y=g.autoSelect;if(p){if(y===!1)return;kr(y)?n.select(y):n.select(m.filter(U7))}}),e.on("connect.end",500,function(s){var c=s.context,p=c.connection;p&&n.select(p)}),e.on("shape.move.end",500,function(s){var c=s.previousSelection||[],p=a.get(s.context.shape.id),m=Sr(c,function(g){return p.id===g.id});m||n.select(p)}),e.on("element.click",function(s){if(!!Kh(s)){var c=s.element;c===i.getRootElement()&&(c=null);var p=n.isSelected(c),m=n.get().length>1,g=z7(s);if(p&&m)return g?n.deselect(c):n.select(c);p?n.deselect(c):n.select(c,g)}})}w2.$inject=["eventBus","selection","canvas","elementRegistry"];function U7(e){return!e.hidden}const Y7={__init__:["selectionVisuals","selectionBehavior"],__depends__:[V7],selection:["type",rc],selectionVisuals:["type",x2],selectionBehavior:["type",w2]},W7=/^class[ {]/;function G7(e){return W7.test(e.toString())}function gx(e){return Array.isArray(e)}function Ax(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Zh(...e){e.length===1&&gx(e[0])&&(e=e[0]),e=[...e];const n=e.pop();return n.$inject=e,n}const J7=/constructor\s*[^(]*\(\s*([^)]*)\)/m,K7=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,X7=/\/\*([^*]*)\*\//m;function Z7(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const n=e.toString().match(G7(e)?J7:K7);if(!n)return[];const i=n[1]||n[2];return i&&i.split(",").map(a=>{const s=a.match(X7);return(s&&s[1]||a).trim()})||[]}function E2(e,n){const i=n||{get:function(b,w){if(a.push(b),w===!1)return null;throw m(`No provider for "${b}"!`)}},a=[],s=this._providers=Object.create(i._providers||null),c=this._instances=Object.create(null),p=c.injector=this,m=function(b){const w=a.join(" -> ");return a.length=0,new Error(w?`${b} (Resolving: ${w})`:b)};function g(b,w){if(!s[b]&&b.includes(".")){const B=b.split(".");let z=g(B.shift());for(;B.length;)z=z[B.shift()];return z}if(Ax(c,b))return c[b];if(Ax(s,b)){if(a.indexOf(b)!==-1)throw a.push(b),m("Cannot resolve circular dependency!");return a.push(b),c[b]=s[b][0](s[b][1]),a.pop(),c[b]}return i.get(b,w)}function y(b,w){if(typeof w>"u"&&(w={}),typeof b!="function")if(gx(b))b=Zh(b.slice());else throw m(`Cannot invoke "${b}". Expected a function!`);const z=(b.$inject||Z7(b)).map(F=>Ax(w,F)?w[F]:g(F));return{fn:b,dependencies:z}}function O(b){const{fn:w,dependencies:B}=y(b),z=Function.prototype.bind.call(w,null,...B);return new z}function E(b,w,B){const{fn:z,dependencies:F}=y(b,B);return z.apply(w,F)}function N(b){return Zh(w=>b.get(w))}function _(b,w){if(w&&w.length){const B=Object.create(null),z=Object.create(null),F=[],H=[],ee=[];let ne,se,me,pe;for(let Se in s)ne=s[Se],w.indexOf(Se)!==-1&&(ne[2]==="private"?(se=F.indexOf(ne[3]),se===-1?(me=ne[3].createChild([],w),pe=N(me),F.push(ne[3]),H.push(me),ee.push(pe),B[Se]=[pe,Se,"private",me]):B[Se]=[ee[se],Se,"private",H[se]]):B[Se]=[ne[2],ne[1]],z[Se]=!0),(ne[2]==="factory"||ne[2]==="type")&&ne[1].$scope&&w.forEach(ye=>{ne[1].$scope.indexOf(ye)!==-1&&(B[Se]=[ne[2],ne[1]],z[ye]=!0)});w.forEach(Se=>{if(!z[Se])throw new Error('No provider for "'+Se+'". Cannot use provider from the parent!')}),b.unshift(B)}return new E2(b,p)}const S={factory:E,type:O,value:function(b){return b}};function M(b,w){const B=b.__init__||[];return function(){B.forEach(z=>{typeof z=="string"?w.get(z):w.invoke(z)})}}function P(b){const w=b.__exports__;if(w){const B=b.__modules__,z=Object.keys(b).reduce((se,me)=>(me!=="__exports__"&&me!=="__modules__"&&me!=="__init__"&&me!=="__depends__"&&(se[me]=b[me]),se),Object.create(null)),F=(B||[]).concat(z),H=_(F),ee=Zh(function(se){return H.get(se)});w.forEach(function(se){s[se]=[ee,se,"private",H]});const ne=(b.__init__||[]).slice();return ne.unshift(function(){H.init()}),b=Object.assign({},b,{__init__:ne}),M(b,H)}return Object.keys(b).forEach(function(B){if(B==="__init__"||B==="__depends__")return;const z=b[B];if(z[2]==="private"){s[B]=z;return}const F=z[0],H=z[1];s[B]=[S[F],$7(F,H),F]}),M(b,p)}function T(b,w){return b.indexOf(w)!==-1||(b=(w.__depends__||[]).reduce(T,b),b.indexOf(w)!==-1)?b:b.concat(w)}function R(b){const w=b.reduce(T,[]).map(P);let B=!1;return function(){B||(B=!0,w.forEach(z=>z()))}}this.get=g,this.invoke=E,this.instantiate=O,this.createChild=_,this.init=R(e)}function $7(e,n){return e!=="value"&&gx(n)&&(n=Zh(n.slice())),n}var q7=1;function so(e,n){ya.call(this,e,q7),this.CONNECTION_STYLE=n.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=n.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=n.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}Gr(so,ya),so.prototype.canRender=function(){return!0},so.prototype.drawShape=function(n,i,a){var s=Rt("rect");return Pt(s,{x:0,y:0,width:i.width||0,height:i.height||0}),o2(i)?Pt(s,Je({},this.FRAME_STYLE,a||{})):Pt(s,Je({},this.SHAPE_STYLE,a||{})),yn(n,s),s},so.prototype.drawConnection=function(n,i,a){var s=ax(i.waypoints,Je({},this.CONNECTION_STYLE,a||{}));return yn(n,s),s},so.prototype.getShapePath=function(n){var i=n.x,a=n.y,s=n.width,c=n.height,p=[["M",i,a],["l",s,0],["l",0,c],["l",-s,0],["z"]];return _s(p)},so.prototype.getConnectionPath=function(n){var i=n.waypoints,a,s,c=[];for(a=0;s=i[a];a++)s=s.original||s,c.push([a===0?"M":"L",s.x,s.y]);return _s(c)},so.$inject=["eventBus","styles"];function eH(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(i,a,s){var c=this.style(a,s);return Je(c,{class:i})},this.style=function(i,a){!kr(i)&&!a&&(a=i,i=[]);var s=ec(i,function(c,p){return Je(c,e[p]||{})},{});return a?Je(s,a):s},this.computeStyle=function(i,a,s){return kr(a)||(s=a,a=[]),n.style(a||[],Je({},s,i||{}))}}const tH={__init__:["defaultRenderer"],defaultRenderer:["type",so],styles:["type",eH]};function nH(e,n){if(!e||!n)return-1;var i=e.indexOf(n);return i!==-1&&e.splice(i,1),i}function iH(e,n,i){if(!(!e||!n)){typeof i!="number"&&(i=-1);var a=e.indexOf(n);if(a!==-1){if(a===i)return;if(i!==-1)e.splice(a,1);else return}i!==-1?e.splice(i,0,n):e.push(n)}}function $h(e,n){return Math.round(e*n)/n}function k2(e){return no(e)?e+"px":e}function rH(e){for(;e.parent;)e=e.parent;return e}function aH(e){e=Je({},{width:"100%",height:"100%"},e);const n=e.container||document.body,i=document.createElement("div");return i.setAttribute("class","djs-container djs-parent"),Tn(i,{position:"relative",overflow:"hidden",width:k2(e.width),height:k2(e.height)}),n.appendChild(i),i}function C2(e,n,i){const a=Rt("g");Jr(a).add(n);const s=i!==void 0?i:e.childNodes.length-1;return e.insertBefore(a,e.childNodes[s]||null),a}const oH="base",S2=0,sH=1,lH={shape:["x","y","width","height"],connection:["waypoints"]};function qe(e,n,i,a){this._eventBus=n,this._elementRegistry=a,this._graphicsFactory=i,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}qe.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],qe.prototype._init=function(e){const n=this._eventBus,i=this._container=aH(e),a=this._svg=Rt("svg");Pt(a,{width:"100%",height:"100%"}),sx(a,"tabindex",0),e.autoFocus&&n.on("element.hover",()=>{this.restoreFocus()}),n.on("element.mousedown",500,c=>{this.focus()}),a.addEventListener("focusin",()=>{this._setFocused(!0)}),a.addEventListener("focusout",()=>{this._setFocused(!1)}),yn(i,a);const s=this._viewport=C2(a,"viewport");e.deferUpdate&&(this._viewboxChanged=F8(io(this._viewboxChanged,this),300)),n.on("diagram.init",()=>{n.fire("canvas.init",{svg:a,viewport:s})}),n.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),n.on("diagram.destroy",500,this._destroy,this),n.on("diagram.clear",500,this._clear,this)},qe.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},qe.prototype._setFocused=function(e){e!=this._focused&&(this._focused=e,this._eventBus.fire("canvas.focus.changed",{focused:e}))},qe.prototype._clear=function(){this._elementRegistry.getAll().forEach(n=>{const i=a2(n);i==="root"?this.removeRootElement(n):this._removeElement(n,i)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},qe.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)},qe.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()},qe.prototype.isFocused=function(){return this._focused},qe.prototype.getDefaultLayer=function(){return this.getLayer(oH,S2)},qe.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");let i=this._layers[e];if(i||(i=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&i.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return i.group},qe.prototype._getChildIndex=function(e){return ec(this._layers,function(n,i){return i.visible&&e>=i.index&&n++,n},0)},qe.prototype._createLayer=function(e,n){typeof n>"u"&&(n=sH);const i=this._getChildIndex(n);return{group:C2(this._viewport,"layer-"+e,i),index:n,visible:!0}},qe.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const i=this._viewport,a=n.group,s=n.index;if(n.visible)return a;const c=this._getChildIndex(s);return i.insertBefore(a,i.childNodes[c]||null),n.visible=!0,a},qe.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const i=n.group;return n.visible&&(vd(i),n.visible=!1),i},qe.prototype._removeLayer=function(e){const n=this._layers[e];n&&(delete this._layers[e],vd(n.group))},qe.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},qe.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(rH(e))||{}).rootElement:void 0},qe.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},qe.prototype._findPlaneForRoot=function(e){return Sr(this._planes,function(n){return n.rootElement===e})},qe.prototype.getContainer=function(){return this._container},qe.prototype._updateMarker=function(e,n,i){let a;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,a=this._elementRegistry._elements[e.id],a&&(We([a.gfx,a.secondaryGfx],function(s){s&&(i?(e.markers.add(n),Jr(s).add(n)):(e.markers.delete(n),Jr(s).remove(n)))}),this._eventBus.fire("element.marker.update",{element:e,gfx:a.gfx,marker:n,add:!!i}))},qe.prototype.addMarker=function(e,n){this._updateMarker(e,n,!0)},qe.prototype.removeMarker=function(e,n){this._updateMarker(e,n,!1)},qe.prototype.hasMarker=function(e,n){return e.id||(e=this._elementRegistry.get(e)),e.markers?e.markers.has(n):!1},qe.prototype.toggleMarker=function(e,n){this.hasMarker(e,n)?this.removeMarker(e,n):this.addMarker(e,n)},qe.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},qe.prototype.addRootElement=function(e){const n=this._rootsIdx++;e||(e={id:"__implicitroot_"+n,children:[],isImplicit:!0});const i=e.layer="root-"+n;this._ensureValid("root",e);const a=this.getLayer(i,S2);return this.hideLayer(i),this._addRoot(e,a),this._planes.push({rootElement:e,layer:a}),e},qe.prototype.removeRootElement=function(e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),!!this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter(function(i){return i.rootElement!==e}),this._rootElement===e&&(this._rootElement=null),e},qe.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let n;if(!e)throw new Error("rootElement required");return n=this._findPlaneForRoot(e),n||(e=this.addRootElement(e)),this._setRoot(e),e},qe.prototype._removeRoot=function(e){const n=this._elementRegistry,i=this._eventBus;i.fire("root.remove",{element:e}),i.fire("root.removed",{element:e}),n.remove(e)},qe.prototype._addRoot=function(e,n){const i=this._elementRegistry,a=this._eventBus;a.fire("root.add",{element:e}),i.add(e,n),a.fire("root.added",{element:e,gfx:n})},qe.prototype._setRoot=function(e,n){const i=this._rootElement;i&&(this._elementRegistry.updateGraphics(i,null,!0),this.hideLayer(i.layer)),e&&(n||(n=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},qe.prototype._ensureValid=function(e,n){if(!n.id)throw new Error("element must have an id");if(this._elementRegistry.get(n.id))throw new Error("element <"+n.id+"> already exists");const i=lH[e];if(!NB(i,function(s){return typeof n[s]<"u"}))throw new Error("must supply { "+i.join(", ")+" } with "+e)},qe.prototype._setParent=function(e,n,i){iH(n.children,e,i),e.parent=n},qe.prototype._addElement=function(e,n,i,a){i=i||this.getRootElement();const s=this._eventBus,c=this._graphicsFactory;this._ensureValid(e,n),s.fire(e+".add",{element:n,parent:i}),this._setParent(n,i,a);const p=c.create(e,n,a);return this._elementRegistry.add(n,p),c.update(e,n,p),s.fire(e+".added",{element:n,gfx:p}),n},qe.prototype.addShape=function(e,n,i){return this._addElement("shape",e,n,i)},qe.prototype.addConnection=function(e,n,i){return this._addElement("connection",e,n,i)},qe.prototype._removeElement=function(e,n){const i=this._elementRegistry,a=this._graphicsFactory,s=this._eventBus;if(e=i.get(e.id||e),!!e)return s.fire(n+".remove",{element:e}),a.remove(e),nH(e.parent&&e.parent.children,e),e.parent=null,s.fire(n+".removed",{element:e}),i.remove(e),e},qe.prototype.removeShape=function(e){return this._removeElement(e,"shape")},qe.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},qe.prototype.getGraphics=function(e,n){return this._elementRegistry.getGraphics(e,n)},qe.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},qe.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},qe.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const n=this._viewport,i=this.getSize();let a,s,c,p,m,g,y;if(e)this._changeViewbox(function(){m=Math.min(i.width/e.width,i.height/e.height);const O=this._svg.createSVGMatrix().scale(m).translate(-e.x,-e.y);bd(n,O)});else return c=this._rootElement?this.getActiveLayer():null,a=c&&c.getBBox()||{},p=bd(n),s=p?p.matrix:n9(),m=$h(s.a,1e3),g=$h(-s.e||0,1e3),y=$h(-s.f||0,1e3),e=this._cachedViewbox={x:g?g/m:0,y:y?y/m:0,width:i.width/m,height:i.height/m,scale:m,inner:{width:a.width||0,height:a.height||0,x:a.x||0,y:a.y||0},outer:i},e;return e},qe.prototype.scroll=function(e){const n=this._viewport;let i=n.getCTM();return e&&this._changeViewbox(function(){e=Je({dx:0,dy:0},e||{}),i=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(i),D2(n,i)}),{x:i.e,y:i.f}},qe.prototype.scrollToElement=function(e,n){let i=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const a=this.findRoot(e);if(a!==this.getRootElement()&&this.setRootElement(a),a===e)return;n||(n={}),typeof n=="number"&&(i=n),n={top:n.top||i,right:n.right||i,bottom:n.bottom||i,left:n.left||i};const s=xd(e),c=dx(s),p=this.viewbox(),m=this.zoom();let g,y;p.y+=n.top/m,p.x+=n.left/m,p.width-=(n.right+n.left)/m,p.height-=(n.bottom+n.top)/m;const O=dx(p);if(!(s.width<p.width&&s.height<p.height))g=s.x-p.x,y=s.y-p.y;else{const N=Math.max(0,c.right-O.right),_=Math.min(0,c.left-O.left),S=Math.max(0,c.bottom-O.bottom),M=Math.min(0,c.top-O.top);g=N||_,y=S||M}this.scroll({dx:-g*m,dy:-y*m})},qe.prototype.zoom=function(e,n){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(n);let i,a;return this._changeViewbox(function(){typeof n!="object"&&(i=this.viewbox().outer,n={x:i.width/2,y:i.height/2}),a=this._setZoom(e,n)}),$h(a.a,1e3)};function D2(e,n){const i="matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")";e.setAttribute("transform",i)}qe.prototype._fitViewport=function(e){const n=this.viewbox(),i=n.outer,a=n.inner;let s,c;return a.x>=0&&a.y>=0&&a.x+a.width<=i.width&&a.y+a.height<=i.height&&!e?c={x:0,y:0,width:Math.max(a.width+a.x,i.width),height:Math.max(a.height+a.y,i.height)}:(s=Math.min(1,i.width/a.width,i.height/a.height),c={x:a.x+(e?a.width/2-i.width/s/2:0),y:a.y+(e?a.height/2-i.height/s/2:0),width:i.width/s,height:i.height/s}),this.viewbox(c),this.viewbox(!1).scale},qe.prototype._setZoom=function(e,n){const i=this._svg,a=this._viewport,s=i.createSVGMatrix(),c=i.createSVGPoint();let p,m,g,y,O;g=a.getCTM();const E=g.a;return n?(p=Je(c,n),m=p.matrixTransform(g.inverse()),y=s.translate(m.x,m.y).scale(1/E*e).translate(-m.x,-m.y),O=g.multiply(y)):O=s.scale(e),D2(this._viewport,O),O},qe.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},qe.prototype.getAbsoluteBBox=function(e){const n=this.viewbox();let i;e.waypoints?i=this.getGraphics(e).getBBox():i=e;const a=i.x*n.scale-n.x*n.scale,s=i.y*n.scale-n.y*n.scale,c=i.width*n.scale,p=i.height*n.scale;return{x:a,y:s,width:c,height:p}},qe.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var ac="data-element-id";function Qi(e){this._elements={},this._eventBus=e}Qi.$inject=["eventBus"],Qi.prototype.add=function(e,n,i){var a=e.id;this._validateId(a),Pt(n,ac,a),i&&Pt(i,ac,a),this._elements[a]={element:e,gfx:n,secondaryGfx:i}},Qi.prototype.remove=function(e){var n=this._elements,i=e.id||e,a=i&&n[i];a&&(Pt(a.gfx,ac,""),a.secondaryGfx&&Pt(a.secondaryGfx,ac,""),delete n[i])},Qi.prototype.updateId=function(e,n){this._validateId(n),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:n});var i=this.getGraphics(e),a=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,i,a)},Qi.prototype.updateGraphics=function(e,n,i){var a=e.id||e,s=this._elements[a];return i?s.secondaryGfx=n:s.gfx=n,n&&Pt(n,ac,a),n},Qi.prototype.get=function(e){var n;typeof e=="string"?n=e:n=e&&Pt(e,ac);var i=this._elements[n];return i&&i.element},Qi.prototype.filter=function(e){var n=[];return this.forEach(function(i,a){e(i,a)&&n.push(i)}),n},Qi.prototype.find=function(e){for(var n=this._elements,i=Object.keys(n),a=0;a<i.length;a++){var s=i[a],c=n[s],p=c.element,m=c.gfx;if(e(p,m))return p}},Qi.prototype.getAll=function(){return this.filter(function(e){return e})},Qi.prototype.forEach=function(e){var n=this._elements;Object.keys(n).forEach(function(i){var a=n[i],s=a.element,c=a.gfx;return e(s,c)})},Qi.prototype.getGraphics=function(e,n){var i=e.id||e,a=this._elements[i];return a&&(n?a.secondaryGfx:a.gfx)},Qi.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};function cH(e,n,i,a){var s=i.inverse;return Object.defineProperty(e,"remove",{value:function(c){var p=this.indexOf(c);return p!==-1&&(this.splice(p,1),n.unset(c,s,a)),c}}),Object.defineProperty(e,"contains",{value:function(c){return this.indexOf(c)!==-1}}),Object.defineProperty(e,"add",{value:function(c,p){var m=this.indexOf(c);if(typeof p>"u"){if(m!==-1)return;p=this.length}m!==-1&&this.splice(m,1),this.splice(p,0,c),m===-1&&n.set(c,s,a)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function uH(e){return e.__refs_collection===!0}function dH(e,n){return Object.prototype.hasOwnProperty.call(e,n.name||n)}function I2(e,n,i){var a=cH(i[n.name]||[],e,n,i);Object.defineProperty(i,n.name,{enumerable:n.enumerable,value:a}),a.length&&a.forEach(function(s){e.set(s,n.inverse,i)})}function fH(e,n,i){var a=n.inverse,s=i[n.name];Object.defineProperty(i,n.name,{configurable:n.configurable,enumerable:n.enumerable,get:function(){return s},set:function(c){if(c!==s){var p=s;s=null,p&&e.unset(p,a,i),s=c,e.set(s,a,i)}}})}function tr(e,n){if(!(this instanceof tr))return new tr(e,n);e.inverse=n,n.inverse=e,this.props={},this.props[e.name]=e,this.props[n.name]=n}tr.prototype.bind=function(e,n){if(typeof n=="string"){if(!this.props[n])throw new Error("no property <"+n+"> in ref");n=this.props[n]}n.collection?I2(this,n,e):fH(this,n,e)},tr.prototype.ensureRefsCollection=function(e,n){var i=e[n.name];return uH(i)||I2(this,n,e),i},tr.prototype.ensureBound=function(e,n){dH(e,n)||this.bind(e,n)},tr.prototype.unset=function(e,n,i){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).remove(i):e[n.name]=void 0)},tr.prototype.set=function(e,n,i){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).add(i):e[n.name]=i)};var vx=new tr({name:"children",enumerable:!0,collection:!0},{name:"parent"}),B2=new tr({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),O2=new tr({name:"attachers",collection:!0},{name:"host"}),T2=new tr({name:"outgoing",collection:!0},{name:"source"}),N2=new tr({name:"incoming",collection:!0},{name:"target"});function wd(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var n=this.label,i=this.labels;!e&&n?i.remove(n):i.add(e,0)}}),vx.bind(this,"parent"),B2.bind(this,"labels"),T2.bind(this,"outgoing"),N2.bind(this,"incoming")}function Ed(){wd.call(this),vx.bind(this,"children"),O2.bind(this,"host"),O2.bind(this,"attachers")}Gr(Ed,wd);function M2(){wd.call(this),vx.bind(this,"children")}Gr(M2,Ed);function F2(){Ed.call(this),B2.bind(this,"labelTarget")}Gr(F2,Ed);function P2(){wd.call(this),T2.bind(this,"source"),N2.bind(this,"target")}Gr(P2,wd);var pH={connection:P2,shape:Ed,label:F2,root:M2};function hH(e,n){var i=pH[e];if(!i)throw new Error("unknown type: <"+e+">");return Je(new i,n)}function oc(){this._uid=12}oc.prototype.createRoot=function(e){return this.create("root",e)},oc.prototype.createLabel=function(e){return this.create("label",e)},oc.prototype.createShape=function(e){return this.create("shape",e)},oc.prototype.createConnection=function(e){return this.create("connection",e)},oc.prototype.create=function(e,n){return n=Je({},n||{}),n.id||(n.id=e+"_"+this._uid++),hH(e,n)};var qh="__fn",R2=1e3,mH=Array.prototype.slice;function vi(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}vi.prototype.on=function(e,n,i,a){if(e=kr(e)?e:[e],As(n)&&(a=i,i=n,n=R2),!no(n))throw new Error("priority must be a number");var s=i;a&&(s=io(i,a),s[qh]=i[qh]||i);var c=this;e.forEach(function(p){c._addListener(p,{priority:n,callback:s,next:null})})},vi.prototype.once=function(e,n,i,a){var s=this;if(As(n)&&(a=i,i=n,n=R2),!no(n))throw new Error("priority must be a number");function c(){c.__isTomb=!0;var p=i.apply(a,arguments);return s.off(e,c),p}c[qh]=i,this.on(e,n,c)},vi.prototype.off=function(e,n){e=kr(e)?e:[e];var i=this;e.forEach(function(a){i._removeListener(a,n)})},vi.prototype.createEvent=function(e){var n=new kd;return n.init(e),n},vi.prototype.fire=function(e,n){var i,a,s,c;if(c=mH.call(arguments),typeof e=="object"&&(n=e,e=n.type),!e)throw new Error("no event type specified");if(a=this._listeners[e],!!a){n instanceof kd?i=n:i=this.createEvent(n),c[0]=i;var p=i.type;e!==p&&(i.type=e);try{s=this._invokeListeners(i,c,a)}finally{e!==p&&(i.type=p)}return s===void 0&&i.defaultPrevented&&(s=!1),s}},vi.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},vi.prototype._destroy=function(){this._listeners={}},vi.prototype._invokeListeners=function(e,n,i){for(var a;i&&!e.cancelBubble;)a=this._invokeListener(e,n,i),i=i.next;return a},vi.prototype._invokeListener=function(e,n,i){var a;if(i.callback.__isTomb)return a;try{a=gH(i.callback,n),a!==void 0&&(e.returnValue=a,e.stopPropagation()),a===!1&&e.preventDefault()}catch(s){if(!this.handleError(s))throw console.error("unhandled error in event listener",s),s}return a},vi.prototype._addListener=function(e,n){var i=this._getListeners(e),a;if(!i){this._setListeners(e,n);return}for(;i;){if(i.priority<n.priority){n.next=i,a?a.next=n:this._setListeners(e,n);return}a=i,i=i.next}a.next=n},vi.prototype._getListeners=function(e){return this._listeners[e]},vi.prototype._setListeners=function(e,n){this._listeners[e]=n},vi.prototype._removeListener=function(e,n){var i=this._getListeners(e),a,s,c;if(!n){this._setListeners(e,null);return}for(;i;)a=i.next,c=i.callback,(c===n||c[qh]===n)&&(s?s.next=a:this._setListeners(e,a)),s=i,i=a};function kd(){}kd.prototype.stopPropagation=function(){this.cancelBubble=!0},kd.prototype.preventDefault=function(){this.defaultPrevented=!0},kd.prototype.init=function(e){Je(this,e||{})};function gH(e,n){return e.apply(null,n)}function AH(e){return e.childNodes[0]}function vH(e){return e.parentNode.childNodes[1]}function zi(e,n){this._eventBus=e,this._elementRegistry=n}zi.$inject=["eventBus","elementRegistry"],zi.prototype._getChildrenContainer=function(e){var n=this._elementRegistry.getGraphics(e),i;return e.parent?(i=vH(n),i||(i=Rt("g"),Jr(i).add("djs-children"),yn(n.parentNode,i))):i=n,i},zi.prototype._clear=function(e){var n=AH(e);return KB(n),n},zi.prototype._createContainer=function(e,n,i,a){var s=Rt("g");Jr(s).add("djs-group"),typeof i<"u"?j2(s,n,n.childNodes[i]):yn(n,s);var c=Rt("g");Jr(c).add("djs-element"),Jr(c).add("djs-"+e),a&&Jr(c).add("djs-frame"),yn(s,c);var p=Rt("g");return Jr(p).add("djs-visual"),yn(c,p),c},zi.prototype.create=function(e,n,i){var a=this._getChildrenContainer(n.parent);return this._createContainer(e,a,i,o2(n))},zi.prototype.updateContainments=function(e){var n=this,i=this._elementRegistry,a;a=ec(e,function(s,c){return c.parent&&(s[c.parent.id]=c.parent),s},{}),We(a,function(s){var c=s.children;if(!!c){var p=n._getChildrenContainer(s);We(c.slice().reverse(),function(m){var g=i.getGraphics(m);j2(g.parentNode,p)})}})},zi.prototype.drawShape=function(e,n,i={}){var a=this._eventBus;return a.fire("render.shape",{gfx:e,element:n,attrs:i})},zi.prototype.getShapePath=function(e){var n=this._eventBus;return n.fire("render.getShapePath",e)},zi.prototype.drawConnection=function(e,n,i={}){var a=this._eventBus;return a.fire("render.connection",{gfx:e,element:n,attrs:i})},zi.prototype.getConnectionPath=function(e){var n=this._eventBus;return n.fire("render.getConnectionPath",e)},zi.prototype.update=function(e,n,i){if(!!n.parent){var a=this._clear(i);if(e==="shape")this.drawShape(a,n),e2(i,n.x,n.y);else if(e==="connection")this.drawConnection(a,n);else throw new Error("unknown type: "+e);n.hidden?Pt(i,"display","none"):Pt(i,"display","block")}},zi.prototype.remove=function(e){var n=this._elementRegistry.getGraphics(e);vd(n.parentNode)};function j2(e,n,i){var a=i||n.firstChild;e!==a&&n.insertBefore(e,a)}const bH={__depends__:[tH],__init__:["canvas"],canvas:["type",qe],elementRegistry:["type",Qi],elementFactory:["type",oc],eventBus:["type",vi],graphicsFactory:["type",zi]};function _H(e){var n=new E2(e);return n.init(),n}function yH(e){e=e||{};var n={config:["value",e]},i=[n,bH].concat(e.modules||[]);return _H(i)}function lo(e,n){this._injector=n||yH(e),this.get("eventBus").fire("diagram.init")}lo.prototype.get=function(e,n){return this._injector.get(e,n)},lo.prototype.invoke=function(e,n,i){return this._injector.invoke(e,n,i)},lo.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},lo.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function bx(){}bx.prototype.get=function(e){return this.$model.properties.get(this,e)},bx.prototype.set=function(e,n){this.$model.properties.set(this,e,n)};function L2(e,n){this.model=e,this.properties=n}L2.prototype.createType=function(e){var n=this.model,i=this.properties,a=Object.create(bx.prototype);We(e.properties,function(p){!p.isMany&&p.default!==void 0&&(a[p.name]=p.default)}),i.defineModel(a,n),i.defineDescriptor(a,e);var s=e.ns.name;function c(p){i.define(this,"$type",{value:s,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),We(p,io(function(m,g){this.set(g,m)},this))}return c.prototype=a,c.hasType=a.$instanceOf=this.model.hasType,i.defineModel(c,n),i.defineDescriptor(c,e),c};var xH={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},Q2={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function _x(e,n){var i=Q2[e];return i?i(n):n}function yx(e){return!!xH[e]}function z2(e){return!!Q2[e]}function Mn(e,n){var i=e.split(/:/),a,s;if(i.length===1)a=e,s=n;else if(i.length===2)a=i[1],s=i[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(s?s+":":"")+a,{name:e,prefix:s,localName:a}}function Hi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Hi.prototype.build=function(){return R8(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Hi.prototype.addProperty=function(e,n,i){typeof n=="boolean"&&(i=n,n=void 0),this.addNamedProperty(e,i!==!1);var a=this.properties;n!==void 0?a.splice(n,0,e):a.push(e)},Hi.prototype.replaceProperty=function(e,n,i){var a=e.ns,s=this.properties,c=this.propertiesByName,p=e.name!==n.name;if(e.isId){if(!n.isId)throw new Error("property <"+n.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(n,!1)}if(e.isBody){if(!n.isBody)throw new Error("property <"+n.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(n,!1)}var m=s.indexOf(e);if(m===-1)throw new Error("property <"+a.name+"> not found in property list");s.splice(m,1),this.addProperty(n,i?void 0:m,p),c[a.name]=c[a.localName]=n},Hi.prototype.redefineProperty=function(e,n,i){var a=e.ns.prefix,s=n.split("#"),c=Mn(s[0],a),p=Mn(s[1],c.prefix).name,m=this.propertiesByName[p];if(m)this.replaceProperty(m,e,i);else throw new Error("refined property <"+p+"> not found");delete e.redefines},Hi.prototype.addNamedProperty=function(e,n){var i=e.ns,a=this.propertiesByName;n&&(this.assertNotDefined(e,i.name),this.assertNotDefined(e,i.localName)),a[i.name]=a[i.localName]=e},Hi.prototype.removeNamedProperty=function(e){var n=e.ns,i=this.propertiesByName;delete i[n.name],delete i[n.localName]},Hi.prototype.setBodyProperty=function(e,n){if(n&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},Hi.prototype.setIdProperty=function(e,n){if(n&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},Hi.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},Hi.prototype.assertNotDefined=function(e,n){var i=e.name,a=this.propertiesByName[i];if(a)throw new Error("property <"+i+"> already defined; override of <"+a.definedBy.ns.name+"#"+a.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},Hi.prototype.hasProperty=function(e){return this.propertiesByName[e]},Hi.prototype.addTrait=function(e,n){n&&this.assertNotTrait(e);var i=this.allTypesByName,a=this.allTypes,s=e.name;s in i||(We(e.properties,io(function(c){c=Je({},c,{name:c.ns.localName,inherited:n}),Object.defineProperty(c,"definedBy",{value:e});var p=c.replaces,m=c.redefines;p||m?this.redefineProperty(c,p||m,p):(c.isBody&&this.setBodyProperty(c),c.isId&&this.setIdProperty(c),this.addProperty(c))},this)),a.push(e),i[s]=e)};function co(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,We(e,io(this.registerPackage,this))}co.prototype.getPackage=function(e){return this.packageMap[e]},co.prototype.getPackages=function(){return this.packages},co.prototype.registerPackage=function(e){e=Je({},e);var n=this.packageMap;H2(n,e,"prefix"),H2(n,e,"uri"),We(e.types,io(function(i){this.registerType(i,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)},co.prototype.registerType=function(e,n){e=Je({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Je(e.meta||{})});var i=Mn(e.name,n.prefix),a=i.name,s={};We(e.properties,io(function(c){var p=Mn(c.name,i.prefix),m=p.name;yx(c.type)||(c.type=Mn(c.type,p.prefix).name),Je(c,{ns:p,name:m}),s[m]=c},this)),Je(e,{ns:i,name:a,propertiesByName:s}),We(e.extends,io(function(c){var p=Mn(c,i.prefix),m=this.typeMap[p.name];m.traits=m.traits||[],m.traits.push(a)},this)),this.definePackage(e,n),this.typeMap[a]=e},co.prototype.mapTypes=function(e,n,i){var a=yx(e.name)?{name:e.name}:this.typeMap[e.name],s=this;function c(g,y){var O=Mn(g,yx(g)?"":e.prefix);s.mapTypes(O,n,y)}function p(g){return c(g,!0)}function m(g){return c(g,!1)}if(!a)throw new Error("unknown type <"+e.name+">");We(a.superClass,i?p:m),n(a,!i),We(a.traits,p)},co.prototype.getEffectiveDescriptor=function(e){var n=Mn(e),i=new Hi(n);this.mapTypes(n,function(s,c){i.addTrait(s,c)});var a=i.build();return this.definePackage(a,a.allTypes[a.allTypes.length-1].$pkg),a},co.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})};function H2(e,n,i){var a=n[i];if(a in e)throw new Error("package with "+i+" <"+a+"> already defined")}function ks(e){this.model=e}ks.prototype.set=function(e,n,i){if(!Cr(n)||!n.length)throw new TypeError("property name must be a non-empty string");var a=this.getProperty(e,n),s=a&&a.name;wH(i)?a?delete e[s]:delete e.$attrs[xx(n)]:a?s in e?e[s]=i:V2(e,a,i):e.$attrs[xx(n)]=i},ks.prototype.get=function(e,n){var i=this.getProperty(e,n);if(!i)return e.$attrs[xx(n)];var a=i.name;return!e[a]&&i.isMany&&V2(e,i,[]),e[a]},ks.prototype.define=function(e,n,i){if(!i.writable){var a=i.value;i=Je({},i,{get:function(){return a}}),delete i.value}Object.defineProperty(e,n,i)},ks.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})},ks.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})},ks.prototype.getProperty=function(e,n){var i=this.model,a=i.getPropertyDescriptor(e,n);if(a)return a;if(n.includes(":"))return null;const s=i.config.strict;if(typeof s<"u"){const c=new TypeError(`unknown property <${n}> on <${e.$type}>`);if(s)throw c;typeof console<"u"&&console.warn(c)}return null};function wH(e){return typeof e>"u"}function V2(e,n,i){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:i,configurable:!0})}function xx(e){return e.replace(/^:/,"")}function nr(e,n={}){this.properties=new ks(this),this.factory=new L2(this,this.properties),this.registry=new co(e,this.properties),this.typeCache={},this.config=n}nr.prototype.create=function(e,n){var i=this.getType(e);if(!i)throw new Error("unknown type <"+e+">");return new i(n)},nr.prototype.getType=function(e){var n=this.typeCache,i=Cr(e)?e:e.ns.name,a=n[i];return a||(e=this.registry.getEffectiveDescriptor(i),a=n[i]=this.factory.createType(e)),a},nr.prototype.createAny=function(e,n,i){var a=Mn(e),s={$type:e,$instanceOf:function(p){return p===this.$type},get:function(p){return this[p]},set:function(p,m){P8(this,[p],m)}},c={name:e,isGeneric:!0,ns:{prefix:a.prefix,localName:a.localName,uri:n}};return this.properties.defineDescriptor(s,c),this.properties.defineModel(s,this),this.properties.define(s,"get",{enumerable:!1,writable:!0}),this.properties.define(s,"set",{enumerable:!1,writable:!0}),this.properties.define(s,"$parent",{enumerable:!1,writable:!0}),this.properties.define(s,"$instanceOf",{enumerable:!1,writable:!0}),We(i,function(p,m){gs(p)&&p.value!==void 0?s[p.name]=p.value:s[m]=p}),s},nr.prototype.getPackage=function(e){return this.registry.getPackage(e)},nr.prototype.getPackages=function(){return this.registry.getPackages()},nr.prototype.getElementDescriptor=function(e){return e.$descriptor},nr.prototype.hasType=function(e,n){n===void 0&&(n=e,e=this);var i=e.$model.getElementDescriptor(e);return n in i.allTypesByName},nr.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]},nr.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var U2=String.fromCharCode,EH=Object.prototype.hasOwnProperty,kH=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,Cd={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Cd).forEach(function(e){Cd[e.toUpperCase()]=Cd[e]});function CH(e,n,i,a){return a?EH.call(Cd,a)?Cd[a]:"&"+a+";":U2(n||parseInt(i,16))}function Cs(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(kH,CH):e}var Y2="non-whitespace outside of root node";function sc(e){return new Error(e)}function W2(e){return"missing namespace for prefix <"+e+">"}function em(e){return{get:e,enumerable:!0}}function SH(e){var n={},i;for(i in e)n[i]=e[i];return n}function wx(e){return e+"$uri"}function DH(e){var n={},i,a;for(i in e)a=e[i],n[a]=a,n[wx(a)]=i;return n}function G2(){return{line:0,column:0}}function IH(e){throw e}function J2(e){if(!this)return new J2(e);var n=e&&e.proxy,i,a,s,c,p=IH,m,g,y,O,E=G2,N=!1,_=!1,S=null,M=!1,P;function T(w){w instanceof Error||(w=sc(w)),S=w,p(w,E)}function R(w){!m||(w instanceof Error||(w=sc(w)),m(w,E))}this.on=function(w,B){if(typeof B!="function")throw sc("required args <name, cb>");switch(w){case"openTag":a=B;break;case"text":i=B;break;case"closeTag":s=B;break;case"error":p=B;break;case"warn":m=B;break;case"cdata":c=B;break;case"attention":O=B;break;case"question":y=B;break;case"comment":g=B;break;default:throw sc("unsupported event: "+w)}return this},this.ns=function(w){if(typeof w>"u"&&(w={}),typeof w!="object")throw sc("required args <nsMap={}>");var B={},z;for(z in w)B[z]=w[z];return _=!0,P=B,this},this.parse=function(w){if(typeof w!="string")throw sc("required args <xml=string>");return S=null,b(w),E=G2,M=!1,S},this.stop=function(){M=!0};function b(w){var B=_?[]:null,z=_?DH(P):null,F,H=[],ee=0,ne=!1,se=!1,me=0,pe=0,Se,ye,_e,W,J,re,ge,Te,le,he="",xe=0,Fe;function K(){if(Fe!==null)return Fe;var k,C,X,te=_&&z.xmlns,fe=_&&N?[]:null,De=xe,Re=he,Ke=Re.length,_t,pt,Bt,sn,ct,Ot={},fn={},ve,q,G;e:for(;De<Ke;De++)if(ve=!1,q=Re.charCodeAt(De),!(q===32||q<14&&q>8)){for((q<65||q>122||q>90&&q<97)&&q!==95&&q!==58&&(R("illegal first char attribute name"),ve=!0),G=De+1;G<Ke;G++)if(q=Re.charCodeAt(G),!(q>96&&q<123||q>64&&q<91||q>47&&q<59||q===46||q===45||q===95)){if(q===32||q<14&&q>8){R("missing attribute value"),De=G;continue e}if(q===61)break;R("illegal attribute name char"),ve=!0}if(ct=Re.substring(De,G),ct==="xmlns:xmlns"&&(R("illegal declaration of xmlns"),ve=!0),q=Re.charCodeAt(G+1),q===34)G=Re.indexOf('"',De=G+2),G===-1&&(G=Re.indexOf("'",De),G!==-1&&(R("attribute value quote missmatch"),ve=!0));else if(q===39)G=Re.indexOf("'",De=G+2),G===-1&&(G=Re.indexOf('"',De),G!==-1&&(R("attribute value quote missmatch"),ve=!0));else for(R("missing attribute value quotes"),ve=!0,G=G+1;G<Ke&&(q=Re.charCodeAt(G+1),!(q===32||q<14&&q>8));G++);for(G===-1&&(R("missing closing quotes"),G=Ke,ve=!0),ve||(Bt=Re.substring(De,G)),De=G;G+1<Ke&&(q=Re.charCodeAt(G+1),!(q===32||q<14&&q>8));G++)De===G&&(R("illegal character after attribute end"),ve=!0);if(De=G+1,ve)continue e;if(ct in fn){R("attribute <"+ct+"> already defined");continue}if(fn[ct]=!0,!_){Ot[ct]=Bt;continue}if(N){if(pt=ct==="xmlns"?"xmlns":ct.charCodeAt(0)===120&&ct.substr(0,6)==="xmlns:"?ct.substr(6):null,pt!==null){if(k=Cs(Bt),C=wx(pt),sn=P[k],!sn){if(pt==="xmlns"||C in z&&z[C]!==k)do sn="ns"+ee++;while(typeof z[sn]<"u");else sn=pt;P[k]=sn}z[pt]!==sn&&(_t||(z=SH(z),_t=!0),z[pt]=sn,pt==="xmlns"&&(z[wx(sn)]=k,te=sn),z[C]=k),Ot[ct]=Bt;continue}fe.push(ct,Bt);continue}if(q=ct.indexOf(":"),q===-1){Ot[ct]=Bt;continue}if(!(X=z[ct.substring(0,q)])){R(W2(ct.substring(0,q)));continue}ct=te===X?ct.substr(q+1):X+ct.substr(q),Ot[ct]=Bt}if(N)for(De=0,Ke=fe.length;De<Ke;De++){if(ct=fe[De++],Bt=fe[De],q=ct.indexOf(":"),q!==-1){if(!(X=z[ct.substring(0,q)])){R(W2(ct.substring(0,q)));continue}ct=te===X?ct.substr(q+1):X+ct.substr(q)}Ot[ct]=Bt}return Fe=Ot}function j(){for(var k=/(\r\n|\r|\n)/g,C=0,X=0,te=0,fe=pe,De,Re;me>=te&&(De=k.exec(w),!(!De||(fe=De[0].length+De.index,fe>me)));)C+=1,te=fe;return me==-1?(X=fe,Re=w.substring(pe)):pe===0?Re=w.substring(pe,me):(X=me-te,Re=pe==-1?w.substring(me):w.substring(me,pe+1)),{data:Re,line:C,column:X}}for(E=j,n&&(le=Object.create({},{name:em(function(){return ge}),originalName:em(function(){return Te}),attrs:em(K),ns:em(function(){return z})}));pe!==-1;){if(w.charCodeAt(pe)===60?me=pe:me=w.indexOf("<",pe),me===-1){if(H.length)return T("unexpected end of file");if(pe===0)return T("missing start tag");pe<w.length&&w.substring(pe).trim()&&R(Y2);return}if(pe!==me){if(H.length){if(i&&(i(w.substring(pe,me),Cs,E),M))return}else if(w.substring(pe,me).trim()&&(R(Y2),M))return}if(W=w.charCodeAt(me+1),W===33){if(_e=w.charCodeAt(me+2),_e===91&&w.substr(me+3,6)==="CDATA["){if(pe=w.indexOf("]]>",me),pe===-1)return T("unclosed cdata");if(c&&(c(w.substring(me+9,pe),E),M))return;pe+=3;continue}if(_e===45&&w.charCodeAt(me+3)===45){if(pe=w.indexOf("-->",me),pe===-1)return T("unclosed comment");if(g&&(g(w.substring(me+4,pe),Cs,E),M))return;pe+=3;continue}}if(W===63){if(pe=w.indexOf("?>",me),pe===-1)return T("unclosed question");if(y&&(y(w.substring(me,pe+2),E),M))return;pe+=2;continue}for(Se=me+1;;Se++){if(J=w.charCodeAt(Se),isNaN(J))return pe=-1,T("unclosed tag");if(J===34)_e=w.indexOf('"',Se+1),Se=_e!==-1?_e:Se;else if(J===39)_e=w.indexOf("'",Se+1),Se=_e!==-1?_e:Se;else if(J===62){pe=Se;break}}if(W===33){if(O&&(O(w.substring(me,pe+1),Cs,E),M))return;pe+=1;continue}if(Fe={},W===47){if(ne=!1,se=!0,!H.length)return T("missing open tag");if(Se=ge=H.pop(),_e=me+2+Se.length,w.substring(me+2,_e)!==Se)return T("closing tag mismatch");for(;_e<pe;_e++)if(W=w.charCodeAt(_e),!(W===32||W>8&&W<14))return T("close tag")}else{if(w.charCodeAt(pe-1)===47?(Se=ge=w.substring(me+1,pe-1),ne=!0,se=!0):(Se=ge=w.substring(me+1,pe),ne=!0,se=!1),!(W>96&&W<123||W>64&&W<91||W===95||W===58))return T("illegal first char nodeName");for(_e=1,ye=Se.length;_e<ye;_e++)if(W=Se.charCodeAt(_e),!(W>96&&W<123||W>64&&W<91||W>47&&W<59||W===45||W===95||W==46)){if(W===32||W<14&&W>8){ge=Se.substring(0,_e),Fe=null;break}return T("invalid nodeName")}se||H.push(ge)}if(_){if(F=z,ne&&(se||B.push(F),Fe===null&&(N=Se.indexOf("xmlns",_e)!==-1)&&(xe=_e,he=Se,K(),N=!1)),Te=ge,W=ge.indexOf(":"),W!==-1){if(re=z[ge.substring(0,W)],!re)return T("missing namespace on <"+Te+">");ge=ge.substr(W+1)}else re=z.xmlns;re&&(ge=re+":"+ge)}if(ne&&(xe=_e,he=Se,a&&(n?a(le,Cs,se,E):a(ge,K,Cs,se,E),M)))return;if(se){if(s&&(s(n?le:ge,Cs,ne,E),M))return;_&&(ne?z=F:z=B.pop())}pe+=1}}}function K2(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var Ex={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},X2="property";function Z2(e){return e.xml&&e.xml.serialize}function BH(e){const n=Z2(e);return n!==X2&&(n||null)}function OH(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $2(e,n){return K2(n)?e.prefix+":"+OH(e.localName):e.name}function TH(e,n){var i=e.name,a=e.localName,s=n&&n.xml&&n.xml.typePrefix;return s&&a.indexOf(s)===0?e.prefix+":"+a.slice(s.length):i}function NH(e,n,i){const a=Mn(e,n.xmlns),s=`${n[a.prefix]||a.prefix}:${a.localName}`,c=Mn(s);var p=i.getPackage(c.prefix);return TH(c,p)}function uo(e){return new Error(e)}function Ca(e){return e.$descriptor}function MH(e){Je(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(n){this.references.push(n)},this.addElement=function(n){if(!n)throw uo("expected element");var i=this.elementsById,a=Ca(n),s=a.idProperty,c;if(s&&(c=n.get(s.name),c)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(c))throw new Error("illegal ID <"+c+">");if(i[c])throw uo("duplicate ID <"+c+">");i[c]=n}},this.addWarning=function(n){this.warnings.push(n)}}function Sd(){}Sd.prototype.handleEnd=function(){},Sd.prototype.handleText=function(){},Sd.prototype.handleNode=function(){};function kx(){}kx.prototype=Object.create(Sd.prototype),kx.prototype.handleNode=function(){return this};function lc(){}lc.prototype=Object.create(Sd.prototype),lc.prototype.handleText=function(e){this.body=(this.body||"")+e};function Dd(e,n){this.property=e,this.context=n}Dd.prototype=Object.create(lc.prototype),Dd.prototype.handleNode=function(e){if(this.element)throw uo("expected no sub nodes");return this.element=this.createReference(e),this},Dd.prototype.handleEnd=function(){this.element.id=this.body},Dd.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function Cx(e,n){this.element=n,this.propertyDesc=e}Cx.prototype=Object.create(lc.prototype),Cx.prototype.handleEnd=function(){var e=this.body||"",n=this.element,i=this.propertyDesc;e=_x(i.type,e),i.isMany?n.get(i.name).push(e):n.set(i.name,e)};function tm(){}tm.prototype=Object.create(lc.prototype),tm.prototype.handleNode=function(e){var n=this,i=this.element;return i?n=this.handleChild(e):(i=this.element=this.createElement(e),this.context.addElement(i)),n};function Hn(e,n,i){this.model=e,this.type=e.getType(n),this.context=i}Hn.prototype=Object.create(tm.prototype),Hn.prototype.addReference=function(e){this.context.addReference(e)},Hn.prototype.handleText=function(e){var n=this.element,i=Ca(n),a=i.bodyProperty;if(!a)throw uo("unexpected body text <"+e+">");lc.prototype.handleText.call(this,e)},Hn.prototype.handleEnd=function(){var e=this.body,n=this.element,i=Ca(n),a=i.bodyProperty;a&&e!==void 0&&(e=_x(a.type,e),n.set(a.name,e))},Hn.prototype.createElement=function(e){var n=e.attributes,i=this.type,a=Ca(i),s=this.context,c=new i({}),p=this.model,m;return We(n,function(g,y){var O=a.propertiesByName[y],E;O&&O.isReference?O.isMany?(E=g.split(" "),We(E,function(N){s.addReference({element:c,property:O.ns.name,id:N})})):s.addReference({element:c,property:O.ns.name,id:g}):(O?g=_x(O.type,g):y==="xmlns"?y=":"+y:(m=Mn(y,a.ns.prefix),p.getPackage(m.prefix)&&s.addWarning({message:"unknown attribute <"+y+">",element:c,property:y,value:g})),c.set(y,g))}),c},Hn.prototype.getPropertyForNode=function(e){var n=e.name,i=Mn(n),a=this.type,s=this.model,c=Ca(a),p=i.name,m=c.propertiesByName[p];if(m&&!m.isAttr){const y=BH(m);if(y){const O=e.attributes[y];if(O){const E=NH(O,e.ns,s),N=s.getType(E);return Je({},m,{effectiveType:Ca(N).name})}}return m}var g=s.getPackage(i.prefix);if(g){const y=$2(i,g),O=s.getType(y);if(m=Sr(c.properties,function(E){return!E.isVirtual&&!E.isReference&&!E.isAttribute&&O.hasType(E.type)}),m)return Je({},m,{effectiveType:Ca(O).name})}else if(m=Sr(c.properties,function(y){return!y.isReference&&!y.isAttribute&&y.type==="Element"}),m)return m;throw uo("unrecognized element <"+i.name+">")},Hn.prototype.toString=function(){return"ElementDescriptor["+Ca(this.type).name+"]"},Hn.prototype.valueHandler=function(e,n){return new Cx(e,n)},Hn.prototype.referenceHandler=function(e){return new Dd(e,this.context)},Hn.prototype.handler=function(e){return e==="Element"?new cc(this.model,e,this.context):new Hn(this.model,e,this.context)},Hn.prototype.handleChild=function(e){var n,i,a,s;if(n=this.getPropertyForNode(e),a=this.element,i=n.effectiveType||n.type,z2(i))return this.valueHandler(n,a);n.isReference?s=this.referenceHandler(n).handleNode(e):s=this.handler(i).handleNode(e);var c=s.element;return c!==void 0&&(n.isMany?a.get(n.name).push(c):a.set(n.name,c),n.isReference?(Je(c,{element:a}),this.context.addReference(c)):c.$parent=a),s};function Sx(e,n,i){Hn.call(this,e,n,i)}Sx.prototype=Object.create(Hn.prototype),Sx.prototype.createElement=function(e){var n=e.name,i=Mn(n),a=this.model,s=this.type,c=a.getPackage(i.prefix),p=c&&$2(i,c)||n;if(!s.hasType(p))throw uo("unexpected element <"+e.originalName+">");return Hn.prototype.createElement.call(this,e)};function cc(e,n,i){this.model=e,this.context=i}cc.prototype=Object.create(tm.prototype),cc.prototype.createElement=function(e){var n=e.name,i=Mn(n),a=i.prefix,s=e.ns[a+"$uri"],c=e.attributes;return this.model.createAny(n,s,c)},cc.prototype.handleChild=function(e){var n=new cc(this.model,"Element",this.context).handleNode(e),i=this.element,a=n.element,s;return a!==void 0&&(s=i.$children=i.$children||[],s.push(a),a.$parent=i),n},cc.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function Dx(e){e instanceof nr&&(e={model:e}),Je(this,{lax:!1},e)}Dx.prototype.fromXML=function(e,n,i){var a=n.rootHandler;n instanceof Hn?(a=n,n={}):typeof n=="string"?(a=this.handler(n),n={}):typeof a=="string"&&(a=this.handler(a));var s=this.model,c=this.lax,p=new MH(Je({},n,{rootHandler:a})),m=new J2({proxy:!0}),g=FH();a.context=p,g.push(a);function y(B,z,F){var H=z(),ee=H.line,ne=H.column,se=H.data;se.charAt(0)==="<"&&se.indexOf(" ")!==-1&&(se=se.slice(0,se.indexOf(" "))+">");var me="unparsable content "+(se?se+" ":"")+`detected
34
+ `,jQ=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function LQ(e){const n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing"),a=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),s=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:jQ.map(p=>`${p}:${n.getPropertyValue(p)}`).join(";"),paddingSize:a,borderSize:s,boxSizing:i}}function cB(e,n=1,i){var a;xr||(xr=document.createElement("textarea"),document.body.appendChild(xr));const{paddingSize:s,borderSize:c,boxSizing:p,contextStyle:m}=LQ(e);xr.setAttribute("style",`${m};${RQ}`),xr.value=e.value||e.placeholder||"";let g=xr.scrollHeight;const y={};p==="border-box"?g=g+c:p==="content-box"&&(g=g-s),xr.value="";const O=xr.scrollHeight-s;if(ds(n)){let E=O*n;p==="border-box"&&(E=E+s+c),g=Math.max(E,g),y.minHeight=`${E}px`}if(ds(i)){let E=O*i;p==="border-box"&&(E=E+s+c),g=Math.min(E,g)}return y.height=`${g}px`,(a=xr.parentNode)==null||a.removeChild(xr),xr=void 0,y}const QQ=fs({id:{type:String,default:void 0},size:Ty,disabled:Boolean,modelValue:{type:mi([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:mi([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:fd},prefixIcon:{type:fd},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:mi([Object,Array,String]),default:()=>jI({})},autofocus:{type:Boolean,default:!1}}),zQ={[Dy]:e=>yr(e),input:e=>yr(e),change:e=>yr(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},HQ=["role"],VQ=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],UQ=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],YQ=x.defineComponent({name:"ElInput",inheritAttrs:!1}),WQ=x.defineComponent({...YQ,props:QQ,emits:zQ,setup(e,{expose:n,emit:i}){const a=e,s=x.useAttrs(),c=x.useSlots(),p=x.computed(()=>{const G={};return a.containerRole==="combobox"&&(G["aria-haspopup"]=s["aria-haspopup"],G["aria-owns"]=s["aria-owns"],G["aria-expanded"]=s["aria-expanded"]),G}),m=x.computed(()=>[a.type==="textarea"?P.b():M.b(),M.m(_.value),M.is("disabled",S.value),M.is("exceed",xe.value),{[M.b("group")]:c.prepend||c.append,[M.bm("group","append")]:c.append,[M.bm("group","prepend")]:c.prepend,[M.m("prefix")]:c.prefix||a.prefixIcon,[M.m("suffix")]:c.suffix||a.suffixIcon||a.clearable||a.showPassword,[M.bm("suffix","password-clear")]:ge.value&&Te.value},s.class]),g=x.computed(()=>[M.e("wrapper"),M.is("focus",ne.value)]),y=rQ({excludeKeys:x.computed(()=>Object.keys(p.value))}),{form:O,formItem:E}=lB(),{inputId:N}=PQ(a,{formItemContext:E}),_=sB(),S=Py(),M=Yr("input"),P=Yr("textarea"),T=x.shallowRef(),R=x.shallowRef(),b=x.ref(!1),w=x.ref(!1),B=x.ref(!1),z=x.ref(),F=x.shallowRef(a.inputStyle),H=x.computed(()=>T.value||R.value),{wrapperRef:ee,isFocused:ne,handleFocus:se,handleBlur:me}=IQ(H,{afterBlur(){var G;a.validateEvent&&((G=E==null?void 0:E.validate)==null||G.call(E,"blur").catch(ae=>Ur(ae)))}}),pe=x.computed(()=>{var G;return(G=O==null?void 0:O.statusIcon)!=null?G:!1}),Se=x.computed(()=>(E==null?void 0:E.validateState)||""),ye=x.computed(()=>Se.value&&ZL[Se.value]),_e=x.computed(()=>B.value?JL:VL),W=x.computed(()=>[s.style,a.inputStyle]),J=x.computed(()=>[a.inputStyle,F.value,{resize:a.resize}]),re=x.computed(()=>xI(a.modelValue)?"":String(a.modelValue)),ge=x.computed(()=>a.clearable&&!S.value&&!a.readonly&&!!re.value&&(ne.value||b.value)),Te=x.computed(()=>a.showPassword&&!S.value&&!a.readonly&&!!re.value&&(!!re.value||ne.value)),le=x.computed(()=>a.showWordLimit&&!!y.value.maxlength&&(a.type==="text"||a.type==="textarea")&&!S.value&&!a.readonly&&!a.showPassword),he=x.computed(()=>re.value.length),xe=x.computed(()=>!!le.value&&he.value>Number(y.value.maxlength)),Fe=x.computed(()=>!!c.suffix||!!a.suffixIcon||ge.value||a.showPassword||le.value||!!Se.value&&pe.value),[K,j]=SQ(T);lI(R,G=>{if(X(),!le.value||a.resize!=="both")return;const ae=G[0],{width:ke}=ae.contentRect;z.value={right:`calc(100% - ${ke+15+6}px)`}});const k=()=>{const{type:G,autosize:ae}=a;if(!(!hi||G!=="textarea"||!R.value))if(ae){const ke=cd(ae)?ae.minRows:void 0,je=cd(ae)?ae.maxRows:void 0,it=cB(R.value,ke,je);F.value={overflowY:"hidden",...it},x.nextTick(()=>{R.value.offsetHeight,F.value=it})}else F.value={minHeight:cB(R.value).minHeight}},X=(G=>{let ae=!1;return()=>{var ke;if(ae||!a.autosize)return;((ke=R.value)==null?void 0:ke.offsetParent)===null||(G(),ae=!0)}})(k),te=()=>{const G=H.value,ae=a.formatter?a.formatter(re.value):re.value;!G||G.value===ae||(G.value=ae)},fe=async G=>{K();let{value:ae}=G.target;if(a.formatter&&(ae=a.parser?a.parser(ae):ae),!w.value){if(ae===re.value){te();return}i(Dy,ae),i("input",ae),await x.nextTick(),te(),j()}},De=G=>{i("change",G.target.value)},Re=G=>{i("compositionstart",G),w.value=!0},Ke=G=>{var ae;i("compositionupdate",G);const ke=(ae=G.target)==null?void 0:ae.value,je=ke[ke.length-1]||"";w.value=!tQ(je)},_t=G=>{i("compositionend",G),w.value&&(w.value=!1,fe(G))},pt=()=>{B.value=!B.value,Bt()},Bt=async()=>{var G;await x.nextTick(),(G=H.value)==null||G.focus()},sn=()=>{var G;return(G=H.value)==null?void 0:G.blur()},ct=G=>{b.value=!1,i("mouseleave",G)},Ot=G=>{b.value=!0,i("mouseenter",G)},fn=G=>{i("keydown",G)},ve=()=>{var G;(G=H.value)==null||G.select()},q=()=>{i(Dy,""),i("change",""),i("clear"),i("input","")};return x.watch(()=>a.modelValue,()=>{var G;x.nextTick(()=>k()),a.validateEvent&&((G=E==null?void 0:E.validate)==null||G.call(E,"change").catch(ae=>Ur(ae)))}),x.watch(re,()=>te()),x.watch(()=>a.type,async()=>{await x.nextTick(),te(),k()}),x.onMounted(()=>{!a.formatter&&a.parser&&Ur("ElInput","If you set the parser, you also need to set the formatter."),te(),x.nextTick(k)}),n({input:T,textarea:R,ref:H,textareaStyle:J,autosize:x.toRef(a,"autosize"),focus:Bt,blur:sn,select:ve,clear:q,resizeTextarea:k}),(G,ae)=>x.withDirectives((x.openBlock(),x.createElementBlock("div",x.mergeProps(x.unref(p),{class:x.unref(m),style:x.unref(W),role:G.containerRole,onMouseenter:Ot,onMouseleave:ct}),[x.createCommentVNode(" input "),G.type!=="textarea"?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[x.createCommentVNode(" prepend slot "),G.$slots.prepend?(x.openBlock(),x.createElementBlock("div",{key:0,class:x.normalizeClass(x.unref(M).be("group","prepend"))},[x.renderSlot(G.$slots,"prepend")],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{ref_key:"wrapperRef",ref:ee,class:x.normalizeClass(x.unref(g))},[x.createCommentVNode(" prefix slot "),G.$slots.prefix||G.prefixIcon?(x.openBlock(),x.createElementBlock("span",{key:0,class:x.normalizeClass(x.unref(M).e("prefix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("prefix-inner"))},[x.renderSlot(G.$slots,"prefix"),G.prefixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(M).e("icon"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(G.prefixIcon)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],2)],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("input",x.mergeProps({id:x.unref(N),ref_key:"input",ref:T,class:x.unref(M).e("inner")},x.unref(y),{type:G.showPassword?B.value?"text":"password":G.type,disabled:x.unref(S),formatter:G.formatter,parser:G.parser,readonly:G.readonly,autocomplete:G.autocomplete,tabindex:G.tabindex,"aria-label":G.label,placeholder:G.placeholder,style:G.inputStyle,form:a.form,autofocus:a.autofocus,onCompositionstart:Re,onCompositionupdate:Ke,onCompositionend:_t,onInput:fe,onFocus:ae[0]||(ae[0]=(...ke)=>x.unref(se)&&x.unref(se)(...ke)),onBlur:ae[1]||(ae[1]=(...ke)=>x.unref(me)&&x.unref(me)(...ke)),onChange:De,onKeydown:fn}),null,16,VQ),x.createCommentVNode(" suffix slot "),x.unref(Fe)?(x.openBlock(),x.createElementBlock("span",{key:1,class:x.normalizeClass(x.unref(M).e("suffix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("suffix-inner"))},[!x.unref(ge)||!x.unref(Te)||!x.unref(le)?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[x.renderSlot(G.$slots,"suffix"),G.suffixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(M).e("icon"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(G.suffixIcon)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],64)):x.createCommentVNode("v-if",!0),x.unref(ge)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("clear")]),onMousedown:x.withModifiers(x.unref(Yl),["prevent"]),onClick:q},{default:x.withCtx(()=>[x.createVNode(x.unref(II))]),_:1},8,["class","onMousedown"])):x.createCommentVNode("v-if",!0),x.unref(Te)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("password")]),onClick:pt},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(_e))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.unref(le)?(x.openBlock(),x.createElementBlock("span",{key:3,class:x.normalizeClass(x.unref(M).e("count"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(M).e("count-inner"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),3)],2)):x.createCommentVNode("v-if",!0),x.unref(Se)&&x.unref(ye)&&x.unref(pe)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:4,class:x.normalizeClass([x.unref(M).e("icon"),x.unref(M).e("validateIcon"),x.unref(M).is("loading",x.unref(Se)==="validating")])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(ye))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0)],2)],2)):x.createCommentVNode("v-if",!0)],2),x.createCommentVNode(" append slot "),G.$slots.append?(x.openBlock(),x.createElementBlock("div",{key:1,class:x.normalizeClass(x.unref(M).be("group","append"))},[x.renderSlot(G.$slots,"append")],2)):x.createCommentVNode("v-if",!0)],64)):(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[x.createCommentVNode(" textarea "),x.createElementVNode("textarea",x.mergeProps({id:x.unref(N),ref_key:"textarea",ref:R,class:x.unref(P).e("inner")},x.unref(y),{tabindex:G.tabindex,disabled:x.unref(S),readonly:G.readonly,autocomplete:G.autocomplete,style:x.unref(J),"aria-label":G.label,placeholder:G.placeholder,form:a.form,autofocus:a.autofocus,onCompositionstart:Re,onCompositionupdate:Ke,onCompositionend:_t,onInput:fe,onFocus:ae[2]||(ae[2]=(...ke)=>x.unref(se)&&x.unref(se)(...ke)),onBlur:ae[3]||(ae[3]=(...ke)=>x.unref(me)&&x.unref(me)(...ke)),onChange:De,onKeydown:fn}),null,16,UQ),x.unref(le)?(x.openBlock(),x.createElementBlock("span",{key:0,style:x.normalizeStyle(z.value),class:x.normalizeClass(x.unref(M).e("count"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),7)):x.createCommentVNode("v-if",!0)],64))],16,HQ)),[[x.vShow,G.type!=="hidden"]])}});var GQ=Za(WQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const JQ=Eh(GQ),Ry="focus-trap.focus-after-trapped",jy="focus-trap.focus-after-released",KQ="focus-trap.focusout-prevented",uB={cancelable:!0,bubbles:!1},XQ={cancelable:!0,bubbles:!1},dB="focusAfterTrapped",fB="focusAfterReleased",ZQ=Symbol("elFocusTrap"),Ly=x.ref(),Oh=x.ref(0),Qy=x.ref(0);let Th=0;const pB=e=>{const n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)n.push(i.currentNode);return n},hB=(e,n)=>{for(const i of e)if(!$Q(i,n))return i},$Q=(e,n)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},qQ=e=>{const n=pB(e),i=hB(n,e),a=hB(n.reverse(),e);return[i,a]},ez=e=>e instanceof HTMLInputElement&&"select"in e,$a=(e,n)=>{if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),Qy.value=window.performance.now(),e!==i&&ez(e)&&n&&e.select()}};function mB(e,n){const i=[...e],a=e.indexOf(n);return a!==-1&&i.splice(a,1),i}const tz=()=>{let e=[];return{push:a=>{const s=e[0];s&&a!==s&&s.pause(),e=mB(e,a),e.unshift(a)},remove:a=>{var s,c;e=mB(e,a),(c=(s=e[0])==null?void 0:s.resume)==null||c.call(s)}}},nz=(e,n=!1)=>{const i=document.activeElement;for(const a of e)if($a(a,n),document.activeElement!==i)return},gB=tz(),iz=()=>Oh.value>Qy.value,Nh=()=>{Ly.value="pointer",Oh.value=window.performance.now()},AB=()=>{Ly.value="keyboard",Oh.value=window.performance.now()},rz=()=>(x.onMounted(()=>{Th===0&&(document.addEventListener("mousedown",Nh),document.addEventListener("touchstart",Nh),document.addEventListener("keydown",AB)),Th++}),x.onBeforeUnmount(()=>{Th--,Th<=0&&(document.removeEventListener("mousedown",Nh),document.removeEventListener("touchstart",Nh),document.removeEventListener("keydown",AB))}),{focusReason:Ly,lastUserFocusTimestamp:Oh,lastAutomatedFocusTimestamp:Qy}),Mh=e=>new CustomEvent(KQ,{...XQ,detail:e}),az=x.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[dB,fB,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const i=x.ref();let a,s;const{focusReason:c}=rz();kQ(S=>{e.trapped&&!p.paused&&n("release-requested",S)});const p={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=S=>{if(!e.loop&&!e.trapped||p.paused)return;const{key:M,altKey:P,ctrlKey:T,metaKey:R,currentTarget:b,shiftKey:w}=S,{loop:B}=e,z=M===kh.tab&&!P&&!T&&!R,F=document.activeElement;if(z&&F){const H=b,[ee,ne]=qQ(H);if(ee&&ne){if(!w&&F===ne){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(S.preventDefault(),B&&$a(ee,!0))}else if(w&&[ee,H].includes(F)){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(S.preventDefault(),B&&$a(ne,!0))}}else if(F===H){const me=Mh({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||S.preventDefault()}}};x.provide(ZQ,{focusTrapRef:i,onKeydown:m}),x.watch(()=>e.focusTrapEl,S=>{S&&(i.value=S)},{immediate:!0}),x.watch([i],([S],[M])=>{S&&(S.addEventListener("keydown",m),S.addEventListener("focusin",O),S.addEventListener("focusout",E)),M&&(M.removeEventListener("keydown",m),M.removeEventListener("focusin",O),M.removeEventListener("focusout",E))});const g=S=>{n(dB,S)},y=S=>n(fB,S),O=S=>{const M=x.unref(i);if(!M)return;const P=S.target,T=S.relatedTarget,R=P&&M.contains(P);e.trapped||T&&M.contains(T)||(a=T),R&&n("focusin",S),!p.paused&&e.trapped&&(R?s=P:$a(s,!0))},E=S=>{const M=x.unref(i);if(!(p.paused||!M))if(e.trapped){const P=S.relatedTarget;!xI(P)&&!M.contains(P)&&setTimeout(()=>{if(!p.paused&&e.trapped){const T=Mh({focusReason:c.value});n("focusout-prevented",T),T.defaultPrevented||$a(s,!0)}},0)}else{const P=S.target;P&&M.contains(P)||n("focusout",S)}};async function N(){await x.nextTick();const S=x.unref(i);if(S){gB.push(p);const M=S.contains(document.activeElement)?a:document.activeElement;if(a=M,!S.contains(M)){const T=new Event(Ry,uB);S.addEventListener(Ry,g),S.dispatchEvent(T),T.defaultPrevented||x.nextTick(()=>{let R=e.focusStartEl;yr(R)||($a(R),document.activeElement!==R&&(R="first")),R==="first"&&nz(pB(S),!0),(document.activeElement===M||R==="container")&&$a(S)})}}}function _(){const S=x.unref(i);if(S){S.removeEventListener(Ry,g);const M=new CustomEvent(jy,{...uB,detail:{focusReason:c.value}});S.addEventListener(jy,y),S.dispatchEvent(M),!M.defaultPrevented&&(c.value=="keyboard"||!iz()||S.contains(document.activeElement))&&$a(a!=null?a:document.body),S.removeEventListener(jy,y),gB.remove(p)}}return x.onMounted(()=>{e.trapped&&N(),x.watch(()=>e.trapped,S=>{S?N():_()})}),x.onBeforeUnmount(()=>{e.trapped&&_()}),{onKeydown:m}}});function oz(e,n,i,a,s,c){return x.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var sz=Za(az,[["render",oz],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const lz=fs({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),cz=["textContent"],uz=x.defineComponent({name:"ElBadge"}),dz=x.defineComponent({...uz,props:lz,setup(e,{expose:n}){const i=e,a=Yr("badge"),s=x.computed(()=>i.isDot?"":ds(i.value)&&ds(i.max)?i.max<i.value?`${i.max}+`:`${i.value}`:`${i.value}`);return n({content:s}),(c,p)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(x.unref(a).b())},[x.renderSlot(c.$slots,"default"),x.createVNode(x.Transition,{name:`${x.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("sup",{class:x.normalizeClass([x.unref(a).e("content"),x.unref(a).em("content",c.type),x.unref(a).is("fixed",!!c.$slots.default),x.unref(a).is("dot",c.isDot)]),textContent:x.toDisplayString(x.unref(s))},null,10,cz),[[x.vShow,!c.hidden&&(x.unref(s)||c.isDot)]])]),_:1},8,["name"])],2))}});var fz=Za(dz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const pz=Eh(fz),vB=Symbol("buttonGroupContextKey"),hz=(e,n)=>{aQ({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x.computed(()=>e.type==="text"));const i=x.inject(vB,void 0),a=Ny("button"),{form:s}=lB(),c=sB(x.computed(()=>i==null?void 0:i.size)),p=Py(),m=x.ref(),g=x.useSlots(),y=x.computed(()=>e.type||(i==null?void 0:i.type)||""),O=x.computed(()=>{var S,M,P;return(P=(M=e.autoInsertSpace)!=null?M:(S=a.value)==null?void 0:S.autoInsertSpace)!=null?P:!1}),E=x.computed(()=>e.tag==="button"?{ariaDisabled:p.value||e.loading,disabled:p.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),N=x.computed(()=>{var S;const M=(S=g.default)==null?void 0:S.call(g);if(O.value&&(M==null?void 0:M.length)===1){const P=M[0];if((P==null?void 0:P.type)===x.Text){const T=P.children;return/^\p{Unified_Ideograph}{2}$/u.test(T.trim())}}return!1});return{_disabled:p,_size:c,_type:y,_ref:m,_props:E,shouldAddSpace:N,handleClick:S=>{e.nativeType==="reset"&&(s==null||s.resetFields()),n("click",S)}}},zy=fs({size:Ty,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:fd},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:fd,default:()=>OI},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:mi([String,Object]),default:"button"}}),mz={click:e=>e instanceof MouseEvent};function On(e,n){gz(e)&&(e="100%");var i=Az(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),i&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function Fh(e){return Math.min(1,Math.max(0,e))}function gz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Az(e){return typeof e=="string"&&e.indexOf("%")!==-1}function bB(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ph(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hs(e){return e.length===1?"0"+e:String(e)}function vz(e,n,i){return{r:On(e,255)*255,g:On(n,255)*255,b:On(i,255)*255}}function _B(e,n,i){e=On(e,255),n=On(n,255),i=On(i,255);var a=Math.max(e,n,i),s=Math.min(e,n,i),c=0,p=0,m=(a+s)/2;if(a===s)p=0,c=0;else{var g=a-s;switch(p=m>.5?g/(2-a-s):g/(a+s),a){case e:c=(n-i)/g+(n<i?6:0);break;case n:c=(i-e)/g+2;break;case i:c=(e-n)/g+4;break}c/=6}return{h:c,s:p,l:m}}function Hy(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*(6*i):i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}function bz(e,n,i){var a,s,c;if(e=On(e,360),n=On(n,100),i=On(i,100),n===0)s=i,c=i,a=i;else{var p=i<.5?i*(1+n):i+n-i*n,m=2*i-p;a=Hy(m,p,e+1/3),s=Hy(m,p,e),c=Hy(m,p,e-1/3)}return{r:a*255,g:s*255,b:c*255}}function yB(e,n,i){e=On(e,255),n=On(n,255),i=On(i,255);var a=Math.max(e,n,i),s=Math.min(e,n,i),c=0,p=a,m=a-s,g=a===0?0:m/a;if(a===s)c=0;else{switch(a){case e:c=(n-i)/m+(n<i?6:0);break;case n:c=(i-e)/m+2;break;case i:c=(e-n)/m+4;break}c/=6}return{h:c,s:g,v:p}}function _z(e,n,i){e=On(e,360)*6,n=On(n,100),i=On(i,100);var a=Math.floor(e),s=e-a,c=i*(1-n),p=i*(1-s*n),m=i*(1-(1-s)*n),g=a%6,y=[i,p,c,c,m,i][g],O=[m,i,i,p,c,c][g],E=[c,c,m,i,i,p][g];return{r:y*255,g:O*255,b:E*255}}function xB(e,n,i,a){var s=[hs(Math.round(e).toString(16)),hs(Math.round(n).toString(16)),hs(Math.round(i).toString(16))];return a&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function yz(e,n,i,a,s){var c=[hs(Math.round(e).toString(16)),hs(Math.round(n).toString(16)),hs(Math.round(i).toString(16)),hs(xz(a))];return s&&c[0].startsWith(c[0].charAt(1))&&c[1].startsWith(c[1].charAt(1))&&c[2].startsWith(c[2].charAt(1))&&c[3].startsWith(c[3].charAt(1))?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}function xz(e){return Math.round(parseFloat(e)*255).toString(16)}function wB(e){return ji(e)/255}function ji(e){return parseInt(e,16)}function wz(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Vy={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ez(e){var n={r:0,g:0,b:0},i=1,a=null,s=null,c=null,p=!1,m=!1;return typeof e=="string"&&(e=Sz(e)),typeof e=="object"&&(_a(e.r)&&_a(e.g)&&_a(e.b)?(n=vz(e.r,e.g,e.b),p=!0,m=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_a(e.h)&&_a(e.s)&&_a(e.v)?(a=Ph(e.s),s=Ph(e.v),n=_z(e.h,a,s),p=!0,m="hsv"):_a(e.h)&&_a(e.s)&&_a(e.l)&&(a=Ph(e.s),c=Ph(e.l),n=bz(e.h,a,c),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=bB(i),{ok:p,format:e.format||m,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:i}}var kz="[-\\+]?\\d+%?",Cz="[-\\+]?\\d*\\.\\d+%?",qa="(?:".concat(Cz,")|(?:").concat(kz,")"),Uy="[\\s|\\(]+(".concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")\\s*\\)?"),Yy="[\\s|\\(]+(".concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")[,|\\s]+(").concat(qa,")\\s*\\)?"),wr={CSS_UNIT:new RegExp(qa),rgb:new RegExp("rgb"+Uy),rgba:new RegExp("rgba"+Yy),hsl:new RegExp("hsl"+Uy),hsla:new RegExp("hsla"+Yy),hsv:new RegExp("hsv"+Uy),hsva:new RegExp("hsva"+Yy),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Sz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Vy[e])e=Vy[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i=wr.rgb.exec(e);return i?{r:i[1],g:i[2],b:i[3]}:(i=wr.rgba.exec(e),i?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=wr.hsl.exec(e),i?{h:i[1],s:i[2],l:i[3]}:(i=wr.hsla.exec(e),i?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=wr.hsv.exec(e),i?{h:i[1],s:i[2],v:i[3]}:(i=wr.hsva.exec(e),i?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=wr.hex8.exec(e),i?{r:ji(i[1]),g:ji(i[2]),b:ji(i[3]),a:wB(i[4]),format:n?"name":"hex8"}:(i=wr.hex6.exec(e),i?{r:ji(i[1]),g:ji(i[2]),b:ji(i[3]),format:n?"name":"hex"}:(i=wr.hex4.exec(e),i?{r:ji(i[1]+i[1]),g:ji(i[2]+i[2]),b:ji(i[3]+i[3]),a:wB(i[4]+i[4]),format:n?"name":"hex8"}:(i=wr.hex3.exec(e),i?{r:ji(i[1]+i[1]),g:ji(i[2]+i[2]),b:ji(i[3]+i[3]),format:n?"name":"hex"}:!1)))))))))}function _a(e){return Boolean(wr.CSS_UNIT.exec(String(e)))}var Dz=function(){function e(n,i){n===void 0&&(n=""),i===void 0&&(i={});var a;if(n instanceof e)return n;typeof n=="number"&&(n=wz(n)),this.originalInput=n;var s=Ez(n);this.originalInput=n,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=i.format)!==null&&a!==void 0?a:s.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),i,a,s,c=n.r/255,p=n.g/255,m=n.b/255;return c<=.03928?i=c/12.92:i=Math.pow((c+.055)/1.055,2.4),p<=.03928?a=p/12.92:a=Math.pow((p+.055)/1.055,2.4),m<=.03928?s=m/12.92:s=Math.pow((m+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=bB(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},e.prototype.toHsv=function(){var n=yB(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=yB(this.r,this.g,this.b),i=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.v*100);return this.a===1?"hsv(".concat(i,", ").concat(a,"%, ").concat(s,"%)"):"hsva(".concat(i,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=_B(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=_B(this.r,this.g,this.b),i=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.l*100);return this.a===1?"hsl(".concat(i,", ").concat(a,"%, ").concat(s,"%)"):"hsla(".concat(i,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),xB(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=!1),yz(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var n=Math.round(this.r),i=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(i,", ").concat(a,")"):"rgba(".concat(n,", ").concat(i,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(i){return"".concat(Math.round(On(i,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(i){return Math.round(On(i,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+xB(this.r,this.g,this.b,!1),i=0,a=Object.entries(Vy);i<a.length;i++){var s=a[i],c=s[0],p=s[1];if(n===p)return c}return!1},e.prototype.toString=function(n){var i=Boolean(n);n=n!=null?n:this.format;var a=!1,s=this.a<1&&this.a>=0,c=!i&&s&&(n.startsWith("hex")||n==="name");return c?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(a=this.toRgbString()),n==="prgb"&&(a=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(a=this.toHexString()),n==="hex3"&&(a=this.toHexString(!0)),n==="hex4"&&(a=this.toHex8String(!0)),n==="hex8"&&(a=this.toHex8String()),n==="name"&&(a=this.toName()),n==="hsl"&&(a=this.toHslString()),n==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.l+=n/100,i.l=Fh(i.l),new e(i)},e.prototype.brighten=function(n){n===void 0&&(n=10);var i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(n/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(n/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(n/100)))),new e(i)},e.prototype.darken=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.l-=n/100,i.l=Fh(i.l),new e(i)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.s-=n/100,i.s=Fh(i.s),new e(i)},e.prototype.saturate=function(n){n===void 0&&(n=10);var i=this.toHsl();return i.s+=n/100,i.s=Fh(i.s),new e(i)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var i=this.toHsl(),a=(i.h+n)%360;return i.h=a<0?360+a:a,new e(i)},e.prototype.mix=function(n,i){i===void 0&&(i=50);var a=this.toRgb(),s=new e(n).toRgb(),c=i/100,p={r:(s.r-a.r)*c+a.r,g:(s.g-a.g)*c+a.g,b:(s.b-a.b)*c+a.b,a:(s.a-a.a)*c+a.a};return new e(p)},e.prototype.analogous=function(n,i){n===void 0&&(n=6),i===void 0&&(i=30);var a=this.toHsl(),s=360/i,c=[this];for(a.h=(a.h-(s*n>>1)+720)%360;--n;)a.h=(a.h+s)%360,c.push(new e(a));return c},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var i=this.toHsv(),a=i.h,s=i.s,c=i.v,p=[],m=1/n;n--;)p.push(new e({h:a,s,v:c})),c=(c+m)%1;return p},e.prototype.splitcomplement=function(){var n=this.toHsl(),i=n.h;return[this,new e({h:(i+72)%360,s:n.s,l:n.l}),new e({h:(i+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var i=this.toRgb(),a=new e(n).toRgb(),s=i.a+a.a*(1-i.a);return new e({r:(i.r*i.a+a.r*a.a*(1-i.a))/s,g:(i.g*i.a+a.g*a.a*(1-i.a))/s,b:(i.b*i.a+a.b*a.a*(1-i.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var i=this.toHsl(),a=i.h,s=[this],c=360/n,p=1;p<n;p++)s.push(new e({h:(a+p*c)%360,s:i.s,l:i.l}));return s},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e}();function eo(e,n=20){return e.mix("#141414",n).toString()}function Iz(e){const n=Py(),i=Yr("button");return x.computed(()=>{let a={};const s=e.color;if(s){const c=new Dz(s),p=e.dark?c.tint(20).toString():eo(c,20);if(e.plain)a=i.cssVarBlock({"bg-color":e.dark?eo(c,90):c.tint(90).toString(),"text-color":s,"border-color":e.dark?eo(c,50):c.tint(50).toString(),"hover-text-color":`var(${i.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":p,"active-text-color":`var(${i.cssVarName("color-white")})`,"active-border-color":p}),n.value&&(a[i.cssVarBlockName("disabled-bg-color")]=e.dark?eo(c,90):c.tint(90).toString(),a[i.cssVarBlockName("disabled-text-color")]=e.dark?eo(c,50):c.tint(50).toString(),a[i.cssVarBlockName("disabled-border-color")]=e.dark?eo(c,80):c.tint(80).toString());else{const m=e.dark?eo(c,30):c.tint(30).toString(),g=c.isDark()?`var(${i.cssVarName("color-white")})`:`var(${i.cssVarName("color-black")})`;if(a=i.cssVarBlock({"bg-color":s,"text-color":g,"border-color":s,"hover-bg-color":m,"hover-text-color":g,"hover-border-color":m,"active-bg-color":p,"active-border-color":p}),n.value){const y=e.dark?eo(c,50):c.tint(50).toString();a[i.cssVarBlockName("disabled-bg-color")]=y,a[i.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${i.cssVarName("color-white")})`,a[i.cssVarBlockName("disabled-border-color")]=y}}}return a})}const Bz=x.defineComponent({name:"ElButton"}),Oz=x.defineComponent({...Bz,props:zy,emits:mz,setup(e,{expose:n,emit:i}){const a=e,s=Iz(a),c=Yr("button"),{_ref:p,_size:m,_type:g,_disabled:y,_props:O,shouldAddSpace:E,handleClick:N}=hz(a,i);return n({ref:p,size:m,type:g,disabled:y,shouldAddSpace:E}),(_,S)=>(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.tag),x.mergeProps({ref_key:"_ref",ref:p},x.unref(O),{class:[x.unref(c).b(),x.unref(c).m(x.unref(g)),x.unref(c).m(x.unref(m)),x.unref(c).is("disabled",x.unref(y)),x.unref(c).is("loading",_.loading),x.unref(c).is("plain",_.plain),x.unref(c).is("round",_.round),x.unref(c).is("circle",_.circle),x.unref(c).is("text",_.text),x.unref(c).is("link",_.link),x.unref(c).is("has-bg",_.bg)],style:x.unref(s),onClick:x.unref(N)}),{default:x.withCtx(()=>[_.loading?(x.openBlock(),x.createElementBlock(x.Fragment,{key:0},[_.$slots.loading?x.renderSlot(_.$slots,"loading",{key:0}):(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass(x.unref(c).is("loading"))},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.loadingIcon)))]),_:1},8,["class"]))],64)):_.icon||_.$slots.icon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1},{default:x.withCtx(()=>[_.icon?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(_.icon),{key:0})):x.renderSlot(_.$slots,"icon",{key:1})]),_:3})):x.createCommentVNode("v-if",!0),_.$slots.default?(x.openBlock(),x.createElementBlock("span",{key:2,class:x.normalizeClass({[x.unref(c).em("text","expand")]:x.unref(E)})},[x.renderSlot(_.$slots,"default")],2)):x.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Tz=Za(Oz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Nz={size:zy.size,type:zy.type},Mz=x.defineComponent({name:"ElButtonGroup"}),Fz=x.defineComponent({...Mz,props:Nz,setup(e){const n=e;x.provide(vB,x.reactive({size:x.toRef(n,"size"),type:x.toRef(n,"type")}));const i=Yr("button");return(a,s)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(`${x.unref(i).b("group")}`)},[x.renderSlot(a.$slots,"default")],2))}});var EB=Za(Fz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Pz=Eh(Tz,{ButtonGroup:EB});qL(EB);const Wy="_trap-focus-children",ms=[],kB=e=>{var n;if(ms.length===0)return;const i=ms[ms.length-1][Wy];if(i.length>0&&e.code===kh.tab){if(i.length===1){e.preventDefault(),document.activeElement!==i[0]&&i[0].focus();return}const a=e.shiftKey,s=e.target===i[0],c=e.target===i[i.length-1];if(s&&a&&(e.preventDefault(),i[i.length-1].focus()),c&&!a&&(e.preventDefault(),i[0].focus()),process.env.NODE_ENV==="test"){const p=i.indexOf(e.target);p!==-1&&((n=i[a?p-1:p+1])==null||n.focus())}}},Rz={beforeMount(e){e[Wy]=nI(e),ms.push(e),ms.length<=1&&document.addEventListener("keydown",kB)},updated(e){x.nextTick(()=>{e[Wy]=nI(e)})},unmounted(){ms.shift(),ms.length===0&&document.removeEventListener("keydown",kB)}},jz=fs({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:mi([String,Array,Object])},zIndex:{type:mi([String,Number])}}),Lz={click:e=>e instanceof MouseEvent},Qz="overlay";var zz=x.defineComponent({name:"ElOverlay",props:jz,emits:Lz,setup(e,{slots:n,emit:i}){const a=Yr(Qz),s=g=>{i("click",g)},{onClick:c,onMousedown:p,onMouseup:m}=ZI(e.customMaskEvent?void 0:s);return()=>e.mask?x.createVNode("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:c,onMousedown:p,onMouseup:m},[x.renderSlot(n,"default")],Ch.STYLE|Ch.CLASS|Ch.PROPS,["onClick","onMouseup","onMousedown"]):x.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[x.renderSlot(n,"default")])}});const Hz=zz,CB=["success","info","warning","error"],gi=jI({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:hi?document.body:void 0}),Vz=fs({customClass:{type:String,default:gi.customClass},center:{type:Boolean,default:gi.center},dangerouslyUseHTMLString:{type:Boolean,default:gi.dangerouslyUseHTMLString},duration:{type:Number,default:gi.duration},icon:{type:fd,default:gi.icon},id:{type:String,default:gi.id},message:{type:mi([String,Object,Function]),default:gi.message},onClose:{type:mi(Function),required:!1},showClose:{type:Boolean,default:gi.showClose},type:{type:String,values:CB,default:gi.type},offset:{type:Number,default:gi.offset},zIndex:{type:Number,default:gi.zIndex},grouping:{type:Boolean,default:gi.grouping},repeatNum:{type:Number,default:gi.repeatNum}}),Uz={destroy:()=>!0},Er=x.shallowReactive([]),Yz=e=>{const n=Er.findIndex(s=>s.id===e),i=Er[n];let a;return n>0&&(a=Er[n-1]),{current:i,prev:a}},Wz=e=>{const{prev:n}=Yz(e);return n?n.vm.exposed.bottom.value:0},Gz=(e,n)=>Er.findIndex(a=>a.id===e)>0?20:n,Jz=["id"],Kz=["innerHTML"],Xz=x.defineComponent({name:"ElMessage"}),Zz=x.defineComponent({...Xz,props:Vz,emits:Uz,setup(e,{expose:n}){const i=e,{Close:a}=PI,{ns:s,zIndex:c}=rB("message"),{currentZIndex:p,nextZIndex:m}=c,g=x.ref(),y=x.ref(!1),O=x.ref(0);let E;const N=x.computed(()=>i.type?i.type==="error"?"danger":i.type:"info"),_=x.computed(()=>{const F=i.type;return{[s.bm("icon",F)]:F&&wh[F]}}),S=x.computed(()=>i.icon||wh[i.type]||""),M=x.computed(()=>Wz(i.id)),P=x.computed(()=>Gz(i.id,i.offset)+M.value),T=x.computed(()=>O.value+P.value),R=x.computed(()=>({top:`${P.value}px`,zIndex:p.value}));function b(){i.duration!==0&&({stop:E}=Q6(()=>{B()},i.duration))}function w(){E==null||E()}function B(){y.value=!1}function z({code:F}){F===kh.esc&&B()}return x.onMounted(()=>{b(),m(),y.value=!0}),x.watch(()=>i.repeatNum,()=>{w(),b()}),oI(document,"keydown",z),lI(g,()=>{O.value=g.value.getBoundingClientRect().height}),n({visible:y,bottom:T,close:B}),(F,H)=>(x.openBlock(),x.createBlock(x.Transition,{name:x.unref(s).b("fade"),onBeforeLeave:F.onClose,onAfterLeave:H[0]||(H[0]=ee=>F.$emit("destroy")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("div",{id:F.id,ref_key:"messageRef",ref:g,class:x.normalizeClass([x.unref(s).b(),{[x.unref(s).m(F.type)]:F.type&&!F.icon},x.unref(s).is("center",F.center),x.unref(s).is("closable",F.showClose),F.customClass]),style:x.normalizeStyle(x.unref(R)),role:"alert",onMouseenter:w,onMouseleave:b},[F.repeatNum>1?(x.openBlock(),x.createBlock(x.unref(pz),{key:0,value:F.repeatNum,type:x.unref(N),class:x.normalizeClass(x.unref(s).e("badge"))},null,8,["value","type","class"])):x.createCommentVNode("v-if",!0),x.unref(S)?(x.openBlock(),x.createBlock(x.unref(Wr),{key:1,class:x.normalizeClass([x.unref(s).e("icon"),x.unref(_)])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(S))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.renderSlot(F.$slots,"default",{},()=>[F.dangerouslyUseHTMLString?(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[x.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),x.createElementVNode("p",{class:x.normalizeClass(x.unref(s).e("content")),innerHTML:F.message},null,10,Kz)],2112)):(x.openBlock(),x.createElementBlock("p",{key:0,class:x.normalizeClass(x.unref(s).e("content"))},x.toDisplayString(F.message),3))]),F.showClose?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass(x.unref(s).e("closeBtn")),onClick:x.withModifiers(B,["stop"])},{default:x.withCtx(()=>[x.createVNode(x.unref(a))]),_:1},8,["class","onClick"])):x.createCommentVNode("v-if",!0)],46,Jz),[[x.vShow,y.value]])]),_:3},8,["name","onBeforeLeave"]))}});var $z=Za(Zz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let qz=1;const SB=e=>{const n=!e||yr(e)||x.isVNode(e)||ls(e)?{message:e}:e,i={...gi,...n};if(!i.appendTo)i.appendTo=document.body;else if(yr(i.appendTo)){let a=document.querySelector(i.appendTo);Cy(a)||(Ur("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),i.appendTo=a}return i},e8=e=>{const n=Er.indexOf(e);if(n===-1)return;Er.splice(n,1);const{handler:i}=e;i.close()},t8=({appendTo:e,...n},i)=>{const a=`message_${qz++}`,s=n.onClose,c=document.createElement("div"),p={...n,id:a,onClose:()=>{s==null||s(),e8(O)},onDestroy:()=>{x.render(null,c)}},m=x.createVNode($z,p,ls(p.message)||x.isVNode(p.message)?{default:ls(p.message)?p.message:()=>p.message}:null);m.appContext=i||Kl._context,x.render(m,c),e.appendChild(c.firstElementChild);const g=m.component,O={id:a,vnode:m,vm:g,handler:{close:()=>{g.exposed.visible.value=!1}},props:m.component.props};return O},Kl=(e={},n)=>{if(!hi)return{close:()=>{}};if(ds(My.max)&&Er.length>=My.max)return{close:()=>{}};const i=SB(e);if(i.grouping&&Er.length){const s=Er.find(({vnode:c})=>{var p;return((p=c.props)==null?void 0:p.message)===i.message});if(s)return s.props.repeatNum+=1,s.props.type=i.type,s.handler}const a=t8(i,n);return Er.push(a),a.handler};CB.forEach(e=>{Kl[e]=(n={},i)=>{const a=SB(n);return Kl({...a,type:e},i)}});function n8(e){for(const n of Er)(!e||e===n.props.type)&&n.handler.close()}Kl.closeAll=n8,Kl._context=null;const hd=$L(Kl,"$message"),i8=x.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Rz},components:{ElButton:Pz,ElFocusTrap:sz,ElInput:JQ,ElOverlay:Hz,ElIcon:Wr,...PI},inheritAttrs:!1,props:{buttonSize:{type:String,validator:eQ},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:n}){const{locale:i,zIndex:a,ns:s,size:c}=rB("message-box",x.computed(()=>e.buttonSize)),{t:p}=i,{nextZIndex:m}=a,g=x.ref(!1),y=x.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:m()}),O=x.computed(()=>{const ye=y.type;return{[s.bm("icon",ye)]:ye&&wh[ye]}}),E=Oy(),N=Oy(),_=x.computed(()=>y.icon||wh[y.type]||""),S=x.computed(()=>!!y.message),M=x.ref(),P=x.ref(),T=x.ref(),R=x.ref(),b=x.ref(),w=x.computed(()=>y.confirmButtonClass);x.watch(()=>y.inputValue,async ye=>{await x.nextTick(),e.boxType==="prompt"&&ye!==null&&se()},{immediate:!0}),x.watch(()=>g.value,ye=>{var _e,W;ye&&(e.boxType!=="prompt"&&(y.autofocus?T.value=(W=(_e=b.value)==null?void 0:_e.$el)!=null?W:M.value:T.value=M.value),y.zIndex=m()),e.boxType==="prompt"&&(ye?x.nextTick().then(()=>{var J;R.value&&R.value.$el&&(y.autofocus?T.value=(J=me())!=null?J:M.value:T.value=M.value)}):(y.editorErrorMessage="",y.validateError=!1))});const B=x.computed(()=>e.draggable);oQ(M,P,B),x.onMounted(async()=>{await x.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",z)}),x.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",z)});function z(){!g.value||(g.value=!1,x.nextTick(()=>{y.action&&n("action",y.action)}))}const F=()=>{e.closeOnClickModal&&ne(y.distinguishCancelAndClose?"close":"cancel")},H=ZI(F),ee=ye=>{if(y.inputType!=="textarea")return ye.preventDefault(),ne("confirm")},ne=ye=>{var _e;e.boxType==="prompt"&&ye==="confirm"&&!se()||(y.action=ye,y.beforeClose?(_e=y.beforeClose)==null||_e.call(y,ye,y,z):z())},se=()=>{if(e.boxType==="prompt"){const ye=y.inputPattern;if(ye&&!ye.test(y.inputValue||""))return y.editorErrorMessage=y.inputErrorMessage||p("el.messagebox.error"),y.validateError=!0,!1;const _e=y.inputValidator;if(typeof _e=="function"){const W=_e(y.inputValue);if(W===!1)return y.editorErrorMessage=y.inputErrorMessage||p("el.messagebox.error"),y.validateError=!0,!1;if(typeof W=="string")return y.editorErrorMessage=W,y.validateError=!0,!1}}return y.editorErrorMessage="",y.validateError=!1,!0},me=()=>{const ye=R.value.$refs;return ye.input||ye.textarea},pe=()=>{ne("close")},Se=()=>{e.closeOnPressEscape&&pe()};return e.lockScroll&&xQ(g),{...x.toRefs(y),ns:s,overlayEvent:H,visible:g,hasMessage:S,typeClass:O,contentId:E,inputId:N,btnSize:c,iconComponent:_,confirmButtonClasses:w,rootRef:M,focusStartRef:T,headerRef:P,inputRef:R,confirmRef:b,doClose:z,handleClose:pe,onCloseRequested:Se,handleWrapperClick:F,handleInputEnter:ee,handleAction:ne,t:p}}}),r8=["aria-label","aria-describedby"],a8=["aria-label"],o8=["id"];function s8(e,n,i,a,s,c){const p=x.resolveComponent("el-icon"),m=x.resolveComponent("close"),g=x.resolveComponent("el-input"),y=x.resolveComponent("el-button"),O=x.resolveComponent("el-focus-trap"),E=x.resolveComponent("el-overlay");return x.openBlock(),x.createBlock(x.Transition,{name:"fade-in-linear",onAfterLeave:n[11]||(n[11]=N=>e.$emit("vanish")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createVNode(E,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:x.withCtx(()=>[x.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:x.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:n[8]||(n[8]=(...N)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...N)),onMousedown:n[9]||(n[9]=(...N)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...N)),onMouseup:n[10]||(n[10]=(...N)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...N))},[x.createVNode(O,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:x.withCtx(()=>[x.createElementVNode("div",{ref:"rootRef",class:x.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:x.normalizeStyle(e.customStyle),tabindex:"-1",onClick:n[7]||(n[7]=x.withModifiers(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(x.openBlock(),x.createElementBlock("div",{key:0,ref:"headerRef",class:x.normalizeClass(e.ns.e("header"))},[x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(x.openBlock(),x.createBlock(p,{key:0,class:x.normalizeClass([e.ns.e("status"),e.typeClass])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.createElementVNode("span",null,x.toDisplayString(e.title),1)],2),e.showClose?(x.openBlock(),x.createElementBlock("button",{key:0,type:"button",class:x.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:n[0]||(n[0]=N=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:n[1]||(n[1]=x.withKeys(x.withModifiers(N=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[x.createVNode(p,{class:x.normalizeClass(e.ns.e("close"))},{default:x.withCtx(()=>[x.createVNode(m)]),_:1},8,["class"])],42,a8)):x.createCommentVNode("v-if",!0)],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{id:e.contentId,class:x.normalizeClass(e.ns.e("content"))},[x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(x.openBlock(),x.createBlock(p,{key:0,class:x.normalizeClass([e.ns.e("status"),e.typeClass])},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),e.hasMessage?(x.openBlock(),x.createElementBlock("div",{key:1,class:x.normalizeClass(e.ns.e("message"))},[x.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):x.createCommentVNode("v-if",!0)],2),x.withDirectives(x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("input"))},[x.createVNode(g,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":n[2]||(n[2]=N=>e.inputValue=N),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:x.normalizeClass({invalid:e.validateError}),onKeydown:x.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("errormsg")),style:x.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},x.toDisplayString(e.editorErrorMessage),7)],2),[[x.vShow,e.showInput]])],10,o8),x.createElementVNode("div",{class:x.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(x.openBlock(),x.createBlock(y,{key:0,loading:e.cancelButtonLoading,class:x.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:n[3]||(n[3]=N=>e.handleAction("cancel")),onKeydown:n[4]||(n[4]=x.withKeys(x.withModifiers(N=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):x.createCommentVNode("v-if",!0),x.withDirectives(x.createVNode(y,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:x.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:n[5]||(n[5]=N=>e.handleAction("confirm")),onKeydown:n[6]||(n[6]=x.withKeys(x.withModifiers(N=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[x.vShow,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,r8)]),_:3},8,["z-index","overlay-class","mask"]),[[x.vShow,e.visible]])]),_:3})}var l8=Za(i8,[["render",s8],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const md=new Map,c8=e=>{let n=document.body;return e.appendTo&&(yr(e.appendTo)&&(n=document.querySelector(e.appendTo)),Cy(e.appendTo)&&(n=e.appendTo),Cy(n)||(Ur("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body)),n},u8=(e,n,i=null)=>{const a=x.createVNode(l8,e,ls(e.message)||x.isVNode(e.message)?{default:ls(e.message)?e.message:()=>e.message}:null);return a.appContext=i,x.render(a,n),c8(e).appendChild(n.firstElementChild),a.component},d8=()=>document.createElement("div"),f8=(e,n)=>{const i=d8();e.onVanish=()=>{x.render(null,i),md.delete(s)},e.onAction=c=>{const p=md.get(s);let m;e.showInput?m={value:s.inputValue,action:c}:m=c,e.callback?e.callback(m,a.proxy):c==="cancel"||c==="close"?e.distinguishCancelAndClose&&c!=="cancel"?p.reject("close"):p.reject("cancel"):p.resolve(m)};const a=u8(e,i,n),s=a.proxy;for(const c in e)bh(e,c)&&!bh(s.$props,c)&&(s[c]=e[c]);return s.visible=!0,s};function Xl(e,n=null){if(!hi)return Promise.reject();let i;return yr(e)||x.isVNode(e)?e={message:e}:i=e.callback,new Promise((a,s)=>{const c=f8(e,n!=null?n:Xl._context);md.set(c,{options:e,callback:i,resolve:a,reject:s})})}const p8=["alert","confirm","prompt"],h8={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};p8.forEach(e=>{Xl[e]=m8(e)});function m8(e){return(n,i,a,s)=>{let c="";return cd(i)?(a=i,c=""):wI(i)?c="":c=i,Xl(Object.assign({title:c,message:n,type:"",...h8[e]},a,{boxType:e}),s)}}Xl.close=()=>{md.forEach((e,n)=>{n.doClose()}),md.clear()},Xl._context=null;const to=Xl;to.install=e=>{to._context=e._context,e.config.globalProperties.$msgbox=to,e.config.globalProperties.$messageBox=to,e.config.globalProperties.$alert=to.alert,e.config.globalProperties.$confirm=to.confirm,e.config.globalProperties.$prompt=to.prompt};const DB=to;var g8=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"foot-item",style:{}},[e.process.status=="todo"?[e.getButton("wf_pass")?i("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!0,e.getButton("wf_pass").name)}}},[i("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?i("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!1,e.getButton("wf_reject").name)}}},[i("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.userId==e.process.variables.applyUserId?i("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("reminders")}}},[i("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?i("el-button",{attrs:{type:"primary",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"transfer",checkType:"radio",name:e.getButton("wf_transfer").name})}}},[e._v(e._s(e.getButton("wf_transfer").name))]):e._e(),e.getButton("wf_delegate")?i("el-button",{attrs:{type:"warning",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"delegate",checkType:"radio",name:e.getButton("wf_delegate").name})}}},[e._v(" "+e._s(e.getButton("wf_delegate").name)+" ")]):e._e(),e.getButton("wf_rollback")?i("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("rollback",e.getButton("wf_rollback").name)}}},[e._v(" "+e._s(e.getButton("wf_rollback").name)+" ")]):e._e(),e.getButton("wf_terminate")?i("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("terminate")}}},[e._v(" "+e._s(e.getButton("wf_terminate").name)+" ")]):e._e(),e.process.isMultiInstance&&e.getButton("wf_add_instance")?i("el-button",{attrs:{type:"primary",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:e.getButton("wf_add_instance").name})}}},[e._v(" "+e._s(e.getButton("wf_add_instance").name)+" ")]):e._e(),e.getButton("wf_cctask")?i("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[i("span",[e._v(e._s(e.getButton("wf_cctask").name))])]):e._e()]:e._e(),e.process.isOwner&&e.process.isReturnable&&!["deleted"].includes(e.process.processIsFinished)?i("el-button",{attrs:{type:"warning",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("withdraw","\u64A4\u9500")}}},[e._v(" \u64A4\u9500 ")]):e._e(),e.getButton("wf_print")?i("el-button",{attrs:{type:"info",size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("print")}}},[e._v(" "+e._s(e.getButton("wf_print").name)+" ")]):e._e()],2)],1)},A8=[];const MZ="",v8={name:"nf-button",props:{userId:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:Object,comment:String},data(){return{isCollapse:!0,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{"process.taskId":{handler(e){e&&Xe.repository.backNodes({taskId:e}).then(n=>{const i=n.data;this.backNodes=i})},immediate:!0}},methods:{getButton(e){return this.buttonList.find(n=>n.buttonKey==e)}}},IB={};var b8=qt(v8,g8,A8,!1,_8,"1d36c4be",null,null);function _8(e){for(let n in IB)this[n]=IB[n]}const y8=function(){return b8.exports}(),x8=e=>{var n=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[n.call(e)]},Gy=e=>{var n=x8(e),i;if(n==="array")i=[];else if(n==="object")i={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)i.push(Gy(e[a]));else if(n==="object")for(var c in e)i[c]=Gy(e[c]);return i};function BB(e,n="YYYY-MM-DD HH:mm:ss"){return ld(e).format(n)}function w8(e){e=Gy(e);const n={};e.forEach(a=>{n[a.historyActivityId]?n[a.historyActivityId].push(a):n[a.historyActivityId]=[a]});for(let a in n){const s=n[a];if(s.length>1){const c=e.findLast(p=>p.historyActivityId==a);c.assigneeName=Array.from(new Set(s.map(p=>p.assigneeName))).join("/")}}const i=[];return e.forEach(a=>{let{assigneeName:s,createTime:c,endTime:p,comments:m}=a;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(c=c.replace(/-/g,"/"),p=p.replace(/-/g,"/"));const g={id:a.historyActivityId,class:!p&&a.historyActivityType!="candidate"?"nodePrimary":""};let y="";if(s||m&&m.length>0){if(y=`<span title='${s}'>${s}</span><br>`,c&&(y+=`<span title='${c}'>${BB(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let E,{type:N,fullMessage:_}=m.find(S=>S.action=="AddComment")||{};N=="assigneeComment"&&(E="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(E="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(E="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(E="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(E="\u6307\u5B9A\u56DE\u9000\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(E="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),(N=="addMultiInstanceComment"||(N||"").includes("\u52A0\u7B7E"))&&(E="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(E="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(E="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(E="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(E="\u62D2\u7EDD\uFF1A"+_,g.class="nodeError"),N=="comment"&&(E="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),E&&(y+=`<span title='${E}'>${E}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=i.findIndex(E=>E.id==a.historyActivityId);O!=-1?i.splice(O,1,g):i.push(g)}),i}function Jy(e){const n=[],i=[],a=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(s=>{s.type==="user"?n.push(...s.ids.filter(c=>c&&c.trim()!=="")):s.type==="post"?i.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(i)],deptIds:[...new Set(a)]}}function Ky(e){const n=[];return e.forEach(i=>{let{assigneeName:a,createTime:s,endTime:c,comments:p}=i;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(s=s.replace(/-/g,"/"),c=c.replace(/-/g,"/"));const m={id:i.historyActivityId,class:!c&&i.historyActivityType!="candidate"?"nodePrimary":""};let g="";if(a||p&&p.length>0){if(g=`<span title='${a}'>${a}</span><br>`,s&&(g+=`<span title='${s}'>${BB(s,"YYYY-MM-DD HH:mm")}</span><br>`),p&&p.length>0){let O,{type:E,fullMessage:N}=p.find(_=>_.action=="AddComment")||{};E=="assigneeComment"&&(O="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+N,m.class="nodeWarn"),E=="dispatchComment"&&(O="\u8C03\u5EA6\uFF1A"+N,m.class="nodeWarn"),E=="transferComment"&&(O="\u8F6C\u529E\uFF1A"+N,m.class="nodeWarn"),E=="delegateComment"&&(O="\u59D4\u6258\uFF1A"+N,m.class="nodeWarn"),E=="rollbackComment"&&(O="\u6307\u5B9A\u56DE\u9000\uFF1A"+N,m.class="nodeError"),E=="terminateComment"&&(O="\u7EC8\u6B62\uFF1A"+N,m.class="nodeError"),(E=="addMultiInstanceComment"||(E||"").includes("\u52A0\u7B7E"))&&(O="\u52A0\u7B7E\uFF1A"+N,m.class="nodeWarn"),E=="deleteMultiInstanceComment"&&(O="\u51CF\u7B7E\uFF1A"+N,m.class="nodeError"),E=="withdrawComment"&&(O="\u64A4\u9500\uFF1A"+N,m.class="nodeWarn"),E=="deleteProcessComment"&&(O="\u5220\u9664\u6D41\u7A0B\uFF1A"+N,m.class="nodeError"),E=="cancelProcessComment"&&(O="\u62D2\u7EDD\uFF1A"+N,m.class="nodeError"),E=="comment"&&(O="\u5BA1\u6279\uFF1A"+N,m.class="nodeSuccess"),O&&(g+=`<span title='${O}'>${O}</span>`)}m.tooltip=g}i.historyActivityType=="sequenceFlow"?m.class="lineWarn":!m.class&&i.historyActivityType!="candidate"&&(m.class="nodeSuccess");const y=n.findIndex(O=>O.id==i.historyActivityId);y!=-1?n.splice(y,1,m):n.push({...i,...m})}),n}var E8=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-row",{attrs:{type:"flex"}},[i("el-timeline",[e._l(e.getColors(e.flowList),function(a,s){return[["candidate","sequenceFlow"].includes(a.historyActivityType)?e._e():i("el-timeline-item",{key:a.id,attrs:{timestamp:a.endTime||a.createTime,placement:"top"}},[i("el-card",{class:a.endTime?"":"cur-process"},[i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?a.comments[a.comments.length-1].userId:"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),i("span",{staticClass:"flow-node"},[e._v(e._s(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),a.historyActivityDurationTime?i("p",{staticClass:"flow-time"},[e._v(" \u4EFB\u52A1\u5386\u65F6 "+e._s(a.historyActivityDurationTime)+" ")]):e._e(),a.comments&&a.comments.length>0?[e._l(a.comments.filter(function(c){return c.action==="AddComment"}),function(c,p){return i("p",{key:p},[p<1?[i("span",{class:["comment-type",a.class]},[e._v(e._s(e.commentMap[c.type]||c.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),i("span",[e._v(" "+e._s(c.fullMessage)+" ")]),a.comments.filter(function(m){return m.action==="AddComment"}).length>1?i("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),i("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),i("el-icon",[e.isFlag?i("el-icon-arrow-up"):i("el-icon-arrow-down")],1)],1):e._e(),c.time&&e.isFlag?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e(),p>0&&e.isFlag?[i("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[c.type]||c.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),i("span",[e._v(" "+e._s(c.fullMessage)+" ")]),c.time?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e()],2)}),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u7B7E\u5B57: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",refInFor:!0,attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:a.attachmentsQianzi,callback:function(c){e.$set(a,"attachmentsQianzi",c)},expression:"item.attachmentsQianzi"}})],1)])]:e._e(),a.attachmentsFujian&&a.attachmentsFujian.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u9644\u4EF6: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",refInFor:!0,attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:a.attachmentsFujian,callback:function(c){e.$set(a,"attachmentsFujian",c)},expression:"item.attachmentsFujian"}})],1)])]:e._e()]:e._e(),a.endTime?i("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(a.endTime))]):e._e()],2)],1)]})],2)],1)},k8=[];const FZ="",C8={name:"nf-flow",props:{flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ky,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",skipComment:"\u8DF3\u8FC7",cancelProcessComment:"\u62D2\u7EDD",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},OB={};var S8=qt(C8,E8,k8,!1,D8,"49a33691",null,null);function D8(e){for(let n in OB)this[n]=OB[n]}const I8=function(){return S8.exports}();function Gr(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const gd=Object.prototype.toString,B8=Object.prototype.hasOwnProperty;function Xy(e){return e===void 0}function Zl(e){return e!==void 0}function TB(e){return e==null}function kr(e){return gd.call(e)==="[object Array]"}function gs(e){return gd.call(e)==="[object Object]"}function no(e){return gd.call(e)==="[object Number]"}function As(e){const n=gd.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"||n==="[object Proxy]"}function Cr(e){return gd.call(e)==="[object String]"}function $l(e,n){return!TB(e)&&B8.call(e,n)}function Sr(e,n){const i=Zy(n);let a;return We(e,function(s,c){if(i(s,c))return a=s,!1}),a}function O8(e,n){const i=Zy(n);let a=kr(e)?-1:void 0;return We(e,function(s,c){if(i(s,c))return a=c,!1}),a}function ql(e,n){const i=Zy(n);let a=[];return We(e,function(s,c){i(s,c)&&a.push(s)}),a}function We(e,n){let i,a;if(Xy(e))return;const s=kr(e)?M8:N8;for(let c in e)if($l(e,c)&&(i=e[c],a=n(i,s(c)),a===!1))return i}function ec(e,n,i){return We(e,function(a,s){i=n(i,a,s)}),i}function NB(e,n){return!!ec(e,function(i,a,s){return i&&n(a,s)},!0)}function MB(e,n){return!!Sr(e,n)}function T8(e,n){let i=[];return We(e,function(a,s){i.push(n(a,s))}),i}function FB(e){return function(n){return NB(e,function(i,a){return n[a]===i})}}function Zy(e){return As(e)?e:n=>n===e}function N8(e){return e}function M8(e){return Number(e)}function F8(e,n){let i,a,s,c;function p(E){let N=Date.now(),_=E?0:c+n-N;if(_>0)return m(_);e.apply(s,a),g()}function m(E){i=setTimeout(p,E)}function g(){i&&clearTimeout(i),i=c=a=s=void 0}function y(){i&&p(!0),g()}function O(...E){c=Date.now(),a=E,s=this,i||m(n)}return O.flush=y,O.cancel=g,O}function io(e,n){return e.bind(n)}function Je(e,...n){return Object.assign(e,...n)}function P8(e,n,i){let a=e;return We(n,function(s,c){if(typeof s!="number"&&typeof s!="string")throw new Error("illegal key type: "+typeof s+". Key should be of type number or string.");if(s==="constructor")throw new Error("illegal key: constructor");if(s==="__proto__")throw new Error("illegal key: __proto__");let p=n[c+1],m=a[s];Zl(p)&&TB(m)&&(m=a[s]=isNaN(+p)?{}:[]),Xy(p)?Xy(i)?delete a[s]:a[s]=i:a=m}),e}function R8(e,n){let i={},a=Object(e);return We(n,function(s){s in a&&(i[s]=e[s])}),i}function j8(e,n){let i={},a=Object(e);return We(a,function(s,c){n.indexOf(c)===-1&&(i[c]=s)}),i}var L8=1e3;function ya(e,n){var i=this;n=n||L8,e.on(["render.shape","render.connection"],n,function(a,s){var c=a.type,p=s.element,m=s.gfx,g=s.attrs;if(i.canRender(p))return c==="render.shape"?i.drawShape(m,p,g):i.drawConnection(m,p,g)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(a,s){if(i.canRender(s))return a.type==="render.getShapePath"?i.getShapePath(s):i.getConnectionPath(s)})}ya.prototype.canRender=function(e){},ya.prototype.drawShape=function(e,n){},ya.prototype.drawConnection=function(e,n){},ya.prototype.getShapePath=function(e){},ya.prototype.getConnectionPath=function(e){};function Ge(e,n){var i=Ut(e);return i&&typeof i.$instanceOf=="function"&&i.$instanceOf(n)}function Q8(e,n){return MB(n,function(i){return Ge(e,i)})}function Ut(e){return e&&e.businessObject||e}function vs(e){return e&&e.di}function bs(e,n){return Ge(e,"bpmn:CallActivity")?!1:Ge(e,"bpmn:SubProcess")?(n=n||vs(e),n&&Ge(n,"bpmndi:BPMNPlane")?!0:n&&!!n.isExpanded):Ge(e,"bpmn:Participant")?!!Ut(e).processRef:!0}function PB(e){if(!(!Ge(e,"bpmn:Participant")&&!Ge(e,"bpmn:Lane"))){var n=vs(e).isHorizontal;return n===void 0?!0:n}}function z8(e){return e&&!!Ut(e).triggeredByEvent}function H8(e){return gs(e)&&$l(e,"waypoints")}var Rh={width:90,height:20},RB=15;function V8(e){return Ge(e,"bpmn:Event")||Ge(e,"bpmn:Gateway")||Ge(e,"bpmn:DataStoreReference")||Ge(e,"bpmn:DataObjectReference")||Ge(e,"bpmn:DataInput")||Ge(e,"bpmn:DataOutput")||Ge(e,"bpmn:SequenceFlow")||Ge(e,"bpmn:MessageFlow")||Ge(e,"bpmn:Group")}function U8(e){var n=e.length/2-1,i=e[Math.floor(n)],a=e[Math.ceil(n+.01)],s=Y8(e),c=Math.atan((a.y-i.y)/(a.x-i.x)),p=s.x,m=s.y;return Math.abs(c)<Math.PI/2?m-=RB:p+=RB,{x:p,y:m}}function Y8(e){var n=e.length/2-1,i=e[Math.floor(n)],a=e[Math.ceil(n+.01)];return{x:i.x+(a.x-i.x)/2,y:i.y+(a.y-i.y)/2}}function W8(e){return e.waypoints?U8(e.waypoints):Ge(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+Rh.height/2}:{x:e.x+e.width/2,y:e.y+e.height+Rh.height/2}}function G8(e,n){var i,a,s,c=e.label;return c&&c.bounds?(s=c.bounds,a={width:Math.max(Rh.width,s.width),height:s.height},i={x:s.x+s.width/2,y:s.y+s.height/2}):(i=W8(n),a=Rh),Je({x:i.x-a.width/2,y:i.y-a.height/2},a)}function J8(e){if(Ge(e,"bpmn:FlowElement")||Ge(e,"bpmn:Participant")||Ge(e,"bpmn:Lane")||Ge(e,"bpmn:SequenceFlow")||Ge(e,"bpmn:MessageFlow")||Ge(e,"bpmn:DataInput")||Ge(e,"bpmn:DataOutput"))return"name";if(Ge(e,"bpmn:TextAnnotation"))return"text";if(Ge(e,"bpmn:Group"))return"categoryValueRef"}function K8(e){var n=e.categoryValueRef;return n&&n.value||""}function jh(e){var n=e.businessObject,i=J8(n);if(i)return i==="categoryValueRef"?K8(n):n[i]||""}function X8(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}function jB(e,n){return n.appendChild(X8(e,n))}function yn(e,n){return jB(n,e),e}var $y=2,LB={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":$y,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":$y,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Z8(e,n){return LB[n]?e.style[n]:e.getAttributeNS(null,n)}function QB(e,n,i){var a=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=LB[a];s?(s===$y&&typeof i=="number"&&(i=String(i)+"px"),e.style[a]=i):e.setAttributeNS(null,n,i)}function $8(e,n){var i=Object.keys(n),a,s;for(a=0,s;s=i[a];a++)QB(e,s,n[s])}function Pt(e,n,i){if(typeof n=="string")if(i!==void 0)QB(e,n,i);else return Z8(e,n);else $8(e,n);return e}const q8=Object.prototype.toString;function Jr(e){return new ro(e)}function ro(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}ro.prototype.add=function(e){return this.list.add(e),this},ro.prototype.remove=function(e){return q8.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ro.prototype.removeMatching=function(e){const n=this.array();for(let i=0;i<n.length;i++)e.test(n[i])&&this.remove(n[i]);return this},ro.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},ro.prototype.array=function(){return Array.from(this.list)},ro.prototype.has=ro.prototype.contains=function(e){return this.list.contains(e)};function e9(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}var qy={svg:"http://www.w3.org/2000/svg"},zB='<svg xmlns="'+qy.svg+'"';function HB(e){var n=!1;e.substring(0,4)==="<svg"?e.indexOf(qy.svg)===-1&&(e=zB+e.substring(4)):(e=zB+">"+e+"</svg>",n=!0);var i=t9(e);if(!n)return i;for(var a=document.createDocumentFragment(),s=i.firstChild;s.firstChild;)a.appendChild(s.firstChild);return a}function t9(e){var n;return n=new DOMParser,n.async=!1,n.parseFromString(e,"text/xml")}function Rt(e,n){var i;return e=e.trim(),e.charAt(0)==="<"?(i=HB(e).firstChild,i=document.importNode(i,!0)):i=document.createElementNS(qy.svg,e),n&&Pt(i,n),i}var ex=null;function tx(){return ex===null&&(ex=Rt("svg")),ex}function VB(e,n){var i,a,s=Object.keys(n);for(i=0;a=s[i];i++)e[a]=n[a];return e}function n9(e,n,i,a,s,c){var p=tx().createSVGMatrix();switch(arguments.length){case 0:return p;case 1:return VB(p,e);case 6:return VB(p,{a:e,b:n,c:i,d:a,e:s,f:c})}}function Ad(e){return e?tx().createSVGTransformFromMatrix(e):tx().createSVGTransform()}var UB=/([&<>]{1})/g,i9=/([&<>\n\r"]{1})/g,r9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function nx(e,n){function i(a,s){return r9[s]||s}return e.replace(n,i)}function YB(e,n){var i,a,s,c,p;switch(e.nodeType){case 3:n.push(nx(e.textContent,UB));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(s=e.attributes,i=0,a=s.length;i<a;++i)c=s.item(i),n.push(" ",c.name,'="',nx(c.value,i9),'"');if(e.hasChildNodes()){for(n.push(">"),p=e.childNodes,i=0,a=p.length;i<a;++i)YB(p.item(i),n);n.push("</",e.tagName,">")}else n.push("/>");break;case 8:n.push("<!--",nx(e.nodeValue,UB),"-->");break;case 4:n.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function a9(e,n){var i=HB(n);if(e9(e),!!n){s9(i)||(i=i.documentElement);for(var a=l9(i.childNodes),s=0;s<a.length;s++)jB(a[s],e)}}function o9(e){for(var n=e.firstChild,i=[];n;)YB(n,i),n=n.nextSibling;return i.join("")}function s9(e){return e.nodeName==="#document-fragment"}function WB(e,n){if(n!==void 0){try{a9(e,n)}catch(i){throw new Error("error parsing SVG: "+i.message)}return e}else return o9(e)}function l9(e){return Array.prototype.slice.call(e)}function vd(e){var n=e.parentNode;return n&&n.removeChild(e),e}function c9(e,n){return n instanceof SVGMatrix?e.createSVGTransformFromMatrix(n):n}function u9(e,n){var i,a;for(e.clear(),i=0;a=n[i];i++)e.appendItem(c9(e,a))}function bd(e,n){var i=e.transform.baseVal;return n&&(Array.isArray(n)||(n=[n]),u9(i,n)),i.consolidate()}function _s(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function d9(e){return["M",e.x,e.y]}function ix(e){return["L",e.x,e.y]}function f9(e,n,i){return["C",e.x,e.y,n.x,n.y,i.x,i.y]}function p9(e,n){const i=e.length,a=[d9(e[0])];for(let s=1;s<i;s++){const c=e[s-1],p=e[s],m=e[s+1];if(!m||!n){a.push(ix(p));continue}const g=Math.min(n,rx(p.x-c.x,p.y-c.y),rx(m.x-p.x,m.y-p.y));if(!g){a.push(ix(p));continue}const y=Lh(p,c,g),O=Lh(p,c,g*.5),E=Lh(p,m,g),N=Lh(p,m,g*.5);a.push(ix(y)),a.push(f9(O,N,E))}return a}function Lh(e,n,i){const a=n.x-e.x,s=n.y-e.y,c=rx(a,s),p=i/c;return{x:e.x+a*p,y:e.y+s*p}}function rx(e,n){return Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}function ax(e,n,i){no(n)&&(i=n,n=null),n||(n={});const a=Rt("path",n);return no(i)&&(a.dataset.cornerRadius=String(i)),GB(a,e)}function GB(e,n){const i=parseInt(e.dataset.cornerRadius,10)||0;return Pt(e,{d:_s(p9(n,i))}),e}var ox="hsl(225, 10%, 15%)",h9="white";function Kr(e,n){return MB(e.eventDefinitions,function(i){return i.$type===n})}function m9(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function g9(e){var n=e.dataObjectRef;return e.isCollection||n&&n.isCollection}function st(e,n,i){var a=vs(e);return i||a.get("color:background-color")||a.get("bioc:fill")||n||h9}function Qe(e,n,i){var a=vs(e);return i||a.get("color:border-color")||a.get("bioc:stroke")||n||ox}function _d(e,n,i,a){var s=vs(e),c=s.get("label");return a||c&&c.get("color:color")||n||Qe(e,i)}function A9(e){var n=e.x+e.width/2,i=e.y+e.height/2,a=e.width/2,s=[["M",n,i],["m",0,-a],["a",a,a,0,1,1,0,2*a],["a",a,a,0,1,1,0,-2*a],["z"]];return _s(s)}function v9(e,n){var i=e.x,a=e.y,s=e.width,c=e.height,p=[["M",i+n,a],["l",s-n*2,0],["a",n,n,0,0,1,n,n],["l",0,c-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-s,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-c],["a",n,n,0,0,1,n,-n],["z"]];return _s(p)}function b9(e){var n=e.width,i=e.height,a=e.x,s=e.y,c=n/2,p=i/2,m=[["M",a+c,s],["l",c,p],["l",-c,p],["l",-c,-p],["z"]];return _s(m)}function _9(e){var n=e.x,i=e.y,a=e.width,s=e.height,c=[["M",n,i],["l",a,0],["l",0,s],["l",-a,0],["z"]];return _s(c)}function yd(e,n={}){return{width:er(e,n),height:Ai(e,n)}}function er(e,n={}){return $l(n,"width")?n.width:e.width}function Ai(e,n={}){return $l(n,"height")?n.height:e.height}function y9(e,n){return n.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(a){if(a!=="default"&&!(a in e)){var s=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:function(){return i[a]}})}})}),Object.freeze(e)}const x9=Object.prototype.toString,w9=Object.prototype.hasOwnProperty;function E9(e){return e===void 0}function k9(e){return x9.call(e)==="[object Array]"}function C9(e,n){return w9.call(e,n)}function JB(e,n){let i,a;if(E9(e))return;const s=k9(e)?D9:S9;for(let c in e)if(C9(e,c)&&(i=e[c],a=n(i,s(c)),a===!1))return i}function S9(e){return e}function D9(e){return Number(e)}function Tn(e,...n){const i=e.style;return JB(n,function(a){!a||JB(a,function(s,c){i[c]=s})}),e}function sx(e,n,i){return arguments.length==2?e.getAttribute(n):i===null?e.removeAttribute(n):(e.setAttribute(n,i),e)}const I9=Object.prototype.toString;function ys(e){return new ao(e)}function ao(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}ao.prototype.add=function(e){return this.list.add(e),this},ao.prototype.remove=function(e){return I9.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ao.prototype.removeMatching=function(e){const n=this.array();for(let i=0;i<n.length;i++)e.test(n[i])&&this.remove(n[i]);return this},ao.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},ao.prototype.array=function(){return Array.from(this.list)},ao.prototype.has=ao.prototype.contains=function(e){return this.list.contains(e)};function KB(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function XB(e,n,i){var a=i?e:e.parentNode;return a&&typeof a.closest=="function"&&a.closest(n)||null}var Qh={},zh,lx,cx;function ZB(){zh=window.addEventListener?"addEventListener":"attachEvent",lx=window.removeEventListener?"removeEventListener":"detachEvent",cx=zh!=="addEventListener"?"on":""}var B9=Qh.bind=function(e,n,i,a){return zh||ZB(),e[zh](cx+n,i,a||!1),i},O9=Qh.unbind=function(e,n,i,a){return lx||ZB(),e[lx](cx+n,i,a||!1),i},xs=y9({__proto__:null,bind:B9,unbind:O9,default:Qh},[Qh]),$B=["focus","blur"];function T9(e,n,i,a,s){return $B.indexOf(i)!==-1&&(s=!0),xs.bind(e,i,function(c){var p=c.target||c.srcElement;c.delegateTarget=XB(p,n,!0),c.delegateTarget&&a.call(e,c)},s)}function N9(e,n,i,a){return $B.indexOf(n)!==-1&&(a=!0),xs.unbind(e,n,i,a)}var tc={bind:T9,unbind:N9},M9=F9,qB=!1,Hh;typeof document<"u"&&(Hh=document.createElement("div"),Hh.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',qB=!Hh.getElementsByTagName("link").length,Hh=void 0);var an={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:qB?[1,"X<div>","</div>"]:[0,"",""]};an.td=an.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],an.option=an.optgroup=[1,'<select multiple="multiple">',"</select>"],an.thead=an.tbody=an.colgroup=an.caption=an.tfoot=[1,"<table>","</table>"],an.polyline=an.ellipse=an.polygon=an.circle=an.text=an.line=an.path=an.rect=an.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function F9(e,n){if(typeof e!="string")throw new TypeError("String expected");n||(n=document);var i=/<([\w:]+)/.exec(e);if(!i)return n.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var a=i[1];if(a=="body"){var g=n.createElement("html");return g.innerHTML=e,g.removeChild(g.lastChild)}var s=Object.prototype.hasOwnProperty.call(an,a)?an[a]:an._default,c=s[0],p=s[1],m=s[2],g=n.createElement("div");for(g.innerHTML=p+e+m;c--;)g=g.lastChild;if(g.firstChild==g.lastChild)return g.removeChild(g.firstChild);for(var y=n.createDocumentFragment();g.firstChild;)y.appendChild(g.removeChild(g.firstChild));return y}var Li=M9;function xa(e,n){return n=n||document,n.querySelector(e)}function P9(e,n){return n=n||document,n.querySelectorAll(e)}function nc(e){e.parentNode&&e.parentNode.removeChild(e)}function ux(e,n,i,a,s){var c=Ad();c.setTranslate(n,i);var p=Ad();p.setRotate(a||0,0,0);var m=Ad();m.setScale(s||1,s||1),bd(e,[c,p,m])}function e2(e,n,i){var a=Ad();a.setTranslate(n,i),bd(e,a)}function R9(e,n){var i=Ad();i.setRotate(n,0,0),bd(e,i)}function j9(e,n){return n={exports:{}},e(n,n.exports),n.exports}var L9=j9(function(e){var n=e.exports=function(i,a){if(a||(a=16),i===void 0&&(i=128),i<=0)return"0";for(var s=Math.log(Math.pow(2,i))/Math.log(a),c=2;s===1/0;c*=2)s=Math.log(Math.pow(2,i/c))/Math.log(a)*c;for(var p=s-Math.floor(s),m="",c=0;c<Math.floor(s);c++){var g=Math.floor(Math.random()*a).toString(a);m=g+m}if(p){var y=Math.pow(a,p),g=Math.floor(Math.random()*y).toString(a);m=g+m}var O=parseInt(m,a);return O!==1/0&&O>=Math.pow(2,i)?n(i,a):m};n.rack=function(i,a,s){var c=function(m){var g=0;do{if(g++>10)if(s)i+=s;else throw new Error("too many ID collisions, use more bits");var y=n(i,a)}while(Object.hasOwnProperty.call(p,y));return p[y]=m,y},p=c.hats={};return c.get=function(m){return c.hats[m]},c.set=function(m,g){return c.hats[m]=g,c},c.bits=i||128,c.base=a||16,c}});function wa(e){if(!(this instanceof wa))return new wa(e);e=e||[128,36,1],this._seed=e.length?L9.rack(e[0],e[1],e[2]):e}wa.prototype.next=function(e){return this._seed(e||!0)},wa.prototype.nextPrefixed=function(e,n){var i;do i=e+this.next(!0);while(this.assigned(i));return this.claim(i,n),i},wa.prototype.claim=function(e,n){this._seed.set(e,n||!0)},wa.prototype.assigned=function(e){return this._seed.get(e)||!1},wa.prototype.unclaim=function(e){delete this._seed.hats[e]},wa.prototype.clear=function(){var e=this._seed.hats,n;for(n in e)this.unclaim(n)};var Q9=new wa,z9=10,Vh=3,H9=1.5,Uh=10,ic=.95,V9=1,U9=.25;function ws(e,n,i,a,s,c,p){ya.call(this,n,p);var m=e&&e.defaultFillColor,g=e&&e.defaultStrokeColor,y=e&&e.defaultLabelColor;function O(j){return i.computeStyle(j,{strokeLinecap:"round",strokeLinejoin:"round",stroke:ox,strokeWidth:2,fill:"white"})}function E(j){return i.computeStyle(j,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:ox,strokeWidth:2})}function N(j,k){var{ref:C={x:0,y:0},scale:X=1,element:te,parentGfx:fe=s._svg}=k,De=Rt("marker",{id:j,viewBox:"0 0 20 20",refX:C.x,refY:C.y,markerWidth:20*X,markerHeight:20*X,orient:"auto"});yn(De,te);var Re=xa(":scope > defs",fe);Re||(Re=Rt("defs"),yn(fe,Re)),yn(Re,De)}function _(j,k,C,X){var te=Q9.nextPrefixed("marker-");return S(j,te,k,C,X),"url(#"+te+")"}function S(j,k,C,X,te){if(C==="sequenceflow-end"){var fe=Rt("path",{d:"M 1 5 L 11 10 L 1 15 Z",...O({fill:te,stroke:te,strokeWidth:1})});N(k,{element:fe,ref:{x:11,y:10},scale:.5,parentGfx:j})}if(C==="messageflow-start"){var De=Rt("circle",{cx:6,cy:6,r:3.5,...O({fill:X,stroke:te,strokeWidth:1,strokeDasharray:[1e4,1]})});N(k,{element:De,ref:{x:6,y:6},parentGfx:j})}if(C==="messageflow-end"){var Re=Rt("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...O({fill:X,stroke:te,strokeWidth:1,strokeDasharray:[1e4,1]})});N(k,{element:Re,ref:{x:8.5,y:5},parentGfx:j})}if(C==="association-start"){var Ke=Rt("path",{d:"M 11 5 L 1 10 L 11 15",...E({fill:"none",stroke:te,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(k,{element:Ke,ref:{x:1,y:10},scale:.5,parentGfx:j})}if(C==="association-end"){var _t=Rt("path",{d:"M 1 5 L 11 10 L 1 15",...E({fill:"none",stroke:te,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(k,{element:_t,ref:{x:11,y:10},scale:.5,parentGfx:j})}if(C==="conditional-flow-marker"){var pt=Rt("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...O({fill:X,stroke:te})});N(k,{element:pt,ref:{x:-1,y:10},scale:.5,parentGfx:j})}if(C==="conditional-default-flow-marker"){var Bt=Rt("path",{d:"M 6 4 L 10 16",...O({stroke:te,fill:"none"})});N(k,{element:Bt,ref:{x:0,y:10},scale:.5,parentGfx:j})}}function M(j,k,C,X,te={}){gs(X)&&(te=X,X=0),X=X||0,te=O(te);var fe=k/2,De=C/2,Re=Rt("circle",{cx:fe,cy:De,r:Math.round((k+C)/4-X),...te});return yn(j,Re),Re}function P(j,k,C,X,te,fe){gs(te)&&(fe=te,te=0),te=te||0,fe=O(fe);var De=Rt("rect",{x:te,y:te,width:k-te*2,height:C-te*2,rx:X,ry:X,...fe});return yn(j,De),De}function T(j,k,C,X){var te=k/2,fe=C/2,De=[{x:te,y:0},{x:k,y:fe},{x:te,y:C},{x:0,y:fe}],Re=De.map(function(_t){return _t.x+","+_t.y}).join(" ");X=O(X);var Ke=Rt("polygon",{...X,points:Re});return yn(j,Ke),Ke}function R(j,k,C,X){C=E(C);var te=ax(k,C,X);return yn(j,te),te}function b(j,k,C){return R(j,k,C,5)}function w(j,k,C){C=E(C);var X=Rt("path",{...C,d:k});return yn(j,X),X}function B(j,k,C,X){return w(k,C,Je({"data-marker":j},X))}function z(j){return K[j]}function F(j){return function(k,C,X){return z(j)(k,C,X)}}var H={"bpmn:MessageEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.235,my:.315}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill),De=X?st(k,m,C.fill):Qe(k,g,C.stroke),Re=w(j,te,{fill:fe,stroke:De,strokeWidth:1});return Re},"bpmn:TimerEventDefinition":function(j,k,C={}){var X=C.width||k.width,te=C.height||k.height,fe=C.width?1:2,De=M(j,X,te,.2*te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:fe}),Re=a.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:te,position:{mx:.5,my:.5}});w(j,Re,{stroke:Qe(k,g,C.stroke),strokeWidth:fe});for(var Ke=0;Ke<12;Ke++){var _t=a.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:te,position:{mx:.5,my:.5}}),pt=X/2,Bt=te/2;w(j,_t,{strokeWidth:1,stroke:Qe(k,g,C.stroke),transform:"rotate("+Ke*30+","+Bt+","+pt+")"})}return De},"bpmn:EscalationEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.5,my:.2}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(j,k,C={}){var X=a.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.5,my:.222}});return w(j,X,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:.57,my:.263}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.2,my:.722}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:.638,my:-.055}}),fe=X?Qe(k,g,C.stroke):"none",De=w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1});return R9(De,45),De},"bpmn:CompensateEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.22,my:.5}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.5,my:.2}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{strokeWidth:1,fill:fe,stroke:Qe(k,g,C.stroke)})},"bpmn:MultipleEventDefinition":function(j,k,C={},X){var te=a.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.211,my:.36}}),fe=X?Qe(k,g,C.stroke):st(k,m,C.fill);return w(j,te,{fill:fe,stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(j,k,C={}){var X=a.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:C.width||k.width,containerHeight:C.height||k.height,position:{mx:.458,my:.194}});return w(j,X,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(j,k,C={}){var X=M(j,k.width,k.height,8,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:4});return X}};function ee(j,k,C={},X){var te=Ut(j),fe=m9(te),De=X||j;return te.get("eventDefinitions")&&te.get("eventDefinitions").length>1?te.get("parallelMultiple")?H["bpmn:ParallelMultipleEventDefinition"](k,De,C,fe):H["bpmn:MultipleEventDefinition"](k,De,C,fe):Kr(te,"bpmn:MessageEventDefinition")?H["bpmn:MessageEventDefinition"](k,De,C,fe):Kr(te,"bpmn:TimerEventDefinition")?H["bpmn:TimerEventDefinition"](k,De,C,fe):Kr(te,"bpmn:ConditionalEventDefinition")?H["bpmn:ConditionalEventDefinition"](k,De,C,fe):Kr(te,"bpmn:SignalEventDefinition")?H["bpmn:SignalEventDefinition"](k,De,C,fe):Kr(te,"bpmn:EscalationEventDefinition")?H["bpmn:EscalationEventDefinition"](k,De,C,fe):Kr(te,"bpmn:LinkEventDefinition")?H["bpmn:LinkEventDefinition"](k,De,C,fe):Kr(te,"bpmn:ErrorEventDefinition")?H["bpmn:ErrorEventDefinition"](k,De,C,fe):Kr(te,"bpmn:CancelEventDefinition")?H["bpmn:CancelEventDefinition"](k,De,C,fe):Kr(te,"bpmn:CompensateEventDefinition")?H["bpmn:CompensateEventDefinition"](k,De,C,fe):Kr(te,"bpmn:TerminateEventDefinition")?H["bpmn:TerminateEventDefinition"](k,De,C,fe):null}var ne={ParticipantMultiplicityMarker:function(j,k,C={}){var X=er(k,C),te=Ai(k,C),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2-6)/X,my:(te-15)/te}});B("participant-multiplicity",j,fe,{strokeWidth:2,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},SubProcessMarker:function(j,k,C={}){var X=P(j,14,14,0,{strokeWidth:1,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)});e2(X,k.width/2-7.5,k.height-20);var te=a.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:k.width,containerHeight:k.height,position:{mx:(k.width/2-7.5)/k.width,my:(k.height-20)/k.height}});B("sub-process",j,te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},ParallelMarker:function(j,k,C){var X=er(k,C),te=Ai(k,C),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+C.parallel)/X,my:(te-20)/te}});B("parallel",j,fe,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},SequentialMarker:function(j,k,C){var X=a.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:(k.width/2+C.seq)/k.width,my:(k.height-19)/k.height}});B("sequential",j,X,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},CompensationMarker:function(j,k,C){var X=a.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:(k.width/2+C.compensation)/k.width,my:(k.height-13)/k.height}});B("compensation",j,X,{strokeWidth:1,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})},LoopMarker:function(j,k,C){var X=er(k,C),te=Ai(k,C),fe=a.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+C.loop)/X,my:(te-7)/te}});B("loop",j,fe,{strokeWidth:1.5,fill:"none",stroke:Qe(k,g,C.stroke),strokeMiterlimit:.5})},AdhocMarker:function(j,k,C){var X=er(k,C),te=Ai(k,C),fe=a.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:(X/2+C.adhoc)/X,my:(te-15)/te}});B("adhoc",j,fe,{strokeWidth:1,fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke)})}};function se(j,k,C,X){ne[j](k,C,X)}function me(j,k,C=[],X={}){X={fill:X.fill,stroke:X.stroke,width:er(k,X),height:Ai(k,X)};var te=Ut(k),fe=C.includes("SubProcessMarker");fe?X={...X,seq:-21,parallel:-22,compensation:-25,loop:-18,adhoc:10}:X={...X,seq:-5,parallel:-6,compensation:-7,loop:0,adhoc:-8},te.get("isForCompensation")&&C.push("CompensationMarker"),Ge(te,"bpmn:AdHocSubProcess")&&(C.push("AdhocMarker"),fe||Je(X,{compensation:X.compensation-18}));var De=te.get("loopCharacteristics"),Re=De&&De.get("isSequential");De&&(Je(X,{compensation:X.compensation-18}),C.includes("AdhocMarker")&&Je(X,{seq:-23,loop:-18,parallel:-24}),Re===void 0&&C.push("LoopMarker"),Re===!1&&C.push("ParallelMarker"),Re===!0&&C.push("SequentialMarker")),C.includes("CompensationMarker")&&C.length===1&&Je(X,{compensation:-8}),We(C,function(Ke){se(Ke,j,k,X)})}function pe(j,k,C={}){C=Je({size:{width:100}},C);var X=c.createText(k||"",C);return Jr(X).add("djs-label"),yn(j,X),X}function Se(j,k,C,X={}){var te=Ut(k),fe=yd({x:k.x,y:k.y,width:k.width,height:k.height},X);return pe(j,te.name,{align:C,box:fe,padding:7,style:{fill:_d(k,y,g,X.stroke)}})}function ye(j,k,C={}){var X={width:90,height:30,x:k.width/2+k.x,y:k.height/2+k.y};return pe(j,jh(k),{box:X,fitBox:!0,style:Je({},c.getExternalStyle(),{fill:_d(k,y,g,C.stroke)})})}function _e(j,k,C,X={}){var te=PB(C),fe=pe(j,k,{box:{height:30,width:te?Ai(C,X):er(C,X)},align:"center-middle",style:{fill:_d(C,y,g,X.stroke)}});if(te){var De=-1*Ai(C,X);ux(fe,0,-De,270)}}function W(j,k,C={}){var{width:X,height:te}=yd(k,C);return P(j,X,te,Uh,{...C,fill:st(k,m,C.fill),fillOpacity:ic,stroke:Qe(k,g,C.stroke)})}function J(j,k,C={}){var X=Ut(k),te=st(k,m,C.fill),fe=Qe(k,g,C.stroke);return(X.get("associationDirection")==="One"||X.get("associationDirection")==="Both")&&(C.markerEnd=_(j,"association-end",te,fe)),X.get("associationDirection")==="Both"&&(C.markerStart=_(j,"association-start",te,fe)),C=gt(C,["markerStart","markerEnd"]),b(j,k.waypoints,{...C,stroke:fe,strokeDasharray:"0, 5"})}function re(j,k,C={}){var X=st(k,m,C.fill),te=Qe(k,g,C.stroke),fe=a.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:.474,my:.296}}),De=w(j,fe,{fill:X,fillOpacity:ic,stroke:te}),Re=Ut(k);if(g9(Re)){var Ke=a.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:.33,my:(k.height-18)/k.height}});w(j,Ke,{strokeWidth:2,fill:X,stroke:te})}return De}function ge(j,k,C={}){return M(j,k.width,k.height,{fillOpacity:ic,...C,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)})}function Te(j,k,C={}){return T(j,k.width,k.height,{fill:st(k,m,C.fill),fillOpacity:ic,stroke:Qe(k,g,C.stroke)})}function le(j,k,C={}){var X=P(j,er(k,C),Ai(k,C),0,{fill:st(k,m,C.fill),fillOpacity:C.fillOpacity||ic,stroke:Qe(k,g,C.stroke),strokeWidth:1.5}),te=Ut(k);if(Ge(te,"bpmn:Lane")){var fe=te.get("name");_e(j,fe,k,C)}return X}function he(j,k,C={}){var X=W(j,k,C),te=bs(k);if(z8(k)&&(Pt(X,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),!te)){var fe=Ut(k).flowElements||[],De=fe.filter(Re=>Ge(Re,"bpmn:StartEvent"));De.length===1&&xe(De[0],j,C,k)}return Se(j,k,te?"center-top":"center-middle",C),te?me(j,k,void 0,C):me(j,k,["SubProcessMarker"],C),X}function xe(j,k,C,X){var te=22,fe={fill:st(X,m,C.fill),stroke:Qe(X,g,C.stroke),width:te,height:te},De=Ut(j).isInterrupting,Re=De?0:3,Ke=De?1:1.2,_t=20,pt=(te-_t)/2,Bt="translate("+pt+","+pt+")";M(k,_t,_t,{fill:fe.fill,stroke:fe.stroke,strokeWidth:Ke,strokeDasharray:Re,transform:Bt}),ee(j,k,fe,X)}function Fe(j,k,C={}){var X=W(j,k,C);return Se(j,k,"center-middle",C),me(j,k,void 0,C),X}var K=this.handlers={"bpmn:AdHocSubProcess":function(j,k,C={}){return bs(k)?C=gt(C,["fill","stroke","width","height"]):C=gt(C,["fill","stroke"]),he(j,k,C)},"bpmn:Association":function(j,k,C={}){return C=gt(C,["fill","stroke"]),J(j,k,C)},"bpmn:BoundaryEvent":function(j,k,C={}){var{renderIcon:X=!0}=C;C=gt(C,["fill","stroke"]);var te=Ut(k),fe=te.get("cancelActivity");C={strokeWidth:1.5,fill:st(k,m,C.fill),fillOpacity:V9,stroke:Qe(k,g,C.stroke)},fe||(C.strokeDasharray="6");var De=ge(j,k,C);return M(j,k.width,k.height,Vh,{...C,fill:"none"}),X&&ee(k,j,C),De},"bpmn:BusinessRuleTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),fe=w(j,te);Pt(fe,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1});var De=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),Re=w(j,De);return Pt(Re,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:CallActivity":function(j,k,C={}){return C=gt(C,["fill","stroke"]),he(j,k,{strokeWidth:5,...C})},"bpmn:ComplexGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Te(j,k,C),te=a.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:k.width,containerHeight:k.height,position:{mx:.46,my:.26}});return w(j,te,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:DataInput":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),te=re(j,k,C);return w(j,X,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:1}),te},"bpmn:DataInputAssociation":function(j,k,C={}){return C=gt(C,["fill","stroke"]),J(j,k,{...C,markerEnd:_(j,"association-end",st(k,m,C.fill),Qe(k,g,C.stroke))})},"bpmn:DataObject":function(j,k,C={}){return C=gt(C,["fill","stroke"]),re(j,k,C)},"bpmn:DataObjectReference":F("bpmn:DataObject"),"bpmn:DataOutput":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),te=re(j,k,C);return w(j,X,{strokeWidth:1,fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke)}),te},"bpmn:DataOutputAssociation":function(j,k,C={}){return C=gt(C,["fill","stroke"]),J(j,k,{...C,markerEnd:_(j,"association-end",st(k,m,C.fill),Qe(k,g,C.stroke))})},"bpmn:DataStoreReference":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=a.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:k.width,containerHeight:k.height,position:{mx:0,my:.133}});return w(j,X,{fill:st(k,m,C.fill),fillOpacity:ic,stroke:Qe(k,g,C.stroke),strokeWidth:2})},"bpmn:EndEvent":function(j,k,C={}){var{renderIcon:X=!0}=C;C=gt(C,["fill","stroke"]);var te=ge(j,k,{...C,strokeWidth:4});return X&&ee(k,j,C),te},"bpmn:EventBasedGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Ut(k),te=Te(j,k,C);M(j,k.width,k.height,k.height*.2,{fill:st(k,"none",C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1});var fe=X.get("eventGatewayType"),De=!!X.get("instantiate");function Re(){var _t=a.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:k.width,containerHeight:k.height,position:{mx:.36,my:.44}});w(j,_t,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:2})}if(fe==="Parallel"){var Ke=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:k.width,containerHeight:k.height,position:{mx:.474,my:.296}});w(j,Ke,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:1})}else fe==="Exclusive"&&(De||M(j,k.width,k.height,k.height*.26,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:1}),Re());return te},"bpmn:ExclusiveGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Te(j,k,C),te=a.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:k.width,containerHeight:k.height,position:{mx:.32,my:.3}}),fe=vs(k);return fe.get("isMarkerVisible")&&w(j,te,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:Gateway":function(j,k,C={}){return C=gt(C,["fill","stroke"]),Te(j,k,C)},"bpmn:Group":function(j,k,C={}){return C=gt(C,["fill","stroke","width","height"]),P(j,k.width,k.height,Uh,{stroke:Qe(k,g,C.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:er(k,C),height:Ai(k,C)})},"bpmn:InclusiveGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Te(j,k,C);return M(j,k.width,k.height,k.height*.24,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:2.5}),X},"bpmn:IntermediateEvent":function(j,k,C={}){var{renderIcon:X=!0}=C;C=gt(C,["fill","stroke"]);var te=ge(j,k,{...C,strokeWidth:1.5});return M(j,k.width,k.height,Vh,{fill:"none",stroke:Qe(k,g,C.stroke),strokeWidth:1.5}),X&&ee(k,j,C),te},"bpmn:IntermediateCatchEvent":F("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":F("bpmn:IntermediateEvent"),"bpmn:Lane":function(j,k,C={}){return C=gt(C,["fill","stroke","width","height"]),le(j,k,{...C,fillOpacity:U9})},"bpmn:ManualTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=a.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return w(j,te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:.5}),X},"bpmn:MessageFlow":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Ut(k),te=vs(k),fe=st(k,m,C.fill),De=Qe(k,g,C.stroke),Re=b(j,k.waypoints,{markerEnd:_(j,"messageflow-end",fe,De),markerStart:_(j,"messageflow-start",fe,De),stroke:De,strokeDasharray:"10, 11",strokeWidth:1.5});if(X.get("messageRef")){var Ke=Re.getPointAtLength(Re.getTotalLength()/2),_t=a.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Ke.x,y:Ke.y}}),pt={strokeWidth:1};te.get("messageVisibleKind")==="initiating"?(pt.fill=fe,pt.stroke=De):(pt.fill=De,pt.stroke=fe);var Bt=w(j,_t,pt),sn=X.get("messageRef"),ct=sn.get("name"),Ot=pe(j,ct,{align:"center-top",fitBox:!0,style:{fill:De}}),fn=Bt.getBBox(),ve=Ot.getBBox(),q=Ke.x-ve.width/2,G=Ke.y+fn.height/2+z9;ux(Ot,q,G,0)}return Re},"bpmn:ParallelGateway":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Te(j,k,C),te=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:k.width,containerHeight:k.height,position:{mx:.46,my:.2}});return w(j,te,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:Participant":function(j,k,C={}){C=gt(C,["fill","stroke","width","height"]);var X=le(j,k,C),te=bs(k),fe=PB(k),De=Ut(k),Re=De.get("name");if(te){var Ke=fe?[{x:30,y:0},{x:30,y:Ai(k,C)}]:[{x:0,y:30},{x:er(k,C),y:30}];R(j,Ke,{stroke:Qe(k,g,C.stroke),strokeWidth:H9}),_e(j,Re,k,C)}else{var _t=yd(k,C);fe||(_t.height=er(k,C),_t.width=Ai(k,C));var pt=pe(j,Re,{box:_t,align:"center-middle",style:{fill:_d(k,y,g,C.stroke)}});if(!fe){var Bt=-1*Ai(k,C);ux(pt,0,-Bt,270)}}return De.get("participantMultiplicity")&&se("ParticipantMultiplicityMarker",j,k,C),X},"bpmn:ReceiveTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Ut(k),te=Fe(j,k,C),fe;return X.get("instantiate")?(M(j,28,28,20*.22,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),fe=a.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):fe=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),w(j,fe,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),te},"bpmn:ScriptTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=a.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return w(j,te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:SendTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return w(j,te,{fill:Qe(k,g,C.stroke),stroke:st(k,m,C.fill),strokeWidth:1}),X},"bpmn:SequenceFlow":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=st(k,m,C.fill),te=Qe(k,g,C.stroke),fe=b(j,k.waypoints,{markerEnd:_(j,"sequenceflow-end",X,te),stroke:te}),De=Ut(k),{source:Re}=k;if(Re){var Ke=Ut(Re);De.get("conditionExpression")&&Ge(Ke,"bpmn:Activity")&&Pt(fe,{markerStart:_(j,"conditional-flow-marker",X,te)}),Ke.get("default")&&(Ge(Ke,"bpmn:Gateway")||Ge(Ke,"bpmn:Activity"))&&Ke.get("default")===De&&Pt(fe,{markerStart:_(j,"conditional-default-flow-marker",X,te)})}return fe},"bpmn:ServiceTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C);M(j,10,10,{fill:st(k,m,C.fill),stroke:"none",transform:"translate(6, 6)"});var te=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});w(j,te,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),M(j,10,10,{fill:st(k,m,C.fill),stroke:"none",transform:"translate(11, 10)"});var fe=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return w(j,fe,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:1}),X},"bpmn:StartEvent":function(j,k,C={}){var{renderIcon:X=!0}=C;C=gt(C,["fill","stroke"]);var te=Ut(k);te.get("isInterrupting")||(C={...C,strokeDasharray:"6"});var fe=ge(j,k,C);return X&&ee(k,j,C),fe},"bpmn:SubProcess":function(j,k,C={}){return bs(k)?C=gt(C,["fill","stroke","width","height"]):C=gt(C,["fill","stroke"]),he(j,k,C)},"bpmn:Task":function(j,k,C={}){return C=gt(C,["fill","stroke"]),Fe(j,k,C)},"bpmn:TextAnnotation":function(j,k,C={}){C=gt(C,["fill","stroke","width","height"]);var{width:X,height:te}=yd(k,C),fe=P(j,X,te,0,0,{fill:"none",stroke:"none"}),De=a.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:te,position:{mx:0,my:0}});w(j,De,{stroke:Qe(k,g,C.stroke)});var Re=Ut(k),Ke=Re.get("text")||"";return pe(j,Ke,{align:"left-top",box:yd(k,C),padding:7,style:{fill:_d(k,y,g,C.stroke)}}),fe},"bpmn:Transaction":function(j,k,C={}){bs(k)?C=gt(C,["fill","stroke","width","height"]):C=gt(C,["fill","stroke"]);var X=he(j,k,{strokeWidth:1.5,...C}),te=i.style(["no-fill","no-events"],{stroke:Qe(k,g,C.stroke),strokeWidth:1.5}),fe=bs(k);return fe||(C={}),P(j,er(k,C),Ai(k,C),Uh-Vh,Vh,te),X},"bpmn:UserTask":function(j,k,C={}){C=gt(C,["fill","stroke"]);var X=Fe(j,k,C),te=15,fe=12,De=a.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:te,y:fe}});w(j,De,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:.5});var Re=a.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:te,y:fe}});w(j,Re,{fill:st(k,m,C.fill),stroke:Qe(k,g,C.stroke),strokeWidth:.5});var Ke=a.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:te,y:fe}});return w(j,Ke,{fill:Qe(k,g,C.stroke),stroke:Qe(k,g,C.stroke),strokeWidth:.5}),X},label:function(j,k,C={}){return ye(j,k,C)}};this._drawPath=w,this._renderer=z}Gr(ws,ya),ws.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],ws.prototype.canRender=function(e){return Ge(e,"bpmn:BaseElement")},ws.prototype.drawShape=function(e,n,i={}){var{type:a}=n,s=this._renderer(a);return s(e,n,i)},ws.prototype.drawConnection=function(e,n,i={}){var{type:a}=n,s=this._renderer(a);return s(e,n,i)},ws.prototype.getShapePath=function(e){return Ge(e,"bpmn:Event")?A9(e):Ge(e,"bpmn:Activity")?v9(e,Uh):Ge(e,"bpmn:Gateway")?b9(e):_9(e)};function gt(e,n=[]){return n.reduce((i,a)=>(e[a]&&(i[a]=e[a]),i),{})}var Y9=0,W9={width:150,height:50};function G9(e){var n=e.split("-");return{horizontal:n[0]||"center",vertical:n[1]||"top"}}function J9(e){return gs(e)?Je({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function K9(e,n){n.textContent=e;var i;try{var a,s=e==="";return n.textContent=s?"dummy":e,i=n.getBBox(),a={width:i.width+i.x*2,height:i.height},s&&(a.width=0),a}catch(c){return{width:0,height:0}}}function X9(e,n,i){for(var a=e.shift(),s=a,c;;){if(c=K9(s,i),c.width=s?c.width:0,s===" "||s===""||c.width<Math.round(n)||s.length<2)return Z9(e,s,a,c);s=q9(s,c.width,n)}}function Z9(e,n,i,a){if(n.length<i.length){var s=i.slice(n.length).trim();e.unshift(s)}return{width:a.width,height:a.height,text:n}}var t2="\xAD";function $9(e,n){var i=e.split(/(\s|-|\u00AD)/g),a,s=[],c=0;if(i.length>1)for(;a=i.shift();)if(a.length+c<n)s.push(a),c+=a.length;else{(a==="-"||a===t2)&&s.pop();break}var p=s[s.length-1];return p&&p===t2&&(s[s.length-1]="-"),s.join("")}function q9(e,n,i){var a=Math.max(e.length*(i/n),1),s=$9(e,a);return s||(s=e.slice(0,Math.max(Math.round(a-1),1))),s}function e7(){var e=document.getElementById("helper-svg");return e||(e=Rt("svg"),Pt(e,{id:"helper-svg"}),Tn(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function Yh(e){this._config=Je({},{size:W9,padding:Y9,style:{},align:"center-top"},e||{})}Yh.prototype.createText=function(e,n){return this.layoutText(e,n).element},Yh.prototype.getDimensions=function(e,n){return this.layoutText(e,n).dimensions},Yh.prototype.layoutText=function(e,n){var i=Je({},this._config.size,n.box),a=Je({},this._config.style,n.style),s=G9(n.align||this._config.align),c=J9(n.padding!==void 0?n.padding:this._config.padding),p=n.fitBox||!1,m=t7(a),g=e.split(/\u00AD?\r?\n/),y=[],O=i.width-c.left-c.right,E=Rt("text");Pt(E,{x:0,y:0}),Pt(E,a);var N=e7();for(yn(N,E);g.length;)y.push(X9(g,O,E));s.vertical==="middle"&&(c.top=c.bottom=0);var _=ec(y,function(R,b,w){return R+(m||b.height)},0)+c.top+c.bottom,S=ec(y,function(R,b,w){return b.width>R?b.width:R},0),M=c.top;s.vertical==="middle"&&(M+=(i.height-_)/2),M-=(m||y[0].height)/4;var P=Rt("text");Pt(P,a),We(y,function(R){var b;switch(M+=m||R.height,s.horizontal){case"left":b=c.left;break;case"right":b=(p?S:O)-c.right-R.width;break;default:b=Math.max(((p?S:O)-R.width)/2+c.left,0)}var w=Rt("tspan");Pt(w,{x:b,y:M}),w.textContent=R.text,yn(P,w)}),vd(E);var T={width:S,height:_};return{dimensions:T,element:P}};function t7(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var n7=12,i7=1.2,r7=30;function n2(e){var n=Je({fontFamily:"Arial, sans-serif",fontSize:n7,fontWeight:"normal",lineHeight:i7},e&&e.defaultStyle||{}),i=parseInt(n.fontSize,10)-1,a=Je({},n,{fontSize:i},e&&e.externalStyle||{}),s=new Yh({style:n});this.getExternalLabelBounds=function(c,p){var m=s.getDimensions(p,{box:{width:90,height:30},style:a});return{x:Math.round(c.x+c.width/2-m.width/2),y:Math.round(c.y),width:Math.ceil(m.width),height:Math.ceil(m.height)}},this.getTextAnnotationBounds=function(c,p){var m=s.getDimensions(p,{box:c,style:n,align:"left-top",padding:5});return{x:c.x,y:c.y,width:c.width,height:Math.max(r7,Math.round(m.height))}},this.createText=function(c,p){return s.createText(c,p||{})},this.getDefaultStyle=function(){return n},this.getExternalStyle=function(){return a}}n2.$inject=["config.textRenderer"];function a7(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(n){return this.pathMap[n].d},this.getScaledPath=function(n,i){var a=this.pathMap[n],s,c;i.abspos?(s=i.abspos.x,c=i.abspos.y):(s=i.containerWidth*i.position.mx,c=i.containerHeight*i.position.my);var p={};if(i.position){for(var m=i.containerHeight/a.height*i.yScaleFactor,g=i.containerWidth/a.width*i.xScaleFactor,y=0;y<a.heightElements.length;y++)p["y"+y]=a.heightElements[y]*m;for(var O=0;O<a.widthElements.length;O++)p["x"+O]=a.widthElements[O]*g}var E=c7(a.d,{mx:s,my:c,e:p});return E}}var o7=/\{([^{}]+)\}/g,s7=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function l7(e,n,i){var a=i;return n.replace(s7,function(s,c,p,m,g){c=c||m,a&&(c in a&&(a=a[c]),typeof a=="function"&&g&&(a=a()))}),a=(a==null||a==i?e:a)+"",a}function c7(e,n){return String(e).replace(o7,function(i,a){return l7(i,a,n)})}const u7={__init__:["bpmnRenderer"],bpmnRenderer:["type",ws],textRenderer:["type",n2],pathMap:["type",a7]};function d7(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(i,a){return n[a]||"{"+a+"}"})}const i2={translate:["value",d7]};function f7(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function dx(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function p7(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function h7(e){return f7({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function m7(e){for(var n=e.waypoints,i=n.reduce(function(y,O,E){var N=n[E-1];if(N){var _=y[y.length-1],S=_&&_.endLength||0,M=g7(N,O);y.push({start:N,end:O,startLength:S,endLength:S+M,length:M})}return y},[]),a=i.reduce(function(y,O){return y+O.length},0),s=a/2,c=0,p=i[c];p.endLength<s;)p=i[++c];var m=(s-p.startLength)/p.length,g={x:p.start.x+(p.end.x-p.start.x)*m,y:p.start.y+(p.end.y-p.start.y)*m};return g}function fx(e){return H8(e)?m7(e):h7(e)}function g7(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Nn(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function Wh(e,n,i){return Je({id:e.id,type:e.$type,businessObject:e,di:n},i)}function A7(e,n,i){var a=e.waypoint;return!a||a.length<2?[fx(n),fx(i)]:a.map(function(s){return{x:s.x,y:s.y}})}function r2(e,n,i){return new Error(`element ${Nn(n)} referenced by ${Nn(e)}#${i} not yet drawn`)}function Ea(e,n,i,a,s){this._eventBus=e,this._canvas=n,this._elementFactory=i,this._elementRegistry=a,this._textRenderer=s}Ea.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],Ea.prototype.add=function(e,n,i){var a,s,c;if(Ge(n,"bpmndi:BPMNPlane")){var p=Ge(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};a=this._elementFactory.createRoot(Wh(e,n,p)),this._canvas.addRootElement(a)}else if(Ge(n,"bpmndi:BPMNShape")){var m=!bs(e,n),g=b7(e);s=i&&(i.hidden||i.collapsed);var y=n.bounds;a=this._elementFactory.createShape(Wh(e,n,{collapsed:m,hidden:s,x:Math.round(y.x),y:Math.round(y.y),width:Math.round(y.width),height:Math.round(y.height),isFrame:g})),Ge(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,a),Ge(e,"bpmn:Lane")&&(c=0),Ge(e,"bpmn:DataStoreReference")&&(v7(i,fx(y))||(i=this._canvas.findRoot(i))),this._canvas.addShape(a,i,c)}else if(Ge(n,"bpmndi:BPMNEdge")){var O=this._getSource(e),E=this._getTarget(e);s=i&&(i.hidden||i.collapsed),a=this._elementFactory.createConnection(Wh(e,n,{hidden:s,source:O,target:E,waypoints:A7(n,O,E)})),Ge(e,"bpmn:DataAssociation")&&(i=this._canvas.findRoot(i)),this._canvas.addConnection(a,i,c)}else throw new Error(`unknown di ${Nn(n)} for element ${Nn(e)}`);return V8(e)&&jh(a)&&this.addLabel(e,n,a),this._eventBus.fire("bpmnElement.added",{element:a}),a},Ea.prototype._attachBoundary=function(e,n){var i=e.attachedToRef;if(!i)throw new Error(`missing ${Nn(e)}#attachedToRef`);var a=this._elementRegistry.get(i.id),s=a&&a.attachers;if(!a)throw r2(e,i,"attachedToRef");n.host=a,s||(a.attachers=s=[]),s.indexOf(n)===-1&&s.push(n)},Ea.prototype.addLabel=function(e,n,i){var a,s,c;return a=G8(n,i),s=jh(i),s&&(a=this._textRenderer.getExternalLabelBounds(a,s)),c=this._elementFactory.createLabel(Wh(e,n,{id:e.id+"_label",labelTarget:i,type:"label",hidden:i.hidden||!jh(i),x:Math.round(a.x),y:Math.round(a.y),width:Math.round(a.width),height:Math.round(a.height)})),this._canvas.addShape(c,i.parent)},Ea.prototype._getConnectedElement=function(e,n){var i,a,s=e.$type;if(a=e[n+"Ref"],n==="source"&&s==="bpmn:DataInputAssociation"&&(a=a&&a[0]),(n==="source"&&s==="bpmn:DataOutputAssociation"||n==="target"&&s==="bpmn:DataInputAssociation")&&(a=e.$parent),i=a&&this._getElement(a),i)return i;throw a?r2(e,a,n+"Ref"):new Error(`${Nn(e)}#${n} Ref not specified`)},Ea.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},Ea.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},Ea.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function v7(e,n){var i=n.x,a=n.y;return i>=e.x&&i<=e.x+e.width&&a>=e.y&&a<=e.y+e.height}function b7(e){return Ge(e,"bpmn:Group")}const _7={__depends__:[u7,{__depends__:[i2],bpmnImporter:["type",Ea]}]};function xd(e,n){n=!!n,kr(e)||(e=[e]);var i,a,s,c;return We(e,function(p){var m=p;p.waypoints&&!n&&(m=xd(p.waypoints,!0));var g=m.x,y=m.y,O=m.height||0,E=m.width||0;(g<i||i===void 0)&&(i=g),(y<a||a===void 0)&&(a=y),(g+E>s||s===void 0)&&(s=g+E),(y+O>c||c===void 0)&&(c=y+O)}),{x:i,y:a,height:c-a,width:s-i}}function a2(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function o2(e){return!!(e&&e.isFrame)}function px(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}px.prototype.next=function(){return this._prefix+ ++this._counter};var y7=new px("ov"),x7=500;function xn(e,n,i,a){this._eventBus=n,this._canvas=i,this._elementRegistry=a,this._ids=y7,this._overlayDefaults=Je({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=w7(i.getContainer()),this._init()}xn.$inject=["config.overlays","eventBus","canvas","elementRegistry"],xn.prototype.get=function(e){if(Cr(e)&&(e={id:e}),Cr(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?ql(n.overlays,FB({type:e.type})):n.overlays.slice():[]}else return e.type?ql(this._overlays,FB({type:e.type})):e.id?this._overlays[e.id]:null},xn.prototype.add=function(e,n,i){if(gs(n)&&(i=n,n=null),e.id||(e=this._elementRegistry.get(e)),!i.position)throw new Error("must specifiy overlay position");if(!i.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var a=this._ids.next();return i=Je({},this._overlayDefaults,i,{id:a,type:n,element:e,html:i.html}),this._addOverlay(i),a},xn.prototype.remove=function(e){var n=this.get(e)||[];kr(n)||(n=[n]);var i=this;We(n,function(a){var s=i._getOverlayContainer(a.element,!0);if(a&&(nc(a.html),nc(a.htmlContainer),delete a.htmlContainer,delete a.element,delete i._overlays[a.id]),s){var c=s.overlays.indexOf(a);c!==-1&&s.overlays.splice(c,1)}})},xn.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},xn.prototype.show=function(){Gh(this._overlayRoot)},xn.prototype.hide=function(){Gh(this._overlayRoot,!1)},xn.prototype.clear=function(){this._overlays={},this._overlayContainers=[],KB(this._overlayRoot)},xn.prototype._updateOverlayContainer=function(e){var n=e.element,i=e.html,a=n.x,s=n.y;if(n.waypoints){var c=xd(n);a=c.x,s=c.y}s2(i,a,s),sx(e.html,"data-container-id",n.id)},xn.prototype._updateOverlay=function(e){var n=e.position,i=e.htmlContainer,a=e.element,s=n.left,c=n.top;if(n.right!==void 0){var p;a.waypoints?p=xd(a).width:p=a.width,s=n.right*-1+p}if(n.bottom!==void 0){var m;a.waypoints?m=xd(a).height:m=a.height,c=n.bottom*-1+m}s2(i,s||0,c||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},xn.prototype._createOverlayContainer=function(e){var n=Li('<div class="djs-overlays" />');Tn(n,{position:"absolute"}),this._overlayRoot.appendChild(n);var i={html:n,element:e,overlays:[]};return this._updateOverlayContainer(i),this._overlayContainers.push(i),i},xn.prototype._updateRoot=function(e){var n=e.scale||1,i="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";l2(this._overlayRoot,i)},xn.prototype._getOverlayContainer=function(e,n){var i=Sr(this._overlayContainers,function(a){return a.element===e});return!i&&!n?this._createOverlayContainer(e):i},xn.prototype._addOverlay=function(e){var n=e.id,i=e.element,a=e.html,s,c;a.get&&a.constructor.prototype.jquery&&(a=a.get(0)),Cr(a)&&(a=Li(a)),c=this._getOverlayContainer(i),s=Li('<div class="djs-overlay" data-overlay-id="'+n+'">'),Tn(s,{position:"absolute"}),s.appendChild(a),e.type&&ys(s).add("djs-overlay-"+e.type);var p=this._canvas.findRoot(i),m=this._canvas.getRootElement();Gh(s,p===m),e.htmlContainer=s,c.overlays.push(e),c.html.appendChild(s),this._overlays[n]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},xn.prototype._updateOverlayVisibilty=function(e,n){var i=e.show,a=this._canvas.findRoot(e.element),s=i&&i.minZoom,c=i&&i.maxZoom,p=e.htmlContainer,m=this._canvas.getRootElement(),g=!0;(a!==m||i&&(Zl(s)&&s>n.scale||Zl(c)&&c<n.scale))&&(g=!1),Gh(p,g),this._updateOverlayScale(e,n)},xn.prototype._updateOverlayScale=function(e,n){var i=e.scale,a,s,c=e.htmlContainer,p,m="";i!==!0&&(i===!1?(a=1,s=1):(a=i.min,s=i.max),Zl(a)&&n.scale<a&&(p=(1/n.scale||1)*a),Zl(s)&&n.scale>s&&(p=(1/n.scale||1)*s)),Zl(p)&&(m="scale("+p+","+p+")"),l2(c,m)},xn.prototype._updateOverlaysVisibilty=function(e){var n=this;We(this._overlays,function(i){n._updateOverlayVisibilty(i,e)})},xn.prototype._init=function(){var e=this._eventBus,n=this;function i(a){n._updateRoot(a),n._updateOverlaysVisibilty(a),n.show()}e.on("canvas.viewbox.changing",function(a){n.hide()}),e.on("canvas.viewbox.changed",function(a){i(a.viewbox)}),e.on(["shape.remove","connection.remove"],function(a){var s=a.element,c=n.get({element:s});We(c,function(g){n.remove(g.id)});var p=n._getOverlayContainer(s);if(p){nc(p.html);var m=n._overlayContainers.indexOf(p);m!==-1&&n._overlayContainers.splice(m,1)}}),e.on("element.changed",x7,function(a){var s=a.element,c=n._getOverlayContainer(s,!0);c&&(We(c.overlays,function(p){n._updateOverlay(p)}),n._updateOverlayContainer(c))}),e.on("element.marker.update",function(a){var s=n._getOverlayContainer(a.element,!0);s&&ys(s.html)[a.add?"add":"remove"](a.marker)}),e.on("root.set",function(){n._updateOverlaysVisibilty(n._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function w7(e){var n=Li('<div class="djs-overlay-container" />');return Tn(n,{position:"absolute",width:0,height:0}),e.insertBefore(n,e.firstChild),n}function s2(e,n,i){Tn(e,{left:n+"px",top:i+"px"})}function Gh(e,n){e.style.display=n===!1?"none":""}function l2(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(i){e.style[i+"transform"]=n})}const c2={__init__:["overlays"],overlays:["type",xn]};function u2(e,n,i,a){e.on("element.changed",function(s){var c=s.element;(c.parent||c===n.getRootElement())&&(s.gfx=i.getGraphics(c)),s.gfx&&e.fire(a2(c)+".changed",s)}),e.on("elements.changed",function(s){var c=s.elements;c.forEach(function(p){e.fire("element.changed",{element:p})}),a.updateContainments(c)}),e.on("shape.changed",function(s){a.update("shape",s.element,s.gfx)}),e.on("connection.changed",function(s){a.update("connection",s.element,s.gfx)})}u2.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const E7={__init__:["changeSupport"],changeSupport:["type",u2]};var k7=1e3;function $n(e){this._eventBus=e}$n.$inject=["eventBus"];function C7(e,n){return function(i){return e.call(n||null,i.context,i.command,i)}}$n.prototype.on=function(e,n,i,a,s,c){if((As(n)||no(n))&&(c=s,s=a,a=i,i=n,n=null),As(i)&&(c=s,s=a,a=i,i=k7),gs(s)&&(c=s,s=!1),!As(a))throw new Error("handlerFn must be a function");kr(e)||(e=[e]);var p=this._eventBus;We(e,function(m){var g=["commandStack",m,n].filter(function(y){return y}).join(".");p.on(g,i,s?C7(a,c):a,c)})},$n.prototype.canExecute=ka("canExecute"),$n.prototype.preExecute=ka("preExecute"),$n.prototype.preExecuted=ka("preExecuted"),$n.prototype.execute=ka("execute"),$n.prototype.executed=ka("executed"),$n.prototype.postExecute=ka("postExecute"),$n.prototype.postExecuted=ka("postExecuted"),$n.prototype.revert=ka("revert"),$n.prototype.reverted=ka("reverted");function ka(e){return function(i,a,s,c,p){(As(i)||no(i))&&(p=c,c=s,s=a,a=i,i=null),this.on(i,e,a,s,c,p)}}function hx(e,n){n.invoke($n,this),this.executed(function(i){var a=i.context;a.rootElement?e.setRootElement(a.rootElement):a.rootElement=e.getRootElement()}),this.revert(function(i){var a=i.context;a.rootElement&&e.setRootElement(a.rootElement)})}Gr(hx,$n),hx.$inject=["canvas","injector"];const S7={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",hx]};var D7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function I7(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(n){return D7[n]})}var B7="_plane";function mx(e){var n=e.id;return Ge(e,"bpmn:SubProcess")?O7(n):n}function O7(e){return e+B7}var T7="bjs-breadcrumbs-shown";function d2(e,n,i){var a=Li('<ul class="bjs-breadcrumbs"></ul>'),s=i.getContainer(),c=ys(s);s.appendChild(a);var p=[];e.on("element.changed",function(g){var y=g.element,O=Ut(y),E=Sr(p,function(N){return N===O});!E||m()});function m(g){g&&(p=N7(g));var y=p.flatMap(function(E){var N=i.findRoot(mx(E))||i.findRoot(E.id);if(!N&&Ge(E,"bpmn:Process")){var _=n.find(function(P){var T=Ut(P);return T&&T.get("processRef")===E});N=_&&i.findRoot(_.id)}if(!N)return[];var S=I7(E.name||E.id),M=Li('<li><span class="bjs-crumb"><a title="'+S+'">'+S+"</a></span></li>");return M.addEventListener("click",function(){i.setRootElement(N)}),M});a.innerHTML="";var O=y.length>1;c.toggle(T7,O),y.forEach(function(E){a.appendChild(E)})}e.on("root.set",function(g){m(g.element)})}d2.$inject=["eventBus","elementRegistry","canvas"];function N7(e){for(var n=Ut(e),i=[],a=n;a;a=a.$parent)(Ge(a,"bpmn:SubProcess")||Ge(a,"bpmn:Process"))&&i.push(a);return i.reverse()}function f2(e,n){var i=null,a=new M7;e.on("root.set",function(s){var c=s.element,p=n.viewbox(),m=a.get(c);if(a.set(i,{x:p.x,y:p.y,zoom:p.scale}),i=c,!(!Ge(c,"bpmn:SubProcess")&&!m)){m=m||{x:0,y:0,zoom:1};var g=(p.x-m.x)*p.scale,y=(p.y-m.y)*p.scale;(g!==0||y!==0)&&n.scroll({dx:g,dy:y}),m.zoom!==p.scale&&n.zoom(m.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){a.clear(),i=null})}f2.$inject=["eventBus","canvas"];function M7(){this._entries=[],this.set=function(e,n){var i=!1;for(var a in this._entries)if(this._entries[a][0]===e){this._entries[a][1]=n,i=!0;break}i||this._entries.push([e,n])},this.get=function(e){for(var n in this._entries)if(this._entries[n][0]===e)return this._entries[n][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var n=-1;for(var i in this._entries)if(this._entries[i][0]===e){n=i;break}n!==-1&&this._entries.splice(n,1)}}var p2={x:180,y:160};function Es(e,n){this._eventBus=e,this._moddle=n;var i=this;e.on("import.render.start",1500,function(a,s){i._handleImport(s.definitions)})}Es.prototype._handleImport=function(e){if(!!e.diagrams){var n=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(a){!a.plane||!a.plane.bpmnElement||(n._processToDiagramMap[a.plane.bpmnElement.id]=a)});var i=e.diagrams.filter(a=>a.plane).flatMap(a=>n._createNewDiagrams(a.plane));i.forEach(function(a){n._movePlaneElementsToOrigin(a.plane)})}},Es.prototype._createNewDiagrams=function(e){var n=this,i=[],a=[];e.get("planeElement").forEach(function(c){var p=c.bpmnElement;if(!!p){var m=p.$parent;Ge(p,"bpmn:SubProcess")&&!c.isExpanded&&i.push(p),P7(p,e)&&a.push({diElement:c,parent:m})}});var s=[];return i.forEach(function(c){if(!n._processToDiagramMap[c.id]){var p=n._createDiagram(c);n._processToDiagramMap[c.id]=p,s.push(p)}}),a.forEach(function(c){for(var p=c.diElement,m=c.parent;m&&i.indexOf(m)===-1;)m=m.$parent;if(!!m){var g=n._processToDiagramMap[m.id];n._moveToDiPlane(p,g.plane)}}),s},Es.prototype._movePlaneElementsToOrigin=function(e){var n=e.get("planeElement"),i=F7(e),a={x:i.x-p2.x,y:i.y-p2.y};n.forEach(function(s){s.waypoint?s.waypoint.forEach(function(c){c.x=c.x-a.x,c.y=c.y-a.y}):s.bounds&&(s.bounds.x=s.bounds.x-a.x,s.bounds.y=s.bounds.y-a.y)})},Es.prototype._moveToDiPlane=function(e,n){var i=h2(e),a=i.plane.get("planeElement");a.splice(a.indexOf(e),1),n.get("planeElement").push(e)},Es.prototype._createDiagram=function(e){var n=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),i=this._moddle.create("bpmndi:BPMNDiagram",{plane:n});return n.$parent=i,n.bpmnElement=e,i.$parent=this._definitions,this._definitions.diagrams.push(i),i},Es.$inject=["eventBus","moddle"];function h2(e){return Ge(e,"bpmndi:BPMNDiagram")?e:h2(e.$parent)}function F7(e){var n={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(i){if(!!i.bounds){var a=dx(i.bounds);n.top=Math.min(a.top,n.top),n.left=Math.min(a.left,n.left)}}),p7(n)}function P7(e,n){var i=e.$parent;return!(!Ge(i,"bpmn:SubProcess")||i===n.bpmnElement||Q8(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var Jh=250,R7='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',j7="bjs-drilldown-empty";function oo(e,n,i,a,s){$n.call(this,n),this._canvas=e,this._eventBus=n,this._elementRegistry=i,this._overlays=a,this._translate=s;var c=this;this.executed("shape.toggleCollapse",Jh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.reverted("shape.toggleCollapse",Jh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.executed(["shape.create","shape.move","shape.delete"],Jh,function(p){var m=p.oldParent,g=p.newParent||p.parent,y=p.shape;c._canDrillDown(y)&&c._addOverlay(y),c._updateDrilldownOverlay(m),c._updateDrilldownOverlay(g),c._updateDrilldownOverlay(y)},!0),this.reverted(["shape.create","shape.move","shape.delete"],Jh,function(p){var m=p.oldParent,g=p.newParent||p.parent,y=p.shape;c._canDrillDown(y)&&c._addOverlay(y),c._updateDrilldownOverlay(m),c._updateDrilldownOverlay(g),c._updateDrilldownOverlay(y)},!0),n.on("import.render.complete",function(){i.filter(function(p){return c._canDrillDown(p)}).map(function(p){c._addOverlay(p)})})}Gr(oo,$n),oo.prototype._updateDrilldownOverlay=function(e){var n=this._canvas;if(!!e){var i=n.findRoot(e);i&&this._updateOverlayVisibility(i)}},oo.prototype._canDrillDown=function(e){var n=this._canvas;return Ge(e,"bpmn:SubProcess")&&n.findRoot(mx(e))},oo.prototype._updateOverlayVisibility=function(e){var n=this._overlays,i=Ut(e),a=n.get({element:i.id,type:"drilldown"})[0];if(!!a){var s=i&&i.get("flowElements")&&i.get("flowElements").length;ys(a.html).toggle(j7,!s)}},oo.prototype._addOverlay=function(e){var n=this._canvas,i=this._overlays,a=Ut(e),s=i.get({element:e,type:"drilldown"});s.length&&this._removeOverlay(e);var c=Li('<button type="button" class="bjs-drilldown">'+R7+"</button>"),p=a.get("name")||a.get("id"),m=this._translate("Open {element}",{element:p});c.setAttribute("title",m),c.addEventListener("click",function(){n.setRootElement(n.findRoot(mx(e)))}),i.add(e,"drilldown",{position:{bottom:-7,right:-8},html:c}),this._updateOverlayVisibility(e)},oo.prototype._removeOverlay=function(e){var n=this._overlays;n.remove({element:e,type:"drilldown"})},oo.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const L7={__depends__:[c2,E7,S7],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",d2],drilldownCentering:["type",f2],drilldownOverlayBehavior:["type",oo],subprocessCompatibility:["type",Es]};function m2(e){return e.originalEvent||e.srcEvent}function g2(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function A2(e,n){return(m2(e)||e).button===n}function Kh(e){return A2(e,0)}function Q7(e){return A2(e,1)}function z7(e){var n=m2(e)||e;return Kh(e)&&n.shiftKey}function H7(e){return!0}function Xh(e){return Kh(e)||Q7(e)}var v2=500;function b2(e,n,i){var a=this;function s(H,ee,ne){if(!m(H,ee)){var se,me,pe;ne?me=n.getGraphics(ne):(se=ee.delegateTarget||ee.target,se&&(me=se,ne=n.get(me))),!(!me||!ne)&&(pe=e.fire(H,{element:ne,gfx:me,originalEvent:ee}),pe===!1&&(ee.stopPropagation(),ee.preventDefault()))}}var c={};function p(H){return c[H]}function m(H,ee){var ne=y[H]||Kh;return!ne(ee)}var g={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},y={"element.contextmenu":H7,"element.mousedown":Xh,"element.mouseup":Xh,"element.click":Xh,"element.dblclick":Xh};function O(H,ee,ne){var se=g[H];if(!se)throw new Error("unmapped DOM event name <"+H+">");return s(se,ee,ne)}var E="svg, .djs-element";function N(H,ee,ne,se){var me=c[ne]=function(pe){s(ne,pe)};se&&(y[ne]=se),me.$delegate=tc.bind(H,E,ee,me)}function _(H,ee,ne){var se=p(ne);!se||tc.unbind(H,ee,se.$delegate)}function S(H){We(g,function(ee,ne){N(H,ne,ee)})}function M(H){We(g,function(ee,ne){_(H,ne,ee)})}e.on("canvas.destroy",function(H){M(H.svg)}),e.on("canvas.init",function(H){S(H.svg)}),e.on(["shape.added","connection.added"],function(H){var ee=H.element,ne=H.gfx;e.fire("interactionEvents.createHit",{element:ee,gfx:ne})}),e.on(["shape.changed","connection.changed"],v2,function(H){var ee=H.element,ne=H.gfx;e.fire("interactionEvents.updateHit",{element:ee,gfx:ne})}),e.on("interactionEvents.createHit",v2,function(H){var ee=H.element,ne=H.gfx;a.createDefaultHit(ee,ne)}),e.on("interactionEvents.updateHit",function(H){var ee=H.element,ne=H.gfx;a.updateDefaultHit(ee,ne)});var P=B("djs-hit djs-hit-stroke"),T=B("djs-hit djs-hit-click-stroke"),R=B("djs-hit djs-hit-all"),b=B("djs-hit djs-hit-no-move"),w={all:R,"click-stroke":T,stroke:P,"no-move":b};function B(H,ee){return ee=Je({stroke:"white",strokeWidth:15},ee||{}),i.cls(H,["no-fill","no-border"],ee)}function z(H,ee){var ne=w[ee];if(!ne)throw new Error("invalid hit type <"+ee+">");return Pt(H,ne),H}function F(H,ee){yn(H,ee)}this.removeHits=function(H){var ee=P9(".djs-hit",H);We(ee,vd)},this.createDefaultHit=function(H,ee){var ne=H.waypoints,se=H.isFrame,me;return ne?this.createWaypointsHit(ee,ne):(me=se?"stroke":"all",this.createBoxHit(ee,me,{width:H.width,height:H.height}))},this.createWaypointsHit=function(H,ee){var ne=ax(ee);return z(ne,"stroke"),F(H,ne),ne},this.createBoxHit=function(H,ee,ne){ne=Je({x:0,y:0},ne);var se=Rt("rect");return z(se,ee),Pt(se,ne),F(H,se),se},this.updateDefaultHit=function(H,ee){var ne=xa(".djs-hit",ee);if(!!ne)return H.waypoints?GB(ne,H.waypoints):Pt(ne,{width:H.width,height:H.height}),ne},this.fire=s,this.triggerMouseEvent=O,this.mouseHandler=p,this.registerEvent=N,this.unregisterEvent=_}b2.$inject=["eventBus","elementRegistry","styles"];const V7={__init__:["interactionEvents"],interactionEvents:["type",b2]};function rc(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var i=this;e.on(["shape.remove","connection.remove"],function(a){var s=a.element;i.deselect(s)}),e.on(["diagram.clear","root.set"],function(a){i.select(null)})}rc.$inject=["eventBus","canvas"],rc.prototype.deselect=function(e){var n=this._selectedElements,i=n.indexOf(e);if(i!==-1){var a=n.slice();n.splice(i,1),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:n})}},rc.prototype.get=function(){return this._selectedElements},rc.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},rc.prototype.select=function(e,n){var i=this._selectedElements,a=i.slice();kr(e)||(e=e?[e]:[]);var s=this._canvas,c=s.getRootElement();e=e.filter(function(p){var m=s.findRoot(p);return c===m}),n?We(e,function(p){i.indexOf(p)===-1&&i.push(p)}):this._selectedElements=i=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:i})};var _2="hover",y2="selected";function x2(e,n){this._canvas=e;function i(s,c){e.addMarker(s,c)}function a(s,c){e.removeMarker(s,c)}n.on("element.hover",function(s){i(s.element,_2)}),n.on("element.out",function(s){a(s.element,_2)}),n.on("selection.changed",function(s){function c(y){a(y,y2)}function p(y){i(y,y2)}var m=s.oldSelection,g=s.newSelection;We(m,function(y){g.indexOf(y)===-1&&c(y)}),We(g,function(y){m.indexOf(y)===-1&&p(y)})})}x2.$inject=["canvas","eventBus"];function w2(e,n,i,a){e.on("create.end",500,function(s){var c=s.context,p=c.canExecute,m=c.elements,g=c.hints||{},y=g.autoSelect;if(p){if(y===!1)return;kr(y)?n.select(y):n.select(m.filter(U7))}}),e.on("connect.end",500,function(s){var c=s.context,p=c.connection;p&&n.select(p)}),e.on("shape.move.end",500,function(s){var c=s.previousSelection||[],p=a.get(s.context.shape.id),m=Sr(c,function(g){return p.id===g.id});m||n.select(p)}),e.on("element.click",function(s){if(!!Kh(s)){var c=s.element;c===i.getRootElement()&&(c=null);var p=n.isSelected(c),m=n.get().length>1,g=z7(s);if(p&&m)return g?n.deselect(c):n.select(c);p?n.deselect(c):n.select(c,g)}})}w2.$inject=["eventBus","selection","canvas","elementRegistry"];function U7(e){return!e.hidden}const Y7={__init__:["selectionVisuals","selectionBehavior"],__depends__:[V7],selection:["type",rc],selectionVisuals:["type",x2],selectionBehavior:["type",w2]},W7=/^class[ {]/;function G7(e){return W7.test(e.toString())}function gx(e){return Array.isArray(e)}function Ax(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Zh(...e){e.length===1&&gx(e[0])&&(e=e[0]),e=[...e];const n=e.pop();return n.$inject=e,n}const J7=/constructor\s*[^(]*\(\s*([^)]*)\)/m,K7=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,X7=/\/\*([^*]*)\*\//m;function Z7(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const n=e.toString().match(G7(e)?J7:K7);if(!n)return[];const i=n[1]||n[2];return i&&i.split(",").map(a=>{const s=a.match(X7);return(s&&s[1]||a).trim()})||[]}function E2(e,n){const i=n||{get:function(b,w){if(a.push(b),w===!1)return null;throw m(`No provider for "${b}"!`)}},a=[],s=this._providers=Object.create(i._providers||null),c=this._instances=Object.create(null),p=c.injector=this,m=function(b){const w=a.join(" -> ");return a.length=0,new Error(w?`${b} (Resolving: ${w})`:b)};function g(b,w){if(!s[b]&&b.includes(".")){const B=b.split(".");let z=g(B.shift());for(;B.length;)z=z[B.shift()];return z}if(Ax(c,b))return c[b];if(Ax(s,b)){if(a.indexOf(b)!==-1)throw a.push(b),m("Cannot resolve circular dependency!");return a.push(b),c[b]=s[b][0](s[b][1]),a.pop(),c[b]}return i.get(b,w)}function y(b,w){if(typeof w>"u"&&(w={}),typeof b!="function")if(gx(b))b=Zh(b.slice());else throw m(`Cannot invoke "${b}". Expected a function!`);const z=(b.$inject||Z7(b)).map(F=>Ax(w,F)?w[F]:g(F));return{fn:b,dependencies:z}}function O(b){const{fn:w,dependencies:B}=y(b),z=Function.prototype.bind.call(w,null,...B);return new z}function E(b,w,B){const{fn:z,dependencies:F}=y(b,B);return z.apply(w,F)}function N(b){return Zh(w=>b.get(w))}function _(b,w){if(w&&w.length){const B=Object.create(null),z=Object.create(null),F=[],H=[],ee=[];let ne,se,me,pe;for(let Se in s)ne=s[Se],w.indexOf(Se)!==-1&&(ne[2]==="private"?(se=F.indexOf(ne[3]),se===-1?(me=ne[3].createChild([],w),pe=N(me),F.push(ne[3]),H.push(me),ee.push(pe),B[Se]=[pe,Se,"private",me]):B[Se]=[ee[se],Se,"private",H[se]]):B[Se]=[ne[2],ne[1]],z[Se]=!0),(ne[2]==="factory"||ne[2]==="type")&&ne[1].$scope&&w.forEach(ye=>{ne[1].$scope.indexOf(ye)!==-1&&(B[Se]=[ne[2],ne[1]],z[ye]=!0)});w.forEach(Se=>{if(!z[Se])throw new Error('No provider for "'+Se+'". Cannot use provider from the parent!')}),b.unshift(B)}return new E2(b,p)}const S={factory:E,type:O,value:function(b){return b}};function M(b,w){const B=b.__init__||[];return function(){B.forEach(z=>{typeof z=="string"?w.get(z):w.invoke(z)})}}function P(b){const w=b.__exports__;if(w){const B=b.__modules__,z=Object.keys(b).reduce((se,me)=>(me!=="__exports__"&&me!=="__modules__"&&me!=="__init__"&&me!=="__depends__"&&(se[me]=b[me]),se),Object.create(null)),F=(B||[]).concat(z),H=_(F),ee=Zh(function(se){return H.get(se)});w.forEach(function(se){s[se]=[ee,se,"private",H]});const ne=(b.__init__||[]).slice();return ne.unshift(function(){H.init()}),b=Object.assign({},b,{__init__:ne}),M(b,H)}return Object.keys(b).forEach(function(B){if(B==="__init__"||B==="__depends__")return;const z=b[B];if(z[2]==="private"){s[B]=z;return}const F=z[0],H=z[1];s[B]=[S[F],$7(F,H),F]}),M(b,p)}function T(b,w){return b.indexOf(w)!==-1||(b=(w.__depends__||[]).reduce(T,b),b.indexOf(w)!==-1)?b:b.concat(w)}function R(b){const w=b.reduce(T,[]).map(P);let B=!1;return function(){B||(B=!0,w.forEach(z=>z()))}}this.get=g,this.invoke=E,this.instantiate=O,this.createChild=_,this.init=R(e)}function $7(e,n){return e!=="value"&&gx(n)&&(n=Zh(n.slice())),n}var q7=1;function so(e,n){ya.call(this,e,q7),this.CONNECTION_STYLE=n.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=n.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=n.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}Gr(so,ya),so.prototype.canRender=function(){return!0},so.prototype.drawShape=function(n,i,a){var s=Rt("rect");return Pt(s,{x:0,y:0,width:i.width||0,height:i.height||0}),o2(i)?Pt(s,Je({},this.FRAME_STYLE,a||{})):Pt(s,Je({},this.SHAPE_STYLE,a||{})),yn(n,s),s},so.prototype.drawConnection=function(n,i,a){var s=ax(i.waypoints,Je({},this.CONNECTION_STYLE,a||{}));return yn(n,s),s},so.prototype.getShapePath=function(n){var i=n.x,a=n.y,s=n.width,c=n.height,p=[["M",i,a],["l",s,0],["l",0,c],["l",-s,0],["z"]];return _s(p)},so.prototype.getConnectionPath=function(n){var i=n.waypoints,a,s,c=[];for(a=0;s=i[a];a++)s=s.original||s,c.push([a===0?"M":"L",s.x,s.y]);return _s(c)},so.$inject=["eventBus","styles"];function eH(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(i,a,s){var c=this.style(a,s);return Je(c,{class:i})},this.style=function(i,a){!kr(i)&&!a&&(a=i,i=[]);var s=ec(i,function(c,p){return Je(c,e[p]||{})},{});return a?Je(s,a):s},this.computeStyle=function(i,a,s){return kr(a)||(s=a,a=[]),n.style(a||[],Je({},s,i||{}))}}const tH={__init__:["defaultRenderer"],defaultRenderer:["type",so],styles:["type",eH]};function nH(e,n){if(!e||!n)return-1;var i=e.indexOf(n);return i!==-1&&e.splice(i,1),i}function iH(e,n,i){if(!(!e||!n)){typeof i!="number"&&(i=-1);var a=e.indexOf(n);if(a!==-1){if(a===i)return;if(i!==-1)e.splice(a,1);else return}i!==-1?e.splice(i,0,n):e.push(n)}}function $h(e,n){return Math.round(e*n)/n}function k2(e){return no(e)?e+"px":e}function rH(e){for(;e.parent;)e=e.parent;return e}function aH(e){e=Je({},{width:"100%",height:"100%"},e);const n=e.container||document.body,i=document.createElement("div");return i.setAttribute("class","djs-container djs-parent"),Tn(i,{position:"relative",overflow:"hidden",width:k2(e.width),height:k2(e.height)}),n.appendChild(i),i}function C2(e,n,i){const a=Rt("g");Jr(a).add(n);const s=i!==void 0?i:e.childNodes.length-1;return e.insertBefore(a,e.childNodes[s]||null),a}const oH="base",S2=0,sH=1,lH={shape:["x","y","width","height"],connection:["waypoints"]};function qe(e,n,i,a){this._eventBus=n,this._elementRegistry=a,this._graphicsFactory=i,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}qe.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],qe.prototype._init=function(e){const n=this._eventBus,i=this._container=aH(e),a=this._svg=Rt("svg");Pt(a,{width:"100%",height:"100%"}),sx(a,"tabindex",0),e.autoFocus&&n.on("element.hover",()=>{this.restoreFocus()}),n.on("element.mousedown",500,c=>{this.focus()}),a.addEventListener("focusin",()=>{this._setFocused(!0)}),a.addEventListener("focusout",()=>{this._setFocused(!1)}),yn(i,a);const s=this._viewport=C2(a,"viewport");e.deferUpdate&&(this._viewboxChanged=F8(io(this._viewboxChanged,this),300)),n.on("diagram.init",()=>{n.fire("canvas.init",{svg:a,viewport:s})}),n.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),n.on("diagram.destroy",500,this._destroy,this),n.on("diagram.clear",500,this._clear,this)},qe.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},qe.prototype._setFocused=function(e){e!=this._focused&&(this._focused=e,this._eventBus.fire("canvas.focus.changed",{focused:e}))},qe.prototype._clear=function(){this._elementRegistry.getAll().forEach(n=>{const i=a2(n);i==="root"?this.removeRootElement(n):this._removeElement(n,i)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},qe.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)},qe.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()},qe.prototype.isFocused=function(){return this._focused},qe.prototype.getDefaultLayer=function(){return this.getLayer(oH,S2)},qe.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");let i=this._layers[e];if(i||(i=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&i.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return i.group},qe.prototype._getChildIndex=function(e){return ec(this._layers,function(n,i){return i.visible&&e>=i.index&&n++,n},0)},qe.prototype._createLayer=function(e,n){typeof n>"u"&&(n=sH);const i=this._getChildIndex(n);return{group:C2(this._viewport,"layer-"+e,i),index:n,visible:!0}},qe.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const i=this._viewport,a=n.group,s=n.index;if(n.visible)return a;const c=this._getChildIndex(s);return i.insertBefore(a,i.childNodes[c]||null),n.visible=!0,a},qe.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const i=n.group;return n.visible&&(vd(i),n.visible=!1),i},qe.prototype._removeLayer=function(e){const n=this._layers[e];n&&(delete this._layers[e],vd(n.group))},qe.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},qe.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(rH(e))||{}).rootElement:void 0},qe.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},qe.prototype._findPlaneForRoot=function(e){return Sr(this._planes,function(n){return n.rootElement===e})},qe.prototype.getContainer=function(){return this._container},qe.prototype._updateMarker=function(e,n,i){let a;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,a=this._elementRegistry._elements[e.id],a&&(We([a.gfx,a.secondaryGfx],function(s){s&&(i?(e.markers.add(n),Jr(s).add(n)):(e.markers.delete(n),Jr(s).remove(n)))}),this._eventBus.fire("element.marker.update",{element:e,gfx:a.gfx,marker:n,add:!!i}))},qe.prototype.addMarker=function(e,n){this._updateMarker(e,n,!0)},qe.prototype.removeMarker=function(e,n){this._updateMarker(e,n,!1)},qe.prototype.hasMarker=function(e,n){return e.id||(e=this._elementRegistry.get(e)),e.markers?e.markers.has(n):!1},qe.prototype.toggleMarker=function(e,n){this.hasMarker(e,n)?this.removeMarker(e,n):this.addMarker(e,n)},qe.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},qe.prototype.addRootElement=function(e){const n=this._rootsIdx++;e||(e={id:"__implicitroot_"+n,children:[],isImplicit:!0});const i=e.layer="root-"+n;this._ensureValid("root",e);const a=this.getLayer(i,S2);return this.hideLayer(i),this._addRoot(e,a),this._planes.push({rootElement:e,layer:a}),e},qe.prototype.removeRootElement=function(e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),!!this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter(function(i){return i.rootElement!==e}),this._rootElement===e&&(this._rootElement=null),e},qe.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let n;if(!e)throw new Error("rootElement required");return n=this._findPlaneForRoot(e),n||(e=this.addRootElement(e)),this._setRoot(e),e},qe.prototype._removeRoot=function(e){const n=this._elementRegistry,i=this._eventBus;i.fire("root.remove",{element:e}),i.fire("root.removed",{element:e}),n.remove(e)},qe.prototype._addRoot=function(e,n){const i=this._elementRegistry,a=this._eventBus;a.fire("root.add",{element:e}),i.add(e,n),a.fire("root.added",{element:e,gfx:n})},qe.prototype._setRoot=function(e,n){const i=this._rootElement;i&&(this._elementRegistry.updateGraphics(i,null,!0),this.hideLayer(i.layer)),e&&(n||(n=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},qe.prototype._ensureValid=function(e,n){if(!n.id)throw new Error("element must have an id");if(this._elementRegistry.get(n.id))throw new Error("element <"+n.id+"> already exists");const i=lH[e];if(!NB(i,function(s){return typeof n[s]<"u"}))throw new Error("must supply { "+i.join(", ")+" } with "+e)},qe.prototype._setParent=function(e,n,i){iH(n.children,e,i),e.parent=n},qe.prototype._addElement=function(e,n,i,a){i=i||this.getRootElement();const s=this._eventBus,c=this._graphicsFactory;this._ensureValid(e,n),s.fire(e+".add",{element:n,parent:i}),this._setParent(n,i,a);const p=c.create(e,n,a);return this._elementRegistry.add(n,p),c.update(e,n,p),s.fire(e+".added",{element:n,gfx:p}),n},qe.prototype.addShape=function(e,n,i){return this._addElement("shape",e,n,i)},qe.prototype.addConnection=function(e,n,i){return this._addElement("connection",e,n,i)},qe.prototype._removeElement=function(e,n){const i=this._elementRegistry,a=this._graphicsFactory,s=this._eventBus;if(e=i.get(e.id||e),!!e)return s.fire(n+".remove",{element:e}),a.remove(e),nH(e.parent&&e.parent.children,e),e.parent=null,s.fire(n+".removed",{element:e}),i.remove(e),e},qe.prototype.removeShape=function(e){return this._removeElement(e,"shape")},qe.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},qe.prototype.getGraphics=function(e,n){return this._elementRegistry.getGraphics(e,n)},qe.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},qe.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},qe.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const n=this._viewport,i=this.getSize();let a,s,c,p,m,g,y;if(e)this._changeViewbox(function(){m=Math.min(i.width/e.width,i.height/e.height);const O=this._svg.createSVGMatrix().scale(m).translate(-e.x,-e.y);bd(n,O)});else return c=this._rootElement?this.getActiveLayer():null,a=c&&c.getBBox()||{},p=bd(n),s=p?p.matrix:n9(),m=$h(s.a,1e3),g=$h(-s.e||0,1e3),y=$h(-s.f||0,1e3),e=this._cachedViewbox={x:g?g/m:0,y:y?y/m:0,width:i.width/m,height:i.height/m,scale:m,inner:{width:a.width||0,height:a.height||0,x:a.x||0,y:a.y||0},outer:i},e;return e},qe.prototype.scroll=function(e){const n=this._viewport;let i=n.getCTM();return e&&this._changeViewbox(function(){e=Je({dx:0,dy:0},e||{}),i=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(i),D2(n,i)}),{x:i.e,y:i.f}},qe.prototype.scrollToElement=function(e,n){let i=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const a=this.findRoot(e);if(a!==this.getRootElement()&&this.setRootElement(a),a===e)return;n||(n={}),typeof n=="number"&&(i=n),n={top:n.top||i,right:n.right||i,bottom:n.bottom||i,left:n.left||i};const s=xd(e),c=dx(s),p=this.viewbox(),m=this.zoom();let g,y;p.y+=n.top/m,p.x+=n.left/m,p.width-=(n.right+n.left)/m,p.height-=(n.bottom+n.top)/m;const O=dx(p);if(!(s.width<p.width&&s.height<p.height))g=s.x-p.x,y=s.y-p.y;else{const N=Math.max(0,c.right-O.right),_=Math.min(0,c.left-O.left),S=Math.max(0,c.bottom-O.bottom),M=Math.min(0,c.top-O.top);g=N||_,y=S||M}this.scroll({dx:-g*m,dy:-y*m})},qe.prototype.zoom=function(e,n){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(n);let i,a;return this._changeViewbox(function(){typeof n!="object"&&(i=this.viewbox().outer,n={x:i.width/2,y:i.height/2}),a=this._setZoom(e,n)}),$h(a.a,1e3)};function D2(e,n){const i="matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")";e.setAttribute("transform",i)}qe.prototype._fitViewport=function(e){const n=this.viewbox(),i=n.outer,a=n.inner;let s,c;return a.x>=0&&a.y>=0&&a.x+a.width<=i.width&&a.y+a.height<=i.height&&!e?c={x:0,y:0,width:Math.max(a.width+a.x,i.width),height:Math.max(a.height+a.y,i.height)}:(s=Math.min(1,i.width/a.width,i.height/a.height),c={x:a.x+(e?a.width/2-i.width/s/2:0),y:a.y+(e?a.height/2-i.height/s/2:0),width:i.width/s,height:i.height/s}),this.viewbox(c),this.viewbox(!1).scale},qe.prototype._setZoom=function(e,n){const i=this._svg,a=this._viewport,s=i.createSVGMatrix(),c=i.createSVGPoint();let p,m,g,y,O;g=a.getCTM();const E=g.a;return n?(p=Je(c,n),m=p.matrixTransform(g.inverse()),y=s.translate(m.x,m.y).scale(1/E*e).translate(-m.x,-m.y),O=g.multiply(y)):O=s.scale(e),D2(this._viewport,O),O},qe.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},qe.prototype.getAbsoluteBBox=function(e){const n=this.viewbox();let i;e.waypoints?i=this.getGraphics(e).getBBox():i=e;const a=i.x*n.scale-n.x*n.scale,s=i.y*n.scale-n.y*n.scale,c=i.width*n.scale,p=i.height*n.scale;return{x:a,y:s,width:c,height:p}},qe.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var ac="data-element-id";function Qi(e){this._elements={},this._eventBus=e}Qi.$inject=["eventBus"],Qi.prototype.add=function(e,n,i){var a=e.id;this._validateId(a),Pt(n,ac,a),i&&Pt(i,ac,a),this._elements[a]={element:e,gfx:n,secondaryGfx:i}},Qi.prototype.remove=function(e){var n=this._elements,i=e.id||e,a=i&&n[i];a&&(Pt(a.gfx,ac,""),a.secondaryGfx&&Pt(a.secondaryGfx,ac,""),delete n[i])},Qi.prototype.updateId=function(e,n){this._validateId(n),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:n});var i=this.getGraphics(e),a=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,i,a)},Qi.prototype.updateGraphics=function(e,n,i){var a=e.id||e,s=this._elements[a];return i?s.secondaryGfx=n:s.gfx=n,n&&Pt(n,ac,a),n},Qi.prototype.get=function(e){var n;typeof e=="string"?n=e:n=e&&Pt(e,ac);var i=this._elements[n];return i&&i.element},Qi.prototype.filter=function(e){var n=[];return this.forEach(function(i,a){e(i,a)&&n.push(i)}),n},Qi.prototype.find=function(e){for(var n=this._elements,i=Object.keys(n),a=0;a<i.length;a++){var s=i[a],c=n[s],p=c.element,m=c.gfx;if(e(p,m))return p}},Qi.prototype.getAll=function(){return this.filter(function(e){return e})},Qi.prototype.forEach=function(e){var n=this._elements;Object.keys(n).forEach(function(i){var a=n[i],s=a.element,c=a.gfx;return e(s,c)})},Qi.prototype.getGraphics=function(e,n){var i=e.id||e,a=this._elements[i];return a&&(n?a.secondaryGfx:a.gfx)},Qi.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};function cH(e,n,i,a){var s=i.inverse;return Object.defineProperty(e,"remove",{value:function(c){var p=this.indexOf(c);return p!==-1&&(this.splice(p,1),n.unset(c,s,a)),c}}),Object.defineProperty(e,"contains",{value:function(c){return this.indexOf(c)!==-1}}),Object.defineProperty(e,"add",{value:function(c,p){var m=this.indexOf(c);if(typeof p>"u"){if(m!==-1)return;p=this.length}m!==-1&&this.splice(m,1),this.splice(p,0,c),m===-1&&n.set(c,s,a)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function uH(e){return e.__refs_collection===!0}function dH(e,n){return Object.prototype.hasOwnProperty.call(e,n.name||n)}function I2(e,n,i){var a=cH(i[n.name]||[],e,n,i);Object.defineProperty(i,n.name,{enumerable:n.enumerable,value:a}),a.length&&a.forEach(function(s){e.set(s,n.inverse,i)})}function fH(e,n,i){var a=n.inverse,s=i[n.name];Object.defineProperty(i,n.name,{configurable:n.configurable,enumerable:n.enumerable,get:function(){return s},set:function(c){if(c!==s){var p=s;s=null,p&&e.unset(p,a,i),s=c,e.set(s,a,i)}}})}function tr(e,n){if(!(this instanceof tr))return new tr(e,n);e.inverse=n,n.inverse=e,this.props={},this.props[e.name]=e,this.props[n.name]=n}tr.prototype.bind=function(e,n){if(typeof n=="string"){if(!this.props[n])throw new Error("no property <"+n+"> in ref");n=this.props[n]}n.collection?I2(this,n,e):fH(this,n,e)},tr.prototype.ensureRefsCollection=function(e,n){var i=e[n.name];return uH(i)||I2(this,n,e),i},tr.prototype.ensureBound=function(e,n){dH(e,n)||this.bind(e,n)},tr.prototype.unset=function(e,n,i){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).remove(i):e[n.name]=void 0)},tr.prototype.set=function(e,n,i){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).add(i):e[n.name]=i)};var vx=new tr({name:"children",enumerable:!0,collection:!0},{name:"parent"}),B2=new tr({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),O2=new tr({name:"attachers",collection:!0},{name:"host"}),T2=new tr({name:"outgoing",collection:!0},{name:"source"}),N2=new tr({name:"incoming",collection:!0},{name:"target"});function wd(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var n=this.label,i=this.labels;!e&&n?i.remove(n):i.add(e,0)}}),vx.bind(this,"parent"),B2.bind(this,"labels"),T2.bind(this,"outgoing"),N2.bind(this,"incoming")}function Ed(){wd.call(this),vx.bind(this,"children"),O2.bind(this,"host"),O2.bind(this,"attachers")}Gr(Ed,wd);function M2(){wd.call(this),vx.bind(this,"children")}Gr(M2,Ed);function F2(){Ed.call(this),B2.bind(this,"labelTarget")}Gr(F2,Ed);function P2(){wd.call(this),T2.bind(this,"source"),N2.bind(this,"target")}Gr(P2,wd);var pH={connection:P2,shape:Ed,label:F2,root:M2};function hH(e,n){var i=pH[e];if(!i)throw new Error("unknown type: <"+e+">");return Je(new i,n)}function oc(){this._uid=12}oc.prototype.createRoot=function(e){return this.create("root",e)},oc.prototype.createLabel=function(e){return this.create("label",e)},oc.prototype.createShape=function(e){return this.create("shape",e)},oc.prototype.createConnection=function(e){return this.create("connection",e)},oc.prototype.create=function(e,n){return n=Je({},n||{}),n.id||(n.id=e+"_"+this._uid++),hH(e,n)};var qh="__fn",R2=1e3,mH=Array.prototype.slice;function vi(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}vi.prototype.on=function(e,n,i,a){if(e=kr(e)?e:[e],As(n)&&(a=i,i=n,n=R2),!no(n))throw new Error("priority must be a number");var s=i;a&&(s=io(i,a),s[qh]=i[qh]||i);var c=this;e.forEach(function(p){c._addListener(p,{priority:n,callback:s,next:null})})},vi.prototype.once=function(e,n,i,a){var s=this;if(As(n)&&(a=i,i=n,n=R2),!no(n))throw new Error("priority must be a number");function c(){c.__isTomb=!0;var p=i.apply(a,arguments);return s.off(e,c),p}c[qh]=i,this.on(e,n,c)},vi.prototype.off=function(e,n){e=kr(e)?e:[e];var i=this;e.forEach(function(a){i._removeListener(a,n)})},vi.prototype.createEvent=function(e){var n=new kd;return n.init(e),n},vi.prototype.fire=function(e,n){var i,a,s,c;if(c=mH.call(arguments),typeof e=="object"&&(n=e,e=n.type),!e)throw new Error("no event type specified");if(a=this._listeners[e],!!a){n instanceof kd?i=n:i=this.createEvent(n),c[0]=i;var p=i.type;e!==p&&(i.type=e);try{s=this._invokeListeners(i,c,a)}finally{e!==p&&(i.type=p)}return s===void 0&&i.defaultPrevented&&(s=!1),s}},vi.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},vi.prototype._destroy=function(){this._listeners={}},vi.prototype._invokeListeners=function(e,n,i){for(var a;i&&!e.cancelBubble;)a=this._invokeListener(e,n,i),i=i.next;return a},vi.prototype._invokeListener=function(e,n,i){var a;if(i.callback.__isTomb)return a;try{a=gH(i.callback,n),a!==void 0&&(e.returnValue=a,e.stopPropagation()),a===!1&&e.preventDefault()}catch(s){if(!this.handleError(s))throw console.error("unhandled error in event listener",s),s}return a},vi.prototype._addListener=function(e,n){var i=this._getListeners(e),a;if(!i){this._setListeners(e,n);return}for(;i;){if(i.priority<n.priority){n.next=i,a?a.next=n:this._setListeners(e,n);return}a=i,i=i.next}a.next=n},vi.prototype._getListeners=function(e){return this._listeners[e]},vi.prototype._setListeners=function(e,n){this._listeners[e]=n},vi.prototype._removeListener=function(e,n){var i=this._getListeners(e),a,s,c;if(!n){this._setListeners(e,null);return}for(;i;)a=i.next,c=i.callback,(c===n||c[qh]===n)&&(s?s.next=a:this._setListeners(e,a)),s=i,i=a};function kd(){}kd.prototype.stopPropagation=function(){this.cancelBubble=!0},kd.prototype.preventDefault=function(){this.defaultPrevented=!0},kd.prototype.init=function(e){Je(this,e||{})};function gH(e,n){return e.apply(null,n)}function AH(e){return e.childNodes[0]}function vH(e){return e.parentNode.childNodes[1]}function zi(e,n){this._eventBus=e,this._elementRegistry=n}zi.$inject=["eventBus","elementRegistry"],zi.prototype._getChildrenContainer=function(e){var n=this._elementRegistry.getGraphics(e),i;return e.parent?(i=vH(n),i||(i=Rt("g"),Jr(i).add("djs-children"),yn(n.parentNode,i))):i=n,i},zi.prototype._clear=function(e){var n=AH(e);return KB(n),n},zi.prototype._createContainer=function(e,n,i,a){var s=Rt("g");Jr(s).add("djs-group"),typeof i<"u"?j2(s,n,n.childNodes[i]):yn(n,s);var c=Rt("g");Jr(c).add("djs-element"),Jr(c).add("djs-"+e),a&&Jr(c).add("djs-frame"),yn(s,c);var p=Rt("g");return Jr(p).add("djs-visual"),yn(c,p),c},zi.prototype.create=function(e,n,i){var a=this._getChildrenContainer(n.parent);return this._createContainer(e,a,i,o2(n))},zi.prototype.updateContainments=function(e){var n=this,i=this._elementRegistry,a;a=ec(e,function(s,c){return c.parent&&(s[c.parent.id]=c.parent),s},{}),We(a,function(s){var c=s.children;if(!!c){var p=n._getChildrenContainer(s);We(c.slice().reverse(),function(m){var g=i.getGraphics(m);j2(g.parentNode,p)})}})},zi.prototype.drawShape=function(e,n,i={}){var a=this._eventBus;return a.fire("render.shape",{gfx:e,element:n,attrs:i})},zi.prototype.getShapePath=function(e){var n=this._eventBus;return n.fire("render.getShapePath",e)},zi.prototype.drawConnection=function(e,n,i={}){var a=this._eventBus;return a.fire("render.connection",{gfx:e,element:n,attrs:i})},zi.prototype.getConnectionPath=function(e){var n=this._eventBus;return n.fire("render.getConnectionPath",e)},zi.prototype.update=function(e,n,i){if(!!n.parent){var a=this._clear(i);if(e==="shape")this.drawShape(a,n),e2(i,n.x,n.y);else if(e==="connection")this.drawConnection(a,n);else throw new Error("unknown type: "+e);n.hidden?Pt(i,"display","none"):Pt(i,"display","block")}},zi.prototype.remove=function(e){var n=this._elementRegistry.getGraphics(e);vd(n.parentNode)};function j2(e,n,i){var a=i||n.firstChild;e!==a&&n.insertBefore(e,a)}const bH={__depends__:[tH],__init__:["canvas"],canvas:["type",qe],elementRegistry:["type",Qi],elementFactory:["type",oc],eventBus:["type",vi],graphicsFactory:["type",zi]};function _H(e){var n=new E2(e);return n.init(),n}function yH(e){e=e||{};var n={config:["value",e]},i=[n,bH].concat(e.modules||[]);return _H(i)}function lo(e,n){this._injector=n||yH(e),this.get("eventBus").fire("diagram.init")}lo.prototype.get=function(e,n){return this._injector.get(e,n)},lo.prototype.invoke=function(e,n,i){return this._injector.invoke(e,n,i)},lo.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},lo.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function bx(){}bx.prototype.get=function(e){return this.$model.properties.get(this,e)},bx.prototype.set=function(e,n){this.$model.properties.set(this,e,n)};function L2(e,n){this.model=e,this.properties=n}L2.prototype.createType=function(e){var n=this.model,i=this.properties,a=Object.create(bx.prototype);We(e.properties,function(p){!p.isMany&&p.default!==void 0&&(a[p.name]=p.default)}),i.defineModel(a,n),i.defineDescriptor(a,e);var s=e.ns.name;function c(p){i.define(this,"$type",{value:s,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),We(p,io(function(m,g){this.set(g,m)},this))}return c.prototype=a,c.hasType=a.$instanceOf=this.model.hasType,i.defineModel(c,n),i.defineDescriptor(c,e),c};var xH={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},Q2={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function _x(e,n){var i=Q2[e];return i?i(n):n}function yx(e){return!!xH[e]}function z2(e){return!!Q2[e]}function Mn(e,n){var i=e.split(/:/),a,s;if(i.length===1)a=e,s=n;else if(i.length===2)a=i[1],s=i[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(s?s+":":"")+a,{name:e,prefix:s,localName:a}}function Hi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Hi.prototype.build=function(){return R8(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Hi.prototype.addProperty=function(e,n,i){typeof n=="boolean"&&(i=n,n=void 0),this.addNamedProperty(e,i!==!1);var a=this.properties;n!==void 0?a.splice(n,0,e):a.push(e)},Hi.prototype.replaceProperty=function(e,n,i){var a=e.ns,s=this.properties,c=this.propertiesByName,p=e.name!==n.name;if(e.isId){if(!n.isId)throw new Error("property <"+n.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(n,!1)}if(e.isBody){if(!n.isBody)throw new Error("property <"+n.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(n,!1)}var m=s.indexOf(e);if(m===-1)throw new Error("property <"+a.name+"> not found in property list");s.splice(m,1),this.addProperty(n,i?void 0:m,p),c[a.name]=c[a.localName]=n},Hi.prototype.redefineProperty=function(e,n,i){var a=e.ns.prefix,s=n.split("#"),c=Mn(s[0],a),p=Mn(s[1],c.prefix).name,m=this.propertiesByName[p];if(m)this.replaceProperty(m,e,i);else throw new Error("refined property <"+p+"> not found");delete e.redefines},Hi.prototype.addNamedProperty=function(e,n){var i=e.ns,a=this.propertiesByName;n&&(this.assertNotDefined(e,i.name),this.assertNotDefined(e,i.localName)),a[i.name]=a[i.localName]=e},Hi.prototype.removeNamedProperty=function(e){var n=e.ns,i=this.propertiesByName;delete i[n.name],delete i[n.localName]},Hi.prototype.setBodyProperty=function(e,n){if(n&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},Hi.prototype.setIdProperty=function(e,n){if(n&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},Hi.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},Hi.prototype.assertNotDefined=function(e,n){var i=e.name,a=this.propertiesByName[i];if(a)throw new Error("property <"+i+"> already defined; override of <"+a.definedBy.ns.name+"#"+a.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},Hi.prototype.hasProperty=function(e){return this.propertiesByName[e]},Hi.prototype.addTrait=function(e,n){n&&this.assertNotTrait(e);var i=this.allTypesByName,a=this.allTypes,s=e.name;s in i||(We(e.properties,io(function(c){c=Je({},c,{name:c.ns.localName,inherited:n}),Object.defineProperty(c,"definedBy",{value:e});var p=c.replaces,m=c.redefines;p||m?this.redefineProperty(c,p||m,p):(c.isBody&&this.setBodyProperty(c),c.isId&&this.setIdProperty(c),this.addProperty(c))},this)),a.push(e),i[s]=e)};function co(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,We(e,io(this.registerPackage,this))}co.prototype.getPackage=function(e){return this.packageMap[e]},co.prototype.getPackages=function(){return this.packages},co.prototype.registerPackage=function(e){e=Je({},e);var n=this.packageMap;H2(n,e,"prefix"),H2(n,e,"uri"),We(e.types,io(function(i){this.registerType(i,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)},co.prototype.registerType=function(e,n){e=Je({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Je(e.meta||{})});var i=Mn(e.name,n.prefix),a=i.name,s={};We(e.properties,io(function(c){var p=Mn(c.name,i.prefix),m=p.name;yx(c.type)||(c.type=Mn(c.type,p.prefix).name),Je(c,{ns:p,name:m}),s[m]=c},this)),Je(e,{ns:i,name:a,propertiesByName:s}),We(e.extends,io(function(c){var p=Mn(c,i.prefix),m=this.typeMap[p.name];m.traits=m.traits||[],m.traits.push(a)},this)),this.definePackage(e,n),this.typeMap[a]=e},co.prototype.mapTypes=function(e,n,i){var a=yx(e.name)?{name:e.name}:this.typeMap[e.name],s=this;function c(g,y){var O=Mn(g,yx(g)?"":e.prefix);s.mapTypes(O,n,y)}function p(g){return c(g,!0)}function m(g){return c(g,!1)}if(!a)throw new Error("unknown type <"+e.name+">");We(a.superClass,i?p:m),n(a,!i),We(a.traits,p)},co.prototype.getEffectiveDescriptor=function(e){var n=Mn(e),i=new Hi(n);this.mapTypes(n,function(s,c){i.addTrait(s,c)});var a=i.build();return this.definePackage(a,a.allTypes[a.allTypes.length-1].$pkg),a},co.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})};function H2(e,n,i){var a=n[i];if(a in e)throw new Error("package with "+i+" <"+a+"> already defined")}function ks(e){this.model=e}ks.prototype.set=function(e,n,i){if(!Cr(n)||!n.length)throw new TypeError("property name must be a non-empty string");var a=this.getProperty(e,n),s=a&&a.name;wH(i)?a?delete e[s]:delete e.$attrs[xx(n)]:a?s in e?e[s]=i:V2(e,a,i):e.$attrs[xx(n)]=i},ks.prototype.get=function(e,n){var i=this.getProperty(e,n);if(!i)return e.$attrs[xx(n)];var a=i.name;return!e[a]&&i.isMany&&V2(e,i,[]),e[a]},ks.prototype.define=function(e,n,i){if(!i.writable){var a=i.value;i=Je({},i,{get:function(){return a}}),delete i.value}Object.defineProperty(e,n,i)},ks.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})},ks.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})},ks.prototype.getProperty=function(e,n){var i=this.model,a=i.getPropertyDescriptor(e,n);if(a)return a;if(n.includes(":"))return null;const s=i.config.strict;if(typeof s<"u"){const c=new TypeError(`unknown property <${n}> on <${e.$type}>`);if(s)throw c;typeof console<"u"&&console.warn(c)}return null};function wH(e){return typeof e>"u"}function V2(e,n,i){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:i,configurable:!0})}function xx(e){return e.replace(/^:/,"")}function nr(e,n={}){this.properties=new ks(this),this.factory=new L2(this,this.properties),this.registry=new co(e,this.properties),this.typeCache={},this.config=n}nr.prototype.create=function(e,n){var i=this.getType(e);if(!i)throw new Error("unknown type <"+e+">");return new i(n)},nr.prototype.getType=function(e){var n=this.typeCache,i=Cr(e)?e:e.ns.name,a=n[i];return a||(e=this.registry.getEffectiveDescriptor(i),a=n[i]=this.factory.createType(e)),a},nr.prototype.createAny=function(e,n,i){var a=Mn(e),s={$type:e,$instanceOf:function(p){return p===this.$type},get:function(p){return this[p]},set:function(p,m){P8(this,[p],m)}},c={name:e,isGeneric:!0,ns:{prefix:a.prefix,localName:a.localName,uri:n}};return this.properties.defineDescriptor(s,c),this.properties.defineModel(s,this),this.properties.define(s,"get",{enumerable:!1,writable:!0}),this.properties.define(s,"set",{enumerable:!1,writable:!0}),this.properties.define(s,"$parent",{enumerable:!1,writable:!0}),this.properties.define(s,"$instanceOf",{enumerable:!1,writable:!0}),We(i,function(p,m){gs(p)&&p.value!==void 0?s[p.name]=p.value:s[m]=p}),s},nr.prototype.getPackage=function(e){return this.registry.getPackage(e)},nr.prototype.getPackages=function(){return this.registry.getPackages()},nr.prototype.getElementDescriptor=function(e){return e.$descriptor},nr.prototype.hasType=function(e,n){n===void 0&&(n=e,e=this);var i=e.$model.getElementDescriptor(e);return n in i.allTypesByName},nr.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]},nr.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var U2=String.fromCharCode,EH=Object.prototype.hasOwnProperty,kH=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,Cd={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Cd).forEach(function(e){Cd[e.toUpperCase()]=Cd[e]});function CH(e,n,i,a){return a?EH.call(Cd,a)?Cd[a]:"&"+a+";":U2(n||parseInt(i,16))}function Cs(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(kH,CH):e}var Y2="non-whitespace outside of root node";function sc(e){return new Error(e)}function W2(e){return"missing namespace for prefix <"+e+">"}function em(e){return{get:e,enumerable:!0}}function SH(e){var n={},i;for(i in e)n[i]=e[i];return n}function wx(e){return e+"$uri"}function DH(e){var n={},i,a;for(i in e)a=e[i],n[a]=a,n[wx(a)]=i;return n}function G2(){return{line:0,column:0}}function IH(e){throw e}function J2(e){if(!this)return new J2(e);var n=e&&e.proxy,i,a,s,c,p=IH,m,g,y,O,E=G2,N=!1,_=!1,S=null,M=!1,P;function T(w){w instanceof Error||(w=sc(w)),S=w,p(w,E)}function R(w){!m||(w instanceof Error||(w=sc(w)),m(w,E))}this.on=function(w,B){if(typeof B!="function")throw sc("required args <name, cb>");switch(w){case"openTag":a=B;break;case"text":i=B;break;case"closeTag":s=B;break;case"error":p=B;break;case"warn":m=B;break;case"cdata":c=B;break;case"attention":O=B;break;case"question":y=B;break;case"comment":g=B;break;default:throw sc("unsupported event: "+w)}return this},this.ns=function(w){if(typeof w>"u"&&(w={}),typeof w!="object")throw sc("required args <nsMap={}>");var B={},z;for(z in w)B[z]=w[z];return _=!0,P=B,this},this.parse=function(w){if(typeof w!="string")throw sc("required args <xml=string>");return S=null,b(w),E=G2,M=!1,S},this.stop=function(){M=!0};function b(w){var B=_?[]:null,z=_?DH(P):null,F,H=[],ee=0,ne=!1,se=!1,me=0,pe=0,Se,ye,_e,W,J,re,ge,Te,le,he="",xe=0,Fe;function K(){if(Fe!==null)return Fe;var k,C,X,te=_&&z.xmlns,fe=_&&N?[]:null,De=xe,Re=he,Ke=Re.length,_t,pt,Bt,sn,ct,Ot={},fn={},ve,q,G;e:for(;De<Ke;De++)if(ve=!1,q=Re.charCodeAt(De),!(q===32||q<14&&q>8)){for((q<65||q>122||q>90&&q<97)&&q!==95&&q!==58&&(R("illegal first char attribute name"),ve=!0),G=De+1;G<Ke;G++)if(q=Re.charCodeAt(G),!(q>96&&q<123||q>64&&q<91||q>47&&q<59||q===46||q===45||q===95)){if(q===32||q<14&&q>8){R("missing attribute value"),De=G;continue e}if(q===61)break;R("illegal attribute name char"),ve=!0}if(ct=Re.substring(De,G),ct==="xmlns:xmlns"&&(R("illegal declaration of xmlns"),ve=!0),q=Re.charCodeAt(G+1),q===34)G=Re.indexOf('"',De=G+2),G===-1&&(G=Re.indexOf("'",De),G!==-1&&(R("attribute value quote missmatch"),ve=!0));else if(q===39)G=Re.indexOf("'",De=G+2),G===-1&&(G=Re.indexOf('"',De),G!==-1&&(R("attribute value quote missmatch"),ve=!0));else for(R("missing attribute value quotes"),ve=!0,G=G+1;G<Ke&&(q=Re.charCodeAt(G+1),!(q===32||q<14&&q>8));G++);for(G===-1&&(R("missing closing quotes"),G=Ke,ve=!0),ve||(Bt=Re.substring(De,G)),De=G;G+1<Ke&&(q=Re.charCodeAt(G+1),!(q===32||q<14&&q>8));G++)De===G&&(R("illegal character after attribute end"),ve=!0);if(De=G+1,ve)continue e;if(ct in fn){R("attribute <"+ct+"> already defined");continue}if(fn[ct]=!0,!_){Ot[ct]=Bt;continue}if(N){if(pt=ct==="xmlns"?"xmlns":ct.charCodeAt(0)===120&&ct.substr(0,6)==="xmlns:"?ct.substr(6):null,pt!==null){if(k=Cs(Bt),C=wx(pt),sn=P[k],!sn){if(pt==="xmlns"||C in z&&z[C]!==k)do sn="ns"+ee++;while(typeof z[sn]<"u");else sn=pt;P[k]=sn}z[pt]!==sn&&(_t||(z=SH(z),_t=!0),z[pt]=sn,pt==="xmlns"&&(z[wx(sn)]=k,te=sn),z[C]=k),Ot[ct]=Bt;continue}fe.push(ct,Bt);continue}if(q=ct.indexOf(":"),q===-1){Ot[ct]=Bt;continue}if(!(X=z[ct.substring(0,q)])){R(W2(ct.substring(0,q)));continue}ct=te===X?ct.substr(q+1):X+ct.substr(q),Ot[ct]=Bt}if(N)for(De=0,Ke=fe.length;De<Ke;De++){if(ct=fe[De++],Bt=fe[De],q=ct.indexOf(":"),q!==-1){if(!(X=z[ct.substring(0,q)])){R(W2(ct.substring(0,q)));continue}ct=te===X?ct.substr(q+1):X+ct.substr(q)}Ot[ct]=Bt}return Fe=Ot}function j(){for(var k=/(\r\n|\r|\n)/g,C=0,X=0,te=0,fe=pe,De,Re;me>=te&&(De=k.exec(w),!(!De||(fe=De[0].length+De.index,fe>me)));)C+=1,te=fe;return me==-1?(X=fe,Re=w.substring(pe)):pe===0?Re=w.substring(pe,me):(X=me-te,Re=pe==-1?w.substring(me):w.substring(me,pe+1)),{data:Re,line:C,column:X}}for(E=j,n&&(le=Object.create({},{name:em(function(){return ge}),originalName:em(function(){return Te}),attrs:em(K),ns:em(function(){return z})}));pe!==-1;){if(w.charCodeAt(pe)===60?me=pe:me=w.indexOf("<",pe),me===-1){if(H.length)return T("unexpected end of file");if(pe===0)return T("missing start tag");pe<w.length&&w.substring(pe).trim()&&R(Y2);return}if(pe!==me){if(H.length){if(i&&(i(w.substring(pe,me),Cs,E),M))return}else if(w.substring(pe,me).trim()&&(R(Y2),M))return}if(W=w.charCodeAt(me+1),W===33){if(_e=w.charCodeAt(me+2),_e===91&&w.substr(me+3,6)==="CDATA["){if(pe=w.indexOf("]]>",me),pe===-1)return T("unclosed cdata");if(c&&(c(w.substring(me+9,pe),E),M))return;pe+=3;continue}if(_e===45&&w.charCodeAt(me+3)===45){if(pe=w.indexOf("-->",me),pe===-1)return T("unclosed comment");if(g&&(g(w.substring(me+4,pe),Cs,E),M))return;pe+=3;continue}}if(W===63){if(pe=w.indexOf("?>",me),pe===-1)return T("unclosed question");if(y&&(y(w.substring(me,pe+2),E),M))return;pe+=2;continue}for(Se=me+1;;Se++){if(J=w.charCodeAt(Se),isNaN(J))return pe=-1,T("unclosed tag");if(J===34)_e=w.indexOf('"',Se+1),Se=_e!==-1?_e:Se;else if(J===39)_e=w.indexOf("'",Se+1),Se=_e!==-1?_e:Se;else if(J===62){pe=Se;break}}if(W===33){if(O&&(O(w.substring(me,pe+1),Cs,E),M))return;pe+=1;continue}if(Fe={},W===47){if(ne=!1,se=!0,!H.length)return T("missing open tag");if(Se=ge=H.pop(),_e=me+2+Se.length,w.substring(me+2,_e)!==Se)return T("closing tag mismatch");for(;_e<pe;_e++)if(W=w.charCodeAt(_e),!(W===32||W>8&&W<14))return T("close tag")}else{if(w.charCodeAt(pe-1)===47?(Se=ge=w.substring(me+1,pe-1),ne=!0,se=!0):(Se=ge=w.substring(me+1,pe),ne=!0,se=!1),!(W>96&&W<123||W>64&&W<91||W===95||W===58))return T("illegal first char nodeName");for(_e=1,ye=Se.length;_e<ye;_e++)if(W=Se.charCodeAt(_e),!(W>96&&W<123||W>64&&W<91||W>47&&W<59||W===45||W===95||W==46)){if(W===32||W<14&&W>8){ge=Se.substring(0,_e),Fe=null;break}return T("invalid nodeName")}se||H.push(ge)}if(_){if(F=z,ne&&(se||B.push(F),Fe===null&&(N=Se.indexOf("xmlns",_e)!==-1)&&(xe=_e,he=Se,K(),N=!1)),Te=ge,W=ge.indexOf(":"),W!==-1){if(re=z[ge.substring(0,W)],!re)return T("missing namespace on <"+Te+">");ge=ge.substr(W+1)}else re=z.xmlns;re&&(ge=re+":"+ge)}if(ne&&(xe=_e,he=Se,a&&(n?a(le,Cs,se,E):a(ge,K,Cs,se,E),M)))return;if(se){if(s&&(s(n?le:ge,Cs,ne,E),M))return;_&&(ne?z=F:z=B.pop())}pe+=1}}}function K2(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var Ex={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},X2="property";function Z2(e){return e.xml&&e.xml.serialize}function BH(e){const n=Z2(e);return n!==X2&&(n||null)}function OH(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $2(e,n){return K2(n)?e.prefix+":"+OH(e.localName):e.name}function TH(e,n){var i=e.name,a=e.localName,s=n&&n.xml&&n.xml.typePrefix;return s&&a.indexOf(s)===0?e.prefix+":"+a.slice(s.length):i}function NH(e,n,i){const a=Mn(e,n.xmlns),s=`${n[a.prefix]||a.prefix}:${a.localName}`,c=Mn(s);var p=i.getPackage(c.prefix);return TH(c,p)}function uo(e){return new Error(e)}function Ca(e){return e.$descriptor}function MH(e){Je(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(n){this.references.push(n)},this.addElement=function(n){if(!n)throw uo("expected element");var i=this.elementsById,a=Ca(n),s=a.idProperty,c;if(s&&(c=n.get(s.name),c)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(c))throw new Error("illegal ID <"+c+">");if(i[c])throw uo("duplicate ID <"+c+">");i[c]=n}},this.addWarning=function(n){this.warnings.push(n)}}function Sd(){}Sd.prototype.handleEnd=function(){},Sd.prototype.handleText=function(){},Sd.prototype.handleNode=function(){};function kx(){}kx.prototype=Object.create(Sd.prototype),kx.prototype.handleNode=function(){return this};function lc(){}lc.prototype=Object.create(Sd.prototype),lc.prototype.handleText=function(e){this.body=(this.body||"")+e};function Dd(e,n){this.property=e,this.context=n}Dd.prototype=Object.create(lc.prototype),Dd.prototype.handleNode=function(e){if(this.element)throw uo("expected no sub nodes");return this.element=this.createReference(e),this},Dd.prototype.handleEnd=function(){this.element.id=this.body},Dd.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function Cx(e,n){this.element=n,this.propertyDesc=e}Cx.prototype=Object.create(lc.prototype),Cx.prototype.handleEnd=function(){var e=this.body||"",n=this.element,i=this.propertyDesc;e=_x(i.type,e),i.isMany?n.get(i.name).push(e):n.set(i.name,e)};function tm(){}tm.prototype=Object.create(lc.prototype),tm.prototype.handleNode=function(e){var n=this,i=this.element;return i?n=this.handleChild(e):(i=this.element=this.createElement(e),this.context.addElement(i)),n};function Hn(e,n,i){this.model=e,this.type=e.getType(n),this.context=i}Hn.prototype=Object.create(tm.prototype),Hn.prototype.addReference=function(e){this.context.addReference(e)},Hn.prototype.handleText=function(e){var n=this.element,i=Ca(n),a=i.bodyProperty;if(!a)throw uo("unexpected body text <"+e+">");lc.prototype.handleText.call(this,e)},Hn.prototype.handleEnd=function(){var e=this.body,n=this.element,i=Ca(n),a=i.bodyProperty;a&&e!==void 0&&(e=_x(a.type,e),n.set(a.name,e))},Hn.prototype.createElement=function(e){var n=e.attributes,i=this.type,a=Ca(i),s=this.context,c=new i({}),p=this.model,m;return We(n,function(g,y){var O=a.propertiesByName[y],E;O&&O.isReference?O.isMany?(E=g.split(" "),We(E,function(N){s.addReference({element:c,property:O.ns.name,id:N})})):s.addReference({element:c,property:O.ns.name,id:g}):(O?g=_x(O.type,g):y==="xmlns"?y=":"+y:(m=Mn(y,a.ns.prefix),p.getPackage(m.prefix)&&s.addWarning({message:"unknown attribute <"+y+">",element:c,property:y,value:g})),c.set(y,g))}),c},Hn.prototype.getPropertyForNode=function(e){var n=e.name,i=Mn(n),a=this.type,s=this.model,c=Ca(a),p=i.name,m=c.propertiesByName[p];if(m&&!m.isAttr){const y=BH(m);if(y){const O=e.attributes[y];if(O){const E=NH(O,e.ns,s),N=s.getType(E);return Je({},m,{effectiveType:Ca(N).name})}}return m}var g=s.getPackage(i.prefix);if(g){const y=$2(i,g),O=s.getType(y);if(m=Sr(c.properties,function(E){return!E.isVirtual&&!E.isReference&&!E.isAttribute&&O.hasType(E.type)}),m)return Je({},m,{effectiveType:Ca(O).name})}else if(m=Sr(c.properties,function(y){return!y.isReference&&!y.isAttribute&&y.type==="Element"}),m)return m;throw uo("unrecognized element <"+i.name+">")},Hn.prototype.toString=function(){return"ElementDescriptor["+Ca(this.type).name+"]"},Hn.prototype.valueHandler=function(e,n){return new Cx(e,n)},Hn.prototype.referenceHandler=function(e){return new Dd(e,this.context)},Hn.prototype.handler=function(e){return e==="Element"?new cc(this.model,e,this.context):new Hn(this.model,e,this.context)},Hn.prototype.handleChild=function(e){var n,i,a,s;if(n=this.getPropertyForNode(e),a=this.element,i=n.effectiveType||n.type,z2(i))return this.valueHandler(n,a);n.isReference?s=this.referenceHandler(n).handleNode(e):s=this.handler(i).handleNode(e);var c=s.element;return c!==void 0&&(n.isMany?a.get(n.name).push(c):a.set(n.name,c),n.isReference?(Je(c,{element:a}),this.context.addReference(c)):c.$parent=a),s};function Sx(e,n,i){Hn.call(this,e,n,i)}Sx.prototype=Object.create(Hn.prototype),Sx.prototype.createElement=function(e){var n=e.name,i=Mn(n),a=this.model,s=this.type,c=a.getPackage(i.prefix),p=c&&$2(i,c)||n;if(!s.hasType(p))throw uo("unexpected element <"+e.originalName+">");return Hn.prototype.createElement.call(this,e)};function cc(e,n,i){this.model=e,this.context=i}cc.prototype=Object.create(tm.prototype),cc.prototype.createElement=function(e){var n=e.name,i=Mn(n),a=i.prefix,s=e.ns[a+"$uri"],c=e.attributes;return this.model.createAny(n,s,c)},cc.prototype.handleChild=function(e){var n=new cc(this.model,"Element",this.context).handleNode(e),i=this.element,a=n.element,s;return a!==void 0&&(s=i.$children=i.$children||[],s.push(a),a.$parent=i),n},cc.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function Dx(e){e instanceof nr&&(e={model:e}),Je(this,{lax:!1},e)}Dx.prototype.fromXML=function(e,n,i){var a=n.rootHandler;n instanceof Hn?(a=n,n={}):typeof n=="string"?(a=this.handler(n),n={}):typeof a=="string"&&(a=this.handler(a));var s=this.model,c=this.lax,p=new MH(Je({},n,{rootHandler:a})),m=new J2({proxy:!0}),g=FH();a.context=p,g.push(a);function y(B,z,F){var H=z(),ee=H.line,ne=H.column,se=H.data;se.charAt(0)==="<"&&se.indexOf(" ")!==-1&&(se=se.slice(0,se.indexOf(" "))+">");var me="unparsable content "+(se?se+" ":"")+`detected
35
35
  line: `+ee+`
36
36
  column: `+ne+`
37
37
  nested error: `+B.message;if(F)return p.addWarning({message:me,error:B}),!0;throw uo(me)}function O(B,z){return y(B,z,!0)}function E(){var B=p.elementsById,z=p.references,F,H;for(F=0;H=z[F];F++){var ee=H.element,ne=B[H.id],se=Ca(ee).propertiesByName[H.property];if(ne||p.addWarning({message:"unresolved reference <"+H.id+">",element:H.element,property:H.property,value:H.id}),se.isMany){var me=ee.get(se.name),pe=me.indexOf(H);pe===-1&&(pe=me.length),ne?me[pe]=ne:me.splice(pe,1)}else ee.set(se.name,ne)}}function N(){g.pop().handleEnd()}var _=/^<\?xml /i,S=/ encoding="([^"]+)"/i,M=/^utf-8$/i;function P(B){if(!!_.test(B)){var z=S.exec(B),F=z&&z[1];!F||M.test(F)||p.addWarning({message:"unsupported document encoding <"+F+">, falling back to UTF-8"})}}function T(B,z){var F=g.peek();try{g.push(F.handleNode(B))}catch(H){y(H,z,c)&&g.push(new kx)}}function R(B,z){try{g.peek().handleText(B)}catch(F){O(F,z)}}function b(B,z){!B.trim()||R(B,z)}var w=s.getPackages().reduce(function(B,z){return B[z.uri]=z.prefix,B},Object.entries(Ex).reduce(function(B,[z,F]){return B[F]=z,B},s.config&&s.config.nsMap||{}));return m.ns(w).on("openTag",function(B,z,F,H){var ee=B.attrs||{},ne=Object.keys(ee).reduce(function(me,pe){var Se=z(ee[pe]);return me[pe]=Se,me},{}),se={name:B.name,originalName:B.originalName,attributes:ne,ns:B.ns};T(se,H)}).on("question",P).on("closeTag",N).on("cdata",R).on("text",function(B,z,F){b(z(B),F)}).on("error",y).on("warn",O),new Promise(function(B,z){var F;try{m.parse(e),E()}catch(me){F=me}var H=a.element;!F&&!H&&(F=uo("failed to parse document as <"+a.type.$descriptor.name+">"));var ee=p.warnings,ne=p.references,se=p.elementsById;return F?(F.warnings=ee,z(F)):B({rootElement:H,elementsById:se,references:ne,warnings:ee})})},Dx.prototype.handler=function(e){return new Sx(this.model,e)};function FH(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var PH=`<?xml version="1.0" encoding="UTF-8"?>
@@ -39,7 +39,7 @@ usage: app.provide(ID_INJECTION_KEY, {
39
39
  `),this},this.appendIndent=function(){return n&&e.write(i.join(" ")),this},this.indent=function(){return i.push(""),this},this.unindent=function(){return i.pop(),this}}function $H(e){e=Je({format:!1,preamble:!0},e||{});function n(i,a){var s=a||new XH,c=new ZH(s,e.format);e.preamble&&c.append(PH);var p=new zt,m=i.$model;if(p.getNamespaces().mapDefaultPrefixes(qH(m)),p.build(i).serializeTo(c),!a)return s.value}return{toXML:n}}function qH(e){const n=e.config&&e.config.nsMap||{},i={};for(const a in Ex)i[a]=Ex[a];for(const a in n){const s=n[a];i[s]=a}for(const a of e.getPackages())i[a.prefix]=a.uri;return i}function im(e,n){nr.call(this,e,n)}im.prototype=Object.create(nr.prototype),im.prototype.fromXML=function(e,n,i){Cr(n)||(i=n,n="bpmn:Definitions");var a=new Dx(Je({model:this,lax:!0},i)),s=a.handler(n);return a.fromXML(e,s)},im.prototype.toXML=function(e,n){var i=new $H(n);return new Promise(function(a,s){try{var c=i.toXML(e);return a({xml:c})}catch(p){return s(p)}})};var eV="BPMN20",tV="http://www.omg.org/spec/BPMN/20100524/MODEL",nV="bpmn",iV=[],rV=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],aV=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],oV={tagAlias:"lowerCase",typePrefix:"t"},sV={name:eV,uri:tV,prefix:nV,associations:iV,types:rV,enumerations:aV,xml:oV},lV="BPMNDI",cV="http://www.omg.org/spec/BPMN/20100524/DI",uV="bpmndi",dV=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],fV=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],pV=[],hV={name:lV,uri:cV,prefix:uV,types:dV,enumerations:fV,associations:pV},mV="DC",gV="http://www.omg.org/spec/DD/20100524/DC",AV="dc",vV=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],bV=[],_V={name:mV,uri:gV,prefix:AV,types:vV,associations:bV},yV="DI",xV="http://www.omg.org/spec/DD/20100524/DI",wV="di",EV=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],kV=[],CV={tagAlias:"lowerCase"},SV={name:yV,uri:xV,prefix:wV,types:EV,associations:kV,xml:CV},DV="bpmn.io colors for BPMN",IV="http://bpmn.io/schema/bpmn/biocolor/1.0",BV="bioc",OV=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],TV=[],NV=[],MV={name:DV,uri:IV,prefix:BV,types:OV,enumerations:TV,associations:NV},FV="BPMN in Color",PV="http://www.omg.org/spec/BPMN/non-normative/color/1.0",RV="color",jV=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],LV=[],QV=[],zV={name:FV,uri:PV,prefix:RV,types:jV,enumerations:LV,associations:QV};const HV={bpmn:sV,bpmndi:hV,dc:_V,di:SV,bioc:MV,color:zV};function VV(e,n){const i=Je({},HV,e);return new im(i,n)}var UV="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function YV(e){$l(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(UV)}})}function qn(e,n){return e.$instanceOf(n)}function WV(e){return Sr(e.rootElements,function(n){return qn(n,"bpmn:Process")||qn(n,"bpmn:Collaboration")})}function GV(e){var n={},i=[],a={};function s(le,he){return function(xe){le(xe,he)}}function c(le){n[le.id]=le}function p(le){return n[le.id]}function m(le,he){var xe=le.gfx;if(xe)throw new Error(`already rendered ${Nn(le)}`);return e.element(le,a[le.id],he)}function g(le,he){return e.root(le,a[le.id],he)}function y(le,he){try{var xe=a[le.id]&&m(le,he);return c(le),xe}catch(Fe){O(Fe.message,{element:le,error:Fe}),console.error(`failed to import ${Nn(le)}`,Fe)}}function O(le,he){e.error(le,he)}var E=this.registerDi=function(he){var xe=he.bpmnElement;xe?a[xe.id]?O(`multiple DI elements defined for ${Nn(xe)}`,{element:xe}):(a[xe.id]=he,YV(xe)):O(`no bpmnElement referenced in ${Nn(he)}`,{element:he})};function N(le){_(le.plane)}function _(le){E(le),We(le.planeElement,S)}function S(le){E(le)}this.handleDefinitions=function(he,xe){var Fe=he.diagrams;if(xe&&Fe.indexOf(xe)===-1)throw new Error("diagram not part of <bpmn:Definitions />");if(!xe&&Fe&&Fe.length&&(xe=Fe[0]),!xe)throw new Error("no diagram to display");a={},N(xe);var K=xe.plane;if(!K)throw new Error(`no plane for ${Nn(xe)}`);var j=K.bpmnElement;if(!j)if(j=WV(he),j)O(`correcting missing bpmnElement on ${Nn(K)} to ${Nn(j)}`),K.bpmnElement=j,E(K);else throw new Error("no process or collaboration to display");var k=g(j,K);if(qn(j,"bpmn:Process")||qn(j,"bpmn:SubProcess"))P(j,k);else if(qn(j,"bpmn:Collaboration"))ge(j,k),T(he.rootElements,k);else throw new Error(`unsupported bpmnElement for ${Nn(K)}: ${Nn(j)}`);M(i)};var M=this.handleDeferred=function(){for(var he;i.length;)he=i.shift(),he()};function P(le,he){W(le,he),ee(le.ioSpecification,he),H(le.artifacts,he),c(le)}function T(le,he){var xe=ql(le,function(Fe){return!p(Fe)&&qn(Fe,"bpmn:Process")&&Fe.laneSets});xe.forEach(s(P,he))}function R(le,he){y(le,he)}function b(le,he){We(le,s(R,he))}function w(le,he){y(le,he)}function B(le,he){y(le,he)}function z(le,he){y(le,he)}function F(le,he){y(le,he)}function H(le,he){We(le,function(xe){qn(xe,"bpmn:Association")?i.push(function(){F(xe,he)}):F(xe,he)})}function ee(le,he){!le||(We(le.dataInputs,s(B,he)),We(le.dataOutputs,s(z,he)))}var ne=this.handleSubProcess=function(he,xe){W(he,xe),H(he.artifacts,xe)};function se(le,he){var xe=y(le,he);qn(le,"bpmn:SubProcess")&&ne(le,xe||he),qn(le,"bpmn:Activity")&&ee(le.ioSpecification,he),i.push(function(){We(le.dataInputAssociations,s(w,he)),We(le.dataOutputAssociations,s(w,he))})}function me(le,he){y(le,he)}function pe(le,he){y(le,he)}function Se(le,he){i.push(function(){var xe=y(le,he);le.childLaneSet&&ye(le.childLaneSet,xe||he),Te(le)})}function ye(le,he){We(le.lanes,s(Se,he))}function _e(le,he){We(le,s(ye,he))}function W(le,he){J(le.flowElements,he),le.laneSets&&_e(le.laneSets,he)}function J(le,he){We(le,function(xe){qn(xe,"bpmn:SequenceFlow")?i.push(function(){me(xe,he)}):qn(xe,"bpmn:BoundaryEvent")?i.unshift(function(){se(xe,he)}):qn(xe,"bpmn:FlowNode")?se(xe,he):qn(xe,"bpmn:DataObject")||(qn(xe,"bpmn:DataStoreReference")||qn(xe,"bpmn:DataObjectReference")?pe(xe,he):O(`unrecognized flowElement ${Nn(xe)} in context ${Nn(he&&he.businessObject)}`,{element:xe,context:he}))})}function re(le,he){var xe=y(le,he),Fe=le.processRef;Fe&&P(Fe,xe||he)}function ge(le,he){We(le.participants,s(re,he)),i.push(function(){b(le.messageFlows,he)}),H(le.artifacts,he)}function Te(le){We(le.flowNodeRef,function(he){var xe=he.get("lanes");xe&&xe.push(le)})}}function JV(e,n,i){var a,s,c,p,m=[];function g(y,O){var E={root:function(M,P){return a.add(M,P)},element:function(M,P,T){return a.add(M,P,T)},error:function(M,P){m.push({message:M,context:P})}},N=new GV(E);O=O||y.diagrams&&y.diagrams[0];var _=KV(y,O);if(!_)throw new Error("no diagram to display");We(_,function(M){N.handleDefinitions(y,M)});var S=O.plane.bpmnElement.id;c.setRootElement(c.findRoot(S+"_plane")||c.findRoot(S))}return new Promise(function(y,O){try{return a=e.get("bpmnImporter"),s=e.get("eventBus"),c=e.get("canvas"),s.fire("import.render.start",{definitions:n}),g(n,i),s.fire("import.render.complete",{error:p,warnings:m}),y({warnings:m})}catch(E){return E.warnings=m,O(E)}})}function KV(e,n){if(!(!n||!n.plane)){var i=n.plane.bpmnElement,a=i;!Ge(i,"bpmn:Process")&&!Ge(i,"bpmn:Collaboration")&&(a=XV(i));var s;Ge(a,"bpmn:Collaboration")?s=a:s=Sr(e.rootElements,function(y){if(!!Ge(y,"bpmn:Collaboration"))return Sr(y.participants,function(O){return O.processRef===a})});var c=[a];s&&(c=T8(s.participants,function(y){return y.processRef}),c.push(s));var p=iO(c),m=[n],g=[i];return We(e.diagrams,function(y){if(!!y.plane){var O=y.plane.bpmnElement;p.indexOf(O)!==-1&&g.indexOf(O)===-1&&(m.push(y),g.push(O))}}),m}}function iO(e){var n=[];return We(e,function(i){!i||(n.push(i),n=n.concat(iO(i.flowElements)))}),n}function XV(e){for(var n=e;n;){if(Ge(n,"bpmn:Process"))return n;n=n.$parent}}var ZV='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',rO=ZV,aO={verticalAlign:"middle"},oO={color:"#404040"},$V={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},qV={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},eU={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},tU='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+rO+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',Zr;function nU(){Zr=Li(tU),Tn(Zr,$V),Tn(xa("svg",Zr),aO),Tn(xa(".backdrop",Zr),qV),Tn(xa(".notice",Zr),eU),Tn(xa(".link",Zr),oO,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function iU(){Zr||(nU(),tc.bind(Zr,".backdrop","click",function(e){document.body.removeChild(Zr)})),document.body.appendChild(Zr)}function en(e){e=Je({},aU,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e),sU(this._container)}Gr(en,lo),en.prototype.importXML=async function(n,i){const a=this;function s(p){return a.get("eventBus").createEvent(p)}let c=[];try{n=this._emit("import.parse.start",{xml:n})||n;let p;try{p=await this._moddle.fromXML(n,"bpmn:Definitions")}catch(N){throw this._emit("import.parse.complete",{error:N}),N}let m=p.rootElement;const g=p.references,y=p.warnings,O=p.elementsById;c=c.concat(y),m=this._emit("import.parse.complete",s({error:null,definitions:m,elementsById:O,references:g,warnings:c}))||m;const E=await this.importDefinitions(m,i);return c=c.concat(E.warnings),this._emit("import.done",{error:null,warnings:c}),{warnings:c}}catch(p){let m=p;throw c=c.concat(m.warnings||[]),rm(m,c),m=rU(m),this._emit("import.done",{error:m,warnings:m.warnings}),m}},en.prototype.importDefinitions=async function(n,i){return this._setDefinitions(n),{warnings:(await this.open(i)).warnings}},en.prototype.open=async function(n){const i=this._definitions;let a=n;if(!i){const c=new Error("no XML imported");throw rm(c,[]),c}if(typeof n=="string"&&(a=oU(i,n),!a)){const c=new Error("BPMNDiagram <"+n+"> not found");throw rm(c,[]),c}try{this.clear()}catch(c){throw rm(c,[]),c}const{warnings:s}=await JV(this,i,a);return{warnings:s}},en.prototype.saveXML=async function(n){n=n||{};let i=this._definitions,a,s;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i,s=(await this._moddle.toXML(i,n)).xml,s=this._emit("saveXML.serialized",{xml:s})||s}catch(p){a=p}const c=a?{error:a}:{xml:s};if(this._emit("saveXML.done",c),a)throw a;return c},en.prototype.saveSVG=async function(){this._emit("saveSVG.start");let n,i;try{const a=this.get("canvas"),s=a.getActiveLayer(),c=xa(":scope > defs",a._svg),p=WB(s),m=c?"<defs>"+WB(c)+"</defs>":"",g=s.getBBox();n=`<?xml version="1.0" encoding="utf-8"?>
40
40
  <!-- created with bpmn-js / http://bpmn.io -->
41
41
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
42
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+g.width+'" height="'+g.height+'" viewBox="'+g.x+" "+g.y+" "+g.width+" "+g.height+'" version="1.1">'+m+p+"</svg>"}catch(a){i=a}if(this._emit("saveSVG.done",{error:i,svg:n}),i)throw i;return{svg:n}},en.prototype._setDefinitions=function(e){this._definitions=e},en.prototype.getModules=function(){return this._modules},en.prototype.clear=function(){!this.getDefinitions()||lo.prototype.clear.call(this)},en.prototype.destroy=function(){lo.prototype.destroy.call(this),nc(this._container)},en.prototype.on=function(e,n,i,a){return this.get("eventBus").on(e,n,i,a)},en.prototype.off=function(e,n){this.get("eventBus").off(e,n)},en.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=xa(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},en.prototype.getDefinitions=function(){return this._definitions},en.prototype.detach=function(){const e=this._container,n=e.parentNode;!n||(this._emit("detach",{}),n.removeChild(e))},en.prototype._init=function(e,n,i){const a=i.modules||this.getModules(i),s=i.additionalModules||[],c=[{bpmnjs:["value",this],moddle:["value",n]}],p=[].concat(c,a,s),m=Je(j8(i,["additionalModules"]),{canvas:Je({},i.canvas,{container:e}),modules:p});lo.call(this,m),i&&i.container&&this.attachTo(i.container)},en.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},en.prototype._createContainer=function(e){const n=Li('<div class="bjs-container"></div>');return Tn(n,{width:sO(e.width),height:sO(e.height),position:e.position}),n},en.prototype._createModdle=function(e){const n=Je({},this._moddleExtensions,e.moddleExtensions);return new VV(n)},en.prototype._modules=[];function rm(e,n){return e.warnings=n,e}function rU(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const aU={width:"100%",height:"100%",position:"relative"};function sO(e){return e+(no(e)?"px":"")}function oU(e,n){return n&&Sr(e.diagrams,function(i){return i.id===n})||null}function sU(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+rO+"</a>",a=Li(i);Tn(xa("svg",a),aO),Tn(a,oO,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(a),xs.bind(a,"click",function(s){iU(),s.preventDefault()})}function uc(e){en.call(this,e)}Gr(uc,en),uc.prototype._modules=[_7,L7,c2,Y7,i2],uc.prototype._moddleExtensions={};var lU=/^djs-cursor-.*$/;function lO(e){var n=ys(document.body);n.removeMatching(lU),e&&n.add("djs-cursor-"+e)}function cU(){lO(null)}var uU=5e3;function dU(e,n){n=n||"element.click";function i(){return!1}return e.once(n,uU,i),function(){e.off(n,i)}}function cO(e,n){return{x:e.x-n.x,y:e.y-n.y}}var fU=15;function uO(e,n){var i;function a(m){return p(m.originalEvent)}e.on("canvas.focus.changed",function(m){m.focused?e.on("element.mousedown",500,a):e.off("element.mousedown",a)});function s(m){var g=i.start,y=i.button,O=g2(m),E=cO(O,g);if(!i.dragging&&pU(E)>fU&&(i.dragging=!0,y===0&&dU(e),lO("grab")),i.dragging){var N=i.last||i.start;E=cO(O,N),n.scroll({dx:E.x,dy:E.y}),i.last=O}m.preventDefault()}function c(m){xs.unbind(document,"mousemove",s),xs.unbind(document,"mouseup",c),i=null,cU()}function p(m){if(!XB(m.target,".djs-draggable")){var g=m.button;if(!(g>=2||m.ctrlKey||m.shiftKey||m.altKey))return i={button:g,start:g2(m)},xs.bind(document,"mousemove",s),xs.bind(document,"mouseup",c),!0}}this.isActive=function(){return!!i}}uO.$inject=["eventBus","canvas"];function pU(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Id={__init__:["moveCanvas"],moveCanvas:["type",uO]};var hU=new px("tt");function mU(e){var n=Li('<div class="djs-tooltip-container" />');return Tn(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function gU(e,n,i){Tn(e,{left:n+"px",top:i+"px"})}function Ox(e,n){e.style.display=n===!1?"none":""}var dO="djs-tooltip",Tx="."+dO;function ei(e,n){this._eventBus=e,this._canvas=n,this._ids=hU,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=mU(n.getContainer());var i=this;tc.bind(this._tooltipRoot,Tx,"mousedown",function(a){a.stopPropagation()}),tc.bind(this._tooltipRoot,Tx,"mouseover",function(a){i.trigger("mouseover",a)}),tc.bind(this._tooltipRoot,Tx,"mouseout",function(a){i.trigger("mouseout",a)}),this._init()}ei.$inject=["eventBus","canvas"],ei.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var n=this._ids.next();return e=Je({},this._tooltipDefaults,e,{id:n}),this._addTooltip(e),e.timeout&&this.setTimeout(e),n},ei.prototype.trigger=function(e,n){var i=n.delegateTarget||n.target,a=this.get(sx(i,"data-tooltip-id"));!a||(e==="mouseover"&&a.timeout&&this.clearTimeout(a),e==="mouseout"&&a.timeout&&(a.timeout=1e3,this.setTimeout(a)))},ei.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},ei.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},ei.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var n=this;e.removeTimer=setTimeout(function(){n.remove(e)},e.timeout)}},ei.prototype.remove=function(e){var n=this.get(e);n&&(nc(n.html),nc(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},ei.prototype.show=function(){Ox(this._tooltipRoot)},ei.prototype.hide=function(){Ox(this._tooltipRoot,!1)},ei.prototype._updateRoot=function(e){var n=e.scale||1,i=e.scale||1,a="matrix("+n+",0,0,"+i+","+-1*e.x*n+","+-1*e.y*i+")";this._tooltipRoot.style.transform=a,this._tooltipRoot.style["-ms-transform"]=a},ei.prototype._addTooltip=function(e){var n=e.id,i=e.html,a,s=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Cr(i)&&(i=Li(i)),a=Li('<div data-tooltip-id="'+n+'" class="'+dO+'">'),Tn(a,{position:"absolute"}),a.appendChild(i),e.type&&ys(a).add("djs-tooltip-"+e.type),e.className&&ys(a).add(e.className),e.htmlContainer=a,s.appendChild(a),this._tooltips[n]=e,this._updateTooltip(e)},ei.prototype._updateTooltip=function(e){var n=e.position,i=e.htmlContainer;gU(i,n.x,n.y)},ei.prototype._updateTooltipVisibilty=function(e){We(this._tooltips,function(n){var i=n.show,a=n.htmlContainer,s=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(s=!1),Ox(a,s))})},ei.prototype._init=function(){var e=this;function n(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){n(i.viewbox)})};const Nx={__init__:["tooltips"],tooltips:["type",ei]};var AU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-card",{class:(e.item||{}).endTime?"":"cur-process"},[i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(e.item.assigneeName||(e.item.comments&&e.item.comments.length>0?e.item.comments[e.item.comments.length-1].userId:"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(e.item.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),i("span",{staticClass:"flow-node"},[e._v(e._s(e.item.historyActivityType=="endEvent"?"\u7ED3\u675F":e.item.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),e.item.historyActivityDurationTime?i("p",{staticClass:"flow-time"},[e._v(" \u4EFB\u52A1\u5386\u65F6 "+e._s(e.item.historyActivityDurationTime)+" ")]):e._e(),e.item.comments&&e.item.comments.length>0?[e._l(e.item.comments.filter(function(a){return a.action==="AddComment"}),function(a,s){return i("p",{key:s},[s<1?[i("span",{class:["comment-type",e.item.class]},[e._v(e._s(e.commentMap[a.type]||a.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(a.userId))]),e._v(": "),i("span",[e._v(" "+e._s(a.fullMessage)+" ")]),e.item.comments.filter(function(c){return c.action==="AddComment"}).length>1?i("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),i("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),i("el-icon",[e.isFlag?i("el-icon-arrow-up"):i("el-icon-arrow-down")],1)],1):e._e(),a.time&&e.isFlag?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(a.time))]):e._e()]:e._e(),s>0&&e.isFlag?[i("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[a.type]||a.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(a.userId))]),e._v(": "),i("span",[e._v(" "+e._s(a.fullMessage)+" ")]),a.time?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(a.time))]):e._e()]:e._e()],2)}),e.item.attachmentsQianzi&&e.item.attachmentsQianzi.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u7B7E\u5B57: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:e.item.attachmentsQianzi,callback:function(a){e.$set(e.item,"attachmentsQianzi",a)},expression:"item.attachmentsQianzi"}})],1)])]:e._e(),e.item.attachmentsFujian&&e.item.attachmentsFujian.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u9644\u4EF6: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:e.item.attachmentsFujian,callback:function(a){e.$set(e.item,"attachmentsFujian",a)},expression:"item.attachmentsFujian"}})],1)])]:e._e()]:e._e(),e.item.endTime?i("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(e.item.endTime))]):e._e()],2)},vU=[];const RZ="",bU={name:"nf-flow",props:{item:{type:Object,default:()=>({})},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ky,isFlag:!1,toggleText:"\u5C55\u5F00",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",skipComment:"\u8DF3\u8FC7",cancelProcessComment:"\u62D2\u7EDD",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},fO={};var _U=qt(bU,AU,vU,!1,yU,"42df10ba",null,null);function yU(e){for(let n in fO)this[n]=fO[n]}const xU=function(){return _U.exports}();var wU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"bpmnnd-box"},[i("el-drawer",{attrs:{"append-to":".bpmn-look","append-to-body":!1,title:"I am the title","with-header":!1,"z-index":"999",size:"360px"},model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[i("div",{staticClass:"bpmnd-detail"},[i("div",{staticClass:"bpmnd-top"},[e._v(" "+e._s(e.curName||"\u8282\u70B9\u540D\u79F0")+" ")]),i("div",{staticClass:"bpmnd-body"},e._l(e.getColors(e.curData),function(a){return i("div",{staticClass:"bpmnd-cur"},[i("processFlowItem",{attrs:{flowList:e.curData,item:a}})],1)}),0)])])],1)},EU=[];const jZ="",kU={components:{processFlowItem:xU},data(){return{getColors:Ky,visible:!1,curData:[],curName:"",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u6307\u5B9A\u56DE\u9000\u6D41\u7A0B",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},watch:{visible(e){e||this.$emit("close")}},methods:{openDrawer(e,n){let i=n.filter(a=>a.historyActivityType=="userTask");this.curData=i.filter(a=>a.historyActivityId==e.id).reverse(),this.curData,this.curName=this.curData.length?this.curData[0].historyActivityName:"",this.visible=!!(this.curData&&this.curData.length>0)},closeDrawer(){this.visible=!1}}},pO={};var CU=qt(kU,wU,EU,!1,SU,"03628561",null,null);function SU(e){for(let n in pO)this[n]=pO[n]}const DU=function(){return CU.exports}();var IU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{ref:"container",staticClass:"bpmn-look",on:{wheel:e.handleWheel}},[i("bpmnNodeDetail",{ref:"bpmnNodeDetailRef",on:{close:e.closeDetail}})],1)},BU=[];const LZ="",OU={name:"bpmn-look",components:{bpmnNodeDetail:DU},props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{drawer:!1,scale:1,viewer:null,loading:!0}},mounted(){this.initViewer(),this.$refs.container&&this.$refs.container.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){e.length;let n=e;n&&this.isXml&&this.loadXml(n)},immediate:!0}},methods:{handleWheel(e){if(this.drawer)return;e.preventDefault();const n=Math.sign(e.deltaY)*.1;this.scale=Math.max(.5,Math.min(this.scale-n,3)),this.viewer&&this.viewer.get("canvas").zoom(this.scale)},async getXml(e){this.isXml;let n={},i="";try{n=await api.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(i=n.data)}catch(a){console.error(a)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(uc)=="[object Function]"?uc:uc.default,n=Object.prototype.toString.call(Nx)=="[object Object]"?Nx:Nx.default,i=Object.prototype.toString.call(Id)=="[object Object]"?Id:Id.default;Object.prototype.toString.call(Id),this.viewer=new e({container:this.$refs.container,additionalModules:[n,i]}),this.viewer.on("import.done",({error:a})=>{a||(this.canvasResize(),this.addApprovalData())}),this.viewer.on("element.click",a=>{a.type,a.element,a&&a.element&&(a.element.type||"").includes("UserTask")&&(this.drawer=!0,this.$refs.bpmnNodeDetailRef.openDrawer(a.element,this.approvalData))})},closeDetail(){this.drawer,this.drawer=!1},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},setNodeColor(e){const n=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),a=this.viewer.get("tooltips");e.forEach(s=>{if(s.id&&s.class&&n.addMarker(s.id,s.class),s.id&&s.tooltip){const c=i.get(s.id);if(c){let{x:p,y:m,type:g}=c;["bpmn:StartEvent","bpmn:EndEvent"].includes(g)?(p=p-45,m=m+65):["bpmn:UserTask"].includes(g)&&(p=p-10,m=m+90),a.add({position:{x:p,y:m},html:s.tooltip})}}})},addApprovalData(){if(this.approvalData,!this.approvalData||this.approvalData.length==0)return;const e=w8(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{e.length;const{warnings:n}=await this.viewer.importXML(e);n.length&&this.$emit("warning",n)}catch(n){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:n.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",n)}}},beforeDestroy(){this.$refs.container&&this.$refs.container.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},hO={};var TU=qt(OU,IU,BU,!1,NU,"81dc53d8",null,null);function NU(e){for(let n in hO)this[n]=hO[n]}const mO=function(){return TU.exports}();var MU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.boxLoading&&!e.isButton,expression:"boxLoading && !isButton"}],ref:"mianContent",staticClass:"mianContent",class:e.isDialog?"is-dialog":"",style:{}},[e.isButton?e._e():[i("div",{ref:"baseTabs",staticClass:"tabs"},[i("el-tabs",{staticClass:"demo-tabs",on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(a){e.activeName=a},expression:"activeName"}},e._l(e.tabs,function(a,s){return i("el-tab-pane",{key:s,attrs:{label:a.name,name:a.slot||a.name,item:a}},[a.name=="\u57FA\u672C\u4FE1\u606F"&&!a.slot?[i("div",{style:{height:`${e.baseHeight}px`}},[e._t("default",null,{taskNode:e.getTaskNode(),processData:e.processData,currentProcess:e.currentProcess})],2)]:a.name=="\u6D41\u7A0B\u56FE"&&!a.slot?[i("div",{staticClass:"view-node-info",on:{click:e.getNodeList}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]),e.trackUrl?i("iframe",{key:e.processId,staticStyle:{width:"100%",height:"100%",border:"none"},style:{height:`${e.iframeHeight}px`},attrs:{src:e.trackUrl,scrolling:"no",frameborder:"0"}}):e._e(),e.activeName=="\u6D41\u7A0B\u56FE"&&e.processData.process&&e.processData.process.xml?i("bpmnLook",{attrs:{approvalData:e.processData.flow,diagram:e.processData.process.xml}}):i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6D41\u7A0B\u56FE ")])]:a.name=="\u5BA1\u6279\u8BB0\u5F55"&&!a.slot?[e.activeName=="\u5BA1\u6279\u8BB0\u5F55"&&e.processData.flow?i("processFlow",{attrs:{"flow-list":e.formatFlow(e.processData.flow)}}):i("div",{staticStyle:{height:"100px",display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6570\u636E ")])]:[e.activeName==a.name?i("div",{style:{height:`${e.baseHeight}px`}},[a.slot?e._t(a.slot,null,{taskNode:e.getTaskNode(),processData:e.processData,currentProcess:e.currentProcess}):e._t("default",null,{taskNode:e.getTaskNode(),processData:e.processData,currentProcess:e.currentProcess})],2):e._e()]],2)}),1)],1)],e._t("myBtn"),e.isAdditional&&e.absoluteBtns.outside.length>0?i("div",{ref:"footBtnRow",staticClass:"footBtnRow foot-item",style:{width:e.mainWidth+"px"}},[e._t("btn",null,null,e.processStatus)],2):e.showBtns?!e.ProcessInsObj.end&&e.absoluteBtns.outside.length>0&&e.processStatus.appId!="com.awspaas.user.apps.root"||e.customBtns.length>0?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.footBtnLoading,expression:"footBtnLoading"}],ref:"footBtnRow",staticClass:"footBtnRow foot-item",style:{width:e.mainWidth+"px"}},[(e.processData.process.isReturnable||e.processData.process.status=="todo"||e.customBtns.length>0)&&e.absoluteBtns.outside.length>0?[e.absoluteBtns.inside.length>0?i("el-dropdown",{attrs:{placement:"top-start",trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[i("el-dropdown-menu",e._l(e.absoluteBtns.inside,function(a,s){return i("el-dropdown-item",{key:a.name+s,nativeOn:{click:function(c){return function(){a.click(),e.aftClickBtn=a}.apply(null,arguments)}}},[i("el-button",{staticClass:"btn drop-btn",attrs:{type:"text",size:"mini",icon:a.icon,loading:e.buttonLoading}},[e._v(" "+e._s(a.name)+" ")])],1)}),1)]},proxy:!0}],null,!1,1409220773)},[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small"}},[e._v(" \u66F4\u591A ")])],1):e._e(),e._l(e.absoluteBtns.outside,function(a){return i("el-button",e._b({key:a.name,attrs:{size:"small",loading:e.buttonLoading},on:{click:function(){a.click(),e.aftClickBtn=a}}},"el-button",a.btnProps,!1),[e._v(" "+e._s(a.name)+" ")])})]:e._e(),e._t("btnAppend")],2):e._e():i("div"),i("div",{staticClass:"dialog"},[i("el-dialog",{staticClass:"dialog",style:e.dynamicStyle,attrs:{visible:e.dialogVisibleOperation,"append-to-body":"",width:"600px",title:e.operationLabel,"close-on-click-modal":!1,"show-close":!e.isOperLoading,"before-close":e.cancelHandlerFn,top:"6vh"},on:{"update:visible":function(a){e.dialogVisibleOperation=a}},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary",loading:e.isOperLoading,disabled:e.isOperationHidden},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{loading:e.isOperLoading,disabled:e.isOperationHidden},on:{click:e.cancelHandlerFn}},[e._v("\u53D6 \u6D88")])]},proxy:!0}]),model:{value:e.dialogVisibleOperation,callback:function(a){e.dialogVisibleOperation=a},expression:"dialogVisibleOperation"}},[i("div",{ref:"obRef",staticClass:"operation-box"},[e.dialogVisibleOperation?i(e.operationCom,{ref:"operationRef",tag:"component",attrs:{param:e.operationParam,isOperLoading:e.isOperLoading},on:{success:e.operationSuccess,fail:e.operationFail},scopedSlots:e._u([{key:"form",fn:function(){return[e.aftClickBtn.slot?e._t(e.aftClickBtn.slot):e._e()]},proxy:!0},{key:"file",fn:function(){return[e.attachShow?i("el-form",{attrs:{"label-width":"120px","status-icon":"",rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9644\u4EF6",prop:e.attachRule.required?"attach":""}},[i("jyr-file-upload",{ref:"fileUpload",attrs:{multiple:e.attachRule.limit>0,limit:e.attachRule.limit,fullFileObject:"",showFileName:""},model:{value:e.attach,callback:function(a){e.attach=a},expression:"attach"}})],1)],1):e._e()]},proxy:!0}],null,!0)}):e._e()],1)]),i("el-dialog",{attrs:{title:"\u9009\u62E9\u5904\u7406\u4EFB\u52A1",visible:e.showMulTask,"append-to-body":"","close-on-click-modal":!1,width:"500px","show-close":!1},on:{"update:visible":function(a){e.showMulTask=a}},model:{value:e.showMulTask,callback:function(a){e.showMulTask=a},expression:"showMulTask"}},[i("el-form",{ref:"form",staticClass:"task",attrs:{"label-width":"100px"}},[i("el-form-item",{attrs:{label:"\u8BF7\u9009\u62E9\uFF1A",prop:"content"}},[i("el-radio-group",{attrs:{size:"small"},model:{value:e.mulTaskTaskId,callback:function(a){e.mulTaskTaskId=a},expression:"mulTaskTaskId"}},e._l(e.mulTaskList,function(a){return i("el-radio",{key:a.nodeId,attrs:{label:a.taskId,border:""}},[e._v(e._s(a.nodeName))])}),1)],1)],1),i("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.onCheckSure}},[e._v("\u786E\u5B9A")])],1)],1),i("el-dialog",{attrs:{visible:e.nodeInfoVisible,"append-to-body":"",width:"600px",title:"\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",modal:!1,"close-on-click-modal":!1},on:{"update:visible":function(a){e.nodeInfoVisible=a}},model:{value:e.nodeInfoVisible,callback:function(a){e.nodeInfoVisible=a},expression:"nodeInfoVisible"}},[i("el-table",{staticClass:"process-table",attrs:{data:e.filterFlow(e.processData.flow),border:"","header-row-style":e.headerRowStyle}},[i("el-table-column",{attrs:{label:"\u5E8F\u53F7",type:"index",width:"60px",align:"center"}}),i("el-table-column",{attrs:{prop:"historyActivityName",label:"\u8282\u70B9\u540D\u79F0","min-width":"130"}}),i("el-table-column",{attrs:{prop:"assigneeName",label:"\u5BA1\u6279\u4EBA","min-width":"80"}})],1)],1)],1)],2)},FU=[];const QZ="",zZ="",PU={components:{processBtns:y8,processFlow:I8,bpmnLook:mO,staffTree:ba,...$D,ViewFile:D5,JyrFileUpload:vh},props:{taskId:{default:!1,type:[String,Boolean]},processId:{default:"q",type:String},userId:{require:!0,default:"",type:String},showBtns:{default:!0,type:Boolean},isView:{default:!1,type:Boolean},getVars:{type:Function},before:{type:Function},isAlis:{type:Boolean,default:!1},isAdditional:{type:Boolean,default:!1},businessData:{type:Object,default:void 0},excludeBtn:{type:String,default:""},showAsPlanned:{type:Boolean,default:!1},showCommIdea:{type:Boolean,default:!0},commentMsgRequired:{type:Boolean,default:!0},customBtn:{default:""},tabs:{default:()=>[{name:"\u57FA\u672C\u4FE1\u606F",slot:""},{name:"\u6D41\u7A0B\u56FE",slot:""},{name:"\u5BA1\u6279\u8BB0\u5F55",slot:""}]},personType:{default:""},personEntity:{type:Object,default:()=>{}},isButton:{type:Boolean,default:!1},isDialog:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},headerRowStyle:{type:Object||Function,default:()=>({"background-color":"rgb(245, 247, 250)",color:"#333"})},extraHeight:{type:Number,default:0}},provide(){return{isAlisInject:this.isAlis}},data(){return{incomingConditionItemList:[],deptId:"",initProcessData:{button:[],flow:[],form:{},process:{}},currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},processData:{button:[],flow:[],form:{},process:{}},submitLoading:!1,flowChartVisible:!1,comment:null,dynamicMaxHeight:"400px",showMulTask:!1,mulTaskList:[],mulTaskTaskId:"",attach:[],customBtns:[],overheight:10,iframeHeight:500,baseHeight:500,mainWidth:0,absoluteTaskId:"",infoView:!1,showTopTabs:!1,buttonLoading:!1,footBtnLoading:!0,tabheight:400,aftClickBtn:"",attachRule:{required:!0,limit:0},nodeInfoVisible:!1,nodeInfoList:[],jjForm:{saveMetaAnnexCmdList:[]},targetUID:"",commentMsg:"",trackUrl:"",taskObj:{},taskCommentList:[],absoluteBtns:{inside:[],outside:[]},processStatus:"",nextTaskNode:[],activeName:"\u57FA\u672C\u4FE1\u606F",ProcessInsObj:{},outGatewayUserTaskModel:[],dialogVisibleOperation:!1,operationLabel:"",operationCom:{},operationParam:{},taskNode:[],aftTaskNode:{},operation:$D,Enum:Np,isOperLoading:!1,isOperationHidden:!1,boxLoading:!1,rules:{attach:[{required:!0,trigger:"change"}]},noReload:!1,digitalSignatureList:[]}},mounted(){console.info("%c\u26A1"+Tp.name+"%c v"+Tp.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),window.onresize=()=>(()=>{this.$refs.mianContent&&(this.mainWidth=this.$refs.mianContent.offsetWidth)})()},watch:{activeName:function(e){e==1&&(this.activeName="\u57FA\u672C\u4FE1\u606F")},infoView:function(){this.calculateHeight()},taskId:{handler(e){!e||(this.absoluteTaskId=e)},deep:!0,immediate:!0},processId:{handler(e){this.$nextTick(()=>{if(e&&e!="q"){if(this.customBtns=[],this.absoluteBtns={inside:[],outside:[]},this.boxLoading=!0,this.activeName=this.tabs.length>0?this.tabs[0].name:"",this.getProcessInfo(),this.getCurrentProcess(),Date.now())return;Xe.repository.queryTaskNodeList(this.processId).then(n=>{if(!this.noReload)if(this.noReload=!1,!this.absoluteTaskId&&n.data.length>1){this.mulTaskList=n.data,this.showMulTask=!0;return}else this.absoluteTaskId=n.data&&n.data.length>0?n.data[0].taskId:"",this.aftTaskNode=n.data[0];this.absoluteTaskId,n.code==bt.success&&(this.taskNode=n.data,Xe.pis.getProcessStatus(this.processId,this.absoluteTaskId).then(i=>{i.code==bt.success&&(this.processStatus=i.data,this.$emit("getStatus",i.data),this.absoluteTaskId?Xe.repository.getUserTaskModelCmd(this.absoluteTaskId).then(a=>{a.code==bt.success&&(this.taskObj=a.data,this.straightenBtns())}):this.straightenBtns())}))}),Xe.repository.getTrackUrl({processInstId:e,type:qb.\u7535\u8111\u7AEF}).then(n=>{n.code==bt.success&&(window.location.protocol=="https:"?n.data.indexOf("http://121.40.143.183:80/")>=0?this.trackUrl=n.data.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://121.40.143.183/")>=0?this.trackUrl=n.data.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://acme-aws.ddzg.cn/")>=0?this.trackUrl=n.data.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://59.53.91.231:8088/")>=0?this.trackUrl=n.data.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"):n.data.indexOf("http://59.53.91.230:8088/")>=0?this.trackUrl=n.data.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"):this.trackUrl=n.data:this.trackUrl=n.data)}),Xe.tis.getTaskCommentList(this.processId,"").then(n=>{this.taskCommentList=n.data,this.digitalSignatureList=n.data.filter(i=>i.digitalSignature).map(i=>i.digitalSignature)}),Xe.pis.getProcessInstanceById(this.processId).then(n=>{this.ProcessInsObj=n.data,this.$nextTick(()=>{this.calculateHeight()})})}})},immediate:!0,deep:!0},absoluteTaskId:{handler(e){},immediate:!0,deep:!0},dialogVisibleOperation:{handler(e){this.$emit("show-modal",e)}}},methods:{formatFlow(e){let n=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(a=>a.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(a=>a.type=="signature")}));return n=n.reverse(),n},cancelHandlerFn(){this.dialogVisibleOperation=!1,this.submitLoading=!1},filterFlow(e){return e.filter(n=>["userTask","candidate"].includes(n.historyActivityType))},getCurrentProcess(){Xe.repository.queryTaskNodeList(this.processId).then(e=>{if(e.code==200){const n={};if(n.currentProcessOriginData=e.data||[],n.currentProcessOriginData.length>0){let i=n.currentProcessOriginData[0],a=(i.currentName||"").split(","),s=(i.avatar||"").split(",");a=a.map((c,p)=>({realName:c,avatar:s[p]||"",phone:"",ancestorNames:[]})),n.currentMan=a,n.currentFirstNode=i,this.currentProcess=n}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e,"getCurrentProcess")})},getProcessInfo(){this.submitLoading=!0,this.boxLoading=!0,Xe.tis.getTaskModelDetail(this.taskId?{processInstId:this.processId,taskId:this.taskId}:{processInstId:this.processId}).then(async e=>{if(e.code==200){this.processData={...this.initProcessData,...e.data||{}},this.$emit("get-process-data",this.processData);const n=((this.processData.process||{}).variables||{}).deptId;this.deptId=n;const i=(this.processData.process||{}).taskId;this.taskObj.buttons=this.processData.button,this.absoluteTaskId=i,this.ProcessInsObj=this.processData.process,this.straightenBtns(),this.$nextTick(()=>{this.calculateHeight()}),this.processData.flow,this.flowChartVisible=!0,this.submitLoading=!1,this.boxLoading=!1}})},getUserDataByDeptId(){this.processList.map(async(e,n)=>{const i=Jy(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:i.intersection?1:0,userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(a.code==Enum.apiCode.success){const s=this.processList[n];s.userList=a.data,this.processList[n]=s}})},handleDraft(){this.submitLoading=!0},handleExamine(e,n){e?this.handlePass(n):this.handleCancel(n),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.isOperationHidden=!0,this.before?this.before().then(()=>{this.showOperation(hy,e)}):this.showOperation(hy,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextTaskNode:this.nextTaskNode},this.isOperationHidden=!1)},handleCancel(e){this.showOperation(UD,e)},handleUserSelect({type:e,checkType:n,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},handleTransfer(e){this.showOperation(jD,e)},handleAddInstance(e){this.showOperation(FD,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(WD,e)},handleTerminateProcess(){},handleCirculate(e){this.showOperation(ZD,e)},handleWithdrawTask(e){this.handleRevoke()},findTargetHtml(e,n,i="parentElement"){if(!e)return null;if(e.classList.contains(n))return e;let a=e[i];if(!a)return null;if(i=="children"){for(let s=0;s<=a.length-1;s++)if(a[s].classList.contains(n))return a[s];return}return this.findTargetHtml(a,n)},findImageIndex(e){return e?this.digitalSignatureList.findIndex(n=>n==e):-1},onCheckSure(){this.absoluteTaskId=this.mulTaskTaskId,this.mulTaskList.map(n=>{n.taskId==this.mulTaskTaskId&&(this.aftTaskNode=n)}),this.noReload=!0,this.showMulTask=!1,this.footBtnLoading=!0;let e=this.processId;Reflect.set(this.processId,""),Reflect.set(this.processId,e)},showButtonLoading(){this.buttonLoading=!0},hideButtonLoading(){this.buttonLoading=!1},calculateHeight(){let e=0;if(this.$refs.footBtnRow&&(e+=this.$refs.footBtnRow.offsetHeight),this.$refs.mianContent&&(this.mainWidth=this.$refs.mianContent.offsetWidth),this.infoView&&this.absoluteBtns.outside.length>0&&(e+=32),this.$refs.infoBoxFign){let n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.tabheight=n-this.$refs.infoBoxFign.offsetTop-192}this.overheight=e+116,this.iframeHeight=this.$refs.mianContent.offsetHeight-146,this.baseHeight=this.$refs.mianContent.offsetHeight-70-e-this.extraHeight},getNodeList(){this.nodeInfoVisible=!0},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let i="/";e.indexOf("\\")!=-1&&(i="\\");let a=e,s=a.lastIndexOf(i);return a.substr(s+1+n,a.length)},clickCustomButton(e){this.$emit("clickCustomButton",{name:e,processStatus:this.processStatus,setName:n=>{this.taskObj.buttons.map(i=>{i.label==e&&(i.label=n)}),this.straightenBtns()}})},async getNextNode(e){if(this.ProcessInsObj&&this.ProcessInsObj.taskParentId)return!0;let n;try{n=await Xe.tis.simulation(this.absoluteTaskId,this.processId)}catch(a){console.error(a),n={}}let i=n.data||{};n.code==200&&!n.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.id)),n.code==200&&n.data.evaluation&&n.data.branches&&n.data.branches.length>0&&n.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.branches[0].id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i},async getNodeUser({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s}){return await Xe.user.getTaskAuditor({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s})},async showOperation(e,n){this.attach=[],this.operationLabel=n,this.operationParam.processInstId=this.processId,this.operationParam.taskInstId=this.absoluteTaskId,this.operationParam.nextTaskNode=this.nextTaskNode,this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.variables=(this.processData.process||{}).variables||{},this.operationParam.extendedProperties=(this.processData.form||{}).extendedProperties||[],this.operationParam.taskObj=this.taskObj,this.operationParam.getVars=this.getVars,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.getTaskNode(),this.operationParam.businessData=this.businessData,this.operationParam.showAsPlanned=this.showAsPlanned,this.operationParam.showCommIdea=this.showCommIdea,this.operationParam.commentMsgRequired=this.commentMsgRequired,this.operationParam.personType=this.personType,this.operationParam.personEntity={...this.personEntity,...this.aftClickBtn.personEntity||{}},this.operationParam.ProcessInsObj=this.ProcessInsObj,this.operationCom=e,this.dialogVisibleOperation=!0,this.$nextTick(()=>{var m,g;let i=this.$refs.obRef;if(this.$refs,!i)return;let a=(m=i.getBoundingClientRect())==null?void 0:m.top,s=this.findTargetHtml(i,"el-dialog"),c=this.findTargetHtml(s,"el-dialog__footer","children"),p=window.innerHeight-((g=i.getBoundingClientRect())==null?void 0:g.top)-a-(c==null?void 0:c.clientHeight)-32;this.dynamicMaxHeight=`${p}px`})},onClickOperation(){if(this.attachShow&&this.attachRule.required&&this.attach.length==0)return hd.error("\u8BF7\u4E0A\u4F20\u9644\u4EF6");this.aftClickBtn.preposition?this.operationMain(this.aftClickBtn.preposition):this.operationMain()},operationMain(e=!1){let n;this.attachShow&&(n=[],this.attach.map(i=>{n.push({id:i.id,name:this.fileNameLastof(i.name),size:i.fileSize,format:i.fileType,url:i.url,uploadTime:i.createTime,processInstId:this.operationParam.processInstId,taskInstId:this.operationParam.taskInstId})}),n=n.sort((i,a)=>ld(i.uploadTime).valueOf()>ld(a.uploadTime).valueOf())),this.$refs.operationRef&&this.$refs.operationRef.confirm(e,()=>{this.isOperLoading=!0},n)},operationSuccess(e=!0){hd.success("\u64CD\u4F5C\u6210\u529F"),this.dialogVisibleOperation=!1,e&&this.$emit("Complete"),this.isOperLoading=!1},operationFail(e=""){e&&hd.warning(e),this.isOperLoading=!1},async getSelectFixData(e,n){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let a=0;a<i.branches.length;a++){let s=i.branches[a],c=s.nodeInfoDTO?s.nodeInfoDTO:s;try{c=await this.getSelectFixData(c,n)}catch(p){}s.nodeInfoDTO?s.nodeInfoDTO=c:s=c,i.branches[a]=s}else if(i.nodeType=="userTask"&&!i.setPersonnel){let a=Jy(i),s;try{s=await this.getNodeUser({deptId:n,intersection:a.intersection?1:0,userIds:a.userIds,postIds:a.postIds,deptIds:a.deptIds}),s.code==bt.success}catch(c){}s.code==bt.success&&(i.userList=s.data)}return i},async getOutgoingProcessNode(e,n){let i=await Xe.repository.getOutgoingProcessNode(e,n);if(i.code==bt.success){if(i.data){for(let a=0;a<i.data.length;a++){let s=i.data[a];s.incomingConditionItemList&&s.incomingConditionItemList.length!==0&&(s.nodeInfoDTO.incomingConditionItemList=s.incomingConditionItemList,s.incomingConditionItemList,this.incomingConditionItemList.push(...s.incomingConditionItemList)),s.nodeInfoDTO.nodeType!="userTask"&&(s.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,s.nodeInfoDTO.id)),i.data[a].type!="endEvent"&&(i.data[a].humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||i.data[a].humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&await Xe.repository.getParticipantsOfPerformerNames(e,[i.data[a].id]).then(c=>{i.data[a].routeTxt.userNames=c.data[i.data[a].id]})}i.data.length==0&&i.data.push({id:"",incomingConditionItemList:[],type:"endEvent",name:"\u7ED3\u675F\u4E8B\u4EF6"})}return i.data}return[]},getColor(e){return e=="\u5BA1\u6838\u4E2D"||e=="\u5BA1\u6279\u4E2D"?"#6DC743":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleClick(e,n){this.$emit("clickTab",e.$vnode?JSON.parse(JSON.stringify(e.$vnode.data.attrs.item)):e.props,e.index)},getTaskNode(){return this.taskNode.filter?this.taskNode.filter(e=>e.nodeId==this.taskObj.id):[]},handleRevoke(){DB.confirm("\u786E\u5B9A\u64A4\u9500\u5417","\u64A4\u9500",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.tis.withdrawTask(this.processData.process.processInstanceId).then(e=>{e.code==bt.success&&(hd.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(()=>{})},handleReminders(){DB.confirm("\u786E\u5B9A\u50AC\u529E\u5417","\u50AC\u529E",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.ProcessInsObj,Xe.tis.reminders(this.processData.process.processInstanceId).then(e=>{e.code==bt.success&&(hd.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(e=>{})},getButton(e){return(this.processData.button||[]).find(n=>n.buttonKey==e)},operBtn(){let e=[];const n=this.processData.process;if(!n)return e;if(n.status=="todo"&&this.getButton("wf_add_instance")){let a={};a.name=this.getButton("wf_add_instance").name,a.btnProps={type:"primary"},a.key="sign",a.click=()=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name})},e.push(a)}if(n.status=="todo"&&this.getButton("wf_transfer")){let a={};a.name=this.getButton("wf_transfer").name,a.key="delegate",a.click=()=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name})},e.push(a)}if(n.status=="todo"&&this.getButton("wf_delegate")){let a={};a.name=this.getButton("wf_delegate").name,a.btnProps={type:"warning"},a.key="cc2",a.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name})},e.push(a)}if(n.status=="todo"&&this.getButton("wf_terminate")){let a={};a.name=this.getButton("wf_terminate").name,a.btnProps={type:"danger"},a.key="cc3",a.click=()=>{this.handleTerminateProcess()},e.push(a)}if(n.status=="todo"&&this.getButton("wf_cctask")){let a={};a.name=this.getButton("wf_cctask").name,a.btnProps={type:"primary"},a.key="cc",a.click=()=>{this.handleCirculate(this.getButton("wf_cctask").name)},e.push(a)}if(n.isReturnable&&n.isOwner){let a={};a.name="\u50AC\u529E",a.key="self",a.click=()=>{this.handleReminders()},e.push(a)}if(n.isOwner&&n.isReturnable&&!["deleted"].includes(n.processIsFinished)){let a={};a.name="\u64A4\u9500",a.btnProps={type:"danger"},a.key="self",a.click=()=>{this.handleWithdrawTask("\u64A4\u9500")},e.push(a)}if(n.status=="todo"&&this.getButton("wf_reject")){let a={};a.name=this.getButton("wf_reject").name,a.btnProps={type:"danger"},a.key="refuse",a.click=()=>{this.handleExamine(!1,this.getButton("wf_reject").name)},e.push(a)}if(n.status=="todo"&&this.getButton("wf_pass")){let a={};a.name=this.getButton("wf_pass").name,a.btnProps={type:"primary"},a.key="complete",a.click=()=>{this.before?this.before().then(()=>{this.handleExamine(!0,this.getButton("wf_pass").name)}):this.handleExamine(!0,this.getButton("wf_pass").name)},e.push(a)}if(n.status=="todo"&&this.getButton("wf_rollback")){let a={};a.name=this.getButton("wf_rollback").name,a.btnProps={type:"danger"},a.key="back",a.click=()=>{this.handleRollbackTask(this.getButton("wf_rollback").name)},e.unshift(a)}return["wf_edit"].map(a=>{if(n.status=="todo"&&this.getButton(a)){let s={};s.name=this.getButton(a).name,s.btnProps={},s.key=s.name,s.click=()=>{this.clickCustomButton(s.name)},e.unshift(s)}}),e},straightenBtns(e=!0){let n=[];this.excludeBtn?this.operBtn().map(a=>{(this.excludeBtn.indexOf(a.key)==-1||!a.key)&&n.push(a)}):n=this.operBtn(),this.customBtns.length>0&&(n=[],this.customBtns.map(a=>{(this.excludeBtn.indexOf(a.key)==-1||!a.key)&&n.push(a)}));let i={outside:[],inside:[]};n.length>4?(i.outside=n.splice(n.length-4,n.length-1),i.inside=n):i.outside=n,e&&this.customBtn?this.customBtn({btnList:this.operBtn(),processStatus:this.processStatus,processData:this.processData,nextTaskNode:this.nextTaskNode},a=>{this.customBtns=a,this.straightenBtns(!1)},()=>{this.$emit("Complete")}):(this.absoluteBtns=i,this.$nextTick(()=>{this.calculateHeight(),this.footBtnLoading=!1,this.boxLoading=!1}))}},computed:{dynamicStyle(){return{"--dynamic-ctx-height":this.dynamicMaxHeight}},attachShow(){const e=(this.processData.form||{}).extendedProperties||[];let n=!1,i,a="";switch(this.operationLabel){case"\u9000\u56DE":i=e.find(c=>c.name=="otherButtonAnnexList"),a=i?i.value:"",a&&(n=!0);break;case"\u901A\u8FC7":case"\u529E\u7406":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u5904\u7406":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u540C\u610F":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u62D2\u7EDD":i=e.find(c=>c.name=="otherButtonAnnexList"),a=i?i.value:"";break;case"\u52A0\u7B7E":i=e.find(c=>c.name=="counterSignButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u8F6C\u529E":i=e.find(c=>c.name=="delegateTaskButtonAnnex"),a=i?i.value:"",a&&(n=!0);break}let s="";if(typeof a!="string"&&a!=null&&a.map(c=>{c.indexOf(this.operationLabel)!=-1&&(n=!0,s=c)}),s&&(a=s),n){const c=a.split(":");this.attachRule.required=c[1]=="true",this.attachRule.limit=c[2]==-1?999:c[2]}return n}}},gO={};var RU=qt(PU,MU,FU,!1,jU,"4a3e690c",null,null);function jU(e){for(let n in gO)this[n]=gO[n]}const AO=function(){return RU.exports}(),LU=async(e,n)=>{const i=n||{},a=i.dragElement||(i.targetClassName?vO(e,i.targetClassName):e.querySelector(".el-dialog"));let s;new IntersectionObserver(b=>{s=b[0].isIntersecting,s||R()}).observe(a);const p=i.dragHeader||".el-dialog__header",m=a.querySelector(p),g=i.restrictElement||document.body;let y;g?y=g.getBoundingClientRect():y={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};let O=!1,E,N,_;const S=()=>{if(m){m.style.cursor="move",m.style["user-select"]="none",m.onmousedown=w=>{O=!0;const B=a.style.transform.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);E=B?parseFloat(B[1]):0,N=B?parseFloat(B[2]):0,document.addEventListener("mousemove",P),document.addEventListener("mouseup",T)};const b=a.getBoundingClientRect();_={"+x":y.right-b.right,"-x":y.left-b.left,"+y":y.bottom-b.bottom,"-y":y.top-b.top}}},M=()=>{O=!1,m.style.cursor="auto",m.style["user-select"]="auto",m.onmousedown=b=>{}};x.watch(i.dialogConfig,(b,w)=>{b.fullScreen&&(M(),R())}),S();const P=b=>{if(!O)return;b.stopPropagation(),b.preventDefault();let w=b.movementX+E,B=b.movementY+N;w>=0?w=w>=_["+x"]?_["+x"]:w:w=w<=_["-x"]?_["-x"]:w,B>=0?B=B>=_["+y"]?_["+y"]:B:B=B<=_["-y"]?_["-y"]:B,a.style.transform=`translate(${w}px, ${B}px)`,E=w,N=B},T=()=>{O=!1,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",T),a.style["user-select"]="auto"},R=()=>{a.style.transform="none"}};function vO(e,n){if(!e)return null;if(e.classList.contains(n))return e;let i=e.parentElement;return i?vO(i,n):null}const QU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACktJREFUeF7tnV1S3DgURqVuZh+dlQArCbyESdWQolcArKCpMFUJeYGsBLKS9D6GtKZsAiEBuq9VvrLFd/I2NbKlez6dlvxTOAb+QQACLxKIsIEABF4mgCDMDgisIYAgTA8IIAhzAAJ5BFhB8rhxlAgBBBEJmjLzCCBIHjeOEiGAICJBU2YeAQTJ48ZRIgQQRCRoyswjgCB53DhKhACCiARNmXkEECSPG0eJEEAQkaApM48AguRx4ygRAggiEjRl5hFAkDxuHCVCAEFEgqbMPAIIkseNo0QIjF6QxeLTrFQW8/n7Zam+xtxPKeY18B6VIG0wW5O9GOJ2SGkWYigmRzthU1iGSbpJ/6XTGsLrU7KGffwrHocU9/o878ZzNcybfzEuUwpfQ/yxnB++v9l4XKEGoxBkcX5xElN4W1yIlyCnsDz6cPCmUAaj6Obs48X3MfFPMXydHx6cDA1nUEFaMUI4HhrCc/2nEE7HEFAJNmf/fr4svnJYCkthObQogwjSLufTyfVofrGeDSveHB2+27XkWHub0QpyD7YR5cdqd4htb3FBFuefdmKYXI9+UsV0dfTP3/ujH2cPAzw7/3IdQtrp4VR+pxhoNSkqyJi3VE+SFRJk8fHLXozp0m9293fm0lvfYoJUJYfYRXodW95fkpWUpIgg1Wyr7u43ylx7PP5d/3WLfZw3Tf5cg0pJ4i5Ilhw/95t3UFZ398Rvf94v72+1fnKmIS4CHcvJOnWph4Tt4LbCLKTpLE5W253vorVzZLXv/czEXZBO99ebokM8nX94d5WVLgdVTaC9Fgrp2Hx3s8BW2FWQLhd/pZbMqmeQwOC7bvVSivueP6iuglhXjxRWu95LpcDcelUlmrfmzquImyDWu1bI8armda/FWCXxXEXcBLGsHmyrep1Pr/Jkph9ax1XET5Dzi7Q2MceiXuVMES2qfUazNb3c9KTfayfiIojl4tyrINF59KrLtmy1vHYjLoJYXn47Ojxw6ftVzxTh4jZv2X0e8LpM0o3FCL3nJDyney194wuVTlt2H0E2XH943nXoNRVONhoCG7ftr0oQnnuMZuLVMhDLdYjHtr33FeTursPk+zrw6Xb1hveeapma4xjnUPMKQcaRP6PYQABBmCIQWEMAQZgeEECQOwJcg+BCVwKsIF2J0V6KAIJIxU2xXQkgSFditJcigCBScVNsVwII0pUY7aUIIIhU3BTblQCCdCVGeykCCCIVN8V2JYAgXYnRXooAgkjFTbFdCSBIV2K0lyKAIFJxU2xXAgjSlRjtpQggiFTcFNuVAIJ0JUZ7KQIIIhU3xXYlgCBdidFeigCCSMVNsV0JIEhXYrSXIoAgUnFTbFcCCNKVGO2lCEgJ4vEnIqVmi2CxFkE85lXvf1mxyW7t5w/4y+6C07ufkoeYVy6CtLZPJ9dPPufr9Be4+8HPWcZOYIh55SJIA/rX53zjdvPfKaRv88ODk7GHwPjGTaD0vHITZNyYGR0EbAQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEXAVZnF+cxBC3G7YppG/zw4MTUc6U3SOBkvPKTZCzjxffQwyz37iksEw/Vrvz+ftlj7w4lRCB0vPKRZCz8y/XIaSdZ3OL6eron7/3hTKl1J4IDDGvnAS5SC8ySWF59OHgTU/MOI0QgbPz8vOqd0EWi0+zuDX5vi63dLt6wzZLaGb3UOpQ8wpBegiPU/gTQBB/xvRQMQEEqTg8hu5PAEH8GdNDxQQQpOLwGLo/AQTxZ0wPFRNAkIrDY+j+BBDEnzE9VEwAQSoOj6H7E0AQf8b0UDEBBKk4PIbuTwBB/BnTQ8UEEKTi8Bi6PwEE8WdMDxUTQJCKw2Po/gQQxJ8xPVRMAEEqDo+h+xNAEH/G9FAxAQSpODyG7k8AQfwZ00PFBBCk4vAYuj8BBPFnTA8VE0CQisNj6P4EEMSfMT1UTEBLkLDanR++v6k4L4ZemMDi/NNODJPrdd16/EHCYf5wHIIUnl71d7f4+GUvxnRZvSBNAWv/hmrzKYQU9+cf3l3VHxsVlCJgEeTo8KD3H/zeT9gK8tynD34jGW+ODt/tloJLP/UTOPv382VIce/FSpz+KLqPIOs+f9BU6FRM/dOACl4isPFH1+mzGi6CWJbDxHUINhgJmOaT07bdRxDDJxBYRYyzg2aGLXsIHnewGvQugtxdqK/5ytTP0FMIp3y3EAPWEbj7HmE43kTJ4wLdVRDLstisIimu9nkmsil+zf9vefbRXtI6ba98BWm2WdPJ9ZMPef6ZdStJ+MpKoinBS1Vb5WiO91o9XAVpTm5aRX7e1UISBLknYN1Wea8e/oK0F+vTyxe/eMtqghWPCLSrRppcbtx13B9T4HGB20X6w6+B5Y7WM6KESbpJq8m3EH/cfVP9Nrh/W50Pi94F0bwYWMTcrTALaToLMc0sF+JPp4n/O33ugnTaahVJZU0nKSxbMf9Lp2qytG/L/hWP1z6tHjqfR/2Xeo5WRJBWEuPtulFkUGDpHkWdjwax8Un1iAZc8vFAOUGaZXtrspezlA6RTckQhqjvcZ8b33MaeoC/rRxln50VE+ThmsTw2vI48tB5obIWQUptqx7Pv+KC3F8Emp6RDGmK08tvQ5b0Ut+Wtx4GHfeAD5QHEeThTkmz5Urhrfm2XsmUhAQxP68qyb/pawQPkQcT5GHL9XBtErfNz0u8gxK7SG/vYFneevDmfn/+EYhxP5TBBXnMvL3/Pp3uxBjehpRmw6wsOtceT9gPdROlub0e4zKF9C3crq7GdIt9VII89wNV7KFVCGFMwZT6sf6zH3j/TmT0ggw1UegXAg0BBGEeQGANAQRhekAAQZgDEMgjwAqSx42jRAggiEjQlJlHAEHyuHGUCAEEEQmaMvMIIEgeN44SIYAgIkFTZh4BBMnjxlEiBBBEJGjKzCOAIHncOEqEAIKIBE2ZeQQQJI8bR4kQQBCRoCkzjwCC5HHjKBECCCISNGXmEUCQPG4cJUIAQUSCpsw8Av8DJjgSI/ED2TgAAAAASUVORK5CYII=";var zU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-dialog",{staticClass:"process-dialog",attrs:{visible:e.visible,width:e.width||"60%","close-on-click-modal":!1,fullscreen:e.fullscreen,title:"\u6D41\u7A0B\u4FE1\u606F","append-to-body":"",top:"5vh"},on:{"update:visible":function(a){e.visible=a},closed:e.onClickCancel,close:e.close,open:e.open},scopedSlots:e._u([{key:"title",fn:function(){return[i("div",{staticClass:"dialog-header"},[e._t("title",function(){return[i("div",[e._v("\u6D41\u7A0B\u4FE1\u606F")])]}),i("div",{staticClass:"dialog-icon"},[i("span",{on:{click:function(a){e.fullscreen=!e.fullscreen}}},[i("img",{attrs:{src:QU,alt:""}})])])],2)]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[e.showProcess?i("process",e._b({ref:"process",attrs:{processId:e.paramsProcessId,isDialog:!0,fullscreen:e.fullscreen,tabs:e.tabs},on:{Complete:e.Complete,clickTab:e.handleTab,clickCustomButton:e.handleCustomButton,"get-status":e.getStatus}},"process",e.$attrs,!1),[i("div",{staticClass:"processDialogMain"},[e._t("default")],2)]):e._e()],1)},HU=[];const HZ="",VU={components:{process:AO},props:{dragable:!1,value:Boolean,width:String,processId:String,tabs:{default:()=>[{name:"\u57FA\u672C\u4FE1\u606F",slot:""},{name:"\u6D41\u7A0B\u56FE",slot:""},{name:"\u5BA1\u6279\u8BB0\u5F55",slot:""}]},parentEl:null},model:{prop:"value",event:"update:value"},data(){return{showProcess:!1,paramsProcessId:"",fullscreen:!1}},computed:{visible(){return this.value}},mounted(){this.$attrs},methods:{initDom(){this.fullscreen=!1},onClickCancel(){this.$emit("update:value",!1)},Complete(){this.$emit("Complete")},open(){this.showProcess=!0,this.paramsProcessId=this.processId;let e={targetClassName:"el-dialog"};(this.parentEl||window.$wujie.props.el())&&(e.restrictElement=this.parentEl||window.$wujie.props.el()),this.$nextTick(()=>{this.$refs,this.$refs.process,this.$refs.process&&LU(this.$refs.process.$el||this.$refs.process,e)})},close(){this.$emit("close"),this.paramsProcessId="",this.showProcess=!1,this.$refs.process&&(this.$refs.process.activeName=this.tabs[0].name)},handleTab(e,n){this.$emit("clickTab",e,n)},handleCustomButton(e){this.$emit("clickCustomButton",e)},getStatus(e){this.$emit("getStatus",e)}}},bO={};var UU=qt(VU,zU,HU,!1,YU,null,null,null);function YU(e){for(let n in bO)this[n]=bO[n]}const WU=function(){return UU.exports}();var GU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-dialog",{staticClass:"flow-dialog",attrs:{visible:e.flag,width:"45%","close-on-click-modal":!1,title:e.revival?"\u6D41\u7A0B\u590D\u6D3B":"\u521B\u5EFA\u5E76\u542F\u52A8\u6D41\u7A0B","append-to-body":""},on:{"update:visible":function(a){e.flag=a},closed:e.onClickCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{attrs:{loading:e.btnLoading,type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{attrs:{loading:e.btnLoading},on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}]),model:{value:e.flag,callback:function(a){e.flag=a},expression:"flag"}},[i("el-form",{staticClass:"create-form",attrs:{"label-width":"200px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u5F53\u524D\u6D41\u7A0B",size:"medium",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D41\u7A0B"}]}},[e.processDefList.length>1?i("el-select",{staticStyle:{width:"65%","margin-right":"10px"},attrs:{filterable:"",clearable:"",placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.processDefChange},model:{value:e.processDefId,callback:function(a){e.processDefId=a},expression:"processDefId"}},e._l(e.processDefList,function(a,s){return i("el-option",{key:s,attrs:{label:a.name,value:a.id,disabled:a.disabled}})}),1):i("b",{staticClass:"process-def-name"},[e._v(" "+e._s(e.processDefName)+" ")]),e.processDefId?i("div",{staticClass:"view-node-info",staticStyle:{"margin-right":"10px"},on:{click:e.viewFlowChart}},[e._v(" \u9884\u89C8 ")]):e._e(),e._e()],1),e.hasDeptId?e._e():i("el-form-item",{attrs:{size:"medium",label:"\u9009\u62E9\u90E8\u95E8",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8"}]}},[i("el-tree-select",{staticStyle:{width:"65%","margin-right":"10px"},attrs:{data:e.deptList,props:e.defaultProps,"node-key":"id","check-strictly":"","render-after-expand":!1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.handleDeptChange},model:{value:e.deptId,callback:function(a){e.deptId=a},expression:"deptId"}})],1),e.deptId?i("div",{staticClass:"node-list"},[e.processList&&e.processList.length>0?i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",size:"medium"}}):e._e(),e.processList.length>0?[e._l(e.processList,function(a,s){return[i("userTask",{ref:e.setItemRef(a.id),refInFor:!0,attrs:{index:s,personType:e.personType,personEntity:Object.assign({},e.personEntity,{_businessDeptId:e._businessDeptId}),processNode:Object.assign({},a,{REQUIRED:s==0}),label:"\u5904\u7406\u4EBA",rules:[{required:s==0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA"}]},on:{complete:e.complete}}),s!==e.processList.length-1?i("div",{staticClass:"user-task-split"}):e._e()]})]:e._e()],2):e._e()],1)],1),i("el-dialog",{staticClass:"track-view",attrs:{visible:e.flowChartVisible,width:"60%","append-to-body":"",title:"\u6D41\u7A0B\u56FE\u4FE1\u606F"},on:{"update:visible":function(a){e.flowChartVisible=a}},model:{value:e.flowChartVisible,callback:function(a){e.flowChartVisible=a},expression:"flowChartVisible"}},[e.flowChartVisible&&e.processXml?i("bpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml}}):e._e()],1),i("el-dialog",{attrs:{visible:e.flowForecastVisible,width:"45%","append-to-body":"",title:"\u6D41\u7A0B\u9884\u6D4B"},on:{"update:visible":function(a){e.flowForecastVisible=a},close:e.flowForecastClose}},[i("div",{staticStyle:{"margin-left":"20px"}},[i("div",{staticStyle:{"margin-left":"40px","margin-bottom":"20px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),i("el-timeline",e._l(e.flowForecastData.processBudgetModelList,function(a,s){return i("el-timeline-item",{key:s,attrs:{icon:"el-icon-check",color:s==0?"#009800":a.color,timestamp:a.title,placement:"top"}},[i("div",[i("span",{staticStyle:{color:"#1389FF"}},[i("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u53D1\u8D77\u4EBA\uFF1A"+e._s(a.createUser)+" ")]),i("span",{staticStyle:{color:"#009800","margin-left":"50px"}},[i("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(a.excutor)+" ")])])])}),1)],1)])],1)},JU=[];const VZ="",UZ="";var Ds=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Ds=e});const KU={components:{userTask:py,bpmnLook:mO},props:{other:{default:!0},personType:"",personEntity:{type:Object,default:()=>{}},beforeFunction:{type:Function,default:null},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{revivalVars:{},processData:{},absoluteTaskId:"",userTaskListData:{},flag:!1,revival:!1,flowChartVisible:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:"",btnLoading:!1,processList:[],processDefId:"",processDefName:"",businessId:"",trackUrl:"",processDefList:[],otherProcessList:[],callback:{},cancelCallBack:{},_multiNodeParticipant:[],_businessDeptId:"",businessCode:"",_vars:{},_appId:"",deptList:[],defaultProps:{children:"children",label:"label",isLeaf(e,n){return e.isLeaf=="true"}},userInfo:{},deptId:"",hasDeptId:!1,subjectId:"",processXml:""}},provide(){return{getUserInfo:this.getUserInfo}},mounted(){console.info("%c\u26A1"+Tp.name+"%c v"+Tp.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;")},methods:{getUserInfo(){return{deptId:this.deptId,subjectId:this.subjectId}},handleDeptChange(e){this.deptId=e,this.getUserDataByDeptId()},complete(e){},setLoading(e){this.btnLoading=e},async getXml(e){this.isXml;let n={},i="";try{n=await Xe.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(i=n.data)}catch(a){console.error(a)}return i},async viewFlowChart(){this.flowChartVisible=!0,this.processXml=await this.getXml(this.processDefId),!Date.now()&&Xe.repository.getDiagramUrl({processDefId:this.processDefId,diagramType:1,type:qb.\u7535\u8111\u7AEF}).then(e=>{e.code==bt.success&&(window.location.protocol=="https:"?e.data.indexOf("http://121.40.143.183:80/")>=0?this.trackUrl=e.data.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://121.40.143.183/")>=0?this.trackUrl=e.data.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://acme-aws.ddzg.cn/")>=0?this.trackUrl=e.data.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://59.53.91.231:8088/")>=0?this.trackUrl=e.data.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"):e.data.indexOf("http://59.53.91.230:8088/")>=0?this.trackUrl=e.data.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"):this.trackUrl=e.data:this.trackUrl=e.data,this.flowChartVisible=!0)})},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this._appId,title:"1"})},forecast(e){return this.btnLoading=!0,new Promise((n,i)=>{Xe.pis.getProcessForecast({processDefId:this.processDefId,...e}).then(a=>{this.btnLoading=!1,a.code==bt.success?(a.data&&a.data.processBudgetModelList&&a.data.processBudgetModelList.length?this.flowForecastProcessInstId=a.data.processBudgetModelList[0].processInstId:(a.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=a.data,this.flowForecastVisible=!0,n(a)):ElMessage.error(a.msg)}).catch(a=>{this.btnLoading=!1,ElMessage.error("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),i(a)})})},flowForecastClose(){this.flowForecastProcessInstId?Xe.pis.deleteProcessById(this.flowForecastProcessInstId).then(e=>{e.code==bt.success&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})},processDefChange(e){this.processDefId=e,Xe.repository.getFirstProcessNode(this.processDefId).then(async n=>{if(n.code==bt.success){if(this.processList=n.data,this.flag=!0,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId()}})},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},createAndStart(e){return this.btnLoading=!0,new Promise((n,i)=>{if(!Object.values(this._multiNodeParticipant).some(s=>s&&Array.isArray(s)&&s.length>0))return Ds.warning("\u8BF7\u9009\u62E9 \u7B2C\u4E00\u4E2A\u8282\u70B9 \u5904\u7406\u4EBA"),this.btnLoading=!1,!1;Xe.pis.createAndStart({processDefId:this.processDefId,multiNodeParticipant:this._multiNodeParticipant,firstNodeId:this.processList&&this.processList.length>0?this.processList[0].id:"",vars:{showType:"all",subjectId:this.subjectId,deptId:this.deptId,businessType:this.businessCode+"",...e,...this._vars}}).then(s=>{this.btnLoading=!1,s.code==bt.success?(this.flag=!1,n(s)):Ds.error(s.msg)}).catch(s=>{this.btnLoading=!1,Ds.error("\u6D41\u7A0B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),i(s)})})},revivalFlow(e={},n=!1,i="\u6D41\u7A0B\u590D\u6D3B"){return this.btnLoading=!0,new Promise((a,s)=>{const c={...this.revivalVars,showType:"all",subjectId:this.subjectId,deptId:this.deptId,businessType:this.businessCode+"",...e,...this._vars};Object.keys(c).forEach(p=>{const m=p.toLowerCase();m.includes("_")&&delete c[p],m=="appShow"&&delete c[p]}),Xe.pis.reactivate({reactivate:!0,processDefId:this.processDefId,processInstId:this.processInstId,isClearHistory:this.isClearHistory,multiNodeParticipant:this._multiNodeParticipant,firstNodeId:this.processList&&this.processList.length>0?this.processList[0].id:"",vars:c},"",this.businessId,i,"",n,this._multiNodeParticipant).then(p=>{this.btnLoading=!1,p.code==bt.success?(this.flag=!1,a(p)):Ds.error(p.msg)}).catch(p=>{this.btnLoading=!1,Ds.error("\u6D41\u7A0B\u590D\u6D3B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s(p)})})},Show(e,n="",i=!1){return this.processList=[],this.revival=i,this.processDefId=e,n&&Xe.repository.getProcessDefList(n,"",this.subjectId||"").then(a=>{a.code==bt.success&&a.data.map(s=>{s.id==e&&(this.processDefName=s.name)})}),new Promise((a,s)=>{this.cancelCallBack=s,Xe.repository.getFirstProcessNode(e).then(async c=>{if(c.code==bt.success){if(this.processList=c.data,this.flag=!0,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId(),this.callback=a}})})},selectShow(e={appId:"",businessCode:"",businessType:"",keyWord:"",businessDeptId:"",userInfo:{},processGroupName:""}){return this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.revival=!1,this._appId=e.appId,this._businessDeptId=e.businessDeptId,this.businessCode=e.businessCode+""||e.businessType+"",this.userInfo=e.userInfo,this.deptId=e.userInfo.deptId,this.subjectId=e.userInfo.subjectId,this.hasDeptId=!!this.deptId,this._businessDeptId,new Promise((n,i)=>{this.cancelCallBack=i,Xe.repository.getProcessDefListNew(e).then(a=>{a.code==bt.success&&(a.data.length==1?(this.processDefList=a.data,this.processDefId=a.data[0].id,this.processDefName=a.data[0].name,Xe.repository.getFirstProcessNode(this.processDefId).then(async s=>{if(s.code==bt.success){if(this.processList=s.data,this.flag=!0,this.callback=n,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId()}})):(this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.processDefList=a.data,e.keyWord&&this.processDefList.map(s=>{s.name.indexOf(e.keyWord)!=-1&&!this.processDefId&&(this.processDefId=s.id,this.processDefName=s.name,this.processDefChange(s.id))}),this.flag=!0,this.callback=n))})})},getUserDataByDeptId(){this.processList.map(async(e,n)=>{const i=Jy(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:i.intersection?1:0,userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(a.code==bt.success){const s=this.processList[n];s.userList=a.data,this.processList[n]=s}})},async getNodeUser({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s}){return await Xe.user.getTaskAuditor({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s})},async getNodeUserDept(){let e={};try{e=await Xe.user.getSelectTree()}catch(n){}e.data,this.deptList=e.data||[]},listShow(e){return this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.revival=!1,new Promise((n,i)=>{e.length==1?(this.processDefId=e[0].id,this.processDefName=e[0].name,this.cancelCallBack=i,Xe.repository.getFirstProcessNode(this.processDefId).then(a=>{a.code==bt.success&&(this.processList=a.data,this.flag=!0,this.callback=n,Xe.repository.getAfferentParticipantNodeList(this.processDefId).then(s=>{this.otherProcessList=s.data.filter(c=>c.id!=this.processList[0].id),this.otherProcessList.map(c=>{c.REQUIRED=!1})}))})):(this.processDefList=e,this.flag=!0,this.callback=n)})},async getProcessInfo({taskId:e,processInstId:n}){let i={};try{i=await Xe.tis.getTaskModelDetail(e?{processInstId:n,taskId:e}:{processInstId:n})}catch{i={}}return i.code==200,i},async revivalShow({processInstId:e,businessId:n,taskId:i,deptId:a}){this.processInstId=e,this.hasDeptId=!!a;let s=await this.getProcessInfo({taskId:i,processInstId:e});if(s.code==200){this.processData={...this.initProcessData,...s.data||{}};const c=((this.processData.process||{}).variables||{}).deptId;this.deptId=c,this._businessDeptId=c,this.hasDeptId=!!c;const p=(this.processData.process||{}).taskId;return this.absoluteTaskId=p,this.revival=!0,this.businessId=n,this.subjectId=s.data.process.variables.subjectId,this.businessCode=s.data.process.variables.businessType+"",this.revivalVars=s.data.process.variables,this.processDefId=s.data.process.processDefinitionId,this.processDefName=s.data.process.processDefinitionName,this.processDefList=[],this.Show(s.data.process.processDefinitionId,"",!0)}},onClickOperation(){if(!this.processDefId||this.processDefId=="")return Ds.warning("\u8BF7\u9009\u62E9\u6D41\u7A0B"),!1;let e={},n={};for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a][0],c=s?s.getValue():{multiNodeParticipant:[],vars:{}};if(!c)return!1;e={...e,...c.multiNodeParticipant},n={...n,...c.vars}}this._multiNodeParticipant=e,this._vars=n,this.callback,this.beforeFunction?this.beforeFunction():this.callback&&this.callback(this.revival?this.revivalFlow:this.createAndStart)},onClickCancel(){this.flag=!1,this.btnLoading=!1,this.cancelCallBack&&this.cancelCallBack()}}},_O={};var XU=qt(KU,GU,JU,!1,ZU,"1aef9e89",null,null);function ZU(e){for(let n in _O)this[n]=_O[n]}const $U=function(){return XU.exports}();var qU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-dialog",{attrs:{visible:e.flag,width:"35%",title:"\u91CD\u65B0\u53D1\u8D77","append-to-body":""},on:{"update:visible":function(a){e.flag=a},close:e.onClickCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}])},[i("el-form",{attrs:{"label-width":"100px","status-icon":""}},[e.isUserTask?e._l(e.processList,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{processNode:a}})}):e._e()],2)],1)],1)},eY=[],yO=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{yO=e});const tY={components:{userTask:py},data(){return{userTaskListData:{},flag:!1,processList:[],callbacak:{},commentMsg:"",isUserTask:!1,cancelCallBack:{}}},methods:{setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"},Show(e){return new Promise((n,i)=>{this.cancelCallBack=i,Xe.repository.getFirstProcessNode(e).then(a=>{a.code==bt.success&&(this.processList=a.data,this.isOption(this.processList[0].humanPerformerName)&&!this.processList[0].isHistoryRoute?(this.flag=!0,this.callbacak=n,this.isUserTask=!0):n({commentMsg:this.commentMsg||"\u91CD\u65B0\u53D1\u8D77"}))})})},onClickOperation(){if(this.commentMsg.length>200)return yO.error("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let e={};if(e={commentMsg:this.commentMsg||"\u91CD\u65B0\u53D1\u8D77"},this.isUserTask){let n={},i={};for(let a in this.userTaskListData){let s=this.userTaskListData[a],p=this.$refs[s][0].getValue();if(!p)return!1;n={...n,...p.multiNodeParticipant},i={...i,...p.vars},e={...e,multiNodeParticipant:n,vars:i}}}this.callbacak&&this.callbacak(e),this.flag=!1},onClickCancel(){this.flag=!1,this.cancelCallBack&&this.cancelCallBack()}}},xO={};var nY=qt(tY,qU,eY,!1,iY,null,null,null);function iY(e){for(let n in xO)this[n]=xO[n]}const rY=function(){return nY.exports}();Promise.resolve().then(()=>RJ);var Mx={exports:{}},Ue={},Fx={exports:{}},wO;function EO(){return wO||(wO=1,function(e){(function(n){var i={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",c="\\d{3}",p="\\d{4}",m="[^\\s]+",g=/\[([^]*?)\]/gm,y=function(){};function O(w){return w.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function E(w,B){for(var z=[],F=0,H=w.length;F<H;F++)z.push(w[F].substr(0,B));return z}function N(w){return function(B,z,F){var H=F[w].indexOf(z.charAt(0).toUpperCase()+z.substr(1).toLowerCase());~H&&(B.month=H)}}function _(w,B){for(w=String(w),B=B||2;w.length<B;)w="0"+w;return w}var S=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],M=["January","February","March","April","May","June","July","August","September","October","November","December"],P=E(M,3),T=E(S,3);i.i18n={dayNamesShort:T,dayNames:S,monthNamesShort:P,monthNames:M,amPm:["am","pm"],DoFn:function(B){return B+["th","st","nd","rd"][B%10>3?0:(B-B%10!==10)*B%10]}};var R={D:function(B){return B.getDay()},DD:function(B){return _(B.getDay())},Do:function(B,z){return z.DoFn(B.getDate())},d:function(B){return B.getDate()},dd:function(B){return _(B.getDate())},ddd:function(B,z){return z.dayNamesShort[B.getDay()]},dddd:function(B,z){return z.dayNames[B.getDay()]},M:function(B){return B.getMonth()+1},MM:function(B){return _(B.getMonth()+1)},MMM:function(B,z){return z.monthNamesShort[B.getMonth()]},MMMM:function(B,z){return z.monthNames[B.getMonth()]},yy:function(B){return _(String(B.getFullYear()),4).substr(2)},yyyy:function(B){return _(B.getFullYear(),4)},h:function(B){return B.getHours()%12||12},hh:function(B){return _(B.getHours()%12||12)},H:function(B){return B.getHours()},HH:function(B){return _(B.getHours())},m:function(B){return B.getMinutes()},mm:function(B){return _(B.getMinutes())},s:function(B){return B.getSeconds()},ss:function(B){return _(B.getSeconds())},S:function(B){return Math.round(B.getMilliseconds()/100)},SS:function(B){return _(Math.round(B.getMilliseconds()/10),2)},SSS:function(B){return _(B.getMilliseconds(),3)},a:function(B,z){return B.getHours()<12?z.amPm[0]:z.amPm[1]},A:function(B,z){return B.getHours()<12?z.amPm[0].toUpperCase():z.amPm[1].toUpperCase()},ZZ:function(B){var z=B.getTimezoneOffset();return(z>0?"-":"+")+_(Math.floor(Math.abs(z)/60)*100+Math.abs(z)%60,4)}},b={d:[s,function(w,B){w.day=B}],Do:[s+m,function(w,B){w.day=parseInt(B,10)}],M:[s,function(w,B){w.month=B-1}],yy:[s,function(w,B){var z=new Date,F=+(""+z.getFullYear()).substr(0,2);w.year=""+(B>68?F-1:F)+B}],h:[s,function(w,B){w.hour=B}],m:[s,function(w,B){w.minute=B}],s:[s,function(w,B){w.second=B}],yyyy:[p,function(w,B){w.year=B}],S:["\\d",function(w,B){w.millisecond=B*100}],SS:["\\d{2}",function(w,B){w.millisecond=B*10}],SSS:[c,function(w,B){w.millisecond=B}],D:[s,y],ddd:[m,y],MMM:[m,N("monthNamesShort")],MMMM:[m,N("monthNames")],a:[m,function(w,B,z){var F=B.toLowerCase();F===z.amPm[0]?w.isPm=!1:F===z.amPm[1]&&(w.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(w,B){var z=(B+"").match(/([+-]|\d\d)/gi),F;z&&(F=+(z[1]*60)+parseInt(z[2],10),w.timezoneOffset=z[0]==="+"?F:-F)}]};b.dd=b.d,b.dddd=b.ddd,b.DD=b.D,b.mm=b.m,b.hh=b.H=b.HH=b.h,b.MM=b.M,b.ss=b.s,b.A=b.a,i.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},i.format=function(w,B,z){var F=z||i.i18n;if(typeof w=="number"&&(w=new Date(w)),Object.prototype.toString.call(w)!=="[object Date]"||isNaN(w.getTime()))throw new Error("Invalid Date in fecha.format");B=i.masks[B]||B||i.masks.default;var H=[];return B=B.replace(g,function(ee,ne){return H.push(ne),"@@@"}),B=B.replace(a,function(ee){return ee in R?R[ee](w,F):ee.slice(1,ee.length-1)}),B.replace(/@@@/g,function(){return H.shift()})},i.parse=function(w,B,z){var F=z||i.i18n;if(typeof B!="string")throw new Error("Invalid format in fecha.parse");if(B=i.masks[B]||B,w.length>1e3)return null;var H={},ee=[],ne=[];B=B.replace(g,function(_e,W){return ne.push(W),"@@@"});var se=O(B).replace(a,function(_e){if(b[_e]){var W=b[_e];return ee.push(W[1]),"("+W[0]+")"}return _e});se=se.replace(/@@@/g,function(){return ne.shift()});var me=w.match(new RegExp(se,"i"));if(!me)return null;for(var pe=1;pe<me.length;pe++)ee[pe-1](H,me[pe],F);var Se=new Date;H.isPm===!0&&H.hour!=null&&+H.hour!=12?H.hour=+H.hour+12:H.isPm===!1&&+H.hour==12&&(H.hour=0);var ye;return H.timezoneOffset!=null?(H.minute=+(H.minute||0)-+H.timezoneOffset,ye=new Date(Date.UTC(H.year||Se.getFullYear(),H.month||0,H.day||1,H.hour||0,H.minute||0,H.second||0,H.millisecond||0))):ye=new Date(H.year||Se.getFullYear(),H.month||0,H.day||1,H.hour||0,H.minute||0,H.second||0,H.millisecond||0),ye},e.exports?e.exports=i:n.fecha=i})(void 0)}(Fx)),Fx.exports}var $r={},am={},kO;function aY(){return kO||(kO=1,am.__esModule=!0,am.default={el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},empty:{description:"\u6682\u65E0\u6570\u636E"}}}),am}var Px,CO;function oY(){if(CO)return Px;CO=1;var e=function(_){return n(_)&&!i(_)};function n(N){return!!N&&typeof N=="object"}function i(N){var _=Object.prototype.toString.call(N);return _==="[object RegExp]"||_==="[object Date]"||c(N)}var a=typeof Symbol=="function"&&Symbol.for,s=a?Symbol.for("react.element"):60103;function c(N){return N.$$typeof===s}function p(N){return Array.isArray(N)?[]:{}}function m(N,_){var S=_&&_.clone===!0;return S&&e(N)?O(p(N),N,_):N}function g(N,_,S){var M=N.slice();return _.forEach(function(P,T){typeof M[T]>"u"?M[T]=m(P,S):e(P)?M[T]=O(N[T],P,S):N.indexOf(P)===-1&&M.push(m(P,S))}),M}function y(N,_,S){var M={};return e(N)&&Object.keys(N).forEach(function(P){M[P]=m(N[P],S)}),Object.keys(_).forEach(function(P){!e(_[P])||!N[P]?M[P]=m(_[P],S):M[P]=O(N[P],_[P],S)}),M}function O(N,_,S){var M=Array.isArray(_),P=Array.isArray(N),T=S||{arrayMerge:g},R=M===P;if(R)if(M){var b=T.arrayMerge||g;return b(N,_,S)}else return y(N,_,S);else return m(_,S)}O.all=function(_,S){if(!Array.isArray(_)||_.length<2)throw new Error("first argument should be an array with at least two elements");return _.reduce(function(M,P){return O(M,P,S)})};var E=O;return Px=E,Px}var om={},lt={},Vi={},SO;function DO(){if(SO)return Vi;SO=1,Vi.__esModule=!0,Vi.isDefined=Vi.isUndefined=Vi.isFunction=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};Vi.isString=s,Vi.isObject=c,Vi.isHtmlElement=p;var n=Mi.default,i=a(n);function a(g){return g&&g.__esModule?g:{default:g}}function s(g){return Object.prototype.toString.call(g)==="[object String]"}function c(g){return Object.prototype.toString.call(g)==="[object Object]"}function p(g){return g&&g.nodeType===Node.ELEMENT_NODE}var m=function(y){var O={};return y&&O.toString.call(y)==="[object Function]"};return typeof/./!="function"&&(typeof Int8Array>"u"?"undefined":e(Int8Array))!=="object"&&(i.default.prototype.$isServer||typeof document.childNodes!="function")&&(Vi.isFunction=m=function(y){return typeof y=="function"||!1}),Vi.isFunction=m,Vi.isUndefined=function(y){return y===void 0},Vi.isDefined=function(y){return y!=null},Vi}var IO;function Dr(){if(IO)return lt;IO=1,lt.__esModule=!0,lt.isMac=lt.isEmpty=lt.isEqual=lt.arrayEquals=lt.looseEqual=lt.capitalize=lt.kebabCase=lt.autoprefixer=lt.isFirefox=lt.isEdge=lt.isIE=lt.coerceTruthyValueToArray=lt.arrayFind=lt.arrayFindIndex=lt.escapeRegexpString=lt.valueEquals=lt.generateId=lt.getValueByPath=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T};lt.noop=p,lt.hasOwn=m,lt.toObject=y,lt.getPropByPath=O,lt.rafThrottle=M,lt.objToArray=P;var n=Mi.default,i=s(n),a=DO();function s(T){return T&&T.__esModule?T:{default:T}}var c=Object.prototype.hasOwnProperty;function p(){}function m(T,R){return c.call(T,R)}function g(T,R){for(var b in R)T[b]=R[b];return T}function y(T){for(var R={},b=0;b<T.length;b++)T[b]&&g(R,T[b]);return R}lt.getValueByPath=function(R,b){b=b||"";for(var w=b.split("."),B=R,z=null,F=0,H=w.length;F<H;F++){var ee=w[F];if(!B)break;if(F===H-1){z=B[ee];break}B=B[ee]}return z};function O(T,R,b){var w=T;R=R.replace(/\[(\w+)\]/g,".$1"),R=R.replace(/^\./,"");for(var B=R.split("."),z=0,F=B.length;z<F-1&&!(!w&&!b);++z){var H=B[z];if(H in w)w=w[H];else{if(b)throw new Error("please transfer a valid prop path to form item!");break}}return{o:w,k:B[z],v:w?w[B[z]]:null}}lt.generateId=function(){return Math.floor(Math.random()*1e4)},lt.valueEquals=function(R,b){if(R===b)return!0;if(!(R instanceof Array)||!(b instanceof Array)||R.length!==b.length)return!1;for(var w=0;w!==R.length;++w)if(R[w]!==b[w])return!1;return!0},lt.escapeRegexpString=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String(R).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var E=lt.arrayFindIndex=function(R,b){for(var w=0;w!==R.length;++w)if(b(R[w]))return w;return-1};lt.arrayFind=function(R,b){var w=E(R,b);return w!==-1?R[w]:void 0},lt.coerceTruthyValueToArray=function(R){return Array.isArray(R)?R:R?[R]:[]},lt.isIE=function(){return!i.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},lt.isEdge=function(){return!i.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},lt.isFirefox=function(){return!i.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},lt.autoprefixer=function(R){if((typeof R>"u"?"undefined":e(R))!=="object")return R;var b=["transform","transition","animation"],w=["ms-","webkit-"];return b.forEach(function(B){var z=R[B];B&&z&&w.forEach(function(F){R[F+B]=z})}),R},lt.kebabCase=function(R){var b=/([^-])([A-Z])/g;return R.replace(b,"$1-$2").replace(b,"$1-$2").toLowerCase()},lt.capitalize=function(R){return(0,a.isString)(R)?R.charAt(0).toUpperCase()+R.slice(1):R};var N=lt.looseEqual=function(R,b){var w=(0,a.isObject)(R),B=(0,a.isObject)(b);return w&&B?JSON.stringify(R)===JSON.stringify(b):!w&&!B?String(R)===String(b):!1},_=lt.arrayEquals=function(R,b){if(R=R||[],b=b||[],R.length!==b.length)return!1;for(var w=0;w<R.length;w++)if(!N(R[w],b[w]))return!1;return!0};lt.isEqual=function(R,b){return Array.isArray(R)&&Array.isArray(b)?_(R,b):N(R,b)};var S=lt.isEmpty=function(R){if(R==null)return!0;if(typeof R=="boolean")return!1;if(typeof R=="number")return!R;if(R instanceof Error)return R.message==="";switch(Object.prototype.toString.call(R)){case"[object String]":case"[object Array]":return!R.length;case"[object File]":case"[object Map]":case"[object Set]":return!R.size;case"[object Object]":return!Object.keys(R).length}return!1};function M(T){var R=!1;return function(){for(var b=this,w=arguments.length,B=Array(w),z=0;z<w;z++)B[z]=arguments[z];R||(R=!0,window.requestAnimationFrame(function(F){T.apply(b,B),R=!1}))}}function P(T){return Array.isArray(T)?T:S(T)?[]:[T]}return lt.isMac=function(){return!i.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)},lt}var BO;function sY(){if(BO)return om;BO=1,om.__esModule=!0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};om.default=function(a){function s(c){for(var p=arguments.length,m=Array(p>1?p-1:0),g=1;g<p;g++)m[g-1]=arguments[g];return m.length===1&&e(m[0])==="object"&&(m=m[0]),(!m||!m.hasOwnProperty)&&(m={}),c.replace(i,function(y,O,E,N){var _=void 0;return c[N-1]==="{"&&c[N+y.length]==="}"?E:(_=(0,n.hasOwn)(m,E)?m[E]:null,_==null?"":_)})}return s};var n=Dr(),i=/(%|)\{([0-9a-zA-Z_]+)\}/g;return om}var OO;function Rx(){if(OO)return $r;OO=1,$r.__esModule=!0,$r.i18n=$r.use=$r.t=void 0;var e=aY(),n=g(e),i=Mi.default,a=g(i),s=oY(),c=g(s),p=sY(),m=g(p);function g(P){return P&&P.__esModule?P:{default:P}}var y=(0,m.default)(a.default),O=n.default,E=!1,N=function(){var T=Object.getPrototypeOf(this||a.default).$t;if(typeof T=="function"&&!!a.default.locale)return E||(E=!0,a.default.locale(a.default.config.lang,(0,c.default)(O,a.default.locale(a.default.config.lang)||{},{clone:!0}))),T.apply(this,arguments)},_=$r.t=function(T,R){var b=N.apply(this,arguments);if(b!=null)return b;for(var w=T.split("."),B=O,z=0,F=w.length;z<F;z++){var H=w[z];if(b=B[H],z===F-1)return y(b,R);if(!b)return"";B=b}return""},S=$r.use=function(T){O=T||O},M=$r.i18n=function(T){N=T||N};return $r.default={use:S,t:_,i18n:M},$r}var TO;function lY(){if(TO)return Ue;TO=1,Ue.__esModule=!0,Ue.validateRangeInOneMonth=Ue.extractTimeFormat=Ue.extractDateFormat=Ue.nextYear=Ue.prevYear=Ue.nextMonth=Ue.prevMonth=Ue.changeYearMonthAndClampDate=Ue.timeWithinRange=Ue.limitTimeRange=Ue.clearMilliseconds=Ue.clearTime=Ue.modifyWithTimeString=Ue.modifyTime=Ue.modifyDate=Ue.range=Ue.getRangeMinutes=Ue.getMonthDays=Ue.getPrevMonthLastDays=Ue.getRangeHours=Ue.getWeekNumber=Ue.getStartDateOfMonth=Ue.nextDate=Ue.prevDate=Ue.getFirstDayOfMonth=Ue.getDayCountOfYear=Ue.getDayCountOfMonth=Ue.parseDate=Ue.formatDate=Ue.isDateObject=Ue.isDate=Ue.toDate=Ue.getI18nSettings=void 0;var e=EO(),n=a(e),i=Rx();function a(b){return b&&b.__esModule?b:{default:b}}var s=["sun","mon","tue","wed","thu","fri","sat"],c=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],p=function(w,B){for(var z=[],F=w;F<=B;F++)z.push(F);return z},m=Ue.getI18nSettings=function(){return{dayNamesShort:s.map(function(w){return(0,i.t)("el.datepicker.weeks."+w)}),dayNames:s.map(function(w){return(0,i.t)("el.datepicker.weeks."+w)}),monthNamesShort:c.map(function(w){return(0,i.t)("el.datepicker.months."+w)}),monthNames:c.map(function(w,B){return(0,i.t)("el.datepicker.month"+(B+1))}),amPm:["am","pm"]}},g=Ue.toDate=function(w){return y(w)?new Date(w):null},y=Ue.isDate=function(w){return!(w==null||isNaN(new Date(w).getTime())||Array.isArray(w))};Ue.isDateObject=function(w){return w instanceof Date},Ue.formatDate=function(w,B){return w=g(w),w?n.default.format(w,B||"yyyy-MM-dd",m()):""};var O=Ue.parseDate=function(w,B){return n.default.parse(w,B||"yyyy-MM-dd",m())},E=Ue.getDayCountOfMonth=function(w,B){return isNaN(+B)?31:new Date(w,+B+1,0).getDate()};Ue.getDayCountOfYear=function(w){var B=w%400===0||w%100!==0&&w%4===0;return B?366:365},Ue.getFirstDayOfMonth=function(w){var B=new Date(w.getTime());return B.setDate(1),B.getDay()};var N=Ue.prevDate=function(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()-B)};Ue.nextDate=function(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()+B)},Ue.getStartDateOfMonth=function(w,B){var z=new Date(w,B,1),F=z.getDay();return F===0?N(z,7):N(z,F)},Ue.getWeekNumber=function(w){if(!y(w))return null;var B=new Date(w.getTime());B.setHours(0,0,0,0),B.setDate(B.getDate()+3-(B.getDay()+6)%7);var z=new Date(B.getFullYear(),0,4);return 1+Math.round(((B.getTime()-z.getTime())/864e5-3+(z.getDay()+6)%7)/7)},Ue.getRangeHours=function(w){var B=[],z=[];if((w||[]).forEach(function(ee){var ne=ee.map(function(se){return se.getHours()});z=z.concat(p(ne[0],ne[1]))}),z.length)for(var F=0;F<24;F++)B[F]=z.indexOf(F)===-1;else for(var H=0;H<24;H++)B[H]=!1;return B},Ue.getPrevMonthLastDays=function(w,B){if(B<=0)return[];var z=new Date(w.getTime());z.setDate(0);var F=z.getDate();return S(B).map(function(H,ee){return F-(B-ee-1)})},Ue.getMonthDays=function(w){var B=new Date(w.getFullYear(),w.getMonth()+1,0),z=B.getDate();return S(z).map(function(F,H){return H+1})};function _(b,w,B,z){for(var F=w;F<B;F++)b[F]=z}Ue.getRangeMinutes=function(w,B){var z=new Array(60);return w.length>0?w.forEach(function(F){var H=F[0],ee=F[1],ne=H.getHours(),se=H.getMinutes(),me=ee.getHours(),pe=ee.getMinutes();ne===B&&me!==B?_(z,se,60,!0):ne===B&&me===B?_(z,se,pe+1,!0):ne!==B&&me===B?_(z,0,pe+1,!0):ne<B&&me>B&&_(z,0,60,!0)}):_(z,0,60,!0),z};var S=Ue.range=function(w){return Array.apply(null,{length:w}).map(function(B,z){return z})},M=Ue.modifyDate=function(w,B,z,F){return new Date(B,z,F,w.getHours(),w.getMinutes(),w.getSeconds(),w.getMilliseconds())},P=Ue.modifyTime=function(w,B,z,F){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),B,z,F,w.getMilliseconds())};Ue.modifyWithTimeString=function(w,B){return w==null||!B?w:(B=O(B,"HH:mm:ss"),P(w,B.getHours(),B.getMinutes(),B.getSeconds()))},Ue.clearTime=function(w){return new Date(w.getFullYear(),w.getMonth(),w.getDate())},Ue.clearMilliseconds=function(w){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),w.getHours(),w.getMinutes(),w.getSeconds(),0)};var T=Ue.limitTimeRange=function(w,B){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(B.length===0)return w;var F=function(Se){return n.default.parse(n.default.format(Se,z),z)},H=F(w),ee=B.map(function(pe){return pe.map(F)});if(ee.some(function(pe){return H>=pe[0]&&H<=pe[1]}))return w;var ne=ee[0][0],se=ee[0][0];ee.forEach(function(pe){ne=new Date(Math.min(pe[0],ne)),se=new Date(Math.max(pe[1],ne))});var me=H<ne?ne:se;return M(me,w.getFullYear(),w.getMonth(),w.getDate())};Ue.timeWithinRange=function(w,B,z){var F=T(w,B,z);return F.getTime()===w.getTime()};var R=Ue.changeYearMonthAndClampDate=function(w,B,z){var F=Math.min(w.getDate(),E(B,z));return M(w,B,z,F)};return Ue.prevMonth=function(w){var B=w.getFullYear(),z=w.getMonth();return z===0?R(w,B-1,11):R(w,B,z-1)},Ue.nextMonth=function(w){var B=w.getFullYear(),z=w.getMonth();return z===11?R(w,B+1,0):R(w,B,z+1)},Ue.prevYear=function(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=w.getFullYear(),F=w.getMonth();return R(w,z-B,F)},Ue.nextYear=function(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=w.getFullYear(),F=w.getMonth();return R(w,z+B,F)},Ue.extractDateFormat=function(w){return w.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},Ue.extractTimeFormat=function(w){return w.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},Ue.validateRangeInOneMonth=function(w,B){return w.getMonth()===B.getMonth()&&w.getFullYear()===B.getFullYear()},Ue}var on={},NO;function Sa(){if(NO)return on;NO=1,on.__esModule=!0,on.isInContainer=on.getScrollContainer=on.isScroll=on.getStyle=on.once=on.off=on.on=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R};on.hasClass=N,on.addClass=_,on.removeClass=S,on.setStyle=P;var n=Mi.default,i=a(n);function a(R){return R&&R.__esModule?R:{default:R}}var s=i.default.prototype.$isServer,c=/([\:\-\_]+(.))/g,p=/^moz([A-Z])/,m=s?0:Number(document.documentMode),g=function(b){return(b||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},y=function(b){return b.replace(c,function(w,B,z,F){return F?z.toUpperCase():z}).replace(p,"Moz$1")},O=on.on=function(){return!s&&document.addEventListener?function(R,b,w){R&&b&&w&&R.addEventListener(b,w,!1)}:function(R,b,w){R&&b&&w&&R.attachEvent("on"+b,w)}}(),E=on.off=function(){return!s&&document.removeEventListener?function(R,b,w){R&&b&&R.removeEventListener(b,w,!1)}:function(R,b,w){R&&b&&R.detachEvent("on"+b,w)}}();on.once=function(b,w,B){var z=function F(){B&&B.apply(this,arguments),E(b,w,F)};O(b,w,z)};function N(R,b){if(!R||!b)return!1;if(b.indexOf(" ")!==-1)throw new Error("className should not contain space.");return R.classList?R.classList.contains(b):(" "+R.className+" ").indexOf(" "+b+" ")>-1}function _(R,b){if(!!R){for(var w=R.className,B=(b||"").split(" "),z=0,F=B.length;z<F;z++){var H=B[z];!H||(R.classList?R.classList.add(H):N(R,H)||(w+=" "+H))}R.classList||R.setAttribute("class",w)}}function S(R,b){if(!(!R||!b)){for(var w=b.split(" "),B=" "+R.className+" ",z=0,F=w.length;z<F;z++){var H=w[z];!H||(R.classList?R.classList.remove(H):N(R,H)&&(B=B.replace(" "+H+" "," ")))}R.classList||R.setAttribute("class",g(B))}}var M=on.getStyle=m<9?function(R,b){if(!s){if(!R||!b)return null;b=y(b),b==="float"&&(b="styleFloat");try{switch(b){case"opacity":try{return R.filters.item("alpha").opacity/100}catch{return 1}default:return R.style[b]||R.currentStyle?R.currentStyle[b]:null}}catch{return R.style[b]}}}:function(R,b){if(!s){if(!R||!b)return null;b=y(b),b==="float"&&(b="cssFloat");try{var w=document.defaultView.getComputedStyle(R,"");return R.style[b]||w?w[b]:null}catch{return R.style[b]}}};function P(R,b,w){if(!(!R||!b))if((typeof b>"u"?"undefined":e(b))==="object")for(var B in b)b.hasOwnProperty(B)&&P(R,B,b[B]);else b=y(b),b==="opacity"&&m<9?R.style.filter=isNaN(w)?"":"alpha(opacity="+w*100+")":R.style[b]=w}var T=on.isScroll=function(b,w){if(!s){var B=w!=null,z=B?w?M(b,"overflow-y"):M(b,"overflow-x"):M(b,"overflow");return z.match(/(scroll|auto|overlay)/)}};return on.getScrollContainer=function(b,w){if(!s){for(var B=b;B;){if([window,document,document.documentElement].includes(B))return window;if(T(B,w))return B;B=B.parentNode}return B}},on.isInContainer=function(b,w){if(s||!b||!w)return!1;var B=b.getBoundingClientRect(),z=void 0;return[window,document,document.documentElement,null,void 0].includes(w)?z={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:z=w.getBoundingClientRect(),B.top<z.bottom&&B.bottom>z.top&&B.right>z.left&&B.left<z.right},on}var sm={},MO;function Is(){if(MO)return sm;MO=1,sm.__esModule=!0;function e(n,i,a){this.$children.forEach(function(s){var c=s.$options.componentName;c===n?s.$emit.apply(s,[i].concat(a)):e.apply(s,[n,i].concat([a]))})}return sm.default={methods:{dispatch:function(i,a,s){for(var c=this.$parent||this.$root,p=c.$options.componentName;c&&(!p||p!==i);)c=c.$parent,c&&(p=c.$options.componentName);c&&c.$emit.apply(c,[a].concat(s))},broadcast:function(i,a,s){e.call(this,i,a,s)}}},sm}var lm={},FO;function jx(){if(FO)return lm;FO=1,lm.__esModule=!0;var e=Rx();return lm.default={methods:{t:function(){for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return e.t.apply(this,a)}}},lm}var cm={},dc={},um={},PO;function dm(){return PO||(PO=1,um.__esModule=!0,um.default=function(e){for(var n=1,i=arguments.length;n<i;n++){var a=arguments[n]||{};for(var s in a)if(a.hasOwnProperty(s)){var c=a[s];c!==void 0&&(e[s]=c)}}return e}),um}var fm={},RO;function cY(){if(RO)return fm;RO=1,fm.__esModule=!0;var e=Mi.default,n=a(e),i=Sa();function a(E){return E&&E.__esModule?E:{default:E}}var s=!1,c=!1,p=void 0,m=function(){if(!n.default.prototype.$isServer){var N=y.modalDom;return N?s=!0:(s=!1,N=document.createElement("div"),y.modalDom=N,N.addEventListener("touchmove",function(_){_.preventDefault(),_.stopPropagation()}),N.addEventListener("click",function(){y.doOnModalClick&&y.doOnModalClick()})),N}},g={},y={modalFade:!0,getInstance:function(N){return g[N]},register:function(N,_){N&&_&&(g[N]=_)},deregister:function(N){N&&(g[N]=null,delete g[N])},nextZIndex:function(){return y.zIndex++},modalStack:[],doOnModalClick:function(){var N=y.modalStack[y.modalStack.length-1];if(!!N){var _=y.getInstance(N.id);_&&_.closeOnClickModal&&_.close()}},openModal:function(N,_,S,M,P){if(!n.default.prototype.$isServer&&!(!N||_===void 0)){this.modalFade=P;for(var T=this.modalStack,R=0,b=T.length;R<b;R++){var w=T[R];if(w.id===N)return}var B=m();if((0,i.addClass)(B,"v-modal"),this.modalFade&&!s&&(0,i.addClass)(B,"v-modal-enter"),M){var z=M.trim().split(/\s+/);z.forEach(function(F){return(0,i.addClass)(B,F)})}setTimeout(function(){(0,i.removeClass)(B,"v-modal-enter")},200),S&&S.parentNode&&S.parentNode.nodeType!==11?S.parentNode.appendChild(B):document.body.appendChild(B),_&&(B.style.zIndex=_),B.tabIndex=0,B.style.display="",this.modalStack.push({id:N,zIndex:_,modalClass:M})}},closeModal:function(N){var _=this.modalStack,S=m();if(_.length>0){var M=_[_.length-1];if(M.id===N){if(M.modalClass){var P=M.modalClass.trim().split(/\s+/);P.forEach(function(R){return(0,i.removeClass)(S,R)})}_.pop(),_.length>0&&(S.style.zIndex=_[_.length-1].zIndex)}else for(var T=_.length-1;T>=0;T--)if(_[T].id===N){_.splice(T,1);break}}_.length===0&&(this.modalFade&&(0,i.addClass)(S,"v-modal-leave"),setTimeout(function(){_.length===0&&(S.parentNode&&S.parentNode.removeChild(S),S.style.display="none",y.modalDom=void 0),(0,i.removeClass)(S,"v-modal-leave")},200))}};Object.defineProperty(y,"zIndex",{configurable:!0,get:function(){return c||(p=p||(n.default.prototype.$ELEMENT||{}).zIndex||2e3,c=!0),p},set:function(N){p=N}});var O=function(){if(!n.default.prototype.$isServer&&y.modalStack.length>0){var N=y.modalStack[y.modalStack.length-1];if(!N)return;var _=y.getInstance(N.id);return _}};return n.default.prototype.$isServer||window.addEventListener("keydown",function(E){if(E.keyCode===27){var N=O();N&&N.closeOnPressEscape&&(N.handleClose?N.handleClose():N.handleAction?N.handleAction("cancel"):N.close())}}),fm.default=y,fm}var pm={},jO;function Lx(){if(jO)return pm;jO=1,pm.__esModule=!0,pm.default=function(){if(n.default.prototype.$isServer)return 0;if(a!==void 0)return a;var s=document.createElement("div");s.className="el-scrollbar__wrap",s.style.visibility="hidden",s.style.width="100px",s.style.position="absolute",s.style.top="-9999px",document.body.appendChild(s);var c=s.offsetWidth;s.style.overflow="scroll";var p=document.createElement("div");p.style.width="100%",s.appendChild(p);var m=p.offsetWidth;return s.parentNode.removeChild(s),a=c-m,a};var e=Mi.default,n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}var a=void 0;return pm}var LO;function QO(){if(LO)return dc;LO=1,dc.__esModule=!0,dc.PopupManager=void 0;var e=Mi.default,n=y(e),i=dm(),a=y(i),s=cY(),c=y(s),p=Lx(),m=y(p),g=Sa();function y(N){return N&&N.__esModule?N:{default:N}}var O=1,E=void 0;return dc.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+O++,c.default.register(this._popupId,this)},beforeDestroy:function(){c.default.deregister(this._popupId),c.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(_){var S=this;if(_){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,n.default.nextTick(function(){S.open()}))}else this.close()}},methods:{open:function(_){var S=this;this.rendered||(this.rendered=!0);var M=(0,a.default)({},this.$props||this,_);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var P=Number(M.openDelay);P>0?this._openTimer=setTimeout(function(){S._openTimer=null,S.doOpen(M)},P):this.doOpen(M)},doOpen:function(_){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var S=this.$el,M=_.modal,P=_.zIndex;if(P&&(c.default.zIndex=P),M&&(this._closing&&(c.default.closeModal(this._popupId),this._closing=!1),c.default.openModal(this._popupId,c.default.nextZIndex(),this.modalAppendToBody?void 0:S,_.modalClass,_.modalFade),_.lockScroll)){this.withoutHiddenClass=!(0,g.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,g.getStyle)(document.body,"paddingRight"),10)),E=(0,m.default)();var T=document.documentElement.clientHeight<document.body.scrollHeight,R=(0,g.getStyle)(document.body,"overflowY");E>0&&(T||R==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+E+"px"),(0,g.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(S).position==="static"&&(S.style.position="absolute"),S.style.zIndex=c.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var _=this;if(!(this.willClose&&!this.willClose())){this._openTimer!==null&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var S=Number(this.closeDelay);S>0?this._closeTimer=setTimeout(function(){_._closeTimer=null,_.doClose()},S):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){c.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,g.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},dc.PopupManager=c.default,dc}var Qx={exports:{}},zO;function uY(){return zO||(zO=1,function(e){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};(function(i,a){n(e)==="object"&&e.exports?e.exports=a():i.Popper=a()})(void 0,function(){var i=window,a={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function s(b,w,B){this._reference=b.jquery?b[0]:b,this.state={};var z=typeof w>"u"||w===null,F=w&&Object.prototype.toString.call(w)==="[object Object]";return z||F?this._popper=this.parse(F?w:{}):this._popper=w.jquery?w[0]:w,this._options=Object.assign({},a,B),this._options.modifiers=this._options.modifiers.map(function(H){if(this._options.modifiersIgnored.indexOf(H)===-1)return H==="applyStyle"&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[H]||H}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),_(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}s.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[R("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},s.prototype.update=function(){var b={instance:this,styles:{}};b.placement=this._options.placement,b._originalPlacement=this._options.placement,b.offsets=this._getOffsets(this._popper,this._reference,b.placement),b.boundaries=this._getBoundaries(b,this._options.boundariesPadding,this._options.boundariesElement),b=this.runModifiers(b,this._options.modifiers),typeof this.state.updateCallback=="function"&&this.state.updateCallback(b)},s.prototype.onCreate=function(b){return b(this),this},s.prototype.onUpdate=function(b){return this.state.updateCallback=b,this},s.prototype.parse=function(b){var w={tagName:"div",classNames:["popper"],attributes:[],parent:i.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};b=Object.assign({},w,b);var B=i.document,z=B.createElement(b.tagName);if(ee(z,b.classNames),ne(z,b.attributes),b.contentType==="node"?z.appendChild(b.content.jquery?b.content[0]:b.content):b.contentType==="html"?z.innerHTML=b.content:z.textContent=b.content,b.arrowTagName){var F=B.createElement(b.arrowTagName);ee(F,b.arrowClassNames),ne(F,b.arrowAttributes),z.appendChild(F)}var H=b.parent.jquery?b.parent[0]:b.parent;if(typeof H=="string"){if(H=B.querySelectorAll(b.parent),H.length>1&&console.warn("WARNING: the given `parent` query("+b.parent+") matched more than one element, the first one will be used"),H.length===0)throw"ERROR: the given `parent` doesn't exists!";H=H[0]}return H.length>1&&!(H instanceof Element)&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),H=H[0]),H.appendChild(z),z;function ee(se,me){me.forEach(function(pe){se.classList.add(pe)})}function ne(se,me){me.forEach(function(pe){se.setAttribute(pe.split(":")[0],pe.split(":")[1]||"")})}},s.prototype._getPosition=function(b,w){if(O(w),this._options.forceAbsolute)return"absolute";var B=N(w);return B?"fixed":"absolute"},s.prototype._getOffsets=function(b,w,B){B=B.split("-")[0];var z={};z.position=this.state.position;var F=z.position==="fixed",H=T(w,O(b),F),ee=c(b);return["right","left"].indexOf(B)!==-1?(z.top=H.top+H.height/2-ee.height/2,B==="left"?z.left=H.left-ee.width:z.left=H.right):(z.left=H.left+H.width/2-ee.width/2,B==="top"?z.top=H.top-ee.height:z.top=H.bottom),z.width=ee.width,z.height=ee.height,{popper:z,reference:H}},s.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),i.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var b=E(this._reference);(b===i.document.body||b===i.document.documentElement)&&(b=i),b.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=b}},s.prototype._removeEventListeners=function(){i.removeEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},s.prototype._getBoundaries=function(b,w,B){var z={},F,H;if(B==="window"){var ee=i.document.body,ne=i.document.documentElement;H=Math.max(ee.scrollHeight,ee.offsetHeight,ne.clientHeight,ne.scrollHeight,ne.offsetHeight),F=Math.max(ee.scrollWidth,ee.offsetWidth,ne.clientWidth,ne.scrollWidth,ne.offsetWidth),z={top:0,right:F,bottom:H,left:0}}else if(B==="viewport"){var se=O(this._popper),me=E(this._popper),pe=M(se),Se=function(re){return re==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):re.scrollTop},ye=function(re){return re==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):re.scrollLeft},_e=b.offsets.popper.position==="fixed"?0:Se(me),W=b.offsets.popper.position==="fixed"?0:ye(me);z={top:0-(pe.top-_e),right:i.document.documentElement.clientWidth-(pe.left-W),bottom:i.document.documentElement.clientHeight-(pe.top-_e),left:0-(pe.left-W)}}else O(this._popper)===B?z={top:0,left:0,right:B.clientWidth,bottom:B.clientHeight}:z=M(B);return z.left+=w,z.right-=w,z.top=z.top+w,z.bottom=z.bottom-w,z},s.prototype.runModifiers=function(b,w,B){var z=w.slice();return B!==void 0&&(z=this._options.modifiers.slice(0,g(this._options.modifiers,B))),z.forEach(function(F){S(F)&&(b=F.call(this,b))}.bind(this)),b},s.prototype.isModifierRequired=function(b,w){var B=g(this._options.modifiers,b);return!!this._options.modifiers.slice(0,B).filter(function(z){return z===w}).length},s.prototype.modifiers={},s.prototype.modifiers.applyStyle=function(b){var w={position:b.offsets.popper.position},B=Math.round(b.offsets.popper.left),z=Math.round(b.offsets.popper.top),F;return this._options.gpuAcceleration&&(F=R("transform"))?(w[F]="translate3d("+B+"px, "+z+"px, 0)",w.top=0,w.left=0):(w.left=B,w.top=z),Object.assign(w,b.styles),_(this._popper,w),this._popper.setAttribute("x-placement",b.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&b.offsets.arrow&&_(b.arrowElement,b.offsets.arrow),b},s.prototype.modifiers.shift=function(b){var w=b.placement,B=w.split("-")[0],z=w.split("-")[1];if(z){var F=b.offsets.reference,H=m(b.offsets.popper),ee={y:{start:{top:F.top},end:{top:F.top+F.height-H.height}},x:{start:{left:F.left},end:{left:F.left+F.width-H.width}}},ne=["bottom","top"].indexOf(B)!==-1?"x":"y";b.offsets.popper=Object.assign(H,ee[ne][z])}return b},s.prototype.modifiers.preventOverflow=function(b){var w=this._options.preventOverflowOrder,B=m(b.offsets.popper),z={left:function(){var H=B.left;return B.left<b.boundaries.left&&(H=Math.max(B.left,b.boundaries.left)),{left:H}},right:function(){var H=B.left;return B.right>b.boundaries.right&&(H=Math.min(B.left,b.boundaries.right-B.width)),{left:H}},top:function(){var H=B.top;return B.top<b.boundaries.top&&(H=Math.max(B.top,b.boundaries.top)),{top:H}},bottom:function(){var H=B.top;return B.bottom>b.boundaries.bottom&&(H=Math.min(B.top,b.boundaries.bottom-B.height)),{top:H}}};return w.forEach(function(F){b.offsets.popper=Object.assign(B,z[F]())}),b},s.prototype.modifiers.keepTogether=function(b){var w=m(b.offsets.popper),B=b.offsets.reference,z=Math.floor;return w.right<z(B.left)&&(b.offsets.popper.left=z(B.left)-w.width),w.left>z(B.right)&&(b.offsets.popper.left=z(B.right)),w.bottom<z(B.top)&&(b.offsets.popper.top=z(B.top)-w.height),w.top>z(B.bottom)&&(b.offsets.popper.top=z(B.bottom)),b},s.prototype.modifiers.flip=function(b){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),b;if(b.flipped&&b.placement===b._originalPlacement)return b;var w=b.placement.split("-")[0],B=p(w),z=b.placement.split("-")[1]||"",F=[];return this._options.flipBehavior==="flip"?F=[w,B]:F=this._options.flipBehavior,F.forEach(function(H,ee){if(!(w!==H||F.length===ee+1)){w=b.placement.split("-")[0],B=p(w);var ne=m(b.offsets.popper),se=["right","bottom"].indexOf(w)!==-1;(se&&Math.floor(b.offsets.reference[w])>Math.floor(ne[B])||!se&&Math.floor(b.offsets.reference[w])<Math.floor(ne[B]))&&(b.flipped=!0,b.placement=F[ee+1],z&&(b.placement+="-"+z),b.offsets.popper=this._getOffsets(this._popper,this._reference,b.placement).popper,b=this.runModifiers(b,this._options.modifiers,this._flip))}}.bind(this)),b},s.prototype.modifiers.offset=function(b){var w=this._options.offset,B=b.offsets.popper;return b.placement.indexOf("left")!==-1?B.top-=w:b.placement.indexOf("right")!==-1?B.top+=w:b.placement.indexOf("top")!==-1?B.left-=w:b.placement.indexOf("bottom")!==-1&&(B.left+=w),b},s.prototype.modifiers.arrow=function(b){var w=this._options.arrowElement,B=this._options.arrowOffset;if(typeof w=="string"&&(w=this._popper.querySelector(w)),!w)return b;if(!this._popper.contains(w))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),b;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),b;var z={},F=b.placement.split("-")[0],H=m(b.offsets.popper),ee=b.offsets.reference,ne=["left","right"].indexOf(F)!==-1,se=ne?"height":"width",me=ne?"top":"left",pe=ne?"left":"top",Se=ne?"bottom":"right",ye=c(w)[se];ee[Se]-ye<H[me]&&(b.offsets.popper[me]-=H[me]-(ee[Se]-ye)),ee[me]+ye>H[Se]&&(b.offsets.popper[me]+=ee[me]+ye-H[Se]);var _e=ee[me]+(B||ee[se]/2-ye/2),W=_e-H[me];return W=Math.max(Math.min(H[se]-ye-8,W),8),z[me]=W,z[pe]="",b.offsets.arrow=z,b.arrowElement=w,b};function c(b){var w=b.style.display,B=b.style.visibility;b.style.display="block",b.style.visibility="hidden",b.offsetWidth;var z=i.getComputedStyle(b),F=parseFloat(z.marginTop)+parseFloat(z.marginBottom),H=parseFloat(z.marginLeft)+parseFloat(z.marginRight),ee={width:b.offsetWidth+H,height:b.offsetHeight+F};return b.style.display=w,b.style.visibility=B,ee}function p(b){var w={left:"right",right:"left",bottom:"top",top:"bottom"};return b.replace(/left|right|bottom|top/g,function(B){return w[B]})}function m(b){var w=Object.assign({},b);return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function g(b,w){var B=0,z;for(z in b){if(b[z]===w)return B;B++}return null}function y(b,w){var B=i.getComputedStyle(b,null);return B[w]}function O(b){var w=b.offsetParent;return w===i.document.body||!w?i.document.documentElement:w}function E(b){var w=b.parentNode;return w?w===i.document?i.document.body.scrollTop||i.document.body.scrollLeft?i.document.body:i.document.documentElement:["scroll","auto"].indexOf(y(w,"overflow"))!==-1||["scroll","auto"].indexOf(y(w,"overflow-x"))!==-1||["scroll","auto"].indexOf(y(w,"overflow-y"))!==-1?w:E(b.parentNode):b}function N(b){return b===i.document.body?!1:y(b,"position")==="fixed"?!0:b.parentNode?N(b.parentNode):b}function _(b,w){function B(z){return z!==""&&!isNaN(parseFloat(z))&&isFinite(z)}Object.keys(w).forEach(function(z){var F="";["width","height","top","right","bottom","left"].indexOf(z)!==-1&&B(w[z])&&(F="px"),b.style[z]=w[z]+F})}function S(b){var w={};return b&&w.toString.call(b)==="[object Function]"}function M(b){var w={width:b.offsetWidth,height:b.offsetHeight,left:b.offsetLeft,top:b.offsetTop};return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function P(b){var w=b.getBoundingClientRect(),B=navigator.userAgent.indexOf("MSIE")!=-1,z=B&&b.tagName==="HTML"?-b.scrollTop:w.top;return{left:w.left,top:z,right:w.right,bottom:w.bottom,width:w.right-w.left,height:w.bottom-z}}function T(b,w,B){var z=P(b),F=P(w);if(B){var H=E(w);F.top+=H.scrollTop,F.bottom+=H.scrollTop,F.left+=H.scrollLeft,F.right+=H.scrollLeft}var ee={top:z.top-F.top,left:z.left-F.left,bottom:z.top-F.top+z.height,right:z.left-F.left+z.width,width:z.width,height:z.height};return ee}function R(b){for(var w=["","ms","webkit","moz","o"],B=0;B<w.length;B++){var z=w[B]?w[B]+b.charAt(0).toUpperCase()+b.slice(1):b;if(typeof i.document.body.style[z]<"u")return z}return null}return Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(w){if(w==null)throw new TypeError("Cannot convert first argument to object");for(var B=Object(w),z=1;z<arguments.length;z++){var F=arguments[z];if(F!=null){F=Object(F);for(var H=Object.keys(F),ee=0,ne=H.length;ee<ne;ee++){var se=H[ee],me=Object.getOwnPropertyDescriptor(F,se);me!==void 0&&me.enumerable&&(B[se]=F[se])}}}return B}}),s})}(Qx)),Qx.exports}var HO;function hm(){if(HO)return cm;HO=1,cm.__esModule=!0;var e=Mi.default,n=a(e),i=QO();function a(p){return p&&p.__esModule?p:{default:p}}var s=n.default.prototype.$isServer?function(){}:uY(),c=function(m){return m.stopPropagation()};return cm.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(m){this.showPopper=m,this.$emit("input",m)}},showPopper:function(m){this.disabled||(m?this.updatePopper():this.destroyPopper(),this.$emit("input",m))}},methods:{createPopper:function(){var m=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,!!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var g=this.popperOptions,y=this.popperElm=this.popperElm||this.popper||this.$refs.popper,O=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!O&&this.$slots.reference&&this.$slots.reference[0]&&(O=this.referenceElm=this.$slots.reference[0].elm),!(!y||!O)&&(this.visibleArrow&&this.appendArrow(y),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),g.placement=this.currentPlacement,g.offset=this.offset,g.arrowOffset=this.arrowOffset,this.popperJS=new s(O,y,g),this.popperJS.onCreate(function(E){m.$emit("created",m),m.resetTransformOrigin(),m.$nextTick(m.updatePopper)}),typeof g.onUpdate=="function"&&this.popperJS.onUpdate(g.onUpdate),this.popperJS._popper.style.zIndex=i.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",c))}},updatePopper:function(){var m=this.popperJS;m?(m.update(),m._popper&&(m._popper.style.zIndex=i.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(m){!this.popperJS||this.showPopper&&!m||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(!!this.transformOrigin){var m={top:"bottom",bottom:"top",left:"right",right:"left"},g=this.popperJS._popper.getAttribute("x-placement").split("-")[0],y=m[g];this.popperJS._popper.style.transformOrigin=typeof this.transformOrigin=="string"?this.transformOrigin:["top","bottom"].indexOf(g)>-1?"center "+y:y+" center"}},appendArrow:function(m){var g=void 0;if(!this.appended){this.appended=!0;for(var y in m.attributes)if(/^_v-/.test(m.attributes[y].name)){g=m.attributes[y].name;break}var O=document.createElement("div");g&&O.setAttribute(g,""),O.setAttribute("x-arrow",""),O.className="popper__arrow",m.appendChild(O)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",c),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}},cm}var zx={exports:{}},mm={},VO;function UO(){if(VO)return mm;VO=1,mm.__esModule=!0;var e=Dr();return mm.default={mounted:function(){if(process.env.NODE_ENV!=="production"&&!!this.$vnode){var i=this.getMigratingConfig(),a=i.props,s=a===void 0?{}:a,c=i.events,p=c===void 0?{}:c,m=this.$vnode,g=m.data,y=m.componentOptions,O=g.attrs||{},E=y.listeners||{};for(var N in O)N=(0,e.kebabCase)(N),s[N]&&console.warn("[Element Migrating]["+this.$options.name+"][Attribute]: "+s[N]);for(var _ in E)_=(0,e.kebabCase)(_),p[_]&&console.warn("[Element Migrating]["+this.$options.name+"][Event]: "+p[_])}},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}},mm}var Bd={},YO;function gm(){if(YO)return Bd;YO=1,Bd.__esModule=!0,Bd.isDef=e,Bd.isKorean=n;function e(i){return i!=null}function n(i){var a=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return a.test(i)}return Bd}var WO;function Hx(){return WO||(WO=1,function(e){e.exports=function(n){var i={};function a(s){if(i[s])return i[s].exports;var c=i[s]={i:s,l:!1,exports:{}};return n[s].call(c.exports,c,c.exports,a),c.l=!0,c.exports}return a.m=n,a.c=i,a.d=function(s,c,p){a.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:p})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,c){if(c&1&&(s=a(s)),c&8||c&4&&typeof s=="object"&&s&&s.__esModule)return s;var p=Object.create(null);if(a.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var m in s)a.d(p,m,function(g){return s[g]}.bind(null,m));return p},a.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(c,"a",c),c},a.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},a.p="/dist/",a(a.s=75)}({0:function(n,i,a){a.d(i,"a",function(){return s});function s(c,p,m,g,y,O,E,N){var _=typeof c=="function"?c.options:c;p&&(_.render=p,_.staticRenderFns=m,_._compiled=!0),g&&(_.functional=!0),O&&(_._scopeId="data-v-"+O);var S;if(E?(S=function(T){T=T||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!T&&typeof __VUE_SSR_CONTEXT__<"u"&&(T=__VUE_SSR_CONTEXT__),y&&y.call(this,T),T&&T._registeredComponents&&T._registeredComponents.add(E)},_._ssrRegister=S):y&&(S=N?function(){y.call(this,this.$root.$options.shadowRoot)}:y),S)if(_.functional){_._injectStyles=S;var M=_.render;_.render=function(R,b){return S.call(b),M(R,b)}}else{var P=_.beforeCreate;_.beforeCreate=P?[].concat(P,S):[S]}return{exports:c,options:_}}},11:function(n,i){n.exports=UO()},21:function(n,i){n.exports=gm()},4:function(n,i){n.exports=Is()},75:function(n,i,a){a.r(i);var s=function(){var F=this,H=F.$createElement,ee=F._self._c||H;return ee("div",{class:[F.type==="textarea"?"el-textarea":"el-input",F.inputSize?"el-input--"+F.inputSize:"",{"is-disabled":F.inputDisabled,"is-exceed":F.inputExceed,"el-input-group":F.$slots.prepend||F.$slots.append,"el-input-group--append":F.$slots.append,"el-input-group--prepend":F.$slots.prepend,"el-input--prefix":F.$slots.prefix||F.prefixIcon,"el-input--suffix":F.$slots.suffix||F.suffixIcon||F.clearable||F.showPassword}],on:{mouseenter:function(ne){F.hovering=!0},mouseleave:function(ne){F.hovering=!1}}},[F.type!=="textarea"?[F.$slots.prepend?ee("div",{staticClass:"el-input-group__prepend"},[F._t("prepend")],2):F._e(),F.type!=="textarea"?ee("input",F._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:F.tabindex,type:F.showPassword?F.passwordVisible?"text":"password":F.type,disabled:F.inputDisabled,readonly:F.readonly,autocomplete:F.autoComplete||F.autocomplete,"aria-label":F.label},on:{compositionstart:F.handleCompositionStart,compositionupdate:F.handleCompositionUpdate,compositionend:F.handleCompositionEnd,input:F.handleInput,focus:F.handleFocus,blur:F.handleBlur,change:F.handleChange}},"input",F.$attrs,!1)):F._e(),F.$slots.prefix||F.prefixIcon?ee("span",{staticClass:"el-input__prefix"},[F._t("prefix"),F.prefixIcon?ee("i",{staticClass:"el-input__icon",class:F.prefixIcon}):F._e()],2):F._e(),F.getSuffixVisible()?ee("span",{staticClass:"el-input__suffix"},[ee("span",{staticClass:"el-input__suffix-inner"},[!F.showClear||!F.showPwdVisible||!F.isWordLimitVisible?[F._t("suffix"),F.suffixIcon?ee("i",{staticClass:"el-input__icon",class:F.suffixIcon}):F._e()]:F._e(),F.showClear?ee("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(ne){ne.preventDefault()},click:F.clear}}):F._e(),F.showPwdVisible?ee("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:F.handlePasswordVisible}}):F._e(),F.isWordLimitVisible?ee("span",{staticClass:"el-input__count"},[ee("span",{staticClass:"el-input__count-inner"},[F._v(`
42
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+g.width+'" height="'+g.height+'" viewBox="'+g.x+" "+g.y+" "+g.width+" "+g.height+'" version="1.1">'+m+p+"</svg>"}catch(a){i=a}if(this._emit("saveSVG.done",{error:i,svg:n}),i)throw i;return{svg:n}},en.prototype._setDefinitions=function(e){this._definitions=e},en.prototype.getModules=function(){return this._modules},en.prototype.clear=function(){!this.getDefinitions()||lo.prototype.clear.call(this)},en.prototype.destroy=function(){lo.prototype.destroy.call(this),nc(this._container)},en.prototype.on=function(e,n,i,a){return this.get("eventBus").on(e,n,i,a)},en.prototype.off=function(e,n){this.get("eventBus").off(e,n)},en.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=xa(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},en.prototype.getDefinitions=function(){return this._definitions},en.prototype.detach=function(){const e=this._container,n=e.parentNode;!n||(this._emit("detach",{}),n.removeChild(e))},en.prototype._init=function(e,n,i){const a=i.modules||this.getModules(i),s=i.additionalModules||[],c=[{bpmnjs:["value",this],moddle:["value",n]}],p=[].concat(c,a,s),m=Je(j8(i,["additionalModules"]),{canvas:Je({},i.canvas,{container:e}),modules:p});lo.call(this,m),i&&i.container&&this.attachTo(i.container)},en.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},en.prototype._createContainer=function(e){const n=Li('<div class="bjs-container"></div>');return Tn(n,{width:sO(e.width),height:sO(e.height),position:e.position}),n},en.prototype._createModdle=function(e){const n=Je({},this._moddleExtensions,e.moddleExtensions);return new VV(n)},en.prototype._modules=[];function rm(e,n){return e.warnings=n,e}function rU(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const aU={width:"100%",height:"100%",position:"relative"};function sO(e){return e+(no(e)?"px":"")}function oU(e,n){return n&&Sr(e.diagrams,function(i){return i.id===n})||null}function sU(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+rO+"</a>",a=Li(i);Tn(xa("svg",a),aO),Tn(a,oO,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(a),xs.bind(a,"click",function(s){iU(),s.preventDefault()})}function uc(e){en.call(this,e)}Gr(uc,en),uc.prototype._modules=[_7,L7,c2,Y7,i2],uc.prototype._moddleExtensions={};var lU=/^djs-cursor-.*$/;function lO(e){var n=ys(document.body);n.removeMatching(lU),e&&n.add("djs-cursor-"+e)}function cU(){lO(null)}var uU=5e3;function dU(e,n){n=n||"element.click";function i(){return!1}return e.once(n,uU,i),function(){e.off(n,i)}}function cO(e,n){return{x:e.x-n.x,y:e.y-n.y}}var fU=15;function uO(e,n){var i;function a(m){return p(m.originalEvent)}e.on("canvas.focus.changed",function(m){m.focused?e.on("element.mousedown",500,a):e.off("element.mousedown",a)});function s(m){var g=i.start,y=i.button,O=g2(m),E=cO(O,g);if(!i.dragging&&pU(E)>fU&&(i.dragging=!0,y===0&&dU(e),lO("grab")),i.dragging){var N=i.last||i.start;E=cO(O,N),n.scroll({dx:E.x,dy:E.y}),i.last=O}m.preventDefault()}function c(m){xs.unbind(document,"mousemove",s),xs.unbind(document,"mouseup",c),i=null,cU()}function p(m){if(!XB(m.target,".djs-draggable")){var g=m.button;if(!(g>=2||m.ctrlKey||m.shiftKey||m.altKey))return i={button:g,start:g2(m)},xs.bind(document,"mousemove",s),xs.bind(document,"mouseup",c),!0}}this.isActive=function(){return!!i}}uO.$inject=["eventBus","canvas"];function pU(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Id={__init__:["moveCanvas"],moveCanvas:["type",uO]};var hU=new px("tt");function mU(e){var n=Li('<div class="djs-tooltip-container" />');return Tn(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function gU(e,n,i){Tn(e,{left:n+"px",top:i+"px"})}function Ox(e,n){e.style.display=n===!1?"none":""}var dO="djs-tooltip",Tx="."+dO;function ei(e,n){this._eventBus=e,this._canvas=n,this._ids=hU,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=mU(n.getContainer());var i=this;tc.bind(this._tooltipRoot,Tx,"mousedown",function(a){a.stopPropagation()}),tc.bind(this._tooltipRoot,Tx,"mouseover",function(a){i.trigger("mouseover",a)}),tc.bind(this._tooltipRoot,Tx,"mouseout",function(a){i.trigger("mouseout",a)}),this._init()}ei.$inject=["eventBus","canvas"],ei.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var n=this._ids.next();return e=Je({},this._tooltipDefaults,e,{id:n}),this._addTooltip(e),e.timeout&&this.setTimeout(e),n},ei.prototype.trigger=function(e,n){var i=n.delegateTarget||n.target,a=this.get(sx(i,"data-tooltip-id"));!a||(e==="mouseover"&&a.timeout&&this.clearTimeout(a),e==="mouseout"&&a.timeout&&(a.timeout=1e3,this.setTimeout(a)))},ei.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},ei.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},ei.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var n=this;e.removeTimer=setTimeout(function(){n.remove(e)},e.timeout)}},ei.prototype.remove=function(e){var n=this.get(e);n&&(nc(n.html),nc(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},ei.prototype.show=function(){Ox(this._tooltipRoot)},ei.prototype.hide=function(){Ox(this._tooltipRoot,!1)},ei.prototype._updateRoot=function(e){var n=e.scale||1,i=e.scale||1,a="matrix("+n+",0,0,"+i+","+-1*e.x*n+","+-1*e.y*i+")";this._tooltipRoot.style.transform=a,this._tooltipRoot.style["-ms-transform"]=a},ei.prototype._addTooltip=function(e){var n=e.id,i=e.html,a,s=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Cr(i)&&(i=Li(i)),a=Li('<div data-tooltip-id="'+n+'" class="'+dO+'">'),Tn(a,{position:"absolute"}),a.appendChild(i),e.type&&ys(a).add("djs-tooltip-"+e.type),e.className&&ys(a).add(e.className),e.htmlContainer=a,s.appendChild(a),this._tooltips[n]=e,this._updateTooltip(e)},ei.prototype._updateTooltip=function(e){var n=e.position,i=e.htmlContainer;gU(i,n.x,n.y)},ei.prototype._updateTooltipVisibilty=function(e){We(this._tooltips,function(n){var i=n.show,a=n.htmlContainer,s=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(s=!1),Ox(a,s))})},ei.prototype._init=function(){var e=this;function n(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){n(i.viewbox)})};const Nx={__init__:["tooltips"],tooltips:["type",ei]};var AU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-card",{class:(e.item||{}).endTime?"":"cur-process"},[i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(e.item.assigneeName||(e.item.comments&&e.item.comments.length>0?e.item.comments[e.item.comments.length-1].userId:"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(e.item.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),i("span",{staticClass:"flow-node"},[e._v(e._s(e.item.historyActivityType=="endEvent"?"\u7ED3\u675F":e.item.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),e.item.historyActivityDurationTime?i("p",{staticClass:"flow-time"},[e._v(" \u4EFB\u52A1\u5386\u65F6 "+e._s(e.item.historyActivityDurationTime)+" ")]):e._e(),e.item.comments&&e.item.comments.length>0?[e._l(e.item.comments.filter(function(a){return a.action==="AddComment"}),function(a,s){return i("p",{key:s},[s<1?[i("span",{class:["comment-type",e.item.class]},[e._v(e._s(e.commentMap[a.type]||a.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(a.userId))]),e._v(": "),i("span",[e._v(" "+e._s(a.fullMessage)+" ")]),e.item.comments.filter(function(c){return c.action==="AddComment"}).length>1?i("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),i("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),i("el-icon",[e.isFlag?i("el-icon-arrow-up"):i("el-icon-arrow-down")],1)],1):e._e(),a.time&&e.isFlag?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(a.time))]):e._e()]:e._e(),s>0&&e.isFlag?[i("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[a.type]||a.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(a.userId))]),e._v(": "),i("span",[e._v(" "+e._s(a.fullMessage)+" ")]),a.time?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(a.time))]):e._e()]:e._e()],2)}),e.item.attachmentsQianzi&&e.item.attachmentsQianzi.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u7B7E\u5B57: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:e.item.attachmentsQianzi,callback:function(a){e.$set(e.item,"attachmentsQianzi",a)},expression:"item.attachmentsQianzi"}})],1)])]:e._e(),e.item.attachmentsFujian&&e.item.attachmentsFujian.length>0?[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v("\u9644\u4EF6: ")]),i("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[i("jyr-file-upload",{ref:"fileUpload",attrs:{locked:"",fullFileObject:"",showFileName:""},model:{value:e.item.attachmentsFujian,callback:function(a){e.$set(e.item,"attachmentsFujian",a)},expression:"item.attachmentsFujian"}})],1)])]:e._e()]:e._e(),e.item.endTime?i("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(e.item.endTime))]):e._e()],2)},vU=[];const RZ="",bU={name:"nf-flow",props:{item:{type:Object,default:()=>({})},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ky,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",skipComment:"\u8DF3\u8FC7",cancelProcessComment:"\u62D2\u7EDD",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},fO={};var _U=qt(bU,AU,vU,!1,yU,"1c539cd3",null,null);function yU(e){for(let n in fO)this[n]=fO[n]}const xU=function(){return _U.exports}();var wU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"bpmnnd-box"},[i("el-drawer",{attrs:{"append-to":".bpmn-look","append-to-body":!1,title:"I am the title","with-header":!1,"z-index":"1",size:"360px"},model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[i("div",{staticClass:"bpmnd-detail"},[i("div",{staticClass:"bpmnd-top"},[e._v(" "+e._s(e.curName||"\u8282\u70B9\u540D\u79F0")+" ")]),i("div",{staticClass:"bpmnd-body"},e._l(e.getColors(e.curData),function(a){return i("div",{staticClass:"bpmnd-cur"},[i("processFlowItem",{attrs:{flowList:e.curData,item:a}})],1)}),0)])])],1)},EU=[];const jZ="",kU={components:{processFlowItem:xU},data(){return{getColors:Ky,visible:!1,curData:[],curName:"",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u6307\u5B9A\u56DE\u9000\u6D41\u7A0B",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},watch:{visible(e){e||this.$emit("close")}},methods:{openDrawer(e,n){let i=n.filter(a=>a.historyActivityType=="userTask");this.curData=i.filter(a=>a.historyActivityId==e.id).reverse(),this.curData,this.curName=this.curData.length?this.curData[0].historyActivityName:"",this.visible=!!(this.curData&&this.curData.length>0)},closeDrawer(){this.visible=!1}}},pO={};var CU=qt(kU,wU,EU,!1,SU,"01478349",null,null);function SU(e){for(let n in pO)this[n]=pO[n]}const DU=function(){return CU.exports}();var IU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{ref:"container",staticClass:"bpmn-look",on:{wheel:e.handleWheel}},[i("bpmnNodeDetail",{ref:"bpmnNodeDetailRef",on:{close:e.closeDetail}})],1)},BU=[];const LZ="",OU={name:"bpmn-look",components:{bpmnNodeDetail:DU},props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{drawer:!1,scale:1,viewer:null,loading:!0}},mounted(){this.initViewer(),this.$refs.container&&this.$refs.container.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){e.length;let n=e;n&&this.isXml&&this.loadXml(n)},immediate:!0}},methods:{handleWheel(e){if(this.drawer)return;e.preventDefault();const n=Math.sign(e.deltaY)*.1;this.scale=Math.max(.5,Math.min(this.scale-n,3)),this.viewer&&this.viewer.get("canvas").zoom(this.scale)},async getXml(e){this.isXml;let n={},i="";try{n=await api.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(i=n.data)}catch(a){console.error(a)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(uc)=="[object Function]"?uc:uc.default,n=Object.prototype.toString.call(Nx)=="[object Object]"?Nx:Nx.default,i=Object.prototype.toString.call(Id)=="[object Object]"?Id:Id.default;Object.prototype.toString.call(Id),this.viewer=new e({container:this.$refs.container,additionalModules:[n,i]}),this.viewer.on("import.done",({error:a})=>{a||(this.canvasResize(),this.addApprovalData())}),this.viewer.on("element.click",a=>{a.type,a.element,a&&a.element&&(a.element.type||"").includes("UserTask")&&(this.drawer=!0,this.$refs.bpmnNodeDetailRef.openDrawer(a.element,this.approvalData))})},closeDetail(){this.drawer,this.drawer=!1},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},setNodeColor(e){const n=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),a=this.viewer.get("tooltips");e.forEach(s=>{if(s.id&&s.class&&n.addMarker(s.id,s.class),s.id&&s.tooltip){const c=i.get(s.id);if(c){let{x:p,y:m,type:g}=c;["bpmn:StartEvent","bpmn:EndEvent"].includes(g)?(p=p-45,m=m+65):["bpmn:UserTask"].includes(g)&&(p=p-10,m=m+90),a.add({position:{x:p,y:m},html:s.tooltip})}}})},addApprovalData(){if(this.approvalData,!this.approvalData||this.approvalData.length==0)return;const e=w8(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{e.length;const{warnings:n}=await this.viewer.importXML(e);n.length&&this.$emit("warning",n)}catch(n){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:n.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",n)}}},beforeDestroy(){this.$refs.container&&this.$refs.container.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},hO={};var TU=qt(OU,IU,BU,!1,NU,"81dc53d8",null,null);function NU(e){for(let n in hO)this[n]=hO[n]}const mO=function(){return TU.exports}();var MU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.boxLoading&&!e.isButton,expression:"boxLoading && !isButton"}],ref:"mianContent",staticClass:"mianContent",class:e.isDialog?"is-dialog":"",style:{}},[e.isButton?e._e():[i("div",{ref:"baseTabs",staticClass:"tabs"},[i("el-tabs",{staticClass:"demo-tabs",on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(a){e.activeName=a},expression:"activeName"}},e._l(e.tabs,function(a,s){return i("el-tab-pane",{key:s,attrs:{label:a.name,name:a.slot||a.name,item:a}},[a.name=="\u57FA\u672C\u4FE1\u606F"&&!a.slot?[i("div",{style:{height:`${e.baseHeight}px`}},[e._t("default",null,{taskNode:e.getTaskNode(),processData:e.processData,currentProcess:e.currentProcess})],2)]:a.name=="\u6D41\u7A0B\u56FE"&&!a.slot?[i("div",{staticClass:"view-node-info",on:{click:e.getNodeList}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]),e.trackUrl?i("iframe",{key:e.processId,staticStyle:{width:"100%",height:"100%",border:"none"},style:{height:`${e.iframeHeight}px`},attrs:{src:e.trackUrl,scrolling:"no",frameborder:"0"}}):e._e(),e.activeName=="\u6D41\u7A0B\u56FE"&&e.processData.process&&e.processData.process.xml?i("bpmnLook",{attrs:{approvalData:e.processData.flow,diagram:e.processData.process.xml}}):i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6D41\u7A0B\u56FE ")])]:a.name=="\u5BA1\u6279\u8BB0\u5F55"&&!a.slot?[e.activeName=="\u5BA1\u6279\u8BB0\u5F55"&&e.processData.flow?i("processFlow",{attrs:{"flow-list":e.formatFlow(e.processData.flow)}}):i("div",{staticStyle:{height:"100px",display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6570\u636E ")])]:[e.activeName==a.name?i("div",{style:{height:`${e.baseHeight}px`}},[a.slot?e._t(a.slot,null,{taskNode:e.getTaskNode(),processData:e.processData,currentProcess:e.currentProcess}):e._t("default",null,{taskNode:e.getTaskNode(),processData:e.processData,currentProcess:e.currentProcess})],2):e._e()]],2)}),1)],1)],e._t("myBtn"),e.isAdditional&&e.absoluteBtns.outside.length>0?i("div",{ref:"footBtnRow",staticClass:"footBtnRow foot-item",style:{width:e.mainWidth+"px"}},[e._t("btn",null,null,e.processStatus)],2):e.showBtns?!e.ProcessInsObj.end&&e.absoluteBtns.outside.length>0&&e.processStatus.appId!="com.awspaas.user.apps.root"||e.customBtns.length>0?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.footBtnLoading,expression:"footBtnLoading"}],ref:"footBtnRow",staticClass:"footBtnRow foot-item",style:{width:e.mainWidth+"px"}},[(e.processData.process.isReturnable||e.processData.process.status=="todo"||e.customBtns.length>0)&&e.absoluteBtns.outside.length>0?[e.absoluteBtns.inside.length>0?i("el-dropdown",{attrs:{placement:"top-start",trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[i("el-dropdown-menu",e._l(e.absoluteBtns.inside,function(a,s){return i("el-dropdown-item",{key:a.name+s,nativeOn:{click:function(c){return function(){a.click(),e.aftClickBtn=a}.apply(null,arguments)}}},[i("el-button",{staticClass:"btn drop-btn",attrs:{type:"text",size:"mini",icon:a.icon,loading:e.buttonLoading}},[e._v(" "+e._s(a.name)+" ")])],1)}),1)]},proxy:!0}],null,!1,1409220773)},[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small"}},[e._v(" \u66F4\u591A ")])],1):e._e(),e._l(e.absoluteBtns.outside,function(a){return i("el-button",e._b({key:a.name,attrs:{size:"small",loading:e.buttonLoading},on:{click:function(){a.click(),e.aftClickBtn=a}}},"el-button",a.btnProps,!1),[e._v(" "+e._s(a.name)+" ")])})]:e._e(),e._t("btnAppend")],2):e._e():i("div"),i("div",{staticClass:"dialog"},[i("el-dialog",{staticClass:"dialog process-audit-dialog",style:e.dynamicStyle,attrs:{visible:e.dialogVisibleOperation,"append-to-body":"",width:"600px",title:e.operationLabel,"close-on-click-modal":!1,"show-close":!e.isOperLoading,"before-close":e.cancelHandlerFn,top:"6vh"},on:{"update:visible":function(a){e.dialogVisibleOperation=a}},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary",loading:e.isOperLoading,disabled:e.isOperationHidden},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{loading:e.isOperLoading,disabled:e.isOperationHidden},on:{click:e.cancelHandlerFn}},[e._v("\u53D6 \u6D88")])]},proxy:!0}]),model:{value:e.dialogVisibleOperation,callback:function(a){e.dialogVisibleOperation=a},expression:"dialogVisibleOperation"}},[i("div",{ref:"obRef",staticClass:"operation-box"},[e.dialogVisibleOperation?i(e.operationCom,{ref:"operationRef",tag:"component",attrs:{param:e.operationParam,isOperLoading:e.isOperLoading},on:{success:e.operationSuccess,fail:e.operationFail},scopedSlots:e._u([{key:"form",fn:function(){return[e.aftClickBtn.slot?e._t(e.aftClickBtn.slot):e._e()]},proxy:!0},{key:"file",fn:function(){return[e.attachShow?i("el-form",{attrs:{"label-width":"120px","status-icon":"",rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9644\u4EF6",prop:e.attachRule.required?"attach":""}},[i("jyr-file-upload",{ref:"fileUpload",attrs:{multiple:e.attachRule.limit>0,limit:e.attachRule.limit,fullFileObject:"",showFileName:""},model:{value:e.attach,callback:function(a){e.attach=a},expression:"attach"}})],1)],1):e._e()]},proxy:!0}],null,!0)}):e._e()],1)]),i("el-dialog",{attrs:{title:"\u9009\u62E9\u5904\u7406\u4EFB\u52A1",visible:e.showMulTask,"append-to-body":"","close-on-click-modal":!1,width:"500px","show-close":!1},on:{"update:visible":function(a){e.showMulTask=a}},model:{value:e.showMulTask,callback:function(a){e.showMulTask=a},expression:"showMulTask"}},[i("el-form",{ref:"form",staticClass:"task",attrs:{"label-width":"100px"}},[i("el-form-item",{attrs:{label:"\u8BF7\u9009\u62E9\uFF1A",prop:"content"}},[i("el-radio-group",{attrs:{size:"small"},model:{value:e.mulTaskTaskId,callback:function(a){e.mulTaskTaskId=a},expression:"mulTaskTaskId"}},e._l(e.mulTaskList,function(a){return i("el-radio",{key:a.nodeId,attrs:{label:a.taskId,border:""}},[e._v(e._s(a.nodeName))])}),1)],1)],1),i("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.onCheckSure}},[e._v("\u786E\u5B9A")])],1)],1),i("el-dialog",{attrs:{visible:e.nodeInfoVisible,"append-to-body":"",width:"600px",title:"\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",modal:!1,"close-on-click-modal":!1},on:{"update:visible":function(a){e.nodeInfoVisible=a}},model:{value:e.nodeInfoVisible,callback:function(a){e.nodeInfoVisible=a},expression:"nodeInfoVisible"}},[i("el-table",{staticClass:"process-table",attrs:{data:e.filterFlow(e.processData.flow),border:"","header-row-style":e.headerRowStyle}},[i("el-table-column",{attrs:{label:"\u5E8F\u53F7",type:"index",width:"60px",align:"center"}}),i("el-table-column",{attrs:{prop:"historyActivityName",label:"\u8282\u70B9\u540D\u79F0","min-width":"130"}}),i("el-table-column",{attrs:{prop:"assigneeName",label:"\u5BA1\u6279\u4EBA","min-width":"80"}})],1)],1)],1)],2)},FU=[];const QZ="",zZ="",PU={components:{processBtns:y8,processFlow:I8,bpmnLook:mO,staffTree:ba,...$D,ViewFile:D5,JyrFileUpload:vh},props:{taskId:{default:!1,type:[String,Boolean]},processId:{default:"q",type:String},userId:{require:!0,default:"",type:String},showBtns:{default:!0,type:Boolean},isView:{default:!1,type:Boolean},getVars:{type:Function},before:{type:Function},isAlis:{type:Boolean,default:!1},isAdditional:{type:Boolean,default:!1},businessData:{type:Object,default:void 0},excludeBtn:{type:String,default:""},showAsPlanned:{type:Boolean,default:!1},showCommIdea:{type:Boolean,default:!0},commentMsgRequired:{type:Boolean,default:!0},customBtn:{default:""},tabs:{default:()=>[{name:"\u57FA\u672C\u4FE1\u606F",slot:""},{name:"\u6D41\u7A0B\u56FE",slot:""},{name:"\u5BA1\u6279\u8BB0\u5F55",slot:""}]},personType:{default:""},personEntity:{type:Object,default:()=>{}},isButton:{type:Boolean,default:!1},isDialog:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},headerRowStyle:{type:Object||Function,default:()=>({"background-color":"rgb(245, 247, 250)",color:"#333"})},extraHeight:{type:Number,default:0}},provide(){return{isAlisInject:this.isAlis}},data(){return{incomingConditionItemList:[],deptId:"",initProcessData:{button:[],flow:[],form:{},process:{}},currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},processData:{button:[],flow:[],form:{},process:{}},submitLoading:!1,flowChartVisible:!1,comment:null,dynamicMaxHeight:"400px",showMulTask:!1,mulTaskList:[],mulTaskTaskId:"",attach:[],customBtns:[],overheight:10,iframeHeight:500,baseHeight:500,mainWidth:0,absoluteTaskId:"",infoView:!1,showTopTabs:!1,buttonLoading:!1,footBtnLoading:!0,tabheight:400,aftClickBtn:"",attachRule:{required:!0,limit:0},nodeInfoVisible:!1,nodeInfoList:[],jjForm:{saveMetaAnnexCmdList:[]},targetUID:"",commentMsg:"",trackUrl:"",taskObj:{},taskCommentList:[],absoluteBtns:{inside:[],outside:[]},processStatus:"",nextTaskNode:[],activeName:"\u57FA\u672C\u4FE1\u606F",ProcessInsObj:{},outGatewayUserTaskModel:[],dialogVisibleOperation:!1,operationLabel:"",operationCom:{},operationParam:{},taskNode:[],aftTaskNode:{},operation:$D,Enum:Np,isOperLoading:!1,isOperationHidden:!1,boxLoading:!1,rules:{attach:[{required:!0,trigger:"change"}]},noReload:!1,digitalSignatureList:[]}},mounted(){console.info("%c\u26A1"+Tp.name+"%c v"+Tp.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),window.onresize=()=>(()=>{this.$refs.mianContent&&(this.mainWidth=this.$refs.mianContent.offsetWidth)})()},watch:{activeName:function(e){e==1&&(this.activeName="\u57FA\u672C\u4FE1\u606F")},infoView:function(){this.calculateHeight()},taskId:{handler(e){!e||(this.absoluteTaskId=e)},deep:!0,immediate:!0},processId:{handler(e){this.$nextTick(()=>{if(e&&e!="q"){if(this.customBtns=[],this.absoluteBtns={inside:[],outside:[]},this.boxLoading=!0,this.activeName=this.tabs.length>0?this.tabs[0].name:"",this.getProcessInfo(),this.getCurrentProcess(),Date.now())return;Xe.repository.queryTaskNodeList(this.processId).then(n=>{if(!this.noReload)if(this.noReload=!1,!this.absoluteTaskId&&n.data.length>1){this.mulTaskList=n.data,this.showMulTask=!0;return}else this.absoluteTaskId=n.data&&n.data.length>0?n.data[0].taskId:"",this.aftTaskNode=n.data[0];this.absoluteTaskId,n.code==bt.success&&(this.taskNode=n.data,Xe.pis.getProcessStatus(this.processId,this.absoluteTaskId).then(i=>{i.code==bt.success&&(this.processStatus=i.data,this.$emit("getStatus",i.data),this.absoluteTaskId?Xe.repository.getUserTaskModelCmd(this.absoluteTaskId).then(a=>{a.code==bt.success&&(this.taskObj=a.data,this.straightenBtns())}):this.straightenBtns())}))}),Xe.repository.getTrackUrl({processInstId:e,type:qb.\u7535\u8111\u7AEF}).then(n=>{n.code==bt.success&&(window.location.protocol=="https:"?n.data.indexOf("http://121.40.143.183:80/")>=0?this.trackUrl=n.data.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://121.40.143.183/")>=0?this.trackUrl=n.data.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://acme-aws.ddzg.cn/")>=0?this.trackUrl=n.data.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://59.53.91.231:8088/")>=0?this.trackUrl=n.data.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"):n.data.indexOf("http://59.53.91.230:8088/")>=0?this.trackUrl=n.data.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"):this.trackUrl=n.data:this.trackUrl=n.data)}),Xe.tis.getTaskCommentList(this.processId,"").then(n=>{this.taskCommentList=n.data,this.digitalSignatureList=n.data.filter(i=>i.digitalSignature).map(i=>i.digitalSignature)}),Xe.pis.getProcessInstanceById(this.processId).then(n=>{this.ProcessInsObj=n.data,this.$nextTick(()=>{this.calculateHeight()})})}})},immediate:!0,deep:!0},absoluteTaskId:{handler(e){},immediate:!0,deep:!0},dialogVisibleOperation:{handler(e){this.$emit("show-modal",e)}}},methods:{formatFlow(e){let n=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(a=>a.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(a=>a.type=="signature")}));return n=n.reverse(),n},cancelHandlerFn(){this.dialogVisibleOperation=!1,this.submitLoading=!1},filterFlow(e){return e.filter(n=>["userTask","candidate"].includes(n.historyActivityType))},getCurrentProcess(){Xe.repository.queryTaskNodeList(this.processId).then(e=>{if(e.code==200){const n={};if(n.currentProcessOriginData=e.data||[],n.currentProcessOriginData.length>0){let i=n.currentProcessOriginData[0],a=(i.currentName||"").split(","),s=(i.avatar||"").split(",");a=a.map((c,p)=>({realName:c,avatar:s[p]||"",phone:"",ancestorNames:[]})),n.currentMan=a,n.currentFirstNode=i,this.currentProcess=n}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e,"getCurrentProcess")})},getProcessInfo(){this.submitLoading=!0,this.boxLoading=!0,Xe.tis.getTaskModelDetail(this.taskId?{processInstId:this.processId,taskId:this.taskId}:{processInstId:this.processId}).then(async e=>{if(e.code==200){this.processData={...this.initProcessData,...e.data||{}},this.$emit("get-process-data",this.processData);const n=((this.processData.process||{}).variables||{}).deptId;this.deptId=n;const i=(this.processData.process||{}).taskId;this.taskObj.buttons=this.processData.button,this.absoluteTaskId=i,this.ProcessInsObj=this.processData.process,this.straightenBtns(),this.$nextTick(()=>{this.calculateHeight()}),this.processData.flow,this.flowChartVisible=!0,this.submitLoading=!1,this.boxLoading=!1}})},getUserDataByDeptId(){this.processList.map(async(e,n)=>{const i=Jy(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:i.intersection?1:0,userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(a.code==Enum.apiCode.success){const s=this.processList[n];s.userList=a.data,this.processList[n]=s}})},handleDraft(){this.submitLoading=!0},handleExamine(e,n){e?this.handlePass(n):this.handleCancel(n),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.isOperationHidden=!0,this.before?this.before().then(()=>{this.showOperation(hy,e)}):this.showOperation(hy,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextTaskNode:this.nextTaskNode},this.isOperationHidden=!1)},handleCancel(e){this.showOperation(UD,e)},handleUserSelect({type:e,checkType:n,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},handleTransfer(e){this.showOperation(jD,e)},handleAddInstance(e){this.showOperation(FD,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(WD,e)},handleTerminateProcess(){},handleCirculate(e){this.showOperation(ZD,e)},handleWithdrawTask(e){this.handleRevoke()},findTargetHtml(e,n,i="parentElement"){if(!e)return null;if(e.classList.contains(n))return e;let a=e[i];if(!a)return null;if(i=="children"){for(let s=0;s<=a.length-1;s++)if(a[s].classList.contains(n))return a[s];return}return this.findTargetHtml(a,n)},findImageIndex(e){return e?this.digitalSignatureList.findIndex(n=>n==e):-1},onCheckSure(){this.absoluteTaskId=this.mulTaskTaskId,this.mulTaskList.map(n=>{n.taskId==this.mulTaskTaskId&&(this.aftTaskNode=n)}),this.noReload=!0,this.showMulTask=!1,this.footBtnLoading=!0;let e=this.processId;Reflect.set(this.processId,""),Reflect.set(this.processId,e)},showButtonLoading(){this.buttonLoading=!0},hideButtonLoading(){this.buttonLoading=!1},calculateHeight(){let e=0;if(this.$refs.footBtnRow&&(e+=this.$refs.footBtnRow.offsetHeight),this.$refs.mianContent&&(this.mainWidth=this.$refs.mianContent.offsetWidth),this.infoView&&this.absoluteBtns.outside.length>0&&(e+=32),this.$refs.infoBoxFign){let n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.tabheight=n-this.$refs.infoBoxFign.offsetTop-192}this.overheight=e+116,this.iframeHeight=this.$refs.mianContent.offsetHeight-146,this.baseHeight=this.$refs.mianContent.offsetHeight-70-e-this.extraHeight},getNodeList(){this.nodeInfoVisible=!0},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let i="/";e.indexOf("\\")!=-1&&(i="\\");let a=e,s=a.lastIndexOf(i);return a.substr(s+1+n,a.length)},clickCustomButton(e){this.$emit("clickCustomButton",{name:e,processStatus:this.processStatus,setName:n=>{this.taskObj.buttons.map(i=>{i.label==e&&(i.label=n)}),this.straightenBtns()}})},async getNextNode(e){if(this.ProcessInsObj&&this.ProcessInsObj.taskParentId)return!0;let n;try{n=await Xe.tis.simulation(this.absoluteTaskId,this.processId)}catch(a){console.error(a),n={}}let i=n.data||{};n.code==200&&!n.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.id)),n.code==200&&n.data.evaluation&&n.data.branches&&n.data.branches.length>0&&n.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.branches[0].id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i},async getNodeUser({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s}){return await Xe.user.getTaskAuditor({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s})},async showOperation(e,n){this.attach=[],this.operationLabel=n,this.operationParam.processInstId=this.processId,this.operationParam.taskInstId=this.absoluteTaskId,this.operationParam.nextTaskNode=this.nextTaskNode,this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.variables=(this.processData.process||{}).variables||{},this.operationParam.extendedProperties=(this.processData.form||{}).extendedProperties||[],this.operationParam.taskObj=this.taskObj,this.operationParam.getVars=this.getVars,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.getTaskNode(),this.operationParam.businessData=this.businessData,this.operationParam.showAsPlanned=this.showAsPlanned,this.operationParam.showCommIdea=this.showCommIdea,this.operationParam.commentMsgRequired=this.commentMsgRequired,this.operationParam.personType=this.personType,this.operationParam.personEntity={...this.personEntity,...this.aftClickBtn.personEntity||{}},this.operationParam.ProcessInsObj=this.ProcessInsObj,this.operationCom=e,this.dialogVisibleOperation=!0,this.$nextTick(()=>{var m,g;let i=this.$refs.obRef;if(this.$refs,!i)return;let a=(m=i.getBoundingClientRect())==null?void 0:m.top,s=this.findTargetHtml(i,"el-dialog"),c=this.findTargetHtml(s,"el-dialog__footer","children"),p=window.innerHeight-((g=i.getBoundingClientRect())==null?void 0:g.top)-a-(c==null?void 0:c.clientHeight)-32;this.dynamicMaxHeight=`${p}px`})},onClickOperation(){if(this.attachShow&&this.attachRule.required&&this.attach.length==0)return hd.error("\u8BF7\u4E0A\u4F20\u9644\u4EF6");this.aftClickBtn.preposition?this.operationMain(this.aftClickBtn.preposition):this.operationMain()},operationMain(e=!1){let n;this.attachShow&&(n=[],this.attach.map(i=>{n.push({id:i.id,name:this.fileNameLastof(i.name),size:i.fileSize,format:i.fileType,url:i.url,uploadTime:i.createTime,processInstId:this.operationParam.processInstId,taskInstId:this.operationParam.taskInstId})}),n=n.sort((i,a)=>ld(i.uploadTime).valueOf()>ld(a.uploadTime).valueOf())),this.$refs.operationRef&&this.$refs.operationRef.confirm(e,()=>{this.isOperLoading=!0},n)},operationSuccess(e=!0){hd.success("\u64CD\u4F5C\u6210\u529F"),this.dialogVisibleOperation=!1,e&&this.$emit("Complete"),this.isOperLoading=!1},operationFail(e=""){e&&hd.warning(e),this.isOperLoading=!1},async getSelectFixData(e,n){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let a=0;a<i.branches.length;a++){let s=i.branches[a],c=s.nodeInfoDTO?s.nodeInfoDTO:s;try{c=await this.getSelectFixData(c,n)}catch(p){}s.nodeInfoDTO?s.nodeInfoDTO=c:s=c,i.branches[a]=s}else if(i.nodeType=="userTask"&&!i.setPersonnel){let a=Jy(i),s;try{s=await this.getNodeUser({deptId:n,intersection:a.intersection?1:0,userIds:a.userIds,postIds:a.postIds,deptIds:a.deptIds}),s.code==bt.success}catch(c){}s.code==bt.success&&(i.userList=s.data)}return i},async getOutgoingProcessNode(e,n){let i=await Xe.repository.getOutgoingProcessNode(e,n);if(i.code==bt.success){if(i.data){for(let a=0;a<i.data.length;a++){let s=i.data[a];s.incomingConditionItemList&&s.incomingConditionItemList.length!==0&&(s.nodeInfoDTO.incomingConditionItemList=s.incomingConditionItemList,s.incomingConditionItemList,this.incomingConditionItemList.push(...s.incomingConditionItemList)),s.nodeInfoDTO.nodeType!="userTask"&&(s.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,s.nodeInfoDTO.id)),i.data[a].type!="endEvent"&&(i.data[a].humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||i.data[a].humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&await Xe.repository.getParticipantsOfPerformerNames(e,[i.data[a].id]).then(c=>{i.data[a].routeTxt.userNames=c.data[i.data[a].id]})}i.data.length==0&&i.data.push({id:"",incomingConditionItemList:[],type:"endEvent",name:"\u7ED3\u675F\u4E8B\u4EF6"})}return i.data}return[]},getColor(e){return e=="\u5BA1\u6838\u4E2D"||e=="\u5BA1\u6279\u4E2D"?"#6DC743":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleClick(e,n){this.$emit("clickTab",e.$vnode?JSON.parse(JSON.stringify(e.$vnode.data.attrs.item)):e.props,e.index)},getTaskNode(){return this.taskNode.filter?this.taskNode.filter(e=>e.nodeId==this.taskObj.id):[]},handleRevoke(){DB.confirm("\u786E\u5B9A\u64A4\u9500\u5417","\u64A4\u9500",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.tis.withdrawTask(this.processData.process.processInstanceId).then(e=>{e.code==bt.success&&(hd.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(()=>{})},handleReminders(){DB.confirm("\u786E\u5B9A\u50AC\u529E\u5417","\u50AC\u529E",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.ProcessInsObj,Xe.tis.reminders(this.processData.process.processInstanceId).then(e=>{e.code==bt.success&&(hd.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(e=>{})},getButton(e){return(this.processData.button||[]).find(n=>n.buttonKey==e)},operBtn(){let e=[];const n=this.processData.process;if(!n)return e;if(n.status=="todo"&&this.getButton("wf_add_instance")){let a={};a.name=this.getButton("wf_add_instance").name,a.btnProps={type:"primary"},a.key="sign",a.click=()=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name})},e.push(a)}if(n.status=="todo"&&this.getButton("wf_transfer")){let a={};a.name=this.getButton("wf_transfer").name,a.key="delegate",a.click=()=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name})},e.push(a)}if(n.status=="todo"&&this.getButton("wf_delegate")){let a={};a.name=this.getButton("wf_delegate").name,a.btnProps={type:"warning"},a.key="cc2",a.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name})},e.push(a)}if(n.status=="todo"&&this.getButton("wf_terminate")){let a={};a.name=this.getButton("wf_terminate").name,a.btnProps={type:"danger"},a.key="cc3",a.click=()=>{this.handleTerminateProcess()},e.push(a)}if(n.status=="todo"&&this.getButton("wf_cctask")){let a={};a.name=this.getButton("wf_cctask").name,a.btnProps={type:"primary"},a.key="cc",a.click=()=>{this.handleCirculate(this.getButton("wf_cctask").name)},e.push(a)}if(n.isReturnable&&n.isOwner){let a={};a.name="\u50AC\u529E",a.key="self",a.click=()=>{this.handleReminders()},e.push(a)}if(n.isOwner&&n.isReturnable&&!["deleted"].includes(n.processIsFinished)){let a={};a.name="\u64A4\u9500",a.btnProps={type:"danger"},a.key="self",a.click=()=>{this.handleWithdrawTask("\u64A4\u9500")},e.push(a)}if(n.status=="todo"&&this.getButton("wf_reject")){let a={};a.name=this.getButton("wf_reject").name,a.btnProps={type:"danger"},a.key="refuse",a.click=()=>{this.handleExamine(!1,this.getButton("wf_reject").name)},e.push(a)}if(n.status=="todo"&&this.getButton("wf_pass")){let a={};a.name=this.getButton("wf_pass").name,a.btnProps={type:"primary"},a.key="complete",a.click=()=>{this.before?this.before().then(()=>{this.handleExamine(!0,this.getButton("wf_pass").name)}):this.handleExamine(!0,this.getButton("wf_pass").name)},e.push(a)}if(n.status=="todo"&&this.getButton("wf_rollback")){let a={};a.name=this.getButton("wf_rollback").name,a.btnProps={type:"danger"},a.key="back",a.click=()=>{this.handleRollbackTask(this.getButton("wf_rollback").name)},e.unshift(a)}return["wf_edit"].map(a=>{if(n.status=="todo"&&this.getButton(a)){let s={};s.name=this.getButton(a).name,s.btnProps={},s.key=s.name,s.click=()=>{this.clickCustomButton(s.name)},e.unshift(s)}}),e},straightenBtns(e=!0){let n=[];this.excludeBtn?this.operBtn().map(a=>{(this.excludeBtn.indexOf(a.key)==-1||!a.key)&&n.push(a)}):n=this.operBtn(),this.customBtns.length>0&&(n=[],this.customBtns.map(a=>{(this.excludeBtn.indexOf(a.key)==-1||!a.key)&&n.push(a)}));let i={outside:[],inside:[]};n.length>4?(i.outside=n.splice(n.length-4,n.length-1),i.inside=n):i.outside=n,e&&this.customBtn?this.customBtn({btnList:this.operBtn(),processStatus:this.processStatus,processData:this.processData,nextTaskNode:this.nextTaskNode},a=>{this.customBtns=a,this.straightenBtns(!1)},()=>{this.$emit("Complete")}):(this.absoluteBtns=i,this.$nextTick(()=>{this.calculateHeight(),this.footBtnLoading=!1,this.boxLoading=!1}))}},computed:{dynamicStyle(){return{"--dynamic-ctx-height":this.dynamicMaxHeight}},attachShow(){const e=(this.processData.form||{}).extendedProperties||[];let n=!1,i,a="";switch(this.operationLabel){case"\u9000\u56DE":i=e.find(c=>c.name=="otherButtonAnnexList"),a=i?i.value:"",a&&(n=!0);break;case"\u901A\u8FC7":case"\u529E\u7406":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u5904\u7406":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u540C\u610F":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u62D2\u7EDD":i=e.find(c=>c.name=="otherButtonAnnexList"),a=i?i.value:"";break;case"\u52A0\u7B7E":i=e.find(c=>c.name=="counterSignButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u8F6C\u529E":i=e.find(c=>c.name=="delegateTaskButtonAnnex"),a=i?i.value:"",a&&(n=!0);break}let s="";if(typeof a!="string"&&a!=null&&a.map(c=>{c.indexOf(this.operationLabel)!=-1&&(n=!0,s=c)}),s&&(a=s),n){const c=a.split(":");this.attachRule.required=c[1]=="true",this.attachRule.limit=c[2]==-1?999:c[2]}return n}}},gO={};var RU=qt(PU,MU,FU,!1,jU,"223ac74b",null,null);function jU(e){for(let n in gO)this[n]=gO[n]}const AO=function(){return RU.exports}(),LU=async(e,n)=>{const i=n||{},a=i.dragElement||(i.targetClassName?vO(e,i.targetClassName):e.querySelector(".el-dialog"));let s;new IntersectionObserver(b=>{s=b[0].isIntersecting,s||R()}).observe(a);const p=i.dragHeader||".el-dialog__header",m=a.querySelector(p),g=i.restrictElement||document.body;let y;g?y=g.getBoundingClientRect():y={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};let O=!1,E,N,_;const S=()=>{if(m){m.style.cursor="move",m.style["user-select"]="none",m.onmousedown=w=>{O=!0;const B=a.style.transform.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);E=B?parseFloat(B[1]):0,N=B?parseFloat(B[2]):0,document.addEventListener("mousemove",P),document.addEventListener("mouseup",T)};const b=a.getBoundingClientRect();_={"+x":y.right-b.right,"-x":y.left-b.left,"+y":y.bottom-b.bottom,"-y":y.top-b.top}}},M=()=>{O=!1,m.style.cursor="auto",m.style["user-select"]="auto",m.onmousedown=b=>{}};x.watch(i.dialogConfig,(b,w)=>{b.fullScreen&&(M(),R())}),S();const P=b=>{if(!O)return;b.stopPropagation(),b.preventDefault();let w=b.movementX+E,B=b.movementY+N;w>=0?w=w>=_["+x"]?_["+x"]:w:w=w<=_["-x"]?_["-x"]:w,B>=0?B=B>=_["+y"]?_["+y"]:B:B=B<=_["-y"]?_["-y"]:B,a.style.transform=`translate(${w}px, ${B}px)`,E=w,N=B},T=()=>{O=!1,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",T),a.style["user-select"]="auto"},R=()=>{a.style.transform="none"}};function vO(e,n){if(!e)return null;if(e.classList.contains(n))return e;let i=e.parentElement;return i?vO(i,n):null}const QU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACktJREFUeF7tnV1S3DgURqVuZh+dlQArCbyESdWQolcArKCpMFUJeYGsBLKS9D6GtKZsAiEBuq9VvrLFd/I2NbKlez6dlvxTOAb+QQACLxKIsIEABF4mgCDMDgisIYAgTA8IIAhzAAJ5BFhB8rhxlAgBBBEJmjLzCCBIHjeOEiGAICJBU2YeAQTJ48ZRIgQQRCRoyswjgCB53DhKhACCiARNmXkEECSPG0eJEEAQkaApM48AguRx4ygRAggiEjRl5hFAkDxuHCVCAEFEgqbMPAIIkseNo0QIjF6QxeLTrFQW8/n7Zam+xtxPKeY18B6VIG0wW5O9GOJ2SGkWYigmRzthU1iGSbpJ/6XTGsLrU7KGffwrHocU9/o878ZzNcybfzEuUwpfQ/yxnB++v9l4XKEGoxBkcX5xElN4W1yIlyCnsDz6cPCmUAaj6Obs48X3MfFPMXydHx6cDA1nUEFaMUI4HhrCc/2nEE7HEFAJNmf/fr4svnJYCkthObQogwjSLufTyfVofrGeDSveHB2+27XkWHub0QpyD7YR5cdqd4htb3FBFuefdmKYXI9+UsV0dfTP3/ujH2cPAzw7/3IdQtrp4VR+pxhoNSkqyJi3VE+SFRJk8fHLXozp0m9293fm0lvfYoJUJYfYRXodW95fkpWUpIgg1Wyr7u43ylx7PP5d/3WLfZw3Tf5cg0pJ4i5Ilhw/95t3UFZ398Rvf94v72+1fnKmIS4CHcvJOnWph4Tt4LbCLKTpLE5W253vorVzZLXv/czEXZBO99ebokM8nX94d5WVLgdVTaC9Fgrp2Hx3s8BW2FWQLhd/pZbMqmeQwOC7bvVSivueP6iuglhXjxRWu95LpcDcelUlmrfmzquImyDWu1bI8armda/FWCXxXEXcBLGsHmyrep1Pr/Jkph9ax1XET5Dzi7Q2MceiXuVMES2qfUazNb3c9KTfayfiIojl4tyrINF59KrLtmy1vHYjLoJYXn47Ojxw6ftVzxTh4jZv2X0e8LpM0o3FCL3nJDyney194wuVTlt2H0E2XH943nXoNRVONhoCG7ftr0oQnnuMZuLVMhDLdYjHtr33FeTursPk+zrw6Xb1hveeapma4xjnUPMKQcaRP6PYQABBmCIQWEMAQZgeEECQOwJcg+BCVwKsIF2J0V6KAIJIxU2xXQkgSFditJcigCBScVNsVwII0pUY7aUIIIhU3BTblQCCdCVGeykCCCIVN8V2JYAgXYnRXooAgkjFTbFdCSBIV2K0lyKAIFJxU2xXAgjSlRjtpQggiFTcFNuVAIJ0JUZ7KQIIIhU3xXYlgCBdidFeigCCSMVNsV0JIEhXYrSXIoAgUnFTbFcCCNKVGO2lCEgJ4vEnIqVmi2CxFkE85lXvf1mxyW7t5w/4y+6C07ufkoeYVy6CtLZPJ9dPPufr9Be4+8HPWcZOYIh55SJIA/rX53zjdvPfKaRv88ODk7GHwPjGTaD0vHITZNyYGR0EbAQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEXAVZnF+cxBC3G7YppG/zw4MTUc6U3SOBkvPKTZCzjxffQwyz37iksEw/Vrvz+ftlj7w4lRCB0vPKRZCz8y/XIaSdZ3OL6eron7/3hTKl1J4IDDGvnAS5SC8ySWF59OHgTU/MOI0QgbPz8vOqd0EWi0+zuDX5vi63dLt6wzZLaGb3UOpQ8wpBegiPU/gTQBB/xvRQMQEEqTg8hu5PAEH8GdNDxQQQpOLwGLo/AQTxZ0wPFRNAkIrDY+j+BBDEnzE9VEwAQSoOj6H7E0AQf8b0UDEBBKk4PIbuTwBB/BnTQ8UEEKTi8Bi6PwEE8WdMDxUTQJCKw2Po/gQQxJ8xPVRMAEEqDo+h+xNAEH/G9FAxAQSpODyG7k8AQfwZ00PFBBCk4vAYuj8BBPFnTA8VE0CQisNj6P4EEMSfMT1UTEBLkLDanR++v6k4L4ZemMDi/NNODJPrdd16/EHCYf5wHIIUnl71d7f4+GUvxnRZvSBNAWv/hmrzKYQU9+cf3l3VHxsVlCJgEeTo8KD3H/zeT9gK8tynD34jGW+ODt/tloJLP/UTOPv382VIce/FSpz+KLqPIOs+f9BU6FRM/dOACl4isPFH1+mzGi6CWJbDxHUINhgJmOaT07bdRxDDJxBYRYyzg2aGLXsIHnewGvQugtxdqK/5ytTP0FMIp3y3EAPWEbj7HmE43kTJ4wLdVRDLstisIimu9nkmsil+zf9vefbRXtI6ba98BWm2WdPJ9ZMPef6ZdStJ+MpKoinBS1Vb5WiO91o9XAVpTm5aRX7e1UISBLknYN1Wea8e/oK0F+vTyxe/eMtqghWPCLSrRppcbtx13B9T4HGB20X6w6+B5Y7WM6KESbpJq8m3EH/cfVP9Nrh/W50Pi94F0bwYWMTcrTALaToLMc0sF+JPp4n/O33ugnTaahVJZU0nKSxbMf9Lp2qytG/L/hWP1z6tHjqfR/2Xeo5WRJBWEuPtulFkUGDpHkWdjwax8Un1iAZc8vFAOUGaZXtrspezlA6RTckQhqjvcZ8b33MaeoC/rRxln50VE+ThmsTw2vI48tB5obIWQUptqx7Pv+KC3F8Emp6RDGmK08tvQ5b0Ut+Wtx4GHfeAD5QHEeThTkmz5Urhrfm2XsmUhAQxP68qyb/pawQPkQcT5GHL9XBtErfNz0u8gxK7SG/vYFneevDmfn/+EYhxP5TBBXnMvL3/Pp3uxBjehpRmw6wsOtceT9gPdROlub0e4zKF9C3crq7GdIt9VII89wNV7KFVCGFMwZT6sf6zH3j/TmT0ggw1UegXAg0BBGEeQGANAQRhekAAQZgDEMgjwAqSx42jRAggiEjQlJlHAEHyuHGUCAEEEQmaMvMIIEgeN44SIYAgIkFTZh4BBMnjxlEiBBBEJGjKzCOAIHncOEqEAIKIBE2ZeQQQJI8bR4kQQBCRoCkzjwCC5HHjKBECCCISNGXmEUCQPG4cJUIAQUSCpsw8Av8DJjgSI/ED2TgAAAAASUVORK5CYII=";var zU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-dialog",{staticClass:"process-dialog",attrs:{visible:e.visible,width:e.width||"60%","close-on-click-modal":!1,fullscreen:e.fullscreen,title:"\u6D41\u7A0B\u4FE1\u606F","append-to-body":"",top:"5vh"},on:{"update:visible":function(a){e.visible=a},closed:e.onClickCancel,close:e.close,open:e.open},scopedSlots:e._u([{key:"title",fn:function(){return[i("div",{staticClass:"dialog-header"},[e._t("title",function(){return[i("div",[e._v("\u6D41\u7A0B\u4FE1\u606F")])]}),i("div",{staticClass:"dialog-icon"},[i("span",{on:{click:function(a){e.fullscreen=!e.fullscreen}}},[i("img",{attrs:{src:QU,alt:""}})])])],2)]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[e.showProcess?i("process",e._b({ref:"process",attrs:{processId:e.paramsProcessId,isDialog:!0,fullscreen:e.fullscreen,tabs:e.tabs},on:{Complete:e.Complete,clickTab:e.handleTab,clickCustomButton:e.handleCustomButton,"get-status":e.getStatus}},"process",e.$attrs,!1),[i("div",{staticClass:"processDialogMain"},[e._t("default")],2)]):e._e()],1)},HU=[];const HZ="",VU={components:{process:AO},props:{dragable:!1,value:Boolean,width:String,processId:String,tabs:{default:()=>[{name:"\u57FA\u672C\u4FE1\u606F",slot:""},{name:"\u6D41\u7A0B\u56FE",slot:""},{name:"\u5BA1\u6279\u8BB0\u5F55",slot:""}]},parentEl:null},model:{prop:"value",event:"update:value"},data(){return{showProcess:!1,paramsProcessId:"",fullscreen:!1}},computed:{visible(){return this.value}},mounted(){this.$attrs},methods:{initDom(){this.fullscreen=!1},onClickCancel(){this.$emit("update:value",!1)},Complete(){this.$emit("Complete")},open(){this.showProcess=!0,this.paramsProcessId=this.processId;let e={targetClassName:"el-dialog"};(this.parentEl||window.$wujie.props.el())&&(e.restrictElement=this.parentEl||window.$wujie.props.el()),this.$nextTick(()=>{this.$refs,this.$refs.process,this.$refs.process&&LU(this.$refs.process.$el||this.$refs.process,e)})},close(){this.$emit("close"),this.paramsProcessId="",this.showProcess=!1,this.$refs.process&&(this.$refs.process.activeName=this.tabs[0].name)},handleTab(e,n){this.$emit("clickTab",e,n)},handleCustomButton(e){this.$emit("clickCustomButton",e)},getStatus(e){this.$emit("getStatus",e)}}},bO={};var UU=qt(VU,zU,HU,!1,YU,null,null,null);function YU(e){for(let n in bO)this[n]=bO[n]}const WU=function(){return UU.exports}();var GU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-dialog",{staticClass:"flow-dialog",attrs:{visible:e.flag,width:"45%","close-on-click-modal":!1,title:e.revival?"\u6D41\u7A0B\u590D\u6D3B":"\u521B\u5EFA\u5E76\u542F\u52A8\u6D41\u7A0B","append-to-body":""},on:{"update:visible":function(a){e.flag=a},closed:e.onClickCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{attrs:{loading:e.btnLoading,type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{attrs:{loading:e.btnLoading},on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}]),model:{value:e.flag,callback:function(a){e.flag=a},expression:"flag"}},[i("el-form",{staticClass:"create-form",attrs:{"label-width":"200px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u5F53\u524D\u6D41\u7A0B",size:"medium",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D41\u7A0B"}]}},[e.processDefList.length>1?i("el-select",{staticStyle:{width:"65%","margin-right":"10px"},attrs:{filterable:"",clearable:"",placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.processDefChange},model:{value:e.processDefId,callback:function(a){e.processDefId=a},expression:"processDefId"}},e._l(e.processDefList,function(a,s){return i("el-option",{key:s,attrs:{label:a.name,value:a.id,disabled:a.disabled}})}),1):i("b",{staticClass:"process-def-name"},[e._v(" "+e._s(e.processDefName)+" ")]),e.processDefId?i("div",{staticClass:"view-node-info",staticStyle:{"margin-right":"10px"},on:{click:e.viewFlowChart}},[e._v(" \u9884\u89C8 ")]):e._e(),e._e()],1),e.hasDeptId?e._e():i("el-form-item",{attrs:{size:"medium",label:"\u9009\u62E9\u90E8\u95E8",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8"}]}},[i("el-tree-select",{staticStyle:{width:"65%","margin-right":"10px"},attrs:{data:e.deptList,props:e.defaultProps,"node-key":"id","check-strictly":"","render-after-expand":!1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.handleDeptChange},model:{value:e.deptId,callback:function(a){e.deptId=a},expression:"deptId"}})],1),e.deptId?i("div",{staticClass:"node-list"},[e.processList&&e.processList.length>0?i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",size:"medium"}}):e._e(),e.processList.length>0?[e._l(e.processList,function(a,s){return[i("userTask",{ref:e.setItemRef(a.id),refInFor:!0,attrs:{index:s,personType:e.personType,personEntity:Object.assign({},e.personEntity,{_businessDeptId:e._businessDeptId}),processNode:Object.assign({},a,{REQUIRED:s==0}),label:"\u5904\u7406\u4EBA",rules:[{required:s==0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA"}]},on:{complete:e.complete}}),s!==e.processList.length-1?i("div",{staticClass:"user-task-split"}):e._e()]})]:e._e()],2):e._e()],1)],1),i("el-dialog",{staticClass:"track-view",attrs:{visible:e.flowChartVisible,width:"60%","append-to-body":"",title:"\u6D41\u7A0B\u56FE\u4FE1\u606F"},on:{"update:visible":function(a){e.flowChartVisible=a}},model:{value:e.flowChartVisible,callback:function(a){e.flowChartVisible=a},expression:"flowChartVisible"}},[e.flowChartVisible&&e.processXml?i("bpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml}}):e._e()],1),i("el-dialog",{attrs:{visible:e.flowForecastVisible,width:"45%","append-to-body":"",title:"\u6D41\u7A0B\u9884\u6D4B"},on:{"update:visible":function(a){e.flowForecastVisible=a},close:e.flowForecastClose}},[i("div",{staticStyle:{"margin-left":"20px"}},[i("div",{staticStyle:{"margin-left":"40px","margin-bottom":"20px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),i("el-timeline",e._l(e.flowForecastData.processBudgetModelList,function(a,s){return i("el-timeline-item",{key:s,attrs:{icon:"el-icon-check",color:s==0?"#009800":a.color,timestamp:a.title,placement:"top"}},[i("div",[i("span",{staticStyle:{color:"#1389FF"}},[i("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u53D1\u8D77\u4EBA\uFF1A"+e._s(a.createUser)+" ")]),i("span",{staticStyle:{color:"#009800","margin-left":"50px"}},[i("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(a.excutor)+" ")])])])}),1)],1)])],1)},JU=[];const VZ="",UZ="";var Ds=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Ds=e});const KU={components:{userTask:py,bpmnLook:mO},props:{other:{default:!0},personType:"",personEntity:{type:Object,default:()=>{}},beforeFunction:{type:Function,default:null},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{revivalVars:{},processData:{},absoluteTaskId:"",userTaskListData:{},flag:!1,revival:!1,flowChartVisible:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:"",btnLoading:!1,processList:[],processDefId:"",processDefName:"",businessId:"",trackUrl:"",processDefList:[],otherProcessList:[],callback:{},cancelCallBack:{},_multiNodeParticipant:[],_businessDeptId:"",businessCode:"",_vars:{},_appId:"",deptList:[],defaultProps:{children:"children",label:"label",isLeaf(e,n){return e.isLeaf=="true"}},userInfo:{},deptId:"",hasDeptId:!1,subjectId:"",processXml:""}},provide(){return{getUserInfo:this.getUserInfo}},mounted(){console.info("%c\u26A1"+Tp.name+"%c v"+Tp.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;")},methods:{getUserInfo(){return{deptId:this.deptId,subjectId:this.subjectId}},handleDeptChange(e){this.deptId=e,this.getUserDataByDeptId()},complete(e){},setLoading(e){this.btnLoading=e},async getXml(e){this.isXml;let n={},i="";try{n=await Xe.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(i=n.data)}catch(a){console.error(a)}return i},async viewFlowChart(){this.flowChartVisible=!0,this.processXml=await this.getXml(this.processDefId),!Date.now()&&Xe.repository.getDiagramUrl({processDefId:this.processDefId,diagramType:1,type:qb.\u7535\u8111\u7AEF}).then(e=>{e.code==bt.success&&(window.location.protocol=="https:"?e.data.indexOf("http://121.40.143.183:80/")>=0?this.trackUrl=e.data.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://121.40.143.183/")>=0?this.trackUrl=e.data.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://acme-aws.ddzg.cn/")>=0?this.trackUrl=e.data.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://59.53.91.231:8088/")>=0?this.trackUrl=e.data.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"):e.data.indexOf("http://59.53.91.230:8088/")>=0?this.trackUrl=e.data.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"):this.trackUrl=e.data:this.trackUrl=e.data,this.flowChartVisible=!0)})},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this._appId,title:"1"})},forecast(e){return this.btnLoading=!0,new Promise((n,i)=>{Xe.pis.getProcessForecast({processDefId:this.processDefId,...e}).then(a=>{this.btnLoading=!1,a.code==bt.success?(a.data&&a.data.processBudgetModelList&&a.data.processBudgetModelList.length?this.flowForecastProcessInstId=a.data.processBudgetModelList[0].processInstId:(a.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=a.data,this.flowForecastVisible=!0,n(a)):ElMessage.error(a.msg)}).catch(a=>{this.btnLoading=!1,ElMessage.error("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),i(a)})})},flowForecastClose(){this.flowForecastProcessInstId?Xe.pis.deleteProcessById(this.flowForecastProcessInstId).then(e=>{e.code==bt.success&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})},processDefChange(e){this.processDefId=e,Xe.repository.getFirstProcessNode(this.processDefId).then(async n=>{if(n.code==bt.success){if(this.processList=n.data,this.flag=!0,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId()}})},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},createAndStart(e){return this.btnLoading=!0,new Promise((n,i)=>{if(!Object.values(this._multiNodeParticipant).some(s=>s&&Array.isArray(s)&&s.length>0))return Ds.warning("\u8BF7\u9009\u62E9 \u7B2C\u4E00\u4E2A\u8282\u70B9 \u5904\u7406\u4EBA"),this.btnLoading=!1,!1;Xe.pis.createAndStart({processDefId:this.processDefId,multiNodeParticipant:this._multiNodeParticipant,firstNodeId:this.processList&&this.processList.length>0?this.processList[0].id:"",vars:{showType:"all",subjectId:this.subjectId,deptId:this.deptId,businessType:this.businessCode+"",...e,...this._vars}}).then(s=>{this.btnLoading=!1,s.code==bt.success?(this.flag=!1,n(s)):Ds.error(s.msg)}).catch(s=>{this.btnLoading=!1,Ds.error("\u6D41\u7A0B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),i(s)})})},revivalFlow(e={},n=!1,i="\u6D41\u7A0B\u590D\u6D3B"){return this.btnLoading=!0,new Promise((a,s)=>{const c={...this.revivalVars,showType:"all",subjectId:this.subjectId,deptId:this.deptId,businessType:this.businessCode+"",...e,...this._vars};Object.keys(c).forEach(p=>{const m=p.toLowerCase();m.includes("_")&&delete c[p],m=="appShow"&&delete c[p]}),Xe.pis.reactivate({reactivate:!0,processDefId:this.processDefId,processInstId:this.processInstId,isClearHistory:this.isClearHistory,multiNodeParticipant:this._multiNodeParticipant,firstNodeId:this.processList&&this.processList.length>0?this.processList[0].id:"",vars:c},"",this.businessId,i,"",n,this._multiNodeParticipant).then(p=>{this.btnLoading=!1,p.code==bt.success?(this.flag=!1,a(p)):Ds.error(p.msg)}).catch(p=>{this.btnLoading=!1,Ds.error("\u6D41\u7A0B\u590D\u6D3B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s(p)})})},Show(e,n="",i=!1){return this.processList=[],this.revival=i,this.processDefId=e,n&&Xe.repository.getProcessDefList(n,"",this.subjectId||"").then(a=>{a.code==bt.success&&a.data.map(s=>{s.id==e&&(this.processDefName=s.name)})}),new Promise((a,s)=>{this.cancelCallBack=s,Xe.repository.getFirstProcessNode(e).then(async c=>{if(c.code==bt.success){if(this.processList=c.data,this.flag=!0,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId(),this.callback=a}})})},selectShow(e={appId:"",businessCode:"",businessType:"",keyWord:"",businessDeptId:"",userInfo:{},processGroupName:""}){return this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.revival=!1,this._appId=e.appId,this._businessDeptId=e.businessDeptId,this.businessCode=e.businessCode+""||e.businessType+"",this.userInfo=e.userInfo,this.deptId=e.userInfo.deptId,this.subjectId=e.userInfo.subjectId,this.hasDeptId=!!this.deptId,this._businessDeptId,new Promise((n,i)=>{this.cancelCallBack=i,Xe.repository.getProcessDefListNew(e).then(a=>{a.code==bt.success&&(a.data.length==1?(this.processDefList=a.data,this.processDefId=a.data[0].id,this.processDefName=a.data[0].name,Xe.repository.getFirstProcessNode(this.processDefId).then(async s=>{if(s.code==bt.success){if(this.processList=s.data,this.flag=!0,this.callback=n,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId()}})):(this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.processDefList=a.data,e.keyWord&&this.processDefList.map(s=>{s.name.indexOf(e.keyWord)!=-1&&!this.processDefId&&(this.processDefId=s.id,this.processDefName=s.name,this.processDefChange(s.id))}),this.flag=!0,this.callback=n))})})},getUserDataByDeptId(){this.processList.map(async(e,n)=>{const i=Jy(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:i.intersection?1:0,userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(a.code==bt.success){const s=this.processList[n];s.userList=a.data,this.processList[n]=s}})},async getNodeUser({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s}){return await Xe.user.getTaskAuditor({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s})},async getNodeUserDept(){let e={};try{e=await Xe.user.getSelectTree()}catch(n){}e.data,this.deptList=e.data||[]},listShow(e){return this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.revival=!1,new Promise((n,i)=>{e.length==1?(this.processDefId=e[0].id,this.processDefName=e[0].name,this.cancelCallBack=i,Xe.repository.getFirstProcessNode(this.processDefId).then(a=>{a.code==bt.success&&(this.processList=a.data,this.flag=!0,this.callback=n,Xe.repository.getAfferentParticipantNodeList(this.processDefId).then(s=>{this.otherProcessList=s.data.filter(c=>c.id!=this.processList[0].id),this.otherProcessList.map(c=>{c.REQUIRED=!1})}))})):(this.processDefList=e,this.flag=!0,this.callback=n)})},async getProcessInfo({taskId:e,processInstId:n}){let i={};try{i=await Xe.tis.getTaskModelDetail(e?{processInstId:n,taskId:e}:{processInstId:n})}catch{i={}}return i.code==200,i},async revivalShow({processInstId:e,businessId:n,taskId:i,deptId:a}){this.processInstId=e,this.hasDeptId=!!a;let s=await this.getProcessInfo({taskId:i,processInstId:e});if(s.code==200){this.processData={...this.initProcessData,...s.data||{}};const c=((this.processData.process||{}).variables||{}).deptId;this.deptId=c,this._businessDeptId=c,this.hasDeptId=!!c;const p=(this.processData.process||{}).taskId;return this.absoluteTaskId=p,this.revival=!0,this.businessId=n,this.subjectId=s.data.process.variables.subjectId,this.businessCode=s.data.process.variables.businessType+"",this.revivalVars=s.data.process.variables,this.processDefId=s.data.process.processDefinitionId,this.processDefName=s.data.process.processDefinitionName,this.processDefList=[],this.Show(s.data.process.processDefinitionId,"",!0)}},onClickOperation(){if(!this.processDefId||this.processDefId=="")return Ds.warning("\u8BF7\u9009\u62E9\u6D41\u7A0B"),!1;let e={},n={};for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a][0],c=s?s.getValue():{multiNodeParticipant:[],vars:{}};if(!c)return!1;e={...e,...c.multiNodeParticipant},n={...n,...c.vars}}this._multiNodeParticipant=e,this._vars=n,this.callback,this.beforeFunction?this.beforeFunction():this.callback&&this.callback(this.revival?this.revivalFlow:this.createAndStart)},onClickCancel(){this.flag=!1,this.btnLoading=!1,this.cancelCallBack&&this.cancelCallBack()}}},_O={};var XU=qt(KU,GU,JU,!1,ZU,"1aef9e89",null,null);function ZU(e){for(let n in _O)this[n]=_O[n]}const $U=function(){return XU.exports}();var qU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-dialog",{attrs:{visible:e.flag,width:"35%",title:"\u91CD\u65B0\u53D1\u8D77","append-to-body":""},on:{"update:visible":function(a){e.flag=a},close:e.onClickCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}])},[i("el-form",{attrs:{"label-width":"100px","status-icon":""}},[e.isUserTask?e._l(e.processList,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{processNode:a}})}):e._e()],2)],1)],1)},eY=[],yO=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{yO=e});const tY={components:{userTask:py},data(){return{userTaskListData:{},flag:!1,processList:[],callbacak:{},commentMsg:"",isUserTask:!1,cancelCallBack:{}}},methods:{setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"},Show(e){return new Promise((n,i)=>{this.cancelCallBack=i,Xe.repository.getFirstProcessNode(e).then(a=>{a.code==bt.success&&(this.processList=a.data,this.isOption(this.processList[0].humanPerformerName)&&!this.processList[0].isHistoryRoute?(this.flag=!0,this.callbacak=n,this.isUserTask=!0):n({commentMsg:this.commentMsg||"\u91CD\u65B0\u53D1\u8D77"}))})})},onClickOperation(){if(this.commentMsg.length>200)return yO.error("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let e={};if(e={commentMsg:this.commentMsg||"\u91CD\u65B0\u53D1\u8D77"},this.isUserTask){let n={},i={};for(let a in this.userTaskListData){let s=this.userTaskListData[a],p=this.$refs[s][0].getValue();if(!p)return!1;n={...n,...p.multiNodeParticipant},i={...i,...p.vars},e={...e,multiNodeParticipant:n,vars:i}}}this.callbacak&&this.callbacak(e),this.flag=!1},onClickCancel(){this.flag=!1,this.cancelCallBack&&this.cancelCallBack()}}},xO={};var nY=qt(tY,qU,eY,!1,iY,null,null,null);function iY(e){for(let n in xO)this[n]=xO[n]}const rY=function(){return nY.exports}();Promise.resolve().then(()=>RJ);var Mx={exports:{}},Ue={},Fx={exports:{}},wO;function EO(){return wO||(wO=1,function(e){(function(n){var i={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",c="\\d{3}",p="\\d{4}",m="[^\\s]+",g=/\[([^]*?)\]/gm,y=function(){};function O(w){return w.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function E(w,B){for(var z=[],F=0,H=w.length;F<H;F++)z.push(w[F].substr(0,B));return z}function N(w){return function(B,z,F){var H=F[w].indexOf(z.charAt(0).toUpperCase()+z.substr(1).toLowerCase());~H&&(B.month=H)}}function _(w,B){for(w=String(w),B=B||2;w.length<B;)w="0"+w;return w}var S=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],M=["January","February","March","April","May","June","July","August","September","October","November","December"],P=E(M,3),T=E(S,3);i.i18n={dayNamesShort:T,dayNames:S,monthNamesShort:P,monthNames:M,amPm:["am","pm"],DoFn:function(B){return B+["th","st","nd","rd"][B%10>3?0:(B-B%10!==10)*B%10]}};var R={D:function(B){return B.getDay()},DD:function(B){return _(B.getDay())},Do:function(B,z){return z.DoFn(B.getDate())},d:function(B){return B.getDate()},dd:function(B){return _(B.getDate())},ddd:function(B,z){return z.dayNamesShort[B.getDay()]},dddd:function(B,z){return z.dayNames[B.getDay()]},M:function(B){return B.getMonth()+1},MM:function(B){return _(B.getMonth()+1)},MMM:function(B,z){return z.monthNamesShort[B.getMonth()]},MMMM:function(B,z){return z.monthNames[B.getMonth()]},yy:function(B){return _(String(B.getFullYear()),4).substr(2)},yyyy:function(B){return _(B.getFullYear(),4)},h:function(B){return B.getHours()%12||12},hh:function(B){return _(B.getHours()%12||12)},H:function(B){return B.getHours()},HH:function(B){return _(B.getHours())},m:function(B){return B.getMinutes()},mm:function(B){return _(B.getMinutes())},s:function(B){return B.getSeconds()},ss:function(B){return _(B.getSeconds())},S:function(B){return Math.round(B.getMilliseconds()/100)},SS:function(B){return _(Math.round(B.getMilliseconds()/10),2)},SSS:function(B){return _(B.getMilliseconds(),3)},a:function(B,z){return B.getHours()<12?z.amPm[0]:z.amPm[1]},A:function(B,z){return B.getHours()<12?z.amPm[0].toUpperCase():z.amPm[1].toUpperCase()},ZZ:function(B){var z=B.getTimezoneOffset();return(z>0?"-":"+")+_(Math.floor(Math.abs(z)/60)*100+Math.abs(z)%60,4)}},b={d:[s,function(w,B){w.day=B}],Do:[s+m,function(w,B){w.day=parseInt(B,10)}],M:[s,function(w,B){w.month=B-1}],yy:[s,function(w,B){var z=new Date,F=+(""+z.getFullYear()).substr(0,2);w.year=""+(B>68?F-1:F)+B}],h:[s,function(w,B){w.hour=B}],m:[s,function(w,B){w.minute=B}],s:[s,function(w,B){w.second=B}],yyyy:[p,function(w,B){w.year=B}],S:["\\d",function(w,B){w.millisecond=B*100}],SS:["\\d{2}",function(w,B){w.millisecond=B*10}],SSS:[c,function(w,B){w.millisecond=B}],D:[s,y],ddd:[m,y],MMM:[m,N("monthNamesShort")],MMMM:[m,N("monthNames")],a:[m,function(w,B,z){var F=B.toLowerCase();F===z.amPm[0]?w.isPm=!1:F===z.amPm[1]&&(w.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(w,B){var z=(B+"").match(/([+-]|\d\d)/gi),F;z&&(F=+(z[1]*60)+parseInt(z[2],10),w.timezoneOffset=z[0]==="+"?F:-F)}]};b.dd=b.d,b.dddd=b.ddd,b.DD=b.D,b.mm=b.m,b.hh=b.H=b.HH=b.h,b.MM=b.M,b.ss=b.s,b.A=b.a,i.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},i.format=function(w,B,z){var F=z||i.i18n;if(typeof w=="number"&&(w=new Date(w)),Object.prototype.toString.call(w)!=="[object Date]"||isNaN(w.getTime()))throw new Error("Invalid Date in fecha.format");B=i.masks[B]||B||i.masks.default;var H=[];return B=B.replace(g,function(ee,ne){return H.push(ne),"@@@"}),B=B.replace(a,function(ee){return ee in R?R[ee](w,F):ee.slice(1,ee.length-1)}),B.replace(/@@@/g,function(){return H.shift()})},i.parse=function(w,B,z){var F=z||i.i18n;if(typeof B!="string")throw new Error("Invalid format in fecha.parse");if(B=i.masks[B]||B,w.length>1e3)return null;var H={},ee=[],ne=[];B=B.replace(g,function(_e,W){return ne.push(W),"@@@"});var se=O(B).replace(a,function(_e){if(b[_e]){var W=b[_e];return ee.push(W[1]),"("+W[0]+")"}return _e});se=se.replace(/@@@/g,function(){return ne.shift()});var me=w.match(new RegExp(se,"i"));if(!me)return null;for(var pe=1;pe<me.length;pe++)ee[pe-1](H,me[pe],F);var Se=new Date;H.isPm===!0&&H.hour!=null&&+H.hour!=12?H.hour=+H.hour+12:H.isPm===!1&&+H.hour==12&&(H.hour=0);var ye;return H.timezoneOffset!=null?(H.minute=+(H.minute||0)-+H.timezoneOffset,ye=new Date(Date.UTC(H.year||Se.getFullYear(),H.month||0,H.day||1,H.hour||0,H.minute||0,H.second||0,H.millisecond||0))):ye=new Date(H.year||Se.getFullYear(),H.month||0,H.day||1,H.hour||0,H.minute||0,H.second||0,H.millisecond||0),ye},e.exports?e.exports=i:n.fecha=i})(void 0)}(Fx)),Fx.exports}var $r={},am={},kO;function aY(){return kO||(kO=1,am.__esModule=!0,am.default={el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},empty:{description:"\u6682\u65E0\u6570\u636E"}}}),am}var Px,CO;function oY(){if(CO)return Px;CO=1;var e=function(_){return n(_)&&!i(_)};function n(N){return!!N&&typeof N=="object"}function i(N){var _=Object.prototype.toString.call(N);return _==="[object RegExp]"||_==="[object Date]"||c(N)}var a=typeof Symbol=="function"&&Symbol.for,s=a?Symbol.for("react.element"):60103;function c(N){return N.$$typeof===s}function p(N){return Array.isArray(N)?[]:{}}function m(N,_){var S=_&&_.clone===!0;return S&&e(N)?O(p(N),N,_):N}function g(N,_,S){var M=N.slice();return _.forEach(function(P,T){typeof M[T]>"u"?M[T]=m(P,S):e(P)?M[T]=O(N[T],P,S):N.indexOf(P)===-1&&M.push(m(P,S))}),M}function y(N,_,S){var M={};return e(N)&&Object.keys(N).forEach(function(P){M[P]=m(N[P],S)}),Object.keys(_).forEach(function(P){!e(_[P])||!N[P]?M[P]=m(_[P],S):M[P]=O(N[P],_[P],S)}),M}function O(N,_,S){var M=Array.isArray(_),P=Array.isArray(N),T=S||{arrayMerge:g},R=M===P;if(R)if(M){var b=T.arrayMerge||g;return b(N,_,S)}else return y(N,_,S);else return m(_,S)}O.all=function(_,S){if(!Array.isArray(_)||_.length<2)throw new Error("first argument should be an array with at least two elements");return _.reduce(function(M,P){return O(M,P,S)})};var E=O;return Px=E,Px}var om={},lt={},Vi={},SO;function DO(){if(SO)return Vi;SO=1,Vi.__esModule=!0,Vi.isDefined=Vi.isUndefined=Vi.isFunction=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};Vi.isString=s,Vi.isObject=c,Vi.isHtmlElement=p;var n=Mi.default,i=a(n);function a(g){return g&&g.__esModule?g:{default:g}}function s(g){return Object.prototype.toString.call(g)==="[object String]"}function c(g){return Object.prototype.toString.call(g)==="[object Object]"}function p(g){return g&&g.nodeType===Node.ELEMENT_NODE}var m=function(y){var O={};return y&&O.toString.call(y)==="[object Function]"};return typeof/./!="function"&&(typeof Int8Array>"u"?"undefined":e(Int8Array))!=="object"&&(i.default.prototype.$isServer||typeof document.childNodes!="function")&&(Vi.isFunction=m=function(y){return typeof y=="function"||!1}),Vi.isFunction=m,Vi.isUndefined=function(y){return y===void 0},Vi.isDefined=function(y){return y!=null},Vi}var IO;function Dr(){if(IO)return lt;IO=1,lt.__esModule=!0,lt.isMac=lt.isEmpty=lt.isEqual=lt.arrayEquals=lt.looseEqual=lt.capitalize=lt.kebabCase=lt.autoprefixer=lt.isFirefox=lt.isEdge=lt.isIE=lt.coerceTruthyValueToArray=lt.arrayFind=lt.arrayFindIndex=lt.escapeRegexpString=lt.valueEquals=lt.generateId=lt.getValueByPath=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T};lt.noop=p,lt.hasOwn=m,lt.toObject=y,lt.getPropByPath=O,lt.rafThrottle=M,lt.objToArray=P;var n=Mi.default,i=s(n),a=DO();function s(T){return T&&T.__esModule?T:{default:T}}var c=Object.prototype.hasOwnProperty;function p(){}function m(T,R){return c.call(T,R)}function g(T,R){for(var b in R)T[b]=R[b];return T}function y(T){for(var R={},b=0;b<T.length;b++)T[b]&&g(R,T[b]);return R}lt.getValueByPath=function(R,b){b=b||"";for(var w=b.split("."),B=R,z=null,F=0,H=w.length;F<H;F++){var ee=w[F];if(!B)break;if(F===H-1){z=B[ee];break}B=B[ee]}return z};function O(T,R,b){var w=T;R=R.replace(/\[(\w+)\]/g,".$1"),R=R.replace(/^\./,"");for(var B=R.split("."),z=0,F=B.length;z<F-1&&!(!w&&!b);++z){var H=B[z];if(H in w)w=w[H];else{if(b)throw new Error("please transfer a valid prop path to form item!");break}}return{o:w,k:B[z],v:w?w[B[z]]:null}}lt.generateId=function(){return Math.floor(Math.random()*1e4)},lt.valueEquals=function(R,b){if(R===b)return!0;if(!(R instanceof Array)||!(b instanceof Array)||R.length!==b.length)return!1;for(var w=0;w!==R.length;++w)if(R[w]!==b[w])return!1;return!0},lt.escapeRegexpString=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String(R).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var E=lt.arrayFindIndex=function(R,b){for(var w=0;w!==R.length;++w)if(b(R[w]))return w;return-1};lt.arrayFind=function(R,b){var w=E(R,b);return w!==-1?R[w]:void 0},lt.coerceTruthyValueToArray=function(R){return Array.isArray(R)?R:R?[R]:[]},lt.isIE=function(){return!i.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},lt.isEdge=function(){return!i.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},lt.isFirefox=function(){return!i.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},lt.autoprefixer=function(R){if((typeof R>"u"?"undefined":e(R))!=="object")return R;var b=["transform","transition","animation"],w=["ms-","webkit-"];return b.forEach(function(B){var z=R[B];B&&z&&w.forEach(function(F){R[F+B]=z})}),R},lt.kebabCase=function(R){var b=/([^-])([A-Z])/g;return R.replace(b,"$1-$2").replace(b,"$1-$2").toLowerCase()},lt.capitalize=function(R){return(0,a.isString)(R)?R.charAt(0).toUpperCase()+R.slice(1):R};var N=lt.looseEqual=function(R,b){var w=(0,a.isObject)(R),B=(0,a.isObject)(b);return w&&B?JSON.stringify(R)===JSON.stringify(b):!w&&!B?String(R)===String(b):!1},_=lt.arrayEquals=function(R,b){if(R=R||[],b=b||[],R.length!==b.length)return!1;for(var w=0;w<R.length;w++)if(!N(R[w],b[w]))return!1;return!0};lt.isEqual=function(R,b){return Array.isArray(R)&&Array.isArray(b)?_(R,b):N(R,b)};var S=lt.isEmpty=function(R){if(R==null)return!0;if(typeof R=="boolean")return!1;if(typeof R=="number")return!R;if(R instanceof Error)return R.message==="";switch(Object.prototype.toString.call(R)){case"[object String]":case"[object Array]":return!R.length;case"[object File]":case"[object Map]":case"[object Set]":return!R.size;case"[object Object]":return!Object.keys(R).length}return!1};function M(T){var R=!1;return function(){for(var b=this,w=arguments.length,B=Array(w),z=0;z<w;z++)B[z]=arguments[z];R||(R=!0,window.requestAnimationFrame(function(F){T.apply(b,B),R=!1}))}}function P(T){return Array.isArray(T)?T:S(T)?[]:[T]}return lt.isMac=function(){return!i.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)},lt}var BO;function sY(){if(BO)return om;BO=1,om.__esModule=!0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};om.default=function(a){function s(c){for(var p=arguments.length,m=Array(p>1?p-1:0),g=1;g<p;g++)m[g-1]=arguments[g];return m.length===1&&e(m[0])==="object"&&(m=m[0]),(!m||!m.hasOwnProperty)&&(m={}),c.replace(i,function(y,O,E,N){var _=void 0;return c[N-1]==="{"&&c[N+y.length]==="}"?E:(_=(0,n.hasOwn)(m,E)?m[E]:null,_==null?"":_)})}return s};var n=Dr(),i=/(%|)\{([0-9a-zA-Z_]+)\}/g;return om}var OO;function Rx(){if(OO)return $r;OO=1,$r.__esModule=!0,$r.i18n=$r.use=$r.t=void 0;var e=aY(),n=g(e),i=Mi.default,a=g(i),s=oY(),c=g(s),p=sY(),m=g(p);function g(P){return P&&P.__esModule?P:{default:P}}var y=(0,m.default)(a.default),O=n.default,E=!1,N=function(){var T=Object.getPrototypeOf(this||a.default).$t;if(typeof T=="function"&&!!a.default.locale)return E||(E=!0,a.default.locale(a.default.config.lang,(0,c.default)(O,a.default.locale(a.default.config.lang)||{},{clone:!0}))),T.apply(this,arguments)},_=$r.t=function(T,R){var b=N.apply(this,arguments);if(b!=null)return b;for(var w=T.split("."),B=O,z=0,F=w.length;z<F;z++){var H=w[z];if(b=B[H],z===F-1)return y(b,R);if(!b)return"";B=b}return""},S=$r.use=function(T){O=T||O},M=$r.i18n=function(T){N=T||N};return $r.default={use:S,t:_,i18n:M},$r}var TO;function lY(){if(TO)return Ue;TO=1,Ue.__esModule=!0,Ue.validateRangeInOneMonth=Ue.extractTimeFormat=Ue.extractDateFormat=Ue.nextYear=Ue.prevYear=Ue.nextMonth=Ue.prevMonth=Ue.changeYearMonthAndClampDate=Ue.timeWithinRange=Ue.limitTimeRange=Ue.clearMilliseconds=Ue.clearTime=Ue.modifyWithTimeString=Ue.modifyTime=Ue.modifyDate=Ue.range=Ue.getRangeMinutes=Ue.getMonthDays=Ue.getPrevMonthLastDays=Ue.getRangeHours=Ue.getWeekNumber=Ue.getStartDateOfMonth=Ue.nextDate=Ue.prevDate=Ue.getFirstDayOfMonth=Ue.getDayCountOfYear=Ue.getDayCountOfMonth=Ue.parseDate=Ue.formatDate=Ue.isDateObject=Ue.isDate=Ue.toDate=Ue.getI18nSettings=void 0;var e=EO(),n=a(e),i=Rx();function a(b){return b&&b.__esModule?b:{default:b}}var s=["sun","mon","tue","wed","thu","fri","sat"],c=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],p=function(w,B){for(var z=[],F=w;F<=B;F++)z.push(F);return z},m=Ue.getI18nSettings=function(){return{dayNamesShort:s.map(function(w){return(0,i.t)("el.datepicker.weeks."+w)}),dayNames:s.map(function(w){return(0,i.t)("el.datepicker.weeks."+w)}),monthNamesShort:c.map(function(w){return(0,i.t)("el.datepicker.months."+w)}),monthNames:c.map(function(w,B){return(0,i.t)("el.datepicker.month"+(B+1))}),amPm:["am","pm"]}},g=Ue.toDate=function(w){return y(w)?new Date(w):null},y=Ue.isDate=function(w){return!(w==null||isNaN(new Date(w).getTime())||Array.isArray(w))};Ue.isDateObject=function(w){return w instanceof Date},Ue.formatDate=function(w,B){return w=g(w),w?n.default.format(w,B||"yyyy-MM-dd",m()):""};var O=Ue.parseDate=function(w,B){return n.default.parse(w,B||"yyyy-MM-dd",m())},E=Ue.getDayCountOfMonth=function(w,B){return isNaN(+B)?31:new Date(w,+B+1,0).getDate()};Ue.getDayCountOfYear=function(w){var B=w%400===0||w%100!==0&&w%4===0;return B?366:365},Ue.getFirstDayOfMonth=function(w){var B=new Date(w.getTime());return B.setDate(1),B.getDay()};var N=Ue.prevDate=function(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()-B)};Ue.nextDate=function(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()+B)},Ue.getStartDateOfMonth=function(w,B){var z=new Date(w,B,1),F=z.getDay();return F===0?N(z,7):N(z,F)},Ue.getWeekNumber=function(w){if(!y(w))return null;var B=new Date(w.getTime());B.setHours(0,0,0,0),B.setDate(B.getDate()+3-(B.getDay()+6)%7);var z=new Date(B.getFullYear(),0,4);return 1+Math.round(((B.getTime()-z.getTime())/864e5-3+(z.getDay()+6)%7)/7)},Ue.getRangeHours=function(w){var B=[],z=[];if((w||[]).forEach(function(ee){var ne=ee.map(function(se){return se.getHours()});z=z.concat(p(ne[0],ne[1]))}),z.length)for(var F=0;F<24;F++)B[F]=z.indexOf(F)===-1;else for(var H=0;H<24;H++)B[H]=!1;return B},Ue.getPrevMonthLastDays=function(w,B){if(B<=0)return[];var z=new Date(w.getTime());z.setDate(0);var F=z.getDate();return S(B).map(function(H,ee){return F-(B-ee-1)})},Ue.getMonthDays=function(w){var B=new Date(w.getFullYear(),w.getMonth()+1,0),z=B.getDate();return S(z).map(function(F,H){return H+1})};function _(b,w,B,z){for(var F=w;F<B;F++)b[F]=z}Ue.getRangeMinutes=function(w,B){var z=new Array(60);return w.length>0?w.forEach(function(F){var H=F[0],ee=F[1],ne=H.getHours(),se=H.getMinutes(),me=ee.getHours(),pe=ee.getMinutes();ne===B&&me!==B?_(z,se,60,!0):ne===B&&me===B?_(z,se,pe+1,!0):ne!==B&&me===B?_(z,0,pe+1,!0):ne<B&&me>B&&_(z,0,60,!0)}):_(z,0,60,!0),z};var S=Ue.range=function(w){return Array.apply(null,{length:w}).map(function(B,z){return z})},M=Ue.modifyDate=function(w,B,z,F){return new Date(B,z,F,w.getHours(),w.getMinutes(),w.getSeconds(),w.getMilliseconds())},P=Ue.modifyTime=function(w,B,z,F){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),B,z,F,w.getMilliseconds())};Ue.modifyWithTimeString=function(w,B){return w==null||!B?w:(B=O(B,"HH:mm:ss"),P(w,B.getHours(),B.getMinutes(),B.getSeconds()))},Ue.clearTime=function(w){return new Date(w.getFullYear(),w.getMonth(),w.getDate())},Ue.clearMilliseconds=function(w){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),w.getHours(),w.getMinutes(),w.getSeconds(),0)};var T=Ue.limitTimeRange=function(w,B){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(B.length===0)return w;var F=function(Se){return n.default.parse(n.default.format(Se,z),z)},H=F(w),ee=B.map(function(pe){return pe.map(F)});if(ee.some(function(pe){return H>=pe[0]&&H<=pe[1]}))return w;var ne=ee[0][0],se=ee[0][0];ee.forEach(function(pe){ne=new Date(Math.min(pe[0],ne)),se=new Date(Math.max(pe[1],ne))});var me=H<ne?ne:se;return M(me,w.getFullYear(),w.getMonth(),w.getDate())};Ue.timeWithinRange=function(w,B,z){var F=T(w,B,z);return F.getTime()===w.getTime()};var R=Ue.changeYearMonthAndClampDate=function(w,B,z){var F=Math.min(w.getDate(),E(B,z));return M(w,B,z,F)};return Ue.prevMonth=function(w){var B=w.getFullYear(),z=w.getMonth();return z===0?R(w,B-1,11):R(w,B,z-1)},Ue.nextMonth=function(w){var B=w.getFullYear(),z=w.getMonth();return z===11?R(w,B+1,0):R(w,B,z+1)},Ue.prevYear=function(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=w.getFullYear(),F=w.getMonth();return R(w,z-B,F)},Ue.nextYear=function(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=w.getFullYear(),F=w.getMonth();return R(w,z+B,F)},Ue.extractDateFormat=function(w){return w.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},Ue.extractTimeFormat=function(w){return w.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},Ue.validateRangeInOneMonth=function(w,B){return w.getMonth()===B.getMonth()&&w.getFullYear()===B.getFullYear()},Ue}var on={},NO;function Sa(){if(NO)return on;NO=1,on.__esModule=!0,on.isInContainer=on.getScrollContainer=on.isScroll=on.getStyle=on.once=on.off=on.on=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R};on.hasClass=N,on.addClass=_,on.removeClass=S,on.setStyle=P;var n=Mi.default,i=a(n);function a(R){return R&&R.__esModule?R:{default:R}}var s=i.default.prototype.$isServer,c=/([\:\-\_]+(.))/g,p=/^moz([A-Z])/,m=s?0:Number(document.documentMode),g=function(b){return(b||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},y=function(b){return b.replace(c,function(w,B,z,F){return F?z.toUpperCase():z}).replace(p,"Moz$1")},O=on.on=function(){return!s&&document.addEventListener?function(R,b,w){R&&b&&w&&R.addEventListener(b,w,!1)}:function(R,b,w){R&&b&&w&&R.attachEvent("on"+b,w)}}(),E=on.off=function(){return!s&&document.removeEventListener?function(R,b,w){R&&b&&R.removeEventListener(b,w,!1)}:function(R,b,w){R&&b&&R.detachEvent("on"+b,w)}}();on.once=function(b,w,B){var z=function F(){B&&B.apply(this,arguments),E(b,w,F)};O(b,w,z)};function N(R,b){if(!R||!b)return!1;if(b.indexOf(" ")!==-1)throw new Error("className should not contain space.");return R.classList?R.classList.contains(b):(" "+R.className+" ").indexOf(" "+b+" ")>-1}function _(R,b){if(!!R){for(var w=R.className,B=(b||"").split(" "),z=0,F=B.length;z<F;z++){var H=B[z];!H||(R.classList?R.classList.add(H):N(R,H)||(w+=" "+H))}R.classList||R.setAttribute("class",w)}}function S(R,b){if(!(!R||!b)){for(var w=b.split(" "),B=" "+R.className+" ",z=0,F=w.length;z<F;z++){var H=w[z];!H||(R.classList?R.classList.remove(H):N(R,H)&&(B=B.replace(" "+H+" "," ")))}R.classList||R.setAttribute("class",g(B))}}var M=on.getStyle=m<9?function(R,b){if(!s){if(!R||!b)return null;b=y(b),b==="float"&&(b="styleFloat");try{switch(b){case"opacity":try{return R.filters.item("alpha").opacity/100}catch{return 1}default:return R.style[b]||R.currentStyle?R.currentStyle[b]:null}}catch{return R.style[b]}}}:function(R,b){if(!s){if(!R||!b)return null;b=y(b),b==="float"&&(b="cssFloat");try{var w=document.defaultView.getComputedStyle(R,"");return R.style[b]||w?w[b]:null}catch{return R.style[b]}}};function P(R,b,w){if(!(!R||!b))if((typeof b>"u"?"undefined":e(b))==="object")for(var B in b)b.hasOwnProperty(B)&&P(R,B,b[B]);else b=y(b),b==="opacity"&&m<9?R.style.filter=isNaN(w)?"":"alpha(opacity="+w*100+")":R.style[b]=w}var T=on.isScroll=function(b,w){if(!s){var B=w!=null,z=B?w?M(b,"overflow-y"):M(b,"overflow-x"):M(b,"overflow");return z.match(/(scroll|auto|overlay)/)}};return on.getScrollContainer=function(b,w){if(!s){for(var B=b;B;){if([window,document,document.documentElement].includes(B))return window;if(T(B,w))return B;B=B.parentNode}return B}},on.isInContainer=function(b,w){if(s||!b||!w)return!1;var B=b.getBoundingClientRect(),z=void 0;return[window,document,document.documentElement,null,void 0].includes(w)?z={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:z=w.getBoundingClientRect(),B.top<z.bottom&&B.bottom>z.top&&B.right>z.left&&B.left<z.right},on}var sm={},MO;function Is(){if(MO)return sm;MO=1,sm.__esModule=!0;function e(n,i,a){this.$children.forEach(function(s){var c=s.$options.componentName;c===n?s.$emit.apply(s,[i].concat(a)):e.apply(s,[n,i].concat([a]))})}return sm.default={methods:{dispatch:function(i,a,s){for(var c=this.$parent||this.$root,p=c.$options.componentName;c&&(!p||p!==i);)c=c.$parent,c&&(p=c.$options.componentName);c&&c.$emit.apply(c,[a].concat(s))},broadcast:function(i,a,s){e.call(this,i,a,s)}}},sm}var lm={},FO;function jx(){if(FO)return lm;FO=1,lm.__esModule=!0;var e=Rx();return lm.default={methods:{t:function(){for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return e.t.apply(this,a)}}},lm}var cm={},dc={},um={},PO;function dm(){return PO||(PO=1,um.__esModule=!0,um.default=function(e){for(var n=1,i=arguments.length;n<i;n++){var a=arguments[n]||{};for(var s in a)if(a.hasOwnProperty(s)){var c=a[s];c!==void 0&&(e[s]=c)}}return e}),um}var fm={},RO;function cY(){if(RO)return fm;RO=1,fm.__esModule=!0;var e=Mi.default,n=a(e),i=Sa();function a(E){return E&&E.__esModule?E:{default:E}}var s=!1,c=!1,p=void 0,m=function(){if(!n.default.prototype.$isServer){var N=y.modalDom;return N?s=!0:(s=!1,N=document.createElement("div"),y.modalDom=N,N.addEventListener("touchmove",function(_){_.preventDefault(),_.stopPropagation()}),N.addEventListener("click",function(){y.doOnModalClick&&y.doOnModalClick()})),N}},g={},y={modalFade:!0,getInstance:function(N){return g[N]},register:function(N,_){N&&_&&(g[N]=_)},deregister:function(N){N&&(g[N]=null,delete g[N])},nextZIndex:function(){return y.zIndex++},modalStack:[],doOnModalClick:function(){var N=y.modalStack[y.modalStack.length-1];if(!!N){var _=y.getInstance(N.id);_&&_.closeOnClickModal&&_.close()}},openModal:function(N,_,S,M,P){if(!n.default.prototype.$isServer&&!(!N||_===void 0)){this.modalFade=P;for(var T=this.modalStack,R=0,b=T.length;R<b;R++){var w=T[R];if(w.id===N)return}var B=m();if((0,i.addClass)(B,"v-modal"),this.modalFade&&!s&&(0,i.addClass)(B,"v-modal-enter"),M){var z=M.trim().split(/\s+/);z.forEach(function(F){return(0,i.addClass)(B,F)})}setTimeout(function(){(0,i.removeClass)(B,"v-modal-enter")},200),S&&S.parentNode&&S.parentNode.nodeType!==11?S.parentNode.appendChild(B):document.body.appendChild(B),_&&(B.style.zIndex=_),B.tabIndex=0,B.style.display="",this.modalStack.push({id:N,zIndex:_,modalClass:M})}},closeModal:function(N){var _=this.modalStack,S=m();if(_.length>0){var M=_[_.length-1];if(M.id===N){if(M.modalClass){var P=M.modalClass.trim().split(/\s+/);P.forEach(function(R){return(0,i.removeClass)(S,R)})}_.pop(),_.length>0&&(S.style.zIndex=_[_.length-1].zIndex)}else for(var T=_.length-1;T>=0;T--)if(_[T].id===N){_.splice(T,1);break}}_.length===0&&(this.modalFade&&(0,i.addClass)(S,"v-modal-leave"),setTimeout(function(){_.length===0&&(S.parentNode&&S.parentNode.removeChild(S),S.style.display="none",y.modalDom=void 0),(0,i.removeClass)(S,"v-modal-leave")},200))}};Object.defineProperty(y,"zIndex",{configurable:!0,get:function(){return c||(p=p||(n.default.prototype.$ELEMENT||{}).zIndex||2e3,c=!0),p},set:function(N){p=N}});var O=function(){if(!n.default.prototype.$isServer&&y.modalStack.length>0){var N=y.modalStack[y.modalStack.length-1];if(!N)return;var _=y.getInstance(N.id);return _}};return n.default.prototype.$isServer||window.addEventListener("keydown",function(E){if(E.keyCode===27){var N=O();N&&N.closeOnPressEscape&&(N.handleClose?N.handleClose():N.handleAction?N.handleAction("cancel"):N.close())}}),fm.default=y,fm}var pm={},jO;function Lx(){if(jO)return pm;jO=1,pm.__esModule=!0,pm.default=function(){if(n.default.prototype.$isServer)return 0;if(a!==void 0)return a;var s=document.createElement("div");s.className="el-scrollbar__wrap",s.style.visibility="hidden",s.style.width="100px",s.style.position="absolute",s.style.top="-9999px",document.body.appendChild(s);var c=s.offsetWidth;s.style.overflow="scroll";var p=document.createElement("div");p.style.width="100%",s.appendChild(p);var m=p.offsetWidth;return s.parentNode.removeChild(s),a=c-m,a};var e=Mi.default,n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}var a=void 0;return pm}var LO;function QO(){if(LO)return dc;LO=1,dc.__esModule=!0,dc.PopupManager=void 0;var e=Mi.default,n=y(e),i=dm(),a=y(i),s=cY(),c=y(s),p=Lx(),m=y(p),g=Sa();function y(N){return N&&N.__esModule?N:{default:N}}var O=1,E=void 0;return dc.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+O++,c.default.register(this._popupId,this)},beforeDestroy:function(){c.default.deregister(this._popupId),c.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(_){var S=this;if(_){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,n.default.nextTick(function(){S.open()}))}else this.close()}},methods:{open:function(_){var S=this;this.rendered||(this.rendered=!0);var M=(0,a.default)({},this.$props||this,_);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var P=Number(M.openDelay);P>0?this._openTimer=setTimeout(function(){S._openTimer=null,S.doOpen(M)},P):this.doOpen(M)},doOpen:function(_){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var S=this.$el,M=_.modal,P=_.zIndex;if(P&&(c.default.zIndex=P),M&&(this._closing&&(c.default.closeModal(this._popupId),this._closing=!1),c.default.openModal(this._popupId,c.default.nextZIndex(),this.modalAppendToBody?void 0:S,_.modalClass,_.modalFade),_.lockScroll)){this.withoutHiddenClass=!(0,g.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,g.getStyle)(document.body,"paddingRight"),10)),E=(0,m.default)();var T=document.documentElement.clientHeight<document.body.scrollHeight,R=(0,g.getStyle)(document.body,"overflowY");E>0&&(T||R==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+E+"px"),(0,g.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(S).position==="static"&&(S.style.position="absolute"),S.style.zIndex=c.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var _=this;if(!(this.willClose&&!this.willClose())){this._openTimer!==null&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var S=Number(this.closeDelay);S>0?this._closeTimer=setTimeout(function(){_._closeTimer=null,_.doClose()},S):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){c.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,g.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},dc.PopupManager=c.default,dc}var Qx={exports:{}},zO;function uY(){return zO||(zO=1,function(e){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};(function(i,a){n(e)==="object"&&e.exports?e.exports=a():i.Popper=a()})(void 0,function(){var i=window,a={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function s(b,w,B){this._reference=b.jquery?b[0]:b,this.state={};var z=typeof w>"u"||w===null,F=w&&Object.prototype.toString.call(w)==="[object Object]";return z||F?this._popper=this.parse(F?w:{}):this._popper=w.jquery?w[0]:w,this._options=Object.assign({},a,B),this._options.modifiers=this._options.modifiers.map(function(H){if(this._options.modifiersIgnored.indexOf(H)===-1)return H==="applyStyle"&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[H]||H}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),_(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}s.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[R("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},s.prototype.update=function(){var b={instance:this,styles:{}};b.placement=this._options.placement,b._originalPlacement=this._options.placement,b.offsets=this._getOffsets(this._popper,this._reference,b.placement),b.boundaries=this._getBoundaries(b,this._options.boundariesPadding,this._options.boundariesElement),b=this.runModifiers(b,this._options.modifiers),typeof this.state.updateCallback=="function"&&this.state.updateCallback(b)},s.prototype.onCreate=function(b){return b(this),this},s.prototype.onUpdate=function(b){return this.state.updateCallback=b,this},s.prototype.parse=function(b){var w={tagName:"div",classNames:["popper"],attributes:[],parent:i.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};b=Object.assign({},w,b);var B=i.document,z=B.createElement(b.tagName);if(ee(z,b.classNames),ne(z,b.attributes),b.contentType==="node"?z.appendChild(b.content.jquery?b.content[0]:b.content):b.contentType==="html"?z.innerHTML=b.content:z.textContent=b.content,b.arrowTagName){var F=B.createElement(b.arrowTagName);ee(F,b.arrowClassNames),ne(F,b.arrowAttributes),z.appendChild(F)}var H=b.parent.jquery?b.parent[0]:b.parent;if(typeof H=="string"){if(H=B.querySelectorAll(b.parent),H.length>1&&console.warn("WARNING: the given `parent` query("+b.parent+") matched more than one element, the first one will be used"),H.length===0)throw"ERROR: the given `parent` doesn't exists!";H=H[0]}return H.length>1&&!(H instanceof Element)&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),H=H[0]),H.appendChild(z),z;function ee(se,me){me.forEach(function(pe){se.classList.add(pe)})}function ne(se,me){me.forEach(function(pe){se.setAttribute(pe.split(":")[0],pe.split(":")[1]||"")})}},s.prototype._getPosition=function(b,w){if(O(w),this._options.forceAbsolute)return"absolute";var B=N(w);return B?"fixed":"absolute"},s.prototype._getOffsets=function(b,w,B){B=B.split("-")[0];var z={};z.position=this.state.position;var F=z.position==="fixed",H=T(w,O(b),F),ee=c(b);return["right","left"].indexOf(B)!==-1?(z.top=H.top+H.height/2-ee.height/2,B==="left"?z.left=H.left-ee.width:z.left=H.right):(z.left=H.left+H.width/2-ee.width/2,B==="top"?z.top=H.top-ee.height:z.top=H.bottom),z.width=ee.width,z.height=ee.height,{popper:z,reference:H}},s.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),i.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var b=E(this._reference);(b===i.document.body||b===i.document.documentElement)&&(b=i),b.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=b}},s.prototype._removeEventListeners=function(){i.removeEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},s.prototype._getBoundaries=function(b,w,B){var z={},F,H;if(B==="window"){var ee=i.document.body,ne=i.document.documentElement;H=Math.max(ee.scrollHeight,ee.offsetHeight,ne.clientHeight,ne.scrollHeight,ne.offsetHeight),F=Math.max(ee.scrollWidth,ee.offsetWidth,ne.clientWidth,ne.scrollWidth,ne.offsetWidth),z={top:0,right:F,bottom:H,left:0}}else if(B==="viewport"){var se=O(this._popper),me=E(this._popper),pe=M(se),Se=function(re){return re==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):re.scrollTop},ye=function(re){return re==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):re.scrollLeft},_e=b.offsets.popper.position==="fixed"?0:Se(me),W=b.offsets.popper.position==="fixed"?0:ye(me);z={top:0-(pe.top-_e),right:i.document.documentElement.clientWidth-(pe.left-W),bottom:i.document.documentElement.clientHeight-(pe.top-_e),left:0-(pe.left-W)}}else O(this._popper)===B?z={top:0,left:0,right:B.clientWidth,bottom:B.clientHeight}:z=M(B);return z.left+=w,z.right-=w,z.top=z.top+w,z.bottom=z.bottom-w,z},s.prototype.runModifiers=function(b,w,B){var z=w.slice();return B!==void 0&&(z=this._options.modifiers.slice(0,g(this._options.modifiers,B))),z.forEach(function(F){S(F)&&(b=F.call(this,b))}.bind(this)),b},s.prototype.isModifierRequired=function(b,w){var B=g(this._options.modifiers,b);return!!this._options.modifiers.slice(0,B).filter(function(z){return z===w}).length},s.prototype.modifiers={},s.prototype.modifiers.applyStyle=function(b){var w={position:b.offsets.popper.position},B=Math.round(b.offsets.popper.left),z=Math.round(b.offsets.popper.top),F;return this._options.gpuAcceleration&&(F=R("transform"))?(w[F]="translate3d("+B+"px, "+z+"px, 0)",w.top=0,w.left=0):(w.left=B,w.top=z),Object.assign(w,b.styles),_(this._popper,w),this._popper.setAttribute("x-placement",b.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&b.offsets.arrow&&_(b.arrowElement,b.offsets.arrow),b},s.prototype.modifiers.shift=function(b){var w=b.placement,B=w.split("-")[0],z=w.split("-")[1];if(z){var F=b.offsets.reference,H=m(b.offsets.popper),ee={y:{start:{top:F.top},end:{top:F.top+F.height-H.height}},x:{start:{left:F.left},end:{left:F.left+F.width-H.width}}},ne=["bottom","top"].indexOf(B)!==-1?"x":"y";b.offsets.popper=Object.assign(H,ee[ne][z])}return b},s.prototype.modifiers.preventOverflow=function(b){var w=this._options.preventOverflowOrder,B=m(b.offsets.popper),z={left:function(){var H=B.left;return B.left<b.boundaries.left&&(H=Math.max(B.left,b.boundaries.left)),{left:H}},right:function(){var H=B.left;return B.right>b.boundaries.right&&(H=Math.min(B.left,b.boundaries.right-B.width)),{left:H}},top:function(){var H=B.top;return B.top<b.boundaries.top&&(H=Math.max(B.top,b.boundaries.top)),{top:H}},bottom:function(){var H=B.top;return B.bottom>b.boundaries.bottom&&(H=Math.min(B.top,b.boundaries.bottom-B.height)),{top:H}}};return w.forEach(function(F){b.offsets.popper=Object.assign(B,z[F]())}),b},s.prototype.modifiers.keepTogether=function(b){var w=m(b.offsets.popper),B=b.offsets.reference,z=Math.floor;return w.right<z(B.left)&&(b.offsets.popper.left=z(B.left)-w.width),w.left>z(B.right)&&(b.offsets.popper.left=z(B.right)),w.bottom<z(B.top)&&(b.offsets.popper.top=z(B.top)-w.height),w.top>z(B.bottom)&&(b.offsets.popper.top=z(B.bottom)),b},s.prototype.modifiers.flip=function(b){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),b;if(b.flipped&&b.placement===b._originalPlacement)return b;var w=b.placement.split("-")[0],B=p(w),z=b.placement.split("-")[1]||"",F=[];return this._options.flipBehavior==="flip"?F=[w,B]:F=this._options.flipBehavior,F.forEach(function(H,ee){if(!(w!==H||F.length===ee+1)){w=b.placement.split("-")[0],B=p(w);var ne=m(b.offsets.popper),se=["right","bottom"].indexOf(w)!==-1;(se&&Math.floor(b.offsets.reference[w])>Math.floor(ne[B])||!se&&Math.floor(b.offsets.reference[w])<Math.floor(ne[B]))&&(b.flipped=!0,b.placement=F[ee+1],z&&(b.placement+="-"+z),b.offsets.popper=this._getOffsets(this._popper,this._reference,b.placement).popper,b=this.runModifiers(b,this._options.modifiers,this._flip))}}.bind(this)),b},s.prototype.modifiers.offset=function(b){var w=this._options.offset,B=b.offsets.popper;return b.placement.indexOf("left")!==-1?B.top-=w:b.placement.indexOf("right")!==-1?B.top+=w:b.placement.indexOf("top")!==-1?B.left-=w:b.placement.indexOf("bottom")!==-1&&(B.left+=w),b},s.prototype.modifiers.arrow=function(b){var w=this._options.arrowElement,B=this._options.arrowOffset;if(typeof w=="string"&&(w=this._popper.querySelector(w)),!w)return b;if(!this._popper.contains(w))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),b;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),b;var z={},F=b.placement.split("-")[0],H=m(b.offsets.popper),ee=b.offsets.reference,ne=["left","right"].indexOf(F)!==-1,se=ne?"height":"width",me=ne?"top":"left",pe=ne?"left":"top",Se=ne?"bottom":"right",ye=c(w)[se];ee[Se]-ye<H[me]&&(b.offsets.popper[me]-=H[me]-(ee[Se]-ye)),ee[me]+ye>H[Se]&&(b.offsets.popper[me]+=ee[me]+ye-H[Se]);var _e=ee[me]+(B||ee[se]/2-ye/2),W=_e-H[me];return W=Math.max(Math.min(H[se]-ye-8,W),8),z[me]=W,z[pe]="",b.offsets.arrow=z,b.arrowElement=w,b};function c(b){var w=b.style.display,B=b.style.visibility;b.style.display="block",b.style.visibility="hidden",b.offsetWidth;var z=i.getComputedStyle(b),F=parseFloat(z.marginTop)+parseFloat(z.marginBottom),H=parseFloat(z.marginLeft)+parseFloat(z.marginRight),ee={width:b.offsetWidth+H,height:b.offsetHeight+F};return b.style.display=w,b.style.visibility=B,ee}function p(b){var w={left:"right",right:"left",bottom:"top",top:"bottom"};return b.replace(/left|right|bottom|top/g,function(B){return w[B]})}function m(b){var w=Object.assign({},b);return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function g(b,w){var B=0,z;for(z in b){if(b[z]===w)return B;B++}return null}function y(b,w){var B=i.getComputedStyle(b,null);return B[w]}function O(b){var w=b.offsetParent;return w===i.document.body||!w?i.document.documentElement:w}function E(b){var w=b.parentNode;return w?w===i.document?i.document.body.scrollTop||i.document.body.scrollLeft?i.document.body:i.document.documentElement:["scroll","auto"].indexOf(y(w,"overflow"))!==-1||["scroll","auto"].indexOf(y(w,"overflow-x"))!==-1||["scroll","auto"].indexOf(y(w,"overflow-y"))!==-1?w:E(b.parentNode):b}function N(b){return b===i.document.body?!1:y(b,"position")==="fixed"?!0:b.parentNode?N(b.parentNode):b}function _(b,w){function B(z){return z!==""&&!isNaN(parseFloat(z))&&isFinite(z)}Object.keys(w).forEach(function(z){var F="";["width","height","top","right","bottom","left"].indexOf(z)!==-1&&B(w[z])&&(F="px"),b.style[z]=w[z]+F})}function S(b){var w={};return b&&w.toString.call(b)==="[object Function]"}function M(b){var w={width:b.offsetWidth,height:b.offsetHeight,left:b.offsetLeft,top:b.offsetTop};return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function P(b){var w=b.getBoundingClientRect(),B=navigator.userAgent.indexOf("MSIE")!=-1,z=B&&b.tagName==="HTML"?-b.scrollTop:w.top;return{left:w.left,top:z,right:w.right,bottom:w.bottom,width:w.right-w.left,height:w.bottom-z}}function T(b,w,B){var z=P(b),F=P(w);if(B){var H=E(w);F.top+=H.scrollTop,F.bottom+=H.scrollTop,F.left+=H.scrollLeft,F.right+=H.scrollLeft}var ee={top:z.top-F.top,left:z.left-F.left,bottom:z.top-F.top+z.height,right:z.left-F.left+z.width,width:z.width,height:z.height};return ee}function R(b){for(var w=["","ms","webkit","moz","o"],B=0;B<w.length;B++){var z=w[B]?w[B]+b.charAt(0).toUpperCase()+b.slice(1):b;if(typeof i.document.body.style[z]<"u")return z}return null}return Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(w){if(w==null)throw new TypeError("Cannot convert first argument to object");for(var B=Object(w),z=1;z<arguments.length;z++){var F=arguments[z];if(F!=null){F=Object(F);for(var H=Object.keys(F),ee=0,ne=H.length;ee<ne;ee++){var se=H[ee],me=Object.getOwnPropertyDescriptor(F,se);me!==void 0&&me.enumerable&&(B[se]=F[se])}}}return B}}),s})}(Qx)),Qx.exports}var HO;function hm(){if(HO)return cm;HO=1,cm.__esModule=!0;var e=Mi.default,n=a(e),i=QO();function a(p){return p&&p.__esModule?p:{default:p}}var s=n.default.prototype.$isServer?function(){}:uY(),c=function(m){return m.stopPropagation()};return cm.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(m){this.showPopper=m,this.$emit("input",m)}},showPopper:function(m){this.disabled||(m?this.updatePopper():this.destroyPopper(),this.$emit("input",m))}},methods:{createPopper:function(){var m=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,!!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var g=this.popperOptions,y=this.popperElm=this.popperElm||this.popper||this.$refs.popper,O=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!O&&this.$slots.reference&&this.$slots.reference[0]&&(O=this.referenceElm=this.$slots.reference[0].elm),!(!y||!O)&&(this.visibleArrow&&this.appendArrow(y),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),g.placement=this.currentPlacement,g.offset=this.offset,g.arrowOffset=this.arrowOffset,this.popperJS=new s(O,y,g),this.popperJS.onCreate(function(E){m.$emit("created",m),m.resetTransformOrigin(),m.$nextTick(m.updatePopper)}),typeof g.onUpdate=="function"&&this.popperJS.onUpdate(g.onUpdate),this.popperJS._popper.style.zIndex=i.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",c))}},updatePopper:function(){var m=this.popperJS;m?(m.update(),m._popper&&(m._popper.style.zIndex=i.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(m){!this.popperJS||this.showPopper&&!m||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(!!this.transformOrigin){var m={top:"bottom",bottom:"top",left:"right",right:"left"},g=this.popperJS._popper.getAttribute("x-placement").split("-")[0],y=m[g];this.popperJS._popper.style.transformOrigin=typeof this.transformOrigin=="string"?this.transformOrigin:["top","bottom"].indexOf(g)>-1?"center "+y:y+" center"}},appendArrow:function(m){var g=void 0;if(!this.appended){this.appended=!0;for(var y in m.attributes)if(/^_v-/.test(m.attributes[y].name)){g=m.attributes[y].name;break}var O=document.createElement("div");g&&O.setAttribute(g,""),O.setAttribute("x-arrow",""),O.className="popper__arrow",m.appendChild(O)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",c),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}},cm}var zx={exports:{}},mm={},VO;function UO(){if(VO)return mm;VO=1,mm.__esModule=!0;var e=Dr();return mm.default={mounted:function(){if(process.env.NODE_ENV!=="production"&&!!this.$vnode){var i=this.getMigratingConfig(),a=i.props,s=a===void 0?{}:a,c=i.events,p=c===void 0?{}:c,m=this.$vnode,g=m.data,y=m.componentOptions,O=g.attrs||{},E=y.listeners||{};for(var N in O)N=(0,e.kebabCase)(N),s[N]&&console.warn("[Element Migrating]["+this.$options.name+"][Attribute]: "+s[N]);for(var _ in E)_=(0,e.kebabCase)(_),p[_]&&console.warn("[Element Migrating]["+this.$options.name+"][Event]: "+p[_])}},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}},mm}var Bd={},YO;function gm(){if(YO)return Bd;YO=1,Bd.__esModule=!0,Bd.isDef=e,Bd.isKorean=n;function e(i){return i!=null}function n(i){var a=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return a.test(i)}return Bd}var WO;function Hx(){return WO||(WO=1,function(e){e.exports=function(n){var i={};function a(s){if(i[s])return i[s].exports;var c=i[s]={i:s,l:!1,exports:{}};return n[s].call(c.exports,c,c.exports,a),c.l=!0,c.exports}return a.m=n,a.c=i,a.d=function(s,c,p){a.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:p})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,c){if(c&1&&(s=a(s)),c&8||c&4&&typeof s=="object"&&s&&s.__esModule)return s;var p=Object.create(null);if(a.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var m in s)a.d(p,m,function(g){return s[g]}.bind(null,m));return p},a.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(c,"a",c),c},a.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},a.p="/dist/",a(a.s=75)}({0:function(n,i,a){a.d(i,"a",function(){return s});function s(c,p,m,g,y,O,E,N){var _=typeof c=="function"?c.options:c;p&&(_.render=p,_.staticRenderFns=m,_._compiled=!0),g&&(_.functional=!0),O&&(_._scopeId="data-v-"+O);var S;if(E?(S=function(T){T=T||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!T&&typeof __VUE_SSR_CONTEXT__<"u"&&(T=__VUE_SSR_CONTEXT__),y&&y.call(this,T),T&&T._registeredComponents&&T._registeredComponents.add(E)},_._ssrRegister=S):y&&(S=N?function(){y.call(this,this.$root.$options.shadowRoot)}:y),S)if(_.functional){_._injectStyles=S;var M=_.render;_.render=function(R,b){return S.call(b),M(R,b)}}else{var P=_.beforeCreate;_.beforeCreate=P?[].concat(P,S):[S]}return{exports:c,options:_}}},11:function(n,i){n.exports=UO()},21:function(n,i){n.exports=gm()},4:function(n,i){n.exports=Is()},75:function(n,i,a){a.r(i);var s=function(){var F=this,H=F.$createElement,ee=F._self._c||H;return ee("div",{class:[F.type==="textarea"?"el-textarea":"el-input",F.inputSize?"el-input--"+F.inputSize:"",{"is-disabled":F.inputDisabled,"is-exceed":F.inputExceed,"el-input-group":F.$slots.prepend||F.$slots.append,"el-input-group--append":F.$slots.append,"el-input-group--prepend":F.$slots.prepend,"el-input--prefix":F.$slots.prefix||F.prefixIcon,"el-input--suffix":F.$slots.suffix||F.suffixIcon||F.clearable||F.showPassword}],on:{mouseenter:function(ne){F.hovering=!0},mouseleave:function(ne){F.hovering=!1}}},[F.type!=="textarea"?[F.$slots.prepend?ee("div",{staticClass:"el-input-group__prepend"},[F._t("prepend")],2):F._e(),F.type!=="textarea"?ee("input",F._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:F.tabindex,type:F.showPassword?F.passwordVisible?"text":"password":F.type,disabled:F.inputDisabled,readonly:F.readonly,autocomplete:F.autoComplete||F.autocomplete,"aria-label":F.label},on:{compositionstart:F.handleCompositionStart,compositionupdate:F.handleCompositionUpdate,compositionend:F.handleCompositionEnd,input:F.handleInput,focus:F.handleFocus,blur:F.handleBlur,change:F.handleChange}},"input",F.$attrs,!1)):F._e(),F.$slots.prefix||F.prefixIcon?ee("span",{staticClass:"el-input__prefix"},[F._t("prefix"),F.prefixIcon?ee("i",{staticClass:"el-input__icon",class:F.prefixIcon}):F._e()],2):F._e(),F.getSuffixVisible()?ee("span",{staticClass:"el-input__suffix"},[ee("span",{staticClass:"el-input__suffix-inner"},[!F.showClear||!F.showPwdVisible||!F.isWordLimitVisible?[F._t("suffix"),F.suffixIcon?ee("i",{staticClass:"el-input__icon",class:F.suffixIcon}):F._e()]:F._e(),F.showClear?ee("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(ne){ne.preventDefault()},click:F.clear}}):F._e(),F.showPwdVisible?ee("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:F.handlePasswordVisible}}):F._e(),F.isWordLimitVisible?ee("span",{staticClass:"el-input__count"},[ee("span",{staticClass:"el-input__count-inner"},[F._v(`
43
43
  `+F._s(F.textLength)+"/"+F._s(F.upperLimit)+`
44
44
  `)])]):F._e()],2),F.validateState?ee("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",F.validateIcon]}):F._e()]):F._e(),F.$slots.append?ee("div",{staticClass:"el-input-group__append"},[F._t("append")],2):F._e()]:ee("textarea",F._b({ref:"textarea",staticClass:"el-textarea__inner",style:F.textareaStyle,attrs:{tabindex:F.tabindex,disabled:F.inputDisabled,readonly:F.readonly,autocomplete:F.autoComplete||F.autocomplete,"aria-label":F.label},on:{compositionstart:F.handleCompositionStart,compositionupdate:F.handleCompositionUpdate,compositionend:F.handleCompositionEnd,input:F.handleInput,focus:F.handleFocus,blur:F.handleBlur,change:F.handleChange}},"textarea",F.$attrs,!1)),F.isWordLimitVisible&&F.type==="textarea"?ee("span",{staticClass:"el-input__count"},[F._v(F._s(F.textLength)+"/"+F._s(F.upperLimit))]):F._e()],2)},c=[];s._withStripped=!0;var p=a(4),m=a.n(p),g=a(11),y=a.n(g),O=void 0,E=`
45
45
  height:0 !important;