ddy-process-pc-vue3 1.0.1-rc.3.130 → 1.0.1-rc.3.137

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(Pi,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):(Pi=typeof globalThis<"u"?globalThis:Pi||self,x(Pi["ddy-process-pc-vue3"]={},Pi.Vue,Pi.checkedPickPc))})(this,function(Pi,x,lO){"use strict";const cO=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function uO(e,n){for(var r=0;r<n.length;r++){const a=n[r];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 Ri=cO(x),wp={name:"ddy-process-pc-vue3",version:"1.0.1-rc.3.130",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 Jt="/aws",on="/bladex/blade-workflow",F2="/auth",Xe={getAjaxObj:()=>({get:(e,n)=>{let r={url:e,param:n.params,type:"get"};return Ze(r)},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:on+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},cuiban(e){let n={url:on+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)}},pis:{start(e){let n={url:Jt+"/pis/start",param:e,type:"post"};return Ze(n)},createAndStart(e){let n={url:on+"/pis/createAndStart",param:e,type:"post"};return Ze(n)},cancel(e,n){let r={url:Jt+"/pis/cancel",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(r)},findNodeParticipantRows(e){let n={url:Jt+"/pis/findNodeParticipantRows",param:{processInstId:e},type:"get"};return Ze(n)},revoke(e,n){let r={url:Jt+"/pis/revoke",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(r)},getProcessStatus(e,n){let r={url:Jt+"/pis/getProcessStatus",param:{processInstId:e,taskId:n||""},type:"get"};return Ze(r)},getProcessInstanceById(e){let n={url:Jt+"/pis/getProcessInstanceById",param:{processInstId:e},type:"get"};return Ze(n)},reactivate(e){let n={url:on+"/pis/reactivate",param:e,type:"post"};return Ze(n)},getProcessInstanceByBusinessKey(e){let n={url:Jt+"/pis/getProcessInstanceByBusinessKey",param:{businessKey:e},type:"get"};return Ze(n)},getProcessForecast(e){let n={url:Jt+"/pis/getProcessForecast",param:e,type:"post"};return Ze(n)},deleteProcessById(e){let n={url:Jt+"/pis/deleteProcessById",param:{processInstId:e},type:"get"};return Ze(n)}},tis:{getTaskModelDetail(e){let n={url:on+"/tis/getTaskModelDetail",param:e,type:"get"};return Ze(n)},query(e,n,r,a){let s={url:Jt+"/tis/query",param:{appId:e,firstRow:n*r-r,rowCount:n*r,returnVars:!0,titleLike:a,taskState:1},type:"get"};return Ze(s)},patchSave(e){let n={url:Jt+"/meta/annex/patchSave",param:e,type:"post"};return Ze(n)},queryTaskPage(e,n,r,a,s=zb.\u5F85\u5904\u7406,c,p){let m={url:Jt+"/tis/queryTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:r,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},queryHiTaskPage(e,n,r,a="",s=zb.\u5F85\u5904\u7406,c,p){let m={url:Jt+"/tis/queryHiTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:r,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},getTaskCommentList(e,n){let r={url:Jt+"/tis/getTaskCommentList",param:{processInstId:e,processBusinessKey:n},type:"get"};return Ze(r)},complete(e){let n={url:on+"/tis/complete",param:e,type:"post"};return Ze(n)},delegate(e){let n={url:Jt+"/tis/delegate",param:e,type:"post"};return Ze(n)},transferTask(e){let n={url:on+"/tis/transferTask",param:e,type:"post"};return Ze(n)},withdrawTask(e){let n={url:on+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},addMultiInstance(e){let n={url:on+"/tis/addSignTask",param:e,type:"post"};return Ze(n)},reject(e,n){let r={url:Jt+"/tis/reject",param:{taskInstId:e,commentMsg:n},type:"post"};return Ze(r)},simulation(e,n,r){let a={url:on+"/tis/simulation",param:{taskId:e},type:"get"};return Ze(a)},createDynamicTask(e){let n={url:Jt+"/tis/createDynamicTask",param:e,type:"post"};return Ze(n)},createCCTask(e){let n={url:on+"/tis/createCCTask",param:e,type:"post"};return Ze(n)},reminders(e){let n={url:on+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)},getReturnableNodes(e){let n={url:Jt+"/tis/getReturnableNodes",param:{taskId:e},type:"get"};return Ze(n)},rollback(e,n,r){let a={url:on+"/tis/rollback",param:{taskInstId:e,rollbackReason:r,targetActivityId:n},type:"post"};return Ze(a)}},repository:{getUserTaskModelCmd(e){let n={url:Jt+"/repository/getUserTaskModel",param:{taskId:e},type:"get"};return Ze(n)},getAfferentParticipantNodeList(e){let n={url:Jt+"/repository/getAfferentParticipantNodeList",param:{processDefId:e},type:"get"};return Ze(n)},getXmlByProcessDefId(e){let n={url:on+"/process/getXmlByProcessDefId",param:e,type:"get"};return Ze(n)},backNodes(e){let n={url:on+"/process/getBackNodes",param:e,type:"get"};return Ze(n)},getDiagramUrl(e){let n={url:on+"/repository/getDiagramUrl",param:e,type:"get"};return Ze(n)},getTrackUrl(e){let n={url:Jt+"/repository/getTrackUrl",param:e,type:"get"};return Ze(n)},getProcessDefList(e,n,r){let a={url:on+"/repository/getProcessDefList",param:{appId:e,processGroupName:n,subjectId:r},type:"post"};return Ze(a)},getProcessDefListNew(e){let n={url:on+"/repository/getProcessDefList",param:{...e,subjectId:e.userInfo?e.userInfo.subjectId:"",businessCode:e.businessCode||e.businessType},type:"post"};return Ze(n)},getOutgoingProcessNode(e,n){let r={url:on+"/tis/getOutgoingProcessNode",param:{taskId:e,processNodeId:n},type:"get"};return Ze(r)},queryTaskNodeList(e){let n={url:on+"/repository/queryTaskNodeList",param:{processInstId:e},type:"get"};return Ze(n)},getFirstProcessNode(e){let n={url:on+"/repository/getAllProcessNode",param:{processDefId:e},type:"get"};return Ze(n)},getParticipantsOfPerformerNames(e,n){let r={url:Jt+"/repository/getParticipantsOfPerformerNames?taskInstId="+e,param:{taskInstId:e,userTaskDefIds:n},type:"post"};return Ze(r)}},org:{list(e="",n="",r=""){let a={url:Jt+"/org/list",param:{deptId:n,companyId:r,searchKey:e},type:"get"};return Ze(a)},findTeamMember(e="",n=""){let r={url:Jt+"/org/findTeamMember",param:{teamId:n,searchKey:e},type:"get"};return Ze(r)}},user:{getTaskAuditor(e){let n={url:F2+"/user/getTaskAuditor",param:e,type:"post",headers:{"X-Tag":"lwl "}};return Ze(n)},getSelectTree(e){let n={url:F2+"/dept/list/user/dept/selectTree",param:e,type:"get",headers:{"X-Tag":"lwl "}};return Ze(n)}}},_t={success:200,err:500,empty:404},dO={\u7F29\u7565\u56FE:0,\u539F\u59CB\u5927\u56FE:1},Lb={\u7535\u8111\u7AEF:"pc",\u79FB\u52A8\u7AEF:"mobile"},Pu={\u4EBA\u5458:1,\u90E8\u95E8:0,\u4E3B\u4F53:-1,\u7FA4\u7EC4:2},zb={\u5F85\u5904\u7406:1,\u6284\u9001:2,\u4E0D\u5904\u7406:4,\u65E0\u5B50\u8282\u70B9:11},fO={\u6D41\u7A0B\u5F85\u529E:1,\u4E1A\u52A1\u5F85\u529E:2},pO={\u9605\u529E:0,\u4F1A\u7B7E:1,\u52A0\u7B7E:2,\u534F\u540C:3},hO={\u52A0\u7B7E:"counterSignLabel"},Qb={\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"},Ep=Object.freeze(Object.defineProperty({__proto__:null,apiCode:_t,DiagramType:dO,SourceType:Lb,UserType:Pu,TaskState:zb,SealBusinessSign:fO,AdHocType:pO,OperationType:hO,ProcessNodeType:Qb},Symbol.toStringTag,{value:"Module"}));/*!
1
+ (function(Pi,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):(Pi=typeof globalThis<"u"?globalThis:Pi||self,x(Pi["ddy-process-pc-vue3"]={},Pi.Vue,Pi.checkedPickPc))})(this,function(Pi,x,lO){"use strict";const cO=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function uO(e,n){for(var r=0;r<n.length;r++){const a=n[r];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 Ri=cO(x),wp={name:"ddy-process-pc-vue3",version:"1.0.1-rc.3.137",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 Jt="/aws",on="/bladex/blade-workflow",F2="/auth",Xe={getAjaxObj:()=>({get:(e,n)=>{let r={url:e,param:n.params,type:"get"};return Ze(r)},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:on+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},cuiban(e){let n={url:on+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)}},pis:{start(e){let n={url:Jt+"/pis/start",param:e,type:"post"};return Ze(n)},createAndStart(e){let n={url:on+"/pis/createAndStart",param:e,type:"post"};return Ze(n)},cancel(e,n){let r={url:Jt+"/pis/cancel",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(r)},findNodeParticipantRows(e){let n={url:Jt+"/pis/findNodeParticipantRows",param:{processInstId:e},type:"get"};return Ze(n)},revoke(e,n){let r={url:Jt+"/pis/revoke",param:{processInstId:e,processBusinessKey:n},type:"post"};return Ze(r)},getProcessStatus(e,n){let r={url:Jt+"/pis/getProcessStatus",param:{processInstId:e,taskId:n||""},type:"get"};return Ze(r)},getProcessInstanceById(e){let n={url:Jt+"/pis/getProcessInstanceById",param:{processInstId:e},type:"get"};return Ze(n)},reactivate(e){let n={url:on+"/pis/reactivate",param:e,type:"post"};return Ze(n)},getProcessInstanceByBusinessKey(e){let n={url:Jt+"/pis/getProcessInstanceByBusinessKey",param:{businessKey:e},type:"get"};return Ze(n)},getProcessForecast(e){let n={url:Jt+"/pis/getProcessForecast",param:e,type:"post"};return Ze(n)},deleteProcessById(e){let n={url:Jt+"/pis/deleteProcessById",param:{processInstId:e},type:"get"};return Ze(n)}},tis:{getTaskModelDetail(e){let n={url:on+"/tis/getTaskModelDetail",param:e,type:"get"};return Ze(n)},query(e,n,r,a){let s={url:Jt+"/tis/query",param:{appId:e,firstRow:n*r-r,rowCount:n*r,returnVars:!0,titleLike:a,taskState:1},type:"get"};return Ze(s)},patchSave(e){let n={url:Jt+"/meta/annex/patchSave",param:e,type:"post"};return Ze(n)},queryTaskPage(e,n,r,a,s=zb.\u5F85\u5904\u7406,c,p){let m={url:Jt+"/tis/queryTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:r,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},queryHiTaskPage(e,n,r,a="",s=zb.\u5F85\u5904\u7406,c,p){let m={url:Jt+"/tis/queryHiTaskPageByCriteria",param:{appIds:e,firstRow:n,rowCount:r,isReturnVars:!0,titleLike:a,taskState:s,varQueries:c,...p},type:"post"};return Ze(m)},getTaskCommentList(e,n){let r={url:Jt+"/tis/getTaskCommentList",param:{processInstId:e,processBusinessKey:n},type:"get"};return Ze(r)},complete(e){let n={url:on+"/tis/complete",param:e,type:"post"};return Ze(n)},delegate(e){let n={url:Jt+"/tis/delegate",param:e,type:"post"};return Ze(n)},transferTask(e){let n={url:on+"/tis/transferTask",param:e,type:"post"};return Ze(n)},withdrawTask(e){let n={url:on+"/tis/withdrawTask",param:{processInstId:e},type:"get"};return Ze(n)},addMultiInstance(e){let n={url:on+"/tis/addSignTask",param:e,type:"post"};return Ze(n)},reject(e,n){let r={url:Jt+"/tis/reject",param:{taskInstId:e,commentMsg:n},type:"post"};return Ze(r)},simulation(e,n,r){let a={url:on+"/tis/simulation",param:{taskId:e},type:"get"};return Ze(a)},createDynamicTask(e){let n={url:Jt+"/tis/createDynamicTask",param:e,type:"post"};return Ze(n)},createCCTask(e){let n={url:on+"/tis/createCCTask",param:e,type:"post"};return Ze(n)},reminders(e){let n={url:on+"/tis/reminders",param:{processInstId:e},type:"get"};return Ze(n)},getReturnableNodes(e){let n={url:Jt+"/tis/getReturnableNodes",param:{taskId:e},type:"get"};return Ze(n)},rollback(e,n,r){let a={url:on+"/tis/rollback",param:{taskInstId:e,rollbackReason:r,targetActivityId:n},type:"post"};return Ze(a)}},repository:{getUserTaskModelCmd(e){let n={url:Jt+"/repository/getUserTaskModel",param:{taskId:e},type:"get"};return Ze(n)},getAfferentParticipantNodeList(e){let n={url:Jt+"/repository/getAfferentParticipantNodeList",param:{processDefId:e},type:"get"};return Ze(n)},getXmlByProcessDefId(e){let n={url:on+"/process/getXmlByProcessDefId",param:e,type:"get"};return Ze(n)},backNodes(e){let n={url:on+"/process/getBackNodes",param:e,type:"get"};return Ze(n)},getDiagramUrl(e){let n={url:on+"/repository/getDiagramUrl",param:e,type:"get"};return Ze(n)},getTrackUrl(e){let n={url:Jt+"/repository/getTrackUrl",param:e,type:"get"};return Ze(n)},getProcessDefList(e,n,r){let a={url:on+"/repository/getProcessDefList",param:{appId:e,processGroupName:n,subjectId:r},type:"post"};return Ze(a)},getProcessDefListNew(e){let n={url:on+"/repository/getProcessDefList",param:{...e,subjectId:e.userInfo?e.userInfo.subjectId:"",businessCode:e.businessCode||e.businessType},type:"post"};return Ze(n)},getOutgoingProcessNode(e,n){let r={url:on+"/tis/getOutgoingProcessNode",param:{taskId:e,processNodeId:n},type:"get"};return Ze(r)},queryTaskNodeList(e){let n={url:on+"/repository/queryTaskNodeList",param:{processInstId:e},type:"get"};return Ze(n)},getFirstProcessNode(e){let n={url:on+"/repository/getAllProcessNode",param:{processDefId:e},type:"get"};return Ze(n)},getParticipantsOfPerformerNames(e,n){let r={url:Jt+"/repository/getParticipantsOfPerformerNames?taskInstId="+e,param:{taskInstId:e,userTaskDefIds:n},type:"post"};return Ze(r)}},org:{list(e="",n="",r=""){let a={url:Jt+"/org/list",param:{deptId:n,companyId:r,searchKey:e},type:"get"};return Ze(a)},findTeamMember(e="",n=""){let r={url:Jt+"/org/findTeamMember",param:{teamId:n,searchKey:e},type:"get"};return Ze(r)}},user:{getTaskAuditor(e){let n={url:F2+"/user/getTaskAuditor",param:e,type:"post",headers:{"X-Tag":"lwl "}};return Ze(n)},getSelectTree(e){let n={url:F2+"/dept/list/user/dept/selectTree",param:e,type:"get",headers:{"X-Tag":"lwl "}};return Ze(n)}}},_t={success:200,err:500,empty:404},dO={\u7F29\u7565\u56FE:0,\u539F\u59CB\u5927\u56FE:1},Lb={\u7535\u8111\u7AEF:"pc",\u79FB\u52A8\u7AEF:"mobile"},Pu={\u4EBA\u5458:1,\u90E8\u95E8:0,\u4E3B\u4F53:-1,\u7FA4\u7EC4:2},zb={\u5F85\u5904\u7406:1,\u6284\u9001:2,\u4E0D\u5904\u7406:4,\u65E0\u5B50\u8282\u70B9:11},fO={\u6D41\u7A0B\u5F85\u529E:1,\u4E1A\u52A1\u5F85\u529E:2},pO={\u9605\u529E:0,\u4F1A\u7B7E:1,\u52A0\u7B7E:2,\u534F\u540C:3},hO={\u52A0\u7B7E:"counterSignLabel"},Qb={\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"},Ep=Object.freeze(Object.defineProperty({__proto__:null,apiCode:_t,DiagramType:dO,SourceType:Lb,UserType:Pu,TaskState:zb,SealBusinessSign:fO,AdHocType:pO,OperationType:hO,ProcessNodeType:Qb},Symbol.toStringTag,{value:"Module"}));/*!
2
2
  * Vue.js v2.7.14
3
3
  * (c) 2014-2022 Evan You
4
4
  * Released under the MIT License.
@@ -15,21 +15,21 @@ found in
15
15
  https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function`,e));for(var r=Object.keys(n),a=e.$options.props,s=e.$options.methods,c=r.length;c--;){var p=r[c];process.env.NODE_ENV!=="production"&&s&&Dn(s,p)&&Fe('Method "'.concat(p,'" has already been defined as a data property.'),e),a&&Dn(a,p)?process.env.NODE_ENV!=="production"&&Fe('The data property "'.concat(p,'" is already declared as a prop. ')+"Use prop default value instead.",e):Yb(p)||x_(e,"_data",p)}var m=fa(n);m&&m.vmCount++}function v8(e,n){kl();try{return e.call(n,n)}catch(r){return Ga(r,n,"data()"),{}}finally{Sl()}}var b8={lazy:!0};function _8(e,n){var r=e._computedWatchers=Object.create(null),a=Go();for(var s in n){var c=n[s],p=Rt(c)?c:c.get;process.env.NODE_ENV!=="production"&&p==null&&Fe('Getter is missing for computed property "'.concat(s,'".'),e),a||(r[s]=new Vp(e,p||Kt,Kt,b8)),s in e?process.env.NODE_ENV!=="production"&&(s in e.$data?Fe('The computed property "'.concat(s,'" is already defined in data.'),e):e.$options.props&&s in e.$options.props?Fe('The computed property "'.concat(s,'" is already defined as a prop.'),e):e.$options.methods&&s in e.$options.methods&&Fe('The computed property "'.concat(s,'" is already defined as a method.'),e)):XC(e,s,c)}}function XC(e,n,r){var a=!Go();Rt(r)?(Vr.get=a?ZC(n):$C(r),Vr.set=Kt):(Vr.get=r.get?a&&r.cache!==!1?ZC(n):$C(r.get):Kt,Vr.set=r.set||Kt),process.env.NODE_ENV!=="production"&&Vr.set===Kt&&(Vr.set=function(){Fe('Computed property "'.concat(n,'" was assigned to but it has no setter.'),this)}),Object.defineProperty(e,n,Vr)}function ZC(e){return function(){var r=this._computedWatchers&&this._computedWatchers[e];if(r)return r.dirty&&r.evaluate(),xr.target&&(process.env.NODE_ENV!=="production"&&xr.target.onTrack&&xr.target.onTrack({effect:xr.target,target:this,type:"get",key:e}),r.depend()),r.value}}function $C(e){return function(){return e.call(this,this)}}function y8(e,n){var r=e.$options.props;for(var a in n)process.env.NODE_ENV!=="production"&&(typeof n[a]!="function"&&Fe('Method "'.concat(a,'" has type "').concat(typeof n[a],'" in the component definition. ')+"Did you reference the function correctly?",e),r&&Dn(r,a)&&Fe('Method "'.concat(a,'" has already been defined as a prop.'),e),a in e&&Yb(a)&&Fe('Method "'.concat(a,'" conflicts with an existing Vue instance method. ')+"Avoid defining component methods that start with _ or $.")),e[a]=typeof n[a]!="function"?Kt:z2(n[a],e)}function x8(e,n){for(var r in n){var a=n[r];if(st(a))for(var s=0;s<a.length;s++)w_(e,r,a[s]);else w_(e,r,a)}}function w_(e,n,r,a){return On(r)&&(a=r,r=r.handler),typeof r=="string"&&(r=e[r]),e.$watch(n,r,a)}function w8(e){var n={};n.get=function(){return this._data};var r={};r.get=function(){return this._props},process.env.NODE_ENV!=="production"&&(n.set=function(){Fe("Avoid replacing instance root $data. Use nested data properties instead.",this)},r.set=function(){Fe("$props is readonly.",this)}),Object.defineProperty(e.prototype,"$data",n),Object.defineProperty(e.prototype,"$props",r),e.prototype.$set=Xb,e.prototype.$delete=eC,e.prototype.$watch=function(a,s,c){var p=this;if(On(s))return w_(p,a,s,c);c=c||{},c.user=!0;var m=new Vp(p,a,s,c);if(c.immediate){var g='callback for immediate watcher "'.concat(m.expression,'"');kl(),pa(s,p,[m.value],p,g),Sl()}return function(){m.teardown()}}}var E8=0;function C8(e){e.prototype._init=function(n){var r=this;r._uid=E8++;var a,s;process.env.NODE_ENV!=="production"&&It.performance&&Hr&&(a="vue-perf-start:".concat(r._uid),s="vue-perf-end:".concat(r._uid),Hr(a)),r._isVue=!0,r.__v_skip=!0,r._scope=new QO(!0),r._scope._vm=!0,n&&n._isComponent?k8(r,n):r.$options=$o(E_(r.constructor),n||{},r),process.env.NODE_ENV!=="production"?WC(r):r._renderProxy=r,r._self=r,OT(r),kT(r),dT(r),Li(r,"beforeCreate",void 0,!1),HT(r),m8(r),QT(r),Li(r,"created"),process.env.NODE_ENV!=="production"&&It.performance&&Hr&&(r._name=Zo(r,!1),Hr(s),Up("vue ".concat(r._name," init"),a,s)),r.$options.el&&r.$mount(r.$options.el)}}function k8(e,n){var r=e.$options=Object.create(e.constructor.options),a=n._parentVnode;r.parent=n.parent,r._parentVnode=a;var s=a.componentOptions;r.propsData=s.propsData,r._parentListeners=s.listeners,r._renderChildren=s.children,r._componentTag=s.tag,n.render&&(r.render=n.render,r.staticRenderFns=n.staticRenderFns)}function E_(e){var n=e.options;if(e.super){var r=E_(e.super),a=e.superOptions;if(r!==a){e.superOptions=r;var s=S8(e);s&&Ht(e.extendOptions,s),n=e.options=$o(r,e.extendOptions),n.name&&(n.components[n.name]=e)}}return n}function S8(e){var n,r=e.options,a=e.sealedOptions;for(var s in r)r[s]!==a[s]&&(n||(n={}),n[s]=r[s]);return n}function nn(e){process.env.NODE_ENV!=="production"&&!(this instanceof nn)&&Fe("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}C8(nn),w8(nn),IT(nn),TT(nn),fT(nn);function D8(e){e.use=function(n){var r=this._installedPlugins||(this._installedPlugins=[]);if(r.indexOf(n)>-1)return this;var a=Vb(arguments,1);return a.unshift(this),Rt(n.install)?n.install.apply(n,a):Rt(n)&&n.apply(null,a),r.push(n),this}}function B8(e){e.mixin=function(n){return this.options=$o(this.options,n),this}}function I8(e){e.cid=0;var n=1;e.extend=function(r){r=r||{};var a=this,s=a.cid,c=r._Ctor||(r._Ctor={});if(c[s])return c[s];var p=Il(r)||Il(a.options);process.env.NODE_ENV!=="production"&&p&&v_(p);var m=function(y){this._init(y)};return m.prototype=Object.create(a.prototype),m.prototype.constructor=m,m.cid=n++,m.options=$o(a.options,r),m.super=a,m.options.props&&O8(m),m.options.computed&&T8(m),m.extend=a.extend,m.mixin=a.mixin,m.use=a.use,Dp.forEach(function(g){m[g]=a[g]}),p&&(m.options.components[p]=m),m.superOptions=a.options,m.extendOptions=r,m.sealedOptions=Ht({},m.options),c[s]=m,m}}function O8(e){var n=e.options.props;for(var r in n)x_(e.prototype,"_props",r)}function T8(e){var n=e.options.computed;for(var r in n)XC(e.prototype,r,n[r])}function N8(e){Dp.forEach(function(n){e[n]=function(r,a){return a?(process.env.NODE_ENV!=="production"&&n==="component"&&v_(r),n==="component"&&On(a)&&(a.name=a.name||r,a=this.options._base.extend(a)),n==="directive"&&Rt(a)&&(a={bind:a,update:a}),this.options[n+"s"][r]=a,a):this.options[n+"s"][r]}})}function qC(e){return e&&(Il(e.Ctor.options)||e.tag)}function Jp(e,n){return st(e)?e.indexOf(n)>-1:typeof e=="string"?e.split(",").indexOf(n)>-1:P2(e)?e.test(n):!1}function ek(e,n){var r=e.cache,a=e.keys,s=e._vnode;for(var c in r){var p=r[c];if(p){var m=p.name;m&&!n(m)&&C_(r,c,a,s)}}}function C_(e,n,r,a){var s=e[n];s&&(!a||s.tag!==a.tag)&&s.componentInstance.$destroy(),e[n]=null,Va(r,n)}var tk=[String,RegExp,Array],M8={name:"keep-alive",abstract:!0,props:{include:tk,exclude:tk,max:[String,Number]},methods:{cacheVNode:function(){var e=this,n=e.cache,r=e.keys,a=e.vnodeToCache,s=e.keyToCache;if(a){var c=a.tag,p=a.componentInstance,m=a.componentOptions;n[s]={name:qC(m),tag:c,componentInstance:p},r.push(s),this.max&&r.length>parseInt(this.max)&&C_(n,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)C_(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(n){ek(e,function(r){return Jp(n,r)})}),this.$watch("exclude",function(n){ek(e,function(r){return!Jp(n,r)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,n=yC(e),r=n&&n.componentOptions;if(r){var a=qC(r),s=this,c=s.include,p=s.exclude;if(c&&(!a||!Jp(c,a))||p&&a&&Jp(p,a))return n;var m=this,g=m.cache,y=m.keys,O=n.key==null?r.Ctor.cid+(r.tag?"::".concat(r.tag):""):n.key;g[O]?(n.componentInstance=g[O].componentInstance,Va(y,O),y.push(O)):(this.vnodeToCache=n,this.keyToCache=O),n.data.keepAlive=!0}return n||e&&e[0]}},F8={KeepAlive:M8};function P8(e){var n={};n.get=function(){return It},process.env.NODE_ENV!=="production"&&(n.set=function(){Fe("Do not replace the Vue.config object, set individual fields instead.")}),Object.defineProperty(e,"config",n),e.util={warn:Fe,extend:Ht,mergeOptions:$o,defineReactive:nr},e.set=Xb,e.delete=eC,e.nextTick=Qp,e.observable=function(r){return fa(r),r},e.options=Object.create(null),Dp.forEach(function(r){e.options[r+"s"]=Object.create(null)}),e.options._base=e,Ht(e.options.components,F8),D8(e),B8(e),I8(e),N8(e)}P8(nn),Object.defineProperty(nn.prototype,"$isServer",{get:Go}),Object.defineProperty(nn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(nn,"FunctionalRenderContext",{value:h_}),nn.version=ET;var R8=ji("style,class"),j8=ji("input,textarea,option,select,progress"),L8=function(e,n,r){return r==="value"&&j8(e)&&n!=="button"||r==="selected"&&e==="option"||r==="checked"&&e==="input"||r==="muted"&&e==="video"},nk=ji("contenteditable,draggable,spellcheck"),z8=ji("events,caret,typing,plaintext-only"),Q8=function(e,n){return Kp(n)||n==="false"?"false":e==="contenteditable"&&z8(n)?n:"true"},H8=ji("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),k_="http://www.w3.org/1999/xlink",S_=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"},ik=function(e){return S_(e)?e.slice(6,e.length):""},Kp=function(e){return e==null||e===!1};function V8(e){for(var n=e.data,r=e,a=e;Ae(a.componentInstance);)a=a.componentInstance._vnode,a&&a.data&&(n=rk(a.data,n));for(;Ae(r=r.parent);)r&&r.data&&(n=rk(n,r.data));return U8(n.staticClass,n.class)}function rk(e,n){return{staticClass:D_(e.staticClass,n.staticClass),class:Ae(e.class)?[e.class,n.class]:n.class}}function U8(e,n){return Ae(e)||Ae(n)?D_(e,B_(n)):""}function D_(e,n){return e?n?e+" "+n:e:n||""}function B_(e){return Array.isArray(e)?Y8(e):Sn(e)?W8(e):typeof e=="string"?e:""}function Y8(e){for(var n="",r,a=0,s=e.length;a<s;a++)Ae(r=B_(e[a]))&&r!==""&&(n&&(n+=" "),n+=r);return n}function W8(e){var n="";for(var r in e)e[r]&&(n&&(n+=" "),n+=r);return n}var G8={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},J8=ji("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),I_=ji("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ak=function(e){return J8(e)||I_(e)};function K8(e){if(I_(e))return"svg";if(e==="math")return"math"}var Xp=Object.create(null);function X8(e){if(!mi)return!0;if(ak(e))return!1;if(e=e.toLowerCase(),Xp[e]!=null)return Xp[e];var n=document.createElement(e);return e.indexOf("-")>-1?Xp[e]=n.constructor===window.HTMLUnknownElement||n.constructor===window.HTMLElement:Xp[e]=/HTMLUnknownElement/.test(n.toString())}var O_=ji("text,number,password,search,email,tel,url");function Z8(e){if(typeof e=="string"){var n=document.querySelector(e);return n||(process.env.NODE_ENV!=="production"&&Fe("Cannot find element: "+e),document.createElement("div"))}else return e}function $8(e,n){var r=document.createElement(e);return e!=="select"||n.data&&n.data.attrs&&n.data.attrs.multiple!==void 0&&r.setAttribute("multiple","multiple"),r}function q8(e,n){return document.createElementNS(G8[e],n)}function eN(e){return document.createTextNode(e)}function tN(e){return document.createComment(e)}function nN(e,n,r){e.insertBefore(n,r)}function iN(e,n){e.removeChild(n)}function rN(e,n){e.appendChild(n)}function aN(e){return e.parentNode}function oN(e){return e.nextSibling}function sN(e){return e.tagName}function lN(e,n){e.textContent=n}function cN(e,n){e.setAttribute(n,"")}var uN=Object.freeze({__proto__:null,createElement:$8,createElementNS:q8,createTextNode:eN,createComment:tN,insertBefore:nN,removeChild:iN,appendChild:rN,parentNode:aN,nextSibling:oN,tagName:sN,setTextContent:lN,setStyleScope:cN}),dN={create:function(e,n){Ol(n)},update:function(e,n){e.data.ref!==n.data.ref&&(Ol(e,!0),Ol(n))},destroy:function(e){Ol(e,!0)}};function Ol(e,n){var r=e.data.ref;if(!!Ae(r)){var a=e.context,s=e.componentInstance||e.elm,c=n?null:s,p=n?void 0:s;if(Rt(r)){pa(r,a,[c],a,"template ref function");return}var m=e.data.refInFor,g=typeof r=="string"||typeof r=="number",y=ei(r),O=a.$refs;if(g||y)if(m){var S=g?O[r]:r.value;n?st(S)&&Va(S,s):st(S)?S.includes(s)||S.push(s):g?(O[r]=[s],ok(a,r,O[r])):r.value=[s]}else if(g){if(n&&O[r]!==s)return;O[r]=p,ok(a,r,c)}else if(y){if(n&&r.value!==s)return;r.value=c}else process.env.NODE_ENV!=="production"&&Fe("Invalid template ref type: ".concat(typeof r))}}function ok(e,n,r){var a=e._setupState;a&&Dn(a,n)&&(ei(a[n])?a[n].value=r:a[n]=r)}var Ja=new gi("",{},[]),Xu=["create","activate","update","remove","destroy"];function qo(e,n){return e.key===n.key&&e.asyncFactory===n.asyncFactory&&(e.tag===n.tag&&e.isComment===n.isComment&&Ae(e.data)===Ae(n.data)&&fN(e,n)||en(e.isAsyncPlaceholder)&&rt(n.asyncFactory.error))}function fN(e,n){if(e.tag!=="input")return!0;var r,a=Ae(r=e.data)&&Ae(r=r.attrs)&&r.type,s=Ae(r=n.data)&&Ae(r=r.attrs)&&r.type;return a===s||O_(a)&&O_(s)}function pN(e,n,r){var a,s,c={};for(a=n;a<=r;++a)s=e[a].key,Ae(s)&&(c[s]=a);return c}function hN(e){var n,r,a={},s=e.modules,c=e.nodeOps;for(n=0;n<Xu.length;++n)for(a[Xu[n]]=[],r=0;r<s.length;++r)Ae(s[r][Xu[n]])&&a[Xu[n]].push(s[r][Xu[n]]);function p(W){return new gi(c.tagName(W).toLowerCase(),{},[],void 0,W)}function m(W,J){function ie(){--ie.listeners===0&&g(W)}return ie.listeners=J,ie}function g(W){var J=c.parentNode(W);Ae(J)&&c.removeChild(J,W)}function y(W,J){return!J&&!W.ns&&!(It.ignoredElements.length&&It.ignoredElements.some(function(ie){return P2(ie)?ie.test(W.tag):ie===W.tag}))&&It.isUnknownElement(W.tag)}var O=0;function S(W,J,ie,ge,Te,se,he){if(Ae(W.elm)&&Ae(se)&&(W=se[he]=Jb(W)),W.isRootInsert=!Te,!N(W,J,ie,ge)){var xe=W.data,Pe=W.children,K=W.tag;Ae(K)?(process.env.NODE_ENV!=="production"&&(xe&&xe.pre&&O++,y(W,O)&&Fe("Unknown custom element: <"+K+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',W.context)),W.elm=W.ns?c.createElementNS(W.ns,K):c.createElement(K,W),v(W),R(W,Pe,J),Ae(xe)&&F(W,J),j(ie,W.elm,ge),process.env.NODE_ENV!=="production"&&xe&&xe.pre&&O--):en(W.isComment)?(W.elm=c.createComment(W.text),j(ie,W.elm,ge)):(W.elm=c.createTextNode(W.text),j(ie,W.elm,ge))}}function N(W,J,ie,ge){var Te=W.data;if(Ae(Te)){var se=Ae(W.componentInstance)&&Te.keepAlive;if(Ae(Te=Te.hook)&&Ae(Te=Te.init)&&Te(W,!1),Ae(W.componentInstance))return _(W,J),j(ie,W.elm,ge),en(se)&&B(W,J,ie,ge),!0}}function _(W,J){Ae(W.data.pendingInsert)&&(J.push.apply(J,W.data.pendingInsert),W.data.pendingInsert=null),W.elm=W.componentInstance.$el,T(W)?(F(W,J),v(W)):(Ol(W),J.push(W))}function B(W,J,ie,ge){for(var Te,se=W;se.componentInstance;)if(se=se.componentInstance._vnode,Ae(Te=se.data)&&Ae(Te=Te.transition)){for(Te=0;Te<a.activate.length;++Te)a.activate[Te](Ja,se);J.push(se);break}j(ie,W.elm,ge)}function j(W,J,ie){Ae(W)&&(Ae(ie)?c.parentNode(ie)===W&&c.insertBefore(W,J,ie):c.appendChild(W,J))}function R(W,J,ie){if(st(J)){process.env.NODE_ENV!=="production"&&ne(J);for(var ge=0;ge<J.length;++ge)S(J[ge],ie,W.elm,null,!0,J,ge)}else da(W.text)&&c.appendChild(W.elm,c.createTextNode(String(W.text)))}function T(W){for(;W.componentInstance;)W=W.componentInstance._vnode;return Ae(W.tag)}function F(W,J){for(var ie=0;ie<a.create.length;++ie)a.create[ie](Ja,W);n=W.data.hook,Ae(n)&&(Ae(n.create)&&n.create(Ja,W),Ae(n.insert)&&J.push(W))}function v(W){var J;if(Ae(J=W.fnScopeId))c.setStyleScope(W.elm,J);else for(var ie=W;ie;)Ae(J=ie.context)&&Ae(J=J.$options._scopeId)&&c.setStyleScope(W.elm,J),ie=ie.parent;Ae(J=Xo)&&J!==W.context&&J!==W.fnContext&&Ae(J=J.$options._scopeId)&&c.setStyleScope(W.elm,J)}function w(W,J,ie,ge,Te,se){for(;ge<=Te;++ge)S(ie[ge],se,W,J,!1,ie,ge)}function k(W){var J,ie,ge=W.data;if(Ae(ge))for(Ae(J=ge.hook)&&Ae(J=J.destroy)&&J(W),J=0;J<a.destroy.length;++J)a.destroy[J](W);if(Ae(J=W.children))for(ie=0;ie<W.children.length;++ie)k(W.children[ie])}function Q(W,J,ie){for(;J<=ie;++J){var ge=W[J];Ae(ge)&&(Ae(ge.tag)?(M(ge),k(ge)):g(ge.elm))}}function M(W,J){if(Ae(J)||Ae(W.data)){var ie,ge=a.remove.length+1;for(Ae(J)?J.listeners+=ge:J=m(W.elm,ge),Ae(ie=W.componentInstance)&&Ae(ie=ie._vnode)&&Ae(ie.data)&&M(ie,J),ie=0;ie<a.remove.length;++ie)a.remove[ie](W,J);Ae(ie=W.data.hook)&&Ae(ie=ie.remove)?ie(W,J):J()}else g(W.elm)}function H(W,J,ie,ge,Te){var se=0,he=0,xe=J.length-1,Pe=J[0],K=J[xe],P=ie.length-1,E=ie[0],C=ie[P],X,ee,fe,De,je=!Te;for(process.env.NODE_ENV!=="production"&&ne(ie);se<=xe&&he<=P;)rt(Pe)?Pe=J[++se]:rt(K)?K=J[--xe]:qo(Pe,E)?(de(Pe,E,ge,ie,he),Pe=J[++se],E=ie[++he]):qo(K,C)?(de(K,C,ge,ie,P),K=J[--xe],C=ie[--P]):qo(Pe,C)?(de(Pe,C,ge,ie,P),je&&c.insertBefore(W,Pe.elm,c.nextSibling(K.elm)),Pe=J[++se],C=ie[--P]):qo(K,E)?(de(K,E,ge,ie,he),je&&c.insertBefore(W,K.elm,Pe.elm),K=J[--xe],E=ie[++he]):(rt(X)&&(X=pN(J,se,xe)),ee=Ae(E.key)?X[E.key]:re(E,J,se,xe),rt(ee)?S(E,ge,W,Pe.elm,!1,ie,he):(fe=J[ee],qo(fe,E)?(de(fe,E,ge,ie,he),J[ee]=void 0,je&&c.insertBefore(W,fe.elm,Pe.elm)):S(E,ge,W,Pe.elm,!1,ie,he)),E=ie[++he]);se>xe?(De=rt(ie[P+1])?null:ie[P+1].elm,w(W,De,ie,he,P,ge)):he>P&&Q(J,se,xe)}function ne(W){for(var J={},ie=0;ie<W.length;ie++){var ge=W[ie],Te=ge.key;Ae(Te)&&(J[Te]?Fe("Duplicate keys detected: '".concat(Te,"'. This may cause an update error."),ge.context):J[Te]=!0)}}function re(W,J,ie,ge){for(var Te=ie;Te<ge;Te++){var se=J[Te];if(Ae(se)&&qo(W,se))return Te}}function de(W,J,ie,ge,Te,se){if(W!==J){Ae(J.elm)&&Ae(ge)&&(J=ge[Te]=Jb(J));var he=J.elm=W.elm;if(en(W.isAsyncPlaceholder)){Ae(J.asyncFactory.resolved)?ye(W.elm,J,ie):J.isAsyncPlaceholder=!0;return}if(en(J.isStatic)&&en(W.isStatic)&&J.key===W.key&&(en(J.isCloned)||en(J.isOnce))){J.componentInstance=W.componentInstance;return}var xe,Pe=J.data;Ae(Pe)&&Ae(xe=Pe.hook)&&Ae(xe=xe.prepatch)&&xe(W,J);var K=W.children,P=J.children;if(Ae(Pe)&&T(J)){for(xe=0;xe<a.update.length;++xe)a.update[xe](W,J);Ae(xe=Pe.hook)&&Ae(xe=xe.update)&&xe(W,J)}rt(J.text)?Ae(K)&&Ae(P)?K!==P&&H(he,K,P,ie,se):Ae(P)?(process.env.NODE_ENV!=="production"&&ne(P),Ae(W.text)&&c.setTextContent(he,""),w(he,null,P,0,P.length-1,ie)):Ae(K)?Q(K,0,K.length-1):Ae(W.text)&&c.setTextContent(he,""):W.text!==J.text&&c.setTextContent(he,J.text),Ae(Pe)&&Ae(xe=Pe.hook)&&Ae(xe=xe.postpatch)&&xe(W,J)}}function me(W,J,ie){if(en(ie)&&Ae(W.parent))W.parent.data.pendingInsert=J;else for(var ge=0;ge<J.length;++ge)J[ge].data.hook.insert(J[ge])}var pe=!1,Se=ji("attrs,class,staticClass,staticStyle,key");function ye(W,J,ie,ge){var Te,se=J.tag,he=J.data,xe=J.children;if(ge=ge||he&&he.pre,J.elm=W,en(J.isComment)&&Ae(J.asyncFactory))return J.isAsyncPlaceholder=!0,!0;if(process.env.NODE_ENV!=="production"&&!_e(W,J,ge))return!1;if(Ae(he)&&(Ae(Te=he.hook)&&Ae(Te=Te.init)&&Te(J,!0),Ae(Te=J.componentInstance)))return _(J,ie),!0;if(Ae(se)){if(Ae(xe))if(!W.hasChildNodes())R(J,xe,ie);else if(Ae(Te=he)&&Ae(Te=Te.domProps)&&Ae(Te=Te.innerHTML)){if(Te!==W.innerHTML)return process.env.NODE_ENV!=="production"&&typeof console<"u"&&!pe&&(pe=!0,console.warn("Parent: ",W),console.warn("server innerHTML: ",Te),console.warn("client innerHTML: ",W.innerHTML)),!1}else{for(var Pe=!0,K=W.firstChild,P=0;P<xe.length;P++){if(!K||!ye(K,xe[P],ie,ge)){Pe=!1;break}K=K.nextSibling}if(!Pe||K)return process.env.NODE_ENV!=="production"&&typeof console<"u"&&!pe&&(pe=!0,console.warn("Parent: ",W),console.warn("Mismatching childNodes vs. VNodes: ",W.childNodes,xe)),!1}if(Ae(he)){var E=!1;for(var C in he)if(!Se(C)){E=!0,F(J,ie);break}!E&&he.class&&Dl(he.class)}}else W.data!==J.text&&(W.data=J.text);return!0}function _e(W,J,ie){return Ae(J.tag)?J.tag.indexOf("vue-component")===0||!y(J,ie)&&J.tag.toLowerCase()===(W.tagName&&W.tagName.toLowerCase()):W.nodeType===(J.isComment?8:3)}return function(J,ie,ge,Te){if(rt(ie)){Ae(J)&&k(J);return}var se=!1,he=[];if(rt(J))se=!0,S(ie,he);else{var xe=Ae(J.nodeType);if(!xe&&qo(J,ie))de(J,ie,he,null,null,Te);else{if(xe){if(J.nodeType===1&&J.hasAttribute(U2)&&(J.removeAttribute(U2),ge=!0),en(ge)){if(ye(J,ie,he))return me(ie,he,!0),J;process.env.NODE_ENV!=="production"&&Fe("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}J=p(J)}var Pe=J.elm,K=c.parentNode(Pe);if(S(ie,he,Pe._leaveCb?null:K,c.nextSibling(Pe)),Ae(ie.parent))for(var P=ie.parent,E=T(ie);P;){for(var C=0;C<a.destroy.length;++C)a.destroy[C](P);if(P.elm=ie.elm,E){for(var X=0;X<a.create.length;++X)a.create[X](Ja,P);var ee=P.data.hook.insert;if(ee.merged)for(var fe=1;fe<ee.fns.length;fe++)ee.fns[fe]()}else Ol(P);P=P.parent}Ae(K)?Q([J],0,0):Ae(J.tag)&&k(J)}}return me(ie,he,se),ie.elm}}var mN={create:T_,update:T_,destroy:function(n){T_(n,Ja)}};function T_(e,n){(e.data.directives||n.data.directives)&&gN(e,n)}function gN(e,n){var r=e===Ja,a=n===Ja,s=sk(e.data.directives,e.context),c=sk(n.data.directives,n.context),p=[],m=[],g,y,O;for(g in c)y=s[g],O=c[g],y?(O.oldValue=y.value,O.oldArg=y.arg,Zu(O,"update",n,e),O.def&&O.def.componentUpdated&&m.push(O)):(Zu(O,"bind",n,e),O.def&&O.def.inserted&&p.push(O));if(p.length){var S=function(){for(var N=0;N<p.length;N++)Zu(p[N],"inserted",n,e)};r?Wa(n,"insert",S):S()}if(m.length&&Wa(n,"postpatch",function(){for(var N=0;N<m.length;N++)Zu(m[N],"componentUpdated",n,e)}),!r)for(g in s)c[g]||Zu(s[g],"unbind",e,e,a)}var AN=Object.create(null);function sk(e,n){var r=Object.create(null);if(!e)return r;var a,s;for(a=0;a<e.length;a++){if(s=e[a],s.modifiers||(s.modifiers=AN),r[vN(s)]=s,n._setupState&&n._setupState.__sfc){var c=s.def||Wp(n,"_setupState","v-"+s.name);typeof c=="function"?s.def={bind:c,update:c}:s.def=c}s.def=s.def||Wp(n.$options,"directives",s.name,!0)}return r}function vN(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function Zu(e,n,r,a,s){var c=e.def&&e.def[n];if(c)try{c(r.elm,e,r,a,s)}catch(p){Ga(p,r.context,"directive ".concat(e.name," ").concat(n," hook"))}}var bN=[dN,mN];function lk(e,n){var r=n.componentOptions;if(!(Ae(r)&&r.Ctor.options.inheritAttrs===!1)&&!(rt(e.data.attrs)&&rt(n.data.attrs))){var a,s,c,p=n.elm,m=e.data.attrs||{},g=n.data.attrs||{};(Ae(g.__ob__)||en(g._v_attr_proxy))&&(g=n.data.attrs=Ht({},g));for(a in g)s=g[a],c=m[a],c!==s&&ck(p,a,s,n.data.pre);(wl||Wb)&&g.value!==m.value&&ck(p,"value",g.value);for(a in m)rt(g[a])&&(S_(a)?p.removeAttributeNS(k_,ik(a)):nk(a)||p.removeAttribute(a))}}function ck(e,n,r,a){a||e.tagName.indexOf("-")>-1?uk(e,n,r):H8(n)?Kp(r)?e.removeAttribute(n):(r=n==="allowfullscreen"&&e.tagName==="EMBED"?"true":n,e.setAttribute(n,r)):nk(n)?e.setAttribute(n,Q8(n,r)):S_(n)?Kp(r)?e.removeAttributeNS(k_,ik(n)):e.setAttributeNS(k_,n,r):uk(e,n,r)}function uk(e,n,r){if(Kp(r))e.removeAttribute(n);else{if(wl&&!El&&e.tagName==="TEXTAREA"&&n==="placeholder"&&r!==""&&!e.__ieph){var a=function(s){s.stopImmediatePropagation(),e.removeEventListener("input",a)};e.addEventListener("input",a),e.__ieph=!0}e.setAttribute(n,r)}}var _N={create:lk,update:lk};function dk(e,n){var r=n.elm,a=n.data,s=e.data;if(!(rt(a.staticClass)&&rt(a.class)&&(rt(s)||rt(s.staticClass)&&rt(s.class)))){var c=V8(n),p=r._transitionClasses;Ae(p)&&(c=D_(c,B_(p))),c!==r._prevClass&&(r.setAttribute("class",c),r._prevClass=c)}}var yN={create:dk,update:dk},N_="__r",M_="__c";function xN(e){if(Ae(e[N_])){var n=wl?"change":"input";e[n]=[].concat(e[N_],e[n]||[]),delete e[N_]}Ae(e[M_])&&(e.change=[].concat(e[M_],e.change||[]),delete e[M_])}var $u;function wN(e,n,r){var a=$u;return function s(){var c=n.apply(null,arguments);c!==null&&fk(e,s,r,a)}}var EN=r_&&!(G2&&Number(G2[1])<=53);function CN(e,n,r,a){if(EN){var s=TC,c=n;n=c._wrapper=function(p){if(p.target===p.currentTarget||p.timeStamp>=s||p.timeStamp<=0||p.target.ownerDocument!==document)return c.apply(this,arguments)}}$u.addEventListener(e,n,J2?{capture:r,passive:a}:r)}function fk(e,n,r,a){(a||$u).removeEventListener(e,n._wrapper||n,r)}function F_(e,n){if(!(rt(e.data.on)&&rt(n.data.on))){var r=n.data.on||{},a=e.data.on||{};$u=n.elm||e.elm,xN(r),fC(r,a,CN,fk,wN,n.context),$u=void 0}}var kN={create:F_,update:F_,destroy:function(e){return F_(e,Ja)}},Zp;function pk(e,n){if(!(rt(e.data.domProps)&&rt(n.data.domProps))){var r,a,s=n.elm,c=e.data.domProps||{},p=n.data.domProps||{};(Ae(p.__ob__)||en(p._v_attr_proxy))&&(p=n.data.domProps=Ht({},p));for(r in c)r in p||(s[r]="");for(r in p){if(a=p[r],r==="textContent"||r==="innerHTML"){if(n.children&&(n.children.length=0),a===c[r])continue;s.childNodes.length===1&&s.removeChild(s.childNodes[0])}if(r==="value"&&s.tagName!=="PROGRESS"){s._value=a;var m=rt(a)?"":String(a);SN(s,m)&&(s.value=m)}else if(r==="innerHTML"&&I_(s.tagName)&&rt(s.innerHTML)){Zp=Zp||document.createElement("div"),Zp.innerHTML="<svg>".concat(a,"</svg>");for(var g=Zp.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;g.firstChild;)s.appendChild(g.firstChild)}else if(a!==c[r])try{s[r]=a}catch{}}}}function SN(e,n){return!e.composing&&(e.tagName==="OPTION"||DN(e,n)||BN(e,n))}function DN(e,n){var r=!0;try{r=document.activeElement!==e}catch{}return r&&e.value!==n}function BN(e,n){var r=e.value,a=e._vModifiers;if(Ae(a)){if(a.number)return ju(r)!==ju(n);if(a.trim)return r.trim()!==n.trim()}return r!==n}var IN={create:pk,update:pk},ON=Vo(function(e){var n={},r=/;(?![^(]*\))/g,a=/:(.+)/;return e.split(r).forEach(function(s){if(s){var c=s.split(a);c.length>1&&(n[c[0].trim()]=c[1].trim())}}),n});function P_(e){var n=hk(e.style);return e.staticStyle?Ht(e.staticStyle,n):n}function hk(e){return Array.isArray(e)?Q2(e):typeof e=="string"?ON(e):e}function TN(e,n){var r={},a;if(n)for(var s=e;s.componentInstance;)s=s.componentInstance._vnode,s&&s.data&&(a=P_(s.data))&&Ht(r,a);(a=P_(e.data))&&Ht(r,a);for(var c=e;c=c.parent;)c.data&&(a=P_(c.data))&&Ht(r,a);return r}var NN=/^--/,mk=/\s*!important$/,gk=function(e,n,r){if(NN.test(n))e.style.setProperty(n,r);else if(mk.test(r))e.style.setProperty(Yo(n),r.replace(mk,""),"important");else{var a=MN(n);if(Array.isArray(r))for(var s=0,c=r.length;s<c;s++)e.style[a]=r[s];else e.style[a]=r}},Ak=["Webkit","Moz","ms"],$p,MN=Vo(function(e){if($p=$p||document.createElement("div").style,e=Uo(e),e!=="filter"&&e in $p)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<Ak.length;r++){var a=Ak[r]+n;if(a in $p)return a}});function vk(e,n){var r=n.data,a=e.data;if(!(rt(r.staticStyle)&&rt(r.style)&&rt(a.staticStyle)&&rt(a.style))){var s,c,p=n.elm,m=a.staticStyle,g=a.normalizedStyle||a.style||{},y=m||g,O=hk(n.data.style)||{};n.data.normalizedStyle=Ae(O.__ob__)?Ht({},O):O;var S=TN(n,!0);for(c in y)rt(S[c])&&gk(p,c,"");for(c in S)s=S[c],s!==y[c]&&gk(p,c,s==null?"":s)}}var FN={create:vk,update:vk},bk=/\s+/;function _k(e,n){if(!(!n||!(n=n.trim())))if(e.classList)n.indexOf(" ")>-1?n.split(bk).forEach(function(a){return e.classList.add(a)}):e.classList.add(n);else{var r=" ".concat(e.getAttribute("class")||""," ");r.indexOf(" "+n+" ")<0&&e.setAttribute("class",(r+n).trim())}}function yk(e,n){if(!(!n||!(n=n.trim())))if(e.classList)n.indexOf(" ")>-1?n.split(bk).forEach(function(s){return e.classList.remove(s)}):e.classList.remove(n),e.classList.length||e.removeAttribute("class");else{for(var r=" ".concat(e.getAttribute("class")||""," "),a=" "+n+" ";r.indexOf(a)>=0;)r=r.replace(a," ");r=r.trim(),r?e.setAttribute("class",r):e.removeAttribute("class")}}function xk(e){if(!!e){if(typeof e=="object"){var n={};return e.css!==!1&&Ht(n,wk(e.name||"v")),Ht(n,e),n}else if(typeof e=="string")return wk(e)}}var wk=Vo(function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}}),Ek=mi&&!El,Tl="transition",R_="animation",qp="transition",eh="transitionend",j_="animation",Ck="animationend";Ek&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(qp="WebkitTransition",eh="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(j_="WebkitAnimation",Ck="webkitAnimationEnd"));var kk=mi?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Sk(e){kk(function(){kk(e)})}function es(e,n){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(n)<0&&(r.push(n),_k(e,n))}function ga(e,n){e._transitionClasses&&Va(e._transitionClasses,n),yk(e,n)}function Dk(e,n,r){var a=Bk(e,n),s=a.type,c=a.timeout,p=a.propCount;if(!s)return r();var m=s===Tl?eh:Ck,g=0,y=function(){e.removeEventListener(m,O),r()},O=function(S){S.target===e&&++g>=p&&y()};setTimeout(function(){g<p&&y()},c+1),e.addEventListener(m,O)}var PN=/\b(transform|all)(,|$)/;function Bk(e,n){var r=window.getComputedStyle(e),a=(r[qp+"Delay"]||"").split(", "),s=(r[qp+"Duration"]||"").split(", "),c=Ik(a,s),p=(r[j_+"Delay"]||"").split(", "),m=(r[j_+"Duration"]||"").split(", "),g=Ik(p,m),y,O=0,S=0;n===Tl?c>0&&(y=Tl,O=c,S=s.length):n===R_?g>0&&(y=R_,O=g,S=m.length):(O=Math.max(c,g),y=O>0?c>g?Tl:R_:null,S=y?y===Tl?s.length:m.length:0);var N=y===Tl&&PN.test(r[qp+"Property"]);return{type:y,timeout:O,propCount:S,hasTransform:N}}function Ik(e,n){for(;e.length<n.length;)e=e.concat(e);return Math.max.apply(null,n.map(function(r,a){return Ok(r)+Ok(e[a])}))}function Ok(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function L_(e,n){var r=e.elm;Ae(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var a=xk(e.data.transition);if(!rt(a)&&!(Ae(r._enterCb)||r.nodeType!==1)){for(var s=a.css,c=a.type,p=a.enterClass,m=a.enterToClass,g=a.enterActiveClass,y=a.appearClass,O=a.appearToClass,S=a.appearActiveClass,N=a.beforeEnter,_=a.enter,B=a.afterEnter,j=a.enterCancelled,R=a.beforeAppear,T=a.appear,F=a.afterAppear,v=a.appearCancelled,w=a.duration,k=Xo,Q=Xo.$vnode;Q&&Q.parent;)k=Q.context,Q=Q.parent;var M=!k._isMounted||!e.isRootInsert;if(!(M&&!T&&T!=="")){var H=M&&y?y:p,ne=M&&S?S:g,re=M&&O?O:m,de=M&&R||N,me=M&&Rt(T)?T:_,pe=M&&F||B,Se=M&&v||j,ye=ju(Sn(w)?w.enter:w);process.env.NODE_ENV!=="production"&&ye!=null&&Nk(ye,"enter",e);var _e=s!==!1&&!El,W=z_(me),J=r._enterCb=Sp(function(){_e&&(ga(r,re),ga(r,ne)),J.cancelled?(_e&&ga(r,H),Se&&Se(r)):pe&&pe(r),r._enterCb=null});e.data.show||Wa(e,"insert",function(){var ie=r.parentNode,ge=ie&&ie._pending&&ie._pending[e.key];ge&&ge.tag===e.tag&&ge.elm._leaveCb&&ge.elm._leaveCb(),me&&me(r,J)}),de&&de(r),_e&&(es(r,H),es(r,ne),Sk(function(){ga(r,H),J.cancelled||(es(r,re),W||(Mk(ye)?setTimeout(J,ye):Dk(r,c,J)))})),e.data.show&&(n&&n(),me&&me(r,J)),!_e&&!W&&J()}}}function Tk(e,n){var r=e.elm;Ae(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());var a=xk(e.data.transition);if(rt(a)||r.nodeType!==1)return n();if(Ae(r._leaveCb))return;var s=a.css,c=a.type,p=a.leaveClass,m=a.leaveToClass,g=a.leaveActiveClass,y=a.beforeLeave,O=a.leave,S=a.afterLeave,N=a.leaveCancelled,_=a.delayLeave,B=a.duration,j=s!==!1&&!El,R=z_(O),T=ju(Sn(B)?B.leave:B);process.env.NODE_ENV!=="production"&&Ae(T)&&Nk(T,"leave",e);var F=r._leaveCb=Sp(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null),j&&(ga(r,m),ga(r,g)),F.cancelled?(j&&ga(r,p),N&&N(r)):(n(),S&&S(r)),r._leaveCb=null});_?_(v):v();function v(){F.cancelled||(!e.data.show&&r.parentNode&&((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e),y&&y(r),j&&(es(r,p),es(r,g),Sk(function(){ga(r,p),F.cancelled||(es(r,m),R||(Mk(T)?setTimeout(F,T):Dk(r,c,F)))})),O&&O(r,F),!j&&!R&&F())}}function Nk(e,n,r){typeof e!="number"?Fe("<transition> explicit ".concat(n," duration is not a valid number - ")+"got ".concat(JSON.stringify(e),"."),r.context):isNaN(e)&&Fe("<transition> explicit ".concat(n," duration is NaN - ")+"the duration expression might be incorrect.",r.context)}function Mk(e){return typeof e=="number"&&!isNaN(e)}function z_(e){if(rt(e))return!1;var n=e.fns;return Ae(n)?z_(Array.isArray(n)?n[0]:n):(e._length||e.length)>1}function Fk(e,n){n.data.show!==!0&&L_(n)}var RN=mi?{create:Fk,activate:Fk,remove:function(e,n){e.data.show!==!0?Tk(e,n):n()}}:{},jN=[_N,yN,kN,IN,FN,RN],LN=jN.concat(bN),zN=hN({nodeOps:uN,modules:LN});El&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Q_(e,"input")});var Pk={inserted:function(e,n,r,a){r.tag==="select"?(a.elm&&!a.elm._vOptions?Wa(r,"postpatch",function(){Pk.componentUpdated(e,n,r)}):Rk(e,n,r.context),e._vOptions=[].map.call(e.options,th)):(r.tag==="textarea"||O_(e.type))&&(e._vModifiers=n.modifiers,n.modifiers.lazy||(e.addEventListener("compositionstart",QN),e.addEventListener("compositionend",zk),e.addEventListener("change",zk),El&&(e.vmodel=!0)))},componentUpdated:function(e,n,r){if(r.tag==="select"){Rk(e,n,r.context);var a=e._vOptions,s=e._vOptions=[].map.call(e.options,th);if(s.some(function(p,m){return!Wo(p,a[m])})){var c=e.multiple?n.value.some(function(p){return Lk(p,s)}):n.value!==n.oldValue&&Lk(n.value,s);c&&Q_(e,"change")}}}};function Rk(e,n,r){jk(e,n,r),(wl||Wb)&&setTimeout(function(){jk(e,n,r)},0)}function jk(e,n,r){var a=n.value,s=e.multiple;if(s&&!Array.isArray(a)){process.env.NODE_ENV!=="production"&&Fe('<select multiple v-model="'.concat(n.expression,'"> ')+"expects an Array value for its binding, but got ".concat(Object.prototype.toString.call(a).slice(8,-1)),r);return}for(var c,p,m=0,g=e.options.length;m<g;m++)if(p=e.options[m],s)c=V2(a,th(p))>-1,p.selected!==c&&(p.selected=c);else if(Wo(th(p),a)){e.selectedIndex!==m&&(e.selectedIndex=m);return}s||(e.selectedIndex=-1)}function Lk(e,n){return n.every(function(r){return!Wo(r,e)})}function th(e){return"_value"in e?e._value:e.value}function QN(e){e.target.composing=!0}function zk(e){!e.target.composing||(e.target.composing=!1,Q_(e.target,"input"))}function Q_(e,n){var r=document.createEvent("HTMLEvents");r.initEvent(n,!0,!0),e.dispatchEvent(r)}function H_(e){return e.componentInstance&&(!e.data||!e.data.transition)?H_(e.componentInstance._vnode):e}var HN={bind:function(e,n,r){var a=n.value;r=H_(r);var s=r.data&&r.data.transition,c=e.__vOriginalDisplay=e.style.display==="none"?"":e.style.display;a&&s?(r.data.show=!0,L_(r,function(){e.style.display=c})):e.style.display=a?c:"none"},update:function(e,n,r){var a=n.value,s=n.oldValue;if(!a!=!s){r=H_(r);var c=r.data&&r.data.transition;c?(r.data.show=!0,a?L_(r,function(){e.style.display=e.__vOriginalDisplay}):Tk(r,function(){e.style.display="none"})):e.style.display=a?e.__vOriginalDisplay:"none"}},unbind:function(e,n,r,a,s){s||(e.style.display=e.__vOriginalDisplay)}},VN={model:Pk,show:HN},Qk={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function V_(e){var n=e&&e.componentOptions;return n&&n.Ctor.options.abstract?V_(yC(n.children)):e}function Hk(e){var n={},r=e.$options;for(var a in r.propsData)n[a]=e[a];var s=r._parentListeners;for(var a in s)n[Uo(a)]=s[a];return n}function Vk(e,n){if(/\d-keep-alive$/.test(n.tag))return e("keep-alive",{props:n.componentOptions.propsData})}function UN(e){for(;e=e.parent;)if(e.data.transition)return!0}function YN(e,n){return n.key===e.key&&n.tag===e.tag}var WN=function(e){return e.tag||Vu(e)},GN=function(e){return e.name==="show"},JN={name:"transition",props:Qk,abstract:!0,render:function(e){var n=this,r=this.$slots.default;if(!!r&&(r=r.filter(WN),!!r.length)){process.env.NODE_ENV!=="production"&&r.length>1&&Fe("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var a=this.mode;process.env.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&Fe("invalid <transition> mode: "+a,this.$parent);var s=r[0];if(UN(this.$vnode))return s;var c=V_(s);if(!c)return s;if(this._leaving)return Vk(e,s);var p="__transition-".concat(this._uid,"-");c.key=c.key==null?c.isComment?p+"comment":p+c.tag:da(c.key)?String(c.key).indexOf(p)===0?c.key:p+c.key:c.key;var m=(c.data||(c.data={})).transition=Hk(this),g=this._vnode,y=V_(g);if(c.data.directives&&c.data.directives.some(GN)&&(c.data.show=!0),y&&y.data&&!YN(c,y)&&!Vu(y)&&!(y.componentInstance&&y.componentInstance._vnode.isComment)){var O=y.data.transition=Ht({},m);if(a==="out-in")return this._leaving=!0,Wa(O,"afterLeave",function(){n._leaving=!1,n.$forceUpdate()}),Vk(e,s);if(a==="in-out"){if(Vu(c))return g;var S,N=function(){S()};Wa(m,"afterEnter",N),Wa(m,"enterCancelled",N),Wa(O,"delayLeave",function(_){S=_})}}return s}}},Uk=Ht({tag:String,moveClass:String},Qk);delete Uk.mode;var KN={props:Uk,beforeMount:function(){var e=this,n=this._update;this._update=function(r,a){var s=BC(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,s(),n.call(e,r,a)}},render:function(e){for(var n=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),a=this.prevChildren=this.children,s=this.$slots.default||[],c=this.children=[],p=Hk(this),m=0;m<s.length;m++){var g=s[m];if(g.tag){if(g.key!=null&&String(g.key).indexOf("__vlist")!==0)c.push(g),r[g.key]=g,(g.data||(g.data={})).transition=p;else if(process.env.NODE_ENV!=="production"){var y=g.componentOptions,O=y?Il(y.Ctor.options)||y.tag||"":g.tag;Fe("<transition-group> children must be keyed: <".concat(O,">"))}}}if(a){for(var S=[],N=[],m=0;m<a.length;m++){var g=a[m];g.data.transition=p,g.data.pos=g.elm.getBoundingClientRect(),r[g.key]?S.push(g):N.push(g)}this.kept=e(n,null,S),this.removed=N}return e(n,null,c)},updated:function(){var e=this.prevChildren,n=this.moveClass||(this.name||"v")+"-move";!e.length||!this.hasMove(e[0].elm,n)||(e.forEach(XN),e.forEach(ZN),e.forEach($N),this._reflow=document.body.offsetHeight,e.forEach(function(r){if(r.data.moved){var a=r.elm,s=a.style;es(a,n),s.transform=s.WebkitTransform=s.transitionDuration="",a.addEventListener(eh,a._moveCb=function c(p){p&&p.target!==a||(!p||/transform$/.test(p.propertyName))&&(a.removeEventListener(eh,c),a._moveCb=null,ga(a,n))})}}))},methods:{hasMove:function(e,n){if(!Ek)return!1;if(this._hasMove)return this._hasMove;var r=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(s){yk(r,s)}),_k(r,n),r.style.display="none",this.$el.appendChild(r);var a=Bk(r);return this.$el.removeChild(r),this._hasMove=a.hasTransform}}};function XN(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ZN(e){e.data.newPos=e.elm.getBoundingClientRect()}function $N(e){var n=e.data.pos,r=e.data.newPos,a=n.left-r.left,s=n.top-r.top;if(a||s){e.data.moved=!0;var c=e.elm.style;c.transform=c.WebkitTransform="translate(".concat(a,"px,").concat(s,"px)"),c.transitionDuration="0s"}}var qN={Transition:JN,TransitionGroup:KN};nn.config.mustUseProp=L8,nn.config.isReservedTag=ak,nn.config.isReservedAttr=R8,nn.config.getTagNamespace=K8,nn.config.isUnknownElement=X8,Ht(nn.options.directives,VN),Ht(nn.options.components,qN),nn.prototype.__patch__=mi?zN:Kt,nn.prototype.$mount=function(e,n){return e=e&&mi?Z8(e):void 0,NT(this,e,n)},mi&&setTimeout(function(){It.devtools&&(Ip?Ip.emit("init",nn):process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&console[console.info?"info":"log"](`Download the Vue Devtools extension for a better development experience:
16
16
  https://github.com/vuejs/vue-devtools`)),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&It.productionTip!==!1&&typeof console<"u"&&console[console.info?"info":"log"](`You are running Vue in development mode.
17
17
  Make sure to turn on production mode when deploying for production.
18
- See more tips at https://vuejs.org/guide/deployment.html`)},0),nn.util.warn;const tX="";var eM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("div",{staticClass:"user-list"},[e.processNodeObj&&e.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?[e.noPostOption?r("span",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):e.userList.length>=1?r("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),!e.noPostOption&&!e.onePostUser?r("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")]):e._e()]:[e.userList.length>0?r("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),r("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")])]],2),r("departPerson",e._b({attrs:{visible:e.visible,checkedArray:e.checkedArray,positionArray:e.positionArray},on:{"update:visible":function(a){e.visible=a},callback:e.handleCallback},model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},"departPerson",e.entity,!1))],1)},tM=[];const nX="";function rn(e,n,r,a,s,c,p,m){var g=typeof e=="function"?e.options:e;n&&(g.render=n,g.staticRenderFns=r,g._compiled=!0),a&&(g.functional=!0),c&&(g._scopeId="data-v-"+c);var y;if(p?(y=function(N){N=N||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!N&&typeof __VUE_SSR_CONTEXT__<"u"&&(N=__VUE_SSR_CONTEXT__),s&&s.call(this,N),N&&N._registeredComponents&&N._registeredComponents.add(p)},g._ssrRegister=y):s&&(y=m?function(){s.call(this,(g.functional?this.parent:this).$root.$options.shadowRoot)}:s),y)if(g.functional){g._injectStyles=y;var O=g.render;g.render=function(_,B){return y.call(B),O(_,B)}}else{var S=g.beforeCreate;g.beforeCreate=S?[].concat(S,y):[y]}return{exports:e,options:g}}var Yk=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{Yk=e});const nM={components:{departPerson:lO.departPerson},unmounted(){window.clearInterval(this.searchInterval)},props:{modelValue:{type:Object},defaultOption:{type:Array},personType:"",personEntity:{type:Object,default:()=>{}},disable:!1,multiple:{default:!1,type:Boolean},max:{default:1,type:Number},items:{default:void 0,type:Array},processNodeObj:{default:void 0,request:!1},isAlis:{type:Boolean,default:!1}},inject:{isAlisInject:{value:"isAlisInject",default:null}},data(){return{visible:!1,treeOptions:null,selectModel:this.multiple?[]:void 0,treeSearchOptions:null,noPostOption:!1,onePostUser:!1,positionArray:[],searchTime:-1,searchParam:"",userList:[],checkedArray:[],entity:{source:"1",type:this.personType||"0",request:Xe.getAjaxObj(),orgType:[],codeType:[3],multiple:!0,maxMultiple:this.processNodeObj&&this.processNodeObj.loopCardinality==-1?1e3:this.max>1?this.max:1,deptCode:this.processNodeObj?this.getDeptCode(1):"",deptCodeArray:this.processNodeObj?this.getDeptCode(0)||[]:[],subjectName:this.processNodeObj?this.getSubjectName():""},searchInterval:window.setInterval(this.searchIntervalFunc,100)}},model:{prop:"modelValue",event:"update:modelValue"},watch:{processNodeObj:{handler(e,n){e&&(e.loopCardinality,this.entity={...this.entity,maxMultiple:e.loopCardinality==-1?1e3:this.max>1?this.max:1})},deep:!0}},mounted(){this.personEntity!=""&&Object.keys(this.personEntity).length>1&&(this.entity={...this.entity,...this.personEntity}),this.processNodeObj&&this.processNodeObj.participantList&&this.processNodeObj.participantList.length>0&&(this.processNodeObj.participantList.map(e=>{e.id=e.id}),this.userList=this.processNodeObj.participantList,this.checkedArray=this.processNodeObj.participantList.map(e=>({type:3,id:e.id,name:e.name||e.realName,subjectId:e.subjectId})),this.$emit("update:modelValue",this.userList.map(e=>e.id)),this.$emit("select",this.userList)),this.gePostUsers()},methods:{getSubjectName(){let e="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"&&(e=this.processNodeObj.routeTxt.companyIds[0].name),e},gePostUsers(){if(this.processNodeObj&&this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let{routeTxt:e}=this.processNodeObj,n={taskDefId:this.processNodeObj.id,postIds:[]};e.postList.map(r=>{n.postIds.push(r.postId)}),e.postList&&e.postList.length>0&&Xe.common.getTaskAuditor(this.personEntity._businessDeptId?this.personEntity._businessDeptId:this.processNodeObj.taskNode?this.processNodeObj.taskNode[0].vars._businessDeptId:"",[n]).then(r=>{let a=[],s=[],c=!1;if(r.data.map(p=>{p.posts.map(m=>{s.push(...m.users),m.users.length==1?a.push(...m.users):c=!0})}),a.length>this.entity.maxMultiple&&this.entity.maxMultiple!=0&&(c=!0),c&&(a=[]),s.length==0){this.noPostOption=!0;return}a.length>0&&(this.onePostUser=!0,this.handleCallback(a)),this.entity.orgType=[5],this.entity.codeType=[8],r.data[0].posts.map(p=>{this.positionArray.push({...p,projectPost:!(this.personEntity._businessDeptId||this.processNodeObj.taskNode&&this.processNodeObj.taskNode[0].vars._businessDeptId),id:p.users.map(m=>m.id)})})})}},getDeptCode(e){let n="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"&&(e=="1"&&this.processNodeObj.routeTxt.departmentIds.length==1&&(n=this.processNodeObj.routeTxt.departmentIds[0].rangeId),e=="0"&&this.processNodeObj.routeTxt.departmentIds.length>1&&(n=this.processNodeObj.routeTxt.departmentIds.map(r=>r.rangeId))),n},handleCallback(e){this.userList=e,this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},handleClose(e){this.userList.splice(e,1),this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},searchIntervalFunc(){this.searchTime>0&&(this.searchTime-=100),this.searchTime==0&&(this.searchTime=-1,this.searchParam&&!(this.items&&this.items.length>0)?Xe.org.list(this.searchParam).then(async e=>{if(e.code==_t.success){let n=e.data.map(r=>(r.children=null,r.label=r.name,r.id=r.id,r.deptName=r.deptName,r.alisName=r.alisName,r));this.treeSearchOptions=n,await this.$nextTick(),this.$refs.deptTree.forest.normalizedOptions.forEach(r=>{r.isBranch=!1}),await this.$nextTick(),this.$refs.deptTree.handleLocalSearch()}}):this.treeSearchOptions=null)},searchChange(e){this.searchParam=e,this.searchTime=500,this.deptTree},onSelect(e,n){this.$emit("update:modelValue",this.selectModel),this.$emit("select",e)},onInput(e,n){this.max>0&&this.multiple&&e.length>this.max&&e.length>this.max?(this.$refs.deptTree.clear(),this.$refs.deptTree.forest.selectedNodeIds=this.selectModel,this.$refs.deptTree.select(this.selectModel),this.$refs.deptTree.forest.selectedNodeIds,Yk.warning(`\u6700\u591A\u9009\u62E9 ${this.max} \u4EBA`)):(this.selectModel=e,this.$emit("update:modelValue",this.selectModel))},normalizer(e){if(e.children&&!e.children.length&&delete e.children,e.leaf){let n=`${e.deptName} - ${e.label}(${e.phone})`;return(this.isAlis||this.isAlisInject)&&e.alisName&&(n+="participantList -- "+e.alisName),this.$refs.deptTree.trigger.searchQuery&&(n+=`(${this.$refs.deptTree.trigger.searchQuery})`),{id:e.id,label:n,leaf:e.leaf,phone:e.phone,deptName:e.deptName,alisName:e.alisName}}return{id:e.id,label:e.label,leaf:e.leaf,phone:e.phone,children:e.children,deptName:e.deptName,alisName:e.alisName}},async loadTreeOptions({action:e,parentNode:n,callback:r,instanceId:a}){if(e===LOAD_ROOT_OPTIONS)if(this.items){let s=this.items.map(c=>(c.children=null,c.label=c.name,c.id=c.id,c));this.treeOptions=s}else Xe.org.list().then(s=>{if(s.code==_t.success){let c=s.data.map(p=>(p.children=null,p.label=p.name,p.id=p.id,p));this.defaultOption&&(c=[...c,...this.defaultOption]),this.treeOptions=c}});else if(e===LOAD_CHILDREN_OPTIONS){let s=n.id,c="";if(n.orgType==Pu.\u4E3B\u4F53&&(c=n.id,s=""),n.orgType==Pu.\u7FA4\u7EC4){Xe.org.findTeamMember("",s).then(p=>{let m=p.data.map(g=>(g.label=g.name,g.id=g.id,g));n.children=m,r()});return}Xe.org.list("",s,c).then(p=>{if(p.code==_t.success){let m=p.data.map(g=>(g.leaf||(g.children=null),g.label=g.name,g.id=g.id,g));n.children=m,r()}})}}}},Wk={};var iM=rn(nM,eM,tM,!1,rM,"3efb7a24",null,null);function rM(e){for(let n in Wk)this[n]=Wk[n]}const Aa=function(){return iM.exports}();var Nl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gk(e){var n=e.default;if(typeof n=="function"){var r=function(){return n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var Jk={exports:{}};(function(e,n){(function(r,a){e.exports=a()})(Nl,function(){var r=1e3,a=6e4,s=36e5,c="millisecond",p="second",m="minute",g="hour",y="day",O="week",S="month",N="quarter",_="year",B="date",j="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Se){var ye=["th","st","nd","rd"],_e=Se%100;return"["+Se+(ye[(_e-20)%10]||ye[_e]||ye[0])+"]"}},v=function(Se,ye,_e){var W=String(Se);return!W||W.length>=ye?Se:""+Array(ye+1-W.length).join(_e)+Se},w={s:v,z:function(Se){var ye=-Se.utcOffset(),_e=Math.abs(ye),W=Math.floor(_e/60),J=_e%60;return(ye<=0?"+":"-")+v(W,2,"0")+":"+v(J,2,"0")},m:function Se(ye,_e){if(ye.date()<_e.date())return-Se(_e,ye);var W=12*(_e.year()-ye.year())+(_e.month()-ye.month()),J=ye.clone().add(W,S),ie=_e-J<0,ge=ye.clone().add(W+(ie?-1:1),S);return+(-(W+(_e-J)/(ie?J-ge:ge-J))||0)},a:function(Se){return Se<0?Math.ceil(Se)||0:Math.floor(Se)},p:function(Se){return{M:S,y:_,w:O,d:y,D:B,h:g,m,s:p,ms:c,Q:N}[Se]||String(Se||"").toLowerCase().replace(/s$/,"")},u:function(Se){return Se===void 0}},k="en",Q={};Q[k]=F;var M="$isDayjsObject",H=function(Se){return Se instanceof me||!(!Se||!Se[M])},ne=function Se(ye,_e,W){var J;if(!ye)return k;if(typeof ye=="string"){var ie=ye.toLowerCase();Q[ie]&&(J=ie),_e&&(Q[ie]=_e,J=ie);var ge=ye.split("-");if(!J&&ge.length>1)return Se(ge[0])}else{var Te=ye.name;Q[Te]=ye,J=Te}return!W&&J&&(k=J),J||!W&&k},re=function(Se,ye){if(H(Se))return Se.clone();var _e=typeof ye=="object"?ye:{};return _e.date=Se,_e.args=arguments,new me(_e)},de=w;de.l=ne,de.i=H,de.w=function(Se,ye){return re(Se,{locale:ye.$L,utc:ye.$u,x:ye.$x,$offset:ye.$offset})};var me=function(){function Se(_e){this.$L=ne(_e.locale,null,!0),this.parse(_e),this.$x=this.$x||_e.x||{},this[M]=!0}var ye=Se.prototype;return ye.parse=function(_e){this.$d=function(W){var J=W.date,ie=W.utc;if(J===null)return new Date(NaN);if(de.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var ge=J.match(R);if(ge){var Te=ge[2]-1||0,se=(ge[7]||"0").substring(0,3);return ie?new Date(Date.UTC(ge[1],Te,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,se)):new Date(ge[1],Te,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,se)}}return new Date(J)}(_e),this.init()},ye.init=function(){var _e=this.$d;this.$y=_e.getFullYear(),this.$M=_e.getMonth(),this.$D=_e.getDate(),this.$W=_e.getDay(),this.$H=_e.getHours(),this.$m=_e.getMinutes(),this.$s=_e.getSeconds(),this.$ms=_e.getMilliseconds()},ye.$utils=function(){return de},ye.isValid=function(){return this.$d.toString()!==j},ye.isSame=function(_e,W){var J=re(_e);return this.startOf(W)<=J&&J<=this.endOf(W)},ye.isAfter=function(_e,W){return re(_e)<this.startOf(W)},ye.isBefore=function(_e,W){return this.endOf(W)<re(_e)},ye.$g=function(_e,W,J){return de.u(_e)?this[W]:this.set(J,_e)},ye.unix=function(){return Math.floor(this.valueOf()/1e3)},ye.valueOf=function(){return this.$d.getTime()},ye.startOf=function(_e,W){var J=this,ie=!!de.u(W)||W,ge=de.p(_e),Te=function(C,X){var ee=de.w(J.$u?Date.UTC(J.$y,X,C):new Date(J.$y,X,C),J);return ie?ee:ee.endOf(y)},se=function(C,X){return de.w(J.toDate()[C].apply(J.toDate("s"),(ie?[0,0,0,0]:[23,59,59,999]).slice(X)),J)},he=this.$W,xe=this.$M,Pe=this.$D,K="set"+(this.$u?"UTC":"");switch(ge){case _:return ie?Te(1,0):Te(31,11);case S:return ie?Te(1,xe):Te(0,xe+1);case O:var P=this.$locale().weekStart||0,E=(he<P?he+7:he)-P;return Te(ie?Pe-E:Pe+(6-E),xe);case y:case B:return se(K+"Hours",0);case g:return se(K+"Minutes",1);case m:return se(K+"Seconds",2);case p:return se(K+"Milliseconds",3);default:return this.clone()}},ye.endOf=function(_e){return this.startOf(_e,!1)},ye.$set=function(_e,W){var J,ie=de.p(_e),ge="set"+(this.$u?"UTC":""),Te=(J={},J[y]=ge+"Date",J[B]=ge+"Date",J[S]=ge+"Month",J[_]=ge+"FullYear",J[g]=ge+"Hours",J[m]=ge+"Minutes",J[p]=ge+"Seconds",J[c]=ge+"Milliseconds",J)[ie],se=ie===y?this.$D+(W-this.$W):W;if(ie===S||ie===_){var he=this.clone().set(B,1);he.$d[Te](se),he.init(),this.$d=he.set(B,Math.min(this.$D,he.daysInMonth())).$d}else Te&&this.$d[Te](se);return this.init(),this},ye.set=function(_e,W){return this.clone().$set(_e,W)},ye.get=function(_e){return this[de.p(_e)]()},ye.add=function(_e,W){var J,ie=this;_e=Number(_e);var ge=de.p(W),Te=function(xe){var Pe=re(ie);return de.w(Pe.date(Pe.date()+Math.round(xe*_e)),ie)};if(ge===S)return this.set(S,this.$M+_e);if(ge===_)return this.set(_,this.$y+_e);if(ge===y)return Te(1);if(ge===O)return Te(7);var se=(J={},J[m]=a,J[g]=s,J[p]=r,J)[ge]||1,he=this.$d.getTime()+_e*se;return de.w(he,this)},ye.subtract=function(_e,W){return this.add(-1*_e,W)},ye.format=function(_e){var W=this,J=this.$locale();if(!this.isValid())return J.invalidDate||j;var ie=_e||"YYYY-MM-DDTHH:mm:ssZ",ge=de.z(this),Te=this.$H,se=this.$m,he=this.$M,xe=J.weekdays,Pe=J.months,K=J.meridiem,P=function(X,ee,fe,De){return X&&(X[ee]||X(W,ie))||fe[ee].slice(0,De)},E=function(X){return de.s(Te%12||12,X,"0")},C=K||function(X,ee,fe){var De=X<12?"AM":"PM";return fe?De.toLowerCase():De};return ie.replace(T,function(X,ee){return ee||function(fe){switch(fe){case"YY":return String(W.$y).slice(-2);case"YYYY":return de.s(W.$y,4,"0");case"M":return he+1;case"MM":return de.s(he+1,2,"0");case"MMM":return P(J.monthsShort,he,Pe,3);case"MMMM":return P(Pe,he);case"D":return W.$D;case"DD":return de.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return P(J.weekdaysMin,W.$W,xe,2);case"ddd":return P(J.weekdaysShort,W.$W,xe,3);case"dddd":return xe[W.$W];case"H":return String(Te);case"HH":return de.s(Te,2,"0");case"h":return E(1);case"hh":return E(2);case"a":return C(Te,se,!0);case"A":return C(Te,se,!1);case"m":return String(se);case"mm":return de.s(se,2,"0");case"s":return String(W.$s);case"ss":return de.s(W.$s,2,"0");case"SSS":return de.s(W.$ms,3,"0");case"Z":return ge}return null}(X)||ge.replace(":","")})},ye.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ye.diff=function(_e,W,J){var ie,ge=this,Te=de.p(W),se=re(_e),he=(se.utcOffset()-this.utcOffset())*a,xe=this-se,Pe=function(){return de.m(ge,se)};switch(Te){case _:ie=Pe()/12;break;case S:ie=Pe();break;case N:ie=Pe()/3;break;case O:ie=(xe-he)/6048e5;break;case y:ie=(xe-he)/864e5;break;case g:ie=xe/s;break;case m:ie=xe/a;break;case p:ie=xe/r;break;default:ie=xe}return J?ie:de.a(ie)},ye.daysInMonth=function(){return this.endOf(S).$D},ye.$locale=function(){return Q[this.$L]},ye.locale=function(_e,W){if(!_e)return this.$L;var J=this.clone(),ie=ne(_e,W,!0);return ie&&(J.$L=ie),J},ye.clone=function(){return de.w(this.$d,this)},ye.toDate=function(){return new Date(this.valueOf())},ye.toJSON=function(){return this.isValid()?this.toISOString():null},ye.toISOString=function(){return this.$d.toISOString()},ye.toString=function(){return this.$d.toUTCString()},Se}(),pe=me.prototype;return re.prototype=pe,[["$ms",c],["$s",p],["$m",m],["$H",g],["$W",y],["$M",S],["$y",_],["$D",B]].forEach(function(Se){pe[Se[1]]=function(ye){return this.$g(ye,Se[0],Se[1])}}),re.extend=function(Se,ye){return Se.$i||(Se(ye,me,re),Se.$i=!0),re},re.locale=ne,re.isDayjs=H,re.unix=function(Se){return re(1e3*Se)},re.en=Q[k],re.Ls=Q,re.p={},re})})(Jk);const qu=Jk.exports;var oM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"view-file"},[r("p",{staticClass:"lable"},[e._v("\u67E5\u770B\u9644\u4EF6")]),e._l(e.sortData,function(a,s){return r("div",{key:s,staticClass:"file-info"},[r("div",{staticClass:"name"},[r("el-image",{attrs:{src:e.getFileUrl(a),fit:"fill"}}),r("div",[r("span",[e._v(" "+e._s(e.fileNameLastof(a.name)))]),r("b",{staticClass:"time"},[e._v(e._s(a.uploadTime)+" | "+e._s(e.formatSize(a.size)))])])],1),r("div",{staticClass:"op"},[r("div",{on:{click:function(c){return e.handlePictureCardPreview(a)}}},[e._v(" \u9884\u89C8 ")]),r("div",{on:{click:function(c){return e.handleDownload(a)}}},[e._v(" \u4E0B\u8F7D ")])])])}),r("el-dialog",{attrs:{"append-to-body":""},model:{value:e.dialogVisible,callback:function(a){e.dialogVisible=a},expression:"dialogVisible"}},[r("el-image",{staticStyle:{width:"100%"},attrs:{src:e.dialogImageUrl,alt:"Preview Image"}})],1)],2)},sM=[];const iX="",lM={props:{dataList:{}},data(){return{dialogImageUrl:"",dialogVisible:!1}},computed:{sortData(){return this.dataList.sort((e,n)=>qu(e.uploadTime).valueOf()-qu(n.uploadTime).valueOf())}},methods:{getExt(e){if(!e)return"";let n=e.lastIndexOf(".");return e.substring(n+1).toLocaleLowerCase()},isAssetTypeAnImage(e){let n=this.getExt(e);return["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"].indexOf(n.toLowerCase())!==-1},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let r="/";e.indexOf("\\")!=-1&&(r="\\");let a=e,s=a.lastIndexOf(r);return a.substr(s+1+n,a.length)},formatSize(e){if(!e)return"";var n=1024;return e<n?e+"B":e<Math.pow(n,2)?(e/n).toFixed(2)+"KB":e<Math.pow(n,3)?(e/Math.pow(n,2)).toFixed(2)+"MB":e<Math.pow(n,4)?(e/Math.pow(n,3)).toFixed(2)+"G":(e/Math.pow(n,4)).toFixed(2)+"T"},handleDownload(e){let n=e.url||e.response.data.url;n&&this.downloadFile(n,e.name)},downloadFile:(e,n)=>{var r=document.createElement("a");r.download=n,r.style.display="none";var a=new Blob([e]);r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),document.body.removeChild(r)},getFileUrl(e){let n=e.url||e.response.data.url;return this.isAssetTypeAnImage(n)?n:this.getExt(n)=="zip"||this.getExt(n)=="rar"?require("./assets/zip.png"):this.getExt(n)=="doc"||this.getExt(n)=="docx"?require("./assets/doc.png"):this.getExt(n)=="xls"||this.getExt(n)=="xlsx"?require("./assets/xls.png"):this.getExt(n)=="pdf"?require("./assets/pdf.png"):require("./assets/qt.png")},handlePictureCardPreview(e){let n=e.url||e.response.data.url,r=n.lastIndexOf(".");n.substring(r+1)=="zip"||n.substring(r+1)=="rar"?window.open(n):n.includes("https")?window.open(`https://wdyl.ddzg.cn:8089/?ssl=1&furl=${n}`):window.open(`https://wdyl.ddzg.cn:8089/?ssl=0&furl=${n}`)}}},Kk={};var cM=rn(lM,oM,sM,!1,uM,"e0be2f1a",null,null);function uM(e){for(let n in Kk)this[n]=Kk[n]}const dM=function(){return cM.exports}();var fM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u52A0\u7B7E\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u52A0\u7B7E\u4EBA\u5458"}]}},[r("staffTree",{attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),r("el-form-item",{attrs:{label:"\u52A0\u7B7E\u539F\u56E0",rules:[{required:!0,message:"\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u52A0\u7B7E\u539F\u56E0(200\u5B57\u4EE5\u5185)"},model:{value:e.reason,callback:function(a){e.reason=a},expression:"reason"}})],1),e._t("file"),e._t("form")],2)},pM=[];const rX="";var nh=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{nh=e});const hM={components:{staffTree:Aa},props:{param:Object},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return nh.warning("\u8BF7\u9009\u62E9\u5BA1\u6838\u4EBA"),!1;if(!this.reason)return nh.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"),!1;if(this.reason.length>200)return nh.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let r=this.targetUser||[];e&&e(),n(),Xe.tis.addMultiInstance({taskId:this.param.taskInstId,signPersoneds:r,comment:this.reason}).then(a=>{a.code==_t.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},Xk={};var mM=rn(hM,fM,pM,!1,gM,"79bc4843",null,null);function gM(e){for(let n in Xk)this[n]=Xk[n]}const Zk=function(){return mM.exports}();var AM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-select",{staticClass:"select",attrs:{placeholder:"\u9009\u62E9\u5E38\u7528\u610F\u89C1"},on:{change:e.changeFun},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}},e._l(e.list,function(a,s){return r("el-option",{key:a.opinionId,attrs:{label:a.opinionName,value:a.opinionName}},[r("el-tooltip",{attrs:{effect:"dark","visible-arrow":!0,"popper-class":"pr-option-tooltip",content:a.opinionName,placement:"right"}},[r("div",{staticClass:"option-c"},[r("span",[e._v(e._s(a.opinionName))]),r("i",{staticClass:"el-icon-delete",staticStyle:{float:"right"},on:{click:function(c){return c.stopPropagation(),e.del(a)}}})])])],1)}),1)},vM=[];const aX="",oX="",bM={props:{showLabel:!1},data(){return{value:"",list:[]}},mounted(){this.getList()},methods:{addIdea(e){if(!e)return this.$message({type:"error",message:"\u8BF7\u8F93\u5165\u610F\u89C1\u540E\u91CD\u8BD5"});this.$confirm(`\u5C06\u201D${e}\u201D\u8BBE\u4E3A\u5E38\u7528\u610F\u89C1\u3002`,"\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.getAjaxObj().post("/auth/user/opinion/save",{opinionName:e}).then(n=>{n.success?(this.getList(),this.$message({type:"success",message:"\u8BBE\u7F6E\u6210\u529F"})):this.$message({type:"error",message:n.msg})})})},changeFun(){this.$emit("change",this.value),this.value=""},getList(){Xe.getAjaxObj().get("/auth/user/opinion/my","").then(e=>{this.list=e.data})},del(e){this.$confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u610F\u89C1, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.getAjaxObj().get(`/auth/user/opinion/del/${e.opinionId}`,"").then(n=>{this.getList(),this.$message({type:"success",message:"\u5220\u9664\u6210\u529F"})})}).catch(()=>{})}}},$k={};var _M=rn(bM,AM,vM,!1,yM,"a3cd7af2",null,null);function yM(e){for(let n in $k)this[n]=$k[n]}const U_=function(){return _M.exports}();var xM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u8F6C\u529E\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"}]}},[r("staffTree",{attrs:{personType:e.param.personType,personEntity:e.personEntity},model:{value:e.targetUID,callback:function(a){e.targetUID=a},expression:"targetUID"}})],1),e.param.showCommIdea?r("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?r("div",{staticClass:"add-idea"},[r("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},wM=[];const sX="";var ih=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{ih=e});const EM={components:{staffTree:Aa,commIdea:U_},props:{param:Object},data(){return{commentMsg:"",targetName:"",targetUID:"",personEntity:{}}},watch:{param:{handler(e){this.personEntity={...e.personEntity,maxMultiple:1}},immediate:!0,deep:!0}},methods:{getRes(){return{targetUID:this.targetUID,targetName:this.targetName,commentMsg:this.commentMsg}},confirm(e,n){if(!this.targetUID)return ih.warning("\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"),!1;if(!this.commentMsg)return ih.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return ih.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;e&&e(),n(),Xe.tis.transferTask({taskId:this.param.taskInstId,assignee:this.targetUID.join(" "),comment:this.commentMsg}).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},qk={};var CM=rn(EM,xM,wM,!1,kM,"dd93bc60",null,null);function kM(e){for(let n in qk)this[n]=qk[n]}const e4=function(){return CM.exports}();var SM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"user-task"},[e.processNodeObj.type=="endEvent"?[r("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.lv1label||"\u8282\u70B9\u540D\u79F0"},scopedSlots:e._u([{key:"label",fn:function(a){return a.label,[r("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}],null,!1,51654731)},[r("b",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.processNodeObj.name))])])]:e.processNodeObj.nodeType=="exclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>=1?[e.processNodeObj.branches.length>1?r("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[r("el-radio-group",{staticClass:"ml-4",model:{value:e.radioModel,callback:function(a){e.radioModel=a},expression:"radioModel"}},e._l(e.processNodeObj.branches,function(a){return r("el-radio",{key:a.id,attrs:{label:a,size:"large"}},[e._v(e._s(a.name?a.name:a.nodeInfoDTO?a.nodeInfoDTO.name:""))])}),1)],1):e._e(),e.radioModel.id?[e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="userTask"?[r("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="inclusiveGateway"?[r("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="exclusiveGateway"?e._l(e.radioModel.nodeInfoDTO.branches,function(a){return r("userTask",{key:a.nodeInfoDTO.id,ref:e.setItemRef(a.nodeInfoDTO.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj&&e.processNodeObj.branches&&e.processNodeObj.branches.length==1?e._l(e.processNodeObj.branches,function(a){return r("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj.nodeType=="inclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>0?[r("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[r("el-checkbox-group",{model:{value:e.checkList,callback:function(a){e.checkList=a},expression:"checkList"}},[e._l(e.processNodeObj.branches,function(a){return[e.isSelect(a.nodeInfoDTO?a.nodeInfoDTO:a)?r("el-checkbox",{key:"checkbox"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name,checked:!0,disabled:""}}):r("el-checkbox",{key:"checkbox1"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name}})]})],2)],1),e._l(e.checkModelList,function(a){return r("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:a.nodeInfoDTO?!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0):!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})})]:!e.processNodeObj.assignee||!e.processNodeObj.assignees||e.isOption(e.processNodeObj.humanPerformerName)?[r("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.lv1label||"\u8282\u70B9\u540D\u79F0"},scopedSlots:e._u([{key:"label",fn:function(a){return a.label,[r("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}])},[r("b",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.processNodeObj.name))])]),e.processNodeObj.routeTxt&&e.processNodeObj.routeTxt.length>0&&e.processNodeObj.userList&&e.processNodeObj.userList.length>0?r("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.peopleLabel||"\u6240\u5C5E\u8303\u56F4"}},e._l(e.processNodeObj.routeTxt,function(a,s){return r("div",{key:a.type},[a.ids&&a.ids.length>0?r("div",[r("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),r("span",{staticClass:"include include-name"},[e._v(e._s(a.name))]),s!==e.processNodeObj.routeTxt.length-1?r("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(e.processNodeObj.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0):e._e(),r("el-form-item",{attrs:{label:e.label||"\u5904\u7406\u4EBA",rules:e.rules||{}}},[e.processNodeObj.userList&&e.processNodeObj.userList.length>=2?r("el-select",{attrs:{filterable:"",multiple:e.processNodeObj.loopCardinality==-1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.fixPeopleChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}},e._l(e.processNodeObj.userList,function(a,s){return r("el-option",{key:a.userId,attrs:{label:a.realName,value:a.userId}})}),1):e.processNodeObj.userList&&e.processNodeObj.userList.length==1?r("div",{staticClass:"setVal"},[e._v(" "+e._s(e.processNodeObj.userList[0].realName)+" ")]):e.processNodeObj.setPersonnel&&e.processNodeObj.assignees?r("div",{staticClass:"setVal"},[e._v(" "+e._s((e.processNodeObj.assignees||[]).map(function(a){return a.name||a.realName}).join(", "))+" ")]):r("staffTree",{attrs:{processNodeObj:e.processNodeObj,personType:e.personType,personEntity:e.personEntity,multiple:"",max:e.processNodeObj.loopCardinality==-1?1e3:1,items:e.getTreeData(e.processNodeObj)},on:{"update:modelValue":function(a){e.complete(a,e.processNodeObj)},select:e.selectChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}})],1)]:e._e()],2)},DM=[];const lX="";var ts=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{ts=e});const BM={name:"userTask",components:{staffTree:Aa},props:{index:{type:Number,default:0},processNode:{require:!0},label:"",peopleLabel:"",lv1label:"",personType:"",personEntity:{type:Object,default:()=>{}},rules:{require:!1,type:Array}},data(){return{deptList:[],Enum:Ep,resultList:[],radioModel:{},checkList:[],targetUserId:"",targetUserList:[],processNodeObj:this.processNode,userTaskListData:{},personnelList:[]}},computed:{checkModelList(){let e=this.processNodeObj.branches.filter(n=>this.checkList.includes(n.incomingConditionItemList[0].compareValue));return this.resultList=e||[],this.resultList}},watch:{processNode:{handler(e,n){e.nodeType=="userTask"&&e.setPersonnel&&e.assignees&&e.assignees.length>0&&(this.targetUserId=e.assignees.map(r=>r.id)),e.userList&&e.userList.length==1&&(this.targetUserId=e.userList[0].userId),this.processNodeObj=e||{},this.processNodeObj.type=="endEvent"&&this.$emit("complete",this.processNodeObj)},deep:!0,immediate:!0}},mounted(){this.processNodeObj.childNode&&this.processNodeObj.childNode.length==1&&this.processNodeObj.type==Qb.\u5355\u4E00\u5206\u652F&&(this.radioModel=this.processNodeObj.childNode[0])},methods:{isSelect(e){if(e.incomingConditionItemList[0]){let n=e.incomingConditionItemList[0].itemName.includes("selecd");return n&&(this.checkList.includes(e.name)||this.checkList.push(e.name)),n}return!1},fixPeopleChange(e){this.complete(e,this.processNodeObj)},selectChange(e){this.targetUserList=e},complete(e,n){n.vars=e,this.resultList.every(r=>r.vars)&&(this.processNodeObj.vars=this.resultList.map(r=>r.vars),this.$emit("complete",this.processNodeObj))},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getTreeData(e){if(e){if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8")return e.routeTxt.departmentIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=this.Enum.UserType.\u90E8\u95E8,r});if(e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D")return e.routeTxt.companyIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=this.Enum.UserType.\u4E3B\u4F53,r});if(e.humanPerformerName=="\u56FA\u5B9A\u7FA4\u7EC4")return e.routeTxt.teamList.map(n=>{let r={};return r.id=n.id,r.leaf=!1,r.name=n.teamName,r.orgType=this.Enum.UserType.\u7FA4\u7EC4,r})}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},getValue(){let e=!0,n={multiNodeParticipant:{},vars:{}};if(!this.processNodeObj.type||this.processNodeObj.type==this.Enum.ProcessNodeType.\u7528\u6237\u4EFB\u52A1||this.processNodeObj.type==Qb.\u7528\u6237\u8282\u70B9)if(this.processNodeObj.nodeType=="exclusiveGateway")for(let r in this.userTaskListData){let a=this.userTaskListData[r],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(this.radioModel&&this.radioModel.nodeInfoDTO&&this.radioModel.nodeInfoDTO.id&&this.radioModel.nodeInfoDTO.incomingConditionItemList&&this.radioModel.nodeInfoDTO.incomingConditionItemList.length>0&&(n.vars[this.radioModel.nodeInfoDTO.incomingConditionItemList[0].itemName]=this.radioModel.nodeInfoDTO.incomingConditionItemList[0].compareValue),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}}else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(r=>{const a=this.userTaskListData[r.nodeInfoDTO.id];let s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(r.nodeInfoDTO.incomingConditionItemList.length!==0&&r.nodeInfoDTO.incomingConditionItemList.forEach(p=>{p.itemName&&(n.vars[p.itemName]=p.compareValue)}),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}});else return this.processNodeObj,this.processNodeObj&&this.processNodeObj.nodeType=="inclusiveGateway"?ts.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"):this.processNodeObj.nodeInfoDTO.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} `),!1;else if(!this.processNodeObj.assignee||!Array.isArray(this.processNodeObj.assignee)||!this.processNodeObj.setPersonnel||this.isOption(this.processNodeObj.humanPerformerName)||this.processNodeObj.nodeInfoDTO&&(!this.processNodeObj.nodeInfoDTO.assignee||!Array.isArray(this.processNodeObj.nodeInfoDTO.assignee)||!this.processNodeObj.nodeInfoDTO.setPersonnel||this.isOption(this.processNodeObj.nodeInfoDTO.humanPerformerName))){if(this.targetUserId&&this.targetUserId.length>0)n.multiNodeParticipant={},n.multiNodeParticipant[this.processNode.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.id:this.processNodeObj.id]=Array.isArray(this.targetUserId)?this.targetUserId:[this.targetUserId];else if(this.processNodeObj.REQUIRED!==!1||this.processNodeObj.nodeInfoDTO&&this.processNodeObj.nodeInfoDTO.REQUIRED!==!1)return this.processNodeObj.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`):this.processNodeObj.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u5904\u7406\u4EBA`),!1}else this.processNodeObj.incomingConditionItemList&&this.processNodeObj.incomingConditionItemList.length>0&&(n.vars[this.processNodeObj.incomingConditionItemList[0].itemName]=this.processNodeObj.incomingConditionItemList[0].compareValue);else for(let r in this.userTaskListData){let a=this.userTaskListData[r],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();if(!c)e=!1;else{if(this.processNodeObj.nodeType=="exclusiveGateway")if(this.radioModel&&this.radioModel.id)this.radioModel.incomingConditionItemList&&this.radioModel.incomingConditionItemList.length>0&&(n.vars[this.radioModel.incomingConditionItemList[0].itemName]=this.radioModel.incomingConditionItemList[0].compareValue);else return this.processNodeObj.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u4E0B\u4E00\u8282\u70B9`),!1;else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(p=>{p.incomingConditionItemList.length!==0&&p.incomingConditionItemList.forEach(m=>{m.itemName&&(n.vars[m.itemName]=m.compareValue)})});else return this.processNodeObj.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} `),!1;n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}}}}return e&&n},getLabel(e){let n="";return e.incomingConditionItemList.length>0&&(n=e.incomingConditionItemList[0].compareValue),n||e.name||"\u540E\u7EED\u8282\u70B9"}}},t4={};var IM=rn(BM,SM,DM,!1,OM,null,null,null);function OM(e){for(let n in t4)this[n]=t4[n]}const Y_=function(){return IM.exports}();var TM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"sign-container",style:e.setDynamicVars},[r("div",{staticClass:"content-area"},[r("div",{staticClass:"canvas-container"},[r("canvas",{ref:"canvasRef",attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{mousemove:e.draw,mousedown:e.startDrawing,mouseup:e.finishDrawing}})]),r("div",{staticClass:"history"},[r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(0)}}},[e.historyPics[0]?r("el-image",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()],1),r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(1)}}},[e.historyPics[1]?r("el-image",{attrs:{src:e.historyPics[1]?e.historyPics[1].url:"",fit:"scale-down"}}):e._e()],1),r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(2)}}},[e.historyPics[2]?r("el-image",{attrs:{src:e.historyPics[2]?e.historyPics[2].url:"",fit:"scale-down"}}):e._e()],1)])]),r("div",{staticClass:"actions-box"},[r("button",{staticClass:"commn-btn",on:{click:e.clearCanvas}},[e._v("\u6E05\u9664")]),r("button",{staticClass:"commn-btn",on:{click:e.saveSignature}},[e._v("\u4FDD\u5B58")]),r("button",{staticClass:"commn-btn",on:{click:e.undo}},[e._v("\u64A4\u9500")])])])},NM=[];const cX="",MM={upload:e=>new Promise((n,r)=>{Xe.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},FM={data(){return{ctx:null,signatureImage:"",actionHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[]}},methods:{startDrawing(e){this.isDrawing=!0,this.currentPath=[];const n=this.$refs.canvasRef.getBoundingClientRect(),r=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.beginPath(),this.ctx.moveTo(r,a),this.currentPath.push({x:r,y:a})},draw(e){if(!!this.isDrawing&&this.currentPath.length>0){const n=this.$refs.canvasRef.getBoundingClientRect(),r=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.lineWidth=2,this.ctx.strokeStyle="#000000",this.ctx.lineTo(r,a),this.ctx.stroke(),this.currentPath.push({x:r,y:a})}},undo(){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let n=0;n<e.length-1;n++){const{x:r,y:a}=e[n];n===0?(this.ctx.beginPath(),this.ctx.moveTo(r,a)):(this.ctx.lineTo(r,a),this.ctx.stroke())}},finishDrawing(e){this.currentPath.length>0&&this.paths.push(this.currentPath),this.isDrawing=!1},clearCanvas(){this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[],this.$emit("saveSignature","",!1)},saveSignature(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57");return}this.signatureImage=this.$refs.canvasRef.toBlob(e=>{this.uploadImage(e)},"image/png",.95)},async uploadImage(e,n){this.loading=!0;const r=new FormData;r.append("file",e,n||`signature-${Date.now()}.png`);const a=await MM.upload(r);if(this.loading=!1,!a.success)return;let s=JSON.parse(localStorage.getItem("signaturesArr"))||[];s.unshift(a.data),this.historyPics=s.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",a.data,!0)},useHistory(e){this.historyPics[e]&&this.$confirm("\u662F\u5426\u4F7F\u7528\u5386\u53F2\u7B7E\u5B57","\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.$emit("saveSignature",this.historyPics[e],!0)})}},computed:{setDynamicVars(){return{"--action-height":`${this.actionHeight}px`}}},watch:{setDynamicVars(e){let n=document.querySelector(".canvas-container");n&&(this.$refs.canvasRef.width=n.offsetWidth,this.$refs.canvasRef.height=n.offsetHeight-this.actionHeight)}},mounted(){document.querySelector(".actions-box").offsetHeight?this.actionHeight=document.querySelector(".actions-box").offsetHeight:setTimeout(()=>{this.actionHeight=document.querySelector(".actions-box").offsetHeight},200),this.ctx=this.$refs.canvasRef.getContext("2d"),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]}},n4={};var PM=rn(FM,TM,NM,!1,RM,"9b1b2fcc",null,null);function RM(e){for(let n in n4)this[n]=n4[n]}const jM=function(){return PM.exports}();var LM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?[r("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[r("el-radio-group",{model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}},[r("el-radio",{attrs:{label:"\u540C\u610F"}},[e._v("\u540C\u610F")]),e.param.showAsPlanned?r("el-radio",{attrs:{label:"\u5982\u62DF"}},[e._v("\u5982\u62DF")]):e._e(),r("el-radio",{attrs:{label:"\u5DF2\u9605"}},[e._v("\u5DF2\u9605")])],1)],1),e.param.showCommIdea?r("el-form-item",[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:e.param.commentMsgRequired,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",type:"textarea",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?r("div",{staticClass:"add-idea"},[r("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1)]:e._e(),e._t("file"),e.param.nodeLoading&&!e.param.ProcessInsObj.taskParentId?[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9",size:"normal"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])]:e.param.ProcessInsObj.taskParentId?e._e():[e.param.nextTaskNode&&e.param.nextTaskNode.id&&e.param.nextTaskNode.nodeType!="parallelGateway"&&e.param.nextTaskNode.nodeType!="exclusiveGateway"?[e.param.nextTaskNode.nodeType!="endEvent"?[r("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{pType:e.param.nextTaskNode.nodeType,REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})},on:{complete:e.complete}})}):e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})},on:{complete:e.complete}})}):e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length==1?[e.param.nextTaskNode.nodeType!="endEvent"?[e.param.nextTaskNode.branches[0].nodeInfoDTO&&e.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent"?r("userTask",{key:e.param.nextTaskNode.branches[0].nodeInfoDTO.id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].nodeInfoDTO.id),attrs:{personType:e.param.nextTaskNode.branches[0].nodeInfoDTO.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0].nodeInfoDTO,{REQUIRED:!(e.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}}):!e.param.nextTaskNode.branches[0].nodeInfoDTO&&e.param.nextTaskNode.branches[0].nodeType!="endEvent"?r("userTask",{key:e.param.nextTaskNode.branches[0].id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].id),attrs:{personType:e.param.nextTaskNode.branches[0].personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0],{REQUIRED:!(e.param.nextTaskNode.branches[0].setPersonnel==!0&&e.param.nextTaskNode.branches[0].assignees&&e.param.nextTaskNode.branches[0].assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}}):[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length>1?[e.param.nextTaskNode.nodeType!="endEvent"?[r("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="parallelGateway"?e._l(e.param.nextTaskNode.branches,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType||"",personEntity:e.param.personEntity||{},processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}})}):e._e()],e._t("form"),r("el-dialog",{attrs:{title:"\u7B7E\u5B57",visible:e.signVisible,"append-to-body":"",width:"800px","close-on-click-modal":!1,top:"4vh","align-center":""},on:{"update:visible":function(a){e.signVisible=a},closed:e.closeSign},model:{value:e.signVisible,callback:function(a){e.signVisible=a},expression:"signVisible"}},[r("div",{staticClass:"sign-container"},[r("TopSign",{on:{saveSignature:e.handleSignature,validateFail:e.noticeFail}})],1)])],2)},zM=[];const uX="";var Ml=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{Ml=e});const QM={components:{staffTree:Aa,userTask:Y_,commIdea:U_,TopSign:jM},props:{param:Object},data(){return{nextTaskObj:{},commentMsg:"",targetUser:[],userTaskListData:{},outGatewayUserTaskModel:this.param.outGatewayUserTaskModel,Enum:Ep,signVisible:!1,digitalSignature:"",confirmPreposition:!1,confirmLoading:()=>{}}},mounted(){this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F")},computed:{signRequired(){return!!this.param.extendedProperties.find(n=>n.name=="signature")}},methods:{complete(e){this.nextTaskObj=e},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getProcessNode(e){let n={};return n.humanPerformerName=e.userTaskModelDTO.humanPerformer.name,n.id=e.id,n.loopCardinality=e.loopCardinality||e.userTaskModelDTO.loopCardinality,n.name=e.userTaskModelDTO.name,n.type=e.type,n.routeTxt=e.userTaskModelDTO.routeTxt,n.participantList=e.userTaskModelDTO.participantList,n.taskNode=this.param.taskNode,n},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u8D26\u6237"||e=="\u56FA\u5B9A\u5355\u4F4D"},getTreeData(e){if(this.param.nextTaskNode){if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8")return e.userTaskModelDTO.routeTxt.departmentIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=Pu.\u90E8\u95E8,r});if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D")return e.userTaskModelDTO.routeTxt.companyIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=Pu.\u4E3B\u4F53,r})}},getRes(){return{targetUser:this.targetUser}},confirm(e,n,r){if(Array.isArray(r)&&(this.param.attachment=r),this.param,this.userTaskListData,!this.commentMsg&&this.param.commentMsgRequired)return Ml.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Ml.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let a={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,attachment:this.param.attachment};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){for(let g in this.userTaskListData){let y=this.userTaskListData[g];this.$refs[y];let O=this.$refs[y].$el?this.$refs[y]:this.$refs[y][0];O.getValue;let S=O.getValue();if(S&&S.vars&&this.param.incomingConditionItemList&&this.param.incomingConditionItemList.length>0&&this.param.incomingConditionItemList.forEach(B=>{S.vars[B.itemName]||(S.vars[B.itemName]="")}),!S&&this.nextTaskObj.type!="endEvent")return!1;let N=[];const _=this.param.nextTaskNode;_.setPersonnel?N=_.assignees||[]:N=(O.targetUserList||[]).map(B=>({id:B.id,name:B.name})),a.assignees=N,a.multiNodeParticipant={...a.multiNodeParticipant,...S.multiNodeParticipant},a.vars={...a.vars,...S.vars}}let s=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&(!this.param.nextTaskNode.branches||this.param.nextTaskNode.branches.length<=0),c=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent",p=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&!this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeType!="endEvent";if(s||c||p){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)a.multiNodeParticipant={...a.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(g=>g.id)};else if(!Object.keys(a.multiNodeParticipant).length&&this.nextTaskObj.type!="endEvent")return Ml.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}}if(a.pass=!0,Date.now()&&this.param,this.param.getVars){let s=this.param.getVars();if(s===!1&&this.nextTaskObj.type!="endEvent")return!1;a.vars={...a.vars,...s}}if(this.signRequired,this.signRequired){this.confirmPreposition=e,this.confirmLoading=n,this.signVisible=!0;return}n(),e?e().then(s=>{Xe.tis.complete(a).then(c=>{c.code==_t.success?(s&&s(),this.$emit("success")):this.$emit("fail",c.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Xe.tis.complete(a).then(s=>{s.code==_t.success?this.$emit("success"):this.$emit("fail",s.msg)}).catch(s=>{this.$emit("fail",s.response?s.response.data?s.response.data.msg||s.response.data.message:"":s.message||s.msg||"")})},confirmWithSign(){let e={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,digitalSignature:{name:this.param.digitalSignature.name,url:this.param.digitalSignature.url},attachment:this.param.attachment};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){for(let c in this.userTaskListData){let p=this.userTaskListData[c],m=this.$refs[p].$el?this.$refs[p]:this.$refs[p][0];m.getValue;let g=m.getValue();if(!g&&this.nextTaskObj.type!="endEvent")return!1;e.multiNodeParticipant={...e.multiNodeParticipant,...g.multiNodeParticipant},e.vars={...e.vars,...g.vars}}let n=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&(!this.param.nextTaskNode.branches||this.param.nextTaskNode.branches.length<=0),r=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent",a=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&!this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeType!="endEvent";if(n||r||a){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)e.multiNodeParticipant={...e.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(c=>c.id)};else if(!Object.keys(e.multiNodeParticipant).length&&this.nextTaskObj.type!="endEvent")return Ml.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}if(this.param.getVars){let c=this.param.getVars();if(c===!1&&this.nextTaskObj.type!="endEvent")return!1;e.vars={...e.vars,...c}}}e.pass=!0,this.confirmLoading(),this.confirmPreposition?this.confirmPreposition().then(n=>{Xe.tis.complete(e).then(r=>{r.code==_t.success?(n&&n(),this.$emit("success")):this.$emit("fail",r.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Xe.tis.complete(e).then(n=>{n.code==_t.success?this.$emit("success"):this.$emit("fail",n.msg)}).catch(n=>{this.$emit("fail",n.response?n.response.data?n.response.data.msg||n.response.data.message:"":n.message||n.msg||"")})},handleSignature(e,n){this.param.digitalSignature=e,n&&(this.signVisible=!1,this.confirmWithSign())},closeSign(){this.signVisible=!1},noticeFail(e){Ml.warning(e)}}},i4={};var HM=rn(QM,LM,zM,!1,VM,"7f9f1489",null,null);function VM(e){for(let n in i4)this[n]=i4[n]}const W_=function(){return HM.exports}();var UM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.showCommIdea?r("el-form-item",{attrs:{label:"\u5E38\u7528\u610F\u89C1"}},[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{attrs:{rows:5,type:"textarea",maxlength:"200","show-word-limit":"",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?r("div",{staticClass:"add-idea"},[r("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},YM=[];const dX="";var r4=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{r4=e});const WM={components:{staffTree:Aa,commIdea:U_},props:{param:Object},data(){return{commentMsg:""}},methods:{getRes(){return{commentMsg:this.commentMsg}},confirm(e,n){if(!this.commentMsg)return r4.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;e&&e(),n();let r={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData};r.assignees=[],r.pass=!1,Xe.tis.complete(r).then(a=>{a.code==_t.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},a4={};var GM=rn(WM,UM,YM,!1,JM,"02cb58a9",null,null);function JM(e){for(let n in a4)this[n]=a4[n]}const o4=function(){return GM.exports}();var KM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9000\u56DE\u8282\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"}]}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"\u9000\u56DE\u8282\u70B9"},model:{value:e.nodeId,callback:function(a){e.nodeId=a},expression:"nodeId"}},e._l(e.nodesData,function(a){return r("el-option",{key:a.nodeId,attrs:{label:a.nodeName,value:a.nodeId}})}),1)],1),r("el-form-item",{attrs:{label:"\u9000\u56DE\u539F\u56E0",rules:[{required:!0,message:"\u9000\u56DE\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u9000\u56DE\u539F\u56E0"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}})],1),e._t("file"),e._t("form")],2)},XM=[];const fX="";var G_=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{G_=e});const ZM={components:{staffTree:Aa},props:{param:Object},data(){return{commentMsg:"",nodeId:"",nodesData:[]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){Xe.repository.backNodes({taskId:this.param.taskInstId}).then(e=>{e.code==_t.success&&(this.nodesData=(e.data||[]).filter(n=>!n.nodeId.includes("startEvent")))})},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.nodeId)return G_.warning("\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"),!1;if(!this.commentMsg)return G_.warning("\u8BF7\u8F93\u5165\u9000\u56DE\u539F\u56E0"),!1;e&&e(),n(),Xe.tis.rollback(this.param.taskInstId,this.nodeId,this.commentMsg).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},s4={};var $M=rn(ZM,KM,XM,!1,qM,"11b0e88d",null,null);function qM(e){for(let n in s4)this[n]=s4[n]}const l4=function(){return $M.exports}();var eF=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}]}},[r("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.type,callback:function(a){e.type=a},expression:"type"}},e._l(e.nodesData,function(a){return r("el-radio",{key:a.type,attrs:{label:a.type}},[e._v(e._s(a.label))])}),1)],1),r("el-form-item",{attrs:{label:"\u64CD\u4F5C\u8BF4\u660E"}},[r("div",[r("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u9500")]),e._v("\uFF1A\u64A4\u9500\u7EC8\u6B62\u6B64\u6D41\u7A0B ")]),r("div",[r("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u56DE")]),e._v("\uFF1A\u64A4\u56DE\u5230\u53D1\u8D77\u4EBA\u91CD\u65B0\u63D0\u4EA4\uFF0C\u82E5\u5F53\u524D\u6D41\u7A0B\u4E0D\u5B58\u5728\u53D1\u8D77\u4EBA\u8282\u70B9\uFF0C\u529F\u80FD\u540C\u64A4\u9500 ")])]),e._t("file"),e._t("form")],2)},tF=[];const pX="";var c4=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{c4=e});const nF={components:{staffTree:Aa},props:{param:Object},data(){return{commentMsg:"",nodeId:"",type:"",nodesData:[{type:"wf_withdraw_end",label:"\u64A4\u9500"},{type:"wf_withdraw_start",label:"\u64A4\u56DE"}]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.type)return c4.warning("\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"),!1;e&&e(),n(),Xe.tis.withdrawTask({taskId:this.param.taskInstId,withdrawType:this.type}).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},u4={};var iF=rn(nF,eF,tF,!1,rF,"3e4dbd02",null,null);function rF(e){for(let n in u4)this[n]=u4[n]}const aF=function(){return iF.exports}();var oF=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u6284\u9001\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458"}]}},[r("staffTree",{ref:"staffTree",attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5e3,disable:e.isOperLoading},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),e._t("file"),e._t("form")],2)},sF=[];const hX="";var d4=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{d4=e});const lF={components:{staffTree:Aa},props:{param:Object,isOperLoading:!1},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return d4.warning("\u8BF7\u9009\u62E9\u6284\u9001\u4EBA"),!1;let r=this.targetUser.join(" ")||"";e&&e({userList:this.$refs.staffTree.userList}),n(),Xe.tis.createCCTask({processInstId:this.param.processInstId,participant:r,taskId:this.param.taskInstId,title:""}).then(a=>{a.code==_t.success?this.$emit("success",!1):this.$emit("fail",a.msg)})}}},f4={};var cF=rn(lF,oF,sF,!1,uF,"3881f760",null,null);function uF(e){for(let n in f4)this[n]=f4[n]}const p4=function(){return cF.exports}(),h4=Object.freeze(Object.defineProperty({__proto__:null,counterSign:Zk,delegateTask:e4,complete:W_,cancel:o4,roolback:l4,withdrawTask:aF,ccTask:p4},Symbol.toStringTag,{value:"Module"})),m4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAACSCAYAAAA93+RpAAAABHNCSVQICAgIfAhkiAAACiVJREFUeF7tnVtsFFUYgH/aqAWrLbTloiiKFxQS0AAJ8QHx0Xh5MBo1+mCMxkt88QF5EgM+GUx80ChGYzAxGqPxwRuPKibGG94SSCSG0IjIzSLSy7alxXO6DJ1uZ/f8s3tmdrvnm4QEyn/OzHzn//qfOTOzO+uM2YQNAhDwQmAWQnnhSCcQmCCAUCQCBDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUBVyYGCgIIXhYZkJn63b+9dhGTefAbz0soXSNa+DzK4TAYQqA/7Ev6dkbGy8TsOSfrcHjFCDg4WJhgt65smyqy5L3wktaiaAUAkIB0xiDg0N1ww3zw7iQiFVnuSn7guhEtj39f1npk8z6zsUSoVCqvpIhVAJ3I//c7I+o1HDXpOEQqoagFbZFKGaXCh7evO758p1V19eZYrQLA0BhApAKKRKo0RtsQgViFBIVZso2tYIFZBQSKXVovo4hApMKKSqXhZNS4QKUCik0qhRXQxCBSoUUlUnjKsVQgUsFFK59Ej//wgVuFBIlV6aSi0QCqEmCHDz149YCIVQ5wggVe1SIRRCTSGAVLVJhVAINY0AUlUvFUIhVGL2IFV1UiEUQpXNHKRKLxVCIVTFrEGqdFIhFEI5MwapnIjOBSAUQqmyBalUmAShEEqXKdz8VXFCKIRSJUoURKWqjAuhECqVUDYYqcojQ6gmEarvxH9y+HhfajmqbbD8miXS3dVZbfOmbYdQTSLU2Pi47O89JKOnT+eSrLPb2mTtDcty2ddM2glCNYlQ9jRGRk/LoaPHz30kc9aJuH7dqqx3MeP6R6gmEio6laHhERk2f7KuVtebaR/bVAII1YRC5ZXk3V18y0cpa4RCqKr9Q6jp6BAKoRCqagIIpUI3E78sQHVinoOoUAilSimEUmEy96G4huIaSpErCKWAZEIQigqlyhSEUmFCqARMLEqwKKGzJyGKCkWFUiUPFUqFiQpFhdIlCkLpOFGhqFCqTEEoFSYqFBXKnSgj+36Tf0/2S8vSFe7ggCPG9++Rzo52Of/alQFToEJVHHwr09+P3yptz74prStvIlEqEBj77RspPP+ILNq+E6linFjlOwsjkmm8/6TMeeEDhHL8OrFCDW66R1raO5AKoaZmS1wm+z8I5S7OkVA2EqkmeQVfoUplQii3TDYiLhRSIdQEgSSZEKo6oZCqyC3YClXYvUuObLxf7DVT6caUzy1VaYWKWtjp34Jt70nb6vXuTpowIkih+j99R45tfbzscCKUO9PLCRW17Nm8Xdpvf9DdUZNFBCeUSyamfLoMdwllewlRquCEKnz0pjNjCnMvkVmz251xIQecGeqXthOHnAja7nrEGdNMAcEJJffe2Ezj1/jn8v7PjX+MHo8QoTzCpKsEAgjV5GlBhcp3gBEqX9657w2h8kWOUPnyzn1vWQl1j1mGv/uxyqdzzFzEH/hdZOe7Int+nBq74U6Rm+8o3/6oaRu1//HL8nGufpJafvWJyJcfZzMUCJUN14bptZ5CxSHYBH7tucmfaISMoq1Yb78o8sMX07Gm6Sdq/eHrIh9sz2aIECobrg3Ta6MIZYHEE7kaEayQpZWlmn4Qylt6ssrnC2U8kcslaM8lIk9uFVm+urjXgVMiD599RCfefu9ukS0l928uvEhk7S1mWmmmlj2LJo96033FaWS0xfvp3Wcq2Tb3GUbTSXdk+ggqVHpmM6pFHhWq0m98K8ZbuyaRbX20eD3lEipqYdtbKddsKP5kr2m7xfSRJFSSmHkPFkLlTTzn/dVbKHu68SRLK5RtbyvdK58lVymtmHlhR6i8SNdpP/UWasUakc1vTJ78U7cVV+/SimCrVLQqWO5ajAqVe5JxDeULeVwIu1DwVcky9BXm6zOXmD/2OshO2yama7FrpbRC2eXxJ7YU+7HL6NueLv493o+9RuuNXV+VO1eWzX1lQYDvQ+VRoTTDM9hfXHiIFhTSChWvdOXE1ByHjWGVT0vKGUeFciJSBqRZrj72t8iLpqKUW53TTNUQSjkw+YYhlC/ecaGsMKVTvmg/dlWu9CmJ0qmaRijNlI9lc1+jq+4HodSoHIFpp2yl3aVtz6KEr5Hz2g9C+cKZVohahLKLGi+bZfNocSN+c7fW4/DFI+qHZXPfRBusvzwWJTRTtlqEsqt7dspnNzute+beyd4Qqq4JR4Xyhb/WRNa0t09H3PaAeXTJ3MuKtujGcPRvTT++zlnTDxVKQ2kGx8yECqXFa+8fvbp5ajRCaellEkeF8oW11kROs+xuj/lz805V0oOvtR6HLx5cQ/km2aD9ZVWh7H2haCpmHyVK+8KeRih7M9i+A2WX5JOW3i3yiRcMz15f2ftcmqfNsxwqpnxZ0m2AvrMSqgFOreEOwX4U246vG+6wsjyg8KZ89pm3Sq+QZ0k7tL7tIsrGl4I66/CEslMluzLGlj0B+1S9nQoHtIUnlB1ce32zw7zJaj79lC0DAnaq99DGyXtlGeyiUbsMUyg7Gnbh4HtzgT9oXnEo2QYHC406Xg11XHPmtE0/njnmKQ67MBI9xdFQR5z9wYQrVAW2fAu8LvG6uzp0gQFFIVTCYCOUzgCEms4JoRBKZ09CFEIhlCp5qFAqTIJQCKXKFIRSYUKoBExM+Zjy6exhyqfihFAIpUqUpCCmfEz5VMnDlE+FiSkfUz5doiCUjhMVigqlyhSEcmMaP3NG5nd3ugMDi+AaKmHA//zrqMxuuyCwVEh3uoXCsCy+dH66RgFEI1TCIP+y5w9ZvLAngOGv/hQPHDwsa1aZj5Zmm0IAoRISYte3v0r3vE7pmnuxtLa0kDIxAnaqd+RYn5w4eUrWr1sFmxICCFVGKPvj1tZW6exolwvOO4/EMQRGRkeNSP0yNjY2wQOhWJRQifHdT3tleGRUFRtq0IXm1Y3VK5nylY4/FSrBiF5zfdB78EiorqjOe8niBbJk8UJVbEhBCJUw2qfNlOZXszAxwIuGiS7Ya8sVy64MyRP1uSJUBVS2Uh0+2sf07ywjO83rntdBZaqQMwil/t1DIATcBBDKzYgICKgJIJQaFYEQcBNAKDcjIiCgJoBQalQEQsBNAKHcjIiAgJoAQqlREQgBNwGEcjMiAgJqAgilRkUgBNwEEMrNiAgIqAkglBoVgRBwE0AoNyMiIKAmgFBqVARCwE0AodyMiICAmgBCqVERCAE3AYRyMyICAmoCCKVGRSAE3AQQys2ICAioCSCUGhWBEHATQCg3IyIgoCaAUGpUBELATQCh3IyIgICaAEKpUREIATcBhHIzIgICagL/A5aq8pai8ohoAAAAAElFTkSuQmCC",g4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABKCAYAAADjcueTAAAFw0lEQVR4Xu2c3XHbRhDH/wclQ2UITZwKLFcQqQKLFViqIHQFpl5i8snKE6m8WK4gVAWmKzBVgckKolQQcgjGTmxzMwsQEL5xd/ggiDEeReAOv9u9xe7d/yRQxPW7dYIN3gI4LqI5xTamEBjjpXmr8pxQuTn2Xhua3gPiUe628jUwQ6vdwaVYyDSTD3xodSHwh0xHFd0zQ988lelLH7x+0A4v4TkG5jgLXg88C5qog8HRNKvz3L87sYUhf/a1JWV1dfAsaHvUKwLnvhz4D4FB7JuZXJk3BBocWS8A3EQtRUtA/Oj9vUpw7nRkUXngI4uDWDcCzXMK1IUQT5sHngbNgWS4mjYPPBaaliDR86Jn48CToA1xhl/NmefajQF/TY/wL89pcR6c07REGJpvaAS4Db1+D+BECroR4DrQew+eCI05DHQDczr8TRut/g4UKXvzHU+DbrXPUiueuExOInPKna76G9BKYNJraY7caWUel6LBWEB0h8HRWaFgWY1pgY8sznNDgSyrp5Tf49ycPerzJ38hodbB94fzVK/TBA/muWqvFAr8MSXh8OMxxJcP+RYqaAH67hSDH+5jX29n4IS/YIgeXrYnkRcbrq4gxKs842k/S/QbBkdX5YGzq6pcB2KRGvFlyliZ/tIWGAqxeBkR+drqYUOhLFCG1rtnmmht7bJUY7SUXrmKmzUYhE4RXwWLUh/fwLfDJTFdv1nccy2J0VJywypuLt3VORkxvj4FRHVbRcTJy8G7xOSl9KheSAama35awBCdxHyhVIsXlYFps5eduSXN8eHqDELwysxuLiEuYlPi0l2dO7hen4M2XRCq2xkVWIDEJHU/LOjqc/TNzGqzaZ+zObIWTrb+2iRwaWhmbwo4iwLSl8hCkakZ4LzCI6mEcPmbAa7xnVEDtzO3zS8a/eR7ZGPcpmZuGq3Lg8dtwGt0qP1IwWv18uB1ztw0RlMFfLeZ284szqPKaStQ7WaBY01ec4sXE3FE/2/9LFAxckVn4C5tEVTe4hruVOojTsx5nWGIewhcxake9xP8ev0KRPFr7PGjHVE97h94WKXBe3UQYxy2J14S4yyYnGODHgQeb8fiHnTQcT+L+wUegKYlhNFNLFVdyw+tMQTc3MOz/P6Ah6HjJClJQWVksTaPNXreVpQaOEd1w3jQs5UTveYRK2ZB25H9nxcg4i8OB7RpJKB5Oh1nA1IevJoVmGhpmQWdLBufotW+eJj3vhUkgUsV8GJ2PZO9pEhot5c36Js9r8uhxd7wGKB38uDl5ur5oQm3GJhdOKvBM09b619DfJCl3cuD25nbx2PgS1TPmneuH5o3gXpa1b1daPc9/MGs1f7J5+6e16qB5wWUeT4vtCNkYnmLs+nht/hoNQHEM/5zvcCLgX4QJ0Y94U97QIju6gNeNDRoiZZ5HMjmxFcG5+tNPcDLgA4nOKPVW0+bS9TZPXgV0H4dzlaHt1vwqqHZyQ2ccp2+O/CAGipGDh7OyMKBKiJDjWkjrLjyKad2B27nBVw50XlEA18ydD0+Z5wU+RWLFUDXA9yf1FQEXT/wkeUkGHbdvM293YHJOafDSWN0jm+jnkx2Weg9rH4ke/EwCu125K2mqAWyuPdkcNak+yTVNEHLfK66CZd7EDz5eCjjCjfMBYiBcfAUVOhUs8TBWgH/SOd+e9tc6UKdpD5cVUPYxbPeKSoSDtbgCc8L8Nz5tJ75ViOzupL4XQPeA08R+YR7jn6nnZpc4nIO1TrRdBo4GCvxcPotivCqFs8B7UT1YNS8sg/I+k8G5xoABXivVqYFWuYTpQNAqtMjAO4HdFZailEvZgn53X5tRRXxP9jgODFB/+gidsxzWtptU+38eC7rSzwcPKo5hYFLL3q7ogT/1pGGpesJ7iQpvCsaOrFEi5jDPFLRO2m462VxfkvnK3Pj2/YJvnvawR8Jp6qnxcNxxtn4OwGI480UhjHL3CuThP8fruFfjjCGtMkAAAAASUVORK5CYII=";var dF=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("ul",{staticClass:"file-wrap"},[e._l(e.fileList,function(a,s){return r("li",{key:s,staticClass:"file-item"},[e.isImage(a)?r("section",{class:[e.isText?"TextWrapper":"image-wrapper"]},[r("el-image",{ref:"images",refInFor:!0,attrs:{src:a,"preview-src-list":e.previewSrcList}}),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[r("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])],1):e.isDw(a)?r("section",{staticClass:"image-wrapper"},[e.isPdf(a)?r("div",{staticClass:"el-image"},[r("img",{staticClass:"el-image__inner",attrs:{src:m4,alt:""}})]):r("div",{staticClass:"el-image el-attach"},[r("img",{staticClass:"el-image__inner",attrs:{src:g4,alt:""}})]),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[r("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):a?r("section",{staticClass:"image-wrapper"},[e.isPdf(a)?r("div",{staticClass:"el-image"},[r("img",{staticClass:"el-image__inner",attrs:{src:m4,alt:""}})]):r("div",{staticClass:"el-image el-attach"},[r("img",{staticClass:"el-image__inner",attrs:{src:g4,alt:""}})]),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[r("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),r("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[r("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):e._e(),!e.showFile&&e.showFileName?r("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[r("div",{staticClass:"file_name"},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]):e._e(),e.showFile?r("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[e._t("filename",function(){return[e.fullFileObject&&e.fullFileList[s].fileSize?r("div",{staticClass:"file_name",staticStyle:{"text-align":"center",height:"23px","line-height":"23px"}},[e._v(" "+e._s(e.fullFileList[s].fileSize>1024?(e.fullFileList[s].fileSize/(1024*1024)).toFixed(2):(e.fullFileList[s].fileSize/1024).toFixed(2))+" "+e._s(e.fullFileList[s].fileSize>1024?"M":"KB")+" ")]):e._e(),r("div",{staticClass:"file_name",staticStyle:{height:"25px","line-height":"25px"}},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]},{filename:a})],2):e._e()])}),e.showPlus?r("li",{staticClass:"file-item"},[r("div",{staticClass:"image-wrapper pointer",on:{click:function(a){return e.selectFile()}}},[r("el-icon",{attrs:{color:"#1389ff",size:"35"}},[r("Plus")],1)],1)]):e._e(),e.showEmpty?r("li",{staticClass:"empty-wrap"},[e._v("\u6682\u65E0\u6570\u636E")]):e._e()],2),e.remark!==""?r("div",{staticStyle:{color:"gray"}},[e._v(e._s(e.remark))]):e._e(),e.value?r("section",{staticClass:"value-wrap"}):e._e(),r("input",{ref:"file",staticClass:"file-input",attrs:{accept:e.acceptType,type:"file",multiple:e.multiple},on:{change:e.onUploadChange}})])},fF=[];const mX="",J_={upload:e=>new Promise((n,r)=>{Xe.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},pF={name:"JyrFileUpload",inject:{elForm:{default:""}},props:{acceptType:{type:String,default:""},showFileName:{type:Boolean,default:!0},value:{type:[String,Array],default:""},locked:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},fileMaxSize:{type:Number,default:200},hasFilename:{type:Boolean,default:!1},hasContainId:{type:Boolean,default:!1},fullFileObject:{type:Boolean,default:!1},isText:{type:Boolean,default:!1},viewCallBack:{type:Function},remark:{type:String,default:""},showFile:{type:Boolean,default:!1},limit:[String,Number]},data(){return{index:void 0,fileList:[],fullFileList:[],loading:!1}},computed:{previewSrcList(){return this.fileList.filter(e=>this.isImage(e))},showPlus(){return!this.isDisabled&&(this.multiple||this.fileList.length<1)},showEmpty(){return this.isDisabled&&this.fileList.length<1},isDisabled(){return this.locked||this.elForm&&this.elForm.disabled}},watch:{value(){this.composeFileList()}},created(){this.composeFileList()},methods:{async selectFile(){this.$refs.file.click()},onUploadChange(e){const n=e.target.files;if(this.limit!=-1&&n.length+this.fileList.length>this.limit)return this.$message.error("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+this.limit+"\u4E2A\u6587\u4EF6"),!1;n.length;let r=this.fullFileList.map(a=>a.originFileName);for(let a=0;a<n.length;a++){const s=n[a];if(s.size==0)return this.$message.error("\u6587\u4EF6\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"),!1;const c=1024*1024*this.fileMaxSize;if(s.size>c){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${this.fileMaxSize}M`);return}if(!s){this.$refs.file.value=null;return}const p=s.name.split(".");if(this.acceptType!=""&&this.acceptType.indexOf(p[p.length-1])<0){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u7C7B\u578B\u9650\u5236\u4E3A${this.acceptType}`);return}let m=0,g=s.name;for(;m<r.length&&r.includes(s.name);){const y=s.name.lastIndexOf(".");if(m=m+1,y>-1){const O=s.name.substring(0,y),S=s.name.substring(y);g=O+"("+m+")"+S}else g=s.name+"("+m+")"}r.push(g),this.doUpload(s,g)}},coputedFullFileList(e){this.$emit("input",e),this.$emit("change",e)},async doUpload(e,n){this.loading=!0;const r=new FormData;r.append("file",e,n);const a=await J_.upload(r);if(this.loading=!1,!a.success)return;if(this.$refs.file.value=null,!this.multiple){if(this.fullFileObject)this.$emit("input",[a.data]),this.$emit("change",[a.data]);else{const c=this.composeFilename(a.data);this.$emit("input",c),this.$emit("change",c)}return}this.index>=0?(this.fileList.splice(this.index,1,this.composeFilename(a.data)),this.fullFileList.splice(this.index,1,a.data)):(this.fileList.push(this.composeFilename(a.data)),this.fullFileList.push(a.data)),this.fileList;const s=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(s)},composeFileList(){if(this.fullFileObject){this.fileList=this.value&&this.value.length?this.value.map(e=>`${e.url}&${e.name}`):[],this.fullFileList=this.value&&this.value.length?this.value.map(e=>e):[];return}this.value?this.fileList=this.value.split(",").filter(e=>e):this.fileList=[]},composeFilename(e){return this.hasFilename?`${e.url}?filename=${e.fileName}`:this.hasContainId?e.id:`${e.url}&${e.name}`},isImage(e){const n=e.split("."),r=n[n.length-1];return["png","jpg","jpeg","gif","bmp"].includes(r)},isDw(e){const n=e.split("."),r=n[n.length-1];return["dwg","dwt"].includes(r)},isPdf(e){const n=e.split("."),r=n[n.length-1];return["pdf"].includes(r)},onDelete(e){if(this.multiple){this.fileList.splice(e,1),this.fullFileList.splice(e,1);const n=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(n)}else this.$emit("input",""),this.$emit("change","")},onPreview(e){if(this.viewCallBack){this.viewCallBack(e,this.fileList);return}let n=this.fileList[e].split("."),r=n[n.length-1],s=["png","jpg","jpeg","gif"].some(function(p){return p==r}),c=null;if(this.fileList.forEach((p,m)=>{this.isImage(p)&&m<=e&&(c==null?c=0:c=c+1)}),s)this.$refs.images[c].clickHandler();else{let p=`${this.fileList[e]}`,m=1;p.indexOf("https")!==-1||p.indexOf("http")!==-1?(m=p.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${p}`)):p.indexOf("http")===-1&&J_.list([p]).then(g=>{m=g.data[0].url.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${g.data[0].url}`)})}},onDownload(e){const n=this.fileList[e];n.indexOf("https")!==-1||n.indexOf("http")!==-1?this.downloadFile(n,n.slice(n.lastIndexOf("&")+1)):J_.list([n]).then(r=>{this.downloadFile(r.data[0].url,r.data[0].url.slice(r.data[0].url.lastIndexOf("&")+1))})},downloadFile:(e,n)=>{var r=document.createElement("a");r.download=n,r.style.display="none";var a=new Blob([e]);r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},A4={};var hF=rn(pF,dF,fF,!1,mF,"628e6ebd",null,null);function mF(e){for(let n in A4)this[n]=A4[n]}const rh=function(){return hF.exports}();rh.install=e=>{e.component(rh.name,rh)};const gF='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',AF=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,v4=e=>Array.from(e.querySelectorAll(gF)).filter(n=>vF(n)&&AF(n)),vF=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};var b4;const Ai=typeof window<"u",bF=e=>typeof e=="string",_F=()=>{};Ai&&((b4=window==null?void 0:window.navigator)==null?void 0:b4.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K_(e){return typeof e=="function"?e():MO(e)}function yF(e){return e}function X_(e){return VO()?(UO(e),!0):!1}function xF(e,n=!0){SO()?wT(e):n?e():Qp(e)}function wF(e,n,r={}){const{immediate:a=!0}=r,s=aC(!1);let c=null;function p(){c&&(clearTimeout(c),c=null)}function m(){s.value=!1,p()}function g(...y){p(),s.value=!0,c=setTimeout(()=>{s.value=!1,c=null,e(...y)},K_(n))}return a&&(s.value=!0,Ai&&g()),X_(m),{isPending:oC(s),start:g,stop:m}}function _4(e){var n;const r=K_(e);return(n=r==null?void 0:r.$el)!=null?n:r}const y4=Ai?window:void 0;function x4(...e){let n,r,a,s;if(bF(e[0])||Array.isArray(e[0])?([r,a,s]=e,n=y4):[n,r,a,s]=e,!n)return _F;Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]);const c=[],p=()=>{c.forEach(O=>O()),c.length=0},m=(O,S,N,_)=>(O.addEventListener(S,N,_),()=>O.removeEventListener(S,N,_)),g=uC(()=>[_4(n),K_(s)],([O,S])=>{p(),O&&c.push(...r.flatMap(N=>a.map(_=>m(O,N,_,S))))},{immediate:!0,flush:"post"}),y=()=>{g(),p()};return X_(y),y}function EF(e,n=!1){const r=aC(),a=()=>r.value=Boolean(e());return a(),xF(a,n),r}const Z_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$_="__vueuse_ssr_handlers__";Z_[$_]=Z_[$_]||{},Z_[$_];var w4=Object.getOwnPropertySymbols,CF=Object.prototype.hasOwnProperty,kF=Object.prototype.propertyIsEnumerable,SF=(e,n)=>{var r={};for(var a in e)CF.call(e,a)&&n.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&w4)for(var a of w4(e))n.indexOf(a)<0&&kF.call(e,a)&&(r[a]=e[a]);return r};function E4(e,n,r={}){const a=r,{window:s=y4}=a,c=SF(a,["window"]);let p;const m=EF(()=>s&&"ResizeObserver"in s),g=()=>{p&&(p.disconnect(),p=void 0)},y=uC(()=>_4(e),S=>{g(),m.value&&s&&S&&(p=new ResizeObserver(n),p.observe(S,c))},{immediate:!0,flush:"post"}),O=()=>{g(),y()};return X_(O),{isSupported:m,stop:O}}var C4;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(C4||(C4={}));var DF=Object.defineProperty,k4=Object.getOwnPropertySymbols,BF=Object.prototype.hasOwnProperty,IF=Object.prototype.propertyIsEnumerable,S4=(e,n,r)=>n in e?DF(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,OF=(e,n)=>{for(var r in n||(n={}))BF.call(n,r)&&S4(e,r,n[r]);if(k4)for(var r of k4(n))IF.call(n,r)&&S4(e,r,n[r]);return e};OF({linear:yF},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const TF=()=>Ai&&/firefox/i.test(window.navigator.userAgent);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Fl=()=>{},NF=Object.assign,MF=Object.prototype.hasOwnProperty,ah=(e,n)=>MF.call(e,n),FF=Array.isArray,ns=e=>typeof e=="function",wr=e=>typeof e=="string",ed=e=>e!==null&&typeof e=="object",PF=e=>{const n=Object.create(null);return r=>n[r]||(n[r]=e(r))},RF=/-(\w)/g,jF=PF(e=>e.replace(RF,(n,r)=>r?r.toUpperCase():""));var LF=typeof global=="object"&&global&&global.Object===Object&&global;const zF=LF;var QF=typeof self=="object"&&self&&self.Object===Object&&self,HF=zF||QF||Function("return this")();const q_=HF;var VF=q_.Symbol;const Pl=VF;var D4=Object.prototype,UF=D4.hasOwnProperty,YF=D4.toString,td=Pl?Pl.toStringTag:void 0;function WF(e){var n=UF.call(e,td),r=e[td];try{e[td]=void 0;var a=!0}catch{}var s=YF.call(e);return a&&(n?e[td]=r:delete e[td]),s}var GF=Object.prototype,JF=GF.toString;function KF(e){return JF.call(e)}var XF="[object Null]",ZF="[object Undefined]",B4=Pl?Pl.toStringTag:void 0;function I4(e){return e==null?e===void 0?ZF:XF:B4&&B4 in Object(e)?WF(e):KF(e)}function $F(e){return e!=null&&typeof e=="object"}var qF="[object Symbol]";function ey(e){return typeof e=="symbol"||$F(e)&&I4(e)==qF}function e9(e,n){for(var r=-1,a=e==null?0:e.length,s=Array(a);++r<a;)s[r]=n(e[r],r,e);return s}var t9=Array.isArray;const ty=t9;var n9=1/0,O4=Pl?Pl.prototype:void 0,T4=O4?O4.toString:void 0;function N4(e){if(typeof e=="string")return e;if(ty(e))return e9(e,N4)+"";if(ey(e))return T4?T4.call(e):"";var n=e+"";return n=="0"&&1/e==-n9?"-0":n}function M4(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var i9="[object AsyncFunction]",r9="[object Function]",a9="[object GeneratorFunction]",o9="[object Proxy]";function s9(e){if(!M4(e))return!1;var n=I4(e);return n==r9||n==a9||n==i9||n==o9}var l9=q_["__core-js_shared__"];const ny=l9;var F4=function(){var e=/[^.]+$/.exec(ny&&ny.keys&&ny.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c9(e){return!!F4&&F4 in e}var u9=Function.prototype,d9=u9.toString;function f9(e){if(e!=null){try{return d9.call(e)}catch{}try{return e+""}catch{}}return""}var p9=/[\\^$.*+?()[\]{}|]/g,h9=/^\[object .+?Constructor\]$/,m9=Function.prototype,g9=Object.prototype,A9=m9.toString,v9=g9.hasOwnProperty,b9=RegExp("^"+A9.call(v9).replace(p9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _9(e){if(!M4(e)||c9(e))return!1;var n=s9(e)?b9:h9;return n.test(f9(e))}function y9(e,n){return e==null?void 0:e[n]}function P4(e,n){var r=y9(e,n);return _9(r)?r:void 0}function x9(e,n){return e===n||e!==e&&n!==n}var w9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E9=/^\w*$/;function C9(e,n){if(ty(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ey(e)?!0:E9.test(e)||!w9.test(e)||n!=null&&e in Object(n)}var k9=P4(Object,"create");const nd=k9;function S9(){this.__data__=nd?nd(null):{},this.size=0}function D9(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var B9="__lodash_hash_undefined__",I9=Object.prototype,O9=I9.hasOwnProperty;function T9(e){var n=this.__data__;if(nd){var r=n[e];return r===B9?void 0:r}return O9.call(n,e)?n[e]:void 0}var N9=Object.prototype,M9=N9.hasOwnProperty;function F9(e){var n=this.__data__;return nd?n[e]!==void 0:M9.call(n,e)}var P9="__lodash_hash_undefined__";function R9(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nd&&n===void 0?P9:n,this}function is(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}is.prototype.clear=S9,is.prototype.delete=D9,is.prototype.get=T9,is.prototype.has=F9,is.prototype.set=R9;function j9(){this.__data__=[],this.size=0}function oh(e,n){for(var r=e.length;r--;)if(x9(e[r][0],n))return r;return-1}var L9=Array.prototype,z9=L9.splice;function Q9(e){var n=this.__data__,r=oh(n,e);if(r<0)return!1;var a=n.length-1;return r==a?n.pop():z9.call(n,r,1),--this.size,!0}function H9(e){var n=this.__data__,r=oh(n,e);return r<0?void 0:n[r][1]}function V9(e){return oh(this.__data__,e)>-1}function U9(e,n){var r=this.__data__,a=oh(r,e);return a<0?(++this.size,r.push([e,n])):r[a][1]=n,this}function Rl(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}Rl.prototype.clear=j9,Rl.prototype.delete=Q9,Rl.prototype.get=H9,Rl.prototype.has=V9,Rl.prototype.set=U9;var Y9=P4(q_,"Map");const W9=Y9;function G9(){this.size=0,this.__data__={hash:new is,map:new(W9||Rl),string:new is}}function J9(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function sh(e,n){var r=e.__data__;return J9(n)?r[typeof n=="string"?"string":"hash"]:r.map}function K9(e){var n=sh(this,e).delete(e);return this.size-=n?1:0,n}function X9(e){return sh(this,e).get(e)}function Z9(e){return sh(this,e).has(e)}function $9(e,n){var r=sh(this,e),a=r.size;return r.set(e,n),this.size+=r.size==a?0:1,this}function rs(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}rs.prototype.clear=G9,rs.prototype.delete=K9,rs.prototype.get=X9,rs.prototype.has=Z9,rs.prototype.set=$9;var q9="Expected a function";function iy(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(q9);var r=function(){var a=arguments,s=n?n.apply(this,a):a[0],c=r.cache;if(c.has(s))return c.get(s);var p=e.apply(this,a);return r.cache=c.set(s,p)||c,p};return r.cache=new(iy.Cache||rs),r}iy.Cache=rs;var e7=500;function t7(e){var n=iy(e,function(a){return r.size===e7&&r.clear(),a}),r=n.cache;return n}var n7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i7=/\\(\\)?/g,r7=t7(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(n7,function(r,a,s,c){n.push(s?c.replace(i7,"$1"):a||r)}),n});const a7=r7;function o7(e){return e==null?"":N4(e)}function s7(e,n){return ty(e)?e:C9(e,n)?[e]:a7(o7(e))}var l7=1/0;function c7(e){if(typeof e=="string"||ey(e))return e;var n=e+"";return n=="0"&&1/e==-l7?"-0":n}function u7(e,n){n=s7(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[c7(n[r++])];return r&&r==a?e:void 0}function d7(e,n,r){var a=e==null?void 0:u7(e,n);return a===void 0?r:a}function R4(e){for(var n=-1,r=e==null?0:e.length,a={};++n<r;){var s=e[n];a[s[0]]=s[1]}return a}function j4(e){return e==null}const L4=e=>e===void 0,as=e=>typeof e=="number",ry=e=>typeof Element>"u"?!1:e instanceof Element,f7=e=>wr(e)?!Number.isNaN(Number(e)):!1,z4=e=>Object.keys(e);class Q4 extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function p7(e,n){throw new Q4(`[${e}] ${n}`)}function Ur(e,n){if(process.env.NODE_ENV!=="production"){const r=wr(e)?new Q4(`[${e}] ${n}`):e;console.warn(r)}}const h7="utils/dom/style",H4=(e="")=>e.split(" ").filter(n=>!!n.trim()),V4=(e,n)=>{if(!e||!n)return!1;if(n.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(n)},m7=(e,n)=>{!e||!n.trim()||e.classList.add(...H4(n))},g7=(e,n)=>{!e||!n.trim()||e.classList.remove(...H4(n))},A7=(e,n)=>{var r;if(!Ai||!e||!n)return"";let a=jF(n);a==="float"&&(a="cssFloat");try{const s=e.style[a];if(s)return s;const c=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return c?c[a]:""}catch{return e.style[a]}};function ay(e,n="px"){if(!e)return"";if(as(e)||f7(e))return`${e}${n}`;if(wr(e))return e;Ur(h7,"binding value must be a string or number")}let lh;const v7=e=>{var n;if(!Ai)return 0;if(lh!==void 0)return lh;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const a=r.offsetWidth;r.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",r.appendChild(s);const c=s.offsetWidth;return(n=r.parentNode)==null||n.removeChild(r),lh=a-c,lh};/*! Element Plus Icons Vue v2.3.1 */var b7=x.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),x.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),_7=b7,y7=x.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),U4=y7,x7=x.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),x.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Y4=x7,w7=x.defineComponent({name:"Close",__name:"close",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),E7=w7,C7=x.defineComponent({name:"Hide",__name:"hide",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),x.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),k7=C7,S7=x.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),W4=S7,D7=x.defineComponent({name:"Loading",__name:"loading",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),G4=D7,B7=x.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),J4=B7,I7=x.defineComponent({name:"View",__name:"view",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),O7=I7,T7=x.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),K4=T7;const X4="__epPropKey",vi=e=>e,N7=e=>ed(e)&&!!e[X4],Z4=(e,n)=>{if(!ed(e)||N7(e))return e;const{values:r,required:a,default:s,type:c,validator:p}=e,g={type:c,required:!!a,validator:r||p?y=>{let O=!1,S=[];if(r&&(S=Array.from(r),ah(e,"default")&&S.push(s),O||(O=S.includes(y))),p&&(O||(O=p(y))),!O&&S.length>0){const N=[...new Set(S)].map(_=>JSON.stringify(_)).join(", ");x.warn(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${N}], got value ${JSON.stringify(y)}.`)}return O}:void 0,[X4]:!0};return ah(e,"default")&&(g.default=s),g},os=e=>R4(Object.entries(e).map(([n,r])=>[n,Z4(r,n)])),id=vi([String,Object,Function]),$4={Close:E7,SuccessFilled:J4,InfoFilled:W4,WarningFilled:K4,CircleCloseFilled:U4},ch={success:J4,warning:K4,error:U4,info:W4},M7={validating:G4,success:_7,error:Y4},uh=(e,n)=>{if(e.install=r=>{for(const a of[e,...Object.values(n!=null?n:{})])r.component(a.name,a)},n)for(const[r,a]of Object.entries(n))e[r]=a;return e},F7=(e,n)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[n]=e},e),P7=e=>(e.install=Fl,e),dh={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},oy="update:modelValue",q4=["","default","small","large"],R7=e=>["",...q4].includes(e);var fh=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(fh||{});const j7=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),e3=e=>e,L7=["class","style"],z7=/^on[A-Z]/,Q7=(e={})=>{const{excludeListeners:n=!1,excludeKeys:r}=e,a=x.computed(()=>((r==null?void 0:r.value)||[]).concat(L7)),s=x.getCurrentInstance();return s?x.computed(()=>{var c;return R4(Object.entries((c=s.proxy)==null?void 0:c.$attrs).filter(([p])=>!a.value.includes(p)&&!(n&&z7.test(p))))}):(Ur("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),x.computed(()=>({})))},H7=({from:e,replacement:n,scope:r,version:a,ref:s,type:c="API"},p)=>{x.watch(()=>x.unref(p),m=>{m&&Ur(r,`[${c}] ${e} is about to be deprecated in version ${a}, please use ${n} instead.
18
+ See more tips at https://vuejs.org/guide/deployment.html`)},0),nn.util.warn;const tX="";var eM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("div",{staticClass:"user-list"},[e.processNodeObj&&e.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?[e.noPostOption?r("span",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):e.userList.length>=1?r("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),!e.noPostOption&&!e.onePostUser?r("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")]):e._e()]:[e.userList.length>0?r("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),r("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")])]],2),r("departPerson",e._b({attrs:{visible:e.visible,checkedArray:e.checkedArray,positionArray:e.positionArray},on:{"update:visible":function(a){e.visible=a},callback:e.handleCallback},model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},"departPerson",e.entity,!1))],1)},tM=[];const nX="";function rn(e,n,r,a,s,c,p,m){var g=typeof e=="function"?e.options:e;n&&(g.render=n,g.staticRenderFns=r,g._compiled=!0),a&&(g.functional=!0),c&&(g._scopeId="data-v-"+c);var y;if(p?(y=function(N){N=N||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!N&&typeof __VUE_SSR_CONTEXT__<"u"&&(N=__VUE_SSR_CONTEXT__),s&&s.call(this,N),N&&N._registeredComponents&&N._registeredComponents.add(p)},g._ssrRegister=y):s&&(y=m?function(){s.call(this,(g.functional?this.parent:this).$root.$options.shadowRoot)}:s),y)if(g.functional){g._injectStyles=y;var O=g.render;g.render=function(_,B){return y.call(B),O(_,B)}}else{var S=g.beforeCreate;g.beforeCreate=S?[].concat(S,y):[y]}return{exports:e,options:g}}var Yk=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{Yk=e});const nM={components:{departPerson:lO.departPerson},unmounted(){window.clearInterval(this.searchInterval)},props:{modelValue:{type:Object},defaultOption:{type:Array},personType:"",personEntity:{type:Object,default:()=>{}},disable:!1,multiple:{default:!1,type:Boolean},max:{default:1,type:Number},items:{default:void 0,type:Array},processNodeObj:{default:void 0,request:!1},isAlis:{type:Boolean,default:!1}},inject:{isAlisInject:{value:"isAlisInject",default:null}},data(){return{visible:!1,treeOptions:null,selectModel:this.multiple?[]:void 0,treeSearchOptions:null,noPostOption:!1,onePostUser:!1,positionArray:[],searchTime:-1,searchParam:"",userList:[],checkedArray:[],entity:{source:"1",type:this.personType||"0",request:Xe.getAjaxObj(),orgType:[],codeType:[3],multiple:!0,maxMultiple:this.processNodeObj&&this.processNodeObj.loopCardinality==-1?1e3:this.max>1?this.max:1,deptCode:this.processNodeObj?this.getDeptCode(1):"",deptCodeArray:this.processNodeObj?this.getDeptCode(0)||[]:[],subjectName:this.processNodeObj?this.getSubjectName():""},searchInterval:window.setInterval(this.searchIntervalFunc,100)}},model:{prop:"modelValue",event:"update:modelValue"},watch:{processNodeObj:{handler(e,n){e&&(e.loopCardinality,this.entity={...this.entity,maxMultiple:e.loopCardinality==-1?1e3:this.max>1?this.max:1})},deep:!0}},mounted(){this.personEntity!=""&&Object.keys(this.personEntity).length>1&&(this.entity={...this.entity,...this.personEntity}),this.processNodeObj&&this.processNodeObj.participantList&&this.processNodeObj.participantList.length>0&&(this.processNodeObj.participantList.map(e=>{e.id=e.id}),this.userList=this.processNodeObj.participantList,this.checkedArray=this.processNodeObj.participantList.map(e=>({type:3,id:e.id,name:e.name||e.realName,subjectId:e.subjectId})),this.$emit("update:modelValue",this.userList.map(e=>e.id)),this.$emit("select",this.userList)),this.gePostUsers()},methods:{getSubjectName(){let e="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"&&(e=this.processNodeObj.routeTxt.companyIds[0].name),e},gePostUsers(){if(this.processNodeObj&&this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let{routeTxt:e}=this.processNodeObj,n={taskDefId:this.processNodeObj.id,postIds:[]};e.postList.map(r=>{n.postIds.push(r.postId)}),e.postList&&e.postList.length>0&&Xe.common.getTaskAuditor(this.personEntity._businessDeptId?this.personEntity._businessDeptId:this.processNodeObj.taskNode?this.processNodeObj.taskNode[0].vars._businessDeptId:"",[n]).then(r=>{let a=[],s=[],c=!1;if(r.data.map(p=>{p.posts.map(m=>{s.push(...m.users),m.users.length==1?a.push(...m.users):c=!0})}),a.length>this.entity.maxMultiple&&this.entity.maxMultiple!=0&&(c=!0),c&&(a=[]),s.length==0){this.noPostOption=!0;return}a.length>0&&(this.onePostUser=!0,this.handleCallback(a)),this.entity.orgType=[5],this.entity.codeType=[8],r.data[0].posts.map(p=>{this.positionArray.push({...p,projectPost:!(this.personEntity._businessDeptId||this.processNodeObj.taskNode&&this.processNodeObj.taskNode[0].vars._businessDeptId),id:p.users.map(m=>m.id)})})})}},getDeptCode(e){let n="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"&&(e=="1"&&this.processNodeObj.routeTxt.departmentIds.length==1&&(n=this.processNodeObj.routeTxt.departmentIds[0].rangeId),e=="0"&&this.processNodeObj.routeTxt.departmentIds.length>1&&(n=this.processNodeObj.routeTxt.departmentIds.map(r=>r.rangeId))),n},handleCallback(e){this.userList=e,this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},handleClose(e){this.userList.splice(e,1),this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},searchIntervalFunc(){this.searchTime>0&&(this.searchTime-=100),this.searchTime==0&&(this.searchTime=-1,this.searchParam&&!(this.items&&this.items.length>0)?Xe.org.list(this.searchParam).then(async e=>{if(e.code==_t.success){let n=e.data.map(r=>(r.children=null,r.label=r.name,r.id=r.id,r.deptName=r.deptName,r.alisName=r.alisName,r));this.treeSearchOptions=n,await this.$nextTick(),this.$refs.deptTree.forest.normalizedOptions.forEach(r=>{r.isBranch=!1}),await this.$nextTick(),this.$refs.deptTree.handleLocalSearch()}}):this.treeSearchOptions=null)},searchChange(e){this.searchParam=e,this.searchTime=500,this.deptTree},onSelect(e,n){this.$emit("update:modelValue",this.selectModel),this.$emit("select",e)},onInput(e,n){this.max>0&&this.multiple&&e.length>this.max&&e.length>this.max?(this.$refs.deptTree.clear(),this.$refs.deptTree.forest.selectedNodeIds=this.selectModel,this.$refs.deptTree.select(this.selectModel),this.$refs.deptTree.forest.selectedNodeIds,Yk.warning(`\u6700\u591A\u9009\u62E9 ${this.max} \u4EBA`)):(this.selectModel=e,this.$emit("update:modelValue",this.selectModel))},normalizer(e){if(e.children&&!e.children.length&&delete e.children,e.leaf){let n=`${e.deptName} - ${e.label}(${e.phone})`;return(this.isAlis||this.isAlisInject)&&e.alisName&&(n+="participantList -- "+e.alisName),this.$refs.deptTree.trigger.searchQuery&&(n+=`(${this.$refs.deptTree.trigger.searchQuery})`),{id:e.id,label:n,leaf:e.leaf,phone:e.phone,deptName:e.deptName,alisName:e.alisName}}return{id:e.id,label:e.label,leaf:e.leaf,phone:e.phone,children:e.children,deptName:e.deptName,alisName:e.alisName}},async loadTreeOptions({action:e,parentNode:n,callback:r,instanceId:a}){if(e===LOAD_ROOT_OPTIONS)if(this.items){let s=this.items.map(c=>(c.children=null,c.label=c.name,c.id=c.id,c));this.treeOptions=s}else Xe.org.list().then(s=>{if(s.code==_t.success){let c=s.data.map(p=>(p.children=null,p.label=p.name,p.id=p.id,p));this.defaultOption&&(c=[...c,...this.defaultOption]),this.treeOptions=c}});else if(e===LOAD_CHILDREN_OPTIONS){let s=n.id,c="";if(n.orgType==Pu.\u4E3B\u4F53&&(c=n.id,s=""),n.orgType==Pu.\u7FA4\u7EC4){Xe.org.findTeamMember("",s).then(p=>{let m=p.data.map(g=>(g.label=g.name,g.id=g.id,g));n.children=m,r()});return}Xe.org.list("",s,c).then(p=>{if(p.code==_t.success){let m=p.data.map(g=>(g.leaf||(g.children=null),g.label=g.name,g.id=g.id,g));n.children=m,r()}})}}}},Wk={};var iM=rn(nM,eM,tM,!1,rM,"3efb7a24",null,null);function rM(e){for(let n in Wk)this[n]=Wk[n]}const Aa=function(){return iM.exports}();var Nl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gk(e){var n=e.default;if(typeof n=="function"){var r=function(){return n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var Jk={exports:{}};(function(e,n){(function(r,a){e.exports=a()})(Nl,function(){var r=1e3,a=6e4,s=36e5,c="millisecond",p="second",m="minute",g="hour",y="day",O="week",S="month",N="quarter",_="year",B="date",j="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Se){var ye=["th","st","nd","rd"],_e=Se%100;return"["+Se+(ye[(_e-20)%10]||ye[_e]||ye[0])+"]"}},v=function(Se,ye,_e){var W=String(Se);return!W||W.length>=ye?Se:""+Array(ye+1-W.length).join(_e)+Se},w={s:v,z:function(Se){var ye=-Se.utcOffset(),_e=Math.abs(ye),W=Math.floor(_e/60),J=_e%60;return(ye<=0?"+":"-")+v(W,2,"0")+":"+v(J,2,"0")},m:function Se(ye,_e){if(ye.date()<_e.date())return-Se(_e,ye);var W=12*(_e.year()-ye.year())+(_e.month()-ye.month()),J=ye.clone().add(W,S),ie=_e-J<0,ge=ye.clone().add(W+(ie?-1:1),S);return+(-(W+(_e-J)/(ie?J-ge:ge-J))||0)},a:function(Se){return Se<0?Math.ceil(Se)||0:Math.floor(Se)},p:function(Se){return{M:S,y:_,w:O,d:y,D:B,h:g,m,s:p,ms:c,Q:N}[Se]||String(Se||"").toLowerCase().replace(/s$/,"")},u:function(Se){return Se===void 0}},k="en",Q={};Q[k]=F;var M="$isDayjsObject",H=function(Se){return Se instanceof me||!(!Se||!Se[M])},ne=function Se(ye,_e,W){var J;if(!ye)return k;if(typeof ye=="string"){var ie=ye.toLowerCase();Q[ie]&&(J=ie),_e&&(Q[ie]=_e,J=ie);var ge=ye.split("-");if(!J&&ge.length>1)return Se(ge[0])}else{var Te=ye.name;Q[Te]=ye,J=Te}return!W&&J&&(k=J),J||!W&&k},re=function(Se,ye){if(H(Se))return Se.clone();var _e=typeof ye=="object"?ye:{};return _e.date=Se,_e.args=arguments,new me(_e)},de=w;de.l=ne,de.i=H,de.w=function(Se,ye){return re(Se,{locale:ye.$L,utc:ye.$u,x:ye.$x,$offset:ye.$offset})};var me=function(){function Se(_e){this.$L=ne(_e.locale,null,!0),this.parse(_e),this.$x=this.$x||_e.x||{},this[M]=!0}var ye=Se.prototype;return ye.parse=function(_e){this.$d=function(W){var J=W.date,ie=W.utc;if(J===null)return new Date(NaN);if(de.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var ge=J.match(R);if(ge){var Te=ge[2]-1||0,se=(ge[7]||"0").substring(0,3);return ie?new Date(Date.UTC(ge[1],Te,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,se)):new Date(ge[1],Te,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,se)}}return new Date(J)}(_e),this.init()},ye.init=function(){var _e=this.$d;this.$y=_e.getFullYear(),this.$M=_e.getMonth(),this.$D=_e.getDate(),this.$W=_e.getDay(),this.$H=_e.getHours(),this.$m=_e.getMinutes(),this.$s=_e.getSeconds(),this.$ms=_e.getMilliseconds()},ye.$utils=function(){return de},ye.isValid=function(){return this.$d.toString()!==j},ye.isSame=function(_e,W){var J=re(_e);return this.startOf(W)<=J&&J<=this.endOf(W)},ye.isAfter=function(_e,W){return re(_e)<this.startOf(W)},ye.isBefore=function(_e,W){return this.endOf(W)<re(_e)},ye.$g=function(_e,W,J){return de.u(_e)?this[W]:this.set(J,_e)},ye.unix=function(){return Math.floor(this.valueOf()/1e3)},ye.valueOf=function(){return this.$d.getTime()},ye.startOf=function(_e,W){var J=this,ie=!!de.u(W)||W,ge=de.p(_e),Te=function(C,X){var ee=de.w(J.$u?Date.UTC(J.$y,X,C):new Date(J.$y,X,C),J);return ie?ee:ee.endOf(y)},se=function(C,X){return de.w(J.toDate()[C].apply(J.toDate("s"),(ie?[0,0,0,0]:[23,59,59,999]).slice(X)),J)},he=this.$W,xe=this.$M,Pe=this.$D,K="set"+(this.$u?"UTC":"");switch(ge){case _:return ie?Te(1,0):Te(31,11);case S:return ie?Te(1,xe):Te(0,xe+1);case O:var P=this.$locale().weekStart||0,E=(he<P?he+7:he)-P;return Te(ie?Pe-E:Pe+(6-E),xe);case y:case B:return se(K+"Hours",0);case g:return se(K+"Minutes",1);case m:return se(K+"Seconds",2);case p:return se(K+"Milliseconds",3);default:return this.clone()}},ye.endOf=function(_e){return this.startOf(_e,!1)},ye.$set=function(_e,W){var J,ie=de.p(_e),ge="set"+(this.$u?"UTC":""),Te=(J={},J[y]=ge+"Date",J[B]=ge+"Date",J[S]=ge+"Month",J[_]=ge+"FullYear",J[g]=ge+"Hours",J[m]=ge+"Minutes",J[p]=ge+"Seconds",J[c]=ge+"Milliseconds",J)[ie],se=ie===y?this.$D+(W-this.$W):W;if(ie===S||ie===_){var he=this.clone().set(B,1);he.$d[Te](se),he.init(),this.$d=he.set(B,Math.min(this.$D,he.daysInMonth())).$d}else Te&&this.$d[Te](se);return this.init(),this},ye.set=function(_e,W){return this.clone().$set(_e,W)},ye.get=function(_e){return this[de.p(_e)]()},ye.add=function(_e,W){var J,ie=this;_e=Number(_e);var ge=de.p(W),Te=function(xe){var Pe=re(ie);return de.w(Pe.date(Pe.date()+Math.round(xe*_e)),ie)};if(ge===S)return this.set(S,this.$M+_e);if(ge===_)return this.set(_,this.$y+_e);if(ge===y)return Te(1);if(ge===O)return Te(7);var se=(J={},J[m]=a,J[g]=s,J[p]=r,J)[ge]||1,he=this.$d.getTime()+_e*se;return de.w(he,this)},ye.subtract=function(_e,W){return this.add(-1*_e,W)},ye.format=function(_e){var W=this,J=this.$locale();if(!this.isValid())return J.invalidDate||j;var ie=_e||"YYYY-MM-DDTHH:mm:ssZ",ge=de.z(this),Te=this.$H,se=this.$m,he=this.$M,xe=J.weekdays,Pe=J.months,K=J.meridiem,P=function(X,ee,fe,De){return X&&(X[ee]||X(W,ie))||fe[ee].slice(0,De)},E=function(X){return de.s(Te%12||12,X,"0")},C=K||function(X,ee,fe){var De=X<12?"AM":"PM";return fe?De.toLowerCase():De};return ie.replace(T,function(X,ee){return ee||function(fe){switch(fe){case"YY":return String(W.$y).slice(-2);case"YYYY":return de.s(W.$y,4,"0");case"M":return he+1;case"MM":return de.s(he+1,2,"0");case"MMM":return P(J.monthsShort,he,Pe,3);case"MMMM":return P(Pe,he);case"D":return W.$D;case"DD":return de.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return P(J.weekdaysMin,W.$W,xe,2);case"ddd":return P(J.weekdaysShort,W.$W,xe,3);case"dddd":return xe[W.$W];case"H":return String(Te);case"HH":return de.s(Te,2,"0");case"h":return E(1);case"hh":return E(2);case"a":return C(Te,se,!0);case"A":return C(Te,se,!1);case"m":return String(se);case"mm":return de.s(se,2,"0");case"s":return String(W.$s);case"ss":return de.s(W.$s,2,"0");case"SSS":return de.s(W.$ms,3,"0");case"Z":return ge}return null}(X)||ge.replace(":","")})},ye.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ye.diff=function(_e,W,J){var ie,ge=this,Te=de.p(W),se=re(_e),he=(se.utcOffset()-this.utcOffset())*a,xe=this-se,Pe=function(){return de.m(ge,se)};switch(Te){case _:ie=Pe()/12;break;case S:ie=Pe();break;case N:ie=Pe()/3;break;case O:ie=(xe-he)/6048e5;break;case y:ie=(xe-he)/864e5;break;case g:ie=xe/s;break;case m:ie=xe/a;break;case p:ie=xe/r;break;default:ie=xe}return J?ie:de.a(ie)},ye.daysInMonth=function(){return this.endOf(S).$D},ye.$locale=function(){return Q[this.$L]},ye.locale=function(_e,W){if(!_e)return this.$L;var J=this.clone(),ie=ne(_e,W,!0);return ie&&(J.$L=ie),J},ye.clone=function(){return de.w(this.$d,this)},ye.toDate=function(){return new Date(this.valueOf())},ye.toJSON=function(){return this.isValid()?this.toISOString():null},ye.toISOString=function(){return this.$d.toISOString()},ye.toString=function(){return this.$d.toUTCString()},Se}(),pe=me.prototype;return re.prototype=pe,[["$ms",c],["$s",p],["$m",m],["$H",g],["$W",y],["$M",S],["$y",_],["$D",B]].forEach(function(Se){pe[Se[1]]=function(ye){return this.$g(ye,Se[0],Se[1])}}),re.extend=function(Se,ye){return Se.$i||(Se(ye,me,re),Se.$i=!0),re},re.locale=ne,re.isDayjs=H,re.unix=function(Se){return re(1e3*Se)},re.en=Q[k],re.Ls=Q,re.p={},re})})(Jk);const qu=Jk.exports;var oM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"view-file"},[r("p",{staticClass:"lable"},[e._v("\u67E5\u770B\u9644\u4EF6")]),e._l(e.sortData,function(a,s){return r("div",{key:s,staticClass:"file-info"},[r("div",{staticClass:"name"},[r("el-image",{attrs:{src:e.getFileUrl(a),fit:"fill"}}),r("div",[r("span",[e._v(" "+e._s(e.fileNameLastof(a.name)))]),r("b",{staticClass:"time"},[e._v(e._s(a.uploadTime)+" | "+e._s(e.formatSize(a.size)))])])],1),r("div",{staticClass:"op"},[r("div",{on:{click:function(c){return e.handlePictureCardPreview(a)}}},[e._v(" \u9884\u89C8 ")]),r("div",{on:{click:function(c){return e.handleDownload(a)}}},[e._v(" \u4E0B\u8F7D ")])])])}),r("el-dialog",{attrs:{"append-to-body":""},model:{value:e.dialogVisible,callback:function(a){e.dialogVisible=a},expression:"dialogVisible"}},[r("el-image",{staticStyle:{width:"100%"},attrs:{src:e.dialogImageUrl,alt:"Preview Image"}})],1)],2)},sM=[];const iX="",lM={props:{dataList:{}},data(){return{dialogImageUrl:"",dialogVisible:!1}},computed:{sortData(){return this.dataList.sort((e,n)=>qu(e.uploadTime).valueOf()-qu(n.uploadTime).valueOf())}},methods:{getExt(e){if(!e)return"";let n=e.lastIndexOf(".");return e.substring(n+1).toLocaleLowerCase()},isAssetTypeAnImage(e){let n=this.getExt(e);return["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"].indexOf(n.toLowerCase())!==-1},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let r="/";e.indexOf("\\")!=-1&&(r="\\");let a=e,s=a.lastIndexOf(r);return a.substr(s+1+n,a.length)},formatSize(e){if(!e)return"";var n=1024;return e<n?e+"B":e<Math.pow(n,2)?(e/n).toFixed(2)+"KB":e<Math.pow(n,3)?(e/Math.pow(n,2)).toFixed(2)+"MB":e<Math.pow(n,4)?(e/Math.pow(n,3)).toFixed(2)+"G":(e/Math.pow(n,4)).toFixed(2)+"T"},handleDownload(e){let n=e.url||e.response.data.url;n&&this.downloadFile(n,e.name)},downloadFile:(e,n)=>{var r=document.createElement("a");r.download=n,r.style.display="none";var a=new Blob([e]);r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),document.body.removeChild(r)},getFileUrl(e){let n=e.url||e.response.data.url;return this.isAssetTypeAnImage(n)?n:this.getExt(n)=="zip"||this.getExt(n)=="rar"?require("./assets/zip.png"):this.getExt(n)=="doc"||this.getExt(n)=="docx"?require("./assets/doc.png"):this.getExt(n)=="xls"||this.getExt(n)=="xlsx"?require("./assets/xls.png"):this.getExt(n)=="pdf"?require("./assets/pdf.png"):require("./assets/qt.png")},handlePictureCardPreview(e){let n=e.url||e.response.data.url,r=n.lastIndexOf(".");n.substring(r+1)=="zip"||n.substring(r+1)=="rar"?window.open(n):n.includes("https")?window.open(`https://wdyl.ddzg.cn:8089/?ssl=1&furl=${n}`):window.open(`https://wdyl.ddzg.cn:8089/?ssl=0&furl=${n}`)}}},Kk={};var cM=rn(lM,oM,sM,!1,uM,"e0be2f1a",null,null);function uM(e){for(let n in Kk)this[n]=Kk[n]}const dM=function(){return cM.exports}();var fM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u52A0\u7B7E\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u52A0\u7B7E\u4EBA\u5458"}]}},[r("staffTree",{attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),r("el-form-item",{attrs:{label:"\u52A0\u7B7E\u539F\u56E0",rules:[{required:!0,message:"\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u52A0\u7B7E\u539F\u56E0(200\u5B57\u4EE5\u5185)"},model:{value:e.reason,callback:function(a){e.reason=a},expression:"reason"}})],1),e._t("file"),e._t("form")],2)},pM=[];const rX="";var nh=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{nh=e});const hM={components:{staffTree:Aa},props:{param:Object},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return nh.warning("\u8BF7\u9009\u62E9\u5BA1\u6838\u4EBA"),!1;if(!this.reason)return nh.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"),!1;if(this.reason.length>200)return nh.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let r=this.targetUser||[];e&&e(),n(),Xe.tis.addMultiInstance({taskId:this.param.taskInstId,signPersoneds:r,comment:this.reason}).then(a=>{a.code==_t.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},Xk={};var mM=rn(hM,fM,pM,!1,gM,"79bc4843",null,null);function gM(e){for(let n in Xk)this[n]=Xk[n]}const Zk=function(){return mM.exports}();var AM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-select",{staticClass:"select",attrs:{placeholder:"\u9009\u62E9\u5E38\u7528\u610F\u89C1"},on:{change:e.changeFun},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}},e._l(e.list,function(a,s){return r("el-option",{key:a.opinionId,attrs:{label:a.opinionName,value:a.opinionName}},[r("el-tooltip",{attrs:{effect:"dark","visible-arrow":!0,"popper-class":"pr-option-tooltip",content:a.opinionName,placement:"right"}},[r("div",{staticClass:"option-c"},[r("span",[e._v(e._s(a.opinionName))]),r("i",{staticClass:"el-icon-delete",staticStyle:{float:"right"},on:{click:function(c){return c.stopPropagation(),e.del(a)}}})])])],1)}),1)},vM=[];const aX="",oX="",bM={props:{showLabel:!1},data(){return{value:"",list:[]}},mounted(){this.getList()},methods:{addIdea(e){if(!e)return this.$message({type:"error",message:"\u8BF7\u8F93\u5165\u610F\u89C1\u540E\u91CD\u8BD5"});this.$confirm(`\u5C06\u201D${e}\u201D\u8BBE\u4E3A\u5E38\u7528\u610F\u89C1\u3002`,"\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.getAjaxObj().post("/auth/user/opinion/save",{opinionName:e}).then(n=>{n.success?(this.getList(),this.$message({type:"success",message:"\u8BBE\u7F6E\u6210\u529F"})):this.$message({type:"error",message:n.msg})})})},changeFun(){this.$emit("change",this.value),this.value=""},getList(){Xe.getAjaxObj().get("/auth/user/opinion/my","").then(e=>{this.list=e.data})},del(e){this.$confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u610F\u89C1, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Xe.getAjaxObj().get(`/auth/user/opinion/del/${e.opinionId}`,"").then(n=>{this.getList(),this.$message({type:"success",message:"\u5220\u9664\u6210\u529F"})})}).catch(()=>{})}}},$k={};var _M=rn(bM,AM,vM,!1,yM,"a3cd7af2",null,null);function yM(e){for(let n in $k)this[n]=$k[n]}const U_=function(){return _M.exports}();var xM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u8F6C\u529E\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"}]}},[r("staffTree",{attrs:{personType:e.param.personType,personEntity:e.personEntity},model:{value:e.targetUID,callback:function(a){e.targetUID=a},expression:"targetUID"}})],1),e.param.showCommIdea?r("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?r("div",{staticClass:"add-idea"},[r("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},wM=[];const sX="";var ih=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{ih=e});const EM={components:{staffTree:Aa,commIdea:U_},props:{param:Object},data(){return{commentMsg:"",targetName:"",targetUID:"",personEntity:{}}},watch:{param:{handler(e){this.personEntity={...e.personEntity,maxMultiple:1}},immediate:!0,deep:!0}},methods:{getRes(){return{targetUID:this.targetUID,targetName:this.targetName,commentMsg:this.commentMsg}},confirm(e,n){if(!this.targetUID)return ih.warning("\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"),!1;if(!this.commentMsg)return ih.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return ih.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;e&&e(),n(),Xe.tis.transferTask({taskId:this.param.taskInstId,assignee:this.targetUID.join(" "),comment:this.commentMsg}).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},qk={};var CM=rn(EM,xM,wM,!1,kM,"dd93bc60",null,null);function kM(e){for(let n in qk)this[n]=qk[n]}const e4=function(){return CM.exports}();var SM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"user-task"},[e.processNodeObj.type=="endEvent"?[r("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.lv1label||"\u8282\u70B9\u540D\u79F0"},scopedSlots:e._u([{key:"label",fn:function(a){return a.label,[r("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}],null,!1,51654731)},[r("b",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.processNodeObj.name))])])]:e.processNodeObj.nodeType=="exclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>=1?[e.processNodeObj.branches.length>1?r("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[r("el-radio-group",{staticClass:"ml-4",model:{value:e.radioModel,callback:function(a){e.radioModel=a},expression:"radioModel"}},e._l(e.processNodeObj.branches,function(a){return r("el-radio",{key:a.id,attrs:{label:a,size:"large"}},[e._v(e._s(a.name?a.name:a.nodeInfoDTO?a.nodeInfoDTO.name:""))])}),1)],1):e._e(),e.radioModel.id?[e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="userTask"?[r("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="inclusiveGateway"?[r("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="exclusiveGateway"?e._l(e.radioModel.nodeInfoDTO.branches,function(a){return r("userTask",{key:a.nodeInfoDTO.id,ref:e.setItemRef(a.nodeInfoDTO.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj&&e.processNodeObj.branches&&e.processNodeObj.branches.length==1?e._l(e.processNodeObj.branches,function(a){return r("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj.nodeType=="inclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>0?[r("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[r("el-checkbox-group",{model:{value:e.checkList,callback:function(a){e.checkList=a},expression:"checkList"}},[e._l(e.processNodeObj.branches,function(a){return[e.isSelect(a.nodeInfoDTO?a.nodeInfoDTO:a)?r("el-checkbox",{key:"checkbox"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name,checked:!0,disabled:""}}):r("el-checkbox",{key:"checkbox1"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name}})]})],2)],1),e._l(e.checkModelList,function(a){return r("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:a.nodeInfoDTO?!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0):!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})})]:!e.processNodeObj.assignee||!e.processNodeObj.assignees||e.isOption(e.processNodeObj.humanPerformerName)?[r("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.lv1label||"\u8282\u70B9\u540D\u79F0"},scopedSlots:e._u([{key:"label",fn:function(a){return a.label,[r("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}])},[r("b",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.processNodeObj.name))])]),e.processNodeObj.routeTxt&&e.processNodeObj.routeTxt.length>0&&e.processNodeObj.userList&&e.processNodeObj.userList.length>0?r("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.peopleLabel||"\u6240\u5C5E\u8303\u56F4"}},e._l(e.processNodeObj.routeTxt,function(a,s){return r("div",{key:a.type},[a.ids&&a.ids.length>0?r("div",[r("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),r("span",{staticClass:"include include-name"},[e._v(e._s(a.name))]),s!==e.processNodeObj.routeTxt.length-1?r("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(e.processNodeObj.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0):e._e(),r("el-form-item",{attrs:{label:e.label||"\u5904\u7406\u4EBA",rules:e.rules||{}}},[e.processNodeObj.userList&&e.processNodeObj.userList.length>=2?r("el-select",{attrs:{filterable:"",multiple:e.processNodeObj.loopCardinality==-1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.fixPeopleChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}},e._l(e.processNodeObj.userList,function(a,s){return r("el-option",{key:a.userId,attrs:{label:a.realName,value:a.userId}})}),1):e.processNodeObj.userList&&e.processNodeObj.userList.length==1?r("div",{staticClass:"setVal"},[e._v(" "+e._s(e.processNodeObj.userList[0].realName)+" ")]):e.processNodeObj.setPersonnel&&e.processNodeObj.assignees?r("div",{staticClass:"setVal"},[e._v(" "+e._s((e.processNodeObj.assignees||[]).map(function(a){return a.name||a.realName}).join(", "))+" ")]):r("staffTree",{attrs:{processNodeObj:e.processNodeObj,personType:e.personType,personEntity:e.personEntity,multiple:"",max:e.processNodeObj.loopCardinality==-1?1e3:1,items:e.getTreeData(e.processNodeObj)},on:{"update:modelValue":function(a){e.complete(a,e.processNodeObj)},select:e.selectChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}})],1)]:e._e()],2)},DM=[];const lX="";var ts=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{ts=e});const BM={name:"userTask",components:{staffTree:Aa},props:{index:{type:Number,default:0},processNode:{require:!0},label:"",peopleLabel:"",lv1label:"",personType:"",personEntity:{type:Object,default:()=>{}},rules:{require:!1,type:Array}},data(){return{deptList:[],Enum:Ep,resultList:[],radioModel:{},checkList:[],targetUserId:"",targetUserList:[],processNodeObj:this.processNode,userTaskListData:{},personnelList:[]}},computed:{checkModelList(){let e=this.processNodeObj.branches.filter(n=>this.checkList.includes(n.incomingConditionItemList[0].compareValue));return this.resultList=e||[],this.resultList}},watch:{processNode:{handler(e,n){e.nodeType=="userTask"&&e.setPersonnel&&e.assignees&&e.assignees.length>0&&(this.targetUserId=e.assignees.map(r=>r.id)),e.userList&&e.userList.length==1&&(this.targetUserId=e.userList[0].userId),this.processNodeObj=e||{},this.processNodeObj.type=="endEvent"&&this.$emit("complete",this.processNodeObj)},deep:!0,immediate:!0}},mounted(){this.processNodeObj.childNode&&this.processNodeObj.childNode.length==1&&this.processNodeObj.type==Qb.\u5355\u4E00\u5206\u652F&&(this.radioModel=this.processNodeObj.childNode[0])},methods:{isSelect(e){if(e.incomingConditionItemList[0]){let n=e.incomingConditionItemList[0].itemName.includes("selecd");return n&&(this.checkList.includes(e.name)||this.checkList.push(e.name)),n}return!1},fixPeopleChange(e){this.complete(e,this.processNodeObj)},selectChange(e){this.targetUserList=e},complete(e,n){n.vars=e,this.resultList.every(r=>r.vars)&&(this.processNodeObj.vars=this.resultList.map(r=>r.vars),this.$emit("complete",this.processNodeObj))},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getTreeData(e){if(e){if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8")return e.routeTxt.departmentIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=this.Enum.UserType.\u90E8\u95E8,r});if(e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D")return e.routeTxt.companyIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=this.Enum.UserType.\u4E3B\u4F53,r});if(e.humanPerformerName=="\u56FA\u5B9A\u7FA4\u7EC4")return e.routeTxt.teamList.map(n=>{let r={};return r.id=n.id,r.leaf=!1,r.name=n.teamName,r.orgType=this.Enum.UserType.\u7FA4\u7EC4,r})}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},getValue(){let e=!0,n={multiNodeParticipant:{},vars:{}};if(!this.processNodeObj.type||this.processNodeObj.type==this.Enum.ProcessNodeType.\u7528\u6237\u4EFB\u52A1||this.processNodeObj.type==Qb.\u7528\u6237\u8282\u70B9)if(this.processNodeObj.nodeType=="exclusiveGateway")for(let r in this.userTaskListData){let a=this.userTaskListData[r],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(this.radioModel&&this.radioModel.nodeInfoDTO&&this.radioModel.nodeInfoDTO.id&&this.radioModel.nodeInfoDTO.incomingConditionItemList&&this.radioModel.nodeInfoDTO.incomingConditionItemList.length>0&&(n.vars[this.radioModel.nodeInfoDTO.incomingConditionItemList[0].itemName]=this.radioModel.nodeInfoDTO.incomingConditionItemList[0].compareValue),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}}else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(r=>{const a=this.userTaskListData[r.nodeInfoDTO.id];let s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(r.nodeInfoDTO.incomingConditionItemList.length!==0&&r.nodeInfoDTO.incomingConditionItemList.forEach(p=>{p.itemName&&(n.vars[p.itemName]=p.compareValue)}),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}});else return this.processNodeObj,this.processNodeObj&&this.processNodeObj.nodeType=="inclusiveGateway"?ts.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"):this.processNodeObj.nodeInfoDTO.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} `),!1;else if(!this.processNodeObj.assignee||!Array.isArray(this.processNodeObj.assignee)||!this.processNodeObj.setPersonnel||this.isOption(this.processNodeObj.humanPerformerName)||this.processNodeObj.nodeInfoDTO&&(!this.processNodeObj.nodeInfoDTO.assignee||!Array.isArray(this.processNodeObj.nodeInfoDTO.assignee)||!this.processNodeObj.nodeInfoDTO.setPersonnel||this.isOption(this.processNodeObj.nodeInfoDTO.humanPerformerName))){if(this.targetUserId&&this.targetUserId.length>0)n.multiNodeParticipant={},n.multiNodeParticipant[this.processNode.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.id:this.processNodeObj.id]=Array.isArray(this.targetUserId)?this.targetUserId:[this.targetUserId];else if(this.processNodeObj.REQUIRED!==!1||this.processNodeObj.nodeInfoDTO&&this.processNodeObj.nodeInfoDTO.REQUIRED!==!1)return this.processNodeObj.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`):this.processNodeObj.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u5904\u7406\u4EBA`),!1}else this.processNodeObj.incomingConditionItemList&&this.processNodeObj.incomingConditionItemList.length>0&&(n.vars[this.processNodeObj.incomingConditionItemList[0].itemName]=this.processNodeObj.incomingConditionItemList[0].compareValue);else for(let r in this.userTaskListData){let a=this.userTaskListData[r],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();if(!c)e=!1;else{if(this.processNodeObj.nodeType=="exclusiveGateway")if(this.radioModel&&this.radioModel.id)this.radioModel.incomingConditionItemList&&this.radioModel.incomingConditionItemList.length>0&&(n.vars[this.radioModel.incomingConditionItemList[0].itemName]=this.radioModel.incomingConditionItemList[0].compareValue);else return this.processNodeObj.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u4E0B\u4E00\u8282\u70B9`),!1;else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(p=>{p.incomingConditionItemList.length!==0&&p.incomingConditionItemList.forEach(m=>{m.itemName&&(n.vars[m.itemName]=m.compareValue)})});else return this.processNodeObj.name&&ts.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} `),!1;n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}}}}return e&&n},getLabel(e){let n="";return e.incomingConditionItemList.length>0&&(n=e.incomingConditionItemList[0].compareValue),n||e.name||"\u540E\u7EED\u8282\u70B9"}}},t4={};var IM=rn(BM,SM,DM,!1,OM,null,null,null);function OM(e){for(let n in t4)this[n]=t4[n]}const Y_=function(){return IM.exports}();var TM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"sign-container",style:e.setDynamicVars},[r("div",{staticClass:"content-area"},[r("div",{staticClass:"canvas-container"},[r("canvas",{ref:"canvasRef",attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{mousemove:e.draw,mousedown:e.startDrawing,mouseup:e.finishDrawing}})]),r("div",{staticClass:"history"},[r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(0)}}},[e.historyPics[0]?r("el-image",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()],1),r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(1)}}},[e.historyPics[1]?r("el-image",{attrs:{src:e.historyPics[1]?e.historyPics[1].url:"",fit:"scale-down"}}):e._e()],1),r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(2)}}},[e.historyPics[2]?r("el-image",{attrs:{src:e.historyPics[2]?e.historyPics[2].url:"",fit:"scale-down"}}):e._e()],1)])]),r("div",{staticClass:"actions-box"},[r("button",{staticClass:"commn-btn",on:{click:e.clearCanvas}},[e._v("\u6E05\u9664")]),r("button",{staticClass:"commn-btn",on:{click:e.saveSignature}},[e._v("\u4FDD\u5B58")]),r("button",{staticClass:"commn-btn",on:{click:e.undo}},[e._v("\u64A4\u9500")])])])},NM=[];const cX="",MM={upload:e=>new Promise((n,r)=>{Xe.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},FM={data(){return{ctx:null,signatureImage:"",actionHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[]}},methods:{startDrawing(e){this.isDrawing=!0,this.currentPath=[];const n=this.$refs.canvasRef.getBoundingClientRect(),r=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.beginPath(),this.ctx.moveTo(r,a),this.currentPath.push({x:r,y:a})},draw(e){if(!!this.isDrawing&&this.currentPath.length>0){const n=this.$refs.canvasRef.getBoundingClientRect(),r=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.lineWidth=2,this.ctx.strokeStyle="#000000",this.ctx.lineTo(r,a),this.ctx.stroke(),this.currentPath.push({x:r,y:a})}},undo(){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let n=0;n<e.length-1;n++){const{x:r,y:a}=e[n];n===0?(this.ctx.beginPath(),this.ctx.moveTo(r,a)):(this.ctx.lineTo(r,a),this.ctx.stroke())}},finishDrawing(e){this.currentPath.length>0&&this.paths.push(this.currentPath),this.isDrawing=!1},clearCanvas(){this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[],this.$emit("saveSignature","",!1)},saveSignature(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57");return}this.signatureImage=this.$refs.canvasRef.toBlob(e=>{this.uploadImage(e)},"image/png",.95)},async uploadImage(e,n){this.loading=!0;const r=new FormData;r.append("file",e,n||`signature-${Date.now()}.png`);const a=await MM.upload(r);if(this.loading=!1,!a.success)return;let s=JSON.parse(localStorage.getItem("signaturesArr"))||[];s.unshift(a.data),this.historyPics=s.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",a.data,!0)},useHistory(e){this.historyPics[e]&&this.$confirm("\u662F\u5426\u4F7F\u7528\u5386\u53F2\u7B7E\u5B57","\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.$emit("saveSignature",this.historyPics[e],!0)})}},computed:{setDynamicVars(){return{"--action-height":`${this.actionHeight}px`}}},watch:{setDynamicVars(e){let n=document.querySelector(".canvas-container");n&&(this.$refs.canvasRef.width=n.offsetWidth,this.$refs.canvasRef.height=n.offsetHeight-this.actionHeight)}},mounted(){document.querySelector(".actions-box").offsetHeight?this.actionHeight=document.querySelector(".actions-box").offsetHeight:setTimeout(()=>{this.actionHeight=document.querySelector(".actions-box").offsetHeight},200),this.ctx=this.$refs.canvasRef.getContext("2d"),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]}},n4={};var PM=rn(FM,TM,NM,!1,RM,"9b1b2fcc",null,null);function RM(e){for(let n in n4)this[n]=n4[n]}const jM=function(){return PM.exports}();var LM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?[r("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[r("el-radio-group",{model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}},[r("el-radio",{attrs:{label:"\u540C\u610F"}},[e._v("\u540C\u610F")]),e.param.showAsPlanned?r("el-radio",{attrs:{label:"\u5982\u62DF"}},[e._v("\u5982\u62DF")]):e._e(),r("el-radio",{attrs:{label:"\u5DF2\u9605"}},[e._v("\u5DF2\u9605")])],1)],1),e.param.showCommIdea?r("el-form-item",[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:e.param.commentMsgRequired,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",type:"textarea",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?r("div",{staticClass:"add-idea"},[r("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1)]:e._e(),e._t("file"),e.param.nodeLoading&&!e.param.ProcessInsObj.taskParentId?[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9",size:"normal"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])]:e.param.ProcessInsObj.taskParentId?e._e():[e.param.nextTaskNode&&e.param.nextTaskNode.id&&e.param.nextTaskNode.nodeType!="parallelGateway"&&e.param.nextTaskNode.nodeType!="exclusiveGateway"?[e.param.nextTaskNode.nodeType!="endEvent"?[r("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{pType:e.param.nextTaskNode.nodeType,REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})},on:{complete:e.complete}})}):e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})},on:{complete:e.complete}})}):e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length==1?[e.param.nextTaskNode.nodeType!="endEvent"?[e.param.nextTaskNode.branches[0].nodeInfoDTO&&e.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent"?r("userTask",{key:e.param.nextTaskNode.branches[0].nodeInfoDTO.id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].nodeInfoDTO.id),attrs:{personType:e.param.nextTaskNode.branches[0].nodeInfoDTO.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0].nodeInfoDTO,{REQUIRED:!(e.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}}):!e.param.nextTaskNode.branches[0].nodeInfoDTO&&e.param.nextTaskNode.branches[0].nodeType!="endEvent"?r("userTask",{key:e.param.nextTaskNode.branches[0].id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].id),attrs:{personType:e.param.nextTaskNode.branches[0].personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0],{REQUIRED:!(e.param.nextTaskNode.branches[0].setPersonnel==!0&&e.param.nextTaskNode.branches[0].assignees&&e.param.nextTaskNode.branches[0].assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}}):[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length>1?[e.param.nextTaskNode.nodeType!="endEvent"?[r("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="parallelGateway"?e._l(e.param.nextTaskNode.branches,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType||"",personEntity:e.param.personEntity||{},processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]},on:{complete:e.complete}})}):e._e()],e._t("form"),r("el-dialog",{attrs:{title:"\u7B7E\u5B57",visible:e.signVisible,"append-to-body":"",width:"800px","close-on-click-modal":!1,top:"4vh","align-center":""},on:{"update:visible":function(a){e.signVisible=a},closed:e.closeSign},model:{value:e.signVisible,callback:function(a){e.signVisible=a},expression:"signVisible"}},[r("div",{staticClass:"sign-container"},[r("TopSign",{on:{saveSignature:e.handleSignature,validateFail:e.noticeFail}})],1)])],2)},zM=[];const uX="";var Ml=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{Ml=e});const QM={components:{staffTree:Aa,userTask:Y_,commIdea:U_,TopSign:jM},props:{param:Object},data(){return{nextTaskObj:{},commentMsg:"",targetUser:[],userTaskListData:{},outGatewayUserTaskModel:this.param.outGatewayUserTaskModel,Enum:Ep,signVisible:!1,digitalSignature:"",confirmPreposition:!1,confirmLoading:()=>{}}},mounted(){this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F")},computed:{signRequired(){return!!this.param.extendedProperties.find(n=>n.name=="signature")}},methods:{complete(e){this.nextTaskObj=e},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getProcessNode(e){let n={};return n.humanPerformerName=e.userTaskModelDTO.humanPerformer.name,n.id=e.id,n.loopCardinality=e.loopCardinality||e.userTaskModelDTO.loopCardinality,n.name=e.userTaskModelDTO.name,n.type=e.type,n.routeTxt=e.userTaskModelDTO.routeTxt,n.participantList=e.userTaskModelDTO.participantList,n.taskNode=this.param.taskNode,n},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u8D26\u6237"||e=="\u56FA\u5B9A\u5355\u4F4D"},getTreeData(e){if(this.param.nextTaskNode){if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8")return e.userTaskModelDTO.routeTxt.departmentIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=Pu.\u90E8\u95E8,r});if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D")return e.userTaskModelDTO.routeTxt.companyIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=Pu.\u4E3B\u4F53,r})}},getRes(){return{targetUser:this.targetUser}},confirm(e,n,r){if(Array.isArray(r)&&(this.param.attachment=r),this.param,this.userTaskListData,!this.commentMsg&&this.param.commentMsgRequired)return Ml.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Ml.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let a={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,attachment:this.param.attachment};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){for(let g in this.userTaskListData){let y=this.userTaskListData[g];this.$refs[y];let O=this.$refs[y].$el?this.$refs[y]:this.$refs[y][0];O.getValue;let S=O.getValue();if(S&&S.vars&&this.param.incomingConditionItemList&&this.param.incomingConditionItemList.length>0&&this.param.incomingConditionItemList.forEach(B=>{S.vars[B.itemName]||(S.vars[B.itemName]="")}),!S&&this.nextTaskObj.type!="endEvent")return!1;let N=[];const _=this.param.nextTaskNode;_.setPersonnel?N=_.assignees||[]:N=(O.targetUserList||[]).map(B=>({id:B.id,name:B.name})),a.assignees=N,a.multiNodeParticipant={...a.multiNodeParticipant,...S.multiNodeParticipant},a.vars={...a.vars,...S.vars}}let s=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&(!this.param.nextTaskNode.branches||this.param.nextTaskNode.branches.length<=0),c=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent",p=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&!this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeType!="endEvent";if(s||c||p){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)a.multiNodeParticipant={...a.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(g=>g.id)};else if(!Object.keys(a.multiNodeParticipant).length&&this.nextTaskObj.type!="endEvent")return Ml.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}}if(a.pass=!0,Date.now()&&this.param,this.param.getVars){let s=this.param.getVars();if(s===!1&&this.nextTaskObj.type!="endEvent")return!1;a.vars={...a.vars,...s}}if(this.signRequired,this.signRequired){this.confirmPreposition=e,this.confirmLoading=n,this.signVisible=!0;return}n(),e?e().then(s=>{Xe.tis.complete(a).then(c=>{c.code==_t.success?(s&&s(),this.$emit("success")):this.$emit("fail",c.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Xe.tis.complete(a).then(s=>{s.code==_t.success?this.$emit("success"):this.$emit("fail",s.msg)}).catch(s=>{this.$emit("fail",s.response?s.response.data?s.response.data.msg||s.response.data.message:"":s.message||s.msg||"")})},confirmWithSign(){let e={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,digitalSignature:{name:this.param.digitalSignature.name,url:this.param.digitalSignature.url},attachment:this.param.attachment};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){for(let c in this.userTaskListData){let p=this.userTaskListData[c],m=this.$refs[p].$el?this.$refs[p]:this.$refs[p][0];m.getValue;let g=m.getValue();if(!g&&this.nextTaskObj.type!="endEvent")return!1;e.multiNodeParticipant={...e.multiNodeParticipant,...g.multiNodeParticipant},e.vars={...e.vars,...g.vars}}let n=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&(!this.param.nextTaskNode.branches||this.param.nextTaskNode.branches.length<=0),r=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType!="endEvent",a=this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&!this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeType!="endEvent";if(n||r||a){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)e.multiNodeParticipant={...e.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(c=>c.id)};else if(!Object.keys(e.multiNodeParticipant).length&&this.nextTaskObj.type!="endEvent")return Ml.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}if(this.param.getVars){let c=this.param.getVars();if(c===!1&&this.nextTaskObj.type!="endEvent")return!1;e.vars={...e.vars,...c}}}e.pass=!0,this.confirmLoading(),this.confirmPreposition?this.confirmPreposition().then(n=>{Xe.tis.complete(e).then(r=>{r.code==_t.success?(n&&n(),this.$emit("success")):this.$emit("fail",r.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Xe.tis.complete(e).then(n=>{n.code==_t.success?this.$emit("success"):this.$emit("fail",n.msg)}).catch(n=>{this.$emit("fail",n.response?n.response.data?n.response.data.msg||n.response.data.message:"":n.message||n.msg||"")})},handleSignature(e,n){this.param.digitalSignature=e,n&&(this.signVisible=!1,this.confirmWithSign())},closeSign(){this.signVisible=!1},noticeFail(e){Ml.warning(e)}}},i4={};var HM=rn(QM,LM,zM,!1,VM,"7f9f1489",null,null);function VM(e){for(let n in i4)this[n]=i4[n]}const W_=function(){return HM.exports}();var UM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.showCommIdea?r("el-form-item",{attrs:{label:"\u5E38\u7528\u610F\u89C1"}},[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{attrs:{rows:5,type:"textarea",maxlength:"200","show-word-limit":"",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?r("div",{staticClass:"add-idea"},[r("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},YM=[];const dX="";var r4=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{r4=e});const WM={components:{staffTree:Aa,commIdea:U_},props:{param:Object},data(){return{commentMsg:""}},methods:{getRes(){return{commentMsg:this.commentMsg}},confirm(e,n){if(!this.commentMsg)return r4.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;e&&e(),n();let r={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData};r.assignees=[],r.pass=!1,Xe.tis.complete(r).then(a=>{a.code==_t.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},a4={};var GM=rn(WM,UM,YM,!1,JM,"02cb58a9",null,null);function JM(e){for(let n in a4)this[n]=a4[n]}const o4=function(){return GM.exports}();var KM=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9000\u56DE\u8282\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"}]}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"\u9000\u56DE\u8282\u70B9"},model:{value:e.nodeId,callback:function(a){e.nodeId=a},expression:"nodeId"}},e._l(e.nodesData,function(a){return r("el-option",{key:a.nodeId,attrs:{label:a.nodeName,value:a.nodeId}})}),1)],1),r("el-form-item",{attrs:{label:"\u9000\u56DE\u539F\u56E0",rules:[{required:!0,message:"\u9000\u56DE\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u9000\u56DE\u539F\u56E0"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}})],1),e._t("file"),e._t("form")],2)},XM=[];const fX="";var G_=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{G_=e});const ZM={components:{staffTree:Aa},props:{param:Object},data(){return{commentMsg:"",nodeId:"",nodesData:[]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){Xe.repository.backNodes({taskId:this.param.taskInstId}).then(e=>{e.code==_t.success&&(this.nodesData=(e.data||[]).filter(n=>!n.nodeId.includes("startEvent")))})},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.nodeId)return G_.warning("\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"),!1;if(!this.commentMsg)return G_.warning("\u8BF7\u8F93\u5165\u9000\u56DE\u539F\u56E0"),!1;e&&e(),n(),Xe.tis.rollback(this.param.taskInstId,this.nodeId,this.commentMsg).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},s4={};var $M=rn(ZM,KM,XM,!1,qM,"11b0e88d",null,null);function qM(e){for(let n in s4)this[n]=s4[n]}const l4=function(){return $M.exports}();var e9=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}]}},[r("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.type,callback:function(a){e.type=a},expression:"type"}},e._l(e.nodesData,function(a){return r("el-radio",{key:a.type,attrs:{label:a.type}},[e._v(e._s(a.label))])}),1)],1),r("el-form-item",{attrs:{label:"\u64CD\u4F5C\u8BF4\u660E"}},[r("div",[r("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u9500")]),e._v("\uFF1A\u64A4\u9500\u7EC8\u6B62\u6B64\u6D41\u7A0B ")]),r("div",[r("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u56DE")]),e._v("\uFF1A\u64A4\u56DE\u5230\u53D1\u8D77\u4EBA\u91CD\u65B0\u63D0\u4EA4\uFF0C\u82E5\u5F53\u524D\u6D41\u7A0B\u4E0D\u5B58\u5728\u53D1\u8D77\u4EBA\u8282\u70B9\uFF0C\u529F\u80FD\u540C\u64A4\u9500 ")])]),e._t("file"),e._t("form")],2)},t9=[];const pX="";var c4=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{c4=e});const n9={components:{staffTree:Aa},props:{param:Object},data(){return{commentMsg:"",nodeId:"",type:"",nodesData:[{type:"wf_withdraw_end",label:"\u64A4\u9500"},{type:"wf_withdraw_start",label:"\u64A4\u56DE"}]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.type)return c4.warning("\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"),!1;e&&e(),n(),Xe.tis.withdrawTask({taskId:this.param.taskInstId,withdrawType:this.type}).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},u4={};var i9=rn(n9,e9,t9,!1,r9,"3e4dbd02",null,null);function r9(e){for(let n in u4)this[n]=u4[n]}const a9=function(){return i9.exports}();var o9=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u6284\u9001\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458"}]}},[r("staffTree",{ref:"staffTree",attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5e3,disable:e.isOperLoading},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),e._t("file"),e._t("form")],2)},s9=[];const hX="";var d4=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{d4=e});const l9={components:{staffTree:Aa},props:{param:Object,isOperLoading:!1},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return d4.warning("\u8BF7\u9009\u62E9\u6284\u9001\u4EBA"),!1;let r=this.targetUser.join(" ")||"";e&&e({userList:this.$refs.staffTree.userList}),n(),Xe.tis.createCCTask({processInstId:this.param.processInstId,participant:r,taskId:this.param.taskInstId,title:""}).then(a=>{a.code==_t.success?this.$emit("success",!1):this.$emit("fail",a.msg)})}}},f4={};var c9=rn(l9,o9,s9,!1,u9,"3881f760",null,null);function u9(e){for(let n in f4)this[n]=f4[n]}const p4=function(){return c9.exports}(),h4=Object.freeze(Object.defineProperty({__proto__:null,counterSign:Zk,delegateTask:e4,complete:W_,cancel:o4,roolback:l4,withdrawTask:a9,ccTask:p4},Symbol.toStringTag,{value:"Module"})),m4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAACSCAYAAAA93+RpAAAABHNCSVQICAgIfAhkiAAACiVJREFUeF7tnVtsFFUYgH/aqAWrLbTloiiKFxQS0AAJ8QHx0Xh5MBo1+mCMxkt88QF5EgM+GUx80ChGYzAxGqPxwRuPKibGG94SSCSG0IjIzSLSy7alxXO6DJ1uZ/f8s3tmdrvnm4QEyn/OzHzn//qfOTOzO+uM2YQNAhDwQmAWQnnhSCcQmCCAUCQCBDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUBVyYGCgIIXhYZkJn63b+9dhGTefAbz0soXSNa+DzK4TAYQqA/7Ev6dkbGy8TsOSfrcHjFCDg4WJhgt65smyqy5L3wktaiaAUAkIB0xiDg0N1ww3zw7iQiFVnuSn7guhEtj39f1npk8z6zsUSoVCqvpIhVAJ3I//c7I+o1HDXpOEQqoagFbZFKGaXCh7evO758p1V19eZYrQLA0BhApAKKRKo0RtsQgViFBIVZso2tYIFZBQSKXVovo4hApMKKSqXhZNS4QKUCik0qhRXQxCBSoUUlUnjKsVQgUsFFK59Ej//wgVuFBIlV6aSi0QCqEmCHDz149YCIVQ5wggVe1SIRRCTSGAVLVJhVAINY0AUlUvFUIhVGL2IFV1UiEUQpXNHKRKLxVCIVTFrEGqdFIhFEI5MwapnIjOBSAUQqmyBalUmAShEEqXKdz8VXFCKIRSJUoURKWqjAuhECqVUDYYqcojQ6gmEarvxH9y+HhfajmqbbD8miXS3dVZbfOmbYdQTSLU2Pi47O89JKOnT+eSrLPb2mTtDcty2ddM2glCNYlQ9jRGRk/LoaPHz30kc9aJuH7dqqx3MeP6R6gmEio6laHhERk2f7KuVtebaR/bVAII1YRC5ZXk3V18y0cpa4RCqKr9Q6jp6BAKoRCqagIIpUI3E78sQHVinoOoUAilSimEUmEy96G4huIaSpErCKWAZEIQigqlyhSEUmFCqARMLEqwKKGzJyGKCkWFUiUPFUqFiQpFhdIlCkLpOFGhqFCqTEEoFSYqFBXKnSgj+36Tf0/2S8vSFe7ggCPG9++Rzo52Of/alQFToEJVHHwr09+P3yptz74prStvIlEqEBj77RspPP+ILNq+E6linFjlOwsjkmm8/6TMeeEDhHL8OrFCDW66R1raO5AKoaZmS1wm+z8I5S7OkVA2EqkmeQVfoUplQii3TDYiLhRSIdQEgSSZEKo6oZCqyC3YClXYvUuObLxf7DVT6caUzy1VaYWKWtjp34Jt70nb6vXuTpowIkih+j99R45tfbzscCKUO9PLCRW17Nm8Xdpvf9DdUZNFBCeUSyamfLoMdwllewlRquCEKnz0pjNjCnMvkVmz251xIQecGeqXthOHnAja7nrEGdNMAcEJJffe2Ezj1/jn8v7PjX+MHo8QoTzCpKsEAgjV5GlBhcp3gBEqX9657w2h8kWOUPnyzn1vWQl1j1mGv/uxyqdzzFzEH/hdZOe7Int+nBq74U6Rm+8o3/6oaRu1//HL8nGufpJafvWJyJcfZzMUCJUN14bptZ5CxSHYBH7tucmfaISMoq1Yb78o8sMX07Gm6Sdq/eHrIh9sz2aIECobrg3Ta6MIZYHEE7kaEayQpZWlmn4Qylt6ssrnC2U8kcslaM8lIk9uFVm+urjXgVMiD599RCfefu9ukS0l928uvEhk7S1mWmmmlj2LJo96033FaWS0xfvp3Wcq2Tb3GUbTSXdk+ggqVHpmM6pFHhWq0m98K8ZbuyaRbX20eD3lEipqYdtbKddsKP5kr2m7xfSRJFSSmHkPFkLlTTzn/dVbKHu68SRLK5RtbyvdK58lVymtmHlhR6i8SNdpP/UWasUakc1vTJ78U7cVV+/SimCrVLQqWO5ajAqVe5JxDeULeVwIu1DwVcky9BXm6zOXmD/2OshO2yama7FrpbRC2eXxJ7YU+7HL6NueLv493o+9RuuNXV+VO1eWzX1lQYDvQ+VRoTTDM9hfXHiIFhTSChWvdOXE1ByHjWGVT0vKGUeFciJSBqRZrj72t8iLpqKUW53TTNUQSjkw+YYhlC/ecaGsMKVTvmg/dlWu9CmJ0qmaRijNlI9lc1+jq+4HodSoHIFpp2yl3aVtz6KEr5Hz2g9C+cKZVohahLKLGi+bZfNocSN+c7fW4/DFI+qHZXPfRBusvzwWJTRTtlqEsqt7dspnNzute+beyd4Qqq4JR4Xyhb/WRNa0t09H3PaAeXTJ3MuKtujGcPRvTT++zlnTDxVKQ2kGx8yECqXFa+8fvbp5ajRCaellEkeF8oW11kROs+xuj/lz805V0oOvtR6HLx5cQ/km2aD9ZVWh7H2haCpmHyVK+8KeRih7M9i+A2WX5JOW3i3yiRcMz15f2ftcmqfNsxwqpnxZ0m2AvrMSqgFOreEOwX4U246vG+6wsjyg8KZ89pm3Sq+QZ0k7tL7tIsrGl4I66/CEslMluzLGlj0B+1S9nQoHtIUnlB1ce32zw7zJaj79lC0DAnaq99DGyXtlGeyiUbsMUyg7Gnbh4HtzgT9oXnEo2QYHC406Xg11XHPmtE0/njnmKQ67MBI9xdFQR5z9wYQrVAW2fAu8LvG6uzp0gQFFIVTCYCOUzgCEms4JoRBKZ09CFEIhlCp5qFAqTIJQCKXKFIRSYUKoBExM+Zjy6exhyqfihFAIpUqUpCCmfEz5VMnDlE+FiSkfUz5doiCUjhMVigqlyhSEcmMaP3NG5nd3ugMDi+AaKmHA//zrqMxuuyCwVEh3uoXCsCy+dH66RgFEI1TCIP+y5w9ZvLAngOGv/hQPHDwsa1aZj5Zmm0IAoRISYte3v0r3vE7pmnuxtLa0kDIxAnaqd+RYn5w4eUrWr1sFmxICCFVGKPvj1tZW6exolwvOO4/EMQRGRkeNSP0yNjY2wQOhWJRQifHdT3tleGRUFRtq0IXm1Y3VK5nylY4/FSrBiF5zfdB78EiorqjOe8niBbJk8UJVbEhBCJUw2qfNlOZXszAxwIuGiS7Ya8sVy64MyRP1uSJUBVS2Uh0+2sf07ywjO83rntdBZaqQMwil/t1DIATcBBDKzYgICKgJIJQaFYEQcBNAKDcjIiCgJoBQalQEQsBNAKHcjIiAgJoAQqlREQgBNwGEcjMiAgJqAgilRkUgBNwEEMrNiAgIqAkglBoVgRBwE0AoNyMiIKAmgFBqVARCwE0AodyMiICAmgBCqVERCAE3AYRyMyICAmoCCKVGRSAE3AQQys2ICAioCSCUGhWBEHATQCg3IyIgoCaAUGpUBELATQCh3IyIgICaAEKpUREIATcBhHIzIgICagL/A5aq8pai8ohoAAAAAElFTkSuQmCC",g4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABKCAYAAADjcueTAAAFw0lEQVR4Xu2c3XHbRhDH/wclQ2UITZwKLFcQqQKLFViqIHQFpl5i8snKE6m8WK4gVAWmKzBVgckKolQQcgjGTmxzMwsQEL5xd/ggiDEeReAOv9u9xe7d/yRQxPW7dYIN3gI4LqI5xTamEBjjpXmr8pxQuTn2Xhua3gPiUe628jUwQ6vdwaVYyDSTD3xodSHwh0xHFd0zQ988lelLH7x+0A4v4TkG5jgLXg88C5qog8HRNKvz3L87sYUhf/a1JWV1dfAsaHvUKwLnvhz4D4FB7JuZXJk3BBocWS8A3EQtRUtA/Oj9vUpw7nRkUXngI4uDWDcCzXMK1IUQT5sHngbNgWS4mjYPPBaaliDR86Jn48CToA1xhl/NmefajQF/TY/wL89pcR6c07REGJpvaAS4Db1+D+BECroR4DrQew+eCI05DHQDczr8TRut/g4UKXvzHU+DbrXPUiueuExOInPKna76G9BKYNJraY7caWUel6LBWEB0h8HRWaFgWY1pgY8sznNDgSyrp5Tf49ycPerzJ38hodbB94fzVK/TBA/muWqvFAr8MSXh8OMxxJcP+RYqaAH67hSDH+5jX29n4IS/YIgeXrYnkRcbrq4gxKs842k/S/QbBkdX5YGzq6pcB2KRGvFlyliZ/tIWGAqxeBkR+drqYUOhLFCG1rtnmmht7bJUY7SUXrmKmzUYhE4RXwWLUh/fwLfDJTFdv1nccy2J0VJywypuLt3VORkxvj4FRHVbRcTJy8G7xOSl9KheSAama35awBCdxHyhVIsXlYFps5eduSXN8eHqDELwysxuLiEuYlPi0l2dO7hen4M2XRCq2xkVWIDEJHU/LOjqc/TNzGqzaZ+zObIWTrb+2iRwaWhmbwo4iwLSl8hCkakZ4LzCI6mEcPmbAa7xnVEDtzO3zS8a/eR7ZGPcpmZuGq3Lg8dtwGt0qP1IwWv18uB1ztw0RlMFfLeZ284szqPKaStQ7WaBY01ec4sXE3FE/2/9LFAxckVn4C5tEVTe4hruVOojTsx5nWGIewhcxake9xP8ev0KRPFr7PGjHVE97h94WKXBe3UQYxy2J14S4yyYnGODHgQeb8fiHnTQcT+L+wUegKYlhNFNLFVdyw+tMQTc3MOz/P6Ah6HjJClJQWVksTaPNXreVpQaOEd1w3jQs5UTveYRK2ZB25H9nxcg4i8OB7RpJKB5Oh1nA1IevJoVmGhpmQWdLBufotW+eJj3vhUkgUsV8GJ2PZO9pEhot5c36Js9r8uhxd7wGKB38uDl5ur5oQm3GJhdOKvBM09b619DfJCl3cuD25nbx2PgS1TPmneuH5o3gXpa1b1daPc9/MGs1f7J5+6e16qB5wWUeT4vtCNkYnmLs+nht/hoNQHEM/5zvcCLgX4QJ0Y94U97QIju6gNeNDRoiZZ5HMjmxFcG5+tNPcDLgA4nOKPVW0+bS9TZPXgV0H4dzlaHt1vwqqHZyQ2ccp2+O/CAGipGDh7OyMKBKiJDjWkjrLjyKad2B27nBVw50XlEA18ydD0+Z5wU+RWLFUDXA9yf1FQEXT/wkeUkGHbdvM293YHJOafDSWN0jm+jnkx2Weg9rH4ke/EwCu125K2mqAWyuPdkcNak+yTVNEHLfK66CZd7EDz5eCjjCjfMBYiBcfAUVOhUs8TBWgH/SOd+e9tc6UKdpD5cVUPYxbPeKSoSDtbgCc8L8Nz5tJ75ViOzupL4XQPeA08R+YR7jn6nnZpc4nIO1TrRdBo4GCvxcPotivCqFs8B7UT1YNS8sg/I+k8G5xoABXivVqYFWuYTpQNAqtMjAO4HdFZailEvZgn53X5tRRXxP9jgODFB/+gidsxzWtptU+38eC7rSzwcPKo5hYFLL3q7ogT/1pGGpesJ7iQpvCsaOrFEi5jDPFLRO2m462VxfkvnK3Pj2/YJvnvawR8Jp6qnxcNxxtn4OwGI480UhjHL3CuThP8fruFfjjCGtMkAAAAASUVORK5CYII=";var d9=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("ul",{staticClass:"file-wrap"},[e._l(e.fileList,function(a,s){return r("li",{key:s,staticClass:"file-item"},[e.isImage(a)?r("section",{class:[e.isText?"TextWrapper":"image-wrapper"]},[r("el-image",{ref:"images",refInFor:!0,attrs:{src:a,"preview-src-list":e.previewSrcList}}),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[r("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])],1):e.isDw(a)?r("section",{staticClass:"image-wrapper"},[e.isPdf(a)?r("div",{staticClass:"el-image"},[r("img",{staticClass:"el-image__inner",attrs:{src:m4,alt:""}})]):r("div",{staticClass:"el-image el-attach"},[r("img",{staticClass:"el-image__inner",attrs:{src:g4,alt:""}})]),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[r("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):a?r("section",{staticClass:"image-wrapper"},[e.isPdf(a)?r("div",{staticClass:"el-image"},[r("img",{staticClass:"el-image__inner",attrs:{src:m4,alt:""}})]):r("div",{staticClass:"el-image el-attach"},[r("img",{staticClass:"el-image__inner",attrs:{src:g4,alt:""}})]),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[r("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),r("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[r("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):e._e(),!e.showFile&&e.showFileName?r("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[r("div",{staticClass:"file_name"},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]):e._e(),e.showFile?r("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[e._t("filename",function(){return[e.fullFileObject&&e.fullFileList[s].fileSize?r("div",{staticClass:"file_name",staticStyle:{"text-align":"center",height:"23px","line-height":"23px"}},[e._v(" "+e._s(e.fullFileList[s].fileSize>1024?(e.fullFileList[s].fileSize/(1024*1024)).toFixed(2):(e.fullFileList[s].fileSize/1024).toFixed(2))+" "+e._s(e.fullFileList[s].fileSize>1024?"M":"KB")+" ")]):e._e(),r("div",{staticClass:"file_name",staticStyle:{height:"25px","line-height":"25px"}},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]},{filename:a})],2):e._e()])}),e.showPlus?r("li",{staticClass:"file-item"},[r("div",{staticClass:"image-wrapper pointer",on:{click:function(a){return e.selectFile()}}},[r("el-icon",{attrs:{color:"#1389ff",size:"35"}},[r("Plus")],1)],1)]):e._e(),e.showEmpty?r("li",{staticClass:"empty-wrap"},[e._v("\u6682\u65E0\u6570\u636E")]):e._e()],2),e.remark!==""?r("div",{staticStyle:{color:"gray"}},[e._v(e._s(e.remark))]):e._e(),e.value?r("section",{staticClass:"value-wrap"}):e._e(),r("input",{ref:"file",staticClass:"file-input",attrs:{accept:e.acceptType,type:"file",multiple:e.multiple},on:{change:e.onUploadChange}})])},f9=[];const mX="",J_={upload:e=>new Promise((n,r)=>{Xe.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},p9={name:"JyrFileUpload",inject:{elForm:{default:""}},props:{acceptType:{type:String,default:""},showFileName:{type:Boolean,default:!0},value:{type:[String,Array],default:""},locked:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},fileMaxSize:{type:Number,default:200},hasFilename:{type:Boolean,default:!1},hasContainId:{type:Boolean,default:!1},fullFileObject:{type:Boolean,default:!1},isText:{type:Boolean,default:!1},viewCallBack:{type:Function},remark:{type:String,default:""},showFile:{type:Boolean,default:!1},limit:[String,Number]},data(){return{index:void 0,fileList:[],fullFileList:[],loading:!1}},computed:{previewSrcList(){return this.fileList.filter(e=>this.isImage(e))},showPlus(){return!this.isDisabled&&(this.multiple||this.fileList.length<1)},showEmpty(){return this.isDisabled&&this.fileList.length<1},isDisabled(){return this.locked||this.elForm&&this.elForm.disabled}},watch:{value(){this.composeFileList()}},created(){this.composeFileList()},methods:{async selectFile(){this.$refs.file.click()},onUploadChange(e){const n=e.target.files;if(this.limit!=-1&&n.length+this.fileList.length>this.limit)return this.$message.error("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+this.limit+"\u4E2A\u6587\u4EF6"),!1;n.length;let r=this.fullFileList.map(a=>a.originFileName);for(let a=0;a<n.length;a++){const s=n[a];if(s.size==0)return this.$message.error("\u6587\u4EF6\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"),!1;const c=1024*1024*this.fileMaxSize;if(s.size>c){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${this.fileMaxSize}M`);return}if(!s){this.$refs.file.value=null;return}const p=s.name.split(".");if(this.acceptType!=""&&this.acceptType.indexOf(p[p.length-1])<0){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u7C7B\u578B\u9650\u5236\u4E3A${this.acceptType}`);return}let m=0,g=s.name;for(;m<r.length&&r.includes(s.name);){const y=s.name.lastIndexOf(".");if(m=m+1,y>-1){const O=s.name.substring(0,y),S=s.name.substring(y);g=O+"("+m+")"+S}else g=s.name+"("+m+")"}r.push(g),this.doUpload(s,g)}},coputedFullFileList(e){this.$emit("input",e),this.$emit("change",e)},async doUpload(e,n){this.loading=!0;const r=new FormData;r.append("file",e,n);const a=await J_.upload(r);if(this.loading=!1,!a.success)return;if(this.$refs.file.value=null,!this.multiple){if(this.fullFileObject)this.$emit("input",[a.data]),this.$emit("change",[a.data]);else{const c=this.composeFilename(a.data);this.$emit("input",c),this.$emit("change",c)}return}this.index>=0?(this.fileList.splice(this.index,1,this.composeFilename(a.data)),this.fullFileList.splice(this.index,1,a.data)):(this.fileList.push(this.composeFilename(a.data)),this.fullFileList.push(a.data)),this.fileList;const s=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(s)},composeFileList(){if(this.fullFileObject){this.fileList=this.value&&this.value.length?this.value.map(e=>`${e.url}&${e.name}`):[],this.fullFileList=this.value&&this.value.length?this.value.map(e=>e):[];return}this.value?this.fileList=this.value.split(",").filter(e=>e):this.fileList=[]},composeFilename(e){return this.hasFilename?`${e.url}?filename=${e.fileName}`:this.hasContainId?e.id:`${e.url}&${e.name}`},isImage(e){const n=e.split("."),r=n[n.length-1];return["png","jpg","jpeg","gif","bmp"].includes(r)},isDw(e){const n=e.split("."),r=n[n.length-1];return["dwg","dwt"].includes(r)},isPdf(e){const n=e.split("."),r=n[n.length-1];return["pdf"].includes(r)},onDelete(e){if(this.multiple){this.fileList.splice(e,1),this.fullFileList.splice(e,1);const n=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(n)}else this.$emit("input",""),this.$emit("change","")},onPreview(e){if(this.viewCallBack){this.viewCallBack(e,this.fileList);return}let n=this.fileList[e].split("."),r=n[n.length-1],s=["png","jpg","jpeg","gif"].some(function(p){return p==r}),c=null;if(this.fileList.forEach((p,m)=>{this.isImage(p)&&m<=e&&(c==null?c=0:c=c+1)}),s)this.$refs.images[c].clickHandler();else{let p=`${this.fileList[e]}`,m=1;p.indexOf("https")!==-1||p.indexOf("http")!==-1?(m=p.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${p}`)):p.indexOf("http")===-1&&J_.list([p]).then(g=>{m=g.data[0].url.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${g.data[0].url}`)})}},onDownload(e){const n=this.fileList[e];n.indexOf("https")!==-1||n.indexOf("http")!==-1?this.downloadFile(n,n.slice(n.lastIndexOf("&")+1)):J_.list([n]).then(r=>{this.downloadFile(r.data[0].url,r.data[0].url.slice(r.data[0].url.lastIndexOf("&")+1))})},downloadFile:(e,n)=>{var r=document.createElement("a");r.download=n,r.style.display="none";var a=new Blob([e]);r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},A4={};var h9=rn(p9,d9,f9,!1,m9,"628e6ebd",null,null);function m9(e){for(let n in A4)this[n]=A4[n]}const rh=function(){return h9.exports}();rh.install=e=>{e.component(rh.name,rh)};const g9='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',A9=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,v4=e=>Array.from(e.querySelectorAll(g9)).filter(n=>v9(n)&&A9(n)),v9=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};var b4;const Ai=typeof window<"u",b9=e=>typeof e=="string",_9=()=>{};Ai&&((b4=window==null?void 0:window.navigator)==null?void 0:b4.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K_(e){return typeof e=="function"?e():MO(e)}function y9(e){return e}function X_(e){return VO()?(UO(e),!0):!1}function x9(e,n=!0){SO()?wT(e):n?e():Qp(e)}function w9(e,n,r={}){const{immediate:a=!0}=r,s=aC(!1);let c=null;function p(){c&&(clearTimeout(c),c=null)}function m(){s.value=!1,p()}function g(...y){p(),s.value=!0,c=setTimeout(()=>{s.value=!1,c=null,e(...y)},K_(n))}return a&&(s.value=!0,Ai&&g()),X_(m),{isPending:oC(s),start:g,stop:m}}function _4(e){var n;const r=K_(e);return(n=r==null?void 0:r.$el)!=null?n:r}const y4=Ai?window:void 0;function x4(...e){let n,r,a,s;if(b9(e[0])||Array.isArray(e[0])?([r,a,s]=e,n=y4):[n,r,a,s]=e,!n)return _9;Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]);const c=[],p=()=>{c.forEach(O=>O()),c.length=0},m=(O,S,N,_)=>(O.addEventListener(S,N,_),()=>O.removeEventListener(S,N,_)),g=uC(()=>[_4(n),K_(s)],([O,S])=>{p(),O&&c.push(...r.flatMap(N=>a.map(_=>m(O,N,_,S))))},{immediate:!0,flush:"post"}),y=()=>{g(),p()};return X_(y),y}function E9(e,n=!1){const r=aC(),a=()=>r.value=Boolean(e());return a(),x9(a,n),r}const Z_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$_="__vueuse_ssr_handlers__";Z_[$_]=Z_[$_]||{},Z_[$_];var w4=Object.getOwnPropertySymbols,C9=Object.prototype.hasOwnProperty,k9=Object.prototype.propertyIsEnumerable,S9=(e,n)=>{var r={};for(var a in e)C9.call(e,a)&&n.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&w4)for(var a of w4(e))n.indexOf(a)<0&&k9.call(e,a)&&(r[a]=e[a]);return r};function E4(e,n,r={}){const a=r,{window:s=y4}=a,c=S9(a,["window"]);let p;const m=E9(()=>s&&"ResizeObserver"in s),g=()=>{p&&(p.disconnect(),p=void 0)},y=uC(()=>_4(e),S=>{g(),m.value&&s&&S&&(p=new ResizeObserver(n),p.observe(S,c))},{immediate:!0,flush:"post"}),O=()=>{g(),y()};return X_(O),{isSupported:m,stop:O}}var C4;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(C4||(C4={}));var D9=Object.defineProperty,k4=Object.getOwnPropertySymbols,B9=Object.prototype.hasOwnProperty,I9=Object.prototype.propertyIsEnumerable,S4=(e,n,r)=>n in e?D9(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,O9=(e,n)=>{for(var r in n||(n={}))B9.call(n,r)&&S4(e,r,n[r]);if(k4)for(var r of k4(n))I9.call(n,r)&&S4(e,r,n[r]);return e};O9({linear:y9},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const T9=()=>Ai&&/firefox/i.test(window.navigator.userAgent);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Fl=()=>{},N9=Object.assign,M9=Object.prototype.hasOwnProperty,ah=(e,n)=>M9.call(e,n),F9=Array.isArray,ns=e=>typeof e=="function",wr=e=>typeof e=="string",ed=e=>e!==null&&typeof e=="object",P9=e=>{const n=Object.create(null);return r=>n[r]||(n[r]=e(r))},R9=/-(\w)/g,j9=P9(e=>e.replace(R9,(n,r)=>r?r.toUpperCase():""));var L9=typeof global=="object"&&global&&global.Object===Object&&global;const z9=L9;var Q9=typeof self=="object"&&self&&self.Object===Object&&self,H9=z9||Q9||Function("return this")();const q_=H9;var V9=q_.Symbol;const Pl=V9;var D4=Object.prototype,U9=D4.hasOwnProperty,Y9=D4.toString,td=Pl?Pl.toStringTag:void 0;function W9(e){var n=U9.call(e,td),r=e[td];try{e[td]=void 0;var a=!0}catch{}var s=Y9.call(e);return a&&(n?e[td]=r:delete e[td]),s}var G9=Object.prototype,J9=G9.toString;function K9(e){return J9.call(e)}var X9="[object Null]",Z9="[object Undefined]",B4=Pl?Pl.toStringTag:void 0;function I4(e){return e==null?e===void 0?Z9:X9:B4&&B4 in Object(e)?W9(e):K9(e)}function $9(e){return e!=null&&typeof e=="object"}var q9="[object Symbol]";function ey(e){return typeof e=="symbol"||$9(e)&&I4(e)==q9}function eF(e,n){for(var r=-1,a=e==null?0:e.length,s=Array(a);++r<a;)s[r]=n(e[r],r,e);return s}var tF=Array.isArray;const ty=tF;var nF=1/0,O4=Pl?Pl.prototype:void 0,T4=O4?O4.toString:void 0;function N4(e){if(typeof e=="string")return e;if(ty(e))return eF(e,N4)+"";if(ey(e))return T4?T4.call(e):"";var n=e+"";return n=="0"&&1/e==-nF?"-0":n}function M4(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var iF="[object AsyncFunction]",rF="[object Function]",aF="[object GeneratorFunction]",oF="[object Proxy]";function sF(e){if(!M4(e))return!1;var n=I4(e);return n==rF||n==aF||n==iF||n==oF}var lF=q_["__core-js_shared__"];const ny=lF;var F4=function(){var e=/[^.]+$/.exec(ny&&ny.keys&&ny.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function cF(e){return!!F4&&F4 in e}var uF=Function.prototype,dF=uF.toString;function fF(e){if(e!=null){try{return dF.call(e)}catch{}try{return e+""}catch{}}return""}var pF=/[\\^$.*+?()[\]{}|]/g,hF=/^\[object .+?Constructor\]$/,mF=Function.prototype,gF=Object.prototype,AF=mF.toString,vF=gF.hasOwnProperty,bF=RegExp("^"+AF.call(vF).replace(pF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _F(e){if(!M4(e)||cF(e))return!1;var n=sF(e)?bF:hF;return n.test(fF(e))}function yF(e,n){return e==null?void 0:e[n]}function P4(e,n){var r=yF(e,n);return _F(r)?r:void 0}function xF(e,n){return e===n||e!==e&&n!==n}var wF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EF=/^\w*$/;function CF(e,n){if(ty(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ey(e)?!0:EF.test(e)||!wF.test(e)||n!=null&&e in Object(n)}var kF=P4(Object,"create");const nd=kF;function SF(){this.__data__=nd?nd(null):{},this.size=0}function DF(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var BF="__lodash_hash_undefined__",IF=Object.prototype,OF=IF.hasOwnProperty;function TF(e){var n=this.__data__;if(nd){var r=n[e];return r===BF?void 0:r}return OF.call(n,e)?n[e]:void 0}var NF=Object.prototype,MF=NF.hasOwnProperty;function FF(e){var n=this.__data__;return nd?n[e]!==void 0:MF.call(n,e)}var PF="__lodash_hash_undefined__";function RF(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nd&&n===void 0?PF:n,this}function is(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}is.prototype.clear=SF,is.prototype.delete=DF,is.prototype.get=TF,is.prototype.has=FF,is.prototype.set=RF;function jF(){this.__data__=[],this.size=0}function oh(e,n){for(var r=e.length;r--;)if(xF(e[r][0],n))return r;return-1}var LF=Array.prototype,zF=LF.splice;function QF(e){var n=this.__data__,r=oh(n,e);if(r<0)return!1;var a=n.length-1;return r==a?n.pop():zF.call(n,r,1),--this.size,!0}function HF(e){var n=this.__data__,r=oh(n,e);return r<0?void 0:n[r][1]}function VF(e){return oh(this.__data__,e)>-1}function UF(e,n){var r=this.__data__,a=oh(r,e);return a<0?(++this.size,r.push([e,n])):r[a][1]=n,this}function Rl(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}Rl.prototype.clear=jF,Rl.prototype.delete=QF,Rl.prototype.get=HF,Rl.prototype.has=VF,Rl.prototype.set=UF;var YF=P4(q_,"Map");const WF=YF;function GF(){this.size=0,this.__data__={hash:new is,map:new(WF||Rl),string:new is}}function JF(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function sh(e,n){var r=e.__data__;return JF(n)?r[typeof n=="string"?"string":"hash"]:r.map}function KF(e){var n=sh(this,e).delete(e);return this.size-=n?1:0,n}function XF(e){return sh(this,e).get(e)}function ZF(e){return sh(this,e).has(e)}function $F(e,n){var r=sh(this,e),a=r.size;return r.set(e,n),this.size+=r.size==a?0:1,this}function rs(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}rs.prototype.clear=GF,rs.prototype.delete=KF,rs.prototype.get=XF,rs.prototype.has=ZF,rs.prototype.set=$F;var qF="Expected a function";function iy(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(qF);var r=function(){var a=arguments,s=n?n.apply(this,a):a[0],c=r.cache;if(c.has(s))return c.get(s);var p=e.apply(this,a);return r.cache=c.set(s,p)||c,p};return r.cache=new(iy.Cache||rs),r}iy.Cache=rs;var e7=500;function t7(e){var n=iy(e,function(a){return r.size===e7&&r.clear(),a}),r=n.cache;return n}var n7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i7=/\\(\\)?/g,r7=t7(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(n7,function(r,a,s,c){n.push(s?c.replace(i7,"$1"):a||r)}),n});const a7=r7;function o7(e){return e==null?"":N4(e)}function s7(e,n){return ty(e)?e:CF(e,n)?[e]:a7(o7(e))}var l7=1/0;function c7(e){if(typeof e=="string"||ey(e))return e;var n=e+"";return n=="0"&&1/e==-l7?"-0":n}function u7(e,n){n=s7(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[c7(n[r++])];return r&&r==a?e:void 0}function d7(e,n,r){var a=e==null?void 0:u7(e,n);return a===void 0?r:a}function R4(e){for(var n=-1,r=e==null?0:e.length,a={};++n<r;){var s=e[n];a[s[0]]=s[1]}return a}function j4(e){return e==null}const L4=e=>e===void 0,as=e=>typeof e=="number",ry=e=>typeof Element>"u"?!1:e instanceof Element,f7=e=>wr(e)?!Number.isNaN(Number(e)):!1,z4=e=>Object.keys(e);class Q4 extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function p7(e,n){throw new Q4(`[${e}] ${n}`)}function Ur(e,n){if(process.env.NODE_ENV!=="production"){const r=wr(e)?new Q4(`[${e}] ${n}`):e;console.warn(r)}}const h7="utils/dom/style",H4=(e="")=>e.split(" ").filter(n=>!!n.trim()),V4=(e,n)=>{if(!e||!n)return!1;if(n.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(n)},m7=(e,n)=>{!e||!n.trim()||e.classList.add(...H4(n))},g7=(e,n)=>{!e||!n.trim()||e.classList.remove(...H4(n))},A7=(e,n)=>{var r;if(!Ai||!e||!n)return"";let a=j9(n);a==="float"&&(a="cssFloat");try{const s=e.style[a];if(s)return s;const c=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return c?c[a]:""}catch{return e.style[a]}};function ay(e,n="px"){if(!e)return"";if(as(e)||f7(e))return`${e}${n}`;if(wr(e))return e;Ur(h7,"binding value must be a string or number")}let lh;const v7=e=>{var n;if(!Ai)return 0;if(lh!==void 0)return lh;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const a=r.offsetWidth;r.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",r.appendChild(s);const c=s.offsetWidth;return(n=r.parentNode)==null||n.removeChild(r),lh=a-c,lh};/*! Element Plus Icons Vue v2.3.1 */var b7=x.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),x.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),_7=b7,y7=x.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),U4=y7,x7=x.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),x.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Y4=x7,w7=x.defineComponent({name:"Close",__name:"close",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),E7=w7,C7=x.defineComponent({name:"Hide",__name:"hide",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),x.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),k7=C7,S7=x.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),W4=S7,D7=x.defineComponent({name:"Loading",__name:"loading",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),G4=D7,B7=x.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),J4=B7,I7=x.defineComponent({name:"View",__name:"view",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),O7=I7,T7=x.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(n,r)=>(x.openBlock(),x.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),K4=T7;const X4="__epPropKey",vi=e=>e,N7=e=>ed(e)&&!!e[X4],Z4=(e,n)=>{if(!ed(e)||N7(e))return e;const{values:r,required:a,default:s,type:c,validator:p}=e,g={type:c,required:!!a,validator:r||p?y=>{let O=!1,S=[];if(r&&(S=Array.from(r),ah(e,"default")&&S.push(s),O||(O=S.includes(y))),p&&(O||(O=p(y))),!O&&S.length>0){const N=[...new Set(S)].map(_=>JSON.stringify(_)).join(", ");x.warn(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${N}], got value ${JSON.stringify(y)}.`)}return O}:void 0,[X4]:!0};return ah(e,"default")&&(g.default=s),g},os=e=>R4(Object.entries(e).map(([n,r])=>[n,Z4(r,n)])),id=vi([String,Object,Function]),$4={Close:E7,SuccessFilled:J4,InfoFilled:W4,WarningFilled:K4,CircleCloseFilled:U4},ch={success:J4,warning:K4,error:U4,info:W4},M7={validating:G4,success:_7,error:Y4},uh=(e,n)=>{if(e.install=r=>{for(const a of[e,...Object.values(n!=null?n:{})])r.component(a.name,a)},n)for(const[r,a]of Object.entries(n))e[r]=a;return e},F7=(e,n)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[n]=e},e),P7=e=>(e.install=Fl,e),dh={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},oy="update:modelValue",q4=["","default","small","large"],R7=e=>["",...q4].includes(e);var fh=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(fh||{});const j7=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),e3=e=>e,L7=["class","style"],z7=/^on[A-Z]/,Q7=(e={})=>{const{excludeListeners:n=!1,excludeKeys:r}=e,a=x.computed(()=>((r==null?void 0:r.value)||[]).concat(L7)),s=x.getCurrentInstance();return s?x.computed(()=>{var c;return R4(Object.entries((c=s.proxy)==null?void 0:c.$attrs).filter(([p])=>!a.value.includes(p)&&!(n&&z7.test(p))))}):(Ur("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),x.computed(()=>({})))},H7=({from:e,replacement:n,scope:r,version:a,ref:s,type:c="API"},p)=>{x.watch(()=>x.unref(p),m=>{m&&Ur(r,`[${c}] ${e} is about to be deprecated in version ${a}, please use ${n} instead.
19
19
  For more detail, please visit: ${s}
20
- `)},{immediate:!0})},V7=(e,n,r)=>{let a={offsetX:0,offsetY:0};const s=m=>{const g=m.clientX,y=m.clientY,{offsetX:O,offsetY:S}=a,N=e.value.getBoundingClientRect(),_=N.left,B=N.top,j=N.width,R=N.height,T=document.documentElement.clientWidth,F=document.documentElement.clientHeight,v=-_+O,w=-B+S,k=T-_-j+O,Q=F-B-R+S,M=ne=>{const re=Math.min(Math.max(O+ne.clientX-g,v),k),de=Math.min(Math.max(S+ne.clientY-y,w),Q);a={offsetX:re,offsetY:de},e.value&&(e.value.style.transform=`translate(${ay(re)}, ${ay(de)})`)},H=()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",H)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",H)},c=()=>{n.value&&e.value&&n.value.addEventListener("mousedown",s)},p=()=>{n.value&&e.value&&n.value.removeEventListener("mousedown",s)};x.onMounted(()=>{x.watchEffect(()=>{r.value?c():p()})}),x.onBeforeUnmount(()=>{p()})};var U7={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Y7=e=>(n,r)=>W7(n,r,x.unref(e)),W7=(e,n,r)=>d7(r,e,e).replace(/\{(\w+)\}/g,(a,s)=>{var c;return`${(c=n==null?void 0:n[s])!=null?c:`{${s}}`}`}),G7=e=>{const n=x.computed(()=>x.unref(e).name),r=x.isRef(e)?e:x.ref(e);return{lang:n,locale:r,t:Y7(e)}},t3=Symbol("localeContextKey"),J7=e=>{const n=e||x.inject(t3,x.ref());return G7(x.computed(()=>n.value||U7))};let K7;function X7(e,n=K7){n&&n.active&&n.effects.push(e)}const n3=e=>{const n=new Set(e);return n.w=0,n.n=0,n},i3=e=>(e.w&Ka)>0,r3=e=>(e.n&Ka)>0,Z7=({deps:e})=>{if(e.length)for(let n=0;n<e.length;n++)e[n].w|=Ka},$7=e=>{const{deps:n}=e;if(n.length){let r=0;for(let a=0;a<n.length;a++){const s=n[a];i3(s)&&!r3(s)?s.delete(e):n[r++]=s,s.w&=~Ka,s.n&=~Ka}n.length=r}};let rd=0,Ka=1;const sy=30;let zi;Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class q7{constructor(n,r=null,a){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,X7(this,a)}run(){if(!this.active)return this.fn();let n=zi,r=ph;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=zi,zi=this,ph=!0,Ka=1<<++rd,rd<=sy?Z7(this):a3(this),this.fn()}finally{rd<=sy&&$7(this),Ka=1<<--rd,zi=this.parent,ph=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){zi===this?this.deferStop=!0:this.active&&(a3(this),this.onStop&&this.onStop(),this.active=!1)}}function a3(e){const{deps:n}=e;if(n.length){for(let r=0;r<n.length;r++)n[r].delete(e);n.length=0}}let ph=!0;function o3(e,n){let r=!1;rd<=sy?r3(e)||(e.n|=Ka,r=!i3(e)):r=!e.has(zi),r&&(e.add(zi),zi.deps.push(e),process.env.NODE_ENV!=="production"&&zi.onTrack&&zi.onTrack(Object.assign({effect:zi},n)))}function s3(e,n){const r=FF(e)?e:[...e];for(const a of r)a.computed&&l3(a,n);for(const a of r)a.computed||l3(a,n)}function l3(e,n){(e!==zi||e.allowRecurse)&&(process.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(NF({effect:e},n)),e.scheduler?e.scheduler():e.run())}function hh(e){const n=e&&e.__v_raw;return n?hh(n):e}function eP(e){ph&&zi&&(e=hh(e),process.env.NODE_ENV!=="production"?o3(e.dep||(e.dep=n3()),{target:e,type:"get",key:"value"}):o3(e.dep||(e.dep=n3())))}function tP(e,n){e=hh(e);const r=e.dep;r&&(process.env.NODE_ENV!=="production"?s3(r,{target:e,type:"set",key:"value",newValue:n}):s3(r))}var c3;class nP{constructor(n,r,a,s){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[c3]=!1,this._dirty=!0,this.effect=new q7(n,()=>{this._dirty||(this._dirty=!0,tP(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=a}get value(){const n=hh(this);return eP(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}c3="__v_isReadonly";function iP(e,n,r=!1){let a,s;const c=ns(e);c?(a=e,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:Fl):(a=e.get,s=e.set);const p=new nP(a,s,c||!s,r);return process.env.NODE_ENV!=="production"&&n&&!r&&(p.effect.onTrack=n.onTrack,p.effect.onTrigger=n.onTrigger),p}const mh="el",rP="is-",ss=(e,n,r,a,s)=>{let c=`${e}-${n}`;return r&&(c+=`-${r}`),a&&(c+=`__${a}`),s&&(c+=`--${s}`),c},u3=Symbol("namespaceContextKey"),d3=e=>{const n=e||(x.getCurrentInstance()?x.inject(u3,x.ref(mh)):x.ref(mh));return x.computed(()=>x.unref(n)||mh)},Yr=(e,n)=>{const r=d3(n);return{namespace:r,b:(j="")=>ss(r.value,e,j,"",""),e:j=>j?ss(r.value,e,"",j,""):"",m:j=>j?ss(r.value,e,"","",j):"",be:(j,R)=>j&&R?ss(r.value,e,j,R,""):"",em:(j,R)=>j&&R?ss(r.value,e,"",j,R):"",bm:(j,R)=>j&&R?ss(r.value,e,j,"",R):"",bem:(j,R,T)=>j&&R&&T?ss(r.value,e,j,R,T):"",is:(j,...R)=>{const T=R.length>=1?R[0]:!0;return j&&T?`${rP}${j}`:""},cssVar:j=>{const R={};for(const T in j)j[T]&&(R[`--${r.value}-${T}`]=j[T]);return R},cssVarName:j=>`--${r.value}-${j}`,cssVarBlock:j=>{const R={};for(const T in j)j[T]&&(R[`--${r.value}-${e}-${T}`]=j[T]);return R},cssVarBlockName:j=>`--${r.value}-${e}-${j}`}},aP=(e,n={})=>{x.isRef(e)||p7("[useLockscreen]","You need to pass a ref param to this function");const r=n.ns||Yr("popup"),a=iP(()=>r.bm("parent","hidden"));if(!Ai||V4(document.body,a.value))return;let s=0,c=!1,p="0";const m=()=>{setTimeout(()=>{g7(document==null?void 0:document.body,a.value),c&&document&&(document.body.style.width=p)},200)};x.watch(e,g=>{if(!g){m();return}c=!V4(document.body,a.value),c&&(p=document.body.style.width),s=v7(r.namespace.value);const y=document.documentElement.clientHeight<document.body.scrollHeight,O=A7(document.body,"overflowY");s>0&&(y||O==="scroll")&&c&&(document.body.style.width=`calc(100% - ${s}px)`),m7(document.body,a.value)}),x.onScopeDispose(()=>m())},f3=e=>{const n=x.getCurrentInstance();return x.computed(()=>{var r,a;return(a=(r=n==null?void 0:n.proxy)==null?void 0:r.$props)==null?void 0:a[e]})},p3=e=>{if(!e)return{onClick:Fl,onMousedown:Fl,onMouseup:Fl};let n=!1,r=!1;return{onClick:p=>{n&&r&&e(p),n=r=!1},onMousedown:p=>{n=p.target===p.currentTarget},onMouseup:p=>{r=p.target===p.currentTarget}}},ly={prefix:Math.floor(Math.random()*1e4),current:0},oP=Symbol("elIdInjection"),sP=()=>x.getCurrentInstance()?x.inject(oP,ly):ly,cy=e=>{const n=sP();!Ai&&n===ly&&Ur("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
20
+ `)},{immediate:!0})},V7=(e,n,r)=>{let a={offsetX:0,offsetY:0};const s=m=>{const g=m.clientX,y=m.clientY,{offsetX:O,offsetY:S}=a,N=e.value.getBoundingClientRect(),_=N.left,B=N.top,j=N.width,R=N.height,T=document.documentElement.clientWidth,F=document.documentElement.clientHeight,v=-_+O,w=-B+S,k=T-_-j+O,Q=F-B-R+S,M=ne=>{const re=Math.min(Math.max(O+ne.clientX-g,v),k),de=Math.min(Math.max(S+ne.clientY-y,w),Q);a={offsetX:re,offsetY:de},e.value&&(e.value.style.transform=`translate(${ay(re)}, ${ay(de)})`)},H=()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",H)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",H)},c=()=>{n.value&&e.value&&n.value.addEventListener("mousedown",s)},p=()=>{n.value&&e.value&&n.value.removeEventListener("mousedown",s)};x.onMounted(()=>{x.watchEffect(()=>{r.value?c():p()})}),x.onBeforeUnmount(()=>{p()})};var U7={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Y7=e=>(n,r)=>W7(n,r,x.unref(e)),W7=(e,n,r)=>d7(r,e,e).replace(/\{(\w+)\}/g,(a,s)=>{var c;return`${(c=n==null?void 0:n[s])!=null?c:`{${s}}`}`}),G7=e=>{const n=x.computed(()=>x.unref(e).name),r=x.isRef(e)?e:x.ref(e);return{lang:n,locale:r,t:Y7(e)}},t3=Symbol("localeContextKey"),J7=e=>{const n=e||x.inject(t3,x.ref());return G7(x.computed(()=>n.value||U7))};let K7;function X7(e,n=K7){n&&n.active&&n.effects.push(e)}const n3=e=>{const n=new Set(e);return n.w=0,n.n=0,n},i3=e=>(e.w&Ka)>0,r3=e=>(e.n&Ka)>0,Z7=({deps:e})=>{if(e.length)for(let n=0;n<e.length;n++)e[n].w|=Ka},$7=e=>{const{deps:n}=e;if(n.length){let r=0;for(let a=0;a<n.length;a++){const s=n[a];i3(s)&&!r3(s)?s.delete(e):n[r++]=s,s.w&=~Ka,s.n&=~Ka}n.length=r}};let rd=0,Ka=1;const sy=30;let zi;Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class q7{constructor(n,r=null,a){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,X7(this,a)}run(){if(!this.active)return this.fn();let n=zi,r=ph;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=zi,zi=this,ph=!0,Ka=1<<++rd,rd<=sy?Z7(this):a3(this),this.fn()}finally{rd<=sy&&$7(this),Ka=1<<--rd,zi=this.parent,ph=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){zi===this?this.deferStop=!0:this.active&&(a3(this),this.onStop&&this.onStop(),this.active=!1)}}function a3(e){const{deps:n}=e;if(n.length){for(let r=0;r<n.length;r++)n[r].delete(e);n.length=0}}let ph=!0;function o3(e,n){let r=!1;rd<=sy?r3(e)||(e.n|=Ka,r=!i3(e)):r=!e.has(zi),r&&(e.add(zi),zi.deps.push(e),process.env.NODE_ENV!=="production"&&zi.onTrack&&zi.onTrack(Object.assign({effect:zi},n)))}function s3(e,n){const r=F9(e)?e:[...e];for(const a of r)a.computed&&l3(a,n);for(const a of r)a.computed||l3(a,n)}function l3(e,n){(e!==zi||e.allowRecurse)&&(process.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(N9({effect:e},n)),e.scheduler?e.scheduler():e.run())}function hh(e){const n=e&&e.__v_raw;return n?hh(n):e}function eP(e){ph&&zi&&(e=hh(e),process.env.NODE_ENV!=="production"?o3(e.dep||(e.dep=n3()),{target:e,type:"get",key:"value"}):o3(e.dep||(e.dep=n3())))}function tP(e,n){e=hh(e);const r=e.dep;r&&(process.env.NODE_ENV!=="production"?s3(r,{target:e,type:"set",key:"value",newValue:n}):s3(r))}var c3;class nP{constructor(n,r,a,s){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[c3]=!1,this._dirty=!0,this.effect=new q7(n,()=>{this._dirty||(this._dirty=!0,tP(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=a}get value(){const n=hh(this);return eP(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}c3="__v_isReadonly";function iP(e,n,r=!1){let a,s;const c=ns(e);c?(a=e,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:Fl):(a=e.get,s=e.set);const p=new nP(a,s,c||!s,r);return process.env.NODE_ENV!=="production"&&n&&!r&&(p.effect.onTrack=n.onTrack,p.effect.onTrigger=n.onTrigger),p}const mh="el",rP="is-",ss=(e,n,r,a,s)=>{let c=`${e}-${n}`;return r&&(c+=`-${r}`),a&&(c+=`__${a}`),s&&(c+=`--${s}`),c},u3=Symbol("namespaceContextKey"),d3=e=>{const n=e||(x.getCurrentInstance()?x.inject(u3,x.ref(mh)):x.ref(mh));return x.computed(()=>x.unref(n)||mh)},Yr=(e,n)=>{const r=d3(n);return{namespace:r,b:(j="")=>ss(r.value,e,j,"",""),e:j=>j?ss(r.value,e,"",j,""):"",m:j=>j?ss(r.value,e,"","",j):"",be:(j,R)=>j&&R?ss(r.value,e,j,R,""):"",em:(j,R)=>j&&R?ss(r.value,e,"",j,R):"",bm:(j,R)=>j&&R?ss(r.value,e,j,"",R):"",bem:(j,R,T)=>j&&R&&T?ss(r.value,e,j,R,T):"",is:(j,...R)=>{const T=R.length>=1?R[0]:!0;return j&&T?`${rP}${j}`:""},cssVar:j=>{const R={};for(const T in j)j[T]&&(R[`--${r.value}-${T}`]=j[T]);return R},cssVarName:j=>`--${r.value}-${j}`,cssVarBlock:j=>{const R={};for(const T in j)j[T]&&(R[`--${r.value}-${e}-${T}`]=j[T]);return R},cssVarBlockName:j=>`--${r.value}-${e}-${j}`}},aP=(e,n={})=>{x.isRef(e)||p7("[useLockscreen]","You need to pass a ref param to this function");const r=n.ns||Yr("popup"),a=iP(()=>r.bm("parent","hidden"));if(!Ai||V4(document.body,a.value))return;let s=0,c=!1,p="0";const m=()=>{setTimeout(()=>{g7(document==null?void 0:document.body,a.value),c&&document&&(document.body.style.width=p)},200)};x.watch(e,g=>{if(!g){m();return}c=!V4(document.body,a.value),c&&(p=document.body.style.width),s=v7(r.namespace.value);const y=document.documentElement.clientHeight<document.body.scrollHeight,O=A7(document.body,"overflowY");s>0&&(y||O==="scroll")&&c&&(document.body.style.width=`calc(100% - ${s}px)`),m7(document.body,a.value)}),x.onScopeDispose(()=>m())},f3=e=>{const n=x.getCurrentInstance();return x.computed(()=>{var r,a;return(a=(r=n==null?void 0:n.proxy)==null?void 0:r.$props)==null?void 0:a[e]})},p3=e=>{if(!e)return{onClick:Fl,onMousedown:Fl,onMouseup:Fl};let n=!1,r=!1;return{onClick:p=>{n&&r&&e(p),n=r=!1},onMousedown:p=>{n=p.target===p.currentTarget},onMouseup:p=>{r=p.target===p.currentTarget}}},ly={prefix:Math.floor(Math.random()*1e4),current:0},oP=Symbol("elIdInjection"),sP=()=>x.getCurrentInstance()?x.inject(oP,ly):ly,cy=e=>{const n=sP();!Ai&&n===ly&&Ur("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
21
21
  usage: app.provide(ID_INJECTION_KEY, {
22
22
  prefix: number,
23
23
  current: number,
24
24
  })`);const r=d3();return x.computed(()=>x.unref(e)||`${r.value}-id-${n.prefix}-${n.current++}`)};let jl=[];const h3=e=>{const n=e;n.key===dh.esc&&jl.forEach(r=>r(n))},lP=e=>{x.onMounted(()=>{jl.length===0&&document.addEventListener("keydown",h3),Ai&&jl.push(e)}),x.onBeforeUnmount(()=>{jl=jl.filter(n=>n!==e),jl.length===0&&Ai&&document.removeEventListener("keydown",h3)})},m3=x.ref(0),g3=2e3,A3=Symbol("zIndexContextKey"),cP=e=>{const n=e||(x.getCurrentInstance()?x.inject(A3,void 0):void 0),r=x.computed(()=>{const c=x.unref(n);return as(c)?c:g3}),a=x.computed(()=>r.value+m3.value);return{initialZIndex:r,currentZIndex:a,nextZIndex:()=>(m3.value++,a.value)}};function uP(e){const n=x.ref();function r(){if(e.value==null)return;const{selectionStart:s,selectionEnd:c,value:p}=e.value;if(s==null||c==null)return;const m=p.slice(0,Math.max(0,s)),g=p.slice(Math.max(0,c));n.value={selectionStart:s,selectionEnd:c,value:p,beforeTxt:m,afterTxt:g}}function a(){if(e.value==null||n.value==null)return;const{value:s}=e.value,{beforeTxt:c,afterTxt:p,selectionStart:m}=n.value;if(c==null||p==null||m==null)return;let g=s.length;if(s.endsWith(p))g=s.length-p.length;else if(s.startsWith(c))g=c.length;else{const y=c[m-1],O=s.indexOf(y,m-1);O!==-1&&(g=O+1)}e.value.setSelectionRange(g,g)}return[r,a]}const uy=Z4({type:String,values:q4,required:!1}),v3=Symbol("size"),dP=()=>{const e=x.inject(v3,{});return x.computed(()=>x.unref(e.size)||"")};function fP(e,{afterFocus:n,beforeBlur:r,afterBlur:a}={}){const s=x.getCurrentInstance(),{emit:c}=s,p=x.shallowRef(),m=x.ref(!1),g=S=>{m.value||(m.value=!0,c("focus",S),n==null||n())},y=S=>{var N;(ns(r)?r(S):!1)||S.relatedTarget&&((N=p.value)==null?void 0:N.contains(S.relatedTarget))||(m.value=!1,c("blur",S),a==null||a())},O=()=>{var S;(S=e.value)==null||S.focus()};return x.watch(p,S=>{S&&S.setAttribute("tabindex","-1")}),x4(p,"click",O),{wrapperRef:p,isFocused:m,handleFocus:g,handleBlur:y}}const b3=Symbol(),gh=x.ref();function dy(e,n=void 0){const r=x.getCurrentInstance()?x.inject(b3,gh):gh;return e?x.computed(()=>{var a,s;return(s=(a=r.value)==null?void 0:a[e])!=null?s:n}):r}function _3(e,n){const r=dy(),a=Yr(e,x.computed(()=>{var m;return((m=r.value)==null?void 0:m.namespace)||mh})),s=J7(x.computed(()=>{var m;return(m=r.value)==null?void 0:m.locale})),c=cP(x.computed(()=>{var m;return((m=r.value)==null?void 0:m.zIndex)||g3})),p=x.computed(()=>{var m;return x.unref(n)||((m=r.value)==null?void 0:m.size)||""});return y3(x.computed(()=>x.unref(r)||{})),{ns:a,locale:s,zIndex:c,size:p}}const y3=(e,n,r=!1)=>{var a;const s=!!x.getCurrentInstance(),c=s?dy():void 0,p=(a=n==null?void 0:n.provide)!=null?a:s?x.provide:void 0;if(!p){Ur("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const m=x.computed(()=>{const g=x.unref(e);return c!=null&&c.value?pP(c.value,g):g});return p(b3,m),p(t3,x.computed(()=>m.value.locale)),p(u3,x.computed(()=>m.value.namespace)),p(A3,x.computed(()=>m.value.zIndex)),p(v3,{size:x.computed(()=>m.value.size||"")}),(r||!gh.value)&&(gh.value=m.value),m},pP=(e,n)=>{var r;const a=[...new Set([...z4(e),...z4(n)])],s={};for(const c of a)s[c]=(r=n[c])!=null?r:e[c];return s},hP=os({a11y:{type:Boolean,default:!0},locale:{type:vi(Object)},size:uy,button:{type:vi(Object)},experimentalFeatures:{type:vi(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:vi(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),fy={};x.defineComponent({name:"ElConfigProvider",props:hP,setup(e,{slots:n}){x.watch(()=>e.message,a=>{Object.assign(fy,a!=null?a:{})},{immediate:!0,deep:!0});const r=y3(e);return()=>x.renderSlot(n,"default",{config:r==null?void 0:r.value})}});var Xa=(e,n)=>{const r=e.__vccOpts||e;for(const[a,s]of n)r[a]=s;return r};const mP=os({size:{type:vi([Number,String])},color:{type:String}}),gP=x.defineComponent({name:"ElIcon",inheritAttrs:!1}),AP=x.defineComponent({...gP,props:mP,setup(e){const n=e,r=Yr("icon"),a=x.computed(()=>{const{size:s,color:c}=n;return!s&&!c?{}:{fontSize:L4(s)?void 0:ay(s),"--color":c}});return(s,c)=>(x.openBlock(),x.createElementBlock("i",x.mergeProps({class:x.unref(r).b(),style:x.unref(a)},s.$attrs),[x.renderSlot(s.$slots,"default")],16))}});var vP=Xa(AP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Wr=uh(vP),py=Symbol("formContextKey"),x3=Symbol("formItemContextKey"),w3=(e,n={})=>{const r=x.ref(void 0),a=n.prop?r:f3("size"),s=n.global?r:dP(),c=n.form?{size:void 0}:x.inject(py,void 0),p=n.formItem?{size:void 0}:x.inject(x3,void 0);return x.computed(()=>a.value||x.unref(e)||(p==null?void 0:p.size)||(c==null?void 0:c.size)||s.value||"")},hy=e=>{const n=f3("disabled"),r=x.inject(py,void 0);return x.computed(()=>n.value||x.unref(e)||(r==null?void 0:r.disabled)||!1)},E3=()=>{const e=x.inject(py,void 0),n=x.inject(x3,void 0);return{form:e,formItem:n}},bP=(e,{formItemContext:n,disableIdGeneration:r,disableIdManagement:a})=>{r||(r=x.ref(!1)),a||(a=x.ref(!1));const s=x.ref();let c;const p=x.computed(()=>{var m;return!!(!e.label&&n&&n.inputIds&&((m=n.inputIds)==null?void 0:m.length)<=1)});return x.onMounted(()=>{c=x.watch([x.toRef(e,"id"),r],([m,g])=>{const y=m!=null?m:g?void 0:cy().value;y!==s.value&&(n!=null&&n.removeInputId&&(s.value&&n.removeInputId(s.value),!(a!=null&&a.value)&&!g&&y&&n.addInputId(y)),s.value=y)},{immediate:!0})}),x.onUnmounted(()=>{c&&c(),n!=null&&n.removeInputId&&s.value&&n.removeInputId(s.value)}),{isLabeledByFormItem:p,inputId:s}};let Er;const _P=`
25
25
  height:0 !important;
26
26
  visibility:hidden !important;
27
- ${TF()?"":"overflow:hidden !important;"}
27
+ ${T9()?"":"overflow:hidden !important;"}
28
28
  position:absolute !important;
29
29
  z-index:-1000 !important;
30
30
  top:0 !important;
31
31
  right:0 !important;
32
- `,yP=["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 xP(e){const n=window.getComputedStyle(e),r=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:yP.map(p=>`${p}:${n.getPropertyValue(p)}`).join(";"),paddingSize:a,borderSize:s,boxSizing:r}}function C3(e,n=1,r){var a;Er||(Er=document.createElement("textarea"),document.body.appendChild(Er));const{paddingSize:s,borderSize:c,boxSizing:p,contextStyle:m}=xP(e);Er.setAttribute("style",`${m};${_P}`),Er.value=e.value||e.placeholder||"";let g=Er.scrollHeight;const y={};p==="border-box"?g=g+c:p==="content-box"&&(g=g-s),Er.value="";const O=Er.scrollHeight-s;if(as(n)){let S=O*n;p==="border-box"&&(S=S+s+c),g=Math.max(S,g),y.minHeight=`${S}px`}if(as(r)){let S=O*r;p==="border-box"&&(S=S+s+c),g=Math.min(S,g)}return y.height=`${g}px`,(a=Er.parentNode)==null||a.removeChild(Er),Er=void 0,y}const wP=os({id:{type:String,default:void 0},size:uy,disabled:Boolean,modelValue:{type:vi([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:vi([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:id},prefixIcon:{type:id},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:vi([Object,Array,String]),default:()=>e3({})},autofocus:{type:Boolean,default:!1}}),EP={[oy]:e=>wr(e),input:e=>wr(e),change:e=>wr(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},CP=["role"],kP=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],SP=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],DP=x.defineComponent({name:"ElInput",inheritAttrs:!1}),BP=x.defineComponent({...DP,props:wP,emits:EP,setup(e,{expose:n,emit:r}){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"?R.b():j.b(),j.m(_.value),j.is("disabled",B.value),j.is("exceed",xe.value),{[j.b("group")]:c.prepend||c.append,[j.bm("group","append")]:c.append,[j.bm("group","prepend")]:c.prepend,[j.m("prefix")]:c.prefix||a.prefixIcon,[j.m("suffix")]:c.suffix||a.suffixIcon||a.clearable||a.showPassword,[j.bm("suffix","password-clear")]:ge.value&&Te.value},s.class]),g=x.computed(()=>[j.e("wrapper"),j.is("focus",re.value)]),y=Q7({excludeKeys:x.computed(()=>Object.keys(p.value))}),{form:O,formItem:S}=E3(),{inputId:N}=bP(a,{formItemContext:S}),_=w3(),B=hy(),j=Yr("input"),R=Yr("textarea"),T=x.shallowRef(),F=x.shallowRef(),v=x.ref(!1),w=x.ref(!1),k=x.ref(!1),Q=x.ref(),M=x.shallowRef(a.inputStyle),H=x.computed(()=>T.value||F.value),{wrapperRef:ne,isFocused:re,handleFocus:de,handleBlur:me}=fP(H,{afterBlur(){var G;a.validateEvent&&((G=S==null?void 0:S.validate)==null||G.call(S,"blur").catch(ae=>Ur(ae)))}}),pe=x.computed(()=>{var G;return(G=O==null?void 0:O.statusIcon)!=null?G:!1}),Se=x.computed(()=>(S==null?void 0:S.validateState)||""),ye=x.computed(()=>Se.value&&M7[Se.value]),_e=x.computed(()=>k.value?O7:k7),W=x.computed(()=>[s.style,a.inputStyle]),J=x.computed(()=>[a.inputStyle,M.value,{resize:a.resize}]),ie=x.computed(()=>j4(a.modelValue)?"":String(a.modelValue)),ge=x.computed(()=>a.clearable&&!B.value&&!a.readonly&&!!ie.value&&(re.value||v.value)),Te=x.computed(()=>a.showPassword&&!B.value&&!a.readonly&&!!ie.value&&(!!ie.value||re.value)),se=x.computed(()=>a.showWordLimit&&!!y.value.maxlength&&(a.type==="text"||a.type==="textarea")&&!B.value&&!a.readonly&&!a.showPassword),he=x.computed(()=>ie.value.length),xe=x.computed(()=>!!se.value&&he.value>Number(y.value.maxlength)),Pe=x.computed(()=>!!c.suffix||!!a.suffixIcon||ge.value||a.showPassword||se.value||!!Se.value&&pe.value),[K,P]=uP(T);E4(F,G=>{if(X(),!se.value||a.resize!=="both")return;const ae=G[0],{width:Ce}=ae.contentRect;Q.value={right:`calc(100% - ${Ce+15+6}px)`}});const E=()=>{const{type:G,autosize:ae}=a;if(!(!Ai||G!=="textarea"||!F.value))if(ae){const Ce=ed(ae)?ae.minRows:void 0,Le=ed(ae)?ae.maxRows:void 0,it=C3(F.value,Ce,Le);M.value={overflowY:"hidden",...it},x.nextTick(()=>{F.value.offsetHeight,M.value=it})}else M.value={minHeight:C3(F.value).minHeight}},X=(G=>{let ae=!1;return()=>{var Ce;if(ae||!a.autosize)return;((Ce=F.value)==null?void 0:Ce.offsetParent)===null||(G(),ae=!0)}})(E),ee=()=>{const G=H.value,ae=a.formatter?a.formatter(ie.value):ie.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===ie.value){ee();return}r(oy,ae),r("input",ae),await x.nextTick(),ee(),P()}},De=G=>{r("change",G.target.value)},je=G=>{r("compositionstart",G),w.value=!0},Ke=G=>{var ae;r("compositionupdate",G);const Ce=(ae=G.target)==null?void 0:ae.value,Le=Ce[Ce.length-1]||"";w.value=!j7(Le)},yt=G=>{r("compositionend",G),w.value&&(w.value=!1,fe(G))},ht=()=>{k.value=!k.value,Ot()},Ot=async()=>{var G;await x.nextTick(),(G=H.value)==null||G.focus()},cn=()=>{var G;return(G=H.value)==null?void 0:G.blur()},ut=G=>{v.value=!1,r("mouseleave",G)},Tt=G=>{v.value=!0,r("mouseenter",G)},hn=G=>{r("keydown",G)},ve=()=>{var G;(G=H.value)==null||G.select()},q=()=>{r(oy,""),r("change",""),r("clear"),r("input","")};return x.watch(()=>a.modelValue,()=>{var G;x.nextTick(()=>E()),a.validateEvent&&((G=S==null?void 0:S.validate)==null||G.call(S,"change").catch(ae=>Ur(ae)))}),x.watch(ie,()=>ee()),x.watch(()=>a.type,async()=>{await x.nextTick(),ee(),E()}),x.onMounted(()=>{!a.formatter&&a.parser&&Ur("ElInput","If you set the parser, you also need to set the formatter."),ee(),x.nextTick(E)}),n({input:T,textarea:F,ref:H,textareaStyle:J,autosize:x.toRef(a,"autosize"),focus:Ot,blur:cn,select:ve,clear:q,resizeTextarea:E}),(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:Tt,onMouseleave:ut}),[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(j).be("group","prepend"))},[x.renderSlot(G.$slots,"prepend")],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{ref_key:"wrapperRef",ref:ne,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(j).e("prefix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(j).e("prefix-inner"))},[x.renderSlot(G.$slots,"prefix"),G.prefixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(j).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(j).e("inner")},x.unref(y),{type:G.showPassword?k.value?"text":"password":G.type,disabled:x.unref(B),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:je,onCompositionupdate:Ke,onCompositionend:yt,onInput:fe,onFocus:ae[0]||(ae[0]=(...Ce)=>x.unref(de)&&x.unref(de)(...Ce)),onBlur:ae[1]||(ae[1]=(...Ce)=>x.unref(me)&&x.unref(me)(...Ce)),onChange:De,onKeydown:hn}),null,16,kP),x.createCommentVNode(" suffix slot "),x.unref(Pe)?(x.openBlock(),x.createElementBlock("span",{key:1,class:x.normalizeClass(x.unref(j).e("suffix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(j).e("suffix-inner"))},[!x.unref(ge)||!x.unref(Te)||!x.unref(se)?(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(j).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(j).e("icon"),x.unref(j).e("clear")]),onMousedown:x.withModifiers(x.unref(Fl),["prevent"]),onClick:q},{default:x.withCtx(()=>[x.createVNode(x.unref(Y4))]),_: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(j).e("icon"),x.unref(j).e("password")]),onClick:ht},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(_e))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.unref(se)?(x.openBlock(),x.createElementBlock("span",{key:3,class:x.normalizeClass(x.unref(j).e("count"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(j).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(j).e("icon"),x.unref(j).e("validateIcon"),x.unref(j).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(j).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:F,class:x.unref(R).e("inner")},x.unref(y),{tabindex:G.tabindex,disabled:x.unref(B),readonly:G.readonly,autocomplete:G.autocomplete,style:x.unref(J),"aria-label":G.label,placeholder:G.placeholder,form:a.form,autofocus:a.autofocus,onCompositionstart:je,onCompositionupdate:Ke,onCompositionend:yt,onInput:fe,onFocus:ae[2]||(ae[2]=(...Ce)=>x.unref(de)&&x.unref(de)(...Ce)),onBlur:ae[3]||(ae[3]=(...Ce)=>x.unref(me)&&x.unref(me)(...Ce)),onChange:De,onKeydown:hn}),null,16,SP),x.unref(se)?(x.openBlock(),x.createElementBlock("span",{key:0,style:x.normalizeStyle(Q.value),class:x.normalizeClass(x.unref(j).e("count"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),7)):x.createCommentVNode("v-if",!0)],64))],16,CP)),[[x.vShow,G.type!=="hidden"]])}});var IP=Xa(BP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const OP=uh(IP),my="focus-trap.focus-after-trapped",gy="focus-trap.focus-after-released",TP="focus-trap.focusout-prevented",k3={cancelable:!0,bubbles:!1},NP={cancelable:!0,bubbles:!1},S3="focusAfterTrapped",D3="focusAfterReleased",MP=Symbol("elFocusTrap"),Ay=x.ref(),Ah=x.ref(0),vy=x.ref(0);let vh=0;const B3=e=>{const n=[],r=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(;r.nextNode();)n.push(r.currentNode);return n},I3=(e,n)=>{for(const r of e)if(!FP(r,n))return r},FP=(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},PP=e=>{const n=B3(e),r=I3(n,e),a=I3(n.reverse(),e);return[r,a]},RP=e=>e instanceof HTMLInputElement&&"select"in e,Za=(e,n)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),vy.value=window.performance.now(),e!==r&&RP(e)&&n&&e.select()}};function O3(e,n){const r=[...e],a=e.indexOf(n);return a!==-1&&r.splice(a,1),r}const jP=()=>{let e=[];return{push:a=>{const s=e[0];s&&a!==s&&s.pause(),e=O3(e,a),e.unshift(a)},remove:a=>{var s,c;e=O3(e,a),(c=(s=e[0])==null?void 0:s.resume)==null||c.call(s)}}},LP=(e,n=!1)=>{const r=document.activeElement;for(const a of e)if(Za(a,n),document.activeElement!==r)return},T3=jP(),zP=()=>Ah.value>vy.value,bh=()=>{Ay.value="pointer",Ah.value=window.performance.now()},N3=()=>{Ay.value="keyboard",Ah.value=window.performance.now()},QP=()=>(x.onMounted(()=>{vh===0&&(document.addEventListener("mousedown",bh),document.addEventListener("touchstart",bh),document.addEventListener("keydown",N3)),vh++}),x.onBeforeUnmount(()=>{vh--,vh<=0&&(document.removeEventListener("mousedown",bh),document.removeEventListener("touchstart",bh),document.removeEventListener("keydown",N3))}),{focusReason:Ay,lastUserFocusTimestamp:Ah,lastAutomatedFocusTimestamp:vy}),_h=e=>new CustomEvent(TP,{...NP,detail:e}),HP=x.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[S3,D3,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const r=x.ref();let a,s;const{focusReason:c}=QP();lP(B=>{e.trapped&&!p.paused&&n("release-requested",B)});const p={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=B=>{if(!e.loop&&!e.trapped||p.paused)return;const{key:j,altKey:R,ctrlKey:T,metaKey:F,currentTarget:v,shiftKey:w}=B,{loop:k}=e,Q=j===dh.tab&&!R&&!T&&!F,M=document.activeElement;if(Q&&M){const H=v,[ne,re]=PP(H);if(ne&&re){if(!w&&M===re){const me=_h({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(B.preventDefault(),k&&Za(ne,!0))}else if(w&&[ne,H].includes(M)){const me=_h({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(B.preventDefault(),k&&Za(re,!0))}}else if(M===H){const me=_h({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||B.preventDefault()}}};x.provide(MP,{focusTrapRef:r,onKeydown:m}),x.watch(()=>e.focusTrapEl,B=>{B&&(r.value=B)},{immediate:!0}),x.watch([r],([B],[j])=>{B&&(B.addEventListener("keydown",m),B.addEventListener("focusin",O),B.addEventListener("focusout",S)),j&&(j.removeEventListener("keydown",m),j.removeEventListener("focusin",O),j.removeEventListener("focusout",S))});const g=B=>{n(S3,B)},y=B=>n(D3,B),O=B=>{const j=x.unref(r);if(!j)return;const R=B.target,T=B.relatedTarget,F=R&&j.contains(R);e.trapped||T&&j.contains(T)||(a=T),F&&n("focusin",B),!p.paused&&e.trapped&&(F?s=R:Za(s,!0))},S=B=>{const j=x.unref(r);if(!(p.paused||!j))if(e.trapped){const R=B.relatedTarget;!j4(R)&&!j.contains(R)&&setTimeout(()=>{if(!p.paused&&e.trapped){const T=_h({focusReason:c.value});n("focusout-prevented",T),T.defaultPrevented||Za(s,!0)}},0)}else{const R=B.target;R&&j.contains(R)||n("focusout",B)}};async function N(){await x.nextTick();const B=x.unref(r);if(B){T3.push(p);const j=B.contains(document.activeElement)?a:document.activeElement;if(a=j,!B.contains(j)){const T=new Event(my,k3);B.addEventListener(my,g),B.dispatchEvent(T),T.defaultPrevented||x.nextTick(()=>{let F=e.focusStartEl;wr(F)||(Za(F),document.activeElement!==F&&(F="first")),F==="first"&&LP(B3(B),!0),(document.activeElement===j||F==="container")&&Za(B)})}}}function _(){const B=x.unref(r);if(B){B.removeEventListener(my,g);const j=new CustomEvent(gy,{...k3,detail:{focusReason:c.value}});B.addEventListener(gy,y),B.dispatchEvent(j),!j.defaultPrevented&&(c.value=="keyboard"||!zP()||B.contains(document.activeElement))&&Za(a!=null?a:document.body),B.removeEventListener(gy,y),T3.remove(p)}}return x.onMounted(()=>{e.trapped&&N(),x.watch(()=>e.trapped,B=>{B?N():_()})}),x.onBeforeUnmount(()=>{e.trapped&&_()}),{onKeydown:m}}});function VP(e,n,r,a,s,c){return x.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var UP=Xa(HP,[["render",VP],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const YP=os({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"}}),WP=["textContent"],GP=x.defineComponent({name:"ElBadge"}),JP=x.defineComponent({...GP,props:YP,setup(e,{expose:n}){const r=e,a=Yr("badge"),s=x.computed(()=>r.isDot?"":as(r.value)&&as(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.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,WP),[[x.vShow,!c.hidden&&(x.unref(s)||c.isDot)]])]),_:1},8,["name"])],2))}});var KP=Xa(JP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const XP=uh(KP),M3=Symbol("buttonGroupContextKey"),ZP=(e,n)=>{H7({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 r=x.inject(M3,void 0),a=dy("button"),{form:s}=E3(),c=w3(x.computed(()=>r==null?void 0:r.size)),p=hy(),m=x.ref(),g=x.useSlots(),y=x.computed(()=>e.type||(r==null?void 0:r.type)||""),O=x.computed(()=>{var B,j,R;return(R=(j=e.autoInsertSpace)!=null?j:(B=a.value)==null?void 0:B.autoInsertSpace)!=null?R:!1}),S=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 B;const j=(B=g.default)==null?void 0:B.call(g);if(O.value&&(j==null?void 0:j.length)===1){const R=j[0];if((R==null?void 0:R.type)===x.Text){const T=R.children;return/^\p{Unified_Ideograph}{2}$/u.test(T.trim())}}return!1});return{_disabled:p,_size:c,_type:y,_ref:m,_props:S,shouldAddSpace:N,handleClick:B=>{e.nativeType==="reset"&&(s==null||s.resetFields()),n("click",B)}}},by=os({size:uy,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:id},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:id,default:()=>G4},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:vi([String,Object]),default:"button"}}),$P={click:e=>e instanceof MouseEvent};function Tn(e,n){qP(e)&&(e="100%");var r=eR(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),r&&(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 yh(e){return Math.min(1,Math.max(0,e))}function qP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function eR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function F3(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function xh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ls(e){return e.length===1?"0"+e:String(e)}function tR(e,n,r){return{r:Tn(e,255)*255,g:Tn(n,255)*255,b:Tn(r,255)*255}}function P3(e,n,r){e=Tn(e,255),n=Tn(n,255),r=Tn(r,255);var a=Math.max(e,n,r),s=Math.min(e,n,r),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-r)/g+(n<r?6:0);break;case n:c=(r-e)/g+2;break;case r:c=(e-n)/g+4;break}c/=6}return{h:c,s:p,l:m}}function _y(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*(6*r):r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function nR(e,n,r){var a,s,c;if(e=Tn(e,360),n=Tn(n,100),r=Tn(r,100),n===0)s=r,c=r,a=r;else{var p=r<.5?r*(1+n):r+n-r*n,m=2*r-p;a=_y(m,p,e+1/3),s=_y(m,p,e),c=_y(m,p,e-1/3)}return{r:a*255,g:s*255,b:c*255}}function R3(e,n,r){e=Tn(e,255),n=Tn(n,255),r=Tn(r,255);var a=Math.max(e,n,r),s=Math.min(e,n,r),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-r)/m+(n<r?6:0);break;case n:c=(r-e)/m+2;break;case r:c=(e-n)/m+4;break}c/=6}return{h:c,s:g,v:p}}function iR(e,n,r){e=Tn(e,360)*6,n=Tn(n,100),r=Tn(r,100);var a=Math.floor(e),s=e-a,c=r*(1-n),p=r*(1-s*n),m=r*(1-(1-s)*n),g=a%6,y=[r,p,c,c,m,r][g],O=[m,r,r,p,c,c][g],S=[c,c,m,r,r,p][g];return{r:y*255,g:O*255,b:S*255}}function j3(e,n,r,a){var s=[ls(Math.round(e).toString(16)),ls(Math.round(n).toString(16)),ls(Math.round(r).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 rR(e,n,r,a,s){var c=[ls(Math.round(e).toString(16)),ls(Math.round(n).toString(16)),ls(Math.round(r).toString(16)),ls(aR(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 aR(e){return Math.round(parseFloat(e)*255).toString(16)}function L3(e){return Qi(e)/255}function Qi(e){return parseInt(e,16)}function oR(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var yy={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 sR(e){var n={r:0,g:0,b:0},r=1,a=null,s=null,c=null,p=!1,m=!1;return typeof e=="string"&&(e=uR(e)),typeof e=="object"&&(va(e.r)&&va(e.g)&&va(e.b)?(n=tR(e.r,e.g,e.b),p=!0,m=String(e.r).substr(-1)==="%"?"prgb":"rgb"):va(e.h)&&va(e.s)&&va(e.v)?(a=xh(e.s),s=xh(e.v),n=iR(e.h,a,s),p=!0,m="hsv"):va(e.h)&&va(e.s)&&va(e.l)&&(a=xh(e.s),c=xh(e.l),n=nR(e.h,a,c),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=F3(r),{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:r}}var lR="[-\\+]?\\d+%?",cR="[-\\+]?\\d*\\.\\d+%?",$a="(?:".concat(cR,")|(?:").concat(lR,")"),xy="[\\s|\\(]+(".concat($a,")[,|\\s]+(").concat($a,")[,|\\s]+(").concat($a,")\\s*\\)?"),wy="[\\s|\\(]+(".concat($a,")[,|\\s]+(").concat($a,")[,|\\s]+(").concat($a,")[,|\\s]+(").concat($a,")\\s*\\)?"),Cr={CSS_UNIT:new RegExp($a),rgb:new RegExp("rgb"+xy),rgba:new RegExp("rgba"+wy),hsl:new RegExp("hsl"+xy),hsla:new RegExp("hsla"+wy),hsv:new RegExp("hsv"+xy),hsva:new RegExp("hsva"+wy),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 uR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(yy[e])e=yy[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Cr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Cr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Cr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Cr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Cr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Cr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Cr.hex8.exec(e),r?{r:Qi(r[1]),g:Qi(r[2]),b:Qi(r[3]),a:L3(r[4]),format:n?"name":"hex8"}:(r=Cr.hex6.exec(e),r?{r:Qi(r[1]),g:Qi(r[2]),b:Qi(r[3]),format:n?"name":"hex"}:(r=Cr.hex4.exec(e),r?{r:Qi(r[1]+r[1]),g:Qi(r[2]+r[2]),b:Qi(r[3]+r[3]),a:L3(r[4]+r[4]),format:n?"name":"hex8"}:(r=Cr.hex3.exec(e),r?{r:Qi(r[1]+r[1]),g:Qi(r[2]+r[2]),b:Qi(r[3]+r[3]),format:n?"name":"hex"}:!1)))))))))}function va(e){return Boolean(Cr.CSS_UNIT.exec(String(e)))}var dR=function(){function e(n,r){n===void 0&&(n=""),r===void 0&&(r={});var a;if(n instanceof e)return n;typeof n=="number"&&(n=oR(n)),this.originalInput=n;var s=sR(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=r.format)!==null&&a!==void 0?a:s.format,this.gradientType=r.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(),r,a,s,c=n.r/255,p=n.g/255,m=n.b/255;return c<=.03928?r=c/12.92:r=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*r+.7152*a+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=F3(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=R3(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=R3(this.r,this.g,this.b),r=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.v*100);return this.a===1?"hsv(".concat(r,", ").concat(a,"%, ").concat(s,"%)"):"hsva(".concat(r,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=P3(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=P3(this.r,this.g,this.b),r=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.l*100);return this.a===1?"hsl(".concat(r,", ").concat(a,"%, ").concat(s,"%)"):"hsla(".concat(r,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),j3(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),rR(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),r=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(r,", ").concat(a,")"):"rgba(".concat(n,", ").concat(r,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(r){return"".concat(Math.round(Tn(r,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(r){return Math.round(Tn(r,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="#"+j3(this.r,this.g,this.b,!1),r=0,a=Object.entries(yy);r<a.length;r++){var s=a[r],c=s[0],p=s[1];if(n===p)return c}return!1},e.prototype.toString=function(n){var r=Boolean(n);n=n!=null?n:this.format;var a=!1,s=this.a<1&&this.a>=0,c=!r&&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 r=this.toHsl();return r.l+=n/100,r.l=yh(r.l),new e(r)},e.prototype.brighten=function(n){n===void 0&&(n=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),new e(r)},e.prototype.darken=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.l-=n/100,r.l=yh(r.l),new e(r)},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 r=this.toHsl();return r.s-=n/100,r.s=yh(r.s),new e(r)},e.prototype.saturate=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.s+=n/100,r.s=yh(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var r=this.toHsl(),a=(r.h+n)%360;return r.h=a<0?360+a:a,new e(r)},e.prototype.mix=function(n,r){r===void 0&&(r=50);var a=this.toRgb(),s=new e(n).toRgb(),c=r/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,r){n===void 0&&(n=6),r===void 0&&(r=30);var a=this.toHsl(),s=360/r,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 r=this.toHsv(),a=r.h,s=r.s,c=r.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(),r=n.h;return[this,new e({h:(r+72)%360,s:n.s,l:n.l}),new e({h:(r+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var r=this.toRgb(),a=new e(n).toRgb(),s=r.a+a.a*(1-r.a);return new e({r:(r.r*r.a+a.r*a.a*(1-r.a))/s,g:(r.g*r.a+a.g*a.a*(1-r.a))/s,b:(r.b*r.a+a.b*a.a*(1-r.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 r=this.toHsl(),a=r.h,s=[this],c=360/n,p=1;p<n;p++)s.push(new e({h:(a+p*c)%360,s:r.s,l:r.l}));return s},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e}();function qa(e,n=20){return e.mix("#141414",n).toString()}function fR(e){const n=hy(),r=Yr("button");return x.computed(()=>{let a={};const s=e.color;if(s){const c=new dR(s),p=e.dark?c.tint(20).toString():qa(c,20);if(e.plain)a=r.cssVarBlock({"bg-color":e.dark?qa(c,90):c.tint(90).toString(),"text-color":s,"border-color":e.dark?qa(c,50):c.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":p,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":p}),n.value&&(a[r.cssVarBlockName("disabled-bg-color")]=e.dark?qa(c,90):c.tint(90).toString(),a[r.cssVarBlockName("disabled-text-color")]=e.dark?qa(c,50):c.tint(50).toString(),a[r.cssVarBlockName("disabled-border-color")]=e.dark?qa(c,80):c.tint(80).toString());else{const m=e.dark?qa(c,30):c.tint(30).toString(),g=c.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(a=r.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?qa(c,50):c.tint(50).toString();a[r.cssVarBlockName("disabled-bg-color")]=y,a[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,a[r.cssVarBlockName("disabled-border-color")]=y}}}return a})}const pR=x.defineComponent({name:"ElButton"}),hR=x.defineComponent({...pR,props:by,emits:$P,setup(e,{expose:n,emit:r}){const a=e,s=fR(a),c=Yr("button"),{_ref:p,_size:m,_type:g,_disabled:y,_props:O,shouldAddSpace:S,handleClick:N}=ZP(a,r);return n({ref:p,size:m,type:g,disabled:y,shouldAddSpace:S}),(_,B)=>(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(S)})},[x.renderSlot(_.$slots,"default")],2)):x.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var mR=Xa(hR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const gR={size:by.size,type:by.type},AR=x.defineComponent({name:"ElButtonGroup"}),vR=x.defineComponent({...AR,props:gR,setup(e){const n=e;x.provide(M3,x.reactive({size:x.toRef(n,"size"),type:x.toRef(n,"type")}));const r=Yr("button");return(a,s)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(`${x.unref(r).b("group")}`)},[x.renderSlot(a.$slots,"default")],2))}});var z3=Xa(vR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const bR=uh(mR,{ButtonGroup:z3});P7(z3);const Ey="_trap-focus-children",cs=[],Q3=e=>{var n;if(cs.length===0)return;const r=cs[cs.length-1][Ey];if(r.length>0&&e.code===dh.tab){if(r.length===1){e.preventDefault(),document.activeElement!==r[0]&&r[0].focus();return}const a=e.shiftKey,s=e.target===r[0],c=e.target===r[r.length-1];if(s&&a&&(e.preventDefault(),r[r.length-1].focus()),c&&!a&&(e.preventDefault(),r[0].focus()),process.env.NODE_ENV==="test"){const p=r.indexOf(e.target);p!==-1&&((n=r[a?p-1:p+1])==null||n.focus())}}},_R={beforeMount(e){e[Ey]=v4(e),cs.push(e),cs.length<=1&&document.addEventListener("keydown",Q3)},updated(e){x.nextTick(()=>{e[Ey]=v4(e)})},unmounted(){cs.shift(),cs.length===0&&document.removeEventListener("keydown",Q3)}},yR=os({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:vi([String,Array,Object])},zIndex:{type:vi([String,Number])}}),xR={click:e=>e instanceof MouseEvent},wR="overlay";var ER=x.defineComponent({name:"ElOverlay",props:yR,emits:xR,setup(e,{slots:n,emit:r}){const a=Yr(wR),s=g=>{r("click",g)},{onClick:c,onMousedown:p,onMouseup:m}=p3(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")],fh.STYLE|fh.CLASS|fh.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 CR=ER,H3=["success","info","warning","error"],bi=e3({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:Ai?document.body:void 0}),kR=os({customClass:{type:String,default:bi.customClass},center:{type:Boolean,default:bi.center},dangerouslyUseHTMLString:{type:Boolean,default:bi.dangerouslyUseHTMLString},duration:{type:Number,default:bi.duration},icon:{type:id,default:bi.icon},id:{type:String,default:bi.id},message:{type:vi([String,Object,Function]),default:bi.message},onClose:{type:vi(Function),required:!1},showClose:{type:Boolean,default:bi.showClose},type:{type:String,values:H3,default:bi.type},offset:{type:Number,default:bi.offset},zIndex:{type:Number,default:bi.zIndex},grouping:{type:Boolean,default:bi.grouping},repeatNum:{type:Number,default:bi.repeatNum}}),SR={destroy:()=>!0},kr=x.shallowReactive([]),DR=e=>{const n=kr.findIndex(s=>s.id===e),r=kr[n];let a;return n>0&&(a=kr[n-1]),{current:r,prev:a}},BR=e=>{const{prev:n}=DR(e);return n?n.vm.exposed.bottom.value:0},IR=(e,n)=>kr.findIndex(a=>a.id===e)>0?20:n,OR=["id"],TR=["innerHTML"],NR=x.defineComponent({name:"ElMessage"}),MR=x.defineComponent({...NR,props:kR,emits:SR,setup(e,{expose:n}){const r=e,{Close:a}=$4,{ns:s,zIndex:c}=_3("message"),{currentZIndex:p,nextZIndex:m}=c,g=x.ref(),y=x.ref(!1),O=x.ref(0);let S;const N=x.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),_=x.computed(()=>{const M=r.type;return{[s.bm("icon",M)]:M&&ch[M]}}),B=x.computed(()=>r.icon||ch[r.type]||""),j=x.computed(()=>BR(r.id)),R=x.computed(()=>IR(r.id,r.offset)+j.value),T=x.computed(()=>O.value+R.value),F=x.computed(()=>({top:`${R.value}px`,zIndex:p.value}));function v(){r.duration!==0&&({stop:S}=wF(()=>{k()},r.duration))}function w(){S==null||S()}function k(){y.value=!1}function Q({code:M}){M===dh.esc&&k()}return x.onMounted(()=>{v(),m(),y.value=!0}),x.watch(()=>r.repeatNum,()=>{w(),v()}),x4(document,"keydown",Q),E4(g,()=>{O.value=g.value.getBoundingClientRect().height}),n({visible:y,bottom:T,close:k}),(M,H)=>(x.openBlock(),x.createBlock(x.Transition,{name:x.unref(s).b("fade"),onBeforeLeave:M.onClose,onAfterLeave:H[0]||(H[0]=ne=>M.$emit("destroy")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("div",{id:M.id,ref_key:"messageRef",ref:g,class:x.normalizeClass([x.unref(s).b(),{[x.unref(s).m(M.type)]:M.type&&!M.icon},x.unref(s).is("center",M.center),x.unref(s).is("closable",M.showClose),M.customClass]),style:x.normalizeStyle(x.unref(F)),role:"alert",onMouseenter:w,onMouseleave:v},[M.repeatNum>1?(x.openBlock(),x.createBlock(x.unref(XP),{key:0,value:M.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(B)?(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(B))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.renderSlot(M.$slots,"default",{},()=>[M.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:M.message},null,10,TR)],2112)):(x.openBlock(),x.createElementBlock("p",{key:0,class:x.normalizeClass(x.unref(s).e("content"))},x.toDisplayString(M.message),3))]),M.showClose?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass(x.unref(s).e("closeBtn")),onClick:x.withModifiers(k,["stop"])},{default:x.withCtx(()=>[x.createVNode(x.unref(a))]),_:1},8,["class","onClick"])):x.createCommentVNode("v-if",!0)],46,OR),[[x.vShow,y.value]])]),_:3},8,["name","onBeforeLeave"]))}});var FR=Xa(MR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let PR=1;const V3=e=>{const n=!e||wr(e)||x.isVNode(e)||ns(e)?{message:e}:e,r={...bi,...n};if(!r.appendTo)r.appendTo=document.body;else if(wr(r.appendTo)){let a=document.querySelector(r.appendTo);ry(a)||(Ur("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),r.appendTo=a}return r},RR=e=>{const n=kr.indexOf(e);if(n===-1)return;kr.splice(n,1);const{handler:r}=e;r.close()},jR=({appendTo:e,...n},r)=>{const a=`message_${PR++}`,s=n.onClose,c=document.createElement("div"),p={...n,id:a,onClose:()=>{s==null||s(),RR(O)},onDestroy:()=>{x.render(null,c)}},m=x.createVNode(FR,p,ns(p.message)||x.isVNode(p.message)?{default:ns(p.message)?p.message:()=>p.message}:null);m.appContext=r||Ll._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},Ll=(e={},n)=>{if(!Ai)return{close:()=>{}};if(as(fy.max)&&kr.length>=fy.max)return{close:()=>{}};const r=V3(e);if(r.grouping&&kr.length){const s=kr.find(({vnode:c})=>{var p;return((p=c.props)==null?void 0:p.message)===r.message});if(s)return s.props.repeatNum+=1,s.props.type=r.type,s.handler}const a=jR(r,n);return kr.push(a),a.handler};H3.forEach(e=>{Ll[e]=(n={},r)=>{const a=V3(n);return Ll({...a,type:e},r)}});function LR(e){for(const n of kr)(!e||e===n.props.type)&&n.handler.close()}Ll.closeAll=LR,Ll._context=null;const ad=F7(Ll,"$message"),zR=x.defineComponent({name:"ElMessageBox",directives:{TrapFocus:_R},components:{ElButton:bR,ElFocusTrap:UP,ElInput:OP,ElOverlay:CR,ElIcon:Wr,...$4},inheritAttrs:!1,props:{buttonSize:{type:String,validator:R7},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:r,zIndex:a,ns:s,size:c}=_3("message-box",x.computed(()=>e.buttonSize)),{t:p}=r,{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&&ch[ye]}}),S=cy(),N=cy(),_=x.computed(()=>y.icon||ch[y.type]||""),B=x.computed(()=>!!y.message),j=x.ref(),R=x.ref(),T=x.ref(),F=x.ref(),v=x.ref(),w=x.computed(()=>y.confirmButtonClass);x.watch(()=>y.inputValue,async ye=>{await x.nextTick(),e.boxType==="prompt"&&ye!==null&&de()},{immediate:!0}),x.watch(()=>g.value,ye=>{var _e,W;ye&&(e.boxType!=="prompt"&&(y.autofocus?T.value=(W=(_e=v.value)==null?void 0:_e.$el)!=null?W:j.value:T.value=j.value),y.zIndex=m()),e.boxType==="prompt"&&(ye?x.nextTick().then(()=>{var J;F.value&&F.value.$el&&(y.autofocus?T.value=(J=me())!=null?J:j.value:T.value=j.value)}):(y.editorErrorMessage="",y.validateError=!1))});const k=x.computed(()=>e.draggable);V7(j,R,k),x.onMounted(async()=>{await x.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",Q)}),x.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",Q)});function Q(){!g.value||(g.value=!1,x.nextTick(()=>{y.action&&n("action",y.action)}))}const M=()=>{e.closeOnClickModal&&re(y.distinguishCancelAndClose?"close":"cancel")},H=p3(M),ne=ye=>{if(y.inputType!=="textarea")return ye.preventDefault(),re("confirm")},re=ye=>{var _e;e.boxType==="prompt"&&ye==="confirm"&&!de()||(y.action=ye,y.beforeClose?(_e=y.beforeClose)==null||_e.call(y,ye,y,Q):Q())},de=()=>{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=F.value.$refs;return ye.input||ye.textarea},pe=()=>{re("close")},Se=()=>{e.closeOnPressEscape&&pe()};return e.lockScroll&&aP(g),{...x.toRefs(y),ns:s,overlayEvent:H,visible:g,hasMessage:B,typeClass:O,contentId:S,inputId:N,btnSize:c,iconComponent:_,confirmButtonClasses:w,rootRef:j,focusStartRef:T,headerRef:R,inputRef:F,confirmRef:v,doClose:Q,handleClose:pe,onCloseRequested:Se,handleWrapperClick:M,handleInputEnter:ne,handleAction:re,t:p}}}),QR=["aria-label","aria-describedby"],HR=["aria-label"],VR=["id"];function UR(e,n,r,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"),S=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(S,{"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,HR)):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,VR),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,QR)]),_:3},8,["z-index","overlay-class","mask"]),[[x.vShow,e.visible]])]),_:3})}var YR=Xa(zR,[["render",UR],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const od=new Map,WR=e=>{let n=document.body;return e.appendTo&&(wr(e.appendTo)&&(n=document.querySelector(e.appendTo)),ry(e.appendTo)&&(n=e.appendTo),ry(n)||(Ur("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body)),n},GR=(e,n,r=null)=>{const a=x.createVNode(YR,e,ns(e.message)||x.isVNode(e.message)?{default:ns(e.message)?e.message:()=>e.message}:null);return a.appContext=r,x.render(a,n),WR(e).appendChild(n.firstElementChild),a.component},JR=()=>document.createElement("div"),KR=(e,n)=>{const r=JR();e.onVanish=()=>{x.render(null,r),od.delete(s)},e.onAction=c=>{const p=od.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=GR(e,r,n),s=a.proxy;for(const c in e)ah(e,c)&&!ah(s.$props,c)&&(s[c]=e[c]);return s.visible=!0,s};function zl(e,n=null){if(!Ai)return Promise.reject();let r;return wr(e)||x.isVNode(e)?e={message:e}:r=e.callback,new Promise((a,s)=>{const c=KR(e,n!=null?n:zl._context);od.set(c,{options:e,callback:r,resolve:a,reject:s})})}const XR=["alert","confirm","prompt"],ZR={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};XR.forEach(e=>{zl[e]=$R(e)});function $R(e){return(n,r,a,s)=>{let c="";return ed(r)?(a=r,c=""):L4(r)?c="":c=r,zl(Object.assign({title:c,message:n,type:"",...ZR[e]},a,{boxType:e}),s)}}zl.close=()=>{od.forEach((e,n)=>{n.doClose()}),od.clear()},zl._context=null;const eo=zl;eo.install=e=>{eo._context=e._context,e.config.globalProperties.$msgbox=eo,e.config.globalProperties.$messageBox=eo,e.config.globalProperties.$alert=eo.alert,e.config.globalProperties.$confirm=eo.confirm,e.config.globalProperties.$prompt=eo.prompt};const U3=eo;var qR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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")?r("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!0,e.getButton("wf_pass").name)}}},[r("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?r("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!1,e.getButton("wf_reject").name)}}},[r("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.userId==e.process.variables.applyUserId?r("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("reminders")}}},[r("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?r("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")?r("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")?r("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")?r("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")?r("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")?r("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[r("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)?r("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")?r("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)},ej=[];const bX="",tj={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 r=n.data;this.backNodes=r})},immediate:!0}},methods:{getButton(e){return this.buttonList.find(n=>n.buttonKey==e)}}},Y3={};var nj=rn(tj,qR,ej,!1,ij,"1d36c4be",null,null);function ij(e){for(let n in Y3)this[n]=Y3[n]}const rj=function(){return nj.exports}(),aj=e=>{var n=Object.prototype.toString,r={"[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":r[n.call(e)]},Cy=e=>{var n=aj(e),r;if(n==="array")r=[];else if(n==="object")r={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)r.push(Cy(e[a]));else if(n==="object")for(var c in e)r[c]=Cy(e[c]);return r};function W3(e,n="YYYY-MM-DD HH:mm:ss"){return qu(e).format(n)}function oj(e){e=Cy(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 r=[];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}'>${W3(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let S,{type:N,fullMessage:_}=m.find(B=>B.action=="AddComment")||{};N=="assigneeComment"&&(S="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(S="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(S="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(S="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(S="\u6307\u5B9A\u56DE\u9000\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(S="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),(N=="addMultiInstanceComment"||(N||"").includes("\u52A0\u7B7E"))&&(S="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(S="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(S="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(S="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(S="\u62D2\u7EDD\uFF1A"+_,g.class="nodeError"),N=="comment"&&(S="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),S&&(y+=`<span title='${S}'>${S}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=r.findIndex(S=>S.id==a.historyActivityId);O!=-1?r.splice(O,1,g):r.push(g)}),r}function ky(e){const n=[],r=[],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"?r.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(r)],deptIds:[...new Set(a)]}}function Sy(e){const n=[];return e.forEach(r=>{let{assigneeName:a,createTime:s,endTime:c,comments:p}=r;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(s=s.replace(/-/g,"/"),c=c.replace(/-/g,"/"));const m={id:r.historyActivityId,class:!c&&r.historyActivityType!="candidate"?"nodePrimary":""};let g="";if(a||p&&p.length>0){if(g=`<span title='${a}'>${a}</span><br>`,s&&(g+=`<span title='${s}'>${W3(s,"YYYY-MM-DD HH:mm")}</span><br>`),p&&p.length>0){let y,{type:O,fullMessage:S}=p.find(N=>N.action=="AddComment")||{};O=="assigneeComment"&&(y="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+S,m.class="nodeWarn"),O=="dispatchComment"&&(y="\u8C03\u5EA6\uFF1A"+S,m.class="nodeWarn"),O=="transferComment"&&(y="\u8F6C\u529E\uFF1A"+S,m.class="nodeWarn"),O=="delegateComment"&&(y="\u59D4\u6258\uFF1A"+S,m.class="nodeWarn"),O=="rollbackComment"&&(y="\u6307\u5B9A\u56DE\u9000\uFF1A"+S,m.class="nodeError"),O=="terminateComment"&&(y="\u7EC8\u6B62\uFF1A"+S,m.class="nodeError"),(O=="addMultiInstanceComment"||(O||"").includes("\u52A0\u7B7E"))&&(y="\u52A0\u7B7E\uFF1A"+S,m.class="nodeWarn"),O=="deleteMultiInstanceComment"&&(y="\u51CF\u7B7E\uFF1A"+S,m.class="nodeError"),O=="withdrawComment"&&(y="\u64A4\u9500\uFF1A"+S,m.class="nodeWarn"),O=="deleteProcessComment"&&(y="\u5220\u9664\u6D41\u7A0B\uFF1A"+S,m.class="nodeError"),O=="cancelProcessComment"&&(y="\u62D2\u7EDD\uFF1A"+S,m.class="nodeError"),O=="comment"&&(y="\u5BA1\u6279\uFF1A"+S,m.class="nodeSuccess"),y&&(g+=`<span title='${y}'>${y}</span>`)}m.tooltip=g}r.historyActivityType=="sequenceFlow"?m.class="lineWarn":!m.class&&r.historyActivityType!="candidate"&&(m.class="nodeSuccess"),n.push({...r,...m})}),n}var sj=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-row",{attrs:{type:"flex"}},[r("el-timeline",[e._l(e.getColors(e.flowList),function(a,s){return[["candidate","sequenceFlow"].includes(a.historyActivityType)?e._e():r("el-timeline-item",{key:a.id,attrs:{timestamp:a.endTime||a.createTime,placement:"top"}},[r("el-card",{class:[a.endTime?"":"cur-process",e.isHistory?"cur-process-history":"",e.isActive?"cur-process-isActive":""]},[e.isHistory?r("div",{staticClass:"cur-process-history-icon"},[r("svg",{staticClass:"icon",attrs:{t:"1766388445844",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23729"}},[r("path",{attrs:{d:"M664.064 162.304c-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.68-4.608-14.336-6.144-21.504-9.728z m223.744 386.56c7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-2.56 16.384-4.096 24.576-6.144 6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.656 1.024-15.872 4.096-23.04z m-302.592-462.848c37.376 7.168 74.752 18.432 111.616 36.352 1.024-1.024 3.072 0 4.096-1.536-2.048-1.024-4.096 0.512-6.144-1.024 2.56-4.096 5.632-3.584 8.704-4.608-1.536-5.632-7.168-0.512-9.728 0-0.512 1.536-0.512 2.56-1.024 3.584-1.536-1.024-3.072 0-4.608-2.048 1.024-3.584 5.12-2.56 7.168-4.608-1.024-0.512 0.512-1.536 0-2.048-35.84-15.872-72.192-28.16-108.032-34.304-1.024 2.048 0.512 4.608 2.048 6.656 1.024 0.512 3.072-1.024 2.56 0-1.024 0.512 1.024 1.536 0 2.048-2.56-0.512-4.608 1.024-6.656 1.536zM329.728 835.584c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m174.08 48.128c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.704-3.072 16.384-4.096 24.576-6.656zM82.432 485.888c-3.072-0.512-6.144-3.072-10.24-2.048-3.072 38.912 0 81.92 10.24 123.392 2.048-2.56 3.584-6.144 7.168-6.144 0-1.536 0.512-2.56 1.536-4.096-7.68-37.376-9.728-74.24-8.704-111.104zM695.808 829.44c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.144 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m-256-749.056c1.536 1.024 4.096-1.536 3.584 0.512 1.024 1.536-1.536 2.56-0.512 4.096 39.424-4.096 79.36-5.632 118.272-1.024 3.584-3.072 7.68-6.144 10.752-9.216-9.216-2.56-21.504-3.072-32.256-4.608-10.752-1.024-22.016-1.024-32.768-1.024-22.016 0.512-44.544 1.536-67.072 5.632 0 0-0.512-0.512-0.512 0 1.536 1.536-1.024 3.584 0.512 5.632zM112.64 351.232c14.848-38.4 35.328-75.776 64.512-111.616 28.672-35.84 68.608-71.68 109.568-96.256 41.472-25.088 81.92-40.96 122.368-50.688 2.56-4.096 6.144-8.704 7.68-13.312-6.656 2.048-14.336 2.048-19.968 6.144-7.168-1.024-14.848 3.584-22.016 5.12-7.68 2.048-14.848 4.608-22.528 7.68-14.848 5.632-30.208 12.288-45.056 20.48-30.72 16.384-60.928 35.84-90.624 62.976-89.6 81.408-126.464 172.544-141.312 263.168-0.512 1.536 1.024 2.048 1.024 2.56-2.048 2.048-1.536 4.608-2.048 6.656 1.536 1.536 4.608 3.072 5.12 4.608-1.024 1.536-3.072 3.584-4.096 4.096-2.048-1.024 1.024-2.56-0.512-3.584-1.536 2.56-1.536 7.168-1.536 10.752 0 3.072-2.048 8.192 0.512 9.728 4.608-1.024 0-5.12 0-7.68 4.096-1.536 6.144-4.096 9.728-5.632 3.584-9.728 2.56-19.456 5.12-29.184 1.024-9.728 3.584-18.944 5.632-29.184 5.12-18.432 10.24-37.888 18.432-56.832z m-31.744 108.544c1.024 0 2.56 1.024 2.56 2.048-1.536 1.536-2.048 0-2.56-2.048z m715.776-268.288c29.184 25.088 59.904 62.976 80.384 96.256 41.984 68.096 58.368 134.144 63.488 199.168 3.072 0 6.656 2.56 10.752 5.12 2.048-2.56 0-8.704 0.512-12.288-0.512-4.096-0.512-8.704-1.536-12.8-0.512-8.704-1.536-17.408-3.072-25.6-2.56-17.408-6.656-34.816-11.776-52.224-10.752-34.304-24.576-70.144-47.104-105.472-20.48-34.304-53.76-74.752-84.48-101.376-31.232-28.16-62.976-48.64-95.232-65.024 0 0-0.512-0.512-0.512 0 1.024 4.096-1.024 8.192-1.024 12.288 30.208 14.848 60.416 34.816 89.6 61.952z m24.576 513.024c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656zM701.952 126.464c0-0.512-1.024-3.072-2.048-2.56 0.512 0 0 0.512-0.512 1.536 0.512 0 1.536 0.512 2.56 1.024zM417.792 68.608c-0.512 0-1.536-2.048-2.56-2.56-1.024-4.096 4.096-7.68 1.024-12.288-1.024-0.512-2.048 0-3.072 0 0.512 5.632-2.56 11.776-3.072 17.408 2.56-1.024 6.144-0.512 7.68-2.56z m12.8 19.456c-1.536-4.096 2.56-7.68 1.536-11.776-3.584 0.512-7.168 0.512-10.24 3.072 0 2.56-0.512 5.12-1.536 7.68-2.048 1.024-2.56 2.56-2.048 4.096 4.608-1.536 8.192-2.048 12.288-3.072z m-30.72-29.184c2.56-0.512 3.584 0.512 5.12 2.048 3.584-2.048 2.56-6.656 3.584-9.216-6.144 1.536-12.288 2.56-19.456 5.12-2.048 7.168-6.144 13.824-5.632 21.504 4.096-1.536 8.192-2.048 12.288-4.096 1.536-4.608 2.048-10.24 4.096-15.36z m28.672 8.192c-0.512-1.024-1.536-3.584-3.072-3.072 0 1.536-1.536 2.56-1.024 4.608 1.536-1.024 2.56 0 4.096-1.536z m110.592 56.832c-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.024-7.68 4.096-15.36 4.096-22.528z m44.032-58.368c6.144-4.608 12.288-10.24 16.384-15.36-16.896-4.608-34.304-5.632-51.2-7.168-1.536 0.512-3.072 1.536-4.608 2.048-1.536-1.024 0-1.536-1.024-2.56-30.72-2.56-62.464-2.048-93.696 2.56-0.512 2.56-4.608 5.12-5.632 8.192 0 1.536 3.072 3.072 2.048 4.608-2.56 3.072-4.608 0-7.168 2.56-1.536 2.048-1.024 4.096-2.56 6.144 49.664-7.68 98.816-7.68 147.456-1.024z m358.4 432.128c2.56 0.512 5.632 4.096 8.192 3.584 0.512-2.048 2.048-2.56 2.048-4.096-3.584-1.024-7.168-4.608-10.752-6.656 0.512 2.56-0.512 5.12 0.512 7.168z m-468.992 286.208c0.512-1.536 2.56-3.072 4.096-3.072 0-3.072-0.512-4.608-2.048-6.656-32.768-5.632-65.024-16.896-96.768-34.816-1.536 3.072-3.584 6.144-3.072 9.728 31.744 18.944 64.512 29.696 97.792 34.816z m-311.808-252.928c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 11.776 10.24 17.92z m505.344 210.944c-3.072 0-6.656-3.584-8.192-6.656-14.848 9.728-28.672 15.872-43.52 23.04 0.512 0.512 0 0.512 0.512 1.024 0 3.584-3.072 6.656-3.584 10.752 17.92-7.168 37.376-15.36 54.784-28.16zM243.712 347.136c-5.632-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.56 16.896-3.072 25.6-5.632z m351.744 417.28c-36.864 12.288-73.728 14.336-109.568 11.264 0.512 3.072 1.024 6.144 3.072 9.728 34.816 4.608 70.144 1.024 106.496-10.24 1.024-3.584 1.536-7.168 0-10.752z m-229.376-20.48c1.536-3.072 2.56-7.168 3.072-10.24-6.144-4.096-12.8-8.704-18.944-13.824-3.584-1.024-8.192 3.072-6.656 7.168 7.168 7.68 14.848 11.776 22.528 16.896z m612.864-176.64c1.024-14.848 2.56-29.696 2.56-45.056-1.536-2.56-1.536-4.608-2.048-6.656-5.632-6.144-11.776-7.68-17.92-9.216 1.536 55.808-8.704 110.08-26.112 164.864 5.632 2.048 10.752 5.12 16.896 7.68 12.8-34.816 21.504-69.12 25.088-104.448 1.536-1.536-1.536-1.536-0.512-3.072 0-2.048 1.536-2.048 2.048-4.096z m-368.64 386.048c-136.192 26.112-267.776 1.536-392.192-100.864 1.024 8.192-1.536 16.384 0 25.6 21.504 17.408 43.008 31.744 65.536 44.544 22.528 11.776 44.544 23.552 67.584 30.208 3.072 0 4.608-5.12 7.168-5.12 3.072 3.072 7.168 6.656 6.144 10.752 10.752 3.584 20.992 6.144 31.232 9.216 5.12 1.024 10.24 2.56 15.36 3.584 5.632 1.024 10.752 3.584 15.872 2.048 1.024-2.048-1.536-3.072-1.536-5.12 3.072-3.584 6.656-7.68 10.24-6.656 0.512 2.048 1.536 4.608 1.024 6.144-4.096 1.536-5.632 5.12-8.192 7.168 16.896 3.072 34.304 5.632 51.2 6.656-0.512-3.072 4.096-5.12 5.632-7.68 6.656 2.048 13.312 1.536 19.456 4.096-0.512 1.536-0.512 3.072-1.024 4.608 13.824 1.536 27.136 0 40.96-0.512 1.024-2.048 1.536-1.536 3.072-1.536 0.512-2.56-1.536-6.144 0-9.216 3.584-0.512 7.68 0 9.728 3.072-2.048 2.56 0 4.096 0 7.168 15.872-1.024 31.744-3.584 47.616-7.168-1.536-4.096 1.024-8.192 0-11.776 1.536-0.512 2.56 0 4.096-1.536 2.56-2.56 0-5.12 1.024-7.68z m145.408-327.68s0-0.512 0 0l-1.024 1.024c-5.12 12.288-14.848 25.088-19.968 36.352-0.512 2.048-2.56 1.024-3.072 2.56-14.336 19.968-32.768 39.424-55.808 57.344 1.536 1.536 2.56 2.56 3.072 4.096 1.024 1.536 0 5.12 1.024 5.12 38.912-29.184 65.536-65.024 81.92-98.304-1.024-2.56-3.584-7.168-6.144-8.192zM264.704 409.088c7.68-20.992 19.456-40.96 34.816-61.44-1.024-4.096 0.512-7.68-0.512-11.264-1.536 0.512-2.56 0-4.096 0.512-18.432 23.552-31.744 47.616-41.472 71.68 1.536 1.024 1.536 2.56 2.048 3.584-1.536 11.264-5.632 23.04-9.728 34.304-1.024 1.024-3.584 2.048-3.072 4.608-0.512 1.024-1.024-1.536-1.536 0-4.096 14.848-5.632 29.696-6.656 45.056v22.528c1.024 8.192-0.512 15.36 2.56 23.552 2.56 2.048 5.632 2.048 8.704-1.024 1.024-7.68-1.024-15.872-1.024-23.04-11.264-3.584-11.264-20.48 0.512-22.528 0-4.608 2.048-9.728 0.512-13.824 2.048-3.584 1.536-10.752 3.584-15.872 1.024-5.632 1.536-11.776 3.584-17.408 2.048-11.264 5.632-23.04 10.24-33.792 0.512-1.024 0-2.56 0-3.072 0.512-1.024 1.024-1.536 1.536-2.56z m61.44-169.984c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 12.288 10.24 17.92z m201.728 4.096c28.16 1.536 55.808 8.704 82.944 18.432 2.56-1.024 5.632-4.096 8.192-6.656-29.696-12.288-59.392-19.968-90.112-21.504-1.536 2.048-1.024 6.144-1.024 9.728z m-172.032 39.936c-3.584 1.024-7.68 1.536-9.216 5.632 2.56 0.512-1.536 7.168-4.096 4.608 1.024-1.536 3.584-2.56 4.096-4.096-4.096-1.024-9.728 6.144-12.288 9.216-1.024-1.536-2.56 0-3.584 0.512-9.728 8.704-17.92 16.896-25.6 25.088 2.048 2.56 3.584 6.656 5.12 9.728 9.728-10.752 20.992-20.992 32.256-31.232 0.512-1.024-2.56 0-2.048-1.024 1.024-1.536 3.072-2.048 3.584-3.584 0.512-0.512-3.072 0.512-2.56-0.512 2.048-1.024 3.584-4.096 5.12-3.584-2.56 3.072-1.024 3.584-1.536 7.168 52.736-40.448 102.4-54.272 152.064-57.344 4.096-3.072 5.12-6.656 4.608-10.752-47.104 2.56-94.208 13.824-143.36 46.08-1.024 1.024-0.512 2.56-2.56 4.096z m433.664 268.288c1.536-12.288 3.072-24.576 3.072-36.864 0.512-6.144 0.512-12.288 0-18.432-1.024-6.656 1.536-12.8-3.584-18.944-2.56-0.512-4.096-1.024-6.656 1.024-0.512 0.512-0.512 1.024-1.024 1.536-0.512 11.776 1.536 23.552 1.024 35.328s-1.536 23.552-3.072 35.328c-3.584 23.552-10.752 46.08-19.968 69.12 3.072 0 6.144 2.048 8.704 4.096 10.24-23.552 16.896-47.616 21.504-72.192zM367.104 202.24c0.512-1.024-1.024-2.56-1.024-2.56 0 0.512 0 0.512-0.512 1.024 0.512 0.512 1.024 2.048 1.536 1.536z m299.52 91.136c2.048-0.512 3.072 0 4.608-1.536 1.024-2.048 1.536-4.096 1.024-6.144-10.24-8.704-20.48-15.36-31.744-19.968 0.512 3.584-0.512 7.168-0.512 10.752 9.216 5.12 17.92 11.264 26.624 16.896z m-38.4 642.048c1.024 1.536-1.536 5.12-0.512 4.096 40.448-9.728 80.896-27.136 121.856-53.248-1.024-1.536-3.072-3.072-2.048-4.096 1.024-0.512 2.048 0.512 3.072 0-1.024-1.536-3.072-3.584-3.584-5.12 1.024-1.024 3.584 1.024 3.072-0.512-1.024-0.512-1.536-1.536-2.048-2.56-44.032 27.648-87.552 45.056-130.048 56.32-2.048 2.56-3.584 5.12-6.144 7.68-1.536-1.536-0.512-3.584-2.56-4.608-8.704-1.024-18.432 3.072-27.648 3.584-9.728 1.024-18.944 2.56-28.16 3.072-18.432 1.536-36.352 2.56-54.784 1.536-36.352-1.024-72.192-7.68-108.032-17.92-71.168-22.528-140.8-60.416-207.36-137.728-1.536-1.536-4.096-5.632-6.144-7.168-3.584-0.512-6.144 3.584-9.216 3.072-0.512-5.12 0-10.24-0.512-15.872-38.4-52.736-59.392-103.936-72.704-154.624-2.56-1.024-5.12-5.12-9.216-5.632-1.536 1.536-2.56 2.048-3.072 3.072 1.024 1.536 2.048-1.024 2.56 0-1.536 1.536-1.024 2.048-1.024 3.584 14.336 58.368 40.96 119.808 90.624 180.224 67.072 79.36 141.824 120.32 216.064 142.848 74.752 21.504 151.552 24.064 229.376 5.632 0.512-2.048 4.608-7.68 8.192-5.632z m298.496-269.312c18.432-52.736 27.648-105.984 25.6-160.768-1.536 0.512-4.608 1.024-2.56-1.024-3.072 1.536-5.12-0.512-8.192-1.024 0.512 118.272-34.816 237.568-155.136 341.504-0.512 2.56 0.512 5.632-1.024 8.704-1.024 0-2.56 1.024-3.584 1.024-2.048-0.512-2.048-1.536-3.072-3.584-5.12 4.096-10.24 7.68-15.872 11.776-1.024 2.56-2.56 7.168-5.12 4.608 0.512-0.512 2.048-1.024 1.536-1.536-3.584 3.072-7.168 5.12-10.752 7.68 1.024 2.048 0.512 3.584 2.048 5.12-2.048 1.024 0.512 3.072 0.512 4.608 0 1.024-2.56 0-0.512 1.536 18.944-10.752 40.96-28.672 59.392-45.056 57.856-53.248 92.672-111.104 114.688-169.472 0-1.024-2.048-1.024-1.024-2.56 1.536-1.536 2.048 0 3.072-1.536z m-167.936 210.944c-0.512-1.024 1.024-1.536 2.048-2.56 0 1.024-1.024 1.536-2.048 2.56z m0-5.12c0-1.536 3.072-2.56 4.096-4.096-0.512 2.048-2.048 5.12-4.096 4.096z m125.952-122.88c-1.024 0.512-1.024 0-1.536-1.536 1.024-1.024 1.536-0.512 2.56-1.024 0.512 1.024-1.536 1.536-1.024 2.56z m0-14.336c-0.512 0.512-1.024-1.024-1.536-0.512-1.024-1.024 1.536-1.536 2.048-3.072 1.024 1.536 0 2.56-0.512 3.584zM128 745.984c-22.016-37.376-38.4-74.24-48.128-110.592-20.992-72.704-23.04-143.36-9.728-212.48s41.984-136.704 95.744-202.24c26.624-32.256 61.952-64 99.328-88.576s73.728-40.448 110.08-52.224c4.096-6.656 4.096-13.824 3.072-20.992-55.808 16.384-113.664 44.032-170.496 92.16-72.704 61.44-114.176 132.096-139.264 201.728 4.608 8.704 3.072 18.432-8.192 25.6-3.072 12.288-7.168 24.064-8.704 36.352 1.024 1.536 3.072 0.512 2.048 2.56-1.024 0-1.536-1.536-2.048-1.536C46.08 442.368 43.52 469.504 43.008 496.64c-0.512 13.312-0.512 27.136 0.512 40.96 0.512 13.312 1.024 28.16 4.608 40.448 2.048-3.072 2.048-6.656 5.12-9.728 3.072 3.584 0.512 7.168-0.512 10.752l-0.512 8.704c0 2.048-3.072 1.024-3.072 2.56 1.536 9.728 3.584 19.456 6.144 29.184 5.632-1.536 11.264-2.56 16.896-8.192 0.512 3.584-3.072 4.608-3.584 7.168 1.024-1.024 2.56-3.584 4.096-2.56-0.512 3.584-1.024 7.68 1.536 10.752-1.024 3.072-5.12 3.584-7.168 6.656 0 3.072-1.536 5.632-5.12 8.192 15.872 57.856 46.592 119.296 96.768 178.176 7.68 8.192 17.408 18.432 25.6 27.136 4.608 3.584 8.192 8.192 12.8 11.776 2.048 2.56 4.608 4.096 6.656 6.144 1.024 1.024 2.048 2.048 3.072 2.56 0.512 0 1.024 1.536 1.536 1.024 0.512 1.024 1.536 2.048 1.024 0.512-1.024-0.512 2.048-1.536 2.56-2.048 1.536-5.632 1.024-12.288 4.608-16.896-32.256-27.136-65.024-66.56-88.576-103.936zM363.008 66.56c1.024 1.024-0.512 1.536 0 2.56-0.512 1.024-1.024-0.512-1.536-1.024l1.536-1.536z m-3.584 2.56c1.024 1.024 0 2.56 0.512 3.584-0.512 0.512-1.536-1.024-2.048-2.048l1.536-1.536zM65.024 610.816c-0.512-0.512-1.024-0.512-1.536-1.024 1.024-1.024 2.56-2.048 4.096-2.56 1.024 1.536-2.048 2.048-2.56 3.584z m135.68 243.2c-1.024 1.024-2.048 1.024-1.536 2.048-5.12-4.608-10.24-12.288-15.36-17.92 1.024-2.048 2.048 0 3.072-0.512 1.024 6.656 10.24 13.312 13.824 16.384z m404.992-781.824c1.536-0.512 3.072 0 4.096 1.024 3.072-0.512 5.632 1.536 8.192 1.536 6.144 1.536 11.776 3.072 17.408 4.608 11.264 3.584 22.528 6.656 33.792 11.264 22.528 8.192 44.544 18.944 66.56 31.232 43.008 25.088 88.576 61.44 126.976 110.08C931.84 319.488 955.392 408.064 961.024 491.52c6.656 1.536 12.288 6.656 18.944 8.704 1.536-12.8-1.024-26.624-2.048-38.912 0 2.56-1.536 4.608-4.608 3.072l4.608-3.584c-1.024-4.608 0.512-13.312-3.584-14.336 1.536-1.024 2.048-1.536 2.048-2.56-8.704-54.784-26.624-112.64-60.928-170.496-34.304-58.368-89.6-116.224-139.776-148.992-17.408-12.288-34.304-22.016-51.712-31.232-8.704-4.608-17.408-8.704-26.112-12.288-4.608-2.048-8.704-4.096-13.312-5.632-4.096-1.024-9.728-4.608-12.8-3.584-1.536-2.048-3.072-2.048-4.608-2.56-1.536-1.024-2.56 1.024-4.096 1.024-0.512-1.536 1.024-2.048-0.512-3.072-12.8-4.096-26.112-9.216-39.936-11.264 2.048 0.512-0.512 1.536-2.048 2.56-1.536 1.536-2.56-0.512-4.096 1.024-2.048 4.096-9.216 5.632-11.776 10.24-0.512 0.512 0 2.048-1.024 1.536-2.56 0.512 1.024 0 2.048 1.024z m367.616 386.56c1.024 1.536 1.024 2.56 0 3.584-1.536 0.512-2.56 0-3.584 0 0-1.024 2.56-2.56 3.584-3.584z m-4.096-2.048c0 1.024 0.512 2.048 0 3.072-1.536 1.024-2.56 1.024-3.584 0.512 0-1.536 2.56-2.048 3.584-3.584z m-4.096-3.072c0.512 1.024 0.512 2.56 0 3.072-1.536 1.024-2.56 0-3.072 0-0.512-1.024 2.048-1.536 3.072-3.072z m-303.616-383.488l1.024 1.024c-0.512 1.024-1.024 0-2.048 0.512 0-1.024 0.512-1.536 1.024-1.536z m270.848 611.328c2.048-1.536 3.072 1.536 6.144 1.024-1.536-2.56-4.096-4.096-5.12-7.168l-0.512 0.512c-10.752 30.72-28.672 61.44-46.592 92.672-27.136 37.376-59.392 74.24-102.4 107.008-10.752 7.168-20.992 14.848-30.72 20.992-1.536 1.024 0.512 2.048-0.512 2.56-0.512-0.512-1.024-1.536-1.536-0.512 1.536 0.512 1.536 3.584 2.048 5.12-1.024-0.512-2.56-3.072-4.096-4.608-40.96 25.6-80.896 40.448-120.32 51.712-0.512 2.56-4.096 5.632-1.536 8.704 2.56-2.048 7.168-12.8 12.288-10.24-1.024 7.68-11.264 12.8-11.776 20.48 5.12-1.024 10.752-2.048 16.384-4.608 1.536-2.048 4.096-6.656 7.68-6.144 2.048 0.512 0.512 3.072 2.048 4.096 46.592-14.336 95.232-37.376 142.848-73.216 36.864-28.16 68.608-60.928 91.648-92.16-1.536-1.536-4.096-1.024-6.144-3.584-0.512-3.584 2.048-7.68 1.024-11.264l3.072-2.56c1.024 2.56 4.608 5.12 6.144 3.072 1.024-3.584-0.512-7.68 1.024-10.752 4.096 0.512 8.192-2.56 12.288-3.584 1.024-5.12 0-9.728 1.536-14.848-0.512-3.584-1.536-6.656 0-9.728 5.632 1.024 3.072 9.216 5.632 13.824 12.8-20.48 22.528-40.96 31.232-61.44-3.584-3.584-12.8-8.192-11.776-15.36z m-183.296 231.936c-1.024-1.024-0.512-1.536-1.024-2.56 1.024 0 2.048 0.512 3.072 0 0.512 1.536-1.536 2.048-2.048 2.56z m-0.512-6.656c1.024-0.512 2.048 0 3.072 0 0.512 1.536 0.512 3.584 1.024 4.096-2.048 1.024-3.072-3.072-4.096-4.096z m-1.024-5.12c1.024-0.512 2.56 0 3.072 0 1.024 1.536 0.512 3.584 1.536 4.608-1.536 0-3.072-3.072-4.608-4.608z m137.216-123.904c-1.024 0.512-1.536 0-2.048-1.024 1.536-1.024 2.56-1.536 3.584-2.56-0.512 1.536-1.536 2.56-1.536 3.584z m-407.552-142.336l18.432 4.096","p-id":"23730",fill:"#cdcdcd"}}),r("path",{attrs:{d:"M393.216 575.488l-108.032 61.44 27.648 48.128c3.584 6.656 8.704 8.192 15.36 4.096l88.064-49.664c3.072-1.536 5.12-4.096 6.656-7.68 1.024-4.096-3.072-15.872-12.288-34.816l19.456-4.096c10.24 23.04 14.848 37.888 13.824 44.032-2.048 6.144-6.656 11.776-13.312 15.872l-97.28 55.296c-14.336 8.192-26.112 4.608-34.816-10.24L245.76 606.72l16.896-9.728 13.312 24.064 91.136-51.712-23.552-41.472L227.328 593.92l-9.216-15.872 133.12-75.264 41.984 72.704zM439.808 531.456c-1.536 8.192-3.584 16.896-6.144 26.624l-15.872-14.848c6.656-29.696 7.168-60.416 0.512-91.648l19.968-1.536c3.072 15.872 4.608 31.744 4.096 47.616l66.56 117.76-16.896 9.728-52.224-93.696z m43.52-62.976c1.536 20.992 0.512 40.96-2.56 58.88l-19.968-7.68c5.12-25.088 4.096-55.808-2.56-91.136l18.944-5.632c1.536 7.68 3.072 15.872 4.096 25.6l72.192-40.96 9.216 16.384-56.32 31.744 14.336 25.088 49.152-28.16 9.216 15.872-49.152 28.16 14.848 25.6 49.664-28.16 9.216 15.872-49.664 28.16 22.528 39.424-16.896 9.728-70.144-122.368-6.144 3.584zM646.144 322.56c4.608 3.072 9.728 7.168 14.848 11.264l61.44-34.816 9.216 15.872-128 72.704 21.504 38.4c21.504 39.424 32.768 73.728 34.304 102.912l-19.456-4.096c-1.536-25.088-11.776-54.784-31.232-89.6l-30.72-54.272 65.024-36.864c-5.12-3.584-9.728-6.656-13.824-8.704l16.896-12.8zM640 433.152l-10.752-47.104 16.896-6.656 5.632 27.648 18.432-10.752c-3.072-10.752-6.144-22.016-10.752-33.28l16.896-7.168c4.096 10.24 7.168 20.48 9.728 30.72l63.488-35.84 8.192 14.848-67.584 38.912c0.512 2.56 1.536 7.68 2.56 14.848l58.88-33.28 7.68 13.312c2.048 12.8 0 26.624-6.144 41.984 12.8-0.512 28.16-3.072 45.056-6.656v17.408c-20.992 3.584-38.4 5.632-53.248 5.12-7.68 13.312-18.432 27.136-31.744 42.496l-14.848-9.216c11.264-12.8 20.48-24.064 27.648-34.816-12.288-2.048-23.04-5.12-31.232-9.728 0.512 25.6-3.584 48.64-12.8 69.632l-15.872-9.728c10.752-27.648 13.312-58.368 7.68-91.648l-33.792 18.944z m57.856-93.184c11.264 1.024 21.504 2.56 30.72 5.12l-5.12 16.896c-8.192-2.56-18.432-4.608-30.72-6.144l5.12-15.872z m3.584 92.672c9.216 4.608 19.968 7.168 32.768 8.192 5.632-11.264 8.704-22.016 8.704-31.744l-41.472 23.552z","p-id":"23731",fill:"#cdcdcd"}})])]):e._e(),e.isActive?r("div",{staticClass:"cur-process-history-icon"},[r("svg",{attrs:{viewBox:"0 0 200 200",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[r("title",[e._v("\u91CD\u65B0\u6FC0\u6D3B")]),r("g",{attrs:{id:"\u91CD\u65B0\u6FC0\u6D3B",stroke:"none",fill:"none","fill-rule":"evenodd","stroke-width":"1"}},[r("g",{attrs:{id:"\u7F16\u7EC4",fill:"#0088FF"}},[r("path",{attrs:{d:"M129.7,31.7 C129.2,32.9 129.6,34.7 129.1,36.1 C127.8,37.1 126.6,38.2 125.6,39.3 C127.1,39.6 128.7,39.9 130.2,40.6 C131,41.8 131.5,43 132.2,44.2 C133.4,43.1 134.4,41.9 135.4,40.7 C137.1,40.3 138.7,40.2 140.4,39.7 C139.2,38.5 138.8,37.7 137.8,36.4 C138.1,34.9 138.7,33.5 138.6,32.1 C137,32.7 135.5,33.1 133.9,33.6 C132.4,32.7 131.1,32.4 129.7,31.7 L129.7,31.7 Z M173.4,107.2 C174.8,106.2 176,105.3 177.1,104.2 C175.6,103.8 174.1,103.4 172.6,102.7 C171.9,101.5 171.5,100.3 170.8,99.1 C169.6,100.1 168.5,101.3 167.5,102.4 C165.8,102.7 164.2,102.6 162.4,103.1 C163.5,104.4 163.9,105.2 164.8,106.6 C164.4,108.1 163.7,109.5 163.7,110.9 C165.3,110.4 166.9,110.1 168.5,109.7 C169.8,110.5 171.3,111 172.6,111.7 C173.2,110.4 172.8,108.6 173.4,107.2 L173.4,107.2 Z M114.3,16.8 C121.6,18.2 128.9,20.4 136.1,23.9 C136.3,23.7 136.7,23.9 136.9,23.6 C136.5,23.4 136.1,23.7 135.7,23.4 C136.2,22.6 136.8,22.7 137.4,22.5 C137.1,21.4 136,22.4 135.5,22.5 C135.4,22.8 135.4,23 135.3,23.2 C135,23 134.7,23.2 134.4,22.8 C134.6,22.1 135.4,22.3 135.8,21.9 C135.6,21.8 135.9,21.6 135.8,21.5 C128.8,18.4 121.7,16 114.7,14.8 C114.5,15.2 114.8,15.7 115.1,16.1 C115.3,16.2 115.7,15.9 115.6,16.1 C115.4,16.2 115.8,16.4 115.6,16.5 C115.1,16.4 114.7,16.7 114.3,16.8 Z M64.4,163.2 C65.7,164 67.2,164.5 68.5,165.2 C69.1,164 68.8,162.2 69.3,160.8 C70.7,159.8 71.9,158.9 73,157.8 C71.5,157.4 70,157 68.5,156.3 C67.8,155.1 67.4,153.9 66.7,152.7 C65.5,153.7 64.4,154.9 63.4,156 C61.7,156.3 60.1,156.2 58.3,156.7 C59.4,158 59.8,158.8 60.7,160.2 C60.3,161.7 59.6,163.1 59.6,164.5 C61.2,163.9 62.8,163.6 64.4,163.2 L64.4,163.2 Z M98.4,172.6 C99.7,173.4 101.2,173.9 102.5,174.6 C103.1,173.4 102.8,171.6 103.3,170.2 C104.7,169.2 105.9,168.3 107,167.2 C105.5,166.8 104,166.4 102.5,165.7 C101.8,164.5 101.4,163.3 100.7,162.1 C99.5,163.1 98.4,164.3 97.4,165.4 C95.7,165.7 94.1,165.6 92.3,166.1 C93.3,167.4 93.7,168.1 94.7,169.6 C94.3,171.1 93.6,172.5 93.6,173.9 C95.3,173.3 96.8,173.1 98.4,172.6 L98.4,172.6 Z M16.1,94.9 C15.5,94.8 14.9,94.3 14.1,94.5 C13.5,102.1 14.1,110.5 16.1,118.6 C16.5,118.1 16.8,117.4 17.5,117.4 C17.5,117.1 17.6,116.9 17.8,116.6 C16.3,109.3 15.9,102.1 16.1,94.9 L16.1,94.9 Z M135.9,162 C137.2,162.8 138.7,163.3 140,164 C140.6,162.8 140.3,161 140.8,159.6 C142.2,158.6 143.4,157.7 144.5,156.6 C143,156.2 141.5,155.8 140,155.1 C139.3,153.9 138.9,152.7 138.2,151.5 C137,152.5 135.9,153.7 134.9,154.8 C133.2,155.1 131.6,155 129.8,155.5 C130.8,156.7 131.2,157.5 132.2,159 C131.8,160.5 131.1,161.9 131.1,163.3 C132.7,162.7 134.3,162.4 135.9,162 L135.9,162 Z M85.9,15.7 C86.2,15.9 86.7,15.4 86.6,15.8 C86.8,16.1 86.3,16.3 86.5,16.6 C94.2,15.8 102,15.5 109.6,16.4 C110.3,15.8 111.1,15.2 111.7,14.6 C109.9,14.1 107.5,14 105.4,13.7 C103.3,13.5 101.1,13.5 99,13.5 C94.7,13.6 90.3,13.8 85.9,14.6 C85.9,14.6 85.8,14.5 85.8,14.6 C86.1,14.9 85.6,15.3 85.9,15.7 L85.9,15.7 Z M22,68.6 C24.9,61.1 28.9,53.8 34.6,46.8 C40.2,39.8 48,32.8 56,28 C64.1,23.1 72,20 79.9,18.1 C80.4,17.3 81.1,16.4 81.4,15.5 C80.1,15.9 78.6,15.9 77.5,16.7 C76.1,16.5 74.6,17.4 73.2,17.7 C71.7,18.1 70.3,18.6 68.8,19.2 C65.9,20.3 62.9,21.6 60,23.2 C54,26.4 48.1,30.2 42.3,35.5 C24.8,51.4 17.6,69.2 14.7,86.9 C14.6,87.2 14.9,87.3 14.9,87.4 C14.5,87.8 14.6,88.3 14.5,88.7 C14.8,89 15.4,89.3 15.5,89.6 C15.3,89.9 14.9,90.3 14.7,90.4 C14.3,90.2 14.9,89.9 14.6,89.7 C14.3,90.2 14.3,91.1 14.3,91.8 C14.3,92.4 13.9,93.4 14.4,93.7 C15.3,93.5 14.4,92.7 14.4,92.2 C15.2,91.9 15.6,91.4 16.3,91.1 C17,89.2 16.8,87.3 17.3,85.4 C17.5,83.5 18,81.7 18.4,79.7 C19.4,76.1 20.4,72.3 22,68.6 Z M15.8,89.8 C16,89.8 16.3,90 16.3,90.2 C16,90.5 15.9,90.2 15.8,89.8 Z M155.6,37.4 C161.3,42.3 167.3,49.7 171.3,56.2 C179.5,69.5 182.7,82.4 183.7,95.1 C184.3,95.1 185,95.6 185.8,96.1 C186.2,95.6 185.8,94.4 185.9,93.7 C185.8,92.9 185.8,92 185.6,91.2 C185.5,89.5 185.3,87.8 185,86.2 C184.5,82.8 183.7,79.4 182.7,76 C180.6,69.3 177.9,62.3 173.5,55.4 C169.5,48.7 163,40.8 157,35.6 C150.9,30.1 144.7,26.1 138.4,22.9 C138.4,22.9 138.3,22.8 138.3,22.9 C138.5,23.7 138.1,24.5 138.1,25.3 C144,28.2 149.9,32.1 155.6,37.4 Z M160.4,137.6 C161.7,138.4 163.2,138.9 164.5,139.6 C165.1,138.4 164.8,136.6 165.3,135.2 C166.7,134.2 167.9,133.3 169,132.2 C167.5,131.8 166,131.4 164.5,130.7 C163.8,129.5 163.4,128.3 162.7,127.1 C161.5,128.1 160.4,129.3 159.4,130.4 C157.7,130.7 156.1,130.6 154.3,131.1 C155.3,132.4 155.7,133.2 156.7,134.6 C156.3,136.1 155.6,137.5 155.6,138.9 C157.2,138.3 158.8,138 160.4,137.6 L160.4,137.6 Z M137.1,24.7 C137.1,24.6 136.9,24.1 136.7,24.2 C136.8,24.2 136.7,24.3 136.6,24.5 C136.7,24.5 136.9,24.6 137.1,24.7 Z M81.6,13.4 C81.5,13.4 81.3,13 81.1,12.9 C80.9,12.1 81.9,11.4 81.3,10.5 C81.1,10.4 80.9,10.5 80.7,10.5 C80.8,11.6 80.2,12.8 80.1,13.9 C80.6,13.7 81.3,13.8 81.6,13.4 Z M84.1,17.2 C83.8,16.4 84.6,15.7 84.4,14.9 C83.7,15 83,15 82.4,15.5 C82.4,16 82.3,16.5 82.1,17 C81.7,17.2 81.6,17.5 81.7,17.8 C82.6,17.5 83.3,17.4 84.1,17.2 L84.1,17.2 Z M78.1,11.5 C78.6,11.4 78.8,11.6 79.1,11.9 C79.8,11.5 79.6,10.6 79.8,10.1 C78.6,10.4 77.4,10.6 76,11.1 C75.6,12.5 74.8,13.8 74.9,15.3 C75.7,15 76.5,14.9 77.3,14.5 C77.6,13.6 77.7,12.5 78.1,11.5 Z M83.7,13.1 C83.6,12.9 83.4,12.4 83.1,12.5 C83.1,12.8 82.8,13 82.9,13.4 C83.2,13.2 83.4,13.4 83.7,13.1 Z M105.3,24.2 C103.7,24.8 102.2,25.2 100.6,25.7 C99.2,25 97.8,24.6 96.4,23.9 C95.9,25.1 96.3,26.9 95.8,28.3 C94.5,29.3 93.3,30.4 92.3,31.5 C93.8,31.8 95.4,32.1 96.9,32.8 C97.7,34 98.2,35.2 98.9,36.4 C100.1,35.3 101.1,34.1 102.1,32.9 C103.8,32.5 105.4,32.4 107.1,31.9 C105.9,30.7 105.5,29.8 104.5,28.6 C104.7,27.1 105.3,25.6 105.3,24.2 L105.3,24.2 Z M113.9,12.8 C115.1,11.9 116.3,10.8 117.1,9.8 C113.8,8.9 110.4,8.7 107.1,8.4 C106.8,8.5 106.5,8.7 106.2,8.8 C105.9,8.6 106.2,8.5 106,8.3 C100,7.8 93.8,7.9 87.7,8.8 C87.6,9.3 86.8,9.8 86.6,10.4 C86.6,10.7 87.2,11 87,11.3 C86.5,11.9 86.1,11.3 85.6,11.8 C85.3,12.2 85.4,12.6 85.1,13 C94.8,11.5 104.4,11.5 113.9,12.8 Z M183.9,97.2 C184.4,97.3 185,98 185.5,97.9 C185.6,97.5 185.9,97.4 185.9,97.1 C185.2,96.9 184.5,96.2 183.8,95.8 C183.9,96.3 183.7,96.8 183.9,97.2 Z M92.3,153.1 C92.4,152.8 92.8,152.5 93.1,152.5 C93.1,151.9 93,151.6 92.7,151.2 C86.3,150.1 80,147.9 73.8,144.4 C73.5,145 73.1,145.6 73.2,146.3 C79.4,150 85.8,152.1 92.3,153.1 L92.3,153.1 Z M31.4,103.7 C32.6,102.6 33.6,101.4 34.6,100.2 C36.3,99.8 37.9,99.7 39.6,99.2 C38.4,98 38,97.2 37,95.9 C37.3,94.4 37.9,93 37.8,91.6 C36.2,92.2 34.7,92.6 33.1,93.1 C31.7,92.4 30.3,92 28.9,91.3 C28.4,92.5 28.8,94.3 28.3,95.7 C27,96.7 25.8,97.8 24.8,98.9 C26.3,99.2 27.9,99.5 29.4,100.2 C30.2,101.3 30.8,102.5 31.4,103.7 L31.4,103.7 Z M130.1,144.9 C129.5,144.9 128.8,144.2 128.5,143.6 C125.6,145.5 122.9,146.7 120,148.1 C120.1,148.2 120,148.2 120.1,148.3 C120.1,149 119.5,149.6 119.4,150.4 C122.9,149 126.7,147.4 130.1,144.9 Z M47.6,67.8 C46.5,66.6 46,65.7 45,64.5 C45.3,63 45.9,61.6 45.8,60.2 C44.2,60.8 42.7,61.2 41.1,61.7 C39.7,61 38.3,60.6 36.9,59.9 C36.4,61.1 36.8,62.9 36.3,64.3 C35,65.3 33.8,66.4 32.8,67.5 C34.3,67.8 35.9,68.1 37.4,68.8 C38.2,70 38.7,71.2 39.4,72.4 C40.6,71.3 41.6,70.1 42.6,68.9 C44.3,68.4 45.9,68.3 47.6,67.8 L47.6,67.8 Z M116.3,149.3 C109.1,151.7 101.9,152.1 94.9,151.5 C95,152.1 95.1,152.7 95.5,153.4 C102.3,154.3 109.2,153.6 116.3,151.4 C116.5,150.7 116.6,150 116.3,149.3 Z M71.5,145.3 C71.8,144.7 72,143.9 72.1,143.3 C70.9,142.5 69.6,141.6 68.4,140.6 C67.7,140.4 66.8,141.2 67.1,142 C68.5,143.5 70,144.3 71.5,145.3 Z M191.2,110.8 C191.4,107.9 191.7,105 191.7,102 C191.4,101.5 191.4,101.1 191.3,100.7 C190.2,99.5 189,99.2 187.8,98.9 C188.1,109.8 186.1,120.4 182.7,131.1 C183.8,131.5 184.8,132.1 186,132.6 C188.5,125.8 190.2,119.1 190.9,112.2 C191.2,111.9 190.6,111.9 190.8,111.6 C190.8,111.2 191.1,111.2 191.2,110.8 Z M119.2,186.2 C92.6,191.3 66.9,186.5 42.6,166.5 C42.8,168.1 42.3,169.7 42.6,171.5 C46.8,174.9 51,177.7 55.4,180.2 C59.8,182.5 64.1,184.8 68.6,186.1 C69.2,186.1 69.5,185.1 70,185.1 C70.6,185.7 71.4,186.4 71.2,187.2 C73.3,187.9 75.3,188.4 77.3,189 C78.3,189.2 79.3,189.5 80.3,189.7 C81.4,189.9 82.4,190.4 83.4,190.1 C83.6,189.7 83.1,189.5 83.1,189.1 C83.7,188.4 84.4,187.6 85.1,187.8 C85.2,188.2 85.4,188.7 85.3,189 C84.5,189.3 84.2,190 83.7,190.4 C87,191 90.4,191.5 93.7,191.7 C93.6,191.1 94.5,190.7 94.8,190.2 C96.1,190.6 97.4,190.5 98.6,191 C98.5,191.3 98.5,191.6 98.4,191.9 C101.1,192.2 103.7,191.9 106.4,191.8 C106.6,191.4 106.7,191.5 107,191.5 C107.1,191 106.7,190.3 107,189.7 C107.7,189.6 108.5,189.7 108.9,190.3 C108.5,190.8 108.9,191.1 108.9,191.7 C112,191.5 115.1,191 118.2,190.3 C117.9,189.5 118.4,188.7 118.2,188 C118.5,187.9 118.7,188 119,187.7 C119.5,187.2 119,186.7 119.2,186.2 L119.2,186.2 Z M147.6,122.2 C147.6,122.2 147.6,122.1 147.6,122.2 L147.4,122.4 C146.4,124.8 144.5,127.3 143.5,129.5 C143.4,129.9 143,129.7 142.9,130 C140.1,133.9 136.5,137.7 132,141.2 C132.3,141.5 132.5,141.7 132.6,142 C132.8,142.3 132.6,143 132.8,143 C140.4,137.3 145.6,130.3 148.8,123.8 C148.6,123.3 148.1,122.4 147.6,122.2 Z M51.7,79.9 C53.2,75.8 55.5,71.9 58.5,67.9 C58.3,67.1 58.6,66.4 58.4,65.7 C58.1,65.8 57.9,65.7 57.6,65.8 C54,70.4 51.4,75.1 49.5,79.8 C49.8,80 49.8,80.3 49.9,80.5 C49.6,82.7 48.8,85 48,87.2 C47.8,87.4 47.3,87.6 47.4,88.1 C47.3,88.3 47.2,87.8 47.1,88.1 C46.3,91 46,93.9 45.8,96.9 L45.8,101.3 C46,102.9 45.7,104.3 46.3,105.9 C46.8,106.3 47.4,106.3 48,105.7 C48.2,104.2 47.8,102.6 47.8,101.2 C45.6,100.5 45.6,97.2 47.9,96.8 C47.9,95.9 48.3,94.9 48,94.1 C48.4,93.4 48.3,92 48.7,91 C48.9,89.9 49,88.7 49.4,87.6 C49.8,85.4 50.5,83.1 51.4,81 C51.5,80.8 51.4,80.5 51.4,80.4 C51.5,80.2 51.6,80.1 51.7,79.9 L51.7,79.9 Z M63.7,46.7 C64.9,45.6 65.9,44.4 66.9,43.2 C68.6,42.8 70.2,42.7 71.9,42.2 C70.7,41 70.3,40.1 69.3,38.9 C69.6,37.4 70.2,36 70.1,34.6 C68.5,35.2 67,35.6 65.4,36.1 C64,35.4 62.6,35 61.2,34.3 C60.7,35.5 61.1,37.3 60.6,38.7 C59.3,39.7 58.1,40.8 57.1,41.9 C58.6,42.2 60.2,42.5 61.7,43.2 C62.5,44.3 63.1,45.6 63.7,46.7 L63.7,46.7 Z M103.1,47.5 C108.6,47.8 114,49.2 119.3,51.1 C119.8,50.9 120.4,50.3 120.9,49.8 C115.1,47.4 109.3,45.9 103.3,45.6 C103,46 103.1,46.8 103.1,47.5 Z M69.5,55.3 C68.8,55.5 68,55.6 67.7,56.4 C68.2,56.5 67.4,57.8 66.9,57.3 C67.1,57 67.6,56.8 67.7,56.5 C66.9,56.3 65.8,57.7 65.3,58.3 C65.1,58 64.8,58.3 64.6,58.4 C62.7,60.1 61.1,61.7 59.6,63.3 C60,63.8 60.3,64.6 60.6,65.2 C62.5,63.1 64.7,61.1 66.9,59.1 C67,58.9 66.4,59.1 66.5,58.9 C66.7,58.6 67.1,58.5 67.2,58.2 C67.3,58.1 66.6,58.3 66.7,58.1 C67.1,57.9 67.4,57.3 67.7,57.4 C67.2,58 67.5,58.1 67.4,58.8 C77.7,50.9 87.4,48.2 97.1,47.6 C97.9,47 98.1,46.3 98,45.5 C88.8,46 79.6,48.2 70,54.5 C69.8,54.7 69.9,55 69.5,55.3 L69.5,55.3 Z M154.2,107.7 C154.5,105.3 154.8,102.9 154.8,100.5 C154.9,99.3 154.9,98.1 154.8,96.9 C154.6,95.6 155.1,94.4 154.1,93.2 C153.6,93.1 153.3,93 152.8,93.4 C152.7,93.5 152.7,93.6 152.6,93.7 C152.5,96 152.9,98.3 152.8,100.6 C152.7,102.9 152.5,105.2 152.2,107.5 C151.5,112.1 150.1,116.5 148.3,121 C148.9,121 149.5,121.4 150,121.8 C152,117.2 153.3,112.5 154.2,107.7 L154.2,107.7 Z M71.7,39.5 C71.8,39.3 71.5,39 71.5,39 C71.5,39.1 71.5,39.1 71.4,39.2 C71.5,39.3 71.6,39.6 71.7,39.5 Z M130.2,57.3 C130.6,57.2 130.8,57.3 131.1,57 C131.3,56.6 131.4,56.2 131.3,55.8 C129.3,54.1 127.3,52.8 125.1,51.9 C125.2,52.6 125,53.3 125,54 C126.8,55 128.5,56.2 130.2,57.3 Z M122.7,182.7 C122.9,183 122.4,183.7 122.6,183.5 C130.5,181.6 138.4,178.2 146.4,173.1 C146.2,172.8 145.8,172.5 146,172.3 C146.2,172.2 146.4,172.4 146.6,172.3 C146.4,172 146,171.6 145.9,171.3 C146.1,171.1 146.6,171.5 146.5,171.2 C146.3,171.1 146.2,170.9 146.1,170.7 C137.5,176.1 129,179.5 120.7,181.7 C120.3,182.2 120,182.7 119.5,183.2 C119.2,182.9 119.4,182.5 119,182.3 C117.3,182.1 115.4,182.9 113.6,183 C111.7,183.2 109.9,183.5 108.1,183.6 C104.5,183.9 101,184.1 97.4,183.9 C90.3,183.7 83.3,182.4 76.3,180.4 C62.4,176 48.8,168.6 35.8,153.5 C35.5,153.2 35,152.4 34.6,152.1 C33.9,152 33.4,152.8 32.8,152.7 C32.7,151.7 32.8,150.7 32.7,149.6 C25.2,139.3 21.1,129.3 18.5,119.4 C18,119.2 17.5,118.4 16.7,118.3 C16.4,118.6 16.2,118.7 16.1,118.9 C16.3,119.2 16.5,118.7 16.6,118.9 C16.3,119.2 16.4,119.3 16.4,119.6 C19.2,131 24.4,143 34.1,154.8 C47.2,170.3 61.8,178.3 76.3,182.7 C90.9,186.9 105.9,187.4 121.1,183.8 C121.2,183.4 122,182.3 122.7,182.7 L122.7,182.7 Z M181,130.1 C184.6,119.8 186.4,109.4 186,98.7 C185.7,98.8 185.1,98.9 185.5,98.5 C184.9,98.8 184.5,98.4 183.9,98.3 C184,121.4 177.1,144.7 153.6,165 C153.5,165.5 153.7,166.1 153.4,166.7 C153.2,166.7 152.9,166.9 152.7,166.9 C152.3,166.8 152.3,166.6 152.1,166.2 C151.1,167 150.1,167.7 149,168.5 C148.8,169 148.5,169.9 148,169.4 C148.1,169.3 148.4,169.2 148.3,169.1 C147.6,169.7 146.9,170.1 146.2,170.6 C146.4,171 146.3,171.3 146.6,171.6 C146.2,171.8 146.7,172.2 146.7,172.5 C146.7,172.7 146.2,172.5 146.6,172.8 C150.3,170.7 154.6,167.2 158.2,164 C169.5,153.6 176.3,142.3 180.6,130.9 C180.6,130.7 180.2,130.7 180.4,130.4 C180.7,130.1 180.8,130.4 181,130.1 L181,130.1 Z M148.2,171.3 C148.1,171.1 148.4,171 148.6,170.8 C148.6,171 148.4,171.1 148.2,171.3 Z M148.2,170.3 C148.2,170 148.8,169.8 149,169.5 C148.9,169.9 148.6,170.5 148.2,170.3 Z M172.8,146.3 C172.6,146.4 172.6,146.3 172.5,146 C172.7,145.8 172.8,145.9 173,145.8 C173.1,146 172.7,146.1 172.8,146.3 Z M172.8,143.5 C172.7,143.6 172.6,143.3 172.5,143.4 C172.3,143.2 172.8,143.1 172.9,142.8 C173.1,143.1 172.9,143.3 172.8,143.5 L172.8,143.5 Z M25,145.7 C20.7,138.4 17.5,131.2 15.6,124.1 C11.5,109.9 11.1,96.1 13.7,82.6 C16.3,69.1 21.9,55.9 32.4,43.1 C37.6,36.8 44.5,30.6 51.8,25.8 C59.1,21 66.2,17.9 73.3,15.6 C74.1,14.3 74.1,12.9 73.9,11.5 C63,14.7 51.7,20.1 40.6,29.5 C26.4,41.5 18.3,55.3 13.4,68.9 C14.3,70.6 14,72.5 11.8,73.9 C11.2,76.3 10.4,78.6 10.1,81 C10.3,81.3 10.7,81.1 10.5,81.5 C10.3,81.5 10.2,81.2 10.1,81.2 C9,86.4 8.5,91.7 8.4,97 C8.3,99.6 8.3,102.3 8.5,105 C8.6,107.6 8.7,110.5 9.4,112.9 C9.8,112.3 9.8,111.6 10.4,111 C11,111.7 10.5,112.4 10.3,113.1 L10.2,114.8 C10.2,115.2 9.6,115 9.6,115.3 C9.9,117.2 10.3,119.1 10.8,121 C11.9,120.7 13,120.5 14.1,119.4 C14.2,120.1 13.5,120.3 13.4,120.8 C13.6,120.6 13.9,120.1 14.2,120.3 C14.1,121 14,121.8 14.5,122.4 C14.3,123 13.5,123.1 13.1,123.7 C13.1,124.3 12.8,124.8 12.1,125.3 C15.2,136.6 21.2,148.6 31,160.1 C32.5,161.7 34.4,163.7 36,165.4 C36.9,166.1 37.6,167 38.5,167.7 C38.9,168.2 39.4,168.5 39.8,168.9 C40,169.1 40.2,169.3 40.4,169.4 C40.5,169.4 40.6,169.7 40.7,169.6 C40.8,169.8 41,170 40.9,169.7 C40.7,169.6 41.3,169.4 41.4,169.3 C41.7,168.2 41.6,166.9 42.3,166 C36,160.7 29.6,153 25,145.7 L25,145.7 Z M70.9,13 C71.1,13.2 70.8,13.3 70.9,13.5 C70.8,13.7 70.7,13.4 70.6,13.3 L70.9,13 Z M70.2,13.5 C70.4,13.7 70.2,14 70.3,14.2 C70.2,14.3 70,14 69.9,13.8 L70.2,13.5 Z M12.7,119.3 C12.6,119.2 12.5,119.2 12.4,119.1 C12.6,118.9 12.9,118.7 13.2,118.6 C13.4,118.9 12.8,119 12.7,119.3 Z M39.2,166.8 C39,167 38.8,167 38.9,167.2 C37.9,166.3 36.9,164.8 35.9,163.7 C36.1,163.3 36.3,163.7 36.5,163.6 C36.7,164.9 38.5,166.2 39.2,166.8 L39.2,166.8 Z M118.3,14.1 C118.6,14 118.9,14.1 119.1,14.3 C119.7,14.2 120.2,14.6 120.7,14.6 C121.9,14.9 123,15.2 124.1,15.5 C126.3,16.2 128.5,16.8 130.7,17.7 C135.1,19.3 139.4,21.4 143.7,23.8 C152.1,28.7 161,35.8 168.5,45.3 C182,62.4 186.6,79.7 187.7,96 C189,96.3 190.1,97.3 191.4,97.7 C191.7,95.2 191.2,92.5 191,90.1 C191,90.6 190.7,91 190.1,90.7 L191,90 C190.8,89.1 191.1,87.4 190.3,87.2 C190.6,87 190.7,86.9 190.7,86.7 C189,76 185.5,64.7 178.8,53.4 C172.1,42 161.3,30.7 151.5,24.3 C148.1,21.9 144.8,20 141.4,18.2 C139.7,17.3 138,16.5 136.3,15.8 C135.4,15.4 134.6,15 133.7,14.7 C132.9,14.5 131.8,13.8 131.2,14 C130.9,13.6 130.6,13.6 130.3,13.5 C130,13.3 129.8,13.7 129.5,13.7 C129.4,13.4 129.7,13.3 129.4,13.1 C126.9,12.3 124.3,11.3 121.6,10.9 C122,11 121.5,11.2 121.2,11.4 C120.9,11.7 120.7,11.3 120.4,11.6 C120,12.4 118.6,12.7 118.1,13.6 C118,13.7 118.1,14 117.9,13.9 C117.4,14 118.1,13.9 118.3,14.1 L118.3,14.1 Z M190.1,89.6 C190.3,89.9 190.3,90.1 190.1,90.3 C189.8,90.4 189.6,90.3 189.4,90.3 C189.4,90.1 189.9,89.8 190.1,89.6 Z M189.3,89.2 C189.3,89.4 189.4,89.6 189.3,89.8 C189,90 188.8,90 188.6,89.9 C188.6,89.6 189.1,89.5 189.3,89.2 Z M188.5,88.6 C188.6,88.8 188.6,89.1 188.5,89.2 C188.2,89.4 188,89.2 187.9,89.2 C187.8,89 188.3,88.9 188.5,88.6 Z M129.2,13.7 L129.4,13.9 C129.3,14.1 129.2,13.9 129,14 C129,13.8 129.1,13.7 129.2,13.7 Z M182.1,133.1 C182.5,132.8 182.7,133.4 183.3,133.3 C183,132.8 182.5,132.5 182.3,131.9 L182.2,132 C180.1,138 176.6,144 173.1,150.1 C167.8,157.4 161.5,164.6 153.1,171 C151,172.4 149,173.9 147.1,175.1 C146.8,175.3 147.2,175.5 147,175.6 C146.9,175.5 146.8,175.3 146.7,175.5 C147,175.6 147,176.2 147.1,176.5 C146.9,176.4 146.6,175.9 146.3,175.6 C138.3,180.6 130.5,183.5 122.8,185.7 C122.7,186.2 122,186.8 122.5,187.4 C123,187 123.9,184.9 124.9,185.4 C124.7,186.9 122.7,187.9 122.6,189.4 C123.6,189.2 124.7,189 125.8,188.5 C126.1,188.1 126.6,187.2 127.3,187.3 C127.7,187.4 127.4,187.9 127.7,188.1 C136.8,185.3 146.3,180.8 155.6,173.8 C162.8,168.3 169,161.9 173.5,155.8 C173.2,155.5 172.7,155.6 172.3,155.1 C172.2,154.4 172.7,153.6 172.5,152.9 L173.1,152.4 C173.3,152.9 174,153.4 174.3,153 C174.5,152.3 174.2,151.5 174.5,150.9 C175.3,151 176.1,150.4 176.9,150.2 C177.1,149.2 176.9,148.3 177.2,147.3 C177.1,146.6 176.9,146 177.2,145.4 C178.3,145.6 177.8,147.2 178.3,148.1 C180.8,144.1 182.7,140.1 184.4,136.1 C183.7,135.4 181.9,134.5 182.1,133.1 L182.1,133.1 Z M146.3,178.4 C146.1,178.2 146.2,178.1 146.1,177.9 C146.3,177.9 146.5,178 146.7,177.9 C146.8,178.2 146.4,178.3 146.3,178.4 Z M146.2,177.1 C146.4,177 146.6,177.1 146.8,177.1 C146.9,177.4 146.9,177.8 147,177.9 C146.6,178.1 146.4,177.3 146.2,177.1 Z M146,176.1 C146.2,176 146.5,176.1 146.6,176.1 C146.8,176.4 146.7,176.8 146.9,177 C146.6,177 146.3,176.4 146,176.1 Z M172.8,151.9 C172.6,152 172.5,151.9 172.4,151.7 C172.7,151.5 172.9,151.4 173.1,151.2 C173,151.5 172.8,151.7 172.8,151.9 Z M93.2,124.1 L96.8,124.9",id:"\u5F62\u72B6","fill-rule":"nonzero"}}),r("text",{attrs:{id:"\u91CD\u65B0\u6FC0\u6D3B",transform:"translate(99.1901, 99.5228) rotate(-30) translate(-99.1901, -99.5228)","font-family":"PingFangSC-Medium, PingFang SC","font-size":"39","font-weight":"400","letter-spacing":"0.4"}},[r("tspan",{attrs:{x:"20.3900543",y:"113.522759"}},[e._v("\u91CD\u65B0\u6FC0\u6D3B")])])])])])]):e._e(),a.historyActivityType=="endEvent"?r("p",[r("b",[e._v("\u6D41\u7A0B\u5DF2\u7ED3\u675F")])]):a.historyActivityType=="startEvent"?r("p",[r("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?e.my(a):"")))]),e._v(" \u5728 "),r("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u53D1\u8D77\u4E86\u6D41\u7A0B ")]):r("p",[r("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?e.my(a):"")))]),e._v(" \u5728 "),r("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),r("span",{staticClass:"flow-node"},[e._v(e._s(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),a.historyActivityDurationTime?r("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 r("p",{key:p},[p<1?[r("span",{class:["comment-type",a.class]},[e._v(e._s(e.commentMap[c.type]||c.type))]),r("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),r("span",[e._v(" "+e._s(c.fullMessage)+" ")]),a.comments.filter(function(m){return m.action==="AddComment"}).length>1?r("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),r("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),r("el-icon",[e.isFlag?r("el-icon-arrow-up"):r("el-icon-arrow-down")],1)],1):e._e(),c.time&&e.isFlag?r("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e(),p>0&&e.isFlag?[r("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[c.type]||c.type))]),r("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),r("span",[e._v(" "+e._s(c.fullMessage)+" ")]),c.time?r("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e()],2)}),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?[r("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[r("span",[e._v("\u7B7E\u5B57: ")]),r("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[r("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?[r("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[r("span",[e._v("\u9644\u4EF6: ")]),r("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[r("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&&a.historyActivityType!="startEvent"?r("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(a.endTime))]):e._e()],2)],1)]})],2)],1)},lj=[];const _X="",cj={name:"nf-flow",props:{isHistory:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Sy,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:{my(e){return e.comments[e.comments.length-1].userId||""},handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},G3={};var uj=rn(cj,sj,lj,!1,dj,"f93978e6",null,null);function dj(e){for(let n in G3)this[n]=G3[n]}const fj=function(){return uj.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 sd=Object.prototype.toString,pj=Object.prototype.hasOwnProperty;function Dy(e){return e===void 0}function Ql(e){return e!==void 0}function J3(e){return e==null}function Sr(e){return sd.call(e)==="[object Array]"}function us(e){return sd.call(e)==="[object Object]"}function to(e){return sd.call(e)==="[object Number]"}function ds(e){const n=sd.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"||n==="[object Proxy]"}function Dr(e){return sd.call(e)==="[object String]"}function Hl(e,n){return!J3(e)&&pj.call(e,n)}function Br(e,n){const r=By(n);let a;return We(e,function(s,c){if(r(s,c))return a=s,!1}),a}function hj(e,n){const r=By(n);let a=Sr(e)?-1:void 0;return We(e,function(s,c){if(r(s,c))return a=c,!1}),a}function Vl(e,n){const r=By(n);let a=[];return We(e,function(s,c){r(s,c)&&a.push(s)}),a}function We(e,n){let r,a;if(Dy(e))return;const s=Sr(e)?Aj:gj;for(let c in e)if(Hl(e,c)&&(r=e[c],a=n(r,s(c)),a===!1))return r}function Ul(e,n,r){return We(e,function(a,s){r=n(r,a,s)}),r}function K3(e,n){return!!Ul(e,function(r,a,s){return r&&n(a,s)},!0)}function X3(e,n){return!!Br(e,n)}function mj(e,n){let r=[];return We(e,function(a,s){r.push(n(a,s))}),r}function Z3(e){return function(n){return K3(e,function(r,a){return n[a]===r})}}function By(e){return ds(e)?e:n=>n===e}function gj(e){return e}function Aj(e){return Number(e)}function vj(e,n){let r,a,s,c;function p(S){let N=Date.now(),_=S?0:c+n-N;if(_>0)return m(_);e.apply(s,a),g()}function m(S){r=setTimeout(p,S)}function g(){r&&clearTimeout(r),r=c=a=s=void 0}function y(){r&&p(!0),g()}function O(...S){c=Date.now(),a=S,s=this,r||m(n)}return O.flush=y,O.cancel=g,O}function no(e,n){return e.bind(n)}function Je(e,...n){return Object.assign(e,...n)}function bj(e,n,r){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];Ql(p)&&J3(m)&&(m=a[s]=isNaN(+p)?{}:[]),Dy(p)?Dy(r)?delete a[s]:a[s]=r:a=m}),e}function _j(e,n){let r={},a=Object(e);return We(n,function(s){s in a&&(r[s]=e[s])}),r}function yj(e,n){let r={},a=Object(e);return We(a,function(s,c){n.indexOf(c)===-1&&(r[c]=s)}),r}var xj=1e3;function ba(e,n){var r=this;n=n||xj,e.on(["render.shape","render.connection"],n,function(a,s){var c=a.type,p=s.element,m=s.gfx,g=s.attrs;if(r.canRender(p))return c==="render.shape"?r.drawShape(m,p,g):r.drawConnection(m,p,g)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(a,s){if(r.canRender(s))return a.type==="render.getShapePath"?r.getShapePath(s):r.getConnectionPath(s)})}ba.prototype.canRender=function(e){},ba.prototype.drawShape=function(e,n){},ba.prototype.drawConnection=function(e,n){},ba.prototype.getShapePath=function(e){},ba.prototype.getConnectionPath=function(e){};function Ge(e,n){var r=Wt(e);return r&&typeof r.$instanceOf=="function"&&r.$instanceOf(n)}function wj(e,n){return X3(n,function(r){return Ge(e,r)})}function Wt(e){return e&&e.businessObject||e}function fs(e){return e&&e.di}function ps(e,n){return Ge(e,"bpmn:CallActivity")?!1:Ge(e,"bpmn:SubProcess")?(n=n||fs(e),n&&Ge(n,"bpmndi:BPMNPlane")?!0:n&&!!n.isExpanded):Ge(e,"bpmn:Participant")?!!Wt(e).processRef:!0}function $3(e){if(!(!Ge(e,"bpmn:Participant")&&!Ge(e,"bpmn:Lane"))){var n=fs(e).isHorizontal;return n===void 0?!0:n}}function Ej(e){return e&&!!Wt(e).triggeredByEvent}function Cj(e){return us(e)&&Hl(e,"waypoints")}var wh={width:90,height:20},q3=15;function kj(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 Sj(e){var n=e.length/2-1,r=e[Math.floor(n)],a=e[Math.ceil(n+.01)],s=Dj(e),c=Math.atan((a.y-r.y)/(a.x-r.x)),p=s.x,m=s.y;return Math.abs(c)<Math.PI/2?m-=q3:p+=q3,{x:p,y:m}}function Dj(e){var n=e.length/2-1,r=e[Math.floor(n)],a=e[Math.ceil(n+.01)];return{x:r.x+(a.x-r.x)/2,y:r.y+(a.y-r.y)/2}}function Bj(e){return e.waypoints?Sj(e.waypoints):Ge(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+wh.height/2}:{x:e.x+e.width/2,y:e.y+e.height+wh.height/2}}function Ij(e,n){var r,a,s,c=e.label;return c&&c.bounds?(s=c.bounds,a={width:Math.max(wh.width,s.width),height:s.height},r={x:s.x+s.width/2,y:s.y+s.height/2}):(r=Bj(n),a=wh),Je({x:r.x-a.width/2,y:r.y-a.height/2},a)}function Oj(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 Tj(e){var n=e.categoryValueRef;return n&&n.value||""}function Eh(e){var n=e.businessObject,r=Oj(n);if(r)return r==="categoryValueRef"?Tj(n):n[r]||""}function Nj(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}function e6(e,n){return n.appendChild(Nj(e,n))}function xn(e,n){return e6(n,e),e}var Iy=2,t6={"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":Iy,"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":Iy,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Mj(e,n){return t6[n]?e.style[n]:e.getAttributeNS(null,n)}function n6(e,n,r){var a=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=t6[a];s?(s===Iy&&typeof r=="number"&&(r=String(r)+"px"),e.style[a]=r):e.setAttributeNS(null,n,r)}function Fj(e,n){var r=Object.keys(n),a,s;for(a=0,s;s=r[a];a++)n6(e,s,n[s])}function jt(e,n,r){if(typeof n=="string")if(r!==void 0)n6(e,n,r);else return Mj(e,n);else Fj(e,n);return e}const Pj=Object.prototype.toString;function Jr(e){return new io(e)}function io(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}io.prototype.add=function(e){return this.list.add(e),this},io.prototype.remove=function(e){return Pj.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},io.prototype.removeMatching=function(e){const n=this.array();for(let r=0;r<n.length;r++)e.test(n[r])&&this.remove(n[r]);return this},io.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},io.prototype.array=function(){return Array.from(this.list)},io.prototype.has=io.prototype.contains=function(e){return this.list.contains(e)};function Rj(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}var Oy={svg:"http://www.w3.org/2000/svg"},i6='<svg xmlns="'+Oy.svg+'"';function r6(e){var n=!1;e.substring(0,4)==="<svg"?e.indexOf(Oy.svg)===-1&&(e=i6+e.substring(4)):(e=i6+">"+e+"</svg>",n=!0);var r=jj(e);if(!n)return r;for(var a=document.createDocumentFragment(),s=r.firstChild;s.firstChild;)a.appendChild(s.firstChild);return a}function jj(e){var n;return n=new DOMParser,n.async=!1,n.parseFromString(e,"text/xml")}function Lt(e,n){var r;return e=e.trim(),e.charAt(0)==="<"?(r=r6(e).firstChild,r=document.importNode(r,!0)):r=document.createElementNS(Oy.svg,e),n&&jt(r,n),r}var Ty=null;function Ny(){return Ty===null&&(Ty=Lt("svg")),Ty}function a6(e,n){var r,a,s=Object.keys(n);for(r=0;a=s[r];r++)e[a]=n[a];return e}function Lj(e,n,r,a,s,c){var p=Ny().createSVGMatrix();switch(arguments.length){case 0:return p;case 1:return a6(p,e);case 6:return a6(p,{a:e,b:n,c:r,d:a,e:s,f:c})}}function ld(e){return e?Ny().createSVGTransformFromMatrix(e):Ny().createSVGTransform()}var o6=/([&<>]{1})/g,zj=/([&<>\n\r"]{1})/g,Qj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function My(e,n){function r(a,s){return Qj[s]||s}return e.replace(n,r)}function s6(e,n){var r,a,s,c,p;switch(e.nodeType){case 3:n.push(My(e.textContent,o6));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(s=e.attributes,r=0,a=s.length;r<a;++r)c=s.item(r),n.push(" ",c.name,'="',My(c.value,zj),'"');if(e.hasChildNodes()){for(n.push(">"),p=e.childNodes,r=0,a=p.length;r<a;++r)s6(p.item(r),n);n.push("</",e.tagName,">")}else n.push("/>");break;case 8:n.push("<!--",My(e.nodeValue,o6),"-->");break;case 4:n.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function Hj(e,n){var r=r6(n);if(Rj(e),!!n){Uj(r)||(r=r.documentElement);for(var a=Yj(r.childNodes),s=0;s<a.length;s++)e6(a[s],e)}}function Vj(e){for(var n=e.firstChild,r=[];n;)s6(n,r),n=n.nextSibling;return r.join("")}function Uj(e){return e.nodeName==="#document-fragment"}function l6(e,n){if(n!==void 0){try{Hj(e,n)}catch(r){throw new Error("error parsing SVG: "+r.message)}return e}else return Vj(e)}function Yj(e){return Array.prototype.slice.call(e)}function cd(e){var n=e.parentNode;return n&&n.removeChild(e),e}function Wj(e,n){return n instanceof SVGMatrix?e.createSVGTransformFromMatrix(n):n}function Gj(e,n){var r,a;for(e.clear(),r=0;a=n[r];r++)e.appendItem(Wj(e,a))}function ud(e,n){var r=e.transform.baseVal;return n&&(Array.isArray(n)||(n=[n]),Gj(r,n)),r.consolidate()}function hs(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function Jj(e){return["M",e.x,e.y]}function Fy(e){return["L",e.x,e.y]}function Kj(e,n,r){return["C",e.x,e.y,n.x,n.y,r.x,r.y]}function Xj(e,n){const r=e.length,a=[Jj(e[0])];for(let s=1;s<r;s++){const c=e[s-1],p=e[s],m=e[s+1];if(!m||!n){a.push(Fy(p));continue}const g=Math.min(n,Py(p.x-c.x,p.y-c.y),Py(m.x-p.x,m.y-p.y));if(!g){a.push(Fy(p));continue}const y=Ch(p,c,g),O=Ch(p,c,g*.5),S=Ch(p,m,g),N=Ch(p,m,g*.5);a.push(Fy(y)),a.push(Kj(O,N,S))}return a}function Ch(e,n,r){const a=n.x-e.x,s=n.y-e.y,c=Py(a,s),p=r/c;return{x:e.x+a*p,y:e.y+s*p}}function Py(e,n){return Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}function Ry(e,n,r){to(n)&&(r=n,n=null),n||(n={});const a=Lt("path",n);return to(r)&&(a.dataset.cornerRadius=String(r)),c6(a,e)}function c6(e,n){const r=parseInt(e.dataset.cornerRadius,10)||0;return jt(e,{d:hs(Xj(n,r))}),e}var jy="hsl(225, 10%, 15%)",Zj="white";function Kr(e,n){return X3(e.eventDefinitions,function(r){return r.$type===n})}function $j(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function qj(e){var n=e.dataObjectRef;return e.isCollection||n&&n.isCollection}function lt(e,n,r){var a=fs(e);return r||a.get("color:background-color")||a.get("bioc:fill")||n||Zj}function Qe(e,n,r){var a=fs(e);return r||a.get("color:border-color")||a.get("bioc:stroke")||n||jy}function dd(e,n,r,a){var s=fs(e),c=s.get("label");return a||c&&c.get("color:color")||n||Qe(e,r)}function eL(e){var n=e.x+e.width/2,r=e.y+e.height/2,a=e.width/2,s=[["M",n,r],["m",0,-a],["a",a,a,0,1,1,0,2*a],["a",a,a,0,1,1,0,-2*a],["z"]];return hs(s)}function tL(e,n){var r=e.x,a=e.y,s=e.width,c=e.height,p=[["M",r+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 hs(p)}function nL(e){var n=e.width,r=e.height,a=e.x,s=e.y,c=n/2,p=r/2,m=[["M",a+c,s],["l",c,p],["l",-c,p],["l",-c,-p],["z"]];return hs(m)}function iL(e){var n=e.x,r=e.y,a=e.width,s=e.height,c=[["M",n,r],["l",a,0],["l",0,s],["l",-a,0],["z"]];return hs(c)}function fd(e,n={}){return{width:rr(e,n),height:_i(e,n)}}function rr(e,n={}){return Hl(n,"width")?n.width:e.width}function _i(e,n={}){return Hl(n,"height")?n.height:e.height}function rL(e,n){return n.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(a){if(a!=="default"&&!(a in e)){var s=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:function(){return r[a]}})}})}),Object.freeze(e)}const aL=Object.prototype.toString,oL=Object.prototype.hasOwnProperty;function sL(e){return e===void 0}function lL(e){return aL.call(e)==="[object Array]"}function cL(e,n){return oL.call(e,n)}function u6(e,n){let r,a;if(sL(e))return;const s=lL(e)?dL:uL;for(let c in e)if(cL(e,c)&&(r=e[c],a=n(r,s(c)),a===!1))return r}function uL(e){return e}function dL(e){return Number(e)}function Nn(e,...n){const r=e.style;return u6(n,function(a){!a||u6(a,function(s,c){r[c]=s})}),e}function Ly(e,n,r){return arguments.length==2?e.getAttribute(n):r===null?e.removeAttribute(n):(e.setAttribute(n,r),e)}const fL=Object.prototype.toString;function ms(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 fL.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ro.prototype.removeMatching=function(e){const n=this.array();for(let r=0;r<n.length;r++)e.test(n[r])&&this.remove(n[r]);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 d6(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function f6(e,n,r){var a=r?e:e.parentNode;return a&&typeof a.closest=="function"&&a.closest(n)||null}var kh={},Sh,zy,Qy;function p6(){Sh=window.addEventListener?"addEventListener":"attachEvent",zy=window.removeEventListener?"removeEventListener":"detachEvent",Qy=Sh!=="addEventListener"?"on":""}var pL=kh.bind=function(e,n,r,a){return Sh||p6(),e[Sh](Qy+n,r,a||!1),r},hL=kh.unbind=function(e,n,r,a){return zy||p6(),e[zy](Qy+n,r,a||!1),r},gs=rL({__proto__:null,bind:pL,unbind:hL,default:kh},[kh]),h6=["focus","blur"];function mL(e,n,r,a,s){return h6.indexOf(r)!==-1&&(s=!0),gs.bind(e,r,function(c){var p=c.target||c.srcElement;c.delegateTarget=f6(p,n,!0),c.delegateTarget&&a.call(e,c)},s)}function gL(e,n,r,a){return h6.indexOf(n)!==-1&&(a=!0),gs.unbind(e,n,r,a)}var Yl={bind:mL,unbind:gL},AL=vL,m6=!1,Dh;typeof document<"u"&&(Dh=document.createElement("div"),Dh.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',m6=!Dh.getElementsByTagName("link").length,Dh=void 0);var sn={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:m6?[1,"X<div>","</div>"]:[0,"",""]};sn.td=sn.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],sn.option=sn.optgroup=[1,'<select multiple="multiple">',"</select>"],sn.thead=sn.tbody=sn.colgroup=sn.caption=sn.tfoot=[1,"<table>","</table>"],sn.polyline=sn.ellipse=sn.polygon=sn.circle=sn.text=sn.line=sn.path=sn.rect=sn.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function vL(e,n){if(typeof e!="string")throw new TypeError("String expected");n||(n=document);var r=/<([\w:]+)/.exec(e);if(!r)return n.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var a=r[1];if(a=="body"){var g=n.createElement("html");return g.innerHTML=e,g.removeChild(g.lastChild)}var s=Object.prototype.hasOwnProperty.call(sn,a)?sn[a]:sn._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 Hi=AL;function _a(e,n){return n=n||document,n.querySelector(e)}function bL(e,n){return n=n||document,n.querySelectorAll(e)}function Wl(e){e.parentNode&&e.parentNode.removeChild(e)}function Hy(e,n,r,a,s){var c=ld();c.setTranslate(n,r);var p=ld();p.setRotate(a||0,0,0);var m=ld();m.setScale(s||1,s||1),ud(e,[c,p,m])}function g6(e,n,r){var a=ld();a.setTranslate(n,r),ud(e,a)}function _L(e,n){var r=ld();r.setRotate(n,0,0),ud(e,r)}function yL(e,n){return n={exports:{}},e(n,n.exports),n.exports}var xL=yL(function(e){var n=e.exports=function(r,a){if(a||(a=16),r===void 0&&(r=128),r<=0)return"0";for(var s=Math.log(Math.pow(2,r))/Math.log(a),c=2;s===1/0;c*=2)s=Math.log(Math.pow(2,r/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,r)?n(r,a):m};n.rack=function(r,a,s){var c=function(m){var g=0;do{if(g++>10)if(s)r+=s;else throw new Error("too many ID collisions, use more bits");var y=n(r,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=r||128,c.base=a||16,c}});function ya(e){if(!(this instanceof ya))return new ya(e);e=e||[128,36,1],this._seed=e.length?xL.rack(e[0],e[1],e[2]):e}ya.prototype.next=function(e){return this._seed(e||!0)},ya.prototype.nextPrefixed=function(e,n){var r;do r=e+this.next(!0);while(this.assigned(r));return this.claim(r,n),r},ya.prototype.claim=function(e,n){this._seed.set(e,n||!0)},ya.prototype.assigned=function(e){return this._seed.get(e)||!1},ya.prototype.unclaim=function(e){delete this._seed.hats[e]},ya.prototype.clear=function(){var e=this._seed.hats,n;for(n in e)this.unclaim(n)};var wL=new ya,EL=10,Bh=3,CL=1.5,Ih=10,Gl=.95,kL=1,SL=.25;function As(e,n,r,a,s,c,p){ba.call(this,n,p);var m=e&&e.defaultFillColor,g=e&&e.defaultStrokeColor,y=e&&e.defaultLabelColor;function O(P){return r.computeStyle(P,{strokeLinecap:"round",strokeLinejoin:"round",stroke:jy,strokeWidth:2,fill:"white"})}function S(P){return r.computeStyle(P,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:jy,strokeWidth:2})}function N(P,E){var{ref:C={x:0,y:0},scale:X=1,element:ee,parentGfx:fe=s._svg}=E,De=Lt("marker",{id:P,viewBox:"0 0 20 20",refX:C.x,refY:C.y,markerWidth:20*X,markerHeight:20*X,orient:"auto"});xn(De,ee);var je=_a(":scope > defs",fe);je||(je=Lt("defs"),xn(fe,je)),xn(je,De)}function _(P,E,C,X){var ee=wL.nextPrefixed("marker-");return B(P,ee,E,C,X),"url(#"+ee+")"}function B(P,E,C,X,ee){if(C==="sequenceflow-end"){var fe=Lt("path",{d:"M 1 5 L 11 10 L 1 15 Z",...O({fill:ee,stroke:ee,strokeWidth:1})});N(E,{element:fe,ref:{x:11,y:10},scale:.5,parentGfx:P})}if(C==="messageflow-start"){var De=Lt("circle",{cx:6,cy:6,r:3.5,...O({fill:X,stroke:ee,strokeWidth:1,strokeDasharray:[1e4,1]})});N(E,{element:De,ref:{x:6,y:6},parentGfx:P})}if(C==="messageflow-end"){var je=Lt("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...O({fill:X,stroke:ee,strokeWidth:1,strokeDasharray:[1e4,1]})});N(E,{element:je,ref:{x:8.5,y:5},parentGfx:P})}if(C==="association-start"){var Ke=Lt("path",{d:"M 11 5 L 1 10 L 11 15",...S({fill:"none",stroke:ee,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(E,{element:Ke,ref:{x:1,y:10},scale:.5,parentGfx:P})}if(C==="association-end"){var yt=Lt("path",{d:"M 1 5 L 11 10 L 1 15",...S({fill:"none",stroke:ee,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(E,{element:yt,ref:{x:11,y:10},scale:.5,parentGfx:P})}if(C==="conditional-flow-marker"){var ht=Lt("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...O({fill:X,stroke:ee})});N(E,{element:ht,ref:{x:-1,y:10},scale:.5,parentGfx:P})}if(C==="conditional-default-flow-marker"){var Ot=Lt("path",{d:"M 6 4 L 10 16",...O({stroke:ee,fill:"none"})});N(E,{element:Ot,ref:{x:0,y:10},scale:.5,parentGfx:P})}}function j(P,E,C,X,ee={}){us(X)&&(ee=X,X=0),X=X||0,ee=O(ee);var fe=E/2,De=C/2,je=Lt("circle",{cx:fe,cy:De,r:Math.round((E+C)/4-X),...ee});return xn(P,je),je}function R(P,E,C,X,ee,fe){us(ee)&&(fe=ee,ee=0),ee=ee||0,fe=O(fe);var De=Lt("rect",{x:ee,y:ee,width:E-ee*2,height:C-ee*2,rx:X,ry:X,...fe});return xn(P,De),De}function T(P,E,C,X){var ee=E/2,fe=C/2,De=[{x:ee,y:0},{x:E,y:fe},{x:ee,y:C},{x:0,y:fe}],je=De.map(function(yt){return yt.x+","+yt.y}).join(" ");X=O(X);var Ke=Lt("polygon",{...X,points:je});return xn(P,Ke),Ke}function F(P,E,C,X){C=S(C);var ee=Ry(E,C,X);return xn(P,ee),ee}function v(P,E,C){return F(P,E,C,5)}function w(P,E,C){C=S(C);var X=Lt("path",{...C,d:E});return xn(P,X),X}function k(P,E,C,X){return w(E,C,Je({"data-marker":P},X))}function Q(P){return K[P]}function M(P){return function(E,C,X){return Q(P)(E,C,X)}}var H={"bpmn:MessageEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.235,my:.315}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill),De=X?lt(E,m,C.fill):Qe(E,g,C.stroke),je=w(P,ee,{fill:fe,stroke:De,strokeWidth:1});return je},"bpmn:TimerEventDefinition":function(P,E,C={}){var X=C.width||E.width,ee=C.height||E.height,fe=C.width?1:2,De=j(P,X,ee,.2*ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:fe}),je=a.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:ee,position:{mx:.5,my:.5}});w(P,je,{stroke:Qe(E,g,C.stroke),strokeWidth:fe});for(var Ke=0;Ke<12;Ke++){var yt=a.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:ee,position:{mx:.5,my:.5}}),ht=X/2,Ot=ee/2;w(P,yt,{strokeWidth:1,stroke:Qe(E,g,C.stroke),transform:"rotate("+Ke*30+","+Ot+","+ht+")"})}return De},"bpmn:EscalationEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.5,my:.2}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(P,E,C={}){var X=a.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.5,my:.222}});return w(P,X,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:.57,my:.263}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.2,my:.722}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:.638,my:-.055}}),fe=X?Qe(E,g,C.stroke):"none",De=w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1});return _L(De,45),De},"bpmn:CompensateEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.22,my:.5}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.5,my:.2}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{strokeWidth:1,fill:fe,stroke:Qe(E,g,C.stroke)})},"bpmn:MultipleEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.211,my:.36}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(P,E,C={}){var X=a.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.458,my:.194}});return w(P,X,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(P,E,C={}){var X=j(P,E.width,E.height,8,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:4});return X}};function ne(P,E,C={},X){var ee=Wt(P),fe=$j(ee),De=X||P;return ee.get("eventDefinitions")&&ee.get("eventDefinitions").length>1?ee.get("parallelMultiple")?H["bpmn:ParallelMultipleEventDefinition"](E,De,C,fe):H["bpmn:MultipleEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:MessageEventDefinition")?H["bpmn:MessageEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:TimerEventDefinition")?H["bpmn:TimerEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:ConditionalEventDefinition")?H["bpmn:ConditionalEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:SignalEventDefinition")?H["bpmn:SignalEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:EscalationEventDefinition")?H["bpmn:EscalationEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:LinkEventDefinition")?H["bpmn:LinkEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:ErrorEventDefinition")?H["bpmn:ErrorEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:CancelEventDefinition")?H["bpmn:CancelEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:CompensateEventDefinition")?H["bpmn:CompensateEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:TerminateEventDefinition")?H["bpmn:TerminateEventDefinition"](E,De,C,fe):null}var re={ParticipantMultiplicityMarker:function(P,E,C={}){var X=rr(E,C),ee=_i(E,C),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:(X/2-6)/X,my:(ee-15)/ee}});k("participant-multiplicity",P,fe,{strokeWidth:2,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},SubProcessMarker:function(P,E,C={}){var X=R(P,14,14,0,{strokeWidth:1,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)});g6(X,E.width/2-7.5,E.height-20);var ee=a.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:E.width,containerHeight:E.height,position:{mx:(E.width/2-7.5)/E.width,my:(E.height-20)/E.height}});k("sub-process",P,ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},ParallelMarker:function(P,E,C){var X=rr(E,C),ee=_i(E,C),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:(X/2+C.parallel)/X,my:(ee-20)/ee}});k("parallel",P,fe,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},SequentialMarker:function(P,E,C){var X=a.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:(E.width/2+C.seq)/E.width,my:(E.height-19)/E.height}});k("sequential",P,X,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},CompensationMarker:function(P,E,C){var X=a.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:(E.width/2+C.compensation)/E.width,my:(E.height-13)/E.height}});k("compensation",P,X,{strokeWidth:1,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},LoopMarker:function(P,E,C){var X=rr(E,C),ee=_i(E,C),fe=a.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:(X/2+C.loop)/X,my:(ee-7)/ee}});k("loop",P,fe,{strokeWidth:1.5,fill:"none",stroke:Qe(E,g,C.stroke),strokeMiterlimit:.5})},AdhocMarker:function(P,E,C){var X=rr(E,C),ee=_i(E,C),fe=a.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:(X/2+C.adhoc)/X,my:(ee-15)/ee}});k("adhoc",P,fe,{strokeWidth:1,fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke)})}};function de(P,E,C,X){re[P](E,C,X)}function me(P,E,C=[],X={}){X={fill:X.fill,stroke:X.stroke,width:rr(E,X),height:_i(E,X)};var ee=Wt(E),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},ee.get("isForCompensation")&&C.push("CompensationMarker"),Ge(ee,"bpmn:AdHocSubProcess")&&(C.push("AdhocMarker"),fe||Je(X,{compensation:X.compensation-18}));var De=ee.get("loopCharacteristics"),je=De&&De.get("isSequential");De&&(Je(X,{compensation:X.compensation-18}),C.includes("AdhocMarker")&&Je(X,{seq:-23,loop:-18,parallel:-24}),je===void 0&&C.push("LoopMarker"),je===!1&&C.push("ParallelMarker"),je===!0&&C.push("SequentialMarker")),C.includes("CompensationMarker")&&C.length===1&&Je(X,{compensation:-8}),We(C,function(Ke){de(Ke,P,E,X)})}function pe(P,E,C={}){C=Je({size:{width:100}},C);var X=c.createText(E||"",C);return Jr(X).add("djs-label"),xn(P,X),X}function Se(P,E,C,X={}){var ee=Wt(E),fe=fd({x:E.x,y:E.y,width:E.width,height:E.height},X);return pe(P,ee.name,{align:C,box:fe,padding:7,style:{fill:dd(E,y,g,X.stroke)}})}function ye(P,E,C={}){var X={width:90,height:30,x:E.width/2+E.x,y:E.height/2+E.y};return pe(P,Eh(E),{box:X,fitBox:!0,style:Je({},c.getExternalStyle(),{fill:dd(E,y,g,C.stroke)})})}function _e(P,E,C,X={}){var ee=$3(C),fe=pe(P,E,{box:{height:30,width:ee?_i(C,X):rr(C,X)},align:"center-middle",style:{fill:dd(C,y,g,X.stroke)}});if(ee){var De=-1*_i(C,X);Hy(fe,0,-De,270)}}function W(P,E,C={}){var{width:X,height:ee}=fd(E,C);return R(P,X,ee,Ih,{...C,fill:lt(E,m,C.fill),fillOpacity:Gl,stroke:Qe(E,g,C.stroke)})}function J(P,E,C={}){var X=Wt(E),ee=lt(E,m,C.fill),fe=Qe(E,g,C.stroke);return(X.get("associationDirection")==="One"||X.get("associationDirection")==="Both")&&(C.markerEnd=_(P,"association-end",ee,fe)),X.get("associationDirection")==="Both"&&(C.markerStart=_(P,"association-start",ee,fe)),C=At(C,["markerStart","markerEnd"]),v(P,E.waypoints,{...C,stroke:fe,strokeDasharray:"0, 5"})}function ie(P,E,C={}){var X=lt(E,m,C.fill),ee=Qe(E,g,C.stroke),fe=a.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:.474,my:.296}}),De=w(P,fe,{fill:X,fillOpacity:Gl,stroke:ee}),je=Wt(E);if(qj(je)){var Ke=a.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:.33,my:(E.height-18)/E.height}});w(P,Ke,{strokeWidth:2,fill:X,stroke:ee})}return De}function ge(P,E,C={}){return j(P,E.width,E.height,{fillOpacity:Gl,...C,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})}function Te(P,E,C={}){return T(P,E.width,E.height,{fill:lt(E,m,C.fill),fillOpacity:Gl,stroke:Qe(E,g,C.stroke)})}function se(P,E,C={}){var X=R(P,rr(E,C),_i(E,C),0,{fill:lt(E,m,C.fill),fillOpacity:C.fillOpacity||Gl,stroke:Qe(E,g,C.stroke),strokeWidth:1.5}),ee=Wt(E);if(Ge(ee,"bpmn:Lane")){var fe=ee.get("name");_e(P,fe,E,C)}return X}function he(P,E,C={}){var X=W(P,E,C),ee=ps(E);if(Ej(E)&&(jt(X,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),!ee)){var fe=Wt(E).flowElements||[],De=fe.filter(je=>Ge(je,"bpmn:StartEvent"));De.length===1&&xe(De[0],P,C,E)}return Se(P,E,ee?"center-top":"center-middle",C),ee?me(P,E,void 0,C):me(P,E,["SubProcessMarker"],C),X}function xe(P,E,C,X){var ee=22,fe={fill:lt(X,m,C.fill),stroke:Qe(X,g,C.stroke),width:ee,height:ee},De=Wt(P).isInterrupting,je=De?0:3,Ke=De?1:1.2,yt=20,ht=(ee-yt)/2,Ot="translate("+ht+","+ht+")";j(E,yt,yt,{fill:fe.fill,stroke:fe.stroke,strokeWidth:Ke,strokeDasharray:je,transform:Ot}),ne(P,E,fe,X)}function Pe(P,E,C={}){var X=W(P,E,C);return Se(P,E,"center-middle",C),me(P,E,void 0,C),X}var K=this.handlers={"bpmn:AdHocSubProcess":function(P,E,C={}){return ps(E)?C=At(C,["fill","stroke","width","height"]):C=At(C,["fill","stroke"]),he(P,E,C)},"bpmn:Association":function(P,E,C={}){return C=At(C,["fill","stroke"]),J(P,E,C)},"bpmn:BoundaryEvent":function(P,E,C={}){var{renderIcon:X=!0}=C;C=At(C,["fill","stroke"]);var ee=Wt(E),fe=ee.get("cancelActivity");C={strokeWidth:1.5,fill:lt(E,m,C.fill),fillOpacity:kL,stroke:Qe(E,g,C.stroke)},fe||(C.strokeDasharray="6");var De=ge(P,E,C);return j(P,E.width,E.height,Bh,{...C,fill:"none"}),X&&ne(E,P,C),De},"bpmn:BusinessRuleTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),fe=w(P,ee);jt(fe,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1});var De=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),je=w(P,De);return jt(je,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:CallActivity":function(P,E,C={}){return C=At(C,["fill","stroke"]),he(P,E,{strokeWidth:5,...C})},"bpmn:ComplexGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Te(P,E,C),ee=a.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:E.width,containerHeight:E.height,position:{mx:.46,my:.26}});return w(P,ee,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:DataInput":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),ee=ie(P,E,C);return w(P,X,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:1}),ee},"bpmn:DataInputAssociation":function(P,E,C={}){return C=At(C,["fill","stroke"]),J(P,E,{...C,markerEnd:_(P,"association-end",lt(E,m,C.fill),Qe(E,g,C.stroke))})},"bpmn:DataObject":function(P,E,C={}){return C=At(C,["fill","stroke"]),ie(P,E,C)},"bpmn:DataObjectReference":M("bpmn:DataObject"),"bpmn:DataOutput":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),ee=ie(P,E,C);return w(P,X,{strokeWidth:1,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)}),ee},"bpmn:DataOutputAssociation":function(P,E,C={}){return C=At(C,["fill","stroke"]),J(P,E,{...C,markerEnd:_(P,"association-end",lt(E,m,C.fill),Qe(E,g,C.stroke))})},"bpmn:DataStoreReference":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=a.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:0,my:.133}});return w(P,X,{fill:lt(E,m,C.fill),fillOpacity:Gl,stroke:Qe(E,g,C.stroke),strokeWidth:2})},"bpmn:EndEvent":function(P,E,C={}){var{renderIcon:X=!0}=C;C=At(C,["fill","stroke"]);var ee=ge(P,E,{...C,strokeWidth:4});return X&&ne(E,P,C),ee},"bpmn:EventBasedGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Wt(E),ee=Te(P,E,C);j(P,E.width,E.height,E.height*.2,{fill:lt(E,"none",C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1});var fe=X.get("eventGatewayType"),De=!!X.get("instantiate");function je(){var yt=a.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:E.width,containerHeight:E.height,position:{mx:.36,my:.44}});w(P,yt,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:2})}if(fe==="Parallel"){var Ke=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:E.width,containerHeight:E.height,position:{mx:.474,my:.296}});w(P,Ke,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:1})}else fe==="Exclusive"&&(De||j(P,E.width,E.height,E.height*.26,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:1}),je());return ee},"bpmn:ExclusiveGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Te(P,E,C),ee=a.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:E.width,containerHeight:E.height,position:{mx:.32,my:.3}}),fe=fs(E);return fe.get("isMarkerVisible")&&w(P,ee,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:Gateway":function(P,E,C={}){return C=At(C,["fill","stroke"]),Te(P,E,C)},"bpmn:Group":function(P,E,C={}){return C=At(C,["fill","stroke","width","height"]),R(P,E.width,E.height,Ih,{stroke:Qe(E,g,C.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:rr(E,C),height:_i(E,C)})},"bpmn:InclusiveGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Te(P,E,C);return j(P,E.width,E.height,E.height*.24,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:2.5}),X},"bpmn:IntermediateEvent":function(P,E,C={}){var{renderIcon:X=!0}=C;C=At(C,["fill","stroke"]);var ee=ge(P,E,{...C,strokeWidth:1.5});return j(P,E.width,E.height,Bh,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:1.5}),X&&ne(E,P,C),ee},"bpmn:IntermediateCatchEvent":M("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":M("bpmn:IntermediateEvent"),"bpmn:Lane":function(P,E,C={}){return C=At(C,["fill","stroke","width","height"]),se(P,E,{...C,fillOpacity:SL})},"bpmn:ManualTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=a.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return w(P,ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:.5}),X},"bpmn:MessageFlow":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Wt(E),ee=fs(E),fe=lt(E,m,C.fill),De=Qe(E,g,C.stroke),je=v(P,E.waypoints,{markerEnd:_(P,"messageflow-end",fe,De),markerStart:_(P,"messageflow-start",fe,De),stroke:De,strokeDasharray:"10, 11",strokeWidth:1.5});if(X.get("messageRef")){var Ke=je.getPointAtLength(je.getTotalLength()/2),yt=a.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Ke.x,y:Ke.y}}),ht={strokeWidth:1};ee.get("messageVisibleKind")==="initiating"?(ht.fill=fe,ht.stroke=De):(ht.fill=De,ht.stroke=fe);var Ot=w(P,yt,ht),cn=X.get("messageRef"),ut=cn.get("name"),Tt=pe(P,ut,{align:"center-top",fitBox:!0,style:{fill:De}}),hn=Ot.getBBox(),ve=Tt.getBBox(),q=Ke.x-ve.width/2,G=Ke.y+hn.height/2+EL;Hy(Tt,q,G,0)}return je},"bpmn:ParallelGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Te(P,E,C),ee=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:E.width,containerHeight:E.height,position:{mx:.46,my:.2}});return w(P,ee,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:Participant":function(P,E,C={}){C=At(C,["fill","stroke","width","height"]);var X=se(P,E,C),ee=ps(E),fe=$3(E),De=Wt(E),je=De.get("name");if(ee){var Ke=fe?[{x:30,y:0},{x:30,y:_i(E,C)}]:[{x:0,y:30},{x:rr(E,C),y:30}];F(P,Ke,{stroke:Qe(E,g,C.stroke),strokeWidth:CL}),_e(P,je,E,C)}else{var yt=fd(E,C);fe||(yt.height=rr(E,C),yt.width=_i(E,C));var ht=pe(P,je,{box:yt,align:"center-middle",style:{fill:dd(E,y,g,C.stroke)}});if(!fe){var Ot=-1*_i(E,C);Hy(ht,0,-Ot,270)}}return De.get("participantMultiplicity")&&de("ParticipantMultiplicityMarker",P,E,C),X},"bpmn:ReceiveTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Wt(E),ee=Pe(P,E,C),fe;return X.get("instantiate")?(j(P,28,28,20*.22,{fill:lt(E,m,C.fill),stroke:Qe(E,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(P,fe,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1}),ee},"bpmn:ScriptTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=a.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return w(P,ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:SendTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return w(P,ee,{fill:Qe(E,g,C.stroke),stroke:lt(E,m,C.fill),strokeWidth:1}),X},"bpmn:SequenceFlow":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=lt(E,m,C.fill),ee=Qe(E,g,C.stroke),fe=v(P,E.waypoints,{markerEnd:_(P,"sequenceflow-end",X,ee),stroke:ee}),De=Wt(E),{source:je}=E;if(je){var Ke=Wt(je);De.get("conditionExpression")&&Ge(Ke,"bpmn:Activity")&&jt(fe,{markerStart:_(P,"conditional-flow-marker",X,ee)}),Ke.get("default")&&(Ge(Ke,"bpmn:Gateway")||Ge(Ke,"bpmn:Activity"))&&Ke.get("default")===De&&jt(fe,{markerStart:_(P,"conditional-default-flow-marker",X,ee)})}return fe},"bpmn:ServiceTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C);j(P,10,10,{fill:lt(E,m,C.fill),stroke:"none",transform:"translate(6, 6)"});var ee=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});w(P,ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1}),j(P,10,10,{fill:lt(E,m,C.fill),stroke:"none",transform:"translate(11, 10)"});var fe=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return w(P,fe,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:StartEvent":function(P,E,C={}){var{renderIcon:X=!0}=C;C=At(C,["fill","stroke"]);var ee=Wt(E);ee.get("isInterrupting")||(C={...C,strokeDasharray:"6"});var fe=ge(P,E,C);return X&&ne(E,P,C),fe},"bpmn:SubProcess":function(P,E,C={}){return ps(E)?C=At(C,["fill","stroke","width","height"]):C=At(C,["fill","stroke"]),he(P,E,C)},"bpmn:Task":function(P,E,C={}){return C=At(C,["fill","stroke"]),Pe(P,E,C)},"bpmn:TextAnnotation":function(P,E,C={}){C=At(C,["fill","stroke","width","height"]);var{width:X,height:ee}=fd(E,C),fe=R(P,X,ee,0,0,{fill:"none",stroke:"none"}),De=a.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:0,my:0}});w(P,De,{stroke:Qe(E,g,C.stroke)});var je=Wt(E),Ke=je.get("text")||"";return pe(P,Ke,{align:"left-top",box:fd(E,C),padding:7,style:{fill:dd(E,y,g,C.stroke)}}),fe},"bpmn:Transaction":function(P,E,C={}){ps(E)?C=At(C,["fill","stroke","width","height"]):C=At(C,["fill","stroke"]);var X=he(P,E,{strokeWidth:1.5,...C}),ee=r.style(["no-fill","no-events"],{stroke:Qe(E,g,C.stroke),strokeWidth:1.5}),fe=ps(E);return fe||(C={}),R(P,rr(E,C),_i(E,C),Ih-Bh,Bh,ee),X},"bpmn:UserTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=15,fe=12,De=a.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:ee,y:fe}});w(P,De,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:.5});var je=a.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:ee,y:fe}});w(P,je,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:.5});var Ke=a.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:ee,y:fe}});return w(P,Ke,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:.5}),X},label:function(P,E,C={}){return ye(P,E,C)}};this._drawPath=w,this._renderer=Q}Gr(As,ba),As.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],As.prototype.canRender=function(e){return Ge(e,"bpmn:BaseElement")},As.prototype.drawShape=function(e,n,r={}){var{type:a}=n,s=this._renderer(a);return s(e,n,r)},As.prototype.drawConnection=function(e,n,r={}){var{type:a}=n,s=this._renderer(a);return s(e,n,r)},As.prototype.getShapePath=function(e){return Ge(e,"bpmn:Event")?eL(e):Ge(e,"bpmn:Activity")?tL(e,Ih):Ge(e,"bpmn:Gateway")?nL(e):iL(e)};function At(e,n=[]){return n.reduce((r,a)=>(e[a]&&(r[a]=e[a]),r),{})}var DL=0,BL={width:150,height:50};function IL(e){var n=e.split("-");return{horizontal:n[0]||"center",vertical:n[1]||"top"}}function OL(e){return us(e)?Je({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function TL(e,n){n.textContent=e;var r;try{var a,s=e==="";return n.textContent=s?"dummy":e,r=n.getBBox(),a={width:r.width+r.x*2,height:r.height},s&&(a.width=0),a}catch(c){return{width:0,height:0}}}function NL(e,n,r){for(var a=e.shift(),s=a,c;;){if(c=TL(s,r),c.width=s?c.width:0,s===" "||s===""||c.width<Math.round(n)||s.length<2)return ML(e,s,a,c);s=PL(s,c.width,n)}}function ML(e,n,r,a){if(n.length<r.length){var s=r.slice(n.length).trim();e.unshift(s)}return{width:a.width,height:a.height,text:n}}var A6="\xAD";function FL(e,n){var r=e.split(/(\s|-|\u00AD)/g),a,s=[],c=0;if(r.length>1)for(;a=r.shift();)if(a.length+c<n)s.push(a),c+=a.length;else{(a==="-"||a===A6)&&s.pop();break}var p=s[s.length-1];return p&&p===A6&&(s[s.length-1]="-"),s.join("")}function PL(e,n,r){var a=Math.max(e.length*(r/n),1),s=FL(e,a);return s||(s=e.slice(0,Math.max(Math.round(a-1),1))),s}function RL(){var e=document.getElementById("helper-svg");return e||(e=Lt("svg"),jt(e,{id:"helper-svg"}),Nn(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function Oh(e){this._config=Je({},{size:BL,padding:DL,style:{},align:"center-top"},e||{})}Oh.prototype.createText=function(e,n){return this.layoutText(e,n).element},Oh.prototype.getDimensions=function(e,n){return this.layoutText(e,n).dimensions},Oh.prototype.layoutText=function(e,n){var r=Je({},this._config.size,n.box),a=Je({},this._config.style,n.style),s=IL(n.align||this._config.align),c=OL(n.padding!==void 0?n.padding:this._config.padding),p=n.fitBox||!1,m=jL(a),g=e.split(/\u00AD?\r?\n/),y=[],O=r.width-c.left-c.right,S=Lt("text");jt(S,{x:0,y:0}),jt(S,a);var N=RL();for(xn(N,S);g.length;)y.push(NL(g,O,S));s.vertical==="middle"&&(c.top=c.bottom=0);var _=Ul(y,function(F,v,w){return F+(m||v.height)},0)+c.top+c.bottom,B=Ul(y,function(F,v,w){return v.width>F?v.width:F},0),j=c.top;s.vertical==="middle"&&(j+=(r.height-_)/2),j-=(m||y[0].height)/4;var R=Lt("text");jt(R,a),We(y,function(F){var v;switch(j+=m||F.height,s.horizontal){case"left":v=c.left;break;case"right":v=(p?B:O)-c.right-F.width;break;default:v=Math.max(((p?B:O)-F.width)/2+c.left,0)}var w=Lt("tspan");jt(w,{x:v,y:j}),w.textContent=F.text,xn(R,w)}),cd(S);var T={width:B,height:_};return{dimensions:T,element:R}};function jL(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var LL=12,zL=1.2,QL=30;function v6(e){var n=Je({fontFamily:"Arial, sans-serif",fontSize:LL,fontWeight:"normal",lineHeight:zL},e&&e.defaultStyle||{}),r=parseInt(n.fontSize,10)-1,a=Je({},n,{fontSize:r},e&&e.externalStyle||{}),s=new Oh({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(QL,Math.round(m.height))}},this.createText=function(c,p){return s.createText(c,p||{})},this.getDefaultStyle=function(){return n},this.getExternalStyle=function(){return a}}v6.$inject=["config.textRenderer"];function HL(){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,r){var a=this.pathMap[n],s,c;r.abspos?(s=r.abspos.x,c=r.abspos.y):(s=r.containerWidth*r.position.mx,c=r.containerHeight*r.position.my);var p={};if(r.position){for(var m=r.containerHeight/a.height*r.yScaleFactor,g=r.containerWidth/a.width*r.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 S=WL(a.d,{mx:s,my:c,e:p});return S}}var VL=/\{([^{}]+)\}/g,UL=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function YL(e,n,r){var a=r;return n.replace(UL,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==r?e:a)+"",a}function WL(e,n){return String(e).replace(VL,function(r,a){return YL(r,a,n)})}const GL={__init__:["bpmnRenderer"],bpmnRenderer:["type",As],textRenderer:["type",v6],pathMap:["type",HL]};function JL(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(r,a){return n[a]||"{"+a+"}"})}const b6={translate:["value",JL]};function KL(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function Vy(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function XL(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function ZL(e){return KL({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function $L(e){for(var n=e.waypoints,r=n.reduce(function(y,O,S){var N=n[S-1];if(N){var _=y[y.length-1],B=_&&_.endLength||0,j=qL(N,O);y.push({start:N,end:O,startLength:B,endLength:B+j,length:j})}return y},[]),a=r.reduce(function(y,O){return y+O.length},0),s=a/2,c=0,p=r[c];p.endLength<s;)p=r[++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 Uy(e){return Cj(e)?$L(e):ZL(e)}function qL(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Mn(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function Th(e,n,r){return Je({id:e.id,type:e.$type,businessObject:e,di:n},r)}function ez(e,n,r){var a=e.waypoint;return!a||a.length<2?[Uy(n),Uy(r)]:a.map(function(s){return{x:s.x,y:s.y}})}function _6(e,n,r){return new Error(`element ${Mn(n)} referenced by ${Mn(e)}#${r} not yet drawn`)}function xa(e,n,r,a,s){this._eventBus=e,this._canvas=n,this._elementFactory=r,this._elementRegistry=a,this._textRenderer=s}xa.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],xa.prototype.add=function(e,n,r){var a,s,c;if(Ge(n,"bpmndi:BPMNPlane")){var p=Ge(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};a=this._elementFactory.createRoot(Th(e,n,p)),this._canvas.addRootElement(a)}else if(Ge(n,"bpmndi:BPMNShape")){var m=!ps(e,n),g=nz(e);s=r&&(r.hidden||r.collapsed);var y=n.bounds;a=this._elementFactory.createShape(Th(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")&&(tz(r,Uy(y))||(r=this._canvas.findRoot(r))),this._canvas.addShape(a,r,c)}else if(Ge(n,"bpmndi:BPMNEdge")){var O=this._getSource(e),S=this._getTarget(e);s=r&&(r.hidden||r.collapsed),a=this._elementFactory.createConnection(Th(e,n,{hidden:s,source:O,target:S,waypoints:ez(n,O,S)})),Ge(e,"bpmn:DataAssociation")&&(r=this._canvas.findRoot(r)),this._canvas.addConnection(a,r,c)}else throw new Error(`unknown di ${Mn(n)} for element ${Mn(e)}`);return kj(e)&&Eh(a)&&this.addLabel(e,n,a),this._eventBus.fire("bpmnElement.added",{element:a}),a},xa.prototype._attachBoundary=function(e,n){var r=e.attachedToRef;if(!r)throw new Error(`missing ${Mn(e)}#attachedToRef`);var a=this._elementRegistry.get(r.id),s=a&&a.attachers;if(!a)throw _6(e,r,"attachedToRef");n.host=a,s||(a.attachers=s=[]),s.indexOf(n)===-1&&s.push(n)},xa.prototype.addLabel=function(e,n,r){var a,s,c;return a=Ij(n,r),s=Eh(r),s&&(a=this._textRenderer.getExternalLabelBounds(a,s)),c=this._elementFactory.createLabel(Th(e,n,{id:e.id+"_label",labelTarget:r,type:"label",hidden:r.hidden||!Eh(r),x:Math.round(a.x),y:Math.round(a.y),width:Math.round(a.width),height:Math.round(a.height)})),this._canvas.addShape(c,r.parent)},xa.prototype._getConnectedElement=function(e,n){var r,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),r=a&&this._getElement(a),r)return r;throw a?_6(e,a,n+"Ref"):new Error(`${Mn(e)}#${n} Ref not specified`)},xa.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},xa.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},xa.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function tz(e,n){var r=n.x,a=n.y;return r>=e.x&&r<=e.x+e.width&&a>=e.y&&a<=e.y+e.height}function nz(e){return Ge(e,"bpmn:Group")}const iz={__depends__:[GL,{__depends__:[b6],bpmnImporter:["type",xa]}]};function pd(e,n){n=!!n,Sr(e)||(e=[e]);var r,a,s,c;return We(e,function(p){var m=p;p.waypoints&&!n&&(m=pd(p.waypoints,!0));var g=m.x,y=m.y,O=m.height||0,S=m.width||0;(g<r||r===void 0)&&(r=g),(y<a||a===void 0)&&(a=y),(g+S>s||s===void 0)&&(s=g+S),(y+O>c||c===void 0)&&(c=y+O)}),{x:r,y:a,height:c-a,width:s-r}}function y6(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function x6(e){return!!(e&&e.isFrame)}function Yy(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Yy.prototype.next=function(){return this._prefix+ ++this._counter};var rz=new Yy("ov"),az=500;function wn(e,n,r,a){this._eventBus=n,this._canvas=r,this._elementRegistry=a,this._ids=rz,this._overlayDefaults=Je({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=oz(r.getContainer()),this._init()}wn.$inject=["config.overlays","eventBus","canvas","elementRegistry"],wn.prototype.get=function(e){if(Dr(e)&&(e={id:e}),Dr(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?Vl(n.overlays,Z3({type:e.type})):n.overlays.slice():[]}else return e.type?Vl(this._overlays,Z3({type:e.type})):e.id?this._overlays[e.id]:null},wn.prototype.add=function(e,n,r){if(us(n)&&(r=n,n=null),e.id||(e=this._elementRegistry.get(e)),!r.position)throw new Error("must specifiy overlay position");if(!r.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var a=this._ids.next();return r=Je({},this._overlayDefaults,r,{id:a,type:n,element:e,html:r.html}),this._addOverlay(r),a},wn.prototype.remove=function(e){var n=this.get(e)||[];Sr(n)||(n=[n]);var r=this;We(n,function(a){var s=r._getOverlayContainer(a.element,!0);if(a&&(Wl(a.html),Wl(a.htmlContainer),delete a.htmlContainer,delete a.element,delete r._overlays[a.id]),s){var c=s.overlays.indexOf(a);c!==-1&&s.overlays.splice(c,1)}})},wn.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},wn.prototype.show=function(){Nh(this._overlayRoot)},wn.prototype.hide=function(){Nh(this._overlayRoot,!1)},wn.prototype.clear=function(){this._overlays={},this._overlayContainers=[],d6(this._overlayRoot)},wn.prototype._updateOverlayContainer=function(e){var n=e.element,r=e.html,a=n.x,s=n.y;if(n.waypoints){var c=pd(n);a=c.x,s=c.y}w6(r,a,s),Ly(e.html,"data-container-id",n.id)},wn.prototype._updateOverlay=function(e){var n=e.position,r=e.htmlContainer,a=e.element,s=n.left,c=n.top;if(n.right!==void 0){var p;a.waypoints?p=pd(a).width:p=a.width,s=n.right*-1+p}if(n.bottom!==void 0){var m;a.waypoints?m=pd(a).height:m=a.height,c=n.bottom*-1+m}w6(r,s||0,c||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},wn.prototype._createOverlayContainer=function(e){var n=Hi('<div class="djs-overlays" />');Nn(n,{position:"absolute"}),this._overlayRoot.appendChild(n);var r={html:n,element:e,overlays:[]};return this._updateOverlayContainer(r),this._overlayContainers.push(r),r},wn.prototype._updateRoot=function(e){var n=e.scale||1,r="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";E6(this._overlayRoot,r)},wn.prototype._getOverlayContainer=function(e,n){var r=Br(this._overlayContainers,function(a){return a.element===e});return!r&&!n?this._createOverlayContainer(e):r},wn.prototype._addOverlay=function(e){var n=e.id,r=e.element,a=e.html,s,c;a.get&&a.constructor.prototype.jquery&&(a=a.get(0)),Dr(a)&&(a=Hi(a)),c=this._getOverlayContainer(r),s=Hi('<div class="djs-overlay" data-overlay-id="'+n+'">'),Nn(s,{position:"absolute"}),s.appendChild(a),e.type&&ms(s).add("djs-overlay-"+e.type);var p=this._canvas.findRoot(r),m=this._canvas.getRootElement();Nh(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())},wn.prototype._updateOverlayVisibilty=function(e,n){var r=e.show,a=this._canvas.findRoot(e.element),s=r&&r.minZoom,c=r&&r.maxZoom,p=e.htmlContainer,m=this._canvas.getRootElement(),g=!0;(a!==m||r&&(Ql(s)&&s>n.scale||Ql(c)&&c<n.scale))&&(g=!1),Nh(p,g),this._updateOverlayScale(e,n)},wn.prototype._updateOverlayScale=function(e,n){var r=e.scale,a,s,c=e.htmlContainer,p,m="";r!==!0&&(r===!1?(a=1,s=1):(a=r.min,s=r.max),Ql(a)&&n.scale<a&&(p=(1/n.scale||1)*a),Ql(s)&&n.scale>s&&(p=(1/n.scale||1)*s)),Ql(p)&&(m="scale("+p+","+p+")"),E6(c,m)},wn.prototype._updateOverlaysVisibilty=function(e){var n=this;We(this._overlays,function(r){n._updateOverlayVisibilty(r,e)})},wn.prototype._init=function(){var e=this._eventBus,n=this;function r(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){r(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){Wl(p.html);var m=n._overlayContainers.indexOf(p);m!==-1&&n._overlayContainers.splice(m,1)}}),e.on("element.changed",az,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&&ms(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 oz(e){var n=Hi('<div class="djs-overlay-container" />');return Nn(n,{position:"absolute",width:0,height:0}),e.insertBefore(n,e.firstChild),n}function w6(e,n,r){Nn(e,{left:n+"px",top:r+"px"})}function Nh(e,n){e.style.display=n===!1?"none":""}function E6(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(r){e.style[r+"transform"]=n})}const C6={__init__:["overlays"],overlays:["type",wn]};function k6(e,n,r,a){e.on("element.changed",function(s){var c=s.element;(c.parent||c===n.getRootElement())&&(s.gfx=r.getGraphics(c)),s.gfx&&e.fire(y6(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)})}k6.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const sz={__init__:["changeSupport"],changeSupport:["type",k6]};var lz=1e3;function ti(e){this._eventBus=e}ti.$inject=["eventBus"];function cz(e,n){return function(r){return e.call(n||null,r.context,r.command,r)}}ti.prototype.on=function(e,n,r,a,s,c){if((ds(n)||to(n))&&(c=s,s=a,a=r,r=n,n=null),ds(r)&&(c=s,s=a,a=r,r=lz),us(s)&&(c=s,s=!1),!ds(a))throw new Error("handlerFn must be a function");Sr(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,r,s?cz(a,c):a,c)})},ti.prototype.canExecute=wa("canExecute"),ti.prototype.preExecute=wa("preExecute"),ti.prototype.preExecuted=wa("preExecuted"),ti.prototype.execute=wa("execute"),ti.prototype.executed=wa("executed"),ti.prototype.postExecute=wa("postExecute"),ti.prototype.postExecuted=wa("postExecuted"),ti.prototype.revert=wa("revert"),ti.prototype.reverted=wa("reverted");function wa(e){return function(r,a,s,c,p){(ds(r)||to(r))&&(p=c,c=s,s=a,a=r,r=null),this.on(r,e,a,s,c,p)}}function Wy(e,n){n.invoke(ti,this),this.executed(function(r){var a=r.context;a.rootElement?e.setRootElement(a.rootElement):a.rootElement=e.getRootElement()}),this.revert(function(r){var a=r.context;a.rootElement&&e.setRootElement(a.rootElement)})}Gr(Wy,ti),Wy.$inject=["canvas","injector"];const uz={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Wy]};var dz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function fz(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(n){return dz[n]})}var pz="_plane";function Gy(e){var n=e.id;return Ge(e,"bpmn:SubProcess")?hz(n):n}function hz(e){return e+pz}var mz="bjs-breadcrumbs-shown";function S6(e,n,r){var a=Hi('<ul class="bjs-breadcrumbs"></ul>'),s=r.getContainer(),c=ms(s);s.appendChild(a);var p=[];e.on("element.changed",function(g){var y=g.element,O=Wt(y),S=Br(p,function(N){return N===O});!S||m()});function m(g){g&&(p=gz(g));var y=p.flatMap(function(S){var N=r.findRoot(Gy(S))||r.findRoot(S.id);if(!N&&Ge(S,"bpmn:Process")){var _=n.find(function(R){var T=Wt(R);return T&&T.get("processRef")===S});N=_&&r.findRoot(_.id)}if(!N)return[];var B=fz(S.name||S.id),j=Hi('<li><span class="bjs-crumb"><a title="'+B+'">'+B+"</a></span></li>");return j.addEventListener("click",function(){r.setRootElement(N)}),j});a.innerHTML="";var O=y.length>1;c.toggle(mz,O),y.forEach(function(S){a.appendChild(S)})}e.on("root.set",function(g){m(g.element)})}S6.$inject=["eventBus","elementRegistry","canvas"];function gz(e){for(var n=Wt(e),r=[],a=n;a;a=a.$parent)(Ge(a,"bpmn:SubProcess")||Ge(a,"bpmn:Process"))&&r.push(a);return r.reverse()}function D6(e,n){var r=null,a=new Az;e.on("root.set",function(s){var c=s.element,p=n.viewbox(),m=a.get(c);if(a.set(r,{x:p.x,y:p.y,zoom:p.scale}),r=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(),r=null})}D6.$inject=["eventBus","canvas"];function Az(){this._entries=[],this.set=function(e,n){var r=!1;for(var a in this._entries)if(this._entries[a][0]===e){this._entries[a][1]=n,r=!0;break}r||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 r in this._entries)if(this._entries[r][0]===e){n=r;break}n!==-1&&this._entries.splice(n,1)}}var B6={x:180,y:160};function vs(e,n){this._eventBus=e,this._moddle=n;var r=this;e.on("import.render.start",1500,function(a,s){r._handleImport(s.definitions)})}vs.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 r=e.diagrams.filter(a=>a.plane).flatMap(a=>n._createNewDiagrams(a.plane));r.forEach(function(a){n._movePlaneElementsToOrigin(a.plane)})}},vs.prototype._createNewDiagrams=function(e){var n=this,r=[],a=[];e.get("planeElement").forEach(function(c){var p=c.bpmnElement;if(!!p){var m=p.$parent;Ge(p,"bpmn:SubProcess")&&!c.isExpanded&&r.push(p),bz(p,e)&&a.push({diElement:c,parent:m})}});var s=[];return r.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&&r.indexOf(m)===-1;)m=m.$parent;if(!!m){var g=n._processToDiagramMap[m.id];n._moveToDiPlane(p,g.plane)}}),s},vs.prototype._movePlaneElementsToOrigin=function(e){var n=e.get("planeElement"),r=vz(e),a={x:r.x-B6.x,y:r.y-B6.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)})},vs.prototype._moveToDiPlane=function(e,n){var r=I6(e),a=r.plane.get("planeElement");a.splice(a.indexOf(e),1),n.get("planeElement").push(e)},vs.prototype._createDiagram=function(e){var n=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),r=this._moddle.create("bpmndi:BPMNDiagram",{plane:n});return n.$parent=r,n.bpmnElement=e,r.$parent=this._definitions,this._definitions.diagrams.push(r),r},vs.$inject=["eventBus","moddle"];function I6(e){return Ge(e,"bpmndi:BPMNDiagram")?e:I6(e.$parent)}function vz(e){var n={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(r){if(!!r.bounds){var a=Vy(r.bounds);n.top=Math.min(a.top,n.top),n.left=Math.min(a.left,n.left)}}),XL(n)}function bz(e,n){var r=e.$parent;return!(!Ge(r,"bpmn:SubProcess")||r===n.bpmnElement||wj(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var Mh=250,_z='<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>',yz="bjs-drilldown-empty";function ao(e,n,r,a,s){ti.call(this,n),this._canvas=e,this._eventBus=n,this._elementRegistry=r,this._overlays=a,this._translate=s;var c=this;this.executed("shape.toggleCollapse",Mh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.reverted("shape.toggleCollapse",Mh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.executed(["shape.create","shape.move","shape.delete"],Mh,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"],Mh,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(){r.filter(function(p){return c._canDrillDown(p)}).map(function(p){c._addOverlay(p)})})}Gr(ao,ti),ao.prototype._updateDrilldownOverlay=function(e){var n=this._canvas;if(!!e){var r=n.findRoot(e);r&&this._updateOverlayVisibility(r)}},ao.prototype._canDrillDown=function(e){var n=this._canvas;return Ge(e,"bpmn:SubProcess")&&n.findRoot(Gy(e))},ao.prototype._updateOverlayVisibility=function(e){var n=this._overlays,r=Wt(e),a=n.get({element:r.id,type:"drilldown"})[0];if(!!a){var s=r&&r.get("flowElements")&&r.get("flowElements").length;ms(a.html).toggle(yz,!s)}},ao.prototype._addOverlay=function(e){var n=this._canvas,r=this._overlays,a=Wt(e),s=r.get({element:e,type:"drilldown"});s.length&&this._removeOverlay(e);var c=Hi('<button type="button" class="bjs-drilldown">'+_z+"</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(Gy(e)))}),r.add(e,"drilldown",{position:{bottom:-7,right:-8},html:c}),this._updateOverlayVisibility(e)},ao.prototype._removeOverlay=function(e){var n=this._overlays;n.remove({element:e,type:"drilldown"})},ao.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const xz={__depends__:[C6,sz,uz],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",S6],drilldownCentering:["type",D6],drilldownOverlayBehavior:["type",ao],subprocessCompatibility:["type",vs]};function O6(e){return e.originalEvent||e.srcEvent}function T6(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 N6(e,n){return(O6(e)||e).button===n}function Fh(e){return N6(e,0)}function wz(e){return N6(e,1)}function Ez(e){var n=O6(e)||e;return Fh(e)&&n.shiftKey}function Cz(e){return!0}function Ph(e){return Fh(e)||wz(e)}var M6=500;function F6(e,n,r){var a=this;function s(H,ne,re){if(!m(H,ne)){var de,me,pe;re?me=n.getGraphics(re):(de=ne.delegateTarget||ne.target,de&&(me=de,re=n.get(me))),!(!me||!re)&&(pe=e.fire(H,{element:re,gfx:me,originalEvent:ne}),pe===!1&&(ne.stopPropagation(),ne.preventDefault()))}}var c={};function p(H){return c[H]}function m(H,ne){var re=y[H]||Fh;return!re(ne)}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":Cz,"element.mousedown":Ph,"element.mouseup":Ph,"element.click":Ph,"element.dblclick":Ph};function O(H,ne,re){var de=g[H];if(!de)throw new Error("unmapped DOM event name <"+H+">");return s(de,ne,re)}var S="svg, .djs-element";function N(H,ne,re,de){var me=c[re]=function(pe){s(re,pe)};de&&(y[re]=de),me.$delegate=Yl.bind(H,S,ne,me)}function _(H,ne,re){var de=p(re);!de||Yl.unbind(H,ne,de.$delegate)}function B(H){We(g,function(ne,re){N(H,re,ne)})}function j(H){We(g,function(ne,re){_(H,re,ne)})}e.on("canvas.destroy",function(H){j(H.svg)}),e.on("canvas.init",function(H){B(H.svg)}),e.on(["shape.added","connection.added"],function(H){var ne=H.element,re=H.gfx;e.fire("interactionEvents.createHit",{element:ne,gfx:re})}),e.on(["shape.changed","connection.changed"],M6,function(H){var ne=H.element,re=H.gfx;e.fire("interactionEvents.updateHit",{element:ne,gfx:re})}),e.on("interactionEvents.createHit",M6,function(H){var ne=H.element,re=H.gfx;a.createDefaultHit(ne,re)}),e.on("interactionEvents.updateHit",function(H){var ne=H.element,re=H.gfx;a.updateDefaultHit(ne,re)});var R=k("djs-hit djs-hit-stroke"),T=k("djs-hit djs-hit-click-stroke"),F=k("djs-hit djs-hit-all"),v=k("djs-hit djs-hit-no-move"),w={all:F,"click-stroke":T,stroke:R,"no-move":v};function k(H,ne){return ne=Je({stroke:"white",strokeWidth:15},ne||{}),r.cls(H,["no-fill","no-border"],ne)}function Q(H,ne){var re=w[ne];if(!re)throw new Error("invalid hit type <"+ne+">");return jt(H,re),H}function M(H,ne){xn(H,ne)}this.removeHits=function(H){var ne=bL(".djs-hit",H);We(ne,cd)},this.createDefaultHit=function(H,ne){var re=H.waypoints,de=H.isFrame,me;return re?this.createWaypointsHit(ne,re):(me=de?"stroke":"all",this.createBoxHit(ne,me,{width:H.width,height:H.height}))},this.createWaypointsHit=function(H,ne){var re=Ry(ne);return Q(re,"stroke"),M(H,re),re},this.createBoxHit=function(H,ne,re){re=Je({x:0,y:0},re);var de=Lt("rect");return Q(de,ne),jt(de,re),M(H,de),de},this.updateDefaultHit=function(H,ne){var re=_a(".djs-hit",ne);if(!!re)return H.waypoints?c6(re,H.waypoints):jt(re,{width:H.width,height:H.height}),re},this.fire=s,this.triggerMouseEvent=O,this.mouseHandler=p,this.registerEvent=N,this.unregisterEvent=_}F6.$inject=["eventBus","elementRegistry","styles"];const kz={__init__:["interactionEvents"],interactionEvents:["type",F6]};function Jl(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var r=this;e.on(["shape.remove","connection.remove"],function(a){var s=a.element;r.deselect(s)}),e.on(["diagram.clear","root.set"],function(a){r.select(null)})}Jl.$inject=["eventBus","canvas"],Jl.prototype.deselect=function(e){var n=this._selectedElements,r=n.indexOf(e);if(r!==-1){var a=n.slice();n.splice(r,1),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:n})}},Jl.prototype.get=function(){return this._selectedElements},Jl.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},Jl.prototype.select=function(e,n){var r=this._selectedElements,a=r.slice();Sr(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){r.indexOf(p)===-1&&r.push(p)}):this._selectedElements=r=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:r})};var P6="hover",R6="selected";function j6(e,n){this._canvas=e;function r(s,c){e.addMarker(s,c)}function a(s,c){e.removeMarker(s,c)}n.on("element.hover",function(s){r(s.element,P6)}),n.on("element.out",function(s){a(s.element,P6)}),n.on("selection.changed",function(s){function c(y){a(y,R6)}function p(y){r(y,R6)}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)})})}j6.$inject=["canvas","eventBus"];function L6(e,n,r,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;Sr(y)?n.select(y):n.select(m.filter(Sz))}}),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=Br(c,function(g){return p.id===g.id});m||n.select(p)}),e.on("element.click",function(s){if(!!Fh(s)){var c=s.element;c===r.getRootElement()&&(c=null);var p=n.isSelected(c),m=n.get().length>1,g=Ez(s);if(p&&m)return g?n.deselect(c):n.select(c);p?n.deselect(c):n.select(c,g)}})}L6.$inject=["eventBus","selection","canvas","elementRegistry"];function Sz(e){return!e.hidden}const Dz={__init__:["selectionVisuals","selectionBehavior"],__depends__:[kz],selection:["type",Jl],selectionVisuals:["type",j6],selectionBehavior:["type",L6]},Bz=/^class[ {]/;function Iz(e){return Bz.test(e.toString())}function Jy(e){return Array.isArray(e)}function Ky(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Rh(...e){e.length===1&&Jy(e[0])&&(e=e[0]),e=[...e];const n=e.pop();return n.$inject=e,n}const Oz=/constructor\s*[^(]*\(\s*([^)]*)\)/m,Tz=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,Nz=/\/\*([^*]*)\*\//m;function Mz(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const n=e.toString().match(Iz(e)?Oz:Tz);if(!n)return[];const r=n[1]||n[2];return r&&r.split(",").map(a=>{const s=a.match(Nz);return(s&&s[1]||a).trim()})||[]}function z6(e,n){const r=n||{get:function(v,w){if(a.push(v),w===!1)return null;throw m(`No provider for "${v}"!`)}},a=[],s=this._providers=Object.create(r._providers||null),c=this._instances=Object.create(null),p=c.injector=this,m=function(v){const w=a.join(" -> ");return a.length=0,new Error(w?`${v} (Resolving: ${w})`:v)};function g(v,w){if(!s[v]&&v.includes(".")){const k=v.split(".");let Q=g(k.shift());for(;k.length;)Q=Q[k.shift()];return Q}if(Ky(c,v))return c[v];if(Ky(s,v)){if(a.indexOf(v)!==-1)throw a.push(v),m("Cannot resolve circular dependency!");return a.push(v),c[v]=s[v][0](s[v][1]),a.pop(),c[v]}return r.get(v,w)}function y(v,w){if(typeof w>"u"&&(w={}),typeof v!="function")if(Jy(v))v=Rh(v.slice());else throw m(`Cannot invoke "${v}". Expected a function!`);const Q=(v.$inject||Mz(v)).map(M=>Ky(w,M)?w[M]:g(M));return{fn:v,dependencies:Q}}function O(v){const{fn:w,dependencies:k}=y(v),Q=Function.prototype.bind.call(w,null,...k);return new Q}function S(v,w,k){const{fn:Q,dependencies:M}=y(v,k);return Q.apply(w,M)}function N(v){return Rh(w=>v.get(w))}function _(v,w){if(w&&w.length){const k=Object.create(null),Q=Object.create(null),M=[],H=[],ne=[];let re,de,me,pe;for(let Se in s)re=s[Se],w.indexOf(Se)!==-1&&(re[2]==="private"?(de=M.indexOf(re[3]),de===-1?(me=re[3].createChild([],w),pe=N(me),M.push(re[3]),H.push(me),ne.push(pe),k[Se]=[pe,Se,"private",me]):k[Se]=[ne[de],Se,"private",H[de]]):k[Se]=[re[2],re[1]],Q[Se]=!0),(re[2]==="factory"||re[2]==="type")&&re[1].$scope&&w.forEach(ye=>{re[1].$scope.indexOf(ye)!==-1&&(k[Se]=[re[2],re[1]],Q[ye]=!0)});w.forEach(Se=>{if(!Q[Se])throw new Error('No provider for "'+Se+'". Cannot use provider from the parent!')}),v.unshift(k)}return new z6(v,p)}const B={factory:S,type:O,value:function(v){return v}};function j(v,w){const k=v.__init__||[];return function(){k.forEach(Q=>{typeof Q=="string"?w.get(Q):w.invoke(Q)})}}function R(v){const w=v.__exports__;if(w){const k=v.__modules__,Q=Object.keys(v).reduce((de,me)=>(me!=="__exports__"&&me!=="__modules__"&&me!=="__init__"&&me!=="__depends__"&&(de[me]=v[me]),de),Object.create(null)),M=(k||[]).concat(Q),H=_(M),ne=Rh(function(de){return H.get(de)});w.forEach(function(de){s[de]=[ne,de,"private",H]});const re=(v.__init__||[]).slice();return re.unshift(function(){H.init()}),v=Object.assign({},v,{__init__:re}),j(v,H)}return Object.keys(v).forEach(function(k){if(k==="__init__"||k==="__depends__")return;const Q=v[k];if(Q[2]==="private"){s[k]=Q;return}const M=Q[0],H=Q[1];s[k]=[B[M],Fz(M,H),M]}),j(v,p)}function T(v,w){return v.indexOf(w)!==-1||(v=(w.__depends__||[]).reduce(T,v),v.indexOf(w)!==-1)?v:v.concat(w)}function F(v){const w=v.reduce(T,[]).map(R);let k=!1;return function(){k||(k=!0,w.forEach(Q=>Q()))}}this.get=g,this.invoke=S,this.instantiate=O,this.createChild=_,this.init=F(e)}function Fz(e,n){return e!=="value"&&Jy(n)&&(n=Rh(n.slice())),n}var Pz=1;function oo(e,n){ba.call(this,e,Pz),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(oo,ba),oo.prototype.canRender=function(){return!0},oo.prototype.drawShape=function(n,r,a){var s=Lt("rect");return jt(s,{x:0,y:0,width:r.width||0,height:r.height||0}),x6(r)?jt(s,Je({},this.FRAME_STYLE,a||{})):jt(s,Je({},this.SHAPE_STYLE,a||{})),xn(n,s),s},oo.prototype.drawConnection=function(n,r,a){var s=Ry(r.waypoints,Je({},this.CONNECTION_STYLE,a||{}));return xn(n,s),s},oo.prototype.getShapePath=function(n){var r=n.x,a=n.y,s=n.width,c=n.height,p=[["M",r,a],["l",s,0],["l",0,c],["l",-s,0],["z"]];return hs(p)},oo.prototype.getConnectionPath=function(n){var r=n.waypoints,a,s,c=[];for(a=0;s=r[a];a++)s=s.original||s,c.push([a===0?"M":"L",s.x,s.y]);return hs(c)},oo.$inject=["eventBus","styles"];function Rz(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(r,a,s){var c=this.style(a,s);return Je(c,{class:r})},this.style=function(r,a){!Sr(r)&&!a&&(a=r,r=[]);var s=Ul(r,function(c,p){return Je(c,e[p]||{})},{});return a?Je(s,a):s},this.computeStyle=function(r,a,s){return Sr(a)||(s=a,a=[]),n.style(a||[],Je({},s,r||{}))}}const jz={__init__:["defaultRenderer"],defaultRenderer:["type",oo],styles:["type",Rz]};function Lz(e,n){if(!e||!n)return-1;var r=e.indexOf(n);return r!==-1&&e.splice(r,1),r}function zz(e,n,r){if(!(!e||!n)){typeof r!="number"&&(r=-1);var a=e.indexOf(n);if(a!==-1){if(a===r)return;if(r!==-1)e.splice(a,1);else return}r!==-1?e.splice(r,0,n):e.push(n)}}function jh(e,n){return Math.round(e*n)/n}function Q6(e){return to(e)?e+"px":e}function Qz(e){for(;e.parent;)e=e.parent;return e}function Hz(e){e=Je({},{width:"100%",height:"100%"},e);const n=e.container||document.body,r=document.createElement("div");return r.setAttribute("class","djs-container djs-parent"),Nn(r,{position:"relative",overflow:"hidden",width:Q6(e.width),height:Q6(e.height)}),n.appendChild(r),r}function H6(e,n,r){const a=Lt("g");Jr(a).add(n);const s=r!==void 0?r:e.childNodes.length-1;return e.insertBefore(a,e.childNodes[s]||null),a}const Vz="base",V6=0,Uz=1,Yz={shape:["x","y","width","height"],connection:["waypoints"]};function qe(e,n,r,a){this._eventBus=n,this._elementRegistry=a,this._graphicsFactory=r,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,r=this._container=Hz(e),a=this._svg=Lt("svg");jt(a,{width:"100%",height:"100%"}),Ly(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)}),xn(r,a);const s=this._viewport=H6(a,"viewport");e.deferUpdate&&(this._viewboxChanged=vj(no(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 r=y6(n);r==="root"?this.removeRootElement(n):this._removeElement(n,r)}),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(Vz,V6)},qe.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");let r=this._layers[e];if(r||(r=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&r.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return r.group},qe.prototype._getChildIndex=function(e){return Ul(this._layers,function(n,r){return r.visible&&e>=r.index&&n++,n},0)},qe.prototype._createLayer=function(e,n){typeof n>"u"&&(n=Uz);const r=this._getChildIndex(n);return{group:H6(this._viewport,"layer-"+e,r),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 r=this._viewport,a=n.group,s=n.index;if(n.visible)return a;const c=this._getChildIndex(s);return r.insertBefore(a,r.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 r=n.group;return n.visible&&(cd(r),n.visible=!1),r},qe.prototype._removeLayer=function(e){const n=this._layers[e];n&&(delete this._layers[e],cd(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(Qz(e))||{}).rootElement:void 0},qe.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},qe.prototype._findPlaneForRoot=function(e){return Br(this._planes,function(n){return n.rootElement===e})},qe.prototype.getContainer=function(){return this._container},qe.prototype._updateMarker=function(e,n,r){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&&(r?(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:!!r}))},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 r=e.layer="root-"+n;this._ensureValid("root",e);const a=this.getLayer(r,V6);return this.hideLayer(r),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(r){return r.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,r=this._eventBus;r.fire("root.remove",{element:e}),r.fire("root.removed",{element:e}),n.remove(e)},qe.prototype._addRoot=function(e,n){const r=this._elementRegistry,a=this._eventBus;a.fire("root.add",{element:e}),r.add(e,n),a.fire("root.added",{element:e,gfx:n})},qe.prototype._setRoot=function(e,n){const r=this._rootElement;r&&(this._elementRegistry.updateGraphics(r,null,!0),this.hideLayer(r.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 r=Yz[e];if(!K3(r,function(s){return typeof n[s]<"u"}))throw new Error("must supply { "+r.join(", ")+" } with "+e)},qe.prototype._setParent=function(e,n,r){zz(n.children,e,r),e.parent=n},qe.prototype._addElement=function(e,n,r,a){r=r||this.getRootElement();const s=this._eventBus,c=this._graphicsFactory;this._ensureValid(e,n),s.fire(e+".add",{element:n,parent:r}),this._setParent(n,r,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,r){return this._addElement("shape",e,n,r)},qe.prototype.addConnection=function(e,n,r){return this._addElement("connection",e,n,r)},qe.prototype._removeElement=function(e,n){const r=this._elementRegistry,a=this._graphicsFactory,s=this._eventBus;if(e=r.get(e.id||e),!!e)return s.fire(n+".remove",{element:e}),a.remove(e),Lz(e.parent&&e.parent.children,e),e.parent=null,s.fire(n+".removed",{element:e}),r.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,r=this.getSize();let a,s,c,p,m,g,y;if(e)this._changeViewbox(function(){m=Math.min(r.width/e.width,r.height/e.height);const O=this._svg.createSVGMatrix().scale(m).translate(-e.x,-e.y);ud(n,O)});else return c=this._rootElement?this.getActiveLayer():null,a=c&&c.getBBox()||{},p=ud(n),s=p?p.matrix:Lj(),m=jh(s.a,1e3),g=jh(-s.e||0,1e3),y=jh(-s.f||0,1e3),e=this._cachedViewbox={x:g?g/m:0,y:y?y/m:0,width:r.width/m,height:r.height/m,scale:m,inner:{width:a.width||0,height:a.height||0,x:a.x||0,y:a.y||0},outer:r},e;return e},qe.prototype.scroll=function(e){const n=this._viewport;let r=n.getCTM();return e&&this._changeViewbox(function(){e=Je({dx:0,dy:0},e||{}),r=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(r),U6(n,r)}),{x:r.e,y:r.f}},qe.prototype.scrollToElement=function(e,n){let r=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"&&(r=n),n={top:n.top||r,right:n.right||r,bottom:n.bottom||r,left:n.left||r};const s=pd(e),c=Vy(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=Vy(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),B=Math.max(0,c.bottom-O.bottom),j=Math.min(0,c.top-O.top);g=N||_,y=B||j}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 r,a;return this._changeViewbox(function(){typeof n!="object"&&(r=this.viewbox().outer,n={x:r.width/2,y:r.height/2}),a=this._setZoom(e,n)}),jh(a.a,1e3)};function U6(e,n){const r="matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")";e.setAttribute("transform",r)}qe.prototype._fitViewport=function(e){const n=this.viewbox(),r=n.outer,a=n.inner;let s,c;return a.x>=0&&a.y>=0&&a.x+a.width<=r.width&&a.y+a.height<=r.height&&!e?c={x:0,y:0,width:Math.max(a.width+a.x,r.width),height:Math.max(a.height+a.y,r.height)}:(s=Math.min(1,r.width/a.width,r.height/a.height),c={x:a.x+(e?a.width/2-r.width/s/2:0),y:a.y+(e?a.height/2-r.height/s/2:0),width:r.width/s,height:r.height/s}),this.viewbox(c),this.viewbox(!1).scale},qe.prototype._setZoom=function(e,n){const r=this._svg,a=this._viewport,s=r.createSVGMatrix(),c=r.createSVGPoint();let p,m,g,y,O;g=a.getCTM();const S=g.a;return n?(p=Je(c,n),m=p.matrixTransform(g.inverse()),y=s.translate(m.x,m.y).scale(1/S*e).translate(-m.x,-m.y),O=g.multiply(y)):O=s.scale(e),U6(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 r;e.waypoints?r=this.getGraphics(e).getBBox():r=e;const a=r.x*n.scale-n.x*n.scale,s=r.y*n.scale-n.y*n.scale,c=r.width*n.scale,p=r.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 Kl="data-element-id";function Vi(e){this._elements={},this._eventBus=e}Vi.$inject=["eventBus"],Vi.prototype.add=function(e,n,r){var a=e.id;this._validateId(a),jt(n,Kl,a),r&&jt(r,Kl,a),this._elements[a]={element:e,gfx:n,secondaryGfx:r}},Vi.prototype.remove=function(e){var n=this._elements,r=e.id||e,a=r&&n[r];a&&(jt(a.gfx,Kl,""),a.secondaryGfx&&jt(a.secondaryGfx,Kl,""),delete n[r])},Vi.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 r=this.getGraphics(e),a=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,r,a)},Vi.prototype.updateGraphics=function(e,n,r){var a=e.id||e,s=this._elements[a];return r?s.secondaryGfx=n:s.gfx=n,n&&jt(n,Kl,a),n},Vi.prototype.get=function(e){var n;typeof e=="string"?n=e:n=e&&jt(e,Kl);var r=this._elements[n];return r&&r.element},Vi.prototype.filter=function(e){var n=[];return this.forEach(function(r,a){e(r,a)&&n.push(r)}),n},Vi.prototype.find=function(e){for(var n=this._elements,r=Object.keys(n),a=0;a<r.length;a++){var s=r[a],c=n[s],p=c.element,m=c.gfx;if(e(p,m))return p}},Vi.prototype.getAll=function(){return this.filter(function(e){return e})},Vi.prototype.forEach=function(e){var n=this._elements;Object.keys(n).forEach(function(r){var a=n[r],s=a.element,c=a.gfx;return e(s,c)})},Vi.prototype.getGraphics=function(e,n){var r=e.id||e,a=this._elements[r];return a&&(n?a.secondaryGfx:a.gfx)},Vi.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 Wz(e,n,r,a){var s=r.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 Gz(e){return e.__refs_collection===!0}function Jz(e,n){return Object.prototype.hasOwnProperty.call(e,n.name||n)}function Y6(e,n,r){var a=Wz(r[n.name]||[],e,n,r);Object.defineProperty(r,n.name,{enumerable:n.enumerable,value:a}),a.length&&a.forEach(function(s){e.set(s,n.inverse,r)})}function Kz(e,n,r){var a=n.inverse,s=r[n.name];Object.defineProperty(r,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,r),s=c,e.set(s,a,r)}}})}function ar(e,n){if(!(this instanceof ar))return new ar(e,n);e.inverse=n,n.inverse=e,this.props={},this.props[e.name]=e,this.props[n.name]=n}ar.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?Y6(this,n,e):Kz(this,n,e)},ar.prototype.ensureRefsCollection=function(e,n){var r=e[n.name];return Gz(r)||Y6(this,n,e),r},ar.prototype.ensureBound=function(e,n){Jz(e,n)||this.bind(e,n)},ar.prototype.unset=function(e,n,r){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).remove(r):e[n.name]=void 0)},ar.prototype.set=function(e,n,r){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).add(r):e[n.name]=r)};var Xy=new ar({name:"children",enumerable:!0,collection:!0},{name:"parent"}),W6=new ar({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),G6=new ar({name:"attachers",collection:!0},{name:"host"}),J6=new ar({name:"outgoing",collection:!0},{name:"source"}),K6=new ar({name:"incoming",collection:!0},{name:"target"});function hd(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var n=this.label,r=this.labels;!e&&n?r.remove(n):r.add(e,0)}}),Xy.bind(this,"parent"),W6.bind(this,"labels"),J6.bind(this,"outgoing"),K6.bind(this,"incoming")}function md(){hd.call(this),Xy.bind(this,"children"),G6.bind(this,"host"),G6.bind(this,"attachers")}Gr(md,hd);function X6(){hd.call(this),Xy.bind(this,"children")}Gr(X6,md);function Z6(){md.call(this),W6.bind(this,"labelTarget")}Gr(Z6,md);function $6(){hd.call(this),J6.bind(this,"source"),K6.bind(this,"target")}Gr($6,hd);var Xz={connection:$6,shape:md,label:Z6,root:X6};function Zz(e,n){var r=Xz[e];if(!r)throw new Error("unknown type: <"+e+">");return Je(new r,n)}function Xl(){this._uid=12}Xl.prototype.createRoot=function(e){return this.create("root",e)},Xl.prototype.createLabel=function(e){return this.create("label",e)},Xl.prototype.createShape=function(e){return this.create("shape",e)},Xl.prototype.createConnection=function(e){return this.create("connection",e)},Xl.prototype.create=function(e,n){return n=Je({},n||{}),n.id||(n.id=e+"_"+this._uid++),Zz(e,n)};var Lh="__fn",q6=1e3,$z=Array.prototype.slice;function yi(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}yi.prototype.on=function(e,n,r,a){if(e=Sr(e)?e:[e],ds(n)&&(a=r,r=n,n=q6),!to(n))throw new Error("priority must be a number");var s=r;a&&(s=no(r,a),s[Lh]=r[Lh]||r);var c=this;e.forEach(function(p){c._addListener(p,{priority:n,callback:s,next:null})})},yi.prototype.once=function(e,n,r,a){var s=this;if(ds(n)&&(a=r,r=n,n=q6),!to(n))throw new Error("priority must be a number");function c(){c.__isTomb=!0;var p=r.apply(a,arguments);return s.off(e,c),p}c[Lh]=r,this.on(e,n,c)},yi.prototype.off=function(e,n){e=Sr(e)?e:[e];var r=this;e.forEach(function(a){r._removeListener(a,n)})},yi.prototype.createEvent=function(e){var n=new gd;return n.init(e),n},yi.prototype.fire=function(e,n){var r,a,s,c;if(c=$z.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 gd?r=n:r=this.createEvent(n),c[0]=r;var p=r.type;e!==p&&(r.type=e);try{s=this._invokeListeners(r,c,a)}finally{e!==p&&(r.type=p)}return s===void 0&&r.defaultPrevented&&(s=!1),s}},yi.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},yi.prototype._destroy=function(){this._listeners={}},yi.prototype._invokeListeners=function(e,n,r){for(var a;r&&!e.cancelBubble;)a=this._invokeListener(e,n,r),r=r.next;return a},yi.prototype._invokeListener=function(e,n,r){var a;if(r.callback.__isTomb)return a;try{a=qz(r.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},yi.prototype._addListener=function(e,n){var r=this._getListeners(e),a;if(!r){this._setListeners(e,n);return}for(;r;){if(r.priority<n.priority){n.next=r,a?a.next=n:this._setListeners(e,n);return}a=r,r=r.next}a.next=n},yi.prototype._getListeners=function(e){return this._listeners[e]},yi.prototype._setListeners=function(e,n){this._listeners[e]=n},yi.prototype._removeListener=function(e,n){var r=this._getListeners(e),a,s,c;if(!n){this._setListeners(e,null);return}for(;r;)a=r.next,c=r.callback,(c===n||c[Lh]===n)&&(s?s.next=a:this._setListeners(e,a)),s=r,r=a};function gd(){}gd.prototype.stopPropagation=function(){this.cancelBubble=!0},gd.prototype.preventDefault=function(){this.defaultPrevented=!0},gd.prototype.init=function(e){Je(this,e||{})};function qz(e,n){return e.apply(null,n)}function eQ(e){return e.childNodes[0]}function tQ(e){return e.parentNode.childNodes[1]}function Ui(e,n){this._eventBus=e,this._elementRegistry=n}Ui.$inject=["eventBus","elementRegistry"],Ui.prototype._getChildrenContainer=function(e){var n=this._elementRegistry.getGraphics(e),r;return e.parent?(r=tQ(n),r||(r=Lt("g"),Jr(r).add("djs-children"),xn(n.parentNode,r))):r=n,r},Ui.prototype._clear=function(e){var n=eQ(e);return d6(n),n},Ui.prototype._createContainer=function(e,n,r,a){var s=Lt("g");Jr(s).add("djs-group"),typeof r<"u"?eS(s,n,n.childNodes[r]):xn(n,s);var c=Lt("g");Jr(c).add("djs-element"),Jr(c).add("djs-"+e),a&&Jr(c).add("djs-frame"),xn(s,c);var p=Lt("g");return Jr(p).add("djs-visual"),xn(c,p),c},Ui.prototype.create=function(e,n,r){var a=this._getChildrenContainer(n.parent);return this._createContainer(e,a,r,x6(n))},Ui.prototype.updateContainments=function(e){var n=this,r=this._elementRegistry,a;a=Ul(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=r.getGraphics(m);eS(g.parentNode,p)})}})},Ui.prototype.drawShape=function(e,n,r={}){var a=this._eventBus;return a.fire("render.shape",{gfx:e,element:n,attrs:r})},Ui.prototype.getShapePath=function(e){var n=this._eventBus;return n.fire("render.getShapePath",e)},Ui.prototype.drawConnection=function(e,n,r={}){var a=this._eventBus;return a.fire("render.connection",{gfx:e,element:n,attrs:r})},Ui.prototype.getConnectionPath=function(e){var n=this._eventBus;return n.fire("render.getConnectionPath",e)},Ui.prototype.update=function(e,n,r){if(!!n.parent){var a=this._clear(r);if(e==="shape")this.drawShape(a,n),g6(r,n.x,n.y);else if(e==="connection")this.drawConnection(a,n);else throw new Error("unknown type: "+e);n.hidden?jt(r,"display","none"):jt(r,"display","block")}},Ui.prototype.remove=function(e){var n=this._elementRegistry.getGraphics(e);cd(n.parentNode)};function eS(e,n,r){var a=r||n.firstChild;e!==a&&n.insertBefore(e,a)}const nQ={__depends__:[jz],__init__:["canvas"],canvas:["type",qe],elementRegistry:["type",Vi],elementFactory:["type",Xl],eventBus:["type",yi],graphicsFactory:["type",Ui]};function iQ(e){var n=new z6(e);return n.init(),n}function rQ(e){e=e||{};var n={config:["value",e]},r=[n,nQ].concat(e.modules||[]);return iQ(r)}function so(e,n){this._injector=n||rQ(e),this.get("eventBus").fire("diagram.init")}so.prototype.get=function(e,n){return this._injector.get(e,n)},so.prototype.invoke=function(e,n,r){return this._injector.invoke(e,n,r)},so.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},so.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function Zy(){}Zy.prototype.get=function(e){return this.$model.properties.get(this,e)},Zy.prototype.set=function(e,n){this.$model.properties.set(this,e,n)};function tS(e,n){this.model=e,this.properties=n}tS.prototype.createType=function(e){var n=this.model,r=this.properties,a=Object.create(Zy.prototype);We(e.properties,function(p){!p.isMany&&p.default!==void 0&&(a[p.name]=p.default)}),r.defineModel(a,n),r.defineDescriptor(a,e);var s=e.ns.name;function c(p){r.define(this,"$type",{value:s,enumerable:!0}),r.define(this,"$attrs",{value:{}}),r.define(this,"$parent",{writable:!0}),We(p,no(function(m,g){this.set(g,m)},this))}return c.prototype=a,c.hasType=a.$instanceOf=this.model.hasType,r.defineModel(c,n),r.defineDescriptor(c,e),c};var aQ={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},nS={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 $y(e,n){var r=nS[e];return r?r(n):n}function qy(e){return!!aQ[e]}function iS(e){return!!nS[e]}function Fn(e,n){var r=e.split(/:/),a,s;if(r.length===1)a=e,s=n;else if(r.length===2)a=r[1],s=r[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(s?s+":":"")+a,{name:e,prefix:s,localName:a}}function Yi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Yi.prototype.build=function(){return _j(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Yi.prototype.addProperty=function(e,n,r){typeof n=="boolean"&&(r=n,n=void 0),this.addNamedProperty(e,r!==!1);var a=this.properties;n!==void 0?a.splice(n,0,e):a.push(e)},Yi.prototype.replaceProperty=function(e,n,r){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,r?void 0:m,p),c[a.name]=c[a.localName]=n},Yi.prototype.redefineProperty=function(e,n,r){var a=e.ns.prefix,s=n.split("#"),c=Fn(s[0],a),p=Fn(s[1],c.prefix).name,m=this.propertiesByName[p];if(m)this.replaceProperty(m,e,r);else throw new Error("refined property <"+p+"> not found");delete e.redefines},Yi.prototype.addNamedProperty=function(e,n){var r=e.ns,a=this.propertiesByName;n&&(this.assertNotDefined(e,r.name),this.assertNotDefined(e,r.localName)),a[r.name]=a[r.localName]=e},Yi.prototype.removeNamedProperty=function(e){var n=e.ns,r=this.propertiesByName;delete r[n.name],delete r[n.localName]},Yi.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},Yi.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},Yi.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},Yi.prototype.assertNotDefined=function(e,n){var r=e.name,a=this.propertiesByName[r];if(a)throw new Error("property <"+r+"> already defined; override of <"+a.definedBy.ns.name+"#"+a.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},Yi.prototype.hasProperty=function(e){return this.propertiesByName[e]},Yi.prototype.addTrait=function(e,n){n&&this.assertNotTrait(e);var r=this.allTypesByName,a=this.allTypes,s=e.name;s in r||(We(e.properties,no(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),r[s]=e)};function lo(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,We(e,no(this.registerPackage,this))}lo.prototype.getPackage=function(e){return this.packageMap[e]},lo.prototype.getPackages=function(){return this.packages},lo.prototype.registerPackage=function(e){e=Je({},e);var n=this.packageMap;rS(n,e,"prefix"),rS(n,e,"uri"),We(e.types,no(function(r){this.registerType(r,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)},lo.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 r=Fn(e.name,n.prefix),a=r.name,s={};We(e.properties,no(function(c){var p=Fn(c.name,r.prefix),m=p.name;qy(c.type)||(c.type=Fn(c.type,p.prefix).name),Je(c,{ns:p,name:m}),s[m]=c},this)),Je(e,{ns:r,name:a,propertiesByName:s}),We(e.extends,no(function(c){var p=Fn(c,r.prefix),m=this.typeMap[p.name];m.traits=m.traits||[],m.traits.push(a)},this)),this.definePackage(e,n),this.typeMap[a]=e},lo.prototype.mapTypes=function(e,n,r){var a=qy(e.name)?{name:e.name}:this.typeMap[e.name],s=this;function c(g,y){var O=Fn(g,qy(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,r?p:m),n(a,!r),We(a.traits,p)},lo.prototype.getEffectiveDescriptor=function(e){var n=Fn(e),r=new Yi(n);this.mapTypes(n,function(s,c){r.addTrait(s,c)});var a=r.build();return this.definePackage(a,a.allTypes[a.allTypes.length-1].$pkg),a},lo.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})};function rS(e,n,r){var a=n[r];if(a in e)throw new Error("package with "+r+" <"+a+"> already defined")}function bs(e){this.model=e}bs.prototype.set=function(e,n,r){if(!Dr(n)||!n.length)throw new TypeError("property name must be a non-empty string");var a=this.getProperty(e,n),s=a&&a.name;oQ(r)?a?delete e[s]:delete e.$attrs[e0(n)]:a?s in e?e[s]=r:aS(e,a,r):e.$attrs[e0(n)]=r},bs.prototype.get=function(e,n){var r=this.getProperty(e,n);if(!r)return e.$attrs[e0(n)];var a=r.name;return!e[a]&&r.isMany&&aS(e,r,[]),e[a]},bs.prototype.define=function(e,n,r){if(!r.writable){var a=r.value;r=Je({},r,{get:function(){return a}}),delete r.value}Object.defineProperty(e,n,r)},bs.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})},bs.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})},bs.prototype.getProperty=function(e,n){var r=this.model,a=r.getPropertyDescriptor(e,n);if(a)return a;if(n.includes(":"))return null;const s=r.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 oQ(e){return typeof e>"u"}function aS(e,n,r){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:r,configurable:!0})}function e0(e){return e.replace(/^:/,"")}function or(e,n={}){this.properties=new bs(this),this.factory=new tS(this,this.properties),this.registry=new lo(e,this.properties),this.typeCache={},this.config=n}or.prototype.create=function(e,n){var r=this.getType(e);if(!r)throw new Error("unknown type <"+e+">");return new r(n)},or.prototype.getType=function(e){var n=this.typeCache,r=Dr(e)?e:e.ns.name,a=n[r];return a||(e=this.registry.getEffectiveDescriptor(r),a=n[r]=this.factory.createType(e)),a},or.prototype.createAny=function(e,n,r){var a=Fn(e),s={$type:e,$instanceOf:function(p){return p===this.$type},get:function(p){return this[p]},set:function(p,m){bj(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(r,function(p,m){us(p)&&p.value!==void 0?s[p.name]=p.value:s[m]=p}),s},or.prototype.getPackage=function(e){return this.registry.getPackage(e)},or.prototype.getPackages=function(){return this.registry.getPackages()},or.prototype.getElementDescriptor=function(e){return e.$descriptor},or.prototype.hasType=function(e,n){n===void 0&&(n=e,e=this);var r=e.$model.getElementDescriptor(e);return n in r.allTypesByName},or.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]},or.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var oS=String.fromCharCode,sQ=Object.prototype.hasOwnProperty,lQ=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,Ad={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Ad).forEach(function(e){Ad[e.toUpperCase()]=Ad[e]});function cQ(e,n,r,a){return a?sQ.call(Ad,a)?Ad[a]:"&"+a+";":oS(n||parseInt(r,16))}function _s(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(lQ,cQ):e}var sS="non-whitespace outside of root node";function Zl(e){return new Error(e)}function lS(e){return"missing namespace for prefix <"+e+">"}function zh(e){return{get:e,enumerable:!0}}function uQ(e){var n={},r;for(r in e)n[r]=e[r];return n}function t0(e){return e+"$uri"}function dQ(e){var n={},r,a;for(r in e)a=e[r],n[a]=a,n[t0(a)]=r;return n}function cS(){return{line:0,column:0}}function fQ(e){throw e}function uS(e){if(!this)return new uS(e);var n=e&&e.proxy,r,a,s,c,p=fQ,m,g,y,O,S=cS,N=!1,_=!1,B=null,j=!1,R;function T(w){w instanceof Error||(w=Zl(w)),B=w,p(w,S)}function F(w){!m||(w instanceof Error||(w=Zl(w)),m(w,S))}this.on=function(w,k){if(typeof k!="function")throw Zl("required args <name, cb>");switch(w){case"openTag":a=k;break;case"text":r=k;break;case"closeTag":s=k;break;case"error":p=k;break;case"warn":m=k;break;case"cdata":c=k;break;case"attention":O=k;break;case"question":y=k;break;case"comment":g=k;break;default:throw Zl("unsupported event: "+w)}return this},this.ns=function(w){if(typeof w>"u"&&(w={}),typeof w!="object")throw Zl("required args <nsMap={}>");var k={},Q;for(Q in w)k[Q]=w[Q];return _=!0,R=k,this},this.parse=function(w){if(typeof w!="string")throw Zl("required args <xml=string>");return B=null,v(w),S=cS,j=!1,B},this.stop=function(){j=!0};function v(w){var k=_?[]:null,Q=_?dQ(R):null,M,H=[],ne=0,re=!1,de=!1,me=0,pe=0,Se,ye,_e,W,J,ie,ge,Te,se,he="",xe=0,Pe;function K(){if(Pe!==null)return Pe;var E,C,X,ee=_&&Q.xmlns,fe=_&&N?[]:null,De=xe,je=he,Ke=je.length,yt,ht,Ot,cn,ut,Tt={},hn={},ve,q,G;e:for(;De<Ke;De++)if(ve=!1,q=je.charCodeAt(De),!(q===32||q<14&&q>8)){for((q<65||q>122||q>90&&q<97)&&q!==95&&q!==58&&(F("illegal first char attribute name"),ve=!0),G=De+1;G<Ke;G++)if(q=je.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){F("missing attribute value"),De=G;continue e}if(q===61)break;F("illegal attribute name char"),ve=!0}if(ut=je.substring(De,G),ut==="xmlns:xmlns"&&(F("illegal declaration of xmlns"),ve=!0),q=je.charCodeAt(G+1),q===34)G=je.indexOf('"',De=G+2),G===-1&&(G=je.indexOf("'",De),G!==-1&&(F("attribute value quote missmatch"),ve=!0));else if(q===39)G=je.indexOf("'",De=G+2),G===-1&&(G=je.indexOf('"',De),G!==-1&&(F("attribute value quote missmatch"),ve=!0));else for(F("missing attribute value quotes"),ve=!0,G=G+1;G<Ke&&(q=je.charCodeAt(G+1),!(q===32||q<14&&q>8));G++);for(G===-1&&(F("missing closing quotes"),G=Ke,ve=!0),ve||(Ot=je.substring(De,G)),De=G;G+1<Ke&&(q=je.charCodeAt(G+1),!(q===32||q<14&&q>8));G++)De===G&&(F("illegal character after attribute end"),ve=!0);if(De=G+1,ve)continue e;if(ut in hn){F("attribute <"+ut+"> already defined");continue}if(hn[ut]=!0,!_){Tt[ut]=Ot;continue}if(N){if(ht=ut==="xmlns"?"xmlns":ut.charCodeAt(0)===120&&ut.substr(0,6)==="xmlns:"?ut.substr(6):null,ht!==null){if(E=_s(Ot),C=t0(ht),cn=R[E],!cn){if(ht==="xmlns"||C in Q&&Q[C]!==E)do cn="ns"+ne++;while(typeof Q[cn]<"u");else cn=ht;R[E]=cn}Q[ht]!==cn&&(yt||(Q=uQ(Q),yt=!0),Q[ht]=cn,ht==="xmlns"&&(Q[t0(cn)]=E,ee=cn),Q[C]=E),Tt[ut]=Ot;continue}fe.push(ut,Ot);continue}if(q=ut.indexOf(":"),q===-1){Tt[ut]=Ot;continue}if(!(X=Q[ut.substring(0,q)])){F(lS(ut.substring(0,q)));continue}ut=ee===X?ut.substr(q+1):X+ut.substr(q),Tt[ut]=Ot}if(N)for(De=0,Ke=fe.length;De<Ke;De++){if(ut=fe[De++],Ot=fe[De],q=ut.indexOf(":"),q!==-1){if(!(X=Q[ut.substring(0,q)])){F(lS(ut.substring(0,q)));continue}ut=ee===X?ut.substr(q+1):X+ut.substr(q)}Tt[ut]=Ot}return Pe=Tt}function P(){for(var E=/(\r\n|\r|\n)/g,C=0,X=0,ee=0,fe=pe,De,je;me>=ee&&(De=E.exec(w),!(!De||(fe=De[0].length+De.index,fe>me)));)C+=1,ee=fe;return me==-1?(X=fe,je=w.substring(pe)):pe===0?je=w.substring(pe,me):(X=me-ee,je=pe==-1?w.substring(me):w.substring(me,pe+1)),{data:je,line:C,column:X}}for(S=P,n&&(se=Object.create({},{name:zh(function(){return ge}),originalName:zh(function(){return Te}),attrs:zh(K),ns:zh(function(){return Q})}));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()&&F(sS);return}if(pe!==me){if(H.length){if(r&&(r(w.substring(pe,me),_s,S),j))return}else if(w.substring(pe,me).trim()&&(F(sS),j))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),S),j))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),_s,S),j))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),S),j))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),_s,S),j))return;pe+=1;continue}if(Pe={},W===47){if(re=!1,de=!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),re=!0,de=!0):(Se=ge=w.substring(me+1,pe),re=!0,de=!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),Pe=null;break}return T("invalid nodeName")}de||H.push(ge)}if(_){if(M=Q,re&&(de||k.push(M),Pe===null&&(N=Se.indexOf("xmlns",_e)!==-1)&&(xe=_e,he=Se,K(),N=!1)),Te=ge,W=ge.indexOf(":"),W!==-1){if(ie=Q[ge.substring(0,W)],!ie)return T("missing namespace on <"+Te+">");ge=ge.substr(W+1)}else ie=Q.xmlns;ie&&(ge=ie+":"+ge)}if(re&&(xe=_e,he=Se,a&&(n?a(se,_s,de,S):a(ge,K,_s,de,S),j)))return;if(de){if(s&&(s(n?se:ge,_s,re,S),j))return;_&&(re?Q=M:Q=k.pop())}pe+=1}}}function dS(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var n0={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},fS="property";function pS(e){return e.xml&&e.xml.serialize}function pQ(e){const n=pS(e);return n!==fS&&(n||null)}function hQ(e){return e.charAt(0).toUpperCase()+e.slice(1)}function hS(e,n){return dS(n)?e.prefix+":"+hQ(e.localName):e.name}function mQ(e,n){var r=e.name,a=e.localName,s=n&&n.xml&&n.xml.typePrefix;return s&&a.indexOf(s)===0?e.prefix+":"+a.slice(s.length):r}function gQ(e,n,r){const a=Fn(e,n.xmlns),s=`${n[a.prefix]||a.prefix}:${a.localName}`,c=Fn(s);var p=r.getPackage(c.prefix);return mQ(c,p)}function co(e){return new Error(e)}function Ea(e){return e.$descriptor}function AQ(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 co("expected element");var r=this.elementsById,a=Ea(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(r[c])throw co("duplicate ID <"+c+">");r[c]=n}},this.addWarning=function(n){this.warnings.push(n)}}function vd(){}vd.prototype.handleEnd=function(){},vd.prototype.handleText=function(){},vd.prototype.handleNode=function(){};function i0(){}i0.prototype=Object.create(vd.prototype),i0.prototype.handleNode=function(){return this};function $l(){}$l.prototype=Object.create(vd.prototype),$l.prototype.handleText=function(e){this.body=(this.body||"")+e};function bd(e,n){this.property=e,this.context=n}bd.prototype=Object.create($l.prototype),bd.prototype.handleNode=function(e){if(this.element)throw co("expected no sub nodes");return this.element=this.createReference(e),this},bd.prototype.handleEnd=function(){this.element.id=this.body},bd.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function r0(e,n){this.element=n,this.propertyDesc=e}r0.prototype=Object.create($l.prototype),r0.prototype.handleEnd=function(){var e=this.body||"",n=this.element,r=this.propertyDesc;e=$y(r.type,e),r.isMany?n.get(r.name).push(e):n.set(r.name,e)};function Qh(){}Qh.prototype=Object.create($l.prototype),Qh.prototype.handleNode=function(e){var n=this,r=this.element;return r?n=this.handleChild(e):(r=this.element=this.createElement(e),this.context.addElement(r)),n};function Wn(e,n,r){this.model=e,this.type=e.getType(n),this.context=r}Wn.prototype=Object.create(Qh.prototype),Wn.prototype.addReference=function(e){this.context.addReference(e)},Wn.prototype.handleText=function(e){var n=this.element,r=Ea(n),a=r.bodyProperty;if(!a)throw co("unexpected body text <"+e+">");$l.prototype.handleText.call(this,e)},Wn.prototype.handleEnd=function(){var e=this.body,n=this.element,r=Ea(n),a=r.bodyProperty;a&&e!==void 0&&(e=$y(a.type,e),n.set(a.name,e))},Wn.prototype.createElement=function(e){var n=e.attributes,r=this.type,a=Ea(r),s=this.context,c=new r({}),p=this.model,m;return We(n,function(g,y){var O=a.propertiesByName[y],S;O&&O.isReference?O.isMany?(S=g.split(" "),We(S,function(N){s.addReference({element:c,property:O.ns.name,id:N})})):s.addReference({element:c,property:O.ns.name,id:g}):(O?g=$y(O.type,g):y==="xmlns"?y=":"+y:(m=Fn(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},Wn.prototype.getPropertyForNode=function(e){var n=e.name,r=Fn(n),a=this.type,s=this.model,c=Ea(a),p=r.name,m=c.propertiesByName[p];if(m&&!m.isAttr){const y=pQ(m);if(y){const O=e.attributes[y];if(O){const S=gQ(O,e.ns,s),N=s.getType(S);return Je({},m,{effectiveType:Ea(N).name})}}return m}var g=s.getPackage(r.prefix);if(g){const y=hS(r,g),O=s.getType(y);if(m=Br(c.properties,function(S){return!S.isVirtual&&!S.isReference&&!S.isAttribute&&O.hasType(S.type)}),m)return Je({},m,{effectiveType:Ea(O).name})}else if(m=Br(c.properties,function(y){return!y.isReference&&!y.isAttribute&&y.type==="Element"}),m)return m;throw co("unrecognized element <"+r.name+">")},Wn.prototype.toString=function(){return"ElementDescriptor["+Ea(this.type).name+"]"},Wn.prototype.valueHandler=function(e,n){return new r0(e,n)},Wn.prototype.referenceHandler=function(e){return new bd(e,this.context)},Wn.prototype.handler=function(e){return e==="Element"?new ql(this.model,e,this.context):new Wn(this.model,e,this.context)},Wn.prototype.handleChild=function(e){var n,r,a,s;if(n=this.getPropertyForNode(e),a=this.element,r=n.effectiveType||n.type,iS(r))return this.valueHandler(n,a);n.isReference?s=this.referenceHandler(n).handleNode(e):s=this.handler(r).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 a0(e,n,r){Wn.call(this,e,n,r)}a0.prototype=Object.create(Wn.prototype),a0.prototype.createElement=function(e){var n=e.name,r=Fn(n),a=this.model,s=this.type,c=a.getPackage(r.prefix),p=c&&hS(r,c)||n;if(!s.hasType(p))throw co("unexpected element <"+e.originalName+">");return Wn.prototype.createElement.call(this,e)};function ql(e,n,r){this.model=e,this.context=r}ql.prototype=Object.create(Qh.prototype),ql.prototype.createElement=function(e){var n=e.name,r=Fn(n),a=r.prefix,s=e.ns[a+"$uri"],c=e.attributes;return this.model.createAny(n,s,c)},ql.prototype.handleChild=function(e){var n=new ql(this.model,"Element",this.context).handleNode(e),r=this.element,a=n.element,s;return a!==void 0&&(s=r.$children=r.$children||[],s.push(a),a.$parent=r),n},ql.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function o0(e){e instanceof or&&(e={model:e}),Je(this,{lax:!1},e)}o0.prototype.fromXML=function(e,n,r){var a=n.rootHandler;n instanceof Wn?(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 AQ(Je({},n,{rootHandler:a})),m=new uS({proxy:!0}),g=vQ();a.context=p,g.push(a);function y(k,Q,M){var H=Q(),ne=H.line,re=H.column,de=H.data;de.charAt(0)==="<"&&de.indexOf(" ")!==-1&&(de=de.slice(0,de.indexOf(" "))+">");var me="unparsable content "+(de?de+" ":"")+`detected
32
+ `,yP=["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 xP(e){const n=window.getComputedStyle(e),r=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:yP.map(p=>`${p}:${n.getPropertyValue(p)}`).join(";"),paddingSize:a,borderSize:s,boxSizing:r}}function C3(e,n=1,r){var a;Er||(Er=document.createElement("textarea"),document.body.appendChild(Er));const{paddingSize:s,borderSize:c,boxSizing:p,contextStyle:m}=xP(e);Er.setAttribute("style",`${m};${_P}`),Er.value=e.value||e.placeholder||"";let g=Er.scrollHeight;const y={};p==="border-box"?g=g+c:p==="content-box"&&(g=g-s),Er.value="";const O=Er.scrollHeight-s;if(as(n)){let S=O*n;p==="border-box"&&(S=S+s+c),g=Math.max(S,g),y.minHeight=`${S}px`}if(as(r)){let S=O*r;p==="border-box"&&(S=S+s+c),g=Math.min(S,g)}return y.height=`${g}px`,(a=Er.parentNode)==null||a.removeChild(Er),Er=void 0,y}const wP=os({id:{type:String,default:void 0},size:uy,disabled:Boolean,modelValue:{type:vi([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:vi([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:id},prefixIcon:{type:id},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:vi([Object,Array,String]),default:()=>e3({})},autofocus:{type:Boolean,default:!1}}),EP={[oy]:e=>wr(e),input:e=>wr(e),change:e=>wr(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},CP=["role"],kP=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],SP=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],DP=x.defineComponent({name:"ElInput",inheritAttrs:!1}),BP=x.defineComponent({...DP,props:wP,emits:EP,setup(e,{expose:n,emit:r}){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"?R.b():j.b(),j.m(_.value),j.is("disabled",B.value),j.is("exceed",xe.value),{[j.b("group")]:c.prepend||c.append,[j.bm("group","append")]:c.append,[j.bm("group","prepend")]:c.prepend,[j.m("prefix")]:c.prefix||a.prefixIcon,[j.m("suffix")]:c.suffix||a.suffixIcon||a.clearable||a.showPassword,[j.bm("suffix","password-clear")]:ge.value&&Te.value},s.class]),g=x.computed(()=>[j.e("wrapper"),j.is("focus",re.value)]),y=Q7({excludeKeys:x.computed(()=>Object.keys(p.value))}),{form:O,formItem:S}=E3(),{inputId:N}=bP(a,{formItemContext:S}),_=w3(),B=hy(),j=Yr("input"),R=Yr("textarea"),T=x.shallowRef(),F=x.shallowRef(),v=x.ref(!1),w=x.ref(!1),k=x.ref(!1),Q=x.ref(),M=x.shallowRef(a.inputStyle),H=x.computed(()=>T.value||F.value),{wrapperRef:ne,isFocused:re,handleFocus:de,handleBlur:me}=fP(H,{afterBlur(){var G;a.validateEvent&&((G=S==null?void 0:S.validate)==null||G.call(S,"blur").catch(ae=>Ur(ae)))}}),pe=x.computed(()=>{var G;return(G=O==null?void 0:O.statusIcon)!=null?G:!1}),Se=x.computed(()=>(S==null?void 0:S.validateState)||""),ye=x.computed(()=>Se.value&&M7[Se.value]),_e=x.computed(()=>k.value?O7:k7),W=x.computed(()=>[s.style,a.inputStyle]),J=x.computed(()=>[a.inputStyle,M.value,{resize:a.resize}]),ie=x.computed(()=>j4(a.modelValue)?"":String(a.modelValue)),ge=x.computed(()=>a.clearable&&!B.value&&!a.readonly&&!!ie.value&&(re.value||v.value)),Te=x.computed(()=>a.showPassword&&!B.value&&!a.readonly&&!!ie.value&&(!!ie.value||re.value)),se=x.computed(()=>a.showWordLimit&&!!y.value.maxlength&&(a.type==="text"||a.type==="textarea")&&!B.value&&!a.readonly&&!a.showPassword),he=x.computed(()=>ie.value.length),xe=x.computed(()=>!!se.value&&he.value>Number(y.value.maxlength)),Pe=x.computed(()=>!!c.suffix||!!a.suffixIcon||ge.value||a.showPassword||se.value||!!Se.value&&pe.value),[K,P]=uP(T);E4(F,G=>{if(X(),!se.value||a.resize!=="both")return;const ae=G[0],{width:Ce}=ae.contentRect;Q.value={right:`calc(100% - ${Ce+15+6}px)`}});const E=()=>{const{type:G,autosize:ae}=a;if(!(!Ai||G!=="textarea"||!F.value))if(ae){const Ce=ed(ae)?ae.minRows:void 0,Le=ed(ae)?ae.maxRows:void 0,it=C3(F.value,Ce,Le);M.value={overflowY:"hidden",...it},x.nextTick(()=>{F.value.offsetHeight,M.value=it})}else M.value={minHeight:C3(F.value).minHeight}},X=(G=>{let ae=!1;return()=>{var Ce;if(ae||!a.autosize)return;((Ce=F.value)==null?void 0:Ce.offsetParent)===null||(G(),ae=!0)}})(E),ee=()=>{const G=H.value,ae=a.formatter?a.formatter(ie.value):ie.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===ie.value){ee();return}r(oy,ae),r("input",ae),await x.nextTick(),ee(),P()}},De=G=>{r("change",G.target.value)},je=G=>{r("compositionstart",G),w.value=!0},Ke=G=>{var ae;r("compositionupdate",G);const Ce=(ae=G.target)==null?void 0:ae.value,Le=Ce[Ce.length-1]||"";w.value=!j7(Le)},yt=G=>{r("compositionend",G),w.value&&(w.value=!1,fe(G))},ht=()=>{k.value=!k.value,Ot()},Ot=async()=>{var G;await x.nextTick(),(G=H.value)==null||G.focus()},cn=()=>{var G;return(G=H.value)==null?void 0:G.blur()},ut=G=>{v.value=!1,r("mouseleave",G)},Tt=G=>{v.value=!0,r("mouseenter",G)},hn=G=>{r("keydown",G)},ve=()=>{var G;(G=H.value)==null||G.select()},q=()=>{r(oy,""),r("change",""),r("clear"),r("input","")};return x.watch(()=>a.modelValue,()=>{var G;x.nextTick(()=>E()),a.validateEvent&&((G=S==null?void 0:S.validate)==null||G.call(S,"change").catch(ae=>Ur(ae)))}),x.watch(ie,()=>ee()),x.watch(()=>a.type,async()=>{await x.nextTick(),ee(),E()}),x.onMounted(()=>{!a.formatter&&a.parser&&Ur("ElInput","If you set the parser, you also need to set the formatter."),ee(),x.nextTick(E)}),n({input:T,textarea:F,ref:H,textareaStyle:J,autosize:x.toRef(a,"autosize"),focus:Ot,blur:cn,select:ve,clear:q,resizeTextarea:E}),(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:Tt,onMouseleave:ut}),[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(j).be("group","prepend"))},[x.renderSlot(G.$slots,"prepend")],2)):x.createCommentVNode("v-if",!0),x.createElementVNode("div",{ref_key:"wrapperRef",ref:ne,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(j).e("prefix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(j).e("prefix-inner"))},[x.renderSlot(G.$slots,"prefix"),G.prefixIcon?(x.openBlock(),x.createBlock(x.unref(Wr),{key:0,class:x.normalizeClass(x.unref(j).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(j).e("inner")},x.unref(y),{type:G.showPassword?k.value?"text":"password":G.type,disabled:x.unref(B),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:je,onCompositionupdate:Ke,onCompositionend:yt,onInput:fe,onFocus:ae[0]||(ae[0]=(...Ce)=>x.unref(de)&&x.unref(de)(...Ce)),onBlur:ae[1]||(ae[1]=(...Ce)=>x.unref(me)&&x.unref(me)(...Ce)),onChange:De,onKeydown:hn}),null,16,kP),x.createCommentVNode(" suffix slot "),x.unref(Pe)?(x.openBlock(),x.createElementBlock("span",{key:1,class:x.normalizeClass(x.unref(j).e("suffix"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(j).e("suffix-inner"))},[!x.unref(ge)||!x.unref(Te)||!x.unref(se)?(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(j).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(j).e("icon"),x.unref(j).e("clear")]),onMousedown:x.withModifiers(x.unref(Fl),["prevent"]),onClick:q},{default:x.withCtx(()=>[x.createVNode(x.unref(Y4))]),_: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(j).e("icon"),x.unref(j).e("password")]),onClick:ht},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(_e))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.unref(se)?(x.openBlock(),x.createElementBlock("span",{key:3,class:x.normalizeClass(x.unref(j).e("count"))},[x.createElementVNode("span",{class:x.normalizeClass(x.unref(j).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(j).e("icon"),x.unref(j).e("validateIcon"),x.unref(j).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(j).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:F,class:x.unref(R).e("inner")},x.unref(y),{tabindex:G.tabindex,disabled:x.unref(B),readonly:G.readonly,autocomplete:G.autocomplete,style:x.unref(J),"aria-label":G.label,placeholder:G.placeholder,form:a.form,autofocus:a.autofocus,onCompositionstart:je,onCompositionupdate:Ke,onCompositionend:yt,onInput:fe,onFocus:ae[2]||(ae[2]=(...Ce)=>x.unref(de)&&x.unref(de)(...Ce)),onBlur:ae[3]||(ae[3]=(...Ce)=>x.unref(me)&&x.unref(me)(...Ce)),onChange:De,onKeydown:hn}),null,16,SP),x.unref(se)?(x.openBlock(),x.createElementBlock("span",{key:0,style:x.normalizeStyle(Q.value),class:x.normalizeClass(x.unref(j).e("count"))},x.toDisplayString(x.unref(he))+" / "+x.toDisplayString(x.unref(y).maxlength),7)):x.createCommentVNode("v-if",!0)],64))],16,CP)),[[x.vShow,G.type!=="hidden"]])}});var IP=Xa(BP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const OP=uh(IP),my="focus-trap.focus-after-trapped",gy="focus-trap.focus-after-released",TP="focus-trap.focusout-prevented",k3={cancelable:!0,bubbles:!1},NP={cancelable:!0,bubbles:!1},S3="focusAfterTrapped",D3="focusAfterReleased",MP=Symbol("elFocusTrap"),Ay=x.ref(),Ah=x.ref(0),vy=x.ref(0);let vh=0;const B3=e=>{const n=[],r=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(;r.nextNode();)n.push(r.currentNode);return n},I3=(e,n)=>{for(const r of e)if(!FP(r,n))return r},FP=(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},PP=e=>{const n=B3(e),r=I3(n,e),a=I3(n.reverse(),e);return[r,a]},RP=e=>e instanceof HTMLInputElement&&"select"in e,Za=(e,n)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),vy.value=window.performance.now(),e!==r&&RP(e)&&n&&e.select()}};function O3(e,n){const r=[...e],a=e.indexOf(n);return a!==-1&&r.splice(a,1),r}const jP=()=>{let e=[];return{push:a=>{const s=e[0];s&&a!==s&&s.pause(),e=O3(e,a),e.unshift(a)},remove:a=>{var s,c;e=O3(e,a),(c=(s=e[0])==null?void 0:s.resume)==null||c.call(s)}}},LP=(e,n=!1)=>{const r=document.activeElement;for(const a of e)if(Za(a,n),document.activeElement!==r)return},T3=jP(),zP=()=>Ah.value>vy.value,bh=()=>{Ay.value="pointer",Ah.value=window.performance.now()},N3=()=>{Ay.value="keyboard",Ah.value=window.performance.now()},QP=()=>(x.onMounted(()=>{vh===0&&(document.addEventListener("mousedown",bh),document.addEventListener("touchstart",bh),document.addEventListener("keydown",N3)),vh++}),x.onBeforeUnmount(()=>{vh--,vh<=0&&(document.removeEventListener("mousedown",bh),document.removeEventListener("touchstart",bh),document.removeEventListener("keydown",N3))}),{focusReason:Ay,lastUserFocusTimestamp:Ah,lastAutomatedFocusTimestamp:vy}),_h=e=>new CustomEvent(TP,{...NP,detail:e}),HP=x.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[S3,D3,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const r=x.ref();let a,s;const{focusReason:c}=QP();lP(B=>{e.trapped&&!p.paused&&n("release-requested",B)});const p={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=B=>{if(!e.loop&&!e.trapped||p.paused)return;const{key:j,altKey:R,ctrlKey:T,metaKey:F,currentTarget:v,shiftKey:w}=B,{loop:k}=e,Q=j===dh.tab&&!R&&!T&&!F,M=document.activeElement;if(Q&&M){const H=v,[ne,re]=PP(H);if(ne&&re){if(!w&&M===re){const me=_h({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(B.preventDefault(),k&&Za(ne,!0))}else if(w&&[ne,H].includes(M)){const me=_h({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||(B.preventDefault(),k&&Za(re,!0))}}else if(M===H){const me=_h({focusReason:c.value});n("focusout-prevented",me),me.defaultPrevented||B.preventDefault()}}};x.provide(MP,{focusTrapRef:r,onKeydown:m}),x.watch(()=>e.focusTrapEl,B=>{B&&(r.value=B)},{immediate:!0}),x.watch([r],([B],[j])=>{B&&(B.addEventListener("keydown",m),B.addEventListener("focusin",O),B.addEventListener("focusout",S)),j&&(j.removeEventListener("keydown",m),j.removeEventListener("focusin",O),j.removeEventListener("focusout",S))});const g=B=>{n(S3,B)},y=B=>n(D3,B),O=B=>{const j=x.unref(r);if(!j)return;const R=B.target,T=B.relatedTarget,F=R&&j.contains(R);e.trapped||T&&j.contains(T)||(a=T),F&&n("focusin",B),!p.paused&&e.trapped&&(F?s=R:Za(s,!0))},S=B=>{const j=x.unref(r);if(!(p.paused||!j))if(e.trapped){const R=B.relatedTarget;!j4(R)&&!j.contains(R)&&setTimeout(()=>{if(!p.paused&&e.trapped){const T=_h({focusReason:c.value});n("focusout-prevented",T),T.defaultPrevented||Za(s,!0)}},0)}else{const R=B.target;R&&j.contains(R)||n("focusout",B)}};async function N(){await x.nextTick();const B=x.unref(r);if(B){T3.push(p);const j=B.contains(document.activeElement)?a:document.activeElement;if(a=j,!B.contains(j)){const T=new Event(my,k3);B.addEventListener(my,g),B.dispatchEvent(T),T.defaultPrevented||x.nextTick(()=>{let F=e.focusStartEl;wr(F)||(Za(F),document.activeElement!==F&&(F="first")),F==="first"&&LP(B3(B),!0),(document.activeElement===j||F==="container")&&Za(B)})}}}function _(){const B=x.unref(r);if(B){B.removeEventListener(my,g);const j=new CustomEvent(gy,{...k3,detail:{focusReason:c.value}});B.addEventListener(gy,y),B.dispatchEvent(j),!j.defaultPrevented&&(c.value=="keyboard"||!zP()||B.contains(document.activeElement))&&Za(a!=null?a:document.body),B.removeEventListener(gy,y),T3.remove(p)}}return x.onMounted(()=>{e.trapped&&N(),x.watch(()=>e.trapped,B=>{B?N():_()})}),x.onBeforeUnmount(()=>{e.trapped&&_()}),{onKeydown:m}}});function VP(e,n,r,a,s,c){return x.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var UP=Xa(HP,[["render",VP],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const YP=os({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"}}),WP=["textContent"],GP=x.defineComponent({name:"ElBadge"}),JP=x.defineComponent({...GP,props:YP,setup(e,{expose:n}){const r=e,a=Yr("badge"),s=x.computed(()=>r.isDot?"":as(r.value)&&as(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.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,WP),[[x.vShow,!c.hidden&&(x.unref(s)||c.isDot)]])]),_:1},8,["name"])],2))}});var KP=Xa(JP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const XP=uh(KP),M3=Symbol("buttonGroupContextKey"),ZP=(e,n)=>{H7({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 r=x.inject(M3,void 0),a=dy("button"),{form:s}=E3(),c=w3(x.computed(()=>r==null?void 0:r.size)),p=hy(),m=x.ref(),g=x.useSlots(),y=x.computed(()=>e.type||(r==null?void 0:r.type)||""),O=x.computed(()=>{var B,j,R;return(R=(j=e.autoInsertSpace)!=null?j:(B=a.value)==null?void 0:B.autoInsertSpace)!=null?R:!1}),S=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 B;const j=(B=g.default)==null?void 0:B.call(g);if(O.value&&(j==null?void 0:j.length)===1){const R=j[0];if((R==null?void 0:R.type)===x.Text){const T=R.children;return/^\p{Unified_Ideograph}{2}$/u.test(T.trim())}}return!1});return{_disabled:p,_size:c,_type:y,_ref:m,_props:S,shouldAddSpace:N,handleClick:B=>{e.nativeType==="reset"&&(s==null||s.resetFields()),n("click",B)}}},by=os({size:uy,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:id},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:id,default:()=>G4},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:vi([String,Object]),default:"button"}}),$P={click:e=>e instanceof MouseEvent};function Tn(e,n){qP(e)&&(e="100%");var r=eR(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),r&&(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 yh(e){return Math.min(1,Math.max(0,e))}function qP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function eR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function F3(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function xh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ls(e){return e.length===1?"0"+e:String(e)}function tR(e,n,r){return{r:Tn(e,255)*255,g:Tn(n,255)*255,b:Tn(r,255)*255}}function P3(e,n,r){e=Tn(e,255),n=Tn(n,255),r=Tn(r,255);var a=Math.max(e,n,r),s=Math.min(e,n,r),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-r)/g+(n<r?6:0);break;case n:c=(r-e)/g+2;break;case r:c=(e-n)/g+4;break}c/=6}return{h:c,s:p,l:m}}function _y(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*(6*r):r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function nR(e,n,r){var a,s,c;if(e=Tn(e,360),n=Tn(n,100),r=Tn(r,100),n===0)s=r,c=r,a=r;else{var p=r<.5?r*(1+n):r+n-r*n,m=2*r-p;a=_y(m,p,e+1/3),s=_y(m,p,e),c=_y(m,p,e-1/3)}return{r:a*255,g:s*255,b:c*255}}function R3(e,n,r){e=Tn(e,255),n=Tn(n,255),r=Tn(r,255);var a=Math.max(e,n,r),s=Math.min(e,n,r),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-r)/m+(n<r?6:0);break;case n:c=(r-e)/m+2;break;case r:c=(e-n)/m+4;break}c/=6}return{h:c,s:g,v:p}}function iR(e,n,r){e=Tn(e,360)*6,n=Tn(n,100),r=Tn(r,100);var a=Math.floor(e),s=e-a,c=r*(1-n),p=r*(1-s*n),m=r*(1-(1-s)*n),g=a%6,y=[r,p,c,c,m,r][g],O=[m,r,r,p,c,c][g],S=[c,c,m,r,r,p][g];return{r:y*255,g:O*255,b:S*255}}function j3(e,n,r,a){var s=[ls(Math.round(e).toString(16)),ls(Math.round(n).toString(16)),ls(Math.round(r).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 rR(e,n,r,a,s){var c=[ls(Math.round(e).toString(16)),ls(Math.round(n).toString(16)),ls(Math.round(r).toString(16)),ls(aR(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 aR(e){return Math.round(parseFloat(e)*255).toString(16)}function L3(e){return Qi(e)/255}function Qi(e){return parseInt(e,16)}function oR(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var yy={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 sR(e){var n={r:0,g:0,b:0},r=1,a=null,s=null,c=null,p=!1,m=!1;return typeof e=="string"&&(e=uR(e)),typeof e=="object"&&(va(e.r)&&va(e.g)&&va(e.b)?(n=tR(e.r,e.g,e.b),p=!0,m=String(e.r).substr(-1)==="%"?"prgb":"rgb"):va(e.h)&&va(e.s)&&va(e.v)?(a=xh(e.s),s=xh(e.v),n=iR(e.h,a,s),p=!0,m="hsv"):va(e.h)&&va(e.s)&&va(e.l)&&(a=xh(e.s),c=xh(e.l),n=nR(e.h,a,c),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=F3(r),{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:r}}var lR="[-\\+]?\\d+%?",cR="[-\\+]?\\d*\\.\\d+%?",$a="(?:".concat(cR,")|(?:").concat(lR,")"),xy="[\\s|\\(]+(".concat($a,")[,|\\s]+(").concat($a,")[,|\\s]+(").concat($a,")\\s*\\)?"),wy="[\\s|\\(]+(".concat($a,")[,|\\s]+(").concat($a,")[,|\\s]+(").concat($a,")[,|\\s]+(").concat($a,")\\s*\\)?"),Cr={CSS_UNIT:new RegExp($a),rgb:new RegExp("rgb"+xy),rgba:new RegExp("rgba"+wy),hsl:new RegExp("hsl"+xy),hsla:new RegExp("hsla"+wy),hsv:new RegExp("hsv"+xy),hsva:new RegExp("hsva"+wy),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 uR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(yy[e])e=yy[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Cr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Cr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Cr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Cr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Cr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Cr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Cr.hex8.exec(e),r?{r:Qi(r[1]),g:Qi(r[2]),b:Qi(r[3]),a:L3(r[4]),format:n?"name":"hex8"}:(r=Cr.hex6.exec(e),r?{r:Qi(r[1]),g:Qi(r[2]),b:Qi(r[3]),format:n?"name":"hex"}:(r=Cr.hex4.exec(e),r?{r:Qi(r[1]+r[1]),g:Qi(r[2]+r[2]),b:Qi(r[3]+r[3]),a:L3(r[4]+r[4]),format:n?"name":"hex8"}:(r=Cr.hex3.exec(e),r?{r:Qi(r[1]+r[1]),g:Qi(r[2]+r[2]),b:Qi(r[3]+r[3]),format:n?"name":"hex"}:!1)))))))))}function va(e){return Boolean(Cr.CSS_UNIT.exec(String(e)))}var dR=function(){function e(n,r){n===void 0&&(n=""),r===void 0&&(r={});var a;if(n instanceof e)return n;typeof n=="number"&&(n=oR(n)),this.originalInput=n;var s=sR(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=r.format)!==null&&a!==void 0?a:s.format,this.gradientType=r.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(),r,a,s,c=n.r/255,p=n.g/255,m=n.b/255;return c<=.03928?r=c/12.92:r=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*r+.7152*a+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=F3(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=R3(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=R3(this.r,this.g,this.b),r=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.v*100);return this.a===1?"hsv(".concat(r,", ").concat(a,"%, ").concat(s,"%)"):"hsva(".concat(r,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=P3(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=P3(this.r,this.g,this.b),r=Math.round(n.h*360),a=Math.round(n.s*100),s=Math.round(n.l*100);return this.a===1?"hsl(".concat(r,", ").concat(a,"%, ").concat(s,"%)"):"hsla(".concat(r,", ").concat(a,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),j3(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),rR(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),r=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(r,", ").concat(a,")"):"rgba(".concat(n,", ").concat(r,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(r){return"".concat(Math.round(Tn(r,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(r){return Math.round(Tn(r,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="#"+j3(this.r,this.g,this.b,!1),r=0,a=Object.entries(yy);r<a.length;r++){var s=a[r],c=s[0],p=s[1];if(n===p)return c}return!1},e.prototype.toString=function(n){var r=Boolean(n);n=n!=null?n:this.format;var a=!1,s=this.a<1&&this.a>=0,c=!r&&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 r=this.toHsl();return r.l+=n/100,r.l=yh(r.l),new e(r)},e.prototype.brighten=function(n){n===void 0&&(n=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),new e(r)},e.prototype.darken=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.l-=n/100,r.l=yh(r.l),new e(r)},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 r=this.toHsl();return r.s-=n/100,r.s=yh(r.s),new e(r)},e.prototype.saturate=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.s+=n/100,r.s=yh(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var r=this.toHsl(),a=(r.h+n)%360;return r.h=a<0?360+a:a,new e(r)},e.prototype.mix=function(n,r){r===void 0&&(r=50);var a=this.toRgb(),s=new e(n).toRgb(),c=r/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,r){n===void 0&&(n=6),r===void 0&&(r=30);var a=this.toHsl(),s=360/r,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 r=this.toHsv(),a=r.h,s=r.s,c=r.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(),r=n.h;return[this,new e({h:(r+72)%360,s:n.s,l:n.l}),new e({h:(r+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var r=this.toRgb(),a=new e(n).toRgb(),s=r.a+a.a*(1-r.a);return new e({r:(r.r*r.a+a.r*a.a*(1-r.a))/s,g:(r.g*r.a+a.g*a.a*(1-r.a))/s,b:(r.b*r.a+a.b*a.a*(1-r.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 r=this.toHsl(),a=r.h,s=[this],c=360/n,p=1;p<n;p++)s.push(new e({h:(a+p*c)%360,s:r.s,l:r.l}));return s},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e}();function qa(e,n=20){return e.mix("#141414",n).toString()}function fR(e){const n=hy(),r=Yr("button");return x.computed(()=>{let a={};const s=e.color;if(s){const c=new dR(s),p=e.dark?c.tint(20).toString():qa(c,20);if(e.plain)a=r.cssVarBlock({"bg-color":e.dark?qa(c,90):c.tint(90).toString(),"text-color":s,"border-color":e.dark?qa(c,50):c.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":p,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":p}),n.value&&(a[r.cssVarBlockName("disabled-bg-color")]=e.dark?qa(c,90):c.tint(90).toString(),a[r.cssVarBlockName("disabled-text-color")]=e.dark?qa(c,50):c.tint(50).toString(),a[r.cssVarBlockName("disabled-border-color")]=e.dark?qa(c,80):c.tint(80).toString());else{const m=e.dark?qa(c,30):c.tint(30).toString(),g=c.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(a=r.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?qa(c,50):c.tint(50).toString();a[r.cssVarBlockName("disabled-bg-color")]=y,a[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,a[r.cssVarBlockName("disabled-border-color")]=y}}}return a})}const pR=x.defineComponent({name:"ElButton"}),hR=x.defineComponent({...pR,props:by,emits:$P,setup(e,{expose:n,emit:r}){const a=e,s=fR(a),c=Yr("button"),{_ref:p,_size:m,_type:g,_disabled:y,_props:O,shouldAddSpace:S,handleClick:N}=ZP(a,r);return n({ref:p,size:m,type:g,disabled:y,shouldAddSpace:S}),(_,B)=>(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(S)})},[x.renderSlot(_.$slots,"default")],2)):x.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var mR=Xa(hR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const gR={size:by.size,type:by.type},AR=x.defineComponent({name:"ElButtonGroup"}),vR=x.defineComponent({...AR,props:gR,setup(e){const n=e;x.provide(M3,x.reactive({size:x.toRef(n,"size"),type:x.toRef(n,"type")}));const r=Yr("button");return(a,s)=>(x.openBlock(),x.createElementBlock("div",{class:x.normalizeClass(`${x.unref(r).b("group")}`)},[x.renderSlot(a.$slots,"default")],2))}});var z3=Xa(vR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const bR=uh(mR,{ButtonGroup:z3});P7(z3);const Ey="_trap-focus-children",cs=[],Q3=e=>{var n;if(cs.length===0)return;const r=cs[cs.length-1][Ey];if(r.length>0&&e.code===dh.tab){if(r.length===1){e.preventDefault(),document.activeElement!==r[0]&&r[0].focus();return}const a=e.shiftKey,s=e.target===r[0],c=e.target===r[r.length-1];if(s&&a&&(e.preventDefault(),r[r.length-1].focus()),c&&!a&&(e.preventDefault(),r[0].focus()),process.env.NODE_ENV==="test"){const p=r.indexOf(e.target);p!==-1&&((n=r[a?p-1:p+1])==null||n.focus())}}},_R={beforeMount(e){e[Ey]=v4(e),cs.push(e),cs.length<=1&&document.addEventListener("keydown",Q3)},updated(e){x.nextTick(()=>{e[Ey]=v4(e)})},unmounted(){cs.shift(),cs.length===0&&document.removeEventListener("keydown",Q3)}},yR=os({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:vi([String,Array,Object])},zIndex:{type:vi([String,Number])}}),xR={click:e=>e instanceof MouseEvent},wR="overlay";var ER=x.defineComponent({name:"ElOverlay",props:yR,emits:xR,setup(e,{slots:n,emit:r}){const a=Yr(wR),s=g=>{r("click",g)},{onClick:c,onMousedown:p,onMouseup:m}=p3(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")],fh.STYLE|fh.CLASS|fh.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 CR=ER,H3=["success","info","warning","error"],bi=e3({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:Ai?document.body:void 0}),kR=os({customClass:{type:String,default:bi.customClass},center:{type:Boolean,default:bi.center},dangerouslyUseHTMLString:{type:Boolean,default:bi.dangerouslyUseHTMLString},duration:{type:Number,default:bi.duration},icon:{type:id,default:bi.icon},id:{type:String,default:bi.id},message:{type:vi([String,Object,Function]),default:bi.message},onClose:{type:vi(Function),required:!1},showClose:{type:Boolean,default:bi.showClose},type:{type:String,values:H3,default:bi.type},offset:{type:Number,default:bi.offset},zIndex:{type:Number,default:bi.zIndex},grouping:{type:Boolean,default:bi.grouping},repeatNum:{type:Number,default:bi.repeatNum}}),SR={destroy:()=>!0},kr=x.shallowReactive([]),DR=e=>{const n=kr.findIndex(s=>s.id===e),r=kr[n];let a;return n>0&&(a=kr[n-1]),{current:r,prev:a}},BR=e=>{const{prev:n}=DR(e);return n?n.vm.exposed.bottom.value:0},IR=(e,n)=>kr.findIndex(a=>a.id===e)>0?20:n,OR=["id"],TR=["innerHTML"],NR=x.defineComponent({name:"ElMessage"}),MR=x.defineComponent({...NR,props:kR,emits:SR,setup(e,{expose:n}){const r=e,{Close:a}=$4,{ns:s,zIndex:c}=_3("message"),{currentZIndex:p,nextZIndex:m}=c,g=x.ref(),y=x.ref(!1),O=x.ref(0);let S;const N=x.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),_=x.computed(()=>{const M=r.type;return{[s.bm("icon",M)]:M&&ch[M]}}),B=x.computed(()=>r.icon||ch[r.type]||""),j=x.computed(()=>BR(r.id)),R=x.computed(()=>IR(r.id,r.offset)+j.value),T=x.computed(()=>O.value+R.value),F=x.computed(()=>({top:`${R.value}px`,zIndex:p.value}));function v(){r.duration!==0&&({stop:S}=w9(()=>{k()},r.duration))}function w(){S==null||S()}function k(){y.value=!1}function Q({code:M}){M===dh.esc&&k()}return x.onMounted(()=>{v(),m(),y.value=!0}),x.watch(()=>r.repeatNum,()=>{w(),v()}),x4(document,"keydown",Q),E4(g,()=>{O.value=g.value.getBoundingClientRect().height}),n({visible:y,bottom:T,close:k}),(M,H)=>(x.openBlock(),x.createBlock(x.Transition,{name:x.unref(s).b("fade"),onBeforeLeave:M.onClose,onAfterLeave:H[0]||(H[0]=ne=>M.$emit("destroy")),persisted:""},{default:x.withCtx(()=>[x.withDirectives(x.createElementVNode("div",{id:M.id,ref_key:"messageRef",ref:g,class:x.normalizeClass([x.unref(s).b(),{[x.unref(s).m(M.type)]:M.type&&!M.icon},x.unref(s).is("center",M.center),x.unref(s).is("closable",M.showClose),M.customClass]),style:x.normalizeStyle(x.unref(F)),role:"alert",onMouseenter:w,onMouseleave:v},[M.repeatNum>1?(x.openBlock(),x.createBlock(x.unref(XP),{key:0,value:M.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(B)?(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(B))))]),_:1},8,["class"])):x.createCommentVNode("v-if",!0),x.renderSlot(M.$slots,"default",{},()=>[M.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:M.message},null,10,TR)],2112)):(x.openBlock(),x.createElementBlock("p",{key:0,class:x.normalizeClass(x.unref(s).e("content"))},x.toDisplayString(M.message),3))]),M.showClose?(x.openBlock(),x.createBlock(x.unref(Wr),{key:2,class:x.normalizeClass(x.unref(s).e("closeBtn")),onClick:x.withModifiers(k,["stop"])},{default:x.withCtx(()=>[x.createVNode(x.unref(a))]),_:1},8,["class","onClick"])):x.createCommentVNode("v-if",!0)],46,OR),[[x.vShow,y.value]])]),_:3},8,["name","onBeforeLeave"]))}});var FR=Xa(MR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let PR=1;const V3=e=>{const n=!e||wr(e)||x.isVNode(e)||ns(e)?{message:e}:e,r={...bi,...n};if(!r.appendTo)r.appendTo=document.body;else if(wr(r.appendTo)){let a=document.querySelector(r.appendTo);ry(a)||(Ur("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),r.appendTo=a}return r},RR=e=>{const n=kr.indexOf(e);if(n===-1)return;kr.splice(n,1);const{handler:r}=e;r.close()},jR=({appendTo:e,...n},r)=>{const a=`message_${PR++}`,s=n.onClose,c=document.createElement("div"),p={...n,id:a,onClose:()=>{s==null||s(),RR(O)},onDestroy:()=>{x.render(null,c)}},m=x.createVNode(FR,p,ns(p.message)||x.isVNode(p.message)?{default:ns(p.message)?p.message:()=>p.message}:null);m.appContext=r||Ll._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},Ll=(e={},n)=>{if(!Ai)return{close:()=>{}};if(as(fy.max)&&kr.length>=fy.max)return{close:()=>{}};const r=V3(e);if(r.grouping&&kr.length){const s=kr.find(({vnode:c})=>{var p;return((p=c.props)==null?void 0:p.message)===r.message});if(s)return s.props.repeatNum+=1,s.props.type=r.type,s.handler}const a=jR(r,n);return kr.push(a),a.handler};H3.forEach(e=>{Ll[e]=(n={},r)=>{const a=V3(n);return Ll({...a,type:e},r)}});function LR(e){for(const n of kr)(!e||e===n.props.type)&&n.handler.close()}Ll.closeAll=LR,Ll._context=null;const ad=F7(Ll,"$message"),zR=x.defineComponent({name:"ElMessageBox",directives:{TrapFocus:_R},components:{ElButton:bR,ElFocusTrap:UP,ElInput:OP,ElOverlay:CR,ElIcon:Wr,...$4},inheritAttrs:!1,props:{buttonSize:{type:String,validator:R7},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:r,zIndex:a,ns:s,size:c}=_3("message-box",x.computed(()=>e.buttonSize)),{t:p}=r,{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&&ch[ye]}}),S=cy(),N=cy(),_=x.computed(()=>y.icon||ch[y.type]||""),B=x.computed(()=>!!y.message),j=x.ref(),R=x.ref(),T=x.ref(),F=x.ref(),v=x.ref(),w=x.computed(()=>y.confirmButtonClass);x.watch(()=>y.inputValue,async ye=>{await x.nextTick(),e.boxType==="prompt"&&ye!==null&&de()},{immediate:!0}),x.watch(()=>g.value,ye=>{var _e,W;ye&&(e.boxType!=="prompt"&&(y.autofocus?T.value=(W=(_e=v.value)==null?void 0:_e.$el)!=null?W:j.value:T.value=j.value),y.zIndex=m()),e.boxType==="prompt"&&(ye?x.nextTick().then(()=>{var J;F.value&&F.value.$el&&(y.autofocus?T.value=(J=me())!=null?J:j.value:T.value=j.value)}):(y.editorErrorMessage="",y.validateError=!1))});const k=x.computed(()=>e.draggable);V7(j,R,k),x.onMounted(async()=>{await x.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",Q)}),x.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",Q)});function Q(){!g.value||(g.value=!1,x.nextTick(()=>{y.action&&n("action",y.action)}))}const M=()=>{e.closeOnClickModal&&re(y.distinguishCancelAndClose?"close":"cancel")},H=p3(M),ne=ye=>{if(y.inputType!=="textarea")return ye.preventDefault(),re("confirm")},re=ye=>{var _e;e.boxType==="prompt"&&ye==="confirm"&&!de()||(y.action=ye,y.beforeClose?(_e=y.beforeClose)==null||_e.call(y,ye,y,Q):Q())},de=()=>{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=F.value.$refs;return ye.input||ye.textarea},pe=()=>{re("close")},Se=()=>{e.closeOnPressEscape&&pe()};return e.lockScroll&&aP(g),{...x.toRefs(y),ns:s,overlayEvent:H,visible:g,hasMessage:B,typeClass:O,contentId:S,inputId:N,btnSize:c,iconComponent:_,confirmButtonClasses:w,rootRef:j,focusStartRef:T,headerRef:R,inputRef:F,confirmRef:v,doClose:Q,handleClose:pe,onCloseRequested:Se,handleWrapperClick:M,handleInputEnter:ne,handleAction:re,t:p}}}),QR=["aria-label","aria-describedby"],HR=["aria-label"],VR=["id"];function UR(e,n,r,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"),S=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(S,{"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,HR)):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,VR),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,QR)]),_:3},8,["z-index","overlay-class","mask"]),[[x.vShow,e.visible]])]),_:3})}var YR=Xa(zR,[["render",UR],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const od=new Map,WR=e=>{let n=document.body;return e.appendTo&&(wr(e.appendTo)&&(n=document.querySelector(e.appendTo)),ry(e.appendTo)&&(n=e.appendTo),ry(n)||(Ur("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body)),n},GR=(e,n,r=null)=>{const a=x.createVNode(YR,e,ns(e.message)||x.isVNode(e.message)?{default:ns(e.message)?e.message:()=>e.message}:null);return a.appContext=r,x.render(a,n),WR(e).appendChild(n.firstElementChild),a.component},JR=()=>document.createElement("div"),KR=(e,n)=>{const r=JR();e.onVanish=()=>{x.render(null,r),od.delete(s)},e.onAction=c=>{const p=od.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=GR(e,r,n),s=a.proxy;for(const c in e)ah(e,c)&&!ah(s.$props,c)&&(s[c]=e[c]);return s.visible=!0,s};function zl(e,n=null){if(!Ai)return Promise.reject();let r;return wr(e)||x.isVNode(e)?e={message:e}:r=e.callback,new Promise((a,s)=>{const c=KR(e,n!=null?n:zl._context);od.set(c,{options:e,callback:r,resolve:a,reject:s})})}const XR=["alert","confirm","prompt"],ZR={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};XR.forEach(e=>{zl[e]=$R(e)});function $R(e){return(n,r,a,s)=>{let c="";return ed(r)?(a=r,c=""):L4(r)?c="":c=r,zl(Object.assign({title:c,message:n,type:"",...ZR[e]},a,{boxType:e}),s)}}zl.close=()=>{od.forEach((e,n)=>{n.doClose()}),od.clear()},zl._context=null;const eo=zl;eo.install=e=>{eo._context=e._context,e.config.globalProperties.$msgbox=eo,e.config.globalProperties.$messageBox=eo,e.config.globalProperties.$alert=eo.alert,e.config.globalProperties.$confirm=eo.confirm,e.config.globalProperties.$prompt=eo.prompt};const U3=eo;var qR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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")?r("el-button",{attrs:{type:"success",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!0,e.getButton("wf_pass").name)}}},[r("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?r("el-button",{attrs:{type:"danger",size:"default",disabled:e.loading},on:{click:function(a){e.$emit("examine",!1,e.getButton("wf_reject").name)}}},[r("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.userId==e.process.variables.applyUserId?r("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){return e.$emit("reminders")}}},[r("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?r("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")?r("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")?r("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")?r("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")?r("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")?r("el-button",{attrs:{size:"default",disabled:e.loading},on:{click:function(a){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[r("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)?r("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")?r("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)},ej=[];const bX="",tj={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 r=n.data;this.backNodes=r})},immediate:!0}},methods:{getButton(e){return this.buttonList.find(n=>n.buttonKey==e)}}},Y3={};var nj=rn(tj,qR,ej,!1,ij,"1d36c4be",null,null);function ij(e){for(let n in Y3)this[n]=Y3[n]}const rj=function(){return nj.exports}(),aj=e=>{var n=Object.prototype.toString,r={"[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":r[n.call(e)]},Cy=e=>{var n=aj(e),r;if(n==="array")r=[];else if(n==="object")r={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)r.push(Cy(e[a]));else if(n==="object")for(var c in e)r[c]=Cy(e[c]);return r};function W3(e,n="YYYY-MM-DD HH:mm:ss"){return qu(e).format(n)}function oj(e){e=Cy(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 r=[];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}'>${W3(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let S,{type:N,fullMessage:_}=m.find(B=>B.action=="AddComment")||{};N=="assigneeComment"&&(S="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(S="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(S="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(S="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(S="\u6307\u5B9A\u56DE\u9000\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(S="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),(N=="addMultiInstanceComment"||(N||"").includes("\u52A0\u7B7E"))&&(S="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(S="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(S="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(S="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(S="\u62D2\u7EDD\uFF1A"+_,g.class="nodeError"),N=="comment"&&(S="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),S&&(y+=`<span title='${S}'>${S}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=r.findIndex(S=>S.id==a.historyActivityId);O!=-1?r.splice(O,1,g):a.createTime&&r.push(g)}),r}function ky(e){const n=[],r=[],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"?r.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(r)],deptIds:[...new Set(a)]}}function Sy(e){const n=[];return e.forEach(r=>{let{assigneeName:a,createTime:s,endTime:c,comments:p}=r;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(s=s.replace(/-/g,"/"),c=c.replace(/-/g,"/"));const m={id:r.historyActivityId,class:!c&&r.historyActivityType!="candidate"?"nodePrimary":""};let g="";if(a||p&&p.length>0){if(g=`<span title='${a}'>${a}</span><br>`,s&&(g+=`<span title='${s}'>${W3(s,"YYYY-MM-DD HH:mm")}</span><br>`),p&&p.length>0){let y,{type:O,fullMessage:S}=p.find(N=>N.action=="AddComment")||{};O=="assigneeComment"&&(y="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+S,m.class="nodeWarn"),O=="dispatchComment"&&(y="\u8C03\u5EA6\uFF1A"+S,m.class="nodeWarn"),O=="transferComment"&&(y="\u8F6C\u529E\uFF1A"+S,m.class="nodeWarn"),O=="delegateComment"&&(y="\u59D4\u6258\uFF1A"+S,m.class="nodeWarn"),O=="rollbackComment"&&(y="\u6307\u5B9A\u56DE\u9000\uFF1A"+S,m.class="nodeError"),O=="terminateComment"&&(y="\u7EC8\u6B62\uFF1A"+S,m.class="nodeError"),(O=="addMultiInstanceComment"||(O||"").includes("\u52A0\u7B7E"))&&(y="\u52A0\u7B7E\uFF1A"+S,m.class="nodeWarn"),O=="deleteMultiInstanceComment"&&(y="\u51CF\u7B7E\uFF1A"+S,m.class="nodeError"),O=="withdrawComment"&&(y="\u64A4\u9500\uFF1A"+S,m.class="nodeWarn"),O=="deleteProcessComment"&&(y="\u5220\u9664\u6D41\u7A0B\uFF1A"+S,m.class="nodeError"),O=="cancelProcessComment"&&(y="\u62D2\u7EDD\uFF1A"+S,m.class="nodeError"),O=="comment"&&(y="\u5BA1\u6279\uFF1A"+S,m.class="nodeSuccess"),y&&(g+=`<span title='${y}'>${y}</span>`)}m.tooltip=g}r.historyActivityType=="sequenceFlow"?m.class="lineWarn":!m.class&&r.historyActivityType!="candidate"&&(m.class="nodeSuccess"),n.push({...r,...m})}),n}var sj=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-row",{attrs:{type:"flex"}},[r("el-timeline",[e._l(e.getColors(e.flowList),function(a,s){return[["candidate","sequenceFlow"].includes(a.historyActivityType)?e._e():r("el-timeline-item",{key:a.id,attrs:{timestamp:a.endTime||a.createTime,placement:"top"}},[r("el-card",{class:[a.endTime?"":"cur-process",e.isHistory?"cur-process-history":"",e.isActive?"cur-process-isActive":""]},[e.isHistory?r("div",{staticClass:"cur-process-history-icon"},[r("svg",{staticClass:"icon",attrs:{t:"1766388445844",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23729"}},[r("path",{attrs:{d:"M664.064 162.304c-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.68-4.608-14.336-6.144-21.504-9.728z m223.744 386.56c7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-2.56 16.384-4.096 24.576-6.144 6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.656 1.024-15.872 4.096-23.04z m-302.592-462.848c37.376 7.168 74.752 18.432 111.616 36.352 1.024-1.024 3.072 0 4.096-1.536-2.048-1.024-4.096 0.512-6.144-1.024 2.56-4.096 5.632-3.584 8.704-4.608-1.536-5.632-7.168-0.512-9.728 0-0.512 1.536-0.512 2.56-1.024 3.584-1.536-1.024-3.072 0-4.608-2.048 1.024-3.584 5.12-2.56 7.168-4.608-1.024-0.512 0.512-1.536 0-2.048-35.84-15.872-72.192-28.16-108.032-34.304-1.024 2.048 0.512 4.608 2.048 6.656 1.024 0.512 3.072-1.024 2.56 0-1.024 0.512 1.024 1.536 0 2.048-2.56-0.512-4.608 1.024-6.656 1.536zM329.728 835.584c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m174.08 48.128c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.704-3.072 16.384-4.096 24.576-6.656zM82.432 485.888c-3.072-0.512-6.144-3.072-10.24-2.048-3.072 38.912 0 81.92 10.24 123.392 2.048-2.56 3.584-6.144 7.168-6.144 0-1.536 0.512-2.56 1.536-4.096-7.68-37.376-9.728-74.24-8.704-111.104zM695.808 829.44c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.144 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m-256-749.056c1.536 1.024 4.096-1.536 3.584 0.512 1.024 1.536-1.536 2.56-0.512 4.096 39.424-4.096 79.36-5.632 118.272-1.024 3.584-3.072 7.68-6.144 10.752-9.216-9.216-2.56-21.504-3.072-32.256-4.608-10.752-1.024-22.016-1.024-32.768-1.024-22.016 0.512-44.544 1.536-67.072 5.632 0 0-0.512-0.512-0.512 0 1.536 1.536-1.024 3.584 0.512 5.632zM112.64 351.232c14.848-38.4 35.328-75.776 64.512-111.616 28.672-35.84 68.608-71.68 109.568-96.256 41.472-25.088 81.92-40.96 122.368-50.688 2.56-4.096 6.144-8.704 7.68-13.312-6.656 2.048-14.336 2.048-19.968 6.144-7.168-1.024-14.848 3.584-22.016 5.12-7.68 2.048-14.848 4.608-22.528 7.68-14.848 5.632-30.208 12.288-45.056 20.48-30.72 16.384-60.928 35.84-90.624 62.976-89.6 81.408-126.464 172.544-141.312 263.168-0.512 1.536 1.024 2.048 1.024 2.56-2.048 2.048-1.536 4.608-2.048 6.656 1.536 1.536 4.608 3.072 5.12 4.608-1.024 1.536-3.072 3.584-4.096 4.096-2.048-1.024 1.024-2.56-0.512-3.584-1.536 2.56-1.536 7.168-1.536 10.752 0 3.072-2.048 8.192 0.512 9.728 4.608-1.024 0-5.12 0-7.68 4.096-1.536 6.144-4.096 9.728-5.632 3.584-9.728 2.56-19.456 5.12-29.184 1.024-9.728 3.584-18.944 5.632-29.184 5.12-18.432 10.24-37.888 18.432-56.832z m-31.744 108.544c1.024 0 2.56 1.024 2.56 2.048-1.536 1.536-2.048 0-2.56-2.048z m715.776-268.288c29.184 25.088 59.904 62.976 80.384 96.256 41.984 68.096 58.368 134.144 63.488 199.168 3.072 0 6.656 2.56 10.752 5.12 2.048-2.56 0-8.704 0.512-12.288-0.512-4.096-0.512-8.704-1.536-12.8-0.512-8.704-1.536-17.408-3.072-25.6-2.56-17.408-6.656-34.816-11.776-52.224-10.752-34.304-24.576-70.144-47.104-105.472-20.48-34.304-53.76-74.752-84.48-101.376-31.232-28.16-62.976-48.64-95.232-65.024 0 0-0.512-0.512-0.512 0 1.024 4.096-1.024 8.192-1.024 12.288 30.208 14.848 60.416 34.816 89.6 61.952z m24.576 513.024c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656zM701.952 126.464c0-0.512-1.024-3.072-2.048-2.56 0.512 0 0 0.512-0.512 1.536 0.512 0 1.536 0.512 2.56 1.024zM417.792 68.608c-0.512 0-1.536-2.048-2.56-2.56-1.024-4.096 4.096-7.68 1.024-12.288-1.024-0.512-2.048 0-3.072 0 0.512 5.632-2.56 11.776-3.072 17.408 2.56-1.024 6.144-0.512 7.68-2.56z m12.8 19.456c-1.536-4.096 2.56-7.68 1.536-11.776-3.584 0.512-7.168 0.512-10.24 3.072 0 2.56-0.512 5.12-1.536 7.68-2.048 1.024-2.56 2.56-2.048 4.096 4.608-1.536 8.192-2.048 12.288-3.072z m-30.72-29.184c2.56-0.512 3.584 0.512 5.12 2.048 3.584-2.048 2.56-6.656 3.584-9.216-6.144 1.536-12.288 2.56-19.456 5.12-2.048 7.168-6.144 13.824-5.632 21.504 4.096-1.536 8.192-2.048 12.288-4.096 1.536-4.608 2.048-10.24 4.096-15.36z m28.672 8.192c-0.512-1.024-1.536-3.584-3.072-3.072 0 1.536-1.536 2.56-1.024 4.608 1.536-1.024 2.56 0 4.096-1.536z m110.592 56.832c-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.024-7.68 4.096-15.36 4.096-22.528z m44.032-58.368c6.144-4.608 12.288-10.24 16.384-15.36-16.896-4.608-34.304-5.632-51.2-7.168-1.536 0.512-3.072 1.536-4.608 2.048-1.536-1.024 0-1.536-1.024-2.56-30.72-2.56-62.464-2.048-93.696 2.56-0.512 2.56-4.608 5.12-5.632 8.192 0 1.536 3.072 3.072 2.048 4.608-2.56 3.072-4.608 0-7.168 2.56-1.536 2.048-1.024 4.096-2.56 6.144 49.664-7.68 98.816-7.68 147.456-1.024z m358.4 432.128c2.56 0.512 5.632 4.096 8.192 3.584 0.512-2.048 2.048-2.56 2.048-4.096-3.584-1.024-7.168-4.608-10.752-6.656 0.512 2.56-0.512 5.12 0.512 7.168z m-468.992 286.208c0.512-1.536 2.56-3.072 4.096-3.072 0-3.072-0.512-4.608-2.048-6.656-32.768-5.632-65.024-16.896-96.768-34.816-1.536 3.072-3.584 6.144-3.072 9.728 31.744 18.944 64.512 29.696 97.792 34.816z m-311.808-252.928c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 11.776 10.24 17.92z m505.344 210.944c-3.072 0-6.656-3.584-8.192-6.656-14.848 9.728-28.672 15.872-43.52 23.04 0.512 0.512 0 0.512 0.512 1.024 0 3.584-3.072 6.656-3.584 10.752 17.92-7.168 37.376-15.36 54.784-28.16zM243.712 347.136c-5.632-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.56 16.896-3.072 25.6-5.632z m351.744 417.28c-36.864 12.288-73.728 14.336-109.568 11.264 0.512 3.072 1.024 6.144 3.072 9.728 34.816 4.608 70.144 1.024 106.496-10.24 1.024-3.584 1.536-7.168 0-10.752z m-229.376-20.48c1.536-3.072 2.56-7.168 3.072-10.24-6.144-4.096-12.8-8.704-18.944-13.824-3.584-1.024-8.192 3.072-6.656 7.168 7.168 7.68 14.848 11.776 22.528 16.896z m612.864-176.64c1.024-14.848 2.56-29.696 2.56-45.056-1.536-2.56-1.536-4.608-2.048-6.656-5.632-6.144-11.776-7.68-17.92-9.216 1.536 55.808-8.704 110.08-26.112 164.864 5.632 2.048 10.752 5.12 16.896 7.68 12.8-34.816 21.504-69.12 25.088-104.448 1.536-1.536-1.536-1.536-0.512-3.072 0-2.048 1.536-2.048 2.048-4.096z m-368.64 386.048c-136.192 26.112-267.776 1.536-392.192-100.864 1.024 8.192-1.536 16.384 0 25.6 21.504 17.408 43.008 31.744 65.536 44.544 22.528 11.776 44.544 23.552 67.584 30.208 3.072 0 4.608-5.12 7.168-5.12 3.072 3.072 7.168 6.656 6.144 10.752 10.752 3.584 20.992 6.144 31.232 9.216 5.12 1.024 10.24 2.56 15.36 3.584 5.632 1.024 10.752 3.584 15.872 2.048 1.024-2.048-1.536-3.072-1.536-5.12 3.072-3.584 6.656-7.68 10.24-6.656 0.512 2.048 1.536 4.608 1.024 6.144-4.096 1.536-5.632 5.12-8.192 7.168 16.896 3.072 34.304 5.632 51.2 6.656-0.512-3.072 4.096-5.12 5.632-7.68 6.656 2.048 13.312 1.536 19.456 4.096-0.512 1.536-0.512 3.072-1.024 4.608 13.824 1.536 27.136 0 40.96-0.512 1.024-2.048 1.536-1.536 3.072-1.536 0.512-2.56-1.536-6.144 0-9.216 3.584-0.512 7.68 0 9.728 3.072-2.048 2.56 0 4.096 0 7.168 15.872-1.024 31.744-3.584 47.616-7.168-1.536-4.096 1.024-8.192 0-11.776 1.536-0.512 2.56 0 4.096-1.536 2.56-2.56 0-5.12 1.024-7.68z m145.408-327.68s0-0.512 0 0l-1.024 1.024c-5.12 12.288-14.848 25.088-19.968 36.352-0.512 2.048-2.56 1.024-3.072 2.56-14.336 19.968-32.768 39.424-55.808 57.344 1.536 1.536 2.56 2.56 3.072 4.096 1.024 1.536 0 5.12 1.024 5.12 38.912-29.184 65.536-65.024 81.92-98.304-1.024-2.56-3.584-7.168-6.144-8.192zM264.704 409.088c7.68-20.992 19.456-40.96 34.816-61.44-1.024-4.096 0.512-7.68-0.512-11.264-1.536 0.512-2.56 0-4.096 0.512-18.432 23.552-31.744 47.616-41.472 71.68 1.536 1.024 1.536 2.56 2.048 3.584-1.536 11.264-5.632 23.04-9.728 34.304-1.024 1.024-3.584 2.048-3.072 4.608-0.512 1.024-1.024-1.536-1.536 0-4.096 14.848-5.632 29.696-6.656 45.056v22.528c1.024 8.192-0.512 15.36 2.56 23.552 2.56 2.048 5.632 2.048 8.704-1.024 1.024-7.68-1.024-15.872-1.024-23.04-11.264-3.584-11.264-20.48 0.512-22.528 0-4.608 2.048-9.728 0.512-13.824 2.048-3.584 1.536-10.752 3.584-15.872 1.024-5.632 1.536-11.776 3.584-17.408 2.048-11.264 5.632-23.04 10.24-33.792 0.512-1.024 0-2.56 0-3.072 0.512-1.024 1.024-1.536 1.536-2.56z m61.44-169.984c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 12.288 10.24 17.92z m201.728 4.096c28.16 1.536 55.808 8.704 82.944 18.432 2.56-1.024 5.632-4.096 8.192-6.656-29.696-12.288-59.392-19.968-90.112-21.504-1.536 2.048-1.024 6.144-1.024 9.728z m-172.032 39.936c-3.584 1.024-7.68 1.536-9.216 5.632 2.56 0.512-1.536 7.168-4.096 4.608 1.024-1.536 3.584-2.56 4.096-4.096-4.096-1.024-9.728 6.144-12.288 9.216-1.024-1.536-2.56 0-3.584 0.512-9.728 8.704-17.92 16.896-25.6 25.088 2.048 2.56 3.584 6.656 5.12 9.728 9.728-10.752 20.992-20.992 32.256-31.232 0.512-1.024-2.56 0-2.048-1.024 1.024-1.536 3.072-2.048 3.584-3.584 0.512-0.512-3.072 0.512-2.56-0.512 2.048-1.024 3.584-4.096 5.12-3.584-2.56 3.072-1.024 3.584-1.536 7.168 52.736-40.448 102.4-54.272 152.064-57.344 4.096-3.072 5.12-6.656 4.608-10.752-47.104 2.56-94.208 13.824-143.36 46.08-1.024 1.024-0.512 2.56-2.56 4.096z m433.664 268.288c1.536-12.288 3.072-24.576 3.072-36.864 0.512-6.144 0.512-12.288 0-18.432-1.024-6.656 1.536-12.8-3.584-18.944-2.56-0.512-4.096-1.024-6.656 1.024-0.512 0.512-0.512 1.024-1.024 1.536-0.512 11.776 1.536 23.552 1.024 35.328s-1.536 23.552-3.072 35.328c-3.584 23.552-10.752 46.08-19.968 69.12 3.072 0 6.144 2.048 8.704 4.096 10.24-23.552 16.896-47.616 21.504-72.192zM367.104 202.24c0.512-1.024-1.024-2.56-1.024-2.56 0 0.512 0 0.512-0.512 1.024 0.512 0.512 1.024 2.048 1.536 1.536z m299.52 91.136c2.048-0.512 3.072 0 4.608-1.536 1.024-2.048 1.536-4.096 1.024-6.144-10.24-8.704-20.48-15.36-31.744-19.968 0.512 3.584-0.512 7.168-0.512 10.752 9.216 5.12 17.92 11.264 26.624 16.896z m-38.4 642.048c1.024 1.536-1.536 5.12-0.512 4.096 40.448-9.728 80.896-27.136 121.856-53.248-1.024-1.536-3.072-3.072-2.048-4.096 1.024-0.512 2.048 0.512 3.072 0-1.024-1.536-3.072-3.584-3.584-5.12 1.024-1.024 3.584 1.024 3.072-0.512-1.024-0.512-1.536-1.536-2.048-2.56-44.032 27.648-87.552 45.056-130.048 56.32-2.048 2.56-3.584 5.12-6.144 7.68-1.536-1.536-0.512-3.584-2.56-4.608-8.704-1.024-18.432 3.072-27.648 3.584-9.728 1.024-18.944 2.56-28.16 3.072-18.432 1.536-36.352 2.56-54.784 1.536-36.352-1.024-72.192-7.68-108.032-17.92-71.168-22.528-140.8-60.416-207.36-137.728-1.536-1.536-4.096-5.632-6.144-7.168-3.584-0.512-6.144 3.584-9.216 3.072-0.512-5.12 0-10.24-0.512-15.872-38.4-52.736-59.392-103.936-72.704-154.624-2.56-1.024-5.12-5.12-9.216-5.632-1.536 1.536-2.56 2.048-3.072 3.072 1.024 1.536 2.048-1.024 2.56 0-1.536 1.536-1.024 2.048-1.024 3.584 14.336 58.368 40.96 119.808 90.624 180.224 67.072 79.36 141.824 120.32 216.064 142.848 74.752 21.504 151.552 24.064 229.376 5.632 0.512-2.048 4.608-7.68 8.192-5.632z m298.496-269.312c18.432-52.736 27.648-105.984 25.6-160.768-1.536 0.512-4.608 1.024-2.56-1.024-3.072 1.536-5.12-0.512-8.192-1.024 0.512 118.272-34.816 237.568-155.136 341.504-0.512 2.56 0.512 5.632-1.024 8.704-1.024 0-2.56 1.024-3.584 1.024-2.048-0.512-2.048-1.536-3.072-3.584-5.12 4.096-10.24 7.68-15.872 11.776-1.024 2.56-2.56 7.168-5.12 4.608 0.512-0.512 2.048-1.024 1.536-1.536-3.584 3.072-7.168 5.12-10.752 7.68 1.024 2.048 0.512 3.584 2.048 5.12-2.048 1.024 0.512 3.072 0.512 4.608 0 1.024-2.56 0-0.512 1.536 18.944-10.752 40.96-28.672 59.392-45.056 57.856-53.248 92.672-111.104 114.688-169.472 0-1.024-2.048-1.024-1.024-2.56 1.536-1.536 2.048 0 3.072-1.536z m-167.936 210.944c-0.512-1.024 1.024-1.536 2.048-2.56 0 1.024-1.024 1.536-2.048 2.56z m0-5.12c0-1.536 3.072-2.56 4.096-4.096-0.512 2.048-2.048 5.12-4.096 4.096z m125.952-122.88c-1.024 0.512-1.024 0-1.536-1.536 1.024-1.024 1.536-0.512 2.56-1.024 0.512 1.024-1.536 1.536-1.024 2.56z m0-14.336c-0.512 0.512-1.024-1.024-1.536-0.512-1.024-1.024 1.536-1.536 2.048-3.072 1.024 1.536 0 2.56-0.512 3.584zM128 745.984c-22.016-37.376-38.4-74.24-48.128-110.592-20.992-72.704-23.04-143.36-9.728-212.48s41.984-136.704 95.744-202.24c26.624-32.256 61.952-64 99.328-88.576s73.728-40.448 110.08-52.224c4.096-6.656 4.096-13.824 3.072-20.992-55.808 16.384-113.664 44.032-170.496 92.16-72.704 61.44-114.176 132.096-139.264 201.728 4.608 8.704 3.072 18.432-8.192 25.6-3.072 12.288-7.168 24.064-8.704 36.352 1.024 1.536 3.072 0.512 2.048 2.56-1.024 0-1.536-1.536-2.048-1.536C46.08 442.368 43.52 469.504 43.008 496.64c-0.512 13.312-0.512 27.136 0.512 40.96 0.512 13.312 1.024 28.16 4.608 40.448 2.048-3.072 2.048-6.656 5.12-9.728 3.072 3.584 0.512 7.168-0.512 10.752l-0.512 8.704c0 2.048-3.072 1.024-3.072 2.56 1.536 9.728 3.584 19.456 6.144 29.184 5.632-1.536 11.264-2.56 16.896-8.192 0.512 3.584-3.072 4.608-3.584 7.168 1.024-1.024 2.56-3.584 4.096-2.56-0.512 3.584-1.024 7.68 1.536 10.752-1.024 3.072-5.12 3.584-7.168 6.656 0 3.072-1.536 5.632-5.12 8.192 15.872 57.856 46.592 119.296 96.768 178.176 7.68 8.192 17.408 18.432 25.6 27.136 4.608 3.584 8.192 8.192 12.8 11.776 2.048 2.56 4.608 4.096 6.656 6.144 1.024 1.024 2.048 2.048 3.072 2.56 0.512 0 1.024 1.536 1.536 1.024 0.512 1.024 1.536 2.048 1.024 0.512-1.024-0.512 2.048-1.536 2.56-2.048 1.536-5.632 1.024-12.288 4.608-16.896-32.256-27.136-65.024-66.56-88.576-103.936zM363.008 66.56c1.024 1.024-0.512 1.536 0 2.56-0.512 1.024-1.024-0.512-1.536-1.024l1.536-1.536z m-3.584 2.56c1.024 1.024 0 2.56 0.512 3.584-0.512 0.512-1.536-1.024-2.048-2.048l1.536-1.536zM65.024 610.816c-0.512-0.512-1.024-0.512-1.536-1.024 1.024-1.024 2.56-2.048 4.096-2.56 1.024 1.536-2.048 2.048-2.56 3.584z m135.68 243.2c-1.024 1.024-2.048 1.024-1.536 2.048-5.12-4.608-10.24-12.288-15.36-17.92 1.024-2.048 2.048 0 3.072-0.512 1.024 6.656 10.24 13.312 13.824 16.384z m404.992-781.824c1.536-0.512 3.072 0 4.096 1.024 3.072-0.512 5.632 1.536 8.192 1.536 6.144 1.536 11.776 3.072 17.408 4.608 11.264 3.584 22.528 6.656 33.792 11.264 22.528 8.192 44.544 18.944 66.56 31.232 43.008 25.088 88.576 61.44 126.976 110.08C931.84 319.488 955.392 408.064 961.024 491.52c6.656 1.536 12.288 6.656 18.944 8.704 1.536-12.8-1.024-26.624-2.048-38.912 0 2.56-1.536 4.608-4.608 3.072l4.608-3.584c-1.024-4.608 0.512-13.312-3.584-14.336 1.536-1.024 2.048-1.536 2.048-2.56-8.704-54.784-26.624-112.64-60.928-170.496-34.304-58.368-89.6-116.224-139.776-148.992-17.408-12.288-34.304-22.016-51.712-31.232-8.704-4.608-17.408-8.704-26.112-12.288-4.608-2.048-8.704-4.096-13.312-5.632-4.096-1.024-9.728-4.608-12.8-3.584-1.536-2.048-3.072-2.048-4.608-2.56-1.536-1.024-2.56 1.024-4.096 1.024-0.512-1.536 1.024-2.048-0.512-3.072-12.8-4.096-26.112-9.216-39.936-11.264 2.048 0.512-0.512 1.536-2.048 2.56-1.536 1.536-2.56-0.512-4.096 1.024-2.048 4.096-9.216 5.632-11.776 10.24-0.512 0.512 0 2.048-1.024 1.536-2.56 0.512 1.024 0 2.048 1.024z m367.616 386.56c1.024 1.536 1.024 2.56 0 3.584-1.536 0.512-2.56 0-3.584 0 0-1.024 2.56-2.56 3.584-3.584z m-4.096-2.048c0 1.024 0.512 2.048 0 3.072-1.536 1.024-2.56 1.024-3.584 0.512 0-1.536 2.56-2.048 3.584-3.584z m-4.096-3.072c0.512 1.024 0.512 2.56 0 3.072-1.536 1.024-2.56 0-3.072 0-0.512-1.024 2.048-1.536 3.072-3.072z m-303.616-383.488l1.024 1.024c-0.512 1.024-1.024 0-2.048 0.512 0-1.024 0.512-1.536 1.024-1.536z m270.848 611.328c2.048-1.536 3.072 1.536 6.144 1.024-1.536-2.56-4.096-4.096-5.12-7.168l-0.512 0.512c-10.752 30.72-28.672 61.44-46.592 92.672-27.136 37.376-59.392 74.24-102.4 107.008-10.752 7.168-20.992 14.848-30.72 20.992-1.536 1.024 0.512 2.048-0.512 2.56-0.512-0.512-1.024-1.536-1.536-0.512 1.536 0.512 1.536 3.584 2.048 5.12-1.024-0.512-2.56-3.072-4.096-4.608-40.96 25.6-80.896 40.448-120.32 51.712-0.512 2.56-4.096 5.632-1.536 8.704 2.56-2.048 7.168-12.8 12.288-10.24-1.024 7.68-11.264 12.8-11.776 20.48 5.12-1.024 10.752-2.048 16.384-4.608 1.536-2.048 4.096-6.656 7.68-6.144 2.048 0.512 0.512 3.072 2.048 4.096 46.592-14.336 95.232-37.376 142.848-73.216 36.864-28.16 68.608-60.928 91.648-92.16-1.536-1.536-4.096-1.024-6.144-3.584-0.512-3.584 2.048-7.68 1.024-11.264l3.072-2.56c1.024 2.56 4.608 5.12 6.144 3.072 1.024-3.584-0.512-7.68 1.024-10.752 4.096 0.512 8.192-2.56 12.288-3.584 1.024-5.12 0-9.728 1.536-14.848-0.512-3.584-1.536-6.656 0-9.728 5.632 1.024 3.072 9.216 5.632 13.824 12.8-20.48 22.528-40.96 31.232-61.44-3.584-3.584-12.8-8.192-11.776-15.36z m-183.296 231.936c-1.024-1.024-0.512-1.536-1.024-2.56 1.024 0 2.048 0.512 3.072 0 0.512 1.536-1.536 2.048-2.048 2.56z m-0.512-6.656c1.024-0.512 2.048 0 3.072 0 0.512 1.536 0.512 3.584 1.024 4.096-2.048 1.024-3.072-3.072-4.096-4.096z m-1.024-5.12c1.024-0.512 2.56 0 3.072 0 1.024 1.536 0.512 3.584 1.536 4.608-1.536 0-3.072-3.072-4.608-4.608z m137.216-123.904c-1.024 0.512-1.536 0-2.048-1.024 1.536-1.024 2.56-1.536 3.584-2.56-0.512 1.536-1.536 2.56-1.536 3.584z m-407.552-142.336l18.432 4.096","p-id":"23730",fill:"#cdcdcd"}}),r("path",{attrs:{d:"M393.216 575.488l-108.032 61.44 27.648 48.128c3.584 6.656 8.704 8.192 15.36 4.096l88.064-49.664c3.072-1.536 5.12-4.096 6.656-7.68 1.024-4.096-3.072-15.872-12.288-34.816l19.456-4.096c10.24 23.04 14.848 37.888 13.824 44.032-2.048 6.144-6.656 11.776-13.312 15.872l-97.28 55.296c-14.336 8.192-26.112 4.608-34.816-10.24L245.76 606.72l16.896-9.728 13.312 24.064 91.136-51.712-23.552-41.472L227.328 593.92l-9.216-15.872 133.12-75.264 41.984 72.704zM439.808 531.456c-1.536 8.192-3.584 16.896-6.144 26.624l-15.872-14.848c6.656-29.696 7.168-60.416 0.512-91.648l19.968-1.536c3.072 15.872 4.608 31.744 4.096 47.616l66.56 117.76-16.896 9.728-52.224-93.696z m43.52-62.976c1.536 20.992 0.512 40.96-2.56 58.88l-19.968-7.68c5.12-25.088 4.096-55.808-2.56-91.136l18.944-5.632c1.536 7.68 3.072 15.872 4.096 25.6l72.192-40.96 9.216 16.384-56.32 31.744 14.336 25.088 49.152-28.16 9.216 15.872-49.152 28.16 14.848 25.6 49.664-28.16 9.216 15.872-49.664 28.16 22.528 39.424-16.896 9.728-70.144-122.368-6.144 3.584zM646.144 322.56c4.608 3.072 9.728 7.168 14.848 11.264l61.44-34.816 9.216 15.872-128 72.704 21.504 38.4c21.504 39.424 32.768 73.728 34.304 102.912l-19.456-4.096c-1.536-25.088-11.776-54.784-31.232-89.6l-30.72-54.272 65.024-36.864c-5.12-3.584-9.728-6.656-13.824-8.704l16.896-12.8zM640 433.152l-10.752-47.104 16.896-6.656 5.632 27.648 18.432-10.752c-3.072-10.752-6.144-22.016-10.752-33.28l16.896-7.168c4.096 10.24 7.168 20.48 9.728 30.72l63.488-35.84 8.192 14.848-67.584 38.912c0.512 2.56 1.536 7.68 2.56 14.848l58.88-33.28 7.68 13.312c2.048 12.8 0 26.624-6.144 41.984 12.8-0.512 28.16-3.072 45.056-6.656v17.408c-20.992 3.584-38.4 5.632-53.248 5.12-7.68 13.312-18.432 27.136-31.744 42.496l-14.848-9.216c11.264-12.8 20.48-24.064 27.648-34.816-12.288-2.048-23.04-5.12-31.232-9.728 0.512 25.6-3.584 48.64-12.8 69.632l-15.872-9.728c10.752-27.648 13.312-58.368 7.68-91.648l-33.792 18.944z m57.856-93.184c11.264 1.024 21.504 2.56 30.72 5.12l-5.12 16.896c-8.192-2.56-18.432-4.608-30.72-6.144l5.12-15.872z m3.584 92.672c9.216 4.608 19.968 7.168 32.768 8.192 5.632-11.264 8.704-22.016 8.704-31.744l-41.472 23.552z","p-id":"23731",fill:"#cdcdcd"}})])]):e._e(),e.isActive?r("div",{staticClass:"cur-process-history-icon"},[r("svg",{attrs:{viewBox:"0 0 200 200",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[r("title",[e._v("\u91CD\u65B0\u6FC0\u6D3B")]),r("g",{attrs:{id:"\u91CD\u65B0\u6FC0\u6D3B",stroke:"none",fill:"none","fill-rule":"evenodd","stroke-width":"1"}},[r("g",{attrs:{id:"\u7F16\u7EC4",fill:"#0088FF"}},[r("path",{attrs:{d:"M129.7,31.7 C129.2,32.9 129.6,34.7 129.1,36.1 C127.8,37.1 126.6,38.2 125.6,39.3 C127.1,39.6 128.7,39.9 130.2,40.6 C131,41.8 131.5,43 132.2,44.2 C133.4,43.1 134.4,41.9 135.4,40.7 C137.1,40.3 138.7,40.2 140.4,39.7 C139.2,38.5 138.8,37.7 137.8,36.4 C138.1,34.9 138.7,33.5 138.6,32.1 C137,32.7 135.5,33.1 133.9,33.6 C132.4,32.7 131.1,32.4 129.7,31.7 L129.7,31.7 Z M173.4,107.2 C174.8,106.2 176,105.3 177.1,104.2 C175.6,103.8 174.1,103.4 172.6,102.7 C171.9,101.5 171.5,100.3 170.8,99.1 C169.6,100.1 168.5,101.3 167.5,102.4 C165.8,102.7 164.2,102.6 162.4,103.1 C163.5,104.4 163.9,105.2 164.8,106.6 C164.4,108.1 163.7,109.5 163.7,110.9 C165.3,110.4 166.9,110.1 168.5,109.7 C169.8,110.5 171.3,111 172.6,111.7 C173.2,110.4 172.8,108.6 173.4,107.2 L173.4,107.2 Z M114.3,16.8 C121.6,18.2 128.9,20.4 136.1,23.9 C136.3,23.7 136.7,23.9 136.9,23.6 C136.5,23.4 136.1,23.7 135.7,23.4 C136.2,22.6 136.8,22.7 137.4,22.5 C137.1,21.4 136,22.4 135.5,22.5 C135.4,22.8 135.4,23 135.3,23.2 C135,23 134.7,23.2 134.4,22.8 C134.6,22.1 135.4,22.3 135.8,21.9 C135.6,21.8 135.9,21.6 135.8,21.5 C128.8,18.4 121.7,16 114.7,14.8 C114.5,15.2 114.8,15.7 115.1,16.1 C115.3,16.2 115.7,15.9 115.6,16.1 C115.4,16.2 115.8,16.4 115.6,16.5 C115.1,16.4 114.7,16.7 114.3,16.8 Z M64.4,163.2 C65.7,164 67.2,164.5 68.5,165.2 C69.1,164 68.8,162.2 69.3,160.8 C70.7,159.8 71.9,158.9 73,157.8 C71.5,157.4 70,157 68.5,156.3 C67.8,155.1 67.4,153.9 66.7,152.7 C65.5,153.7 64.4,154.9 63.4,156 C61.7,156.3 60.1,156.2 58.3,156.7 C59.4,158 59.8,158.8 60.7,160.2 C60.3,161.7 59.6,163.1 59.6,164.5 C61.2,163.9 62.8,163.6 64.4,163.2 L64.4,163.2 Z M98.4,172.6 C99.7,173.4 101.2,173.9 102.5,174.6 C103.1,173.4 102.8,171.6 103.3,170.2 C104.7,169.2 105.9,168.3 107,167.2 C105.5,166.8 104,166.4 102.5,165.7 C101.8,164.5 101.4,163.3 100.7,162.1 C99.5,163.1 98.4,164.3 97.4,165.4 C95.7,165.7 94.1,165.6 92.3,166.1 C93.3,167.4 93.7,168.1 94.7,169.6 C94.3,171.1 93.6,172.5 93.6,173.9 C95.3,173.3 96.8,173.1 98.4,172.6 L98.4,172.6 Z M16.1,94.9 C15.5,94.8 14.9,94.3 14.1,94.5 C13.5,102.1 14.1,110.5 16.1,118.6 C16.5,118.1 16.8,117.4 17.5,117.4 C17.5,117.1 17.6,116.9 17.8,116.6 C16.3,109.3 15.9,102.1 16.1,94.9 L16.1,94.9 Z M135.9,162 C137.2,162.8 138.7,163.3 140,164 C140.6,162.8 140.3,161 140.8,159.6 C142.2,158.6 143.4,157.7 144.5,156.6 C143,156.2 141.5,155.8 140,155.1 C139.3,153.9 138.9,152.7 138.2,151.5 C137,152.5 135.9,153.7 134.9,154.8 C133.2,155.1 131.6,155 129.8,155.5 C130.8,156.7 131.2,157.5 132.2,159 C131.8,160.5 131.1,161.9 131.1,163.3 C132.7,162.7 134.3,162.4 135.9,162 L135.9,162 Z M85.9,15.7 C86.2,15.9 86.7,15.4 86.6,15.8 C86.8,16.1 86.3,16.3 86.5,16.6 C94.2,15.8 102,15.5 109.6,16.4 C110.3,15.8 111.1,15.2 111.7,14.6 C109.9,14.1 107.5,14 105.4,13.7 C103.3,13.5 101.1,13.5 99,13.5 C94.7,13.6 90.3,13.8 85.9,14.6 C85.9,14.6 85.8,14.5 85.8,14.6 C86.1,14.9 85.6,15.3 85.9,15.7 L85.9,15.7 Z M22,68.6 C24.9,61.1 28.9,53.8 34.6,46.8 C40.2,39.8 48,32.8 56,28 C64.1,23.1 72,20 79.9,18.1 C80.4,17.3 81.1,16.4 81.4,15.5 C80.1,15.9 78.6,15.9 77.5,16.7 C76.1,16.5 74.6,17.4 73.2,17.7 C71.7,18.1 70.3,18.6 68.8,19.2 C65.9,20.3 62.9,21.6 60,23.2 C54,26.4 48.1,30.2 42.3,35.5 C24.8,51.4 17.6,69.2 14.7,86.9 C14.6,87.2 14.9,87.3 14.9,87.4 C14.5,87.8 14.6,88.3 14.5,88.7 C14.8,89 15.4,89.3 15.5,89.6 C15.3,89.9 14.9,90.3 14.7,90.4 C14.3,90.2 14.9,89.9 14.6,89.7 C14.3,90.2 14.3,91.1 14.3,91.8 C14.3,92.4 13.9,93.4 14.4,93.7 C15.3,93.5 14.4,92.7 14.4,92.2 C15.2,91.9 15.6,91.4 16.3,91.1 C17,89.2 16.8,87.3 17.3,85.4 C17.5,83.5 18,81.7 18.4,79.7 C19.4,76.1 20.4,72.3 22,68.6 Z M15.8,89.8 C16,89.8 16.3,90 16.3,90.2 C16,90.5 15.9,90.2 15.8,89.8 Z M155.6,37.4 C161.3,42.3 167.3,49.7 171.3,56.2 C179.5,69.5 182.7,82.4 183.7,95.1 C184.3,95.1 185,95.6 185.8,96.1 C186.2,95.6 185.8,94.4 185.9,93.7 C185.8,92.9 185.8,92 185.6,91.2 C185.5,89.5 185.3,87.8 185,86.2 C184.5,82.8 183.7,79.4 182.7,76 C180.6,69.3 177.9,62.3 173.5,55.4 C169.5,48.7 163,40.8 157,35.6 C150.9,30.1 144.7,26.1 138.4,22.9 C138.4,22.9 138.3,22.8 138.3,22.9 C138.5,23.7 138.1,24.5 138.1,25.3 C144,28.2 149.9,32.1 155.6,37.4 Z M160.4,137.6 C161.7,138.4 163.2,138.9 164.5,139.6 C165.1,138.4 164.8,136.6 165.3,135.2 C166.7,134.2 167.9,133.3 169,132.2 C167.5,131.8 166,131.4 164.5,130.7 C163.8,129.5 163.4,128.3 162.7,127.1 C161.5,128.1 160.4,129.3 159.4,130.4 C157.7,130.7 156.1,130.6 154.3,131.1 C155.3,132.4 155.7,133.2 156.7,134.6 C156.3,136.1 155.6,137.5 155.6,138.9 C157.2,138.3 158.8,138 160.4,137.6 L160.4,137.6 Z M137.1,24.7 C137.1,24.6 136.9,24.1 136.7,24.2 C136.8,24.2 136.7,24.3 136.6,24.5 C136.7,24.5 136.9,24.6 137.1,24.7 Z M81.6,13.4 C81.5,13.4 81.3,13 81.1,12.9 C80.9,12.1 81.9,11.4 81.3,10.5 C81.1,10.4 80.9,10.5 80.7,10.5 C80.8,11.6 80.2,12.8 80.1,13.9 C80.6,13.7 81.3,13.8 81.6,13.4 Z M84.1,17.2 C83.8,16.4 84.6,15.7 84.4,14.9 C83.7,15 83,15 82.4,15.5 C82.4,16 82.3,16.5 82.1,17 C81.7,17.2 81.6,17.5 81.7,17.8 C82.6,17.5 83.3,17.4 84.1,17.2 L84.1,17.2 Z M78.1,11.5 C78.6,11.4 78.8,11.6 79.1,11.9 C79.8,11.5 79.6,10.6 79.8,10.1 C78.6,10.4 77.4,10.6 76,11.1 C75.6,12.5 74.8,13.8 74.9,15.3 C75.7,15 76.5,14.9 77.3,14.5 C77.6,13.6 77.7,12.5 78.1,11.5 Z M83.7,13.1 C83.6,12.9 83.4,12.4 83.1,12.5 C83.1,12.8 82.8,13 82.9,13.4 C83.2,13.2 83.4,13.4 83.7,13.1 Z M105.3,24.2 C103.7,24.8 102.2,25.2 100.6,25.7 C99.2,25 97.8,24.6 96.4,23.9 C95.9,25.1 96.3,26.9 95.8,28.3 C94.5,29.3 93.3,30.4 92.3,31.5 C93.8,31.8 95.4,32.1 96.9,32.8 C97.7,34 98.2,35.2 98.9,36.4 C100.1,35.3 101.1,34.1 102.1,32.9 C103.8,32.5 105.4,32.4 107.1,31.9 C105.9,30.7 105.5,29.8 104.5,28.6 C104.7,27.1 105.3,25.6 105.3,24.2 L105.3,24.2 Z M113.9,12.8 C115.1,11.9 116.3,10.8 117.1,9.8 C113.8,8.9 110.4,8.7 107.1,8.4 C106.8,8.5 106.5,8.7 106.2,8.8 C105.9,8.6 106.2,8.5 106,8.3 C100,7.8 93.8,7.9 87.7,8.8 C87.6,9.3 86.8,9.8 86.6,10.4 C86.6,10.7 87.2,11 87,11.3 C86.5,11.9 86.1,11.3 85.6,11.8 C85.3,12.2 85.4,12.6 85.1,13 C94.8,11.5 104.4,11.5 113.9,12.8 Z M183.9,97.2 C184.4,97.3 185,98 185.5,97.9 C185.6,97.5 185.9,97.4 185.9,97.1 C185.2,96.9 184.5,96.2 183.8,95.8 C183.9,96.3 183.7,96.8 183.9,97.2 Z M92.3,153.1 C92.4,152.8 92.8,152.5 93.1,152.5 C93.1,151.9 93,151.6 92.7,151.2 C86.3,150.1 80,147.9 73.8,144.4 C73.5,145 73.1,145.6 73.2,146.3 C79.4,150 85.8,152.1 92.3,153.1 L92.3,153.1 Z M31.4,103.7 C32.6,102.6 33.6,101.4 34.6,100.2 C36.3,99.8 37.9,99.7 39.6,99.2 C38.4,98 38,97.2 37,95.9 C37.3,94.4 37.9,93 37.8,91.6 C36.2,92.2 34.7,92.6 33.1,93.1 C31.7,92.4 30.3,92 28.9,91.3 C28.4,92.5 28.8,94.3 28.3,95.7 C27,96.7 25.8,97.8 24.8,98.9 C26.3,99.2 27.9,99.5 29.4,100.2 C30.2,101.3 30.8,102.5 31.4,103.7 L31.4,103.7 Z M130.1,144.9 C129.5,144.9 128.8,144.2 128.5,143.6 C125.6,145.5 122.9,146.7 120,148.1 C120.1,148.2 120,148.2 120.1,148.3 C120.1,149 119.5,149.6 119.4,150.4 C122.9,149 126.7,147.4 130.1,144.9 Z M47.6,67.8 C46.5,66.6 46,65.7 45,64.5 C45.3,63 45.9,61.6 45.8,60.2 C44.2,60.8 42.7,61.2 41.1,61.7 C39.7,61 38.3,60.6 36.9,59.9 C36.4,61.1 36.8,62.9 36.3,64.3 C35,65.3 33.8,66.4 32.8,67.5 C34.3,67.8 35.9,68.1 37.4,68.8 C38.2,70 38.7,71.2 39.4,72.4 C40.6,71.3 41.6,70.1 42.6,68.9 C44.3,68.4 45.9,68.3 47.6,67.8 L47.6,67.8 Z M116.3,149.3 C109.1,151.7 101.9,152.1 94.9,151.5 C95,152.1 95.1,152.7 95.5,153.4 C102.3,154.3 109.2,153.6 116.3,151.4 C116.5,150.7 116.6,150 116.3,149.3 Z M71.5,145.3 C71.8,144.7 72,143.9 72.1,143.3 C70.9,142.5 69.6,141.6 68.4,140.6 C67.7,140.4 66.8,141.2 67.1,142 C68.5,143.5 70,144.3 71.5,145.3 Z M191.2,110.8 C191.4,107.9 191.7,105 191.7,102 C191.4,101.5 191.4,101.1 191.3,100.7 C190.2,99.5 189,99.2 187.8,98.9 C188.1,109.8 186.1,120.4 182.7,131.1 C183.8,131.5 184.8,132.1 186,132.6 C188.5,125.8 190.2,119.1 190.9,112.2 C191.2,111.9 190.6,111.9 190.8,111.6 C190.8,111.2 191.1,111.2 191.2,110.8 Z M119.2,186.2 C92.6,191.3 66.9,186.5 42.6,166.5 C42.8,168.1 42.3,169.7 42.6,171.5 C46.8,174.9 51,177.7 55.4,180.2 C59.8,182.5 64.1,184.8 68.6,186.1 C69.2,186.1 69.5,185.1 70,185.1 C70.6,185.7 71.4,186.4 71.2,187.2 C73.3,187.9 75.3,188.4 77.3,189 C78.3,189.2 79.3,189.5 80.3,189.7 C81.4,189.9 82.4,190.4 83.4,190.1 C83.6,189.7 83.1,189.5 83.1,189.1 C83.7,188.4 84.4,187.6 85.1,187.8 C85.2,188.2 85.4,188.7 85.3,189 C84.5,189.3 84.2,190 83.7,190.4 C87,191 90.4,191.5 93.7,191.7 C93.6,191.1 94.5,190.7 94.8,190.2 C96.1,190.6 97.4,190.5 98.6,191 C98.5,191.3 98.5,191.6 98.4,191.9 C101.1,192.2 103.7,191.9 106.4,191.8 C106.6,191.4 106.7,191.5 107,191.5 C107.1,191 106.7,190.3 107,189.7 C107.7,189.6 108.5,189.7 108.9,190.3 C108.5,190.8 108.9,191.1 108.9,191.7 C112,191.5 115.1,191 118.2,190.3 C117.9,189.5 118.4,188.7 118.2,188 C118.5,187.9 118.7,188 119,187.7 C119.5,187.2 119,186.7 119.2,186.2 L119.2,186.2 Z M147.6,122.2 C147.6,122.2 147.6,122.1 147.6,122.2 L147.4,122.4 C146.4,124.8 144.5,127.3 143.5,129.5 C143.4,129.9 143,129.7 142.9,130 C140.1,133.9 136.5,137.7 132,141.2 C132.3,141.5 132.5,141.7 132.6,142 C132.8,142.3 132.6,143 132.8,143 C140.4,137.3 145.6,130.3 148.8,123.8 C148.6,123.3 148.1,122.4 147.6,122.2 Z M51.7,79.9 C53.2,75.8 55.5,71.9 58.5,67.9 C58.3,67.1 58.6,66.4 58.4,65.7 C58.1,65.8 57.9,65.7 57.6,65.8 C54,70.4 51.4,75.1 49.5,79.8 C49.8,80 49.8,80.3 49.9,80.5 C49.6,82.7 48.8,85 48,87.2 C47.8,87.4 47.3,87.6 47.4,88.1 C47.3,88.3 47.2,87.8 47.1,88.1 C46.3,91 46,93.9 45.8,96.9 L45.8,101.3 C46,102.9 45.7,104.3 46.3,105.9 C46.8,106.3 47.4,106.3 48,105.7 C48.2,104.2 47.8,102.6 47.8,101.2 C45.6,100.5 45.6,97.2 47.9,96.8 C47.9,95.9 48.3,94.9 48,94.1 C48.4,93.4 48.3,92 48.7,91 C48.9,89.9 49,88.7 49.4,87.6 C49.8,85.4 50.5,83.1 51.4,81 C51.5,80.8 51.4,80.5 51.4,80.4 C51.5,80.2 51.6,80.1 51.7,79.9 L51.7,79.9 Z M63.7,46.7 C64.9,45.6 65.9,44.4 66.9,43.2 C68.6,42.8 70.2,42.7 71.9,42.2 C70.7,41 70.3,40.1 69.3,38.9 C69.6,37.4 70.2,36 70.1,34.6 C68.5,35.2 67,35.6 65.4,36.1 C64,35.4 62.6,35 61.2,34.3 C60.7,35.5 61.1,37.3 60.6,38.7 C59.3,39.7 58.1,40.8 57.1,41.9 C58.6,42.2 60.2,42.5 61.7,43.2 C62.5,44.3 63.1,45.6 63.7,46.7 L63.7,46.7 Z M103.1,47.5 C108.6,47.8 114,49.2 119.3,51.1 C119.8,50.9 120.4,50.3 120.9,49.8 C115.1,47.4 109.3,45.9 103.3,45.6 C103,46 103.1,46.8 103.1,47.5 Z M69.5,55.3 C68.8,55.5 68,55.6 67.7,56.4 C68.2,56.5 67.4,57.8 66.9,57.3 C67.1,57 67.6,56.8 67.7,56.5 C66.9,56.3 65.8,57.7 65.3,58.3 C65.1,58 64.8,58.3 64.6,58.4 C62.7,60.1 61.1,61.7 59.6,63.3 C60,63.8 60.3,64.6 60.6,65.2 C62.5,63.1 64.7,61.1 66.9,59.1 C67,58.9 66.4,59.1 66.5,58.9 C66.7,58.6 67.1,58.5 67.2,58.2 C67.3,58.1 66.6,58.3 66.7,58.1 C67.1,57.9 67.4,57.3 67.7,57.4 C67.2,58 67.5,58.1 67.4,58.8 C77.7,50.9 87.4,48.2 97.1,47.6 C97.9,47 98.1,46.3 98,45.5 C88.8,46 79.6,48.2 70,54.5 C69.8,54.7 69.9,55 69.5,55.3 L69.5,55.3 Z M154.2,107.7 C154.5,105.3 154.8,102.9 154.8,100.5 C154.9,99.3 154.9,98.1 154.8,96.9 C154.6,95.6 155.1,94.4 154.1,93.2 C153.6,93.1 153.3,93 152.8,93.4 C152.7,93.5 152.7,93.6 152.6,93.7 C152.5,96 152.9,98.3 152.8,100.6 C152.7,102.9 152.5,105.2 152.2,107.5 C151.5,112.1 150.1,116.5 148.3,121 C148.9,121 149.5,121.4 150,121.8 C152,117.2 153.3,112.5 154.2,107.7 L154.2,107.7 Z M71.7,39.5 C71.8,39.3 71.5,39 71.5,39 C71.5,39.1 71.5,39.1 71.4,39.2 C71.5,39.3 71.6,39.6 71.7,39.5 Z M130.2,57.3 C130.6,57.2 130.8,57.3 131.1,57 C131.3,56.6 131.4,56.2 131.3,55.8 C129.3,54.1 127.3,52.8 125.1,51.9 C125.2,52.6 125,53.3 125,54 C126.8,55 128.5,56.2 130.2,57.3 Z M122.7,182.7 C122.9,183 122.4,183.7 122.6,183.5 C130.5,181.6 138.4,178.2 146.4,173.1 C146.2,172.8 145.8,172.5 146,172.3 C146.2,172.2 146.4,172.4 146.6,172.3 C146.4,172 146,171.6 145.9,171.3 C146.1,171.1 146.6,171.5 146.5,171.2 C146.3,171.1 146.2,170.9 146.1,170.7 C137.5,176.1 129,179.5 120.7,181.7 C120.3,182.2 120,182.7 119.5,183.2 C119.2,182.9 119.4,182.5 119,182.3 C117.3,182.1 115.4,182.9 113.6,183 C111.7,183.2 109.9,183.5 108.1,183.6 C104.5,183.9 101,184.1 97.4,183.9 C90.3,183.7 83.3,182.4 76.3,180.4 C62.4,176 48.8,168.6 35.8,153.5 C35.5,153.2 35,152.4 34.6,152.1 C33.9,152 33.4,152.8 32.8,152.7 C32.7,151.7 32.8,150.7 32.7,149.6 C25.2,139.3 21.1,129.3 18.5,119.4 C18,119.2 17.5,118.4 16.7,118.3 C16.4,118.6 16.2,118.7 16.1,118.9 C16.3,119.2 16.5,118.7 16.6,118.9 C16.3,119.2 16.4,119.3 16.4,119.6 C19.2,131 24.4,143 34.1,154.8 C47.2,170.3 61.8,178.3 76.3,182.7 C90.9,186.9 105.9,187.4 121.1,183.8 C121.2,183.4 122,182.3 122.7,182.7 L122.7,182.7 Z M181,130.1 C184.6,119.8 186.4,109.4 186,98.7 C185.7,98.8 185.1,98.9 185.5,98.5 C184.9,98.8 184.5,98.4 183.9,98.3 C184,121.4 177.1,144.7 153.6,165 C153.5,165.5 153.7,166.1 153.4,166.7 C153.2,166.7 152.9,166.9 152.7,166.9 C152.3,166.8 152.3,166.6 152.1,166.2 C151.1,167 150.1,167.7 149,168.5 C148.8,169 148.5,169.9 148,169.4 C148.1,169.3 148.4,169.2 148.3,169.1 C147.6,169.7 146.9,170.1 146.2,170.6 C146.4,171 146.3,171.3 146.6,171.6 C146.2,171.8 146.7,172.2 146.7,172.5 C146.7,172.7 146.2,172.5 146.6,172.8 C150.3,170.7 154.6,167.2 158.2,164 C169.5,153.6 176.3,142.3 180.6,130.9 C180.6,130.7 180.2,130.7 180.4,130.4 C180.7,130.1 180.8,130.4 181,130.1 L181,130.1 Z M148.2,171.3 C148.1,171.1 148.4,171 148.6,170.8 C148.6,171 148.4,171.1 148.2,171.3 Z M148.2,170.3 C148.2,170 148.8,169.8 149,169.5 C148.9,169.9 148.6,170.5 148.2,170.3 Z M172.8,146.3 C172.6,146.4 172.6,146.3 172.5,146 C172.7,145.8 172.8,145.9 173,145.8 C173.1,146 172.7,146.1 172.8,146.3 Z M172.8,143.5 C172.7,143.6 172.6,143.3 172.5,143.4 C172.3,143.2 172.8,143.1 172.9,142.8 C173.1,143.1 172.9,143.3 172.8,143.5 L172.8,143.5 Z M25,145.7 C20.7,138.4 17.5,131.2 15.6,124.1 C11.5,109.9 11.1,96.1 13.7,82.6 C16.3,69.1 21.9,55.9 32.4,43.1 C37.6,36.8 44.5,30.6 51.8,25.8 C59.1,21 66.2,17.9 73.3,15.6 C74.1,14.3 74.1,12.9 73.9,11.5 C63,14.7 51.7,20.1 40.6,29.5 C26.4,41.5 18.3,55.3 13.4,68.9 C14.3,70.6 14,72.5 11.8,73.9 C11.2,76.3 10.4,78.6 10.1,81 C10.3,81.3 10.7,81.1 10.5,81.5 C10.3,81.5 10.2,81.2 10.1,81.2 C9,86.4 8.5,91.7 8.4,97 C8.3,99.6 8.3,102.3 8.5,105 C8.6,107.6 8.7,110.5 9.4,112.9 C9.8,112.3 9.8,111.6 10.4,111 C11,111.7 10.5,112.4 10.3,113.1 L10.2,114.8 C10.2,115.2 9.6,115 9.6,115.3 C9.9,117.2 10.3,119.1 10.8,121 C11.9,120.7 13,120.5 14.1,119.4 C14.2,120.1 13.5,120.3 13.4,120.8 C13.6,120.6 13.9,120.1 14.2,120.3 C14.1,121 14,121.8 14.5,122.4 C14.3,123 13.5,123.1 13.1,123.7 C13.1,124.3 12.8,124.8 12.1,125.3 C15.2,136.6 21.2,148.6 31,160.1 C32.5,161.7 34.4,163.7 36,165.4 C36.9,166.1 37.6,167 38.5,167.7 C38.9,168.2 39.4,168.5 39.8,168.9 C40,169.1 40.2,169.3 40.4,169.4 C40.5,169.4 40.6,169.7 40.7,169.6 C40.8,169.8 41,170 40.9,169.7 C40.7,169.6 41.3,169.4 41.4,169.3 C41.7,168.2 41.6,166.9 42.3,166 C36,160.7 29.6,153 25,145.7 L25,145.7 Z M70.9,13 C71.1,13.2 70.8,13.3 70.9,13.5 C70.8,13.7 70.7,13.4 70.6,13.3 L70.9,13 Z M70.2,13.5 C70.4,13.7 70.2,14 70.3,14.2 C70.2,14.3 70,14 69.9,13.8 L70.2,13.5 Z M12.7,119.3 C12.6,119.2 12.5,119.2 12.4,119.1 C12.6,118.9 12.9,118.7 13.2,118.6 C13.4,118.9 12.8,119 12.7,119.3 Z M39.2,166.8 C39,167 38.8,167 38.9,167.2 C37.9,166.3 36.9,164.8 35.9,163.7 C36.1,163.3 36.3,163.7 36.5,163.6 C36.7,164.9 38.5,166.2 39.2,166.8 L39.2,166.8 Z M118.3,14.1 C118.6,14 118.9,14.1 119.1,14.3 C119.7,14.2 120.2,14.6 120.7,14.6 C121.9,14.9 123,15.2 124.1,15.5 C126.3,16.2 128.5,16.8 130.7,17.7 C135.1,19.3 139.4,21.4 143.7,23.8 C152.1,28.7 161,35.8 168.5,45.3 C182,62.4 186.6,79.7 187.7,96 C189,96.3 190.1,97.3 191.4,97.7 C191.7,95.2 191.2,92.5 191,90.1 C191,90.6 190.7,91 190.1,90.7 L191,90 C190.8,89.1 191.1,87.4 190.3,87.2 C190.6,87 190.7,86.9 190.7,86.7 C189,76 185.5,64.7 178.8,53.4 C172.1,42 161.3,30.7 151.5,24.3 C148.1,21.9 144.8,20 141.4,18.2 C139.7,17.3 138,16.5 136.3,15.8 C135.4,15.4 134.6,15 133.7,14.7 C132.9,14.5 131.8,13.8 131.2,14 C130.9,13.6 130.6,13.6 130.3,13.5 C130,13.3 129.8,13.7 129.5,13.7 C129.4,13.4 129.7,13.3 129.4,13.1 C126.9,12.3 124.3,11.3 121.6,10.9 C122,11 121.5,11.2 121.2,11.4 C120.9,11.7 120.7,11.3 120.4,11.6 C120,12.4 118.6,12.7 118.1,13.6 C118,13.7 118.1,14 117.9,13.9 C117.4,14 118.1,13.9 118.3,14.1 L118.3,14.1 Z M190.1,89.6 C190.3,89.9 190.3,90.1 190.1,90.3 C189.8,90.4 189.6,90.3 189.4,90.3 C189.4,90.1 189.9,89.8 190.1,89.6 Z M189.3,89.2 C189.3,89.4 189.4,89.6 189.3,89.8 C189,90 188.8,90 188.6,89.9 C188.6,89.6 189.1,89.5 189.3,89.2 Z M188.5,88.6 C188.6,88.8 188.6,89.1 188.5,89.2 C188.2,89.4 188,89.2 187.9,89.2 C187.8,89 188.3,88.9 188.5,88.6 Z M129.2,13.7 L129.4,13.9 C129.3,14.1 129.2,13.9 129,14 C129,13.8 129.1,13.7 129.2,13.7 Z M182.1,133.1 C182.5,132.8 182.7,133.4 183.3,133.3 C183,132.8 182.5,132.5 182.3,131.9 L182.2,132 C180.1,138 176.6,144 173.1,150.1 C167.8,157.4 161.5,164.6 153.1,171 C151,172.4 149,173.9 147.1,175.1 C146.8,175.3 147.2,175.5 147,175.6 C146.9,175.5 146.8,175.3 146.7,175.5 C147,175.6 147,176.2 147.1,176.5 C146.9,176.4 146.6,175.9 146.3,175.6 C138.3,180.6 130.5,183.5 122.8,185.7 C122.7,186.2 122,186.8 122.5,187.4 C123,187 123.9,184.9 124.9,185.4 C124.7,186.9 122.7,187.9 122.6,189.4 C123.6,189.2 124.7,189 125.8,188.5 C126.1,188.1 126.6,187.2 127.3,187.3 C127.7,187.4 127.4,187.9 127.7,188.1 C136.8,185.3 146.3,180.8 155.6,173.8 C162.8,168.3 169,161.9 173.5,155.8 C173.2,155.5 172.7,155.6 172.3,155.1 C172.2,154.4 172.7,153.6 172.5,152.9 L173.1,152.4 C173.3,152.9 174,153.4 174.3,153 C174.5,152.3 174.2,151.5 174.5,150.9 C175.3,151 176.1,150.4 176.9,150.2 C177.1,149.2 176.9,148.3 177.2,147.3 C177.1,146.6 176.9,146 177.2,145.4 C178.3,145.6 177.8,147.2 178.3,148.1 C180.8,144.1 182.7,140.1 184.4,136.1 C183.7,135.4 181.9,134.5 182.1,133.1 L182.1,133.1 Z M146.3,178.4 C146.1,178.2 146.2,178.1 146.1,177.9 C146.3,177.9 146.5,178 146.7,177.9 C146.8,178.2 146.4,178.3 146.3,178.4 Z M146.2,177.1 C146.4,177 146.6,177.1 146.8,177.1 C146.9,177.4 146.9,177.8 147,177.9 C146.6,178.1 146.4,177.3 146.2,177.1 Z M146,176.1 C146.2,176 146.5,176.1 146.6,176.1 C146.8,176.4 146.7,176.8 146.9,177 C146.6,177 146.3,176.4 146,176.1 Z M172.8,151.9 C172.6,152 172.5,151.9 172.4,151.7 C172.7,151.5 172.9,151.4 173.1,151.2 C173,151.5 172.8,151.7 172.8,151.9 Z M93.2,124.1 L96.8,124.9",id:"\u5F62\u72B6","fill-rule":"nonzero"}}),r("text",{attrs:{id:"\u91CD\u65B0\u6FC0\u6D3B",transform:"translate(99.1901, 99.5228) rotate(-30) translate(-99.1901, -99.5228)","font-family":"PingFangSC-Medium, PingFang SC","font-size":"39","font-weight":"400","letter-spacing":"0.4"}},[r("tspan",{attrs:{x:"20.3900543",y:"113.522759"}},[e._v("\u91CD\u65B0\u6FC0\u6D3B")])])])])])]):e._e(),a.historyActivityType=="endEvent"?r("p",[r("b",[e._v("\u6D41\u7A0B\u5DF2\u7ED3\u675F")])]):a.historyActivityType=="startEvent"?r("p",[r("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?e.my(a):"")))]),e._v(" \u5728 "),r("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u53D1\u8D77\u4E86\u6D41\u7A0B ")]):r("p",[r("span",{staticClass:"flow-name"},[e._v(e._s(a.assigneeName||(a.comments&&a.comments.length>0?e.my(a):"")))]),e._v(" \u5728 "),r("span",{staticClass:"flow-time"},[e._v(e._s(a.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),r("span",{staticClass:"flow-node"},[e._v(e._s(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),a.historyActivityDurationTime?r("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 r("p",{key:p},[p<1?[r("span",{class:["comment-type",a.class]},[e._v(e._s(e.commentMap[c.type]||c.type))]),r("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),r("span",[e._v(" "+e._s(c.fullMessage)+" ")]),a.comments.filter(function(m){return m.action==="AddComment"}).length>1?r("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),r("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),r("el-icon",[e.isFlag?r("el-icon-arrow-up"):r("el-icon-arrow-down")],1)],1):e._e(),c.time&&e.isFlag?r("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e(),p>0&&e.isFlag?[r("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[c.type]||c.type))]),r("span",{staticClass:"comment-user"},[e._v(e._s(c.userId))]),e._v(": "),r("span",[e._v(" "+e._s(c.fullMessage)+" ")]),c.time?r("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(c.time))]):e._e()]:e._e()],2)}),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?[r("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[r("span",[e._v("\u7B7E\u5B57: ")]),r("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[r("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?[r("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[r("span",[e._v("\u9644\u4EF6: ")]),r("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[r("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&&a.historyActivityType!="startEvent"?r("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(a.endTime))]):e._e()],2)],1)]})],2)],1)},lj=[];const _X="",cj={name:"nf-flow",props:{isHistory:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Sy,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:{my(e){return e.comments[e.comments.length-1].userId||""},handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},G3={};var uj=rn(cj,sj,lj,!1,dj,"f93978e6",null,null);function dj(e){for(let n in G3)this[n]=G3[n]}const fj=function(){return uj.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 sd=Object.prototype.toString,pj=Object.prototype.hasOwnProperty;function Dy(e){return e===void 0}function Ql(e){return e!==void 0}function J3(e){return e==null}function Sr(e){return sd.call(e)==="[object Array]"}function us(e){return sd.call(e)==="[object Object]"}function to(e){return sd.call(e)==="[object Number]"}function ds(e){const n=sd.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"||n==="[object Proxy]"}function Dr(e){return sd.call(e)==="[object String]"}function Hl(e,n){return!J3(e)&&pj.call(e,n)}function Br(e,n){const r=By(n);let a;return We(e,function(s,c){if(r(s,c))return a=s,!1}),a}function hj(e,n){const r=By(n);let a=Sr(e)?-1:void 0;return We(e,function(s,c){if(r(s,c))return a=c,!1}),a}function Vl(e,n){const r=By(n);let a=[];return We(e,function(s,c){r(s,c)&&a.push(s)}),a}function We(e,n){let r,a;if(Dy(e))return;const s=Sr(e)?Aj:gj;for(let c in e)if(Hl(e,c)&&(r=e[c],a=n(r,s(c)),a===!1))return r}function Ul(e,n,r){return We(e,function(a,s){r=n(r,a,s)}),r}function K3(e,n){return!!Ul(e,function(r,a,s){return r&&n(a,s)},!0)}function X3(e,n){return!!Br(e,n)}function mj(e,n){let r=[];return We(e,function(a,s){r.push(n(a,s))}),r}function Z3(e){return function(n){return K3(e,function(r,a){return n[a]===r})}}function By(e){return ds(e)?e:n=>n===e}function gj(e){return e}function Aj(e){return Number(e)}function vj(e,n){let r,a,s,c;function p(S){let N=Date.now(),_=S?0:c+n-N;if(_>0)return m(_);e.apply(s,a),g()}function m(S){r=setTimeout(p,S)}function g(){r&&clearTimeout(r),r=c=a=s=void 0}function y(){r&&p(!0),g()}function O(...S){c=Date.now(),a=S,s=this,r||m(n)}return O.flush=y,O.cancel=g,O}function no(e,n){return e.bind(n)}function Je(e,...n){return Object.assign(e,...n)}function bj(e,n,r){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];Ql(p)&&J3(m)&&(m=a[s]=isNaN(+p)?{}:[]),Dy(p)?Dy(r)?delete a[s]:a[s]=r:a=m}),e}function _j(e,n){let r={},a=Object(e);return We(n,function(s){s in a&&(r[s]=e[s])}),r}function yj(e,n){let r={},a=Object(e);return We(a,function(s,c){n.indexOf(c)===-1&&(r[c]=s)}),r}var xj=1e3;function ba(e,n){var r=this;n=n||xj,e.on(["render.shape","render.connection"],n,function(a,s){var c=a.type,p=s.element,m=s.gfx,g=s.attrs;if(r.canRender(p))return c==="render.shape"?r.drawShape(m,p,g):r.drawConnection(m,p,g)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(a,s){if(r.canRender(s))return a.type==="render.getShapePath"?r.getShapePath(s):r.getConnectionPath(s)})}ba.prototype.canRender=function(e){},ba.prototype.drawShape=function(e,n){},ba.prototype.drawConnection=function(e,n){},ba.prototype.getShapePath=function(e){},ba.prototype.getConnectionPath=function(e){};function Ge(e,n){var r=Wt(e);return r&&typeof r.$instanceOf=="function"&&r.$instanceOf(n)}function wj(e,n){return X3(n,function(r){return Ge(e,r)})}function Wt(e){return e&&e.businessObject||e}function fs(e){return e&&e.di}function ps(e,n){return Ge(e,"bpmn:CallActivity")?!1:Ge(e,"bpmn:SubProcess")?(n=n||fs(e),n&&Ge(n,"bpmndi:BPMNPlane")?!0:n&&!!n.isExpanded):Ge(e,"bpmn:Participant")?!!Wt(e).processRef:!0}function $3(e){if(!(!Ge(e,"bpmn:Participant")&&!Ge(e,"bpmn:Lane"))){var n=fs(e).isHorizontal;return n===void 0?!0:n}}function Ej(e){return e&&!!Wt(e).triggeredByEvent}function Cj(e){return us(e)&&Hl(e,"waypoints")}var wh={width:90,height:20},q3=15;function kj(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 Sj(e){var n=e.length/2-1,r=e[Math.floor(n)],a=e[Math.ceil(n+.01)],s=Dj(e),c=Math.atan((a.y-r.y)/(a.x-r.x)),p=s.x,m=s.y;return Math.abs(c)<Math.PI/2?m-=q3:p+=q3,{x:p,y:m}}function Dj(e){var n=e.length/2-1,r=e[Math.floor(n)],a=e[Math.ceil(n+.01)];return{x:r.x+(a.x-r.x)/2,y:r.y+(a.y-r.y)/2}}function Bj(e){return e.waypoints?Sj(e.waypoints):Ge(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+wh.height/2}:{x:e.x+e.width/2,y:e.y+e.height+wh.height/2}}function Ij(e,n){var r,a,s,c=e.label;return c&&c.bounds?(s=c.bounds,a={width:Math.max(wh.width,s.width),height:s.height},r={x:s.x+s.width/2,y:s.y+s.height/2}):(r=Bj(n),a=wh),Je({x:r.x-a.width/2,y:r.y-a.height/2},a)}function Oj(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 Tj(e){var n=e.categoryValueRef;return n&&n.value||""}function Eh(e){var n=e.businessObject,r=Oj(n);if(r)return r==="categoryValueRef"?Tj(n):n[r]||""}function Nj(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}function e6(e,n){return n.appendChild(Nj(e,n))}function xn(e,n){return e6(n,e),e}var Iy=2,t6={"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":Iy,"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":Iy,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Mj(e,n){return t6[n]?e.style[n]:e.getAttributeNS(null,n)}function n6(e,n,r){var a=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=t6[a];s?(s===Iy&&typeof r=="number"&&(r=String(r)+"px"),e.style[a]=r):e.setAttributeNS(null,n,r)}function Fj(e,n){var r=Object.keys(n),a,s;for(a=0,s;s=r[a];a++)n6(e,s,n[s])}function jt(e,n,r){if(typeof n=="string")if(r!==void 0)n6(e,n,r);else return Mj(e,n);else Fj(e,n);return e}const Pj=Object.prototype.toString;function Jr(e){return new io(e)}function io(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}io.prototype.add=function(e){return this.list.add(e),this},io.prototype.remove=function(e){return Pj.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},io.prototype.removeMatching=function(e){const n=this.array();for(let r=0;r<n.length;r++)e.test(n[r])&&this.remove(n[r]);return this},io.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this},io.prototype.array=function(){return Array.from(this.list)},io.prototype.has=io.prototype.contains=function(e){return this.list.contains(e)};function Rj(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}var Oy={svg:"http://www.w3.org/2000/svg"},i6='<svg xmlns="'+Oy.svg+'"';function r6(e){var n=!1;e.substring(0,4)==="<svg"?e.indexOf(Oy.svg)===-1&&(e=i6+e.substring(4)):(e=i6+">"+e+"</svg>",n=!0);var r=jj(e);if(!n)return r;for(var a=document.createDocumentFragment(),s=r.firstChild;s.firstChild;)a.appendChild(s.firstChild);return a}function jj(e){var n;return n=new DOMParser,n.async=!1,n.parseFromString(e,"text/xml")}function Lt(e,n){var r;return e=e.trim(),e.charAt(0)==="<"?(r=r6(e).firstChild,r=document.importNode(r,!0)):r=document.createElementNS(Oy.svg,e),n&&jt(r,n),r}var Ty=null;function Ny(){return Ty===null&&(Ty=Lt("svg")),Ty}function a6(e,n){var r,a,s=Object.keys(n);for(r=0;a=s[r];r++)e[a]=n[a];return e}function Lj(e,n,r,a,s,c){var p=Ny().createSVGMatrix();switch(arguments.length){case 0:return p;case 1:return a6(p,e);case 6:return a6(p,{a:e,b:n,c:r,d:a,e:s,f:c})}}function ld(e){return e?Ny().createSVGTransformFromMatrix(e):Ny().createSVGTransform()}var o6=/([&<>]{1})/g,zj=/([&<>\n\r"]{1})/g,Qj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function My(e,n){function r(a,s){return Qj[s]||s}return e.replace(n,r)}function s6(e,n){var r,a,s,c,p;switch(e.nodeType){case 3:n.push(My(e.textContent,o6));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(s=e.attributes,r=0,a=s.length;r<a;++r)c=s.item(r),n.push(" ",c.name,'="',My(c.value,zj),'"');if(e.hasChildNodes()){for(n.push(">"),p=e.childNodes,r=0,a=p.length;r<a;++r)s6(p.item(r),n);n.push("</",e.tagName,">")}else n.push("/>");break;case 8:n.push("<!--",My(e.nodeValue,o6),"-->");break;case 4:n.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function Hj(e,n){var r=r6(n);if(Rj(e),!!n){Uj(r)||(r=r.documentElement);for(var a=Yj(r.childNodes),s=0;s<a.length;s++)e6(a[s],e)}}function Vj(e){for(var n=e.firstChild,r=[];n;)s6(n,r),n=n.nextSibling;return r.join("")}function Uj(e){return e.nodeName==="#document-fragment"}function l6(e,n){if(n!==void 0){try{Hj(e,n)}catch(r){throw new Error("error parsing SVG: "+r.message)}return e}else return Vj(e)}function Yj(e){return Array.prototype.slice.call(e)}function cd(e){var n=e.parentNode;return n&&n.removeChild(e),e}function Wj(e,n){return n instanceof SVGMatrix?e.createSVGTransformFromMatrix(n):n}function Gj(e,n){var r,a;for(e.clear(),r=0;a=n[r];r++)e.appendItem(Wj(e,a))}function ud(e,n){var r=e.transform.baseVal;return n&&(Array.isArray(n)||(n=[n]),Gj(r,n)),r.consolidate()}function hs(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function Jj(e){return["M",e.x,e.y]}function Fy(e){return["L",e.x,e.y]}function Kj(e,n,r){return["C",e.x,e.y,n.x,n.y,r.x,r.y]}function Xj(e,n){const r=e.length,a=[Jj(e[0])];for(let s=1;s<r;s++){const c=e[s-1],p=e[s],m=e[s+1];if(!m||!n){a.push(Fy(p));continue}const g=Math.min(n,Py(p.x-c.x,p.y-c.y),Py(m.x-p.x,m.y-p.y));if(!g){a.push(Fy(p));continue}const y=Ch(p,c,g),O=Ch(p,c,g*.5),S=Ch(p,m,g),N=Ch(p,m,g*.5);a.push(Fy(y)),a.push(Kj(O,N,S))}return a}function Ch(e,n,r){const a=n.x-e.x,s=n.y-e.y,c=Py(a,s),p=r/c;return{x:e.x+a*p,y:e.y+s*p}}function Py(e,n){return Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}function Ry(e,n,r){to(n)&&(r=n,n=null),n||(n={});const a=Lt("path",n);return to(r)&&(a.dataset.cornerRadius=String(r)),c6(a,e)}function c6(e,n){const r=parseInt(e.dataset.cornerRadius,10)||0;return jt(e,{d:hs(Xj(n,r))}),e}var jy="hsl(225, 10%, 15%)",Zj="white";function Kr(e,n){return X3(e.eventDefinitions,function(r){return r.$type===n})}function $j(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function qj(e){var n=e.dataObjectRef;return e.isCollection||n&&n.isCollection}function lt(e,n,r){var a=fs(e);return r||a.get("color:background-color")||a.get("bioc:fill")||n||Zj}function Qe(e,n,r){var a=fs(e);return r||a.get("color:border-color")||a.get("bioc:stroke")||n||jy}function dd(e,n,r,a){var s=fs(e),c=s.get("label");return a||c&&c.get("color:color")||n||Qe(e,r)}function eL(e){var n=e.x+e.width/2,r=e.y+e.height/2,a=e.width/2,s=[["M",n,r],["m",0,-a],["a",a,a,0,1,1,0,2*a],["a",a,a,0,1,1,0,-2*a],["z"]];return hs(s)}function tL(e,n){var r=e.x,a=e.y,s=e.width,c=e.height,p=[["M",r+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 hs(p)}function nL(e){var n=e.width,r=e.height,a=e.x,s=e.y,c=n/2,p=r/2,m=[["M",a+c,s],["l",c,p],["l",-c,p],["l",-c,-p],["z"]];return hs(m)}function iL(e){var n=e.x,r=e.y,a=e.width,s=e.height,c=[["M",n,r],["l",a,0],["l",0,s],["l",-a,0],["z"]];return hs(c)}function fd(e,n={}){return{width:rr(e,n),height:_i(e,n)}}function rr(e,n={}){return Hl(n,"width")?n.width:e.width}function _i(e,n={}){return Hl(n,"height")?n.height:e.height}function rL(e,n){return n.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(a){if(a!=="default"&&!(a in e)){var s=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:function(){return r[a]}})}})}),Object.freeze(e)}const aL=Object.prototype.toString,oL=Object.prototype.hasOwnProperty;function sL(e){return e===void 0}function lL(e){return aL.call(e)==="[object Array]"}function cL(e,n){return oL.call(e,n)}function u6(e,n){let r,a;if(sL(e))return;const s=lL(e)?dL:uL;for(let c in e)if(cL(e,c)&&(r=e[c],a=n(r,s(c)),a===!1))return r}function uL(e){return e}function dL(e){return Number(e)}function Nn(e,...n){const r=e.style;return u6(n,function(a){!a||u6(a,function(s,c){r[c]=s})}),e}function Ly(e,n,r){return arguments.length==2?e.getAttribute(n):r===null?e.removeAttribute(n):(e.setAttribute(n,r),e)}const fL=Object.prototype.toString;function ms(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 fL.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},ro.prototype.removeMatching=function(e){const n=this.array();for(let r=0;r<n.length;r++)e.test(n[r])&&this.remove(n[r]);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 d6(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function f6(e,n,r){var a=r?e:e.parentNode;return a&&typeof a.closest=="function"&&a.closest(n)||null}var kh={},Sh,zy,Qy;function p6(){Sh=window.addEventListener?"addEventListener":"attachEvent",zy=window.removeEventListener?"removeEventListener":"detachEvent",Qy=Sh!=="addEventListener"?"on":""}var pL=kh.bind=function(e,n,r,a){return Sh||p6(),e[Sh](Qy+n,r,a||!1),r},hL=kh.unbind=function(e,n,r,a){return zy||p6(),e[zy](Qy+n,r,a||!1),r},gs=rL({__proto__:null,bind:pL,unbind:hL,default:kh},[kh]),h6=["focus","blur"];function mL(e,n,r,a,s){return h6.indexOf(r)!==-1&&(s=!0),gs.bind(e,r,function(c){var p=c.target||c.srcElement;c.delegateTarget=f6(p,n,!0),c.delegateTarget&&a.call(e,c)},s)}function gL(e,n,r,a){return h6.indexOf(n)!==-1&&(a=!0),gs.unbind(e,n,r,a)}var Yl={bind:mL,unbind:gL},AL=vL,m6=!1,Dh;typeof document<"u"&&(Dh=document.createElement("div"),Dh.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',m6=!Dh.getElementsByTagName("link").length,Dh=void 0);var sn={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:m6?[1,"X<div>","</div>"]:[0,"",""]};sn.td=sn.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],sn.option=sn.optgroup=[1,'<select multiple="multiple">',"</select>"],sn.thead=sn.tbody=sn.colgroup=sn.caption=sn.tfoot=[1,"<table>","</table>"],sn.polyline=sn.ellipse=sn.polygon=sn.circle=sn.text=sn.line=sn.path=sn.rect=sn.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function vL(e,n){if(typeof e!="string")throw new TypeError("String expected");n||(n=document);var r=/<([\w:]+)/.exec(e);if(!r)return n.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var a=r[1];if(a=="body"){var g=n.createElement("html");return g.innerHTML=e,g.removeChild(g.lastChild)}var s=Object.prototype.hasOwnProperty.call(sn,a)?sn[a]:sn._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 Hi=AL;function _a(e,n){return n=n||document,n.querySelector(e)}function bL(e,n){return n=n||document,n.querySelectorAll(e)}function Wl(e){e.parentNode&&e.parentNode.removeChild(e)}function Hy(e,n,r,a,s){var c=ld();c.setTranslate(n,r);var p=ld();p.setRotate(a||0,0,0);var m=ld();m.setScale(s||1,s||1),ud(e,[c,p,m])}function g6(e,n,r){var a=ld();a.setTranslate(n,r),ud(e,a)}function _L(e,n){var r=ld();r.setRotate(n,0,0),ud(e,r)}function yL(e,n){return n={exports:{}},e(n,n.exports),n.exports}var xL=yL(function(e){var n=e.exports=function(r,a){if(a||(a=16),r===void 0&&(r=128),r<=0)return"0";for(var s=Math.log(Math.pow(2,r))/Math.log(a),c=2;s===1/0;c*=2)s=Math.log(Math.pow(2,r/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,r)?n(r,a):m};n.rack=function(r,a,s){var c=function(m){var g=0;do{if(g++>10)if(s)r+=s;else throw new Error("too many ID collisions, use more bits");var y=n(r,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=r||128,c.base=a||16,c}});function ya(e){if(!(this instanceof ya))return new ya(e);e=e||[128,36,1],this._seed=e.length?xL.rack(e[0],e[1],e[2]):e}ya.prototype.next=function(e){return this._seed(e||!0)},ya.prototype.nextPrefixed=function(e,n){var r;do r=e+this.next(!0);while(this.assigned(r));return this.claim(r,n),r},ya.prototype.claim=function(e,n){this._seed.set(e,n||!0)},ya.prototype.assigned=function(e){return this._seed.get(e)||!1},ya.prototype.unclaim=function(e){delete this._seed.hats[e]},ya.prototype.clear=function(){var e=this._seed.hats,n;for(n in e)this.unclaim(n)};var wL=new ya,EL=10,Bh=3,CL=1.5,Ih=10,Gl=.95,kL=1,SL=.25;function As(e,n,r,a,s,c,p){ba.call(this,n,p);var m=e&&e.defaultFillColor,g=e&&e.defaultStrokeColor,y=e&&e.defaultLabelColor;function O(P){return r.computeStyle(P,{strokeLinecap:"round",strokeLinejoin:"round",stroke:jy,strokeWidth:2,fill:"white"})}function S(P){return r.computeStyle(P,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:jy,strokeWidth:2})}function N(P,E){var{ref:C={x:0,y:0},scale:X=1,element:ee,parentGfx:fe=s._svg}=E,De=Lt("marker",{id:P,viewBox:"0 0 20 20",refX:C.x,refY:C.y,markerWidth:20*X,markerHeight:20*X,orient:"auto"});xn(De,ee);var je=_a(":scope > defs",fe);je||(je=Lt("defs"),xn(fe,je)),xn(je,De)}function _(P,E,C,X){var ee=wL.nextPrefixed("marker-");return B(P,ee,E,C,X),"url(#"+ee+")"}function B(P,E,C,X,ee){if(C==="sequenceflow-end"){var fe=Lt("path",{d:"M 1 5 L 11 10 L 1 15 Z",...O({fill:ee,stroke:ee,strokeWidth:1})});N(E,{element:fe,ref:{x:11,y:10},scale:.5,parentGfx:P})}if(C==="messageflow-start"){var De=Lt("circle",{cx:6,cy:6,r:3.5,...O({fill:X,stroke:ee,strokeWidth:1,strokeDasharray:[1e4,1]})});N(E,{element:De,ref:{x:6,y:6},parentGfx:P})}if(C==="messageflow-end"){var je=Lt("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...O({fill:X,stroke:ee,strokeWidth:1,strokeDasharray:[1e4,1]})});N(E,{element:je,ref:{x:8.5,y:5},parentGfx:P})}if(C==="association-start"){var Ke=Lt("path",{d:"M 11 5 L 1 10 L 11 15",...S({fill:"none",stroke:ee,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(E,{element:Ke,ref:{x:1,y:10},scale:.5,parentGfx:P})}if(C==="association-end"){var yt=Lt("path",{d:"M 1 5 L 11 10 L 1 15",...S({fill:"none",stroke:ee,strokeWidth:1.5,strokeDasharray:[1e4,1]})});N(E,{element:yt,ref:{x:11,y:10},scale:.5,parentGfx:P})}if(C==="conditional-flow-marker"){var ht=Lt("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...O({fill:X,stroke:ee})});N(E,{element:ht,ref:{x:-1,y:10},scale:.5,parentGfx:P})}if(C==="conditional-default-flow-marker"){var Ot=Lt("path",{d:"M 6 4 L 10 16",...O({stroke:ee,fill:"none"})});N(E,{element:Ot,ref:{x:0,y:10},scale:.5,parentGfx:P})}}function j(P,E,C,X,ee={}){us(X)&&(ee=X,X=0),X=X||0,ee=O(ee);var fe=E/2,De=C/2,je=Lt("circle",{cx:fe,cy:De,r:Math.round((E+C)/4-X),...ee});return xn(P,je),je}function R(P,E,C,X,ee,fe){us(ee)&&(fe=ee,ee=0),ee=ee||0,fe=O(fe);var De=Lt("rect",{x:ee,y:ee,width:E-ee*2,height:C-ee*2,rx:X,ry:X,...fe});return xn(P,De),De}function T(P,E,C,X){var ee=E/2,fe=C/2,De=[{x:ee,y:0},{x:E,y:fe},{x:ee,y:C},{x:0,y:fe}],je=De.map(function(yt){return yt.x+","+yt.y}).join(" ");X=O(X);var Ke=Lt("polygon",{...X,points:je});return xn(P,Ke),Ke}function F(P,E,C,X){C=S(C);var ee=Ry(E,C,X);return xn(P,ee),ee}function v(P,E,C){return F(P,E,C,5)}function w(P,E,C){C=S(C);var X=Lt("path",{...C,d:E});return xn(P,X),X}function k(P,E,C,X){return w(E,C,Je({"data-marker":P},X))}function Q(P){return K[P]}function M(P){return function(E,C,X){return Q(P)(E,C,X)}}var H={"bpmn:MessageEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.235,my:.315}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill),De=X?lt(E,m,C.fill):Qe(E,g,C.stroke),je=w(P,ee,{fill:fe,stroke:De,strokeWidth:1});return je},"bpmn:TimerEventDefinition":function(P,E,C={}){var X=C.width||E.width,ee=C.height||E.height,fe=C.width?1:2,De=j(P,X,ee,.2*ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:fe}),je=a.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:ee,position:{mx:.5,my:.5}});w(P,je,{stroke:Qe(E,g,C.stroke),strokeWidth:fe});for(var Ke=0;Ke<12;Ke++){var yt=a.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:X,containerHeight:ee,position:{mx:.5,my:.5}}),ht=X/2,Ot=ee/2;w(P,yt,{strokeWidth:1,stroke:Qe(E,g,C.stroke),transform:"rotate("+Ke*30+","+Ot+","+ht+")"})}return De},"bpmn:EscalationEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.5,my:.2}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(P,E,C={}){var X=a.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.5,my:.222}});return w(P,X,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:.57,my:.263}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.2,my:.722}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:.638,my:-.055}}),fe=X?Qe(E,g,C.stroke):"none",De=w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1});return _L(De,45),De},"bpmn:CompensateEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.22,my:.5}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.5,my:.2}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{strokeWidth:1,fill:fe,stroke:Qe(E,g,C.stroke)})},"bpmn:MultipleEventDefinition":function(P,E,C={},X){var ee=a.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.211,my:.36}}),fe=X?Qe(E,g,C.stroke):lt(E,m,C.fill);return w(P,ee,{fill:fe,stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(P,E,C={}){var X=a.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:C.width||E.width,containerHeight:C.height||E.height,position:{mx:.458,my:.194}});return w(P,X,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(P,E,C={}){var X=j(P,E.width,E.height,8,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:4});return X}};function ne(P,E,C={},X){var ee=Wt(P),fe=$j(ee),De=X||P;return ee.get("eventDefinitions")&&ee.get("eventDefinitions").length>1?ee.get("parallelMultiple")?H["bpmn:ParallelMultipleEventDefinition"](E,De,C,fe):H["bpmn:MultipleEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:MessageEventDefinition")?H["bpmn:MessageEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:TimerEventDefinition")?H["bpmn:TimerEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:ConditionalEventDefinition")?H["bpmn:ConditionalEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:SignalEventDefinition")?H["bpmn:SignalEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:EscalationEventDefinition")?H["bpmn:EscalationEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:LinkEventDefinition")?H["bpmn:LinkEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:ErrorEventDefinition")?H["bpmn:ErrorEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:CancelEventDefinition")?H["bpmn:CancelEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:CompensateEventDefinition")?H["bpmn:CompensateEventDefinition"](E,De,C,fe):Kr(ee,"bpmn:TerminateEventDefinition")?H["bpmn:TerminateEventDefinition"](E,De,C,fe):null}var re={ParticipantMultiplicityMarker:function(P,E,C={}){var X=rr(E,C),ee=_i(E,C),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:(X/2-6)/X,my:(ee-15)/ee}});k("participant-multiplicity",P,fe,{strokeWidth:2,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},SubProcessMarker:function(P,E,C={}){var X=R(P,14,14,0,{strokeWidth:1,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)});g6(X,E.width/2-7.5,E.height-20);var ee=a.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:E.width,containerHeight:E.height,position:{mx:(E.width/2-7.5)/E.width,my:(E.height-20)/E.height}});k("sub-process",P,ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},ParallelMarker:function(P,E,C){var X=rr(E,C),ee=_i(E,C),fe=a.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:(X/2+C.parallel)/X,my:(ee-20)/ee}});k("parallel",P,fe,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},SequentialMarker:function(P,E,C){var X=a.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:(E.width/2+C.seq)/E.width,my:(E.height-19)/E.height}});k("sequential",P,X,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},CompensationMarker:function(P,E,C){var X=a.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:(E.width/2+C.compensation)/E.width,my:(E.height-13)/E.height}});k("compensation",P,X,{strokeWidth:1,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})},LoopMarker:function(P,E,C){var X=rr(E,C),ee=_i(E,C),fe=a.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:(X/2+C.loop)/X,my:(ee-7)/ee}});k("loop",P,fe,{strokeWidth:1.5,fill:"none",stroke:Qe(E,g,C.stroke),strokeMiterlimit:.5})},AdhocMarker:function(P,E,C){var X=rr(E,C),ee=_i(E,C),fe=a.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:(X/2+C.adhoc)/X,my:(ee-15)/ee}});k("adhoc",P,fe,{strokeWidth:1,fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke)})}};function de(P,E,C,X){re[P](E,C,X)}function me(P,E,C=[],X={}){X={fill:X.fill,stroke:X.stroke,width:rr(E,X),height:_i(E,X)};var ee=Wt(E),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},ee.get("isForCompensation")&&C.push("CompensationMarker"),Ge(ee,"bpmn:AdHocSubProcess")&&(C.push("AdhocMarker"),fe||Je(X,{compensation:X.compensation-18}));var De=ee.get("loopCharacteristics"),je=De&&De.get("isSequential");De&&(Je(X,{compensation:X.compensation-18}),C.includes("AdhocMarker")&&Je(X,{seq:-23,loop:-18,parallel:-24}),je===void 0&&C.push("LoopMarker"),je===!1&&C.push("ParallelMarker"),je===!0&&C.push("SequentialMarker")),C.includes("CompensationMarker")&&C.length===1&&Je(X,{compensation:-8}),We(C,function(Ke){de(Ke,P,E,X)})}function pe(P,E,C={}){C=Je({size:{width:100}},C);var X=c.createText(E||"",C);return Jr(X).add("djs-label"),xn(P,X),X}function Se(P,E,C,X={}){var ee=Wt(E),fe=fd({x:E.x,y:E.y,width:E.width,height:E.height},X);return pe(P,ee.name,{align:C,box:fe,padding:7,style:{fill:dd(E,y,g,X.stroke)}})}function ye(P,E,C={}){var X={width:90,height:30,x:E.width/2+E.x,y:E.height/2+E.y};return pe(P,Eh(E),{box:X,fitBox:!0,style:Je({},c.getExternalStyle(),{fill:dd(E,y,g,C.stroke)})})}function _e(P,E,C,X={}){var ee=$3(C),fe=pe(P,E,{box:{height:30,width:ee?_i(C,X):rr(C,X)},align:"center-middle",style:{fill:dd(C,y,g,X.stroke)}});if(ee){var De=-1*_i(C,X);Hy(fe,0,-De,270)}}function W(P,E,C={}){var{width:X,height:ee}=fd(E,C);return R(P,X,ee,Ih,{...C,fill:lt(E,m,C.fill),fillOpacity:Gl,stroke:Qe(E,g,C.stroke)})}function J(P,E,C={}){var X=Wt(E),ee=lt(E,m,C.fill),fe=Qe(E,g,C.stroke);return(X.get("associationDirection")==="One"||X.get("associationDirection")==="Both")&&(C.markerEnd=_(P,"association-end",ee,fe)),X.get("associationDirection")==="Both"&&(C.markerStart=_(P,"association-start",ee,fe)),C=At(C,["markerStart","markerEnd"]),v(P,E.waypoints,{...C,stroke:fe,strokeDasharray:"0, 5"})}function ie(P,E,C={}){var X=lt(E,m,C.fill),ee=Qe(E,g,C.stroke),fe=a.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:.474,my:.296}}),De=w(P,fe,{fill:X,fillOpacity:Gl,stroke:ee}),je=Wt(E);if(qj(je)){var Ke=a.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:.33,my:(E.height-18)/E.height}});w(P,Ke,{strokeWidth:2,fill:X,stroke:ee})}return De}function ge(P,E,C={}){return j(P,E.width,E.height,{fillOpacity:Gl,...C,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)})}function Te(P,E,C={}){return T(P,E.width,E.height,{fill:lt(E,m,C.fill),fillOpacity:Gl,stroke:Qe(E,g,C.stroke)})}function se(P,E,C={}){var X=R(P,rr(E,C),_i(E,C),0,{fill:lt(E,m,C.fill),fillOpacity:C.fillOpacity||Gl,stroke:Qe(E,g,C.stroke),strokeWidth:1.5}),ee=Wt(E);if(Ge(ee,"bpmn:Lane")){var fe=ee.get("name");_e(P,fe,E,C)}return X}function he(P,E,C={}){var X=W(P,E,C),ee=ps(E);if(Ej(E)&&(jt(X,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),!ee)){var fe=Wt(E).flowElements||[],De=fe.filter(je=>Ge(je,"bpmn:StartEvent"));De.length===1&&xe(De[0],P,C,E)}return Se(P,E,ee?"center-top":"center-middle",C),ee?me(P,E,void 0,C):me(P,E,["SubProcessMarker"],C),X}function xe(P,E,C,X){var ee=22,fe={fill:lt(X,m,C.fill),stroke:Qe(X,g,C.stroke),width:ee,height:ee},De=Wt(P).isInterrupting,je=De?0:3,Ke=De?1:1.2,yt=20,ht=(ee-yt)/2,Ot="translate("+ht+","+ht+")";j(E,yt,yt,{fill:fe.fill,stroke:fe.stroke,strokeWidth:Ke,strokeDasharray:je,transform:Ot}),ne(P,E,fe,X)}function Pe(P,E,C={}){var X=W(P,E,C);return Se(P,E,"center-middle",C),me(P,E,void 0,C),X}var K=this.handlers={"bpmn:AdHocSubProcess":function(P,E,C={}){return ps(E)?C=At(C,["fill","stroke","width","height"]):C=At(C,["fill","stroke"]),he(P,E,C)},"bpmn:Association":function(P,E,C={}){return C=At(C,["fill","stroke"]),J(P,E,C)},"bpmn:BoundaryEvent":function(P,E,C={}){var{renderIcon:X=!0}=C;C=At(C,["fill","stroke"]);var ee=Wt(E),fe=ee.get("cancelActivity");C={strokeWidth:1.5,fill:lt(E,m,C.fill),fillOpacity:kL,stroke:Qe(E,g,C.stroke)},fe||(C.strokeDasharray="6");var De=ge(P,E,C);return j(P,E.width,E.height,Bh,{...C,fill:"none"}),X&&ne(E,P,C),De},"bpmn:BusinessRuleTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),fe=w(P,ee);jt(fe,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1});var De=a.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),je=w(P,De);return jt(je,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:CallActivity":function(P,E,C={}){return C=At(C,["fill","stroke"]),he(P,E,{strokeWidth:5,...C})},"bpmn:ComplexGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Te(P,E,C),ee=a.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:E.width,containerHeight:E.height,position:{mx:.46,my:.26}});return w(P,ee,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:DataInput":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),ee=ie(P,E,C);return w(P,X,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:1}),ee},"bpmn:DataInputAssociation":function(P,E,C={}){return C=At(C,["fill","stroke"]),J(P,E,{...C,markerEnd:_(P,"association-end",lt(E,m,C.fill),Qe(E,g,C.stroke))})},"bpmn:DataObject":function(P,E,C={}){return C=At(C,["fill","stroke"]),ie(P,E,C)},"bpmn:DataObjectReference":M("bpmn:DataObject"),"bpmn:DataOutput":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=a.getRawPath("DATA_ARROW"),ee=ie(P,E,C);return w(P,X,{strokeWidth:1,fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke)}),ee},"bpmn:DataOutputAssociation":function(P,E,C={}){return C=At(C,["fill","stroke"]),J(P,E,{...C,markerEnd:_(P,"association-end",lt(E,m,C.fill),Qe(E,g,C.stroke))})},"bpmn:DataStoreReference":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=a.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:E.width,containerHeight:E.height,position:{mx:0,my:.133}});return w(P,X,{fill:lt(E,m,C.fill),fillOpacity:Gl,stroke:Qe(E,g,C.stroke),strokeWidth:2})},"bpmn:EndEvent":function(P,E,C={}){var{renderIcon:X=!0}=C;C=At(C,["fill","stroke"]);var ee=ge(P,E,{...C,strokeWidth:4});return X&&ne(E,P,C),ee},"bpmn:EventBasedGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Wt(E),ee=Te(P,E,C);j(P,E.width,E.height,E.height*.2,{fill:lt(E,"none",C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1});var fe=X.get("eventGatewayType"),De=!!X.get("instantiate");function je(){var yt=a.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:E.width,containerHeight:E.height,position:{mx:.36,my:.44}});w(P,yt,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:2})}if(fe==="Parallel"){var Ke=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:E.width,containerHeight:E.height,position:{mx:.474,my:.296}});w(P,Ke,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:1})}else fe==="Exclusive"&&(De||j(P,E.width,E.height,E.height*.26,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:1}),je());return ee},"bpmn:ExclusiveGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Te(P,E,C),ee=a.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:E.width,containerHeight:E.height,position:{mx:.32,my:.3}}),fe=fs(E);return fe.get("isMarkerVisible")&&w(P,ee,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:Gateway":function(P,E,C={}){return C=At(C,["fill","stroke"]),Te(P,E,C)},"bpmn:Group":function(P,E,C={}){return C=At(C,["fill","stroke","width","height"]),R(P,E.width,E.height,Ih,{stroke:Qe(E,g,C.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:rr(E,C),height:_i(E,C)})},"bpmn:InclusiveGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Te(P,E,C);return j(P,E.width,E.height,E.height*.24,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:2.5}),X},"bpmn:IntermediateEvent":function(P,E,C={}){var{renderIcon:X=!0}=C;C=At(C,["fill","stroke"]);var ee=ge(P,E,{...C,strokeWidth:1.5});return j(P,E.width,E.height,Bh,{fill:"none",stroke:Qe(E,g,C.stroke),strokeWidth:1.5}),X&&ne(E,P,C),ee},"bpmn:IntermediateCatchEvent":M("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":M("bpmn:IntermediateEvent"),"bpmn:Lane":function(P,E,C={}){return C=At(C,["fill","stroke","width","height"]),se(P,E,{...C,fillOpacity:SL})},"bpmn:ManualTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=a.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return w(P,ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:.5}),X},"bpmn:MessageFlow":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Wt(E),ee=fs(E),fe=lt(E,m,C.fill),De=Qe(E,g,C.stroke),je=v(P,E.waypoints,{markerEnd:_(P,"messageflow-end",fe,De),markerStart:_(P,"messageflow-start",fe,De),stroke:De,strokeDasharray:"10, 11",strokeWidth:1.5});if(X.get("messageRef")){var Ke=je.getPointAtLength(je.getTotalLength()/2),yt=a.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Ke.x,y:Ke.y}}),ht={strokeWidth:1};ee.get("messageVisibleKind")==="initiating"?(ht.fill=fe,ht.stroke=De):(ht.fill=De,ht.stroke=fe);var Ot=w(P,yt,ht),cn=X.get("messageRef"),ut=cn.get("name"),Tt=pe(P,ut,{align:"center-top",fitBox:!0,style:{fill:De}}),hn=Ot.getBBox(),ve=Tt.getBBox(),q=Ke.x-ve.width/2,G=Ke.y+hn.height/2+EL;Hy(Tt,q,G,0)}return je},"bpmn:ParallelGateway":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Te(P,E,C),ee=a.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:E.width,containerHeight:E.height,position:{mx:.46,my:.2}});return w(P,ee,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:Participant":function(P,E,C={}){C=At(C,["fill","stroke","width","height"]);var X=se(P,E,C),ee=ps(E),fe=$3(E),De=Wt(E),je=De.get("name");if(ee){var Ke=fe?[{x:30,y:0},{x:30,y:_i(E,C)}]:[{x:0,y:30},{x:rr(E,C),y:30}];F(P,Ke,{stroke:Qe(E,g,C.stroke),strokeWidth:CL}),_e(P,je,E,C)}else{var yt=fd(E,C);fe||(yt.height=rr(E,C),yt.width=_i(E,C));var ht=pe(P,je,{box:yt,align:"center-middle",style:{fill:dd(E,y,g,C.stroke)}});if(!fe){var Ot=-1*_i(E,C);Hy(ht,0,-Ot,270)}}return De.get("participantMultiplicity")&&de("ParticipantMultiplicityMarker",P,E,C),X},"bpmn:ReceiveTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Wt(E),ee=Pe(P,E,C),fe;return X.get("instantiate")?(j(P,28,28,20*.22,{fill:lt(E,m,C.fill),stroke:Qe(E,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(P,fe,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1}),ee},"bpmn:ScriptTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=a.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return w(P,ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:SendTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=a.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return w(P,ee,{fill:Qe(E,g,C.stroke),stroke:lt(E,m,C.fill),strokeWidth:1}),X},"bpmn:SequenceFlow":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=lt(E,m,C.fill),ee=Qe(E,g,C.stroke),fe=v(P,E.waypoints,{markerEnd:_(P,"sequenceflow-end",X,ee),stroke:ee}),De=Wt(E),{source:je}=E;if(je){var Ke=Wt(je);De.get("conditionExpression")&&Ge(Ke,"bpmn:Activity")&&jt(fe,{markerStart:_(P,"conditional-flow-marker",X,ee)}),Ke.get("default")&&(Ge(Ke,"bpmn:Gateway")||Ge(Ke,"bpmn:Activity"))&&Ke.get("default")===De&&jt(fe,{markerStart:_(P,"conditional-default-flow-marker",X,ee)})}return fe},"bpmn:ServiceTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C);j(P,10,10,{fill:lt(E,m,C.fill),stroke:"none",transform:"translate(6, 6)"});var ee=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});w(P,ee,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1}),j(P,10,10,{fill:lt(E,m,C.fill),stroke:"none",transform:"translate(11, 10)"});var fe=a.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return w(P,fe,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:1}),X},"bpmn:StartEvent":function(P,E,C={}){var{renderIcon:X=!0}=C;C=At(C,["fill","stroke"]);var ee=Wt(E);ee.get("isInterrupting")||(C={...C,strokeDasharray:"6"});var fe=ge(P,E,C);return X&&ne(E,P,C),fe},"bpmn:SubProcess":function(P,E,C={}){return ps(E)?C=At(C,["fill","stroke","width","height"]):C=At(C,["fill","stroke"]),he(P,E,C)},"bpmn:Task":function(P,E,C={}){return C=At(C,["fill","stroke"]),Pe(P,E,C)},"bpmn:TextAnnotation":function(P,E,C={}){C=At(C,["fill","stroke","width","height"]);var{width:X,height:ee}=fd(E,C),fe=R(P,X,ee,0,0,{fill:"none",stroke:"none"}),De=a.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:X,containerHeight:ee,position:{mx:0,my:0}});w(P,De,{stroke:Qe(E,g,C.stroke)});var je=Wt(E),Ke=je.get("text")||"";return pe(P,Ke,{align:"left-top",box:fd(E,C),padding:7,style:{fill:dd(E,y,g,C.stroke)}}),fe},"bpmn:Transaction":function(P,E,C={}){ps(E)?C=At(C,["fill","stroke","width","height"]):C=At(C,["fill","stroke"]);var X=he(P,E,{strokeWidth:1.5,...C}),ee=r.style(["no-fill","no-events"],{stroke:Qe(E,g,C.stroke),strokeWidth:1.5}),fe=ps(E);return fe||(C={}),R(P,rr(E,C),_i(E,C),Ih-Bh,Bh,ee),X},"bpmn:UserTask":function(P,E,C={}){C=At(C,["fill","stroke"]);var X=Pe(P,E,C),ee=15,fe=12,De=a.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:ee,y:fe}});w(P,De,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:.5});var je=a.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:ee,y:fe}});w(P,je,{fill:lt(E,m,C.fill),stroke:Qe(E,g,C.stroke),strokeWidth:.5});var Ke=a.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:ee,y:fe}});return w(P,Ke,{fill:Qe(E,g,C.stroke),stroke:Qe(E,g,C.stroke),strokeWidth:.5}),X},label:function(P,E,C={}){return ye(P,E,C)}};this._drawPath=w,this._renderer=Q}Gr(As,ba),As.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],As.prototype.canRender=function(e){return Ge(e,"bpmn:BaseElement")},As.prototype.drawShape=function(e,n,r={}){var{type:a}=n,s=this._renderer(a);return s(e,n,r)},As.prototype.drawConnection=function(e,n,r={}){var{type:a}=n,s=this._renderer(a);return s(e,n,r)},As.prototype.getShapePath=function(e){return Ge(e,"bpmn:Event")?eL(e):Ge(e,"bpmn:Activity")?tL(e,Ih):Ge(e,"bpmn:Gateway")?nL(e):iL(e)};function At(e,n=[]){return n.reduce((r,a)=>(e[a]&&(r[a]=e[a]),r),{})}var DL=0,BL={width:150,height:50};function IL(e){var n=e.split("-");return{horizontal:n[0]||"center",vertical:n[1]||"top"}}function OL(e){return us(e)?Je({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function TL(e,n){n.textContent=e;var r;try{var a,s=e==="";return n.textContent=s?"dummy":e,r=n.getBBox(),a={width:r.width+r.x*2,height:r.height},s&&(a.width=0),a}catch(c){return{width:0,height:0}}}function NL(e,n,r){for(var a=e.shift(),s=a,c;;){if(c=TL(s,r),c.width=s?c.width:0,s===" "||s===""||c.width<Math.round(n)||s.length<2)return ML(e,s,a,c);s=PL(s,c.width,n)}}function ML(e,n,r,a){if(n.length<r.length){var s=r.slice(n.length).trim();e.unshift(s)}return{width:a.width,height:a.height,text:n}}var A6="\xAD";function FL(e,n){var r=e.split(/(\s|-|\u00AD)/g),a,s=[],c=0;if(r.length>1)for(;a=r.shift();)if(a.length+c<n)s.push(a),c+=a.length;else{(a==="-"||a===A6)&&s.pop();break}var p=s[s.length-1];return p&&p===A6&&(s[s.length-1]="-"),s.join("")}function PL(e,n,r){var a=Math.max(e.length*(r/n),1),s=FL(e,a);return s||(s=e.slice(0,Math.max(Math.round(a-1),1))),s}function RL(){var e=document.getElementById("helper-svg");return e||(e=Lt("svg"),jt(e,{id:"helper-svg"}),Nn(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function Oh(e){this._config=Je({},{size:BL,padding:DL,style:{},align:"center-top"},e||{})}Oh.prototype.createText=function(e,n){return this.layoutText(e,n).element},Oh.prototype.getDimensions=function(e,n){return this.layoutText(e,n).dimensions},Oh.prototype.layoutText=function(e,n){var r=Je({},this._config.size,n.box),a=Je({},this._config.style,n.style),s=IL(n.align||this._config.align),c=OL(n.padding!==void 0?n.padding:this._config.padding),p=n.fitBox||!1,m=jL(a),g=e.split(/\u00AD?\r?\n/),y=[],O=r.width-c.left-c.right,S=Lt("text");jt(S,{x:0,y:0}),jt(S,a);var N=RL();for(xn(N,S);g.length;)y.push(NL(g,O,S));s.vertical==="middle"&&(c.top=c.bottom=0);var _=Ul(y,function(F,v,w){return F+(m||v.height)},0)+c.top+c.bottom,B=Ul(y,function(F,v,w){return v.width>F?v.width:F},0),j=c.top;s.vertical==="middle"&&(j+=(r.height-_)/2),j-=(m||y[0].height)/4;var R=Lt("text");jt(R,a),We(y,function(F){var v;switch(j+=m||F.height,s.horizontal){case"left":v=c.left;break;case"right":v=(p?B:O)-c.right-F.width;break;default:v=Math.max(((p?B:O)-F.width)/2+c.left,0)}var w=Lt("tspan");jt(w,{x:v,y:j}),w.textContent=F.text,xn(R,w)}),cd(S);var T={width:B,height:_};return{dimensions:T,element:R}};function jL(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var LL=12,zL=1.2,QL=30;function v6(e){var n=Je({fontFamily:"Arial, sans-serif",fontSize:LL,fontWeight:"normal",lineHeight:zL},e&&e.defaultStyle||{}),r=parseInt(n.fontSize,10)-1,a=Je({},n,{fontSize:r},e&&e.externalStyle||{}),s=new Oh({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(QL,Math.round(m.height))}},this.createText=function(c,p){return s.createText(c,p||{})},this.getDefaultStyle=function(){return n},this.getExternalStyle=function(){return a}}v6.$inject=["config.textRenderer"];function HL(){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,r){var a=this.pathMap[n],s,c;r.abspos?(s=r.abspos.x,c=r.abspos.y):(s=r.containerWidth*r.position.mx,c=r.containerHeight*r.position.my);var p={};if(r.position){for(var m=r.containerHeight/a.height*r.yScaleFactor,g=r.containerWidth/a.width*r.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 S=WL(a.d,{mx:s,my:c,e:p});return S}}var VL=/\{([^{}]+)\}/g,UL=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function YL(e,n,r){var a=r;return n.replace(UL,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==r?e:a)+"",a}function WL(e,n){return String(e).replace(VL,function(r,a){return YL(r,a,n)})}const GL={__init__:["bpmnRenderer"],bpmnRenderer:["type",As],textRenderer:["type",v6],pathMap:["type",HL]};function JL(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(r,a){return n[a]||"{"+a+"}"})}const b6={translate:["value",JL]};function KL(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function Vy(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function XL(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function ZL(e){return KL({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function $L(e){for(var n=e.waypoints,r=n.reduce(function(y,O,S){var N=n[S-1];if(N){var _=y[y.length-1],B=_&&_.endLength||0,j=qL(N,O);y.push({start:N,end:O,startLength:B,endLength:B+j,length:j})}return y},[]),a=r.reduce(function(y,O){return y+O.length},0),s=a/2,c=0,p=r[c];p.endLength<s;)p=r[++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 Uy(e){return Cj(e)?$L(e):ZL(e)}function qL(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Mn(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function Th(e,n,r){return Je({id:e.id,type:e.$type,businessObject:e,di:n},r)}function ez(e,n,r){var a=e.waypoint;return!a||a.length<2?[Uy(n),Uy(r)]:a.map(function(s){return{x:s.x,y:s.y}})}function _6(e,n,r){return new Error(`element ${Mn(n)} referenced by ${Mn(e)}#${r} not yet drawn`)}function xa(e,n,r,a,s){this._eventBus=e,this._canvas=n,this._elementFactory=r,this._elementRegistry=a,this._textRenderer=s}xa.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],xa.prototype.add=function(e,n,r){var a,s,c;if(Ge(n,"bpmndi:BPMNPlane")){var p=Ge(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};a=this._elementFactory.createRoot(Th(e,n,p)),this._canvas.addRootElement(a)}else if(Ge(n,"bpmndi:BPMNShape")){var m=!ps(e,n),g=nz(e);s=r&&(r.hidden||r.collapsed);var y=n.bounds;a=this._elementFactory.createShape(Th(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")&&(tz(r,Uy(y))||(r=this._canvas.findRoot(r))),this._canvas.addShape(a,r,c)}else if(Ge(n,"bpmndi:BPMNEdge")){var O=this._getSource(e),S=this._getTarget(e);s=r&&(r.hidden||r.collapsed),a=this._elementFactory.createConnection(Th(e,n,{hidden:s,source:O,target:S,waypoints:ez(n,O,S)})),Ge(e,"bpmn:DataAssociation")&&(r=this._canvas.findRoot(r)),this._canvas.addConnection(a,r,c)}else throw new Error(`unknown di ${Mn(n)} for element ${Mn(e)}`);return kj(e)&&Eh(a)&&this.addLabel(e,n,a),this._eventBus.fire("bpmnElement.added",{element:a}),a},xa.prototype._attachBoundary=function(e,n){var r=e.attachedToRef;if(!r)throw new Error(`missing ${Mn(e)}#attachedToRef`);var a=this._elementRegistry.get(r.id),s=a&&a.attachers;if(!a)throw _6(e,r,"attachedToRef");n.host=a,s||(a.attachers=s=[]),s.indexOf(n)===-1&&s.push(n)},xa.prototype.addLabel=function(e,n,r){var a,s,c;return a=Ij(n,r),s=Eh(r),s&&(a=this._textRenderer.getExternalLabelBounds(a,s)),c=this._elementFactory.createLabel(Th(e,n,{id:e.id+"_label",labelTarget:r,type:"label",hidden:r.hidden||!Eh(r),x:Math.round(a.x),y:Math.round(a.y),width:Math.round(a.width),height:Math.round(a.height)})),this._canvas.addShape(c,r.parent)},xa.prototype._getConnectedElement=function(e,n){var r,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),r=a&&this._getElement(a),r)return r;throw a?_6(e,a,n+"Ref"):new Error(`${Mn(e)}#${n} Ref not specified`)},xa.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},xa.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},xa.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function tz(e,n){var r=n.x,a=n.y;return r>=e.x&&r<=e.x+e.width&&a>=e.y&&a<=e.y+e.height}function nz(e){return Ge(e,"bpmn:Group")}const iz={__depends__:[GL,{__depends__:[b6],bpmnImporter:["type",xa]}]};function pd(e,n){n=!!n,Sr(e)||(e=[e]);var r,a,s,c;return We(e,function(p){var m=p;p.waypoints&&!n&&(m=pd(p.waypoints,!0));var g=m.x,y=m.y,O=m.height||0,S=m.width||0;(g<r||r===void 0)&&(r=g),(y<a||a===void 0)&&(a=y),(g+S>s||s===void 0)&&(s=g+S),(y+O>c||c===void 0)&&(c=y+O)}),{x:r,y:a,height:c-a,width:s-r}}function y6(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function x6(e){return!!(e&&e.isFrame)}function Yy(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Yy.prototype.next=function(){return this._prefix+ ++this._counter};var rz=new Yy("ov"),az=500;function wn(e,n,r,a){this._eventBus=n,this._canvas=r,this._elementRegistry=a,this._ids=rz,this._overlayDefaults=Je({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=oz(r.getContainer()),this._init()}wn.$inject=["config.overlays","eventBus","canvas","elementRegistry"],wn.prototype.get=function(e){if(Dr(e)&&(e={id:e}),Dr(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?Vl(n.overlays,Z3({type:e.type})):n.overlays.slice():[]}else return e.type?Vl(this._overlays,Z3({type:e.type})):e.id?this._overlays[e.id]:null},wn.prototype.add=function(e,n,r){if(us(n)&&(r=n,n=null),e.id||(e=this._elementRegistry.get(e)),!r.position)throw new Error("must specifiy overlay position");if(!r.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var a=this._ids.next();return r=Je({},this._overlayDefaults,r,{id:a,type:n,element:e,html:r.html}),this._addOverlay(r),a},wn.prototype.remove=function(e){var n=this.get(e)||[];Sr(n)||(n=[n]);var r=this;We(n,function(a){var s=r._getOverlayContainer(a.element,!0);if(a&&(Wl(a.html),Wl(a.htmlContainer),delete a.htmlContainer,delete a.element,delete r._overlays[a.id]),s){var c=s.overlays.indexOf(a);c!==-1&&s.overlays.splice(c,1)}})},wn.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},wn.prototype.show=function(){Nh(this._overlayRoot)},wn.prototype.hide=function(){Nh(this._overlayRoot,!1)},wn.prototype.clear=function(){this._overlays={},this._overlayContainers=[],d6(this._overlayRoot)},wn.prototype._updateOverlayContainer=function(e){var n=e.element,r=e.html,a=n.x,s=n.y;if(n.waypoints){var c=pd(n);a=c.x,s=c.y}w6(r,a,s),Ly(e.html,"data-container-id",n.id)},wn.prototype._updateOverlay=function(e){var n=e.position,r=e.htmlContainer,a=e.element,s=n.left,c=n.top;if(n.right!==void 0){var p;a.waypoints?p=pd(a).width:p=a.width,s=n.right*-1+p}if(n.bottom!==void 0){var m;a.waypoints?m=pd(a).height:m=a.height,c=n.bottom*-1+m}w6(r,s||0,c||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},wn.prototype._createOverlayContainer=function(e){var n=Hi('<div class="djs-overlays" />');Nn(n,{position:"absolute"}),this._overlayRoot.appendChild(n);var r={html:n,element:e,overlays:[]};return this._updateOverlayContainer(r),this._overlayContainers.push(r),r},wn.prototype._updateRoot=function(e){var n=e.scale||1,r="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";E6(this._overlayRoot,r)},wn.prototype._getOverlayContainer=function(e,n){var r=Br(this._overlayContainers,function(a){return a.element===e});return!r&&!n?this._createOverlayContainer(e):r},wn.prototype._addOverlay=function(e){var n=e.id,r=e.element,a=e.html,s,c;a.get&&a.constructor.prototype.jquery&&(a=a.get(0)),Dr(a)&&(a=Hi(a)),c=this._getOverlayContainer(r),s=Hi('<div class="djs-overlay" data-overlay-id="'+n+'">'),Nn(s,{position:"absolute"}),s.appendChild(a),e.type&&ms(s).add("djs-overlay-"+e.type);var p=this._canvas.findRoot(r),m=this._canvas.getRootElement();Nh(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())},wn.prototype._updateOverlayVisibilty=function(e,n){var r=e.show,a=this._canvas.findRoot(e.element),s=r&&r.minZoom,c=r&&r.maxZoom,p=e.htmlContainer,m=this._canvas.getRootElement(),g=!0;(a!==m||r&&(Ql(s)&&s>n.scale||Ql(c)&&c<n.scale))&&(g=!1),Nh(p,g),this._updateOverlayScale(e,n)},wn.prototype._updateOverlayScale=function(e,n){var r=e.scale,a,s,c=e.htmlContainer,p,m="";r!==!0&&(r===!1?(a=1,s=1):(a=r.min,s=r.max),Ql(a)&&n.scale<a&&(p=(1/n.scale||1)*a),Ql(s)&&n.scale>s&&(p=(1/n.scale||1)*s)),Ql(p)&&(m="scale("+p+","+p+")"),E6(c,m)},wn.prototype._updateOverlaysVisibilty=function(e){var n=this;We(this._overlays,function(r){n._updateOverlayVisibilty(r,e)})},wn.prototype._init=function(){var e=this._eventBus,n=this;function r(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){r(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){Wl(p.html);var m=n._overlayContainers.indexOf(p);m!==-1&&n._overlayContainers.splice(m,1)}}),e.on("element.changed",az,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&&ms(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 oz(e){var n=Hi('<div class="djs-overlay-container" />');return Nn(n,{position:"absolute",width:0,height:0}),e.insertBefore(n,e.firstChild),n}function w6(e,n,r){Nn(e,{left:n+"px",top:r+"px"})}function Nh(e,n){e.style.display=n===!1?"none":""}function E6(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(r){e.style[r+"transform"]=n})}const C6={__init__:["overlays"],overlays:["type",wn]};function k6(e,n,r,a){e.on("element.changed",function(s){var c=s.element;(c.parent||c===n.getRootElement())&&(s.gfx=r.getGraphics(c)),s.gfx&&e.fire(y6(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)})}k6.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const sz={__init__:["changeSupport"],changeSupport:["type",k6]};var lz=1e3;function ti(e){this._eventBus=e}ti.$inject=["eventBus"];function cz(e,n){return function(r){return e.call(n||null,r.context,r.command,r)}}ti.prototype.on=function(e,n,r,a,s,c){if((ds(n)||to(n))&&(c=s,s=a,a=r,r=n,n=null),ds(r)&&(c=s,s=a,a=r,r=lz),us(s)&&(c=s,s=!1),!ds(a))throw new Error("handlerFn must be a function");Sr(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,r,s?cz(a,c):a,c)})},ti.prototype.canExecute=wa("canExecute"),ti.prototype.preExecute=wa("preExecute"),ti.prototype.preExecuted=wa("preExecuted"),ti.prototype.execute=wa("execute"),ti.prototype.executed=wa("executed"),ti.prototype.postExecute=wa("postExecute"),ti.prototype.postExecuted=wa("postExecuted"),ti.prototype.revert=wa("revert"),ti.prototype.reverted=wa("reverted");function wa(e){return function(r,a,s,c,p){(ds(r)||to(r))&&(p=c,c=s,s=a,a=r,r=null),this.on(r,e,a,s,c,p)}}function Wy(e,n){n.invoke(ti,this),this.executed(function(r){var a=r.context;a.rootElement?e.setRootElement(a.rootElement):a.rootElement=e.getRootElement()}),this.revert(function(r){var a=r.context;a.rootElement&&e.setRootElement(a.rootElement)})}Gr(Wy,ti),Wy.$inject=["canvas","injector"];const uz={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Wy]};var dz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function fz(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(n){return dz[n]})}var pz="_plane";function Gy(e){var n=e.id;return Ge(e,"bpmn:SubProcess")?hz(n):n}function hz(e){return e+pz}var mz="bjs-breadcrumbs-shown";function S6(e,n,r){var a=Hi('<ul class="bjs-breadcrumbs"></ul>'),s=r.getContainer(),c=ms(s);s.appendChild(a);var p=[];e.on("element.changed",function(g){var y=g.element,O=Wt(y),S=Br(p,function(N){return N===O});!S||m()});function m(g){g&&(p=gz(g));var y=p.flatMap(function(S){var N=r.findRoot(Gy(S))||r.findRoot(S.id);if(!N&&Ge(S,"bpmn:Process")){var _=n.find(function(R){var T=Wt(R);return T&&T.get("processRef")===S});N=_&&r.findRoot(_.id)}if(!N)return[];var B=fz(S.name||S.id),j=Hi('<li><span class="bjs-crumb"><a title="'+B+'">'+B+"</a></span></li>");return j.addEventListener("click",function(){r.setRootElement(N)}),j});a.innerHTML="";var O=y.length>1;c.toggle(mz,O),y.forEach(function(S){a.appendChild(S)})}e.on("root.set",function(g){m(g.element)})}S6.$inject=["eventBus","elementRegistry","canvas"];function gz(e){for(var n=Wt(e),r=[],a=n;a;a=a.$parent)(Ge(a,"bpmn:SubProcess")||Ge(a,"bpmn:Process"))&&r.push(a);return r.reverse()}function D6(e,n){var r=null,a=new Az;e.on("root.set",function(s){var c=s.element,p=n.viewbox(),m=a.get(c);if(a.set(r,{x:p.x,y:p.y,zoom:p.scale}),r=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(),r=null})}D6.$inject=["eventBus","canvas"];function Az(){this._entries=[],this.set=function(e,n){var r=!1;for(var a in this._entries)if(this._entries[a][0]===e){this._entries[a][1]=n,r=!0;break}r||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 r in this._entries)if(this._entries[r][0]===e){n=r;break}n!==-1&&this._entries.splice(n,1)}}var B6={x:180,y:160};function vs(e,n){this._eventBus=e,this._moddle=n;var r=this;e.on("import.render.start",1500,function(a,s){r._handleImport(s.definitions)})}vs.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 r=e.diagrams.filter(a=>a.plane).flatMap(a=>n._createNewDiagrams(a.plane));r.forEach(function(a){n._movePlaneElementsToOrigin(a.plane)})}},vs.prototype._createNewDiagrams=function(e){var n=this,r=[],a=[];e.get("planeElement").forEach(function(c){var p=c.bpmnElement;if(!!p){var m=p.$parent;Ge(p,"bpmn:SubProcess")&&!c.isExpanded&&r.push(p),bz(p,e)&&a.push({diElement:c,parent:m})}});var s=[];return r.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&&r.indexOf(m)===-1;)m=m.$parent;if(!!m){var g=n._processToDiagramMap[m.id];n._moveToDiPlane(p,g.plane)}}),s},vs.prototype._movePlaneElementsToOrigin=function(e){var n=e.get("planeElement"),r=vz(e),a={x:r.x-B6.x,y:r.y-B6.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)})},vs.prototype._moveToDiPlane=function(e,n){var r=I6(e),a=r.plane.get("planeElement");a.splice(a.indexOf(e),1),n.get("planeElement").push(e)},vs.prototype._createDiagram=function(e){var n=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),r=this._moddle.create("bpmndi:BPMNDiagram",{plane:n});return n.$parent=r,n.bpmnElement=e,r.$parent=this._definitions,this._definitions.diagrams.push(r),r},vs.$inject=["eventBus","moddle"];function I6(e){return Ge(e,"bpmndi:BPMNDiagram")?e:I6(e.$parent)}function vz(e){var n={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(r){if(!!r.bounds){var a=Vy(r.bounds);n.top=Math.min(a.top,n.top),n.left=Math.min(a.left,n.left)}}),XL(n)}function bz(e,n){var r=e.$parent;return!(!Ge(r,"bpmn:SubProcess")||r===n.bpmnElement||wj(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var Mh=250,_z='<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>',yz="bjs-drilldown-empty";function ao(e,n,r,a,s){ti.call(this,n),this._canvas=e,this._eventBus=n,this._elementRegistry=r,this._overlays=a,this._translate=s;var c=this;this.executed("shape.toggleCollapse",Mh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.reverted("shape.toggleCollapse",Mh,function(p){var m=p.shape;c._canDrillDown(m)?c._addOverlay(m):c._removeOverlay(m)},!0),this.executed(["shape.create","shape.move","shape.delete"],Mh,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"],Mh,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(){r.filter(function(p){return c._canDrillDown(p)}).map(function(p){c._addOverlay(p)})})}Gr(ao,ti),ao.prototype._updateDrilldownOverlay=function(e){var n=this._canvas;if(!!e){var r=n.findRoot(e);r&&this._updateOverlayVisibility(r)}},ao.prototype._canDrillDown=function(e){var n=this._canvas;return Ge(e,"bpmn:SubProcess")&&n.findRoot(Gy(e))},ao.prototype._updateOverlayVisibility=function(e){var n=this._overlays,r=Wt(e),a=n.get({element:r.id,type:"drilldown"})[0];if(!!a){var s=r&&r.get("flowElements")&&r.get("flowElements").length;ms(a.html).toggle(yz,!s)}},ao.prototype._addOverlay=function(e){var n=this._canvas,r=this._overlays,a=Wt(e),s=r.get({element:e,type:"drilldown"});s.length&&this._removeOverlay(e);var c=Hi('<button type="button" class="bjs-drilldown">'+_z+"</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(Gy(e)))}),r.add(e,"drilldown",{position:{bottom:-7,right:-8},html:c}),this._updateOverlayVisibility(e)},ao.prototype._removeOverlay=function(e){var n=this._overlays;n.remove({element:e,type:"drilldown"})},ao.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const xz={__depends__:[C6,sz,uz],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",S6],drilldownCentering:["type",D6],drilldownOverlayBehavior:["type",ao],subprocessCompatibility:["type",vs]};function O6(e){return e.originalEvent||e.srcEvent}function T6(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 N6(e,n){return(O6(e)||e).button===n}function Fh(e){return N6(e,0)}function wz(e){return N6(e,1)}function Ez(e){var n=O6(e)||e;return Fh(e)&&n.shiftKey}function Cz(e){return!0}function Ph(e){return Fh(e)||wz(e)}var M6=500;function F6(e,n,r){var a=this;function s(H,ne,re){if(!m(H,ne)){var de,me,pe;re?me=n.getGraphics(re):(de=ne.delegateTarget||ne.target,de&&(me=de,re=n.get(me))),!(!me||!re)&&(pe=e.fire(H,{element:re,gfx:me,originalEvent:ne}),pe===!1&&(ne.stopPropagation(),ne.preventDefault()))}}var c={};function p(H){return c[H]}function m(H,ne){var re=y[H]||Fh;return!re(ne)}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":Cz,"element.mousedown":Ph,"element.mouseup":Ph,"element.click":Ph,"element.dblclick":Ph};function O(H,ne,re){var de=g[H];if(!de)throw new Error("unmapped DOM event name <"+H+">");return s(de,ne,re)}var S="svg, .djs-element";function N(H,ne,re,de){var me=c[re]=function(pe){s(re,pe)};de&&(y[re]=de),me.$delegate=Yl.bind(H,S,ne,me)}function _(H,ne,re){var de=p(re);!de||Yl.unbind(H,ne,de.$delegate)}function B(H){We(g,function(ne,re){N(H,re,ne)})}function j(H){We(g,function(ne,re){_(H,re,ne)})}e.on("canvas.destroy",function(H){j(H.svg)}),e.on("canvas.init",function(H){B(H.svg)}),e.on(["shape.added","connection.added"],function(H){var ne=H.element,re=H.gfx;e.fire("interactionEvents.createHit",{element:ne,gfx:re})}),e.on(["shape.changed","connection.changed"],M6,function(H){var ne=H.element,re=H.gfx;e.fire("interactionEvents.updateHit",{element:ne,gfx:re})}),e.on("interactionEvents.createHit",M6,function(H){var ne=H.element,re=H.gfx;a.createDefaultHit(ne,re)}),e.on("interactionEvents.updateHit",function(H){var ne=H.element,re=H.gfx;a.updateDefaultHit(ne,re)});var R=k("djs-hit djs-hit-stroke"),T=k("djs-hit djs-hit-click-stroke"),F=k("djs-hit djs-hit-all"),v=k("djs-hit djs-hit-no-move"),w={all:F,"click-stroke":T,stroke:R,"no-move":v};function k(H,ne){return ne=Je({stroke:"white",strokeWidth:15},ne||{}),r.cls(H,["no-fill","no-border"],ne)}function Q(H,ne){var re=w[ne];if(!re)throw new Error("invalid hit type <"+ne+">");return jt(H,re),H}function M(H,ne){xn(H,ne)}this.removeHits=function(H){var ne=bL(".djs-hit",H);We(ne,cd)},this.createDefaultHit=function(H,ne){var re=H.waypoints,de=H.isFrame,me;return re?this.createWaypointsHit(ne,re):(me=de?"stroke":"all",this.createBoxHit(ne,me,{width:H.width,height:H.height}))},this.createWaypointsHit=function(H,ne){var re=Ry(ne);return Q(re,"stroke"),M(H,re),re},this.createBoxHit=function(H,ne,re){re=Je({x:0,y:0},re);var de=Lt("rect");return Q(de,ne),jt(de,re),M(H,de),de},this.updateDefaultHit=function(H,ne){var re=_a(".djs-hit",ne);if(!!re)return H.waypoints?c6(re,H.waypoints):jt(re,{width:H.width,height:H.height}),re},this.fire=s,this.triggerMouseEvent=O,this.mouseHandler=p,this.registerEvent=N,this.unregisterEvent=_}F6.$inject=["eventBus","elementRegistry","styles"];const kz={__init__:["interactionEvents"],interactionEvents:["type",F6]};function Jl(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var r=this;e.on(["shape.remove","connection.remove"],function(a){var s=a.element;r.deselect(s)}),e.on(["diagram.clear","root.set"],function(a){r.select(null)})}Jl.$inject=["eventBus","canvas"],Jl.prototype.deselect=function(e){var n=this._selectedElements,r=n.indexOf(e);if(r!==-1){var a=n.slice();n.splice(r,1),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:n})}},Jl.prototype.get=function(){return this._selectedElements},Jl.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},Jl.prototype.select=function(e,n){var r=this._selectedElements,a=r.slice();Sr(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){r.indexOf(p)===-1&&r.push(p)}):this._selectedElements=r=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:a,newSelection:r})};var P6="hover",R6="selected";function j6(e,n){this._canvas=e;function r(s,c){e.addMarker(s,c)}function a(s,c){e.removeMarker(s,c)}n.on("element.hover",function(s){r(s.element,P6)}),n.on("element.out",function(s){a(s.element,P6)}),n.on("selection.changed",function(s){function c(y){a(y,R6)}function p(y){r(y,R6)}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)})})}j6.$inject=["canvas","eventBus"];function L6(e,n,r,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;Sr(y)?n.select(y):n.select(m.filter(Sz))}}),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=Br(c,function(g){return p.id===g.id});m||n.select(p)}),e.on("element.click",function(s){if(!!Fh(s)){var c=s.element;c===r.getRootElement()&&(c=null);var p=n.isSelected(c),m=n.get().length>1,g=Ez(s);if(p&&m)return g?n.deselect(c):n.select(c);p?n.deselect(c):n.select(c,g)}})}L6.$inject=["eventBus","selection","canvas","elementRegistry"];function Sz(e){return!e.hidden}const Dz={__init__:["selectionVisuals","selectionBehavior"],__depends__:[kz],selection:["type",Jl],selectionVisuals:["type",j6],selectionBehavior:["type",L6]},Bz=/^class[ {]/;function Iz(e){return Bz.test(e.toString())}function Jy(e){return Array.isArray(e)}function Ky(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Rh(...e){e.length===1&&Jy(e[0])&&(e=e[0]),e=[...e];const n=e.pop();return n.$inject=e,n}const Oz=/constructor\s*[^(]*\(\s*([^)]*)\)/m,Tz=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,Nz=/\/\*([^*]*)\*\//m;function Mz(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const n=e.toString().match(Iz(e)?Oz:Tz);if(!n)return[];const r=n[1]||n[2];return r&&r.split(",").map(a=>{const s=a.match(Nz);return(s&&s[1]||a).trim()})||[]}function z6(e,n){const r=n||{get:function(v,w){if(a.push(v),w===!1)return null;throw m(`No provider for "${v}"!`)}},a=[],s=this._providers=Object.create(r._providers||null),c=this._instances=Object.create(null),p=c.injector=this,m=function(v){const w=a.join(" -> ");return a.length=0,new Error(w?`${v} (Resolving: ${w})`:v)};function g(v,w){if(!s[v]&&v.includes(".")){const k=v.split(".");let Q=g(k.shift());for(;k.length;)Q=Q[k.shift()];return Q}if(Ky(c,v))return c[v];if(Ky(s,v)){if(a.indexOf(v)!==-1)throw a.push(v),m("Cannot resolve circular dependency!");return a.push(v),c[v]=s[v][0](s[v][1]),a.pop(),c[v]}return r.get(v,w)}function y(v,w){if(typeof w>"u"&&(w={}),typeof v!="function")if(Jy(v))v=Rh(v.slice());else throw m(`Cannot invoke "${v}". Expected a function!`);const Q=(v.$inject||Mz(v)).map(M=>Ky(w,M)?w[M]:g(M));return{fn:v,dependencies:Q}}function O(v){const{fn:w,dependencies:k}=y(v),Q=Function.prototype.bind.call(w,null,...k);return new Q}function S(v,w,k){const{fn:Q,dependencies:M}=y(v,k);return Q.apply(w,M)}function N(v){return Rh(w=>v.get(w))}function _(v,w){if(w&&w.length){const k=Object.create(null),Q=Object.create(null),M=[],H=[],ne=[];let re,de,me,pe;for(let Se in s)re=s[Se],w.indexOf(Se)!==-1&&(re[2]==="private"?(de=M.indexOf(re[3]),de===-1?(me=re[3].createChild([],w),pe=N(me),M.push(re[3]),H.push(me),ne.push(pe),k[Se]=[pe,Se,"private",me]):k[Se]=[ne[de],Se,"private",H[de]]):k[Se]=[re[2],re[1]],Q[Se]=!0),(re[2]==="factory"||re[2]==="type")&&re[1].$scope&&w.forEach(ye=>{re[1].$scope.indexOf(ye)!==-1&&(k[Se]=[re[2],re[1]],Q[ye]=!0)});w.forEach(Se=>{if(!Q[Se])throw new Error('No provider for "'+Se+'". Cannot use provider from the parent!')}),v.unshift(k)}return new z6(v,p)}const B={factory:S,type:O,value:function(v){return v}};function j(v,w){const k=v.__init__||[];return function(){k.forEach(Q=>{typeof Q=="string"?w.get(Q):w.invoke(Q)})}}function R(v){const w=v.__exports__;if(w){const k=v.__modules__,Q=Object.keys(v).reduce((de,me)=>(me!=="__exports__"&&me!=="__modules__"&&me!=="__init__"&&me!=="__depends__"&&(de[me]=v[me]),de),Object.create(null)),M=(k||[]).concat(Q),H=_(M),ne=Rh(function(de){return H.get(de)});w.forEach(function(de){s[de]=[ne,de,"private",H]});const re=(v.__init__||[]).slice();return re.unshift(function(){H.init()}),v=Object.assign({},v,{__init__:re}),j(v,H)}return Object.keys(v).forEach(function(k){if(k==="__init__"||k==="__depends__")return;const Q=v[k];if(Q[2]==="private"){s[k]=Q;return}const M=Q[0],H=Q[1];s[k]=[B[M],Fz(M,H),M]}),j(v,p)}function T(v,w){return v.indexOf(w)!==-1||(v=(w.__depends__||[]).reduce(T,v),v.indexOf(w)!==-1)?v:v.concat(w)}function F(v){const w=v.reduce(T,[]).map(R);let k=!1;return function(){k||(k=!0,w.forEach(Q=>Q()))}}this.get=g,this.invoke=S,this.instantiate=O,this.createChild=_,this.init=F(e)}function Fz(e,n){return e!=="value"&&Jy(n)&&(n=Rh(n.slice())),n}var Pz=1;function oo(e,n){ba.call(this,e,Pz),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(oo,ba),oo.prototype.canRender=function(){return!0},oo.prototype.drawShape=function(n,r,a){var s=Lt("rect");return jt(s,{x:0,y:0,width:r.width||0,height:r.height||0}),x6(r)?jt(s,Je({},this.FRAME_STYLE,a||{})):jt(s,Je({},this.SHAPE_STYLE,a||{})),xn(n,s),s},oo.prototype.drawConnection=function(n,r,a){var s=Ry(r.waypoints,Je({},this.CONNECTION_STYLE,a||{}));return xn(n,s),s},oo.prototype.getShapePath=function(n){var r=n.x,a=n.y,s=n.width,c=n.height,p=[["M",r,a],["l",s,0],["l",0,c],["l",-s,0],["z"]];return hs(p)},oo.prototype.getConnectionPath=function(n){var r=n.waypoints,a,s,c=[];for(a=0;s=r[a];a++)s=s.original||s,c.push([a===0?"M":"L",s.x,s.y]);return hs(c)},oo.$inject=["eventBus","styles"];function Rz(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(r,a,s){var c=this.style(a,s);return Je(c,{class:r})},this.style=function(r,a){!Sr(r)&&!a&&(a=r,r=[]);var s=Ul(r,function(c,p){return Je(c,e[p]||{})},{});return a?Je(s,a):s},this.computeStyle=function(r,a,s){return Sr(a)||(s=a,a=[]),n.style(a||[],Je({},s,r||{}))}}const jz={__init__:["defaultRenderer"],defaultRenderer:["type",oo],styles:["type",Rz]};function Lz(e,n){if(!e||!n)return-1;var r=e.indexOf(n);return r!==-1&&e.splice(r,1),r}function zz(e,n,r){if(!(!e||!n)){typeof r!="number"&&(r=-1);var a=e.indexOf(n);if(a!==-1){if(a===r)return;if(r!==-1)e.splice(a,1);else return}r!==-1?e.splice(r,0,n):e.push(n)}}function jh(e,n){return Math.round(e*n)/n}function Q6(e){return to(e)?e+"px":e}function Qz(e){for(;e.parent;)e=e.parent;return e}function Hz(e){e=Je({},{width:"100%",height:"100%"},e);const n=e.container||document.body,r=document.createElement("div");return r.setAttribute("class","djs-container djs-parent"),Nn(r,{position:"relative",overflow:"hidden",width:Q6(e.width),height:Q6(e.height)}),n.appendChild(r),r}function H6(e,n,r){const a=Lt("g");Jr(a).add(n);const s=r!==void 0?r:e.childNodes.length-1;return e.insertBefore(a,e.childNodes[s]||null),a}const Vz="base",V6=0,Uz=1,Yz={shape:["x","y","width","height"],connection:["waypoints"]};function qe(e,n,r,a){this._eventBus=n,this._elementRegistry=a,this._graphicsFactory=r,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,r=this._container=Hz(e),a=this._svg=Lt("svg");jt(a,{width:"100%",height:"100%"}),Ly(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)}),xn(r,a);const s=this._viewport=H6(a,"viewport");e.deferUpdate&&(this._viewboxChanged=vj(no(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 r=y6(n);r==="root"?this.removeRootElement(n):this._removeElement(n,r)}),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(Vz,V6)},qe.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");let r=this._layers[e];if(r||(r=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&r.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return r.group},qe.prototype._getChildIndex=function(e){return Ul(this._layers,function(n,r){return r.visible&&e>=r.index&&n++,n},0)},qe.prototype._createLayer=function(e,n){typeof n>"u"&&(n=Uz);const r=this._getChildIndex(n);return{group:H6(this._viewport,"layer-"+e,r),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 r=this._viewport,a=n.group,s=n.index;if(n.visible)return a;const c=this._getChildIndex(s);return r.insertBefore(a,r.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 r=n.group;return n.visible&&(cd(r),n.visible=!1),r},qe.prototype._removeLayer=function(e){const n=this._layers[e];n&&(delete this._layers[e],cd(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(Qz(e))||{}).rootElement:void 0},qe.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},qe.prototype._findPlaneForRoot=function(e){return Br(this._planes,function(n){return n.rootElement===e})},qe.prototype.getContainer=function(){return this._container},qe.prototype._updateMarker=function(e,n,r){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&&(r?(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:!!r}))},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 r=e.layer="root-"+n;this._ensureValid("root",e);const a=this.getLayer(r,V6);return this.hideLayer(r),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(r){return r.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,r=this._eventBus;r.fire("root.remove",{element:e}),r.fire("root.removed",{element:e}),n.remove(e)},qe.prototype._addRoot=function(e,n){const r=this._elementRegistry,a=this._eventBus;a.fire("root.add",{element:e}),r.add(e,n),a.fire("root.added",{element:e,gfx:n})},qe.prototype._setRoot=function(e,n){const r=this._rootElement;r&&(this._elementRegistry.updateGraphics(r,null,!0),this.hideLayer(r.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 r=Yz[e];if(!K3(r,function(s){return typeof n[s]<"u"}))throw new Error("must supply { "+r.join(", ")+" } with "+e)},qe.prototype._setParent=function(e,n,r){zz(n.children,e,r),e.parent=n},qe.prototype._addElement=function(e,n,r,a){r=r||this.getRootElement();const s=this._eventBus,c=this._graphicsFactory;this._ensureValid(e,n),s.fire(e+".add",{element:n,parent:r}),this._setParent(n,r,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,r){return this._addElement("shape",e,n,r)},qe.prototype.addConnection=function(e,n,r){return this._addElement("connection",e,n,r)},qe.prototype._removeElement=function(e,n){const r=this._elementRegistry,a=this._graphicsFactory,s=this._eventBus;if(e=r.get(e.id||e),!!e)return s.fire(n+".remove",{element:e}),a.remove(e),Lz(e.parent&&e.parent.children,e),e.parent=null,s.fire(n+".removed",{element:e}),r.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,r=this.getSize();let a,s,c,p,m,g,y;if(e)this._changeViewbox(function(){m=Math.min(r.width/e.width,r.height/e.height);const O=this._svg.createSVGMatrix().scale(m).translate(-e.x,-e.y);ud(n,O)});else return c=this._rootElement?this.getActiveLayer():null,a=c&&c.getBBox()||{},p=ud(n),s=p?p.matrix:Lj(),m=jh(s.a,1e3),g=jh(-s.e||0,1e3),y=jh(-s.f||0,1e3),e=this._cachedViewbox={x:g?g/m:0,y:y?y/m:0,width:r.width/m,height:r.height/m,scale:m,inner:{width:a.width||0,height:a.height||0,x:a.x||0,y:a.y||0},outer:r},e;return e},qe.prototype.scroll=function(e){const n=this._viewport;let r=n.getCTM();return e&&this._changeViewbox(function(){e=Je({dx:0,dy:0},e||{}),r=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(r),U6(n,r)}),{x:r.e,y:r.f}},qe.prototype.scrollToElement=function(e,n){let r=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"&&(r=n),n={top:n.top||r,right:n.right||r,bottom:n.bottom||r,left:n.left||r};const s=pd(e),c=Vy(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=Vy(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),B=Math.max(0,c.bottom-O.bottom),j=Math.min(0,c.top-O.top);g=N||_,y=B||j}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 r,a;return this._changeViewbox(function(){typeof n!="object"&&(r=this.viewbox().outer,n={x:r.width/2,y:r.height/2}),a=this._setZoom(e,n)}),jh(a.a,1e3)};function U6(e,n){const r="matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")";e.setAttribute("transform",r)}qe.prototype._fitViewport=function(e){const n=this.viewbox(),r=n.outer,a=n.inner;let s,c;return a.x>=0&&a.y>=0&&a.x+a.width<=r.width&&a.y+a.height<=r.height&&!e?c={x:0,y:0,width:Math.max(a.width+a.x,r.width),height:Math.max(a.height+a.y,r.height)}:(s=Math.min(1,r.width/a.width,r.height/a.height),c={x:a.x+(e?a.width/2-r.width/s/2:0),y:a.y+(e?a.height/2-r.height/s/2:0),width:r.width/s,height:r.height/s}),this.viewbox(c),this.viewbox(!1).scale},qe.prototype._setZoom=function(e,n){const r=this._svg,a=this._viewport,s=r.createSVGMatrix(),c=r.createSVGPoint();let p,m,g,y,O;g=a.getCTM();const S=g.a;return n?(p=Je(c,n),m=p.matrixTransform(g.inverse()),y=s.translate(m.x,m.y).scale(1/S*e).translate(-m.x,-m.y),O=g.multiply(y)):O=s.scale(e),U6(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 r;e.waypoints?r=this.getGraphics(e).getBBox():r=e;const a=r.x*n.scale-n.x*n.scale,s=r.y*n.scale-n.y*n.scale,c=r.width*n.scale,p=r.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 Kl="data-element-id";function Vi(e){this._elements={},this._eventBus=e}Vi.$inject=["eventBus"],Vi.prototype.add=function(e,n,r){var a=e.id;this._validateId(a),jt(n,Kl,a),r&&jt(r,Kl,a),this._elements[a]={element:e,gfx:n,secondaryGfx:r}},Vi.prototype.remove=function(e){var n=this._elements,r=e.id||e,a=r&&n[r];a&&(jt(a.gfx,Kl,""),a.secondaryGfx&&jt(a.secondaryGfx,Kl,""),delete n[r])},Vi.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 r=this.getGraphics(e),a=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,r,a)},Vi.prototype.updateGraphics=function(e,n,r){var a=e.id||e,s=this._elements[a];return r?s.secondaryGfx=n:s.gfx=n,n&&jt(n,Kl,a),n},Vi.prototype.get=function(e){var n;typeof e=="string"?n=e:n=e&&jt(e,Kl);var r=this._elements[n];return r&&r.element},Vi.prototype.filter=function(e){var n=[];return this.forEach(function(r,a){e(r,a)&&n.push(r)}),n},Vi.prototype.find=function(e){for(var n=this._elements,r=Object.keys(n),a=0;a<r.length;a++){var s=r[a],c=n[s],p=c.element,m=c.gfx;if(e(p,m))return p}},Vi.prototype.getAll=function(){return this.filter(function(e){return e})},Vi.prototype.forEach=function(e){var n=this._elements;Object.keys(n).forEach(function(r){var a=n[r],s=a.element,c=a.gfx;return e(s,c)})},Vi.prototype.getGraphics=function(e,n){var r=e.id||e,a=this._elements[r];return a&&(n?a.secondaryGfx:a.gfx)},Vi.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 Wz(e,n,r,a){var s=r.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 Gz(e){return e.__refs_collection===!0}function Jz(e,n){return Object.prototype.hasOwnProperty.call(e,n.name||n)}function Y6(e,n,r){var a=Wz(r[n.name]||[],e,n,r);Object.defineProperty(r,n.name,{enumerable:n.enumerable,value:a}),a.length&&a.forEach(function(s){e.set(s,n.inverse,r)})}function Kz(e,n,r){var a=n.inverse,s=r[n.name];Object.defineProperty(r,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,r),s=c,e.set(s,a,r)}}})}function ar(e,n){if(!(this instanceof ar))return new ar(e,n);e.inverse=n,n.inverse=e,this.props={},this.props[e.name]=e,this.props[n.name]=n}ar.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?Y6(this,n,e):Kz(this,n,e)},ar.prototype.ensureRefsCollection=function(e,n){var r=e[n.name];return Gz(r)||Y6(this,n,e),r},ar.prototype.ensureBound=function(e,n){Jz(e,n)||this.bind(e,n)},ar.prototype.unset=function(e,n,r){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).remove(r):e[n.name]=void 0)},ar.prototype.set=function(e,n,r){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).add(r):e[n.name]=r)};var Xy=new ar({name:"children",enumerable:!0,collection:!0},{name:"parent"}),W6=new ar({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),G6=new ar({name:"attachers",collection:!0},{name:"host"}),J6=new ar({name:"outgoing",collection:!0},{name:"source"}),K6=new ar({name:"incoming",collection:!0},{name:"target"});function hd(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var n=this.label,r=this.labels;!e&&n?r.remove(n):r.add(e,0)}}),Xy.bind(this,"parent"),W6.bind(this,"labels"),J6.bind(this,"outgoing"),K6.bind(this,"incoming")}function md(){hd.call(this),Xy.bind(this,"children"),G6.bind(this,"host"),G6.bind(this,"attachers")}Gr(md,hd);function X6(){hd.call(this),Xy.bind(this,"children")}Gr(X6,md);function Z6(){md.call(this),W6.bind(this,"labelTarget")}Gr(Z6,md);function $6(){hd.call(this),J6.bind(this,"source"),K6.bind(this,"target")}Gr($6,hd);var Xz={connection:$6,shape:md,label:Z6,root:X6};function Zz(e,n){var r=Xz[e];if(!r)throw new Error("unknown type: <"+e+">");return Je(new r,n)}function Xl(){this._uid=12}Xl.prototype.createRoot=function(e){return this.create("root",e)},Xl.prototype.createLabel=function(e){return this.create("label",e)},Xl.prototype.createShape=function(e){return this.create("shape",e)},Xl.prototype.createConnection=function(e){return this.create("connection",e)},Xl.prototype.create=function(e,n){return n=Je({},n||{}),n.id||(n.id=e+"_"+this._uid++),Zz(e,n)};var Lh="__fn",q6=1e3,$z=Array.prototype.slice;function yi(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}yi.prototype.on=function(e,n,r,a){if(e=Sr(e)?e:[e],ds(n)&&(a=r,r=n,n=q6),!to(n))throw new Error("priority must be a number");var s=r;a&&(s=no(r,a),s[Lh]=r[Lh]||r);var c=this;e.forEach(function(p){c._addListener(p,{priority:n,callback:s,next:null})})},yi.prototype.once=function(e,n,r,a){var s=this;if(ds(n)&&(a=r,r=n,n=q6),!to(n))throw new Error("priority must be a number");function c(){c.__isTomb=!0;var p=r.apply(a,arguments);return s.off(e,c),p}c[Lh]=r,this.on(e,n,c)},yi.prototype.off=function(e,n){e=Sr(e)?e:[e];var r=this;e.forEach(function(a){r._removeListener(a,n)})},yi.prototype.createEvent=function(e){var n=new gd;return n.init(e),n},yi.prototype.fire=function(e,n){var r,a,s,c;if(c=$z.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 gd?r=n:r=this.createEvent(n),c[0]=r;var p=r.type;e!==p&&(r.type=e);try{s=this._invokeListeners(r,c,a)}finally{e!==p&&(r.type=p)}return s===void 0&&r.defaultPrevented&&(s=!1),s}},yi.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},yi.prototype._destroy=function(){this._listeners={}},yi.prototype._invokeListeners=function(e,n,r){for(var a;r&&!e.cancelBubble;)a=this._invokeListener(e,n,r),r=r.next;return a},yi.prototype._invokeListener=function(e,n,r){var a;if(r.callback.__isTomb)return a;try{a=qz(r.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},yi.prototype._addListener=function(e,n){var r=this._getListeners(e),a;if(!r){this._setListeners(e,n);return}for(;r;){if(r.priority<n.priority){n.next=r,a?a.next=n:this._setListeners(e,n);return}a=r,r=r.next}a.next=n},yi.prototype._getListeners=function(e){return this._listeners[e]},yi.prototype._setListeners=function(e,n){this._listeners[e]=n},yi.prototype._removeListener=function(e,n){var r=this._getListeners(e),a,s,c;if(!n){this._setListeners(e,null);return}for(;r;)a=r.next,c=r.callback,(c===n||c[Lh]===n)&&(s?s.next=a:this._setListeners(e,a)),s=r,r=a};function gd(){}gd.prototype.stopPropagation=function(){this.cancelBubble=!0},gd.prototype.preventDefault=function(){this.defaultPrevented=!0},gd.prototype.init=function(e){Je(this,e||{})};function qz(e,n){return e.apply(null,n)}function eQ(e){return e.childNodes[0]}function tQ(e){return e.parentNode.childNodes[1]}function Ui(e,n){this._eventBus=e,this._elementRegistry=n}Ui.$inject=["eventBus","elementRegistry"],Ui.prototype._getChildrenContainer=function(e){var n=this._elementRegistry.getGraphics(e),r;return e.parent?(r=tQ(n),r||(r=Lt("g"),Jr(r).add("djs-children"),xn(n.parentNode,r))):r=n,r},Ui.prototype._clear=function(e){var n=eQ(e);return d6(n),n},Ui.prototype._createContainer=function(e,n,r,a){var s=Lt("g");Jr(s).add("djs-group"),typeof r<"u"?eS(s,n,n.childNodes[r]):xn(n,s);var c=Lt("g");Jr(c).add("djs-element"),Jr(c).add("djs-"+e),a&&Jr(c).add("djs-frame"),xn(s,c);var p=Lt("g");return Jr(p).add("djs-visual"),xn(c,p),c},Ui.prototype.create=function(e,n,r){var a=this._getChildrenContainer(n.parent);return this._createContainer(e,a,r,x6(n))},Ui.prototype.updateContainments=function(e){var n=this,r=this._elementRegistry,a;a=Ul(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=r.getGraphics(m);eS(g.parentNode,p)})}})},Ui.prototype.drawShape=function(e,n,r={}){var a=this._eventBus;return a.fire("render.shape",{gfx:e,element:n,attrs:r})},Ui.prototype.getShapePath=function(e){var n=this._eventBus;return n.fire("render.getShapePath",e)},Ui.prototype.drawConnection=function(e,n,r={}){var a=this._eventBus;return a.fire("render.connection",{gfx:e,element:n,attrs:r})},Ui.prototype.getConnectionPath=function(e){var n=this._eventBus;return n.fire("render.getConnectionPath",e)},Ui.prototype.update=function(e,n,r){if(!!n.parent){var a=this._clear(r);if(e==="shape")this.drawShape(a,n),g6(r,n.x,n.y);else if(e==="connection")this.drawConnection(a,n);else throw new Error("unknown type: "+e);n.hidden?jt(r,"display","none"):jt(r,"display","block")}},Ui.prototype.remove=function(e){var n=this._elementRegistry.getGraphics(e);cd(n.parentNode)};function eS(e,n,r){var a=r||n.firstChild;e!==a&&n.insertBefore(e,a)}const nQ={__depends__:[jz],__init__:["canvas"],canvas:["type",qe],elementRegistry:["type",Vi],elementFactory:["type",Xl],eventBus:["type",yi],graphicsFactory:["type",Ui]};function iQ(e){var n=new z6(e);return n.init(),n}function rQ(e){e=e||{};var n={config:["value",e]},r=[n,nQ].concat(e.modules||[]);return iQ(r)}function so(e,n){this._injector=n||rQ(e),this.get("eventBus").fire("diagram.init")}so.prototype.get=function(e,n){return this._injector.get(e,n)},so.prototype.invoke=function(e,n,r){return this._injector.invoke(e,n,r)},so.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},so.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function Zy(){}Zy.prototype.get=function(e){return this.$model.properties.get(this,e)},Zy.prototype.set=function(e,n){this.$model.properties.set(this,e,n)};function tS(e,n){this.model=e,this.properties=n}tS.prototype.createType=function(e){var n=this.model,r=this.properties,a=Object.create(Zy.prototype);We(e.properties,function(p){!p.isMany&&p.default!==void 0&&(a[p.name]=p.default)}),r.defineModel(a,n),r.defineDescriptor(a,e);var s=e.ns.name;function c(p){r.define(this,"$type",{value:s,enumerable:!0}),r.define(this,"$attrs",{value:{}}),r.define(this,"$parent",{writable:!0}),We(p,no(function(m,g){this.set(g,m)},this))}return c.prototype=a,c.hasType=a.$instanceOf=this.model.hasType,r.defineModel(c,n),r.defineDescriptor(c,e),c};var aQ={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},nS={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 $y(e,n){var r=nS[e];return r?r(n):n}function qy(e){return!!aQ[e]}function iS(e){return!!nS[e]}function Fn(e,n){var r=e.split(/:/),a,s;if(r.length===1)a=e,s=n;else if(r.length===2)a=r[1],s=r[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(s?s+":":"")+a,{name:e,prefix:s,localName:a}}function Yi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Yi.prototype.build=function(){return _j(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Yi.prototype.addProperty=function(e,n,r){typeof n=="boolean"&&(r=n,n=void 0),this.addNamedProperty(e,r!==!1);var a=this.properties;n!==void 0?a.splice(n,0,e):a.push(e)},Yi.prototype.replaceProperty=function(e,n,r){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,r?void 0:m,p),c[a.name]=c[a.localName]=n},Yi.prototype.redefineProperty=function(e,n,r){var a=e.ns.prefix,s=n.split("#"),c=Fn(s[0],a),p=Fn(s[1],c.prefix).name,m=this.propertiesByName[p];if(m)this.replaceProperty(m,e,r);else throw new Error("refined property <"+p+"> not found");delete e.redefines},Yi.prototype.addNamedProperty=function(e,n){var r=e.ns,a=this.propertiesByName;n&&(this.assertNotDefined(e,r.name),this.assertNotDefined(e,r.localName)),a[r.name]=a[r.localName]=e},Yi.prototype.removeNamedProperty=function(e){var n=e.ns,r=this.propertiesByName;delete r[n.name],delete r[n.localName]},Yi.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},Yi.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},Yi.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},Yi.prototype.assertNotDefined=function(e,n){var r=e.name,a=this.propertiesByName[r];if(a)throw new Error("property <"+r+"> already defined; override of <"+a.definedBy.ns.name+"#"+a.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},Yi.prototype.hasProperty=function(e){return this.propertiesByName[e]},Yi.prototype.addTrait=function(e,n){n&&this.assertNotTrait(e);var r=this.allTypesByName,a=this.allTypes,s=e.name;s in r||(We(e.properties,no(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),r[s]=e)};function lo(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,We(e,no(this.registerPackage,this))}lo.prototype.getPackage=function(e){return this.packageMap[e]},lo.prototype.getPackages=function(){return this.packages},lo.prototype.registerPackage=function(e){e=Je({},e);var n=this.packageMap;rS(n,e,"prefix"),rS(n,e,"uri"),We(e.types,no(function(r){this.registerType(r,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)},lo.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 r=Fn(e.name,n.prefix),a=r.name,s={};We(e.properties,no(function(c){var p=Fn(c.name,r.prefix),m=p.name;qy(c.type)||(c.type=Fn(c.type,p.prefix).name),Je(c,{ns:p,name:m}),s[m]=c},this)),Je(e,{ns:r,name:a,propertiesByName:s}),We(e.extends,no(function(c){var p=Fn(c,r.prefix),m=this.typeMap[p.name];m.traits=m.traits||[],m.traits.push(a)},this)),this.definePackage(e,n),this.typeMap[a]=e},lo.prototype.mapTypes=function(e,n,r){var a=qy(e.name)?{name:e.name}:this.typeMap[e.name],s=this;function c(g,y){var O=Fn(g,qy(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,r?p:m),n(a,!r),We(a.traits,p)},lo.prototype.getEffectiveDescriptor=function(e){var n=Fn(e),r=new Yi(n);this.mapTypes(n,function(s,c){r.addTrait(s,c)});var a=r.build();return this.definePackage(a,a.allTypes[a.allTypes.length-1].$pkg),a},lo.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})};function rS(e,n,r){var a=n[r];if(a in e)throw new Error("package with "+r+" <"+a+"> already defined")}function bs(e){this.model=e}bs.prototype.set=function(e,n,r){if(!Dr(n)||!n.length)throw new TypeError("property name must be a non-empty string");var a=this.getProperty(e,n),s=a&&a.name;oQ(r)?a?delete e[s]:delete e.$attrs[e0(n)]:a?s in e?e[s]=r:aS(e,a,r):e.$attrs[e0(n)]=r},bs.prototype.get=function(e,n){var r=this.getProperty(e,n);if(!r)return e.$attrs[e0(n)];var a=r.name;return!e[a]&&r.isMany&&aS(e,r,[]),e[a]},bs.prototype.define=function(e,n,r){if(!r.writable){var a=r.value;r=Je({},r,{get:function(){return a}}),delete r.value}Object.defineProperty(e,n,r)},bs.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})},bs.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})},bs.prototype.getProperty=function(e,n){var r=this.model,a=r.getPropertyDescriptor(e,n);if(a)return a;if(n.includes(":"))return null;const s=r.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 oQ(e){return typeof e>"u"}function aS(e,n,r){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:r,configurable:!0})}function e0(e){return e.replace(/^:/,"")}function or(e,n={}){this.properties=new bs(this),this.factory=new tS(this,this.properties),this.registry=new lo(e,this.properties),this.typeCache={},this.config=n}or.prototype.create=function(e,n){var r=this.getType(e);if(!r)throw new Error("unknown type <"+e+">");return new r(n)},or.prototype.getType=function(e){var n=this.typeCache,r=Dr(e)?e:e.ns.name,a=n[r];return a||(e=this.registry.getEffectiveDescriptor(r),a=n[r]=this.factory.createType(e)),a},or.prototype.createAny=function(e,n,r){var a=Fn(e),s={$type:e,$instanceOf:function(p){return p===this.$type},get:function(p){return this[p]},set:function(p,m){bj(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(r,function(p,m){us(p)&&p.value!==void 0?s[p.name]=p.value:s[m]=p}),s},or.prototype.getPackage=function(e){return this.registry.getPackage(e)},or.prototype.getPackages=function(){return this.registry.getPackages()},or.prototype.getElementDescriptor=function(e){return e.$descriptor},or.prototype.hasType=function(e,n){n===void 0&&(n=e,e=this);var r=e.$model.getElementDescriptor(e);return n in r.allTypesByName},or.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]},or.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var oS=String.fromCharCode,sQ=Object.prototype.hasOwnProperty,lQ=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,Ad={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Ad).forEach(function(e){Ad[e.toUpperCase()]=Ad[e]});function cQ(e,n,r,a){return a?sQ.call(Ad,a)?Ad[a]:"&"+a+";":oS(n||parseInt(r,16))}function _s(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(lQ,cQ):e}var sS="non-whitespace outside of root node";function Zl(e){return new Error(e)}function lS(e){return"missing namespace for prefix <"+e+">"}function zh(e){return{get:e,enumerable:!0}}function uQ(e){var n={},r;for(r in e)n[r]=e[r];return n}function t0(e){return e+"$uri"}function dQ(e){var n={},r,a;for(r in e)a=e[r],n[a]=a,n[t0(a)]=r;return n}function cS(){return{line:0,column:0}}function fQ(e){throw e}function uS(e){if(!this)return new uS(e);var n=e&&e.proxy,r,a,s,c,p=fQ,m,g,y,O,S=cS,N=!1,_=!1,B=null,j=!1,R;function T(w){w instanceof Error||(w=Zl(w)),B=w,p(w,S)}function F(w){!m||(w instanceof Error||(w=Zl(w)),m(w,S))}this.on=function(w,k){if(typeof k!="function")throw Zl("required args <name, cb>");switch(w){case"openTag":a=k;break;case"text":r=k;break;case"closeTag":s=k;break;case"error":p=k;break;case"warn":m=k;break;case"cdata":c=k;break;case"attention":O=k;break;case"question":y=k;break;case"comment":g=k;break;default:throw Zl("unsupported event: "+w)}return this},this.ns=function(w){if(typeof w>"u"&&(w={}),typeof w!="object")throw Zl("required args <nsMap={}>");var k={},Q;for(Q in w)k[Q]=w[Q];return _=!0,R=k,this},this.parse=function(w){if(typeof w!="string")throw Zl("required args <xml=string>");return B=null,v(w),S=cS,j=!1,B},this.stop=function(){j=!0};function v(w){var k=_?[]:null,Q=_?dQ(R):null,M,H=[],ne=0,re=!1,de=!1,me=0,pe=0,Se,ye,_e,W,J,ie,ge,Te,se,he="",xe=0,Pe;function K(){if(Pe!==null)return Pe;var E,C,X,ee=_&&Q.xmlns,fe=_&&N?[]:null,De=xe,je=he,Ke=je.length,yt,ht,Ot,cn,ut,Tt={},hn={},ve,q,G;e:for(;De<Ke;De++)if(ve=!1,q=je.charCodeAt(De),!(q===32||q<14&&q>8)){for((q<65||q>122||q>90&&q<97)&&q!==95&&q!==58&&(F("illegal first char attribute name"),ve=!0),G=De+1;G<Ke;G++)if(q=je.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){F("missing attribute value"),De=G;continue e}if(q===61)break;F("illegal attribute name char"),ve=!0}if(ut=je.substring(De,G),ut==="xmlns:xmlns"&&(F("illegal declaration of xmlns"),ve=!0),q=je.charCodeAt(G+1),q===34)G=je.indexOf('"',De=G+2),G===-1&&(G=je.indexOf("'",De),G!==-1&&(F("attribute value quote missmatch"),ve=!0));else if(q===39)G=je.indexOf("'",De=G+2),G===-1&&(G=je.indexOf('"',De),G!==-1&&(F("attribute value quote missmatch"),ve=!0));else for(F("missing attribute value quotes"),ve=!0,G=G+1;G<Ke&&(q=je.charCodeAt(G+1),!(q===32||q<14&&q>8));G++);for(G===-1&&(F("missing closing quotes"),G=Ke,ve=!0),ve||(Ot=je.substring(De,G)),De=G;G+1<Ke&&(q=je.charCodeAt(G+1),!(q===32||q<14&&q>8));G++)De===G&&(F("illegal character after attribute end"),ve=!0);if(De=G+1,ve)continue e;if(ut in hn){F("attribute <"+ut+"> already defined");continue}if(hn[ut]=!0,!_){Tt[ut]=Ot;continue}if(N){if(ht=ut==="xmlns"?"xmlns":ut.charCodeAt(0)===120&&ut.substr(0,6)==="xmlns:"?ut.substr(6):null,ht!==null){if(E=_s(Ot),C=t0(ht),cn=R[E],!cn){if(ht==="xmlns"||C in Q&&Q[C]!==E)do cn="ns"+ne++;while(typeof Q[cn]<"u");else cn=ht;R[E]=cn}Q[ht]!==cn&&(yt||(Q=uQ(Q),yt=!0),Q[ht]=cn,ht==="xmlns"&&(Q[t0(cn)]=E,ee=cn),Q[C]=E),Tt[ut]=Ot;continue}fe.push(ut,Ot);continue}if(q=ut.indexOf(":"),q===-1){Tt[ut]=Ot;continue}if(!(X=Q[ut.substring(0,q)])){F(lS(ut.substring(0,q)));continue}ut=ee===X?ut.substr(q+1):X+ut.substr(q),Tt[ut]=Ot}if(N)for(De=0,Ke=fe.length;De<Ke;De++){if(ut=fe[De++],Ot=fe[De],q=ut.indexOf(":"),q!==-1){if(!(X=Q[ut.substring(0,q)])){F(lS(ut.substring(0,q)));continue}ut=ee===X?ut.substr(q+1):X+ut.substr(q)}Tt[ut]=Ot}return Pe=Tt}function P(){for(var E=/(\r\n|\r|\n)/g,C=0,X=0,ee=0,fe=pe,De,je;me>=ee&&(De=E.exec(w),!(!De||(fe=De[0].length+De.index,fe>me)));)C+=1,ee=fe;return me==-1?(X=fe,je=w.substring(pe)):pe===0?je=w.substring(pe,me):(X=me-ee,je=pe==-1?w.substring(me):w.substring(me,pe+1)),{data:je,line:C,column:X}}for(S=P,n&&(se=Object.create({},{name:zh(function(){return ge}),originalName:zh(function(){return Te}),attrs:zh(K),ns:zh(function(){return Q})}));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()&&F(sS);return}if(pe!==me){if(H.length){if(r&&(r(w.substring(pe,me),_s,S),j))return}else if(w.substring(pe,me).trim()&&(F(sS),j))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),S),j))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),_s,S),j))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),S),j))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),_s,S),j))return;pe+=1;continue}if(Pe={},W===47){if(re=!1,de=!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),re=!0,de=!0):(Se=ge=w.substring(me+1,pe),re=!0,de=!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),Pe=null;break}return T("invalid nodeName")}de||H.push(ge)}if(_){if(M=Q,re&&(de||k.push(M),Pe===null&&(N=Se.indexOf("xmlns",_e)!==-1)&&(xe=_e,he=Se,K(),N=!1)),Te=ge,W=ge.indexOf(":"),W!==-1){if(ie=Q[ge.substring(0,W)],!ie)return T("missing namespace on <"+Te+">");ge=ge.substr(W+1)}else ie=Q.xmlns;ie&&(ge=ie+":"+ge)}if(re&&(xe=_e,he=Se,a&&(n?a(se,_s,de,S):a(ge,K,_s,de,S),j)))return;if(de){if(s&&(s(n?se:ge,_s,re,S),j))return;_&&(re?Q=M:Q=k.pop())}pe+=1}}}function dS(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var n0={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},fS="property";function pS(e){return e.xml&&e.xml.serialize}function pQ(e){const n=pS(e);return n!==fS&&(n||null)}function hQ(e){return e.charAt(0).toUpperCase()+e.slice(1)}function hS(e,n){return dS(n)?e.prefix+":"+hQ(e.localName):e.name}function mQ(e,n){var r=e.name,a=e.localName,s=n&&n.xml&&n.xml.typePrefix;return s&&a.indexOf(s)===0?e.prefix+":"+a.slice(s.length):r}function gQ(e,n,r){const a=Fn(e,n.xmlns),s=`${n[a.prefix]||a.prefix}:${a.localName}`,c=Fn(s);var p=r.getPackage(c.prefix);return mQ(c,p)}function co(e){return new Error(e)}function Ea(e){return e.$descriptor}function AQ(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 co("expected element");var r=this.elementsById,a=Ea(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(r[c])throw co("duplicate ID <"+c+">");r[c]=n}},this.addWarning=function(n){this.warnings.push(n)}}function vd(){}vd.prototype.handleEnd=function(){},vd.prototype.handleText=function(){},vd.prototype.handleNode=function(){};function i0(){}i0.prototype=Object.create(vd.prototype),i0.prototype.handleNode=function(){return this};function $l(){}$l.prototype=Object.create(vd.prototype),$l.prototype.handleText=function(e){this.body=(this.body||"")+e};function bd(e,n){this.property=e,this.context=n}bd.prototype=Object.create($l.prototype),bd.prototype.handleNode=function(e){if(this.element)throw co("expected no sub nodes");return this.element=this.createReference(e),this},bd.prototype.handleEnd=function(){this.element.id=this.body},bd.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function r0(e,n){this.element=n,this.propertyDesc=e}r0.prototype=Object.create($l.prototype),r0.prototype.handleEnd=function(){var e=this.body||"",n=this.element,r=this.propertyDesc;e=$y(r.type,e),r.isMany?n.get(r.name).push(e):n.set(r.name,e)};function Qh(){}Qh.prototype=Object.create($l.prototype),Qh.prototype.handleNode=function(e){var n=this,r=this.element;return r?n=this.handleChild(e):(r=this.element=this.createElement(e),this.context.addElement(r)),n};function Wn(e,n,r){this.model=e,this.type=e.getType(n),this.context=r}Wn.prototype=Object.create(Qh.prototype),Wn.prototype.addReference=function(e){this.context.addReference(e)},Wn.prototype.handleText=function(e){var n=this.element,r=Ea(n),a=r.bodyProperty;if(!a)throw co("unexpected body text <"+e+">");$l.prototype.handleText.call(this,e)},Wn.prototype.handleEnd=function(){var e=this.body,n=this.element,r=Ea(n),a=r.bodyProperty;a&&e!==void 0&&(e=$y(a.type,e),n.set(a.name,e))},Wn.prototype.createElement=function(e){var n=e.attributes,r=this.type,a=Ea(r),s=this.context,c=new r({}),p=this.model,m;return We(n,function(g,y){var O=a.propertiesByName[y],S;O&&O.isReference?O.isMany?(S=g.split(" "),We(S,function(N){s.addReference({element:c,property:O.ns.name,id:N})})):s.addReference({element:c,property:O.ns.name,id:g}):(O?g=$y(O.type,g):y==="xmlns"?y=":"+y:(m=Fn(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},Wn.prototype.getPropertyForNode=function(e){var n=e.name,r=Fn(n),a=this.type,s=this.model,c=Ea(a),p=r.name,m=c.propertiesByName[p];if(m&&!m.isAttr){const y=pQ(m);if(y){const O=e.attributes[y];if(O){const S=gQ(O,e.ns,s),N=s.getType(S);return Je({},m,{effectiveType:Ea(N).name})}}return m}var g=s.getPackage(r.prefix);if(g){const y=hS(r,g),O=s.getType(y);if(m=Br(c.properties,function(S){return!S.isVirtual&&!S.isReference&&!S.isAttribute&&O.hasType(S.type)}),m)return Je({},m,{effectiveType:Ea(O).name})}else if(m=Br(c.properties,function(y){return!y.isReference&&!y.isAttribute&&y.type==="Element"}),m)return m;throw co("unrecognized element <"+r.name+">")},Wn.prototype.toString=function(){return"ElementDescriptor["+Ea(this.type).name+"]"},Wn.prototype.valueHandler=function(e,n){return new r0(e,n)},Wn.prototype.referenceHandler=function(e){return new bd(e,this.context)},Wn.prototype.handler=function(e){return e==="Element"?new ql(this.model,e,this.context):new Wn(this.model,e,this.context)},Wn.prototype.handleChild=function(e){var n,r,a,s;if(n=this.getPropertyForNode(e),a=this.element,r=n.effectiveType||n.type,iS(r))return this.valueHandler(n,a);n.isReference?s=this.referenceHandler(n).handleNode(e):s=this.handler(r).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 a0(e,n,r){Wn.call(this,e,n,r)}a0.prototype=Object.create(Wn.prototype),a0.prototype.createElement=function(e){var n=e.name,r=Fn(n),a=this.model,s=this.type,c=a.getPackage(r.prefix),p=c&&hS(r,c)||n;if(!s.hasType(p))throw co("unexpected element <"+e.originalName+">");return Wn.prototype.createElement.call(this,e)};function ql(e,n,r){this.model=e,this.context=r}ql.prototype=Object.create(Qh.prototype),ql.prototype.createElement=function(e){var n=e.name,r=Fn(n),a=r.prefix,s=e.ns[a+"$uri"],c=e.attributes;return this.model.createAny(n,s,c)},ql.prototype.handleChild=function(e){var n=new ql(this.model,"Element",this.context).handleNode(e),r=this.element,a=n.element,s;return a!==void 0&&(s=r.$children=r.$children||[],s.push(a),a.$parent=r),n},ql.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function o0(e){e instanceof or&&(e={model:e}),Je(this,{lax:!1},e)}o0.prototype.fromXML=function(e,n,r){var a=n.rootHandler;n instanceof Wn?(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 AQ(Je({},n,{rootHandler:a})),m=new uS({proxy:!0}),g=vQ();a.context=p,g.push(a);function y(k,Q,M){var H=Q(),ne=H.line,re=H.column,de=H.data;de.charAt(0)==="<"&&de.indexOf(" ")!==-1&&(de=de.slice(0,de.indexOf(" "))+">");var me="unparsable content "+(de?de+" ":"")+`detected
33
33
  line: `+ne+`
34
34
  column: `+re+`
35
35
  nested error: `+k.message;if(M)return p.addWarning({message:me,error:k}),!0;throw co(me)}function O(k,Q){return y(k,Q,!0)}function S(){var k=p.elementsById,Q=p.references,M,H;for(M=0;H=Q[M];M++){var ne=H.element,re=k[H.id],de=Ea(ne).propertiesByName[H.property];if(re||p.addWarning({message:"unresolved reference <"+H.id+">",element:H.element,property:H.property,value:H.id}),de.isMany){var me=ne.get(de.name),pe=me.indexOf(H);pe===-1&&(pe=me.length),re?me[pe]=re:me.splice(pe,1)}else ne.set(de.name,re)}}function N(){g.pop().handleEnd()}var _=/^<\?xml /i,B=/ encoding="([^"]+)"/i,j=/^utf-8$/i;function R(k){if(!!_.test(k)){var Q=B.exec(k),M=Q&&Q[1];!M||j.test(M)||p.addWarning({message:"unsupported document encoding <"+M+">, falling back to UTF-8"})}}function T(k,Q){var M=g.peek();try{g.push(M.handleNode(k))}catch(H){y(H,Q,c)&&g.push(new i0)}}function F(k,Q){try{g.peek().handleText(k)}catch(M){O(M,Q)}}function v(k,Q){!k.trim()||F(k,Q)}var w=s.getPackages().reduce(function(k,Q){return k[Q.uri]=Q.prefix,k},Object.entries(n0).reduce(function(k,[Q,M]){return k[M]=Q,k},s.config&&s.config.nsMap||{}));return m.ns(w).on("openTag",function(k,Q,M,H){var ne=k.attrs||{},re=Object.keys(ne).reduce(function(me,pe){var Se=Q(ne[pe]);return me[pe]=Se,me},{}),de={name:k.name,originalName:k.originalName,attributes:re,ns:k.ns};T(de,H)}).on("question",R).on("closeTag",N).on("cdata",F).on("text",function(k,Q,M){v(Q(k),M)}).on("error",y).on("warn",O),new Promise(function(k,Q){var M;try{m.parse(e),S()}catch(me){M=me}var H=a.element;!M&&!H&&(M=co("failed to parse document as <"+a.type.$descriptor.name+">"));var ne=p.warnings,re=p.references,de=p.elementsById;return M?(M.warnings=ne,Q(M)):k({rootElement:H,elementsById:de,references:re,warnings:ne})})},o0.prototype.handler=function(e){return new a0(this.model,e)};function vQ(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var bQ=`<?xml version="1.0" encoding="UTF-8"?>
@@ -37,7 +37,7 @@ usage: app.provide(ID_INJECTION_KEY, {
37
37
  `),this},this.appendIndent=function(){return n&&e.write(r.join(" ")),this},this.indent=function(){return r.push(""),this},this.unindent=function(){return r.pop(),this}}function FQ(e){e=Je({format:!1,preamble:!0},e||{});function n(r,a){var s=a||new NQ,c=new MQ(s,e.format);e.preamble&&c.append(bQ);var p=new Vt,m=r.$model;if(p.getNamespaces().mapDefaultPrefixes(PQ(m)),p.build(r).serializeTo(c),!a)return s.value}return{toXML:n}}function PQ(e){const n=e.config&&e.config.nsMap||{},r={};for(const a in n0)r[a]=n0[a];for(const a in n){const s=n[a];r[s]=a}for(const a of e.getPackages())r[a.prefix]=a.uri;return r}function Vh(e,n){or.call(this,e,n)}Vh.prototype=Object.create(or.prototype),Vh.prototype.fromXML=function(e,n,r){Dr(n)||(r=n,n="bpmn:Definitions");var a=new o0(Je({model:this,lax:!0},r)),s=a.handler(n);return a.fromXML(e,s)},Vh.prototype.toXML=function(e,n){var r=new FQ(n);return new Promise(function(a,s){try{var c=r.toXML(e);return a({xml:c})}catch(p){return s(p)}})};var RQ="BPMN20",jQ="http://www.omg.org/spec/BPMN/20100524/MODEL",LQ="bpmn",zQ=[],QQ=[{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"}]}],HQ=[{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"}]}],VQ={tagAlias:"lowerCase",typePrefix:"t"},UQ={name:RQ,uri:jQ,prefix:LQ,associations:zQ,types:QQ,enumerations:HQ,xml:VQ},YQ="BPMNDI",WQ="http://www.omg.org/spec/BPMN/20100524/DI",GQ="bpmndi",JQ=[{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"]}],KQ=[{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"}]}],XQ=[],ZQ={name:YQ,uri:WQ,prefix:GQ,types:JQ,enumerations:KQ,associations:XQ},$Q="DC",qQ="http://www.omg.org/spec/DD/20100524/DC",eH="dc",tH=[{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}]}],nH=[],iH={name:$Q,uri:qQ,prefix:eH,types:tH,associations:nH},rH="DI",aH="http://www.omg.org/spec/DD/20100524/DI",oH="di",sH=[{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"}]}],lH=[],cH={tagAlias:"lowerCase"},uH={name:rH,uri:aH,prefix:oH,types:sH,associations:lH,xml:cH},dH="bpmn.io colors for BPMN",fH="http://bpmn.io/schema/bpmn/biocolor/1.0",pH="bioc",hH=[{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"}]}],mH=[],gH=[],AH={name:dH,uri:fH,prefix:pH,types:hH,enumerations:mH,associations:gH},vH="BPMN in Color",bH="http://www.omg.org/spec/BPMN/non-normative/color/1.0",_H="color",yH=[{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"}]}],xH=[],wH=[],EH={name:vH,uri:bH,prefix:_H,types:yH,enumerations:xH,associations:wH};const CH={bpmn:UQ,bpmndi:ZQ,dc:iH,di:uH,bioc:AH,color:EH};function kH(e,n){const r=Je({},CH,e);return new Vh(r,n)}var SH="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 DH(e){Hl(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(SH)}})}function ni(e,n){return e.$instanceOf(n)}function BH(e){return Br(e.rootElements,function(n){return ni(n,"bpmn:Process")||ni(n,"bpmn:Collaboration")})}function IH(e){var n={},r=[],a={};function s(se,he){return function(xe){se(xe,he)}}function c(se){n[se.id]=se}function p(se){return n[se.id]}function m(se,he){var xe=se.gfx;if(xe)throw new Error(`already rendered ${Mn(se)}`);return e.element(se,a[se.id],he)}function g(se,he){return e.root(se,a[se.id],he)}function y(se,he){try{var xe=a[se.id]&&m(se,he);return c(se),xe}catch(Pe){O(Pe.message,{element:se,error:Pe}),console.error(`failed to import ${Mn(se)}`,Pe)}}function O(se,he){e.error(se,he)}var S=this.registerDi=function(he){var xe=he.bpmnElement;xe?a[xe.id]?O(`multiple DI elements defined for ${Mn(xe)}`,{element:xe}):(a[xe.id]=he,DH(xe)):O(`no bpmnElement referenced in ${Mn(he)}`,{element:he})};function N(se){_(se.plane)}function _(se){S(se),We(se.planeElement,B)}function B(se){S(se)}this.handleDefinitions=function(he,xe){var Pe=he.diagrams;if(xe&&Pe.indexOf(xe)===-1)throw new Error("diagram not part of <bpmn:Definitions />");if(!xe&&Pe&&Pe.length&&(xe=Pe[0]),!xe)throw new Error("no diagram to display");a={},N(xe);var K=xe.plane;if(!K)throw new Error(`no plane for ${Mn(xe)}`);var P=K.bpmnElement;if(!P)if(P=BH(he),P)O(`correcting missing bpmnElement on ${Mn(K)} to ${Mn(P)}`),K.bpmnElement=P,S(K);else throw new Error("no process or collaboration to display");var E=g(P,K);if(ni(P,"bpmn:Process")||ni(P,"bpmn:SubProcess"))R(P,E);else if(ni(P,"bpmn:Collaboration"))ge(P,E),T(he.rootElements,E);else throw new Error(`unsupported bpmnElement for ${Mn(K)}: ${Mn(P)}`);j(r)};var j=this.handleDeferred=function(){for(var he;r.length;)he=r.shift(),he()};function R(se,he){W(se,he),ne(se.ioSpecification,he),H(se.artifacts,he),c(se)}function T(se,he){var xe=Vl(se,function(Pe){return!p(Pe)&&ni(Pe,"bpmn:Process")&&Pe.laneSets});xe.forEach(s(R,he))}function F(se,he){y(se,he)}function v(se,he){We(se,s(F,he))}function w(se,he){y(se,he)}function k(se,he){y(se,he)}function Q(se,he){y(se,he)}function M(se,he){y(se,he)}function H(se,he){We(se,function(xe){ni(xe,"bpmn:Association")?r.push(function(){M(xe,he)}):M(xe,he)})}function ne(se,he){!se||(We(se.dataInputs,s(k,he)),We(se.dataOutputs,s(Q,he)))}var re=this.handleSubProcess=function(he,xe){W(he,xe),H(he.artifacts,xe)};function de(se,he){var xe=y(se,he);ni(se,"bpmn:SubProcess")&&re(se,xe||he),ni(se,"bpmn:Activity")&&ne(se.ioSpecification,he),r.push(function(){We(se.dataInputAssociations,s(w,he)),We(se.dataOutputAssociations,s(w,he))})}function me(se,he){y(se,he)}function pe(se,he){y(se,he)}function Se(se,he){r.push(function(){var xe=y(se,he);se.childLaneSet&&ye(se.childLaneSet,xe||he),Te(se)})}function ye(se,he){We(se.lanes,s(Se,he))}function _e(se,he){We(se,s(ye,he))}function W(se,he){J(se.flowElements,he),se.laneSets&&_e(se.laneSets,he)}function J(se,he){We(se,function(xe){ni(xe,"bpmn:SequenceFlow")?r.push(function(){me(xe,he)}):ni(xe,"bpmn:BoundaryEvent")?r.unshift(function(){de(xe,he)}):ni(xe,"bpmn:FlowNode")?de(xe,he):ni(xe,"bpmn:DataObject")||(ni(xe,"bpmn:DataStoreReference")||ni(xe,"bpmn:DataObjectReference")?pe(xe,he):O(`unrecognized flowElement ${Mn(xe)} in context ${Mn(he&&he.businessObject)}`,{element:xe,context:he}))})}function ie(se,he){var xe=y(se,he),Pe=se.processRef;Pe&&R(Pe,xe||he)}function ge(se,he){We(se.participants,s(ie,he)),r.push(function(){v(se.messageFlows,he)}),H(se.artifacts,he)}function Te(se){We(se.flowNodeRef,function(he){var xe=he.get("lanes");xe&&xe.push(se)})}}function OH(e,n,r){var a,s,c,p,m=[];function g(y,O){var S={root:function(j,R){return a.add(j,R)},element:function(j,R,T){return a.add(j,R,T)},error:function(j,R){m.push({message:j,context:R})}},N=new IH(S);O=O||y.diagrams&&y.diagrams[0];var _=TH(y,O);if(!_)throw new Error("no diagram to display");We(_,function(j){N.handleDefinitions(y,j)});var B=O.plane.bpmnElement.id;c.setRootElement(c.findRoot(B+"_plane")||c.findRoot(B))}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,r),s.fire("import.render.complete",{error:p,warnings:m}),y({warnings:m})}catch(S){return S.warnings=m,O(S)}})}function TH(e,n){if(!(!n||!n.plane)){var r=n.plane.bpmnElement,a=r;!Ge(r,"bpmn:Process")&&!Ge(r,"bpmn:Collaboration")&&(a=NH(r));var s;Ge(a,"bpmn:Collaboration")?s=a:s=Br(e.rootElements,function(y){if(!!Ge(y,"bpmn:Collaboration"))return Br(y.participants,function(O){return O.processRef===a})});var c=[a];s&&(c=mj(s.participants,function(y){return y.processRef}),c.push(s));var p=bS(c),m=[n],g=[r];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 bS(e){var n=[];return We(e,function(r){!r||(n.push(r),n=n.concat(bS(r.flowElements)))}),n}function NH(e){for(var n=e;n;){if(Ge(n,"bpmn:Process"))return n;n=n.$parent}}var MH='<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>',_S=MH,yS={verticalAlign:"middle"},xS={color:"#404040"},FH={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},PH={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},RH={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"},jH='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+_S+'</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 LH(){Zr=Hi(jH),Nn(Zr,FH),Nn(_a("svg",Zr),yS),Nn(_a(".backdrop",Zr),PH),Nn(_a(".notice",Zr),RH),Nn(_a(".link",Zr),xS,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function zH(){Zr||(LH(),Yl.bind(Zr,".backdrop","click",function(e){document.body.removeChild(Zr)})),document.body.appendChild(Zr)}function an(e){e=Je({},HH,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e),UH(this._container)}Gr(an,so),an.prototype.importXML=async function(n,r){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 S=await this.importDefinitions(m,r);return c=c.concat(S.warnings),this._emit("import.done",{error:null,warnings:c}),{warnings:c}}catch(p){let m=p;throw c=c.concat(m.warnings||[]),Uh(m,c),m=QH(m),this._emit("import.done",{error:m,warnings:m.warnings}),m}},an.prototype.importDefinitions=async function(n,r){return this._setDefinitions(n),{warnings:(await this.open(r)).warnings}},an.prototype.open=async function(n){const r=this._definitions;let a=n;if(!r){const c=new Error("no XML imported");throw Uh(c,[]),c}if(typeof n=="string"&&(a=VH(r,n),!a)){const c=new Error("BPMNDiagram <"+n+"> not found");throw Uh(c,[]),c}try{this.clear()}catch(c){throw Uh(c,[]),c}const{warnings:s}=await OH(this,r,a);return{warnings:s}},an.prototype.saveXML=async function(n){n=n||{};let r=this._definitions,a,s;try{if(!r)throw new Error("no definitions loaded");r=this._emit("saveXML.start",{definitions:r})||r,s=(await this._moddle.toXML(r,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},an.prototype.saveSVG=async function(){this._emit("saveSVG.start");let n,r;try{const a=this.get("canvas"),s=a.getActiveLayer(),c=_a(":scope > defs",a._svg),p=l6(s),m=c?"<defs>"+l6(c)+"</defs>":"",g=s.getBBox();n=`<?xml version="1.0" encoding="utf-8"?>
38
38
  <!-- created with bpmn-js / http://bpmn.io -->
39
39
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
40
- <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){r=a}if(this._emit("saveSVG.done",{error:r,svg:n}),r)throw r;return{svg:n}},an.prototype._setDefinitions=function(e){this._definitions=e},an.prototype.getModules=function(){return this._modules},an.prototype.clear=function(){!this.getDefinitions()||so.prototype.clear.call(this)},an.prototype.destroy=function(){so.prototype.destroy.call(this),Wl(this._container)},an.prototype.on=function(e,n,r,a){return this.get("eventBus").on(e,n,r,a)},an.prototype.off=function(e,n){this.get("eventBus").off(e,n)},an.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=_a(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},an.prototype.getDefinitions=function(){return this._definitions},an.prototype.detach=function(){const e=this._container,n=e.parentNode;!n||(this._emit("detach",{}),n.removeChild(e))},an.prototype._init=function(e,n,r){const a=r.modules||this.getModules(r),s=r.additionalModules||[],c=[{bpmnjs:["value",this],moddle:["value",n]}],p=[].concat(c,a,s),m=Je(yj(r,["additionalModules"]),{canvas:Je({},r.canvas,{container:e}),modules:p});so.call(this,m),r&&r.container&&this.attachTo(r.container)},an.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},an.prototype._createContainer=function(e){const n=Hi('<div class="bjs-container"></div>');return Nn(n,{width:wS(e.width),height:wS(e.height),position:e.position}),n},an.prototype._createModdle=function(e){const n=Je({},this._moddleExtensions,e.moddleExtensions);return new kH(n)},an.prototype._modules=[];function Uh(e,n){return e.warnings=n,e}function QH(e){const r=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return r&&(e.message="unparsable content <"+r[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+r[2]),e}const HH={width:"100%",height:"100%",position:"relative"};function wS(e){return e+(to(e)?"px":"")}function VH(e,n){return n&&Br(e.diagrams,function(r){return r.id===n})||null}function UH(e){const r='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+_S+"</a>",a=Hi(r);Nn(_a("svg",a),yS),Nn(a,xS,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(a),gs.bind(a,"click",function(s){zH(),s.preventDefault()})}function ec(e){an.call(this,e)}Gr(ec,an),ec.prototype._modules=[iz,xz,C6,Dz,b6],ec.prototype._moddleExtensions={};var YH=/^djs-cursor-.*$/;function ES(e){var n=ms(document.body);n.removeMatching(YH),e&&n.add("djs-cursor-"+e)}function WH(){ES(null)}var GH=5e3;function JH(e,n){n=n||"element.click";function r(){return!1}return e.once(n,GH,r),function(){e.off(n,r)}}function CS(e,n){return{x:e.x-n.x,y:e.y-n.y}}var KH=15;function kS(e,n){var r;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=r.start,y=r.button,O=T6(m),S=CS(O,g);if(!r.dragging&&XH(S)>KH&&(r.dragging=!0,y===0&&JH(e),ES("grab")),r.dragging){var N=r.last||r.start;S=CS(O,N),n.scroll({dx:S.x,dy:S.y}),r.last=O}m.preventDefault()}function c(m){gs.unbind(document,"mousemove",s),gs.unbind(document,"mouseup",c),r=null,WH()}function p(m){if(!f6(m.target,".djs-draggable")){var g=m.button;if(!(g>=2||m.ctrlKey||m.shiftKey||m.altKey))return r={button:g,start:T6(m)},gs.bind(document,"mousemove",s),gs.bind(document,"mouseup",c),!0}}this.isActive=function(){return!!r}}kS.$inject=["eventBus","canvas"];function XH(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const _d={__init__:["moveCanvas"],moveCanvas:["type",kS]};var ZH=new Yy("tt");function $H(e){var n=Hi('<div class="djs-tooltip-container" />');return Nn(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function qH(e,n,r){Nn(e,{left:n+"px",top:r+"px"})}function c0(e,n){e.style.display=n===!1?"none":""}var SS="djs-tooltip",u0="."+SS;function ii(e,n){this._eventBus=e,this._canvas=n,this._ids=ZH,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=$H(n.getContainer());var r=this;Yl.bind(this._tooltipRoot,u0,"mousedown",function(a){a.stopPropagation()}),Yl.bind(this._tooltipRoot,u0,"mouseover",function(a){r.trigger("mouseover",a)}),Yl.bind(this._tooltipRoot,u0,"mouseout",function(a){r.trigger("mouseout",a)}),this._init()}ii.$inject=["eventBus","canvas"],ii.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},ii.prototype.trigger=function(e,n){var r=n.delegateTarget||n.target,a=this.get(Ly(r,"data-tooltip-id"));!a||(e==="mouseover"&&a.timeout&&this.clearTimeout(a),e==="mouseout"&&a.timeout&&(a.timeout=1e3,this.setTimeout(a)))},ii.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},ii.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},ii.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)}},ii.prototype.remove=function(e){var n=this.get(e);n&&(Wl(n.html),Wl(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},ii.prototype.show=function(){c0(this._tooltipRoot)},ii.prototype.hide=function(){c0(this._tooltipRoot,!1)},ii.prototype._updateRoot=function(e){var n=e.scale||1,r=e.scale||1,a="matrix("+n+",0,0,"+r+","+-1*e.x*n+","+-1*e.y*r+")";this._tooltipRoot.style.transform=a,this._tooltipRoot.style["-ms-transform"]=a},ii.prototype._addTooltip=function(e){var n=e.id,r=e.html,a,s=this._tooltipRoot;r.get&&r.constructor.prototype.jquery&&(r=r.get(0)),Dr(r)&&(r=Hi(r)),a=Hi('<div data-tooltip-id="'+n+'" class="'+SS+'">'),Nn(a,{position:"absolute"}),a.appendChild(r),e.type&&ms(a).add("djs-tooltip-"+e.type),e.className&&ms(a).add(e.className),e.htmlContainer=a,s.appendChild(a),this._tooltips[n]=e,this._updateTooltip(e)},ii.prototype._updateTooltip=function(e){var n=e.position,r=e.htmlContainer;qH(r,n.x,n.y)},ii.prototype._updateTooltipVisibilty=function(e){We(this._tooltips,function(n){var r=n.show,a=n.htmlContainer,s=!0;r&&((r.minZoom>e.scale||r.maxZoom<e.scale)&&(s=!1),c0(a,s))})},ii.prototype._init=function(){var e=this;function n(r){e._updateRoot(r),e._updateTooltipVisibilty(r),e.show()}this._eventBus.on("canvas.viewbox.changing",function(r){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(r){n(r.viewbox)})};const d0={__init__:["tooltips"],tooltips:["type",ii]};var eV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-card",{class:(e.item||{}).endTime?"":"cur-process"},[e.item.historyActivityType=="endEvent"?r("p",[r("b",[e._v("\u6D41\u7A0B\u5DF2\u7ED3\u675F")])]):e.item.historyActivityType=="startEvent"?r("p",[r("span",{staticClass:"flow-name"},[e._v(e._s(e.item.assigneeName||(e.item.comments&&e.item.comments.length>0?e.my(e.item):"")))]),e._v(" \u5728 "),r("span",{staticClass:"flow-time"},[e._v(e._s(e.item.createTime))]),e._v(" \u53D1\u8D77\u4E86\u6D41\u7A0B ")]):r("p",[r("span",{staticClass:"flow-name"},[e._v(e._s(e.item.assigneeName||(e.item.comments&&e.item.comments.length>0?e.my(e.item):"")))]),e._v(" \u5728 "),r("span",{staticClass:"flow-time"},[e._v(e._s(e.item.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),r("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?r("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 r("p",{key:s},[s<1?[r("span",{class:["comment-type",e.item.class]},[e._v(e._s(e.commentMap[a.type]||a.type))]),r("span",{staticClass:"comment-user"},[e._v(e._s(a.userId))]),e._v(": "),r("span",[e._v(" "+e._s(a.fullMessage)+" ")]),e.item.comments.filter(function(c){return c.action==="AddComment"}).length>1?r("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),r("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),r("el-icon",[e.isFlag?r("el-icon-arrow-up"):r("el-icon-arrow-down")],1)],1):e._e(),a.time&&e.isFlag?r("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(a.time))]):e._e()]:e._e(),s>0&&e.isFlag?[r("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[a.type]||a.type))]),r("span",{staticClass:"comment-user"},[e._v(e._s(a.userId))]),e._v(": "),r("span",[e._v(" "+e._s(a.fullMessage)+" ")]),a.time?r("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?[r("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[r("span",[e._v("\u7B7E\u5B57: ")]),r("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[r("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?[r("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[r("span",[e._v("\u9644\u4EF6: ")]),r("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[r("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&&e.item.historyActivityType!="startEvent"?r("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(e.item.endTime))]):e._e()],2)},tV=[];const xX="",nV={name:"nf-flow",props:{item:{type:Object,default:()=>({})},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Sy,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:{my(e){return e.comments[e.comments.length-1].userId||""},handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},DS={};var iV=rn(nV,eV,tV,!1,rV,"598546f3",null,null);function rV(e){for(let n in DS)this[n]=DS[n]}const aV=function(){return iV.exports}();var oV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"bpmnnd-box"},[r("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"}},[r("div",{staticClass:"bpmnd-detail"},[r("div",{staticClass:"bpmnd-top"},[e._v(" "+e._s(e.curName||"\u8282\u70B9\u540D\u79F0")+" ")]),r("div",{staticClass:"bpmnd-body"},e._l(e.getColors(e.curData),function(a){return r("div",{staticClass:"bpmnd-cur"},[r("processFlowItem",{attrs:{flowList:e.curData,item:a}})],1)}),0)])])],1)},sV=[];const wX="",lV={components:{processFlowItem:aV},data(){return{getColors:Sy,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 r=n.filter(a=>a.historyActivityType=="userTask");this.curData=r.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}}},BS={};var cV=rn(lV,oV,sV,!1,uV,"01478349",null,null);function uV(e){for(let n in BS)this[n]=BS[n]}const dV=function(){return cV.exports}();var fV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{ref:"container",class:["bpmn-look",e.preview?"bpmn-look-preview":""],on:{wheel:e.handleWheel}},[r("bpmnNodeDetail",{ref:"bpmnNodeDetailRef",on:{close:e.closeDetail}})],1)},pV=[];const EX="",hV={name:"bpmn-look",components:{bpmnNodeDetail:dV},props:{preview:{type:Boolean,default:!1},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={},r="";try{n=await api.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(r=n.data)}catch(a){console.error(a)}return r},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(ec)=="[object Function]"?ec:ec.default,n=Object.prototype.toString.call(d0)=="[object Object]"?d0:d0.default,r=Object.prototype.toString.call(_d)=="[object Object]"?_d:_d.default;Object.prototype.toString.call(_d),this.viewer=new e({container:this.$refs.container,additionalModules:[n,r]}),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("fit-viewport","auto")},setNodeColor(e){const n=this.viewer.get("canvas"),r=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=r.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=oj(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()}},IS={};var mV=rn(hV,fV,pV,!1,gV,"3d46faae",null,null);function gV(e){for(let n in IS)this[n]=IS[n]}const OS=function(){return mV.exports}();var AV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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():[r("div",{ref:"baseTabs",staticClass:"tabs"},[r("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 r("el-tab-pane",{key:s,attrs:{label:a.name,name:a.slot||a.name,item:a}},[a.name=="\u57FA\u672C\u4FE1\u606F"&&!a.slot?[r("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?[r("div",{staticClass:"view-node-info",on:{click:e.getNodeList}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]),e.trackUrl?r("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?r("bpmnLook",{attrs:{approvalData:e.processData.flow,diagram:e.processData.process.xml}}):r("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?[r("processFlow",{attrs:{isActive:!!(e.processData.historyFlow&&e.processData.historyFlow.length>0),"flow-list":e.formatFlow(e.processData.flow)}}),e.processData.historyFlow&&e.processData.historyFlow.length>0?e._l(e.processData.historyFlow,function(c){return r("processFlow",{attrs:{isHistory:!0,"flow-list":e.formatFlow(c)}})}):e._e()]:r("div",{staticStyle:{height:"100px",display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6570\u636E ")])]:[e.activeName==a.name?r("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?r("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?r("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?r("el-dropdown",{attrs:{placement:"top-start",trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[r("el-dropdown-menu",e._l(e.absoluteBtns.inside,function(a,s){return r("el-dropdown-item",{key:a.name+s,nativeOn:{click:function(c){return function(){a.click(),e.aftClickBtn=a}.apply(null,arguments)}}},[r("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)},[r("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small"}},[e._v(" \u66F4\u591A ")])],1):e._e(),e._l(e.absoluteBtns.outside,function(a){return r("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():r("div"),r("div",{staticClass:"dialog"},[r("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[r("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")]),r("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"}},[r("div",{ref:"obRef",staticClass:"operation-box"},[e.dialogVisibleOperation?r(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?r("el-form",{attrs:{"label-width":"120px","status-icon":"",rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9644\u4EF6",prop:e.attachRule.required?"attach":""}},[r("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)]),r("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"}},[r("el-form",{ref:"form",staticClass:"task",attrs:{"label-width":"100px"}},[r("el-form-item",{attrs:{label:"\u8BF7\u9009\u62E9\uFF1A",prop:"content"}},[r("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 r("el-radio",{key:a.nodeId,attrs:{label:a.taskId,border:""}},[e._v(e._s(a.nodeName))])}),1)],1)],1),r("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:e.onCheckSure}},[e._v("\u786E\u5B9A")])],1)],1),r("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"}},[r("el-table",{staticClass:"process-table",attrs:{data:e.filterFlow(e.processData.flow),border:"","header-row-style":e.headerRowStyle}},[r("el-table-column",{attrs:{label:"\u5E8F\u53F7",type:"index",width:"60px",align:"center"}}),r("el-table-column",{attrs:{prop:"historyActivityName",label:"\u8282\u70B9\u540D\u79F0","min-width":"130"}}),r("el-table-column",{attrs:{prop:"assigneeName",label:"\u5BA1\u6279\u4EBA","min-width":"80"}})],1)],1)],1)],2)},vV=[];const CX="",kX="",bV={components:{processBtns:rj,processFlow:fj,bpmnLook:OS,staffTree:Aa,...h4,ViewFile:dM,JyrFileUpload:rh},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:{},historyFlow:[]},currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},processData:{button:[],flow:[],form:{},process:{},historyFlow:[]},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:h4,Enum:Ep,isOperLoading:!1,isOperationHidden:!1,boxLoading:!1,rules:{attach:[{required:!0,trigger:"change"}]},noReload:!1,digitalSignatureList:[]}},mounted(){console.info("%c\u26A1"+wp.name+"%c v"+wp.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==_t.success&&(this.taskNode=n.data,Xe.pis.getProcessStatus(this.processId,this.absoluteTaskId).then(r=>{r.code==_t.success&&(this.processStatus=r.data,this.$emit("getStatus",r.data),this.absoluteTaskId?Xe.repository.getUserTaskModelCmd(this.absoluteTaskId).then(a=>{a.code==_t.success&&(this.taskObj=a.data,this.straightenBtns())}):this.straightenBtns())}))}),Xe.repository.getTrackUrl({processInstId:e,type:Lb.\u7535\u8111\u7AEF}).then(n=>{n.code==_t.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(r=>r.digitalSignature).map(r=>r.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=[];if(Object.prototype.toString.call(e)==="[object Object]")for(let a in e)n.push(...e[a]);else n=e;let r=(n||[]).map(a=>({...a,attachmentsFujian:(a.attachments||[]).filter(s=>s.type!="signature"),attachmentsQianzi:(a.attachments||[]).filter(s=>s.type=="signature")}));return r=r.reverse(),r},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 r=n.currentProcessOriginData[0],a=(r.currentName||"").split(","),s=(r.avatar||"").split(",");a=a.map((c,p)=>({realName:c,avatar:s[p]||"",phone:"",ancestorNames:[]})),n.currentMan=a,n.currentFirstNode=r,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 r=(this.processData.process||{}).taskId;this.taskObj.buttons=this.processData.button,this.absoluteTaskId=r,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 r=ky(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:r.intersection?1:0,userIds:r.userIds,postIds:r.postIds,deptIds:r.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(W_,e)}):this.showOperation(W_,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(o4,e)},handleUserSelect({type:e,checkType:n,name:r}){e=="transfer"?this.handleTransfer(r):e=="addInstance"&&this.handleAddInstance(r)},handleTransfer(e){this.showOperation(e4,e)},handleAddInstance(e){this.showOperation(Zk,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(l4,e)},handleTerminateProcess(){},handleCirculate(e){this.showOperation(p4,e)},handleWithdrawTask(e){this.handleRevoke()},findTargetHtml(e,n,r="parentElement"){if(!e)return null;if(e.classList.contains(n))return e;let a=e[r];if(!a)return null;if(r=="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 r="/";e.indexOf("\\")!=-1&&(r="\\");let a=e,s=a.lastIndexOf(r);return a.substr(s+1+n,a.length)},clickCustomButton(e){this.$emit("clickCustomButton",{name:e,processStatus:this.processStatus,setName:n=>{this.taskObj.buttons.map(r=>{r.label==e&&(r.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 r=n.data||{};n.code==200&&!n.data.evaluation&&(this.incomingConditionItemList=[],r.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=[],r.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.branches[0].id)),r=await this.getSelectFixData(r,e),this.nextTaskNode=r},async getNodeUser({deptId:e,intersection:n,userIds:r,postIds:a,deptIds:s}){return await Xe.user.getTaskAuditor({deptId:e,intersection:n,userIds:r,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 r=this.$refs.obRef;if(this.$refs,!r)return;let a=(m=r.getBoundingClientRect())==null?void 0:m.top,s=this.findTargetHtml(r,"el-dialog"),c=this.findTargetHtml(s,"el-dialog__footer","children"),p=window.innerHeight-((g=r.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 ad.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(r=>{n.push({id:r.id,name:this.fileNameLastof(r.name),size:r.fileSize,format:r.fileType,url:r.url,uploadTime:r.createTime,processInstId:this.operationParam.processInstId,taskInstId:this.operationParam.taskInstId})}),n=n.sort((r,a)=>qu(r.uploadTime).valueOf()>qu(a.uploadTime).valueOf())),this.$refs.operationRef&&this.$refs.operationRef.confirm(e,()=>{this.isOperLoading=!0},n)},operationSuccess(e=!0){ad.success("\u64CD\u4F5C\u6210\u529F"),this.dialogVisibleOperation=!1,e&&this.$emit("Complete"),this.isOperLoading=!1},operationFail(e=""){e&&ad.warning(e),this.isOperLoading=!1},async getSelectFixData(e,n){let r=JSON.parse(JSON.stringify(e));if(r.nodeType!="userTask"&&Array.isArray(r.branches))for(let a=0;a<r.branches.length;a++){let s=r.branches[a],c=s.nodeInfoDTO?s.nodeInfoDTO:s;try{c=await this.getSelectFixData(c,n)}catch(p){}s.nodeInfoDTO?s.nodeInfoDTO=c:s=c,r.branches[a]=s}else if(r.nodeType=="userTask"&&!r.setPersonnel){let a=ky(r),s;try{s=await this.getNodeUser({deptId:n,intersection:a.intersection?1:0,userIds:a.userIds,postIds:a.postIds,deptIds:a.deptIds}),s.code==_t.success}catch(c){}s.code==_t.success&&(r.userList=s.data)}return r},async getOutgoingProcessNode(e,n){let r=await Xe.repository.getOutgoingProcessNode(e,n);if(r.code==_t.success){if(r.data){for(let a=0;a<r.data.length;a++){let s=r.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)),r.data[a].type!="endEvent"&&(r.data[a].humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||r.data[a].humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&await Xe.repository.getParticipantsOfPerformerNames(e,[r.data[a].id]).then(c=>{r.data[a].routeTxt.userNames=c.data[r.data[a].id]})}r.data.length==0&&r.data.push({id:"",incomingConditionItemList:[],type:"endEvent",name:"\u7ED3\u675F\u4E8B\u4EF6"})}return r.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(){U3.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==_t.success&&(ad.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(()=>{})},handleReminders(){U3.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==_t.success&&(ad.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 r={outside:[],inside:[]};n.length>4?(r.outside=n.splice(n.length-4,n.length-1),r.inside=n):r.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=r,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,r,a="";switch(this.operationLabel){case"\u9000\u56DE":r=e.find(c=>c.name=="otherButtonAnnexList"),a=r?r.value:"",a&&(n=!0);break;case"\u901A\u8FC7":case"\u529E\u7406":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u5904\u7406":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u540C\u610F":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u62D2\u7EDD":r=e.find(c=>c.name=="otherButtonAnnexList"),a=r?r.value:"";break;case"\u52A0\u7B7E":r=e.find(c=>c.name=="counterSignButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u8F6C\u529E":r=e.find(c=>c.name=="delegateTaskButtonAnnex"),a=r?r.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}}},TS={};var _V=rn(bV,AV,vV,!1,yV,"7448d8a2",null,null);function yV(e){for(let n in TS)this[n]=TS[n]}const NS=function(){return _V.exports}(),xV=async(e,n)=>{const r=n||{},a=r.dragElement||(r.targetClassName?MS(e,r.targetClassName):e.querySelector(".el-dialog"));let s;new IntersectionObserver(v=>{s=v[0].isIntersecting,s||F()}).observe(a);const p=r.dragHeader||".el-dialog__header",m=a.querySelector(p),g=r.restrictElement||document.body;let y;g?y=g.getBoundingClientRect():y={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};let O=!1,S,N,_;const B=()=>{if(m){m.style.cursor="move",m.style["user-select"]="none",m.onmousedown=w=>{O=!0;const k=a.style.transform.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);S=k?parseFloat(k[1]):0,N=k?parseFloat(k[2]):0,document.addEventListener("mousemove",R),document.addEventListener("mouseup",T)};const v=a.getBoundingClientRect();_={"+x":y.right-v.right,"-x":y.left-v.left,"+y":y.bottom-v.bottom,"-y":y.top-v.top}}},j=()=>{O=!1,m.style.cursor="auto",m.style["user-select"]="auto",m.onmousedown=v=>{}};x.watch(r.dialogConfig,(v,w)=>{v.fullScreen&&(j(),F())}),B();const R=v=>{if(!O)return;v.stopPropagation(),v.preventDefault();let w=v.movementX+S,k=v.movementY+N;w>=0?w=w>=_["+x"]?_["+x"]:w:w=w<=_["-x"]?_["-x"]:w,k>=0?k=k>=_["+y"]?_["+y"]:k:k=k<=_["-y"]?_["-y"]:k,a.style.transform=`translate(${w}px, ${k}px)`,S=w,N=k},T=()=>{O=!1,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",T),a.style["user-select"]="auto"},F=()=>{a.style.transform="none"}};function MS(e,n){if(!e)return null;if(e.classList.contains(n))return e;let r=e.parentElement;return r?MS(r,n):null}const wV="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 EV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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[r("div",{staticClass:"dialog-header"},[e._t("title",function(){return[r("div",[e._v("\u6D41\u7A0B\u4FE1\u606F")])]}),r("div",{staticClass:"dialog-icon"},[r("span",{on:{click:function(a){e.fullscreen=!e.fullscreen}}},[r("img",{attrs:{src:wV,alt:""}})])])],2)]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[e.showProcess?r("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),[r("div",{staticClass:"processDialogMain"},[e._t("default")],2)]):e._e()],1)},CV=[];const SX="",kV={components:{process:NS},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&&xV(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)}}},FS={};var SV=rn(kV,EV,CV,!1,DV,null,null,null);function DV(e){for(let n in FS)this[n]=FS[n]}const BV=function(){return SV.exports}();var IV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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[r("el-button",{attrs:{loading:e.btnLoading,type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),r("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"}},[r("el-form",{staticClass:"create-form",attrs:{"label-width":"200px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u5F53\u524D\u6D41\u7A0B",size:"medium",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D41\u7A0B"}]}},[e.processDefList.length>1?r("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 r("el-option",{key:s,attrs:{label:a.name,value:a.id,disabled:a.disabled}})}),1):r("b",{staticClass:"process-def-name"},[e._v(" "+e._s(e.processDefName)+" ")]),e.processDefId?r("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():r("el-form-item",{attrs:{size:"medium",label:"\u9009\u62E9\u90E8\u95E8",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8"}]}},[r("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?r("div",{staticClass:"node-list"},[e.processList&&e.processList.length>0?r("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[r("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?r("div",{staticClass:"user-task-split"}):e._e()]})]:e._e()],2):e._e()],1)],1),r("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?r("bpmnLook",{ref:"PreviewRef",attrs:{preview:!0,diagram:e.processXml}}):e._e()],1),r("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}},[r("div",{staticStyle:{"margin-left":"20px"}},[r("div",{staticStyle:{"margin-left":"40px","margin-bottom":"20px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),r("el-timeline",e._l(e.flowForecastData.processBudgetModelList,function(a,s){return r("el-timeline-item",{key:s,attrs:{icon:"el-icon-check",color:s==0?"#009800":a.color,timestamp:a.title,placement:"top"}},[r("div",[r("span",{staticStyle:{color:"#1389FF"}},[r("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u53D1\u8D77\u4EBA\uFF1A"+e._s(a.createUser)+" ")]),r("span",{staticStyle:{color:"#009800","margin-left":"50px"}},[r("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(a.excutor)+" ")])])])}),1)],1)])],1)},OV=[];const DX="",BX="";var xs=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{xs=e});const TV={components:{userTask:Y_,bpmnLook:OS},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"+wp.name+"%c v"+wp.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={},r="";try{n=await Xe.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(r=n.data)}catch(a){console.error(a)}return r},async viewFlowChart(){this.flowChartVisible=!0,this.processXml=await this.getXml(this.processDefId),!Date.now()&&Xe.repository.getDiagramUrl({processDefId:this.processDefId,diagramType:1,type:Lb.\u7535\u8111\u7AEF}).then(e=>{e.code==_t.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,r)=>{Xe.pis.getProcessForecast({processDefId:this.processDefId,...e}).then(a=>{this.btnLoading=!1,a.code==_t.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"),r(a)})})},flowForecastClose(){this.flowForecastProcessInstId?Xe.pis.deleteProcessById(this.flowForecastProcessInstId).then(e=>{e.code==_t.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==_t.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,r)=>{if(!Object.values(this._multiNodeParticipant).some(s=>s&&Array.isArray(s)&&s.length>0))return xs.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==_t.success?(this.flag=!1,n(s)):xs.error(s.msg)}).catch(s=>{this.btnLoading=!1,xs.error("\u6D41\u7A0B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),r(s)})})},revivalFlow(e={},n=!1,r="\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,r,"",n,this._multiNodeParticipant).then(p=>{this.btnLoading=!1,p.code==_t.success?(this.flag=!1,a(p)):xs.error(p.msg)}).catch(p=>{this.btnLoading=!1,xs.error("\u6D41\u7A0B\u590D\u6D3B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s(p)})})},Show(e,n="",r=!1){return this.processList=[],this.revival=r,this.processDefId=e,n&&Xe.repository.getProcessDefList(n,"",this.subjectId||"").then(a=>{a.code==_t.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==_t.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,r)=>{this.cancelCallBack=r,Xe.repository.getProcessDefListNew(e).then(a=>{a.code==_t.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==_t.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 r=ky(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:r.intersection?1:0,userIds:r.userIds,postIds:r.postIds,deptIds:r.deptIds})}catch(s){}if(a.code==_t.success){const s=this.processList[n];s.userList=a.data,this.processList[n]=s}})},async getNodeUser({deptId:e,intersection:n,userIds:r,postIds:a,deptIds:s}){return await Xe.user.getTaskAuditor({deptId:e,intersection:n,userIds:r,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,r)=>{e.length==1?(this.processDefId=e[0].id,this.processDefName=e[0].name,this.cancelCallBack=r,Xe.repository.getFirstProcessNode(this.processDefId).then(a=>{a.code==_t.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 r={};try{r=await Xe.tis.getTaskModelDetail(e?{processInstId:n,taskId:e}:{processInstId:n})}catch{r={}}return r.code==200,r},async revivalShow({processInstId:e,businessId:n,taskId:r,deptId:a}){this.processInstId=e,this.hasDeptId=!!a;let s=await this.getProcessInfo({taskId:r,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 xs.warning("\u8BF7\u9009\u62E9\u6D41\u7A0B"),!1;let e={},n={};for(let r in this.userTaskListData){let a=this.userTaskListData[r],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()}}},PS={};var NV=rn(TV,IV,OV,!1,MV,"b3f62330",null,null);function MV(e){for(let n in PS)this[n]=PS[n]}const FV=function(){return NV.exports}();var PV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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[r("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),r("el-button",{on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}])},[r("el-form",{attrs:{"label-width":"100px","status-icon":""}},[e.isUserTask?e._l(e.processList,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{processNode:a}})}):e._e()],2)],1)],1)},RV=[],RS=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{RS=e});const jV={components:{userTask:Y_},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,r)=>{this.cancelCallBack=r,Xe.repository.getFirstProcessNode(e).then(a=>{a.code==_t.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 RS.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={},r={};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},r={...r,...p.vars},e={...e,multiNodeParticipant:n,vars:r}}}this.callbacak&&this.callbacak(e),this.flag=!1},onClickCancel(){this.flag=!1,this.cancelCallBack&&this.cancelCallBack()}}},jS={};var LV=rn(jV,PV,RV,!1,zV,null,null,null);function zV(e){for(let n in jS)this[n]=jS[n]}const QV=function(){return LV.exports}();Promise.resolve().then(()=>xG);var f0={exports:{}},Ue={},p0={exports:{}},LS;function zS(){return LS||(LS=1,function(e){(function(n){var r={},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 S(w,k){for(var Q=[],M=0,H=w.length;M<H;M++)Q.push(w[M].substr(0,k));return Q}function N(w){return function(k,Q,M){var H=M[w].indexOf(Q.charAt(0).toUpperCase()+Q.substr(1).toLowerCase());~H&&(k.month=H)}}function _(w,k){for(w=String(w),k=k||2;w.length<k;)w="0"+w;return w}var B=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],j=["January","February","March","April","May","June","July","August","September","October","November","December"],R=S(j,3),T=S(B,3);r.i18n={dayNamesShort:T,dayNames:B,monthNamesShort:R,monthNames:j,amPm:["am","pm"],DoFn:function(k){return k+["th","st","nd","rd"][k%10>3?0:(k-k%10!==10)*k%10]}};var F={D:function(k){return k.getDay()},DD:function(k){return _(k.getDay())},Do:function(k,Q){return Q.DoFn(k.getDate())},d:function(k){return k.getDate()},dd:function(k){return _(k.getDate())},ddd:function(k,Q){return Q.dayNamesShort[k.getDay()]},dddd:function(k,Q){return Q.dayNames[k.getDay()]},M:function(k){return k.getMonth()+1},MM:function(k){return _(k.getMonth()+1)},MMM:function(k,Q){return Q.monthNamesShort[k.getMonth()]},MMMM:function(k,Q){return Q.monthNames[k.getMonth()]},yy:function(k){return _(String(k.getFullYear()),4).substr(2)},yyyy:function(k){return _(k.getFullYear(),4)},h:function(k){return k.getHours()%12||12},hh:function(k){return _(k.getHours()%12||12)},H:function(k){return k.getHours()},HH:function(k){return _(k.getHours())},m:function(k){return k.getMinutes()},mm:function(k){return _(k.getMinutes())},s:function(k){return k.getSeconds()},ss:function(k){return _(k.getSeconds())},S:function(k){return Math.round(k.getMilliseconds()/100)},SS:function(k){return _(Math.round(k.getMilliseconds()/10),2)},SSS:function(k){return _(k.getMilliseconds(),3)},a:function(k,Q){return k.getHours()<12?Q.amPm[0]:Q.amPm[1]},A:function(k,Q){return k.getHours()<12?Q.amPm[0].toUpperCase():Q.amPm[1].toUpperCase()},ZZ:function(k){var Q=k.getTimezoneOffset();return(Q>0?"-":"+")+_(Math.floor(Math.abs(Q)/60)*100+Math.abs(Q)%60,4)}},v={d:[s,function(w,k){w.day=k}],Do:[s+m,function(w,k){w.day=parseInt(k,10)}],M:[s,function(w,k){w.month=k-1}],yy:[s,function(w,k){var Q=new Date,M=+(""+Q.getFullYear()).substr(0,2);w.year=""+(k>68?M-1:M)+k}],h:[s,function(w,k){w.hour=k}],m:[s,function(w,k){w.minute=k}],s:[s,function(w,k){w.second=k}],yyyy:[p,function(w,k){w.year=k}],S:["\\d",function(w,k){w.millisecond=k*100}],SS:["\\d{2}",function(w,k){w.millisecond=k*10}],SSS:[c,function(w,k){w.millisecond=k}],D:[s,y],ddd:[m,y],MMM:[m,N("monthNamesShort")],MMMM:[m,N("monthNames")],a:[m,function(w,k,Q){var M=k.toLowerCase();M===Q.amPm[0]?w.isPm=!1:M===Q.amPm[1]&&(w.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(w,k){var Q=(k+"").match(/([+-]|\d\d)/gi),M;Q&&(M=+(Q[1]*60)+parseInt(Q[2],10),w.timezoneOffset=Q[0]==="+"?M:-M)}]};v.dd=v.d,v.dddd=v.ddd,v.DD=v.D,v.mm=v.m,v.hh=v.H=v.HH=v.h,v.MM=v.M,v.ss=v.s,v.A=v.a,r.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"},r.format=function(w,k,Q){var M=Q||r.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");k=r.masks[k]||k||r.masks.default;var H=[];return k=k.replace(g,function(ne,re){return H.push(re),"@@@"}),k=k.replace(a,function(ne){return ne in F?F[ne](w,M):ne.slice(1,ne.length-1)}),k.replace(/@@@/g,function(){return H.shift()})},r.parse=function(w,k,Q){var M=Q||r.i18n;if(typeof k!="string")throw new Error("Invalid format in fecha.parse");if(k=r.masks[k]||k,w.length>1e3)return null;var H={},ne=[],re=[];k=k.replace(g,function(_e,W){return re.push(W),"@@@"});var de=O(k).replace(a,function(_e){if(v[_e]){var W=v[_e];return ne.push(W[1]),"("+W[0]+")"}return _e});de=de.replace(/@@@/g,function(){return re.shift()});var me=w.match(new RegExp(de,"i"));if(!me)return null;for(var pe=1;pe<me.length;pe++)ne[pe-1](H,me[pe],M);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=r:n.fecha=r})(void 0)}(p0)),p0.exports}var $r={},Yh={},QS;function HV(){return QS||(QS=1,Yh.__esModule=!0,Yh.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"}}}),Yh}var h0,HS;function VV(){if(HS)return h0;HS=1;var e=function(_){return n(_)&&!r(_)};function n(N){return!!N&&typeof N=="object"}function r(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 B=_&&_.clone===!0;return B&&e(N)?O(p(N),N,_):N}function g(N,_,B){var j=N.slice();return _.forEach(function(R,T){typeof j[T]>"u"?j[T]=m(R,B):e(R)?j[T]=O(N[T],R,B):N.indexOf(R)===-1&&j.push(m(R,B))}),j}function y(N,_,B){var j={};return e(N)&&Object.keys(N).forEach(function(R){j[R]=m(N[R],B)}),Object.keys(_).forEach(function(R){!e(_[R])||!N[R]?j[R]=m(_[R],B):j[R]=O(N[R],_[R],B)}),j}function O(N,_,B){var j=Array.isArray(_),R=Array.isArray(N),T=B||{arrayMerge:g},F=j===R;if(F)if(j){var v=T.arrayMerge||g;return v(N,_,B)}else return y(N,_,B);else return m(_,B)}O.all=function(_,B){if(!Array.isArray(_)||_.length<2)throw new Error("first argument should be an array with at least two elements");return _.reduce(function(j,R){return O(j,R,B)})};var S=O;return h0=S,h0}var Wh={},ct={},Wi={},VS;function US(){if(VS)return Wi;VS=1,Wi.__esModule=!0,Wi.isDefined=Wi.isUndefined=Wi.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};Wi.isString=s,Wi.isObject=c,Wi.isHtmlElement=p;var n=Ri.default,r=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"&&(r.default.prototype.$isServer||typeof document.childNodes!="function")&&(Wi.isFunction=m=function(y){return typeof y=="function"||!1}),Wi.isFunction=m,Wi.isUndefined=function(y){return y===void 0},Wi.isDefined=function(y){return y!=null},Wi}var YS;function Ir(){if(YS)return ct;YS=1,ct.__esModule=!0,ct.isMac=ct.isEmpty=ct.isEqual=ct.arrayEquals=ct.looseEqual=ct.capitalize=ct.kebabCase=ct.autoprefixer=ct.isFirefox=ct.isEdge=ct.isIE=ct.coerceTruthyValueToArray=ct.arrayFind=ct.arrayFindIndex=ct.escapeRegexpString=ct.valueEquals=ct.generateId=ct.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};ct.noop=p,ct.hasOwn=m,ct.toObject=y,ct.getPropByPath=O,ct.rafThrottle=j,ct.objToArray=R;var n=Ri.default,r=s(n),a=US();function s(T){return T&&T.__esModule?T:{default:T}}var c=Object.prototype.hasOwnProperty;function p(){}function m(T,F){return c.call(T,F)}function g(T,F){for(var v in F)T[v]=F[v];return T}function y(T){for(var F={},v=0;v<T.length;v++)T[v]&&g(F,T[v]);return F}ct.getValueByPath=function(F,v){v=v||"";for(var w=v.split("."),k=F,Q=null,M=0,H=w.length;M<H;M++){var ne=w[M];if(!k)break;if(M===H-1){Q=k[ne];break}k=k[ne]}return Q};function O(T,F,v){var w=T;F=F.replace(/\[(\w+)\]/g,".$1"),F=F.replace(/^\./,"");for(var k=F.split("."),Q=0,M=k.length;Q<M-1&&!(!w&&!v);++Q){var H=k[Q];if(H in w)w=w[H];else{if(v)throw new Error("please transfer a valid prop path to form item!");break}}return{o:w,k:k[Q],v:w?w[k[Q]]:null}}ct.generateId=function(){return Math.floor(Math.random()*1e4)},ct.valueEquals=function(F,v){if(F===v)return!0;if(!(F instanceof Array)||!(v instanceof Array)||F.length!==v.length)return!1;for(var w=0;w!==F.length;++w)if(F[w]!==v[w])return!1;return!0},ct.escapeRegexpString=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String(F).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var S=ct.arrayFindIndex=function(F,v){for(var w=0;w!==F.length;++w)if(v(F[w]))return w;return-1};ct.arrayFind=function(F,v){var w=S(F,v);return w!==-1?F[w]:void 0},ct.coerceTruthyValueToArray=function(F){return Array.isArray(F)?F:F?[F]:[]},ct.isIE=function(){return!r.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},ct.isEdge=function(){return!r.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},ct.isFirefox=function(){return!r.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},ct.autoprefixer=function(F){if((typeof F>"u"?"undefined":e(F))!=="object")return F;var v=["transform","transition","animation"],w=["ms-","webkit-"];return v.forEach(function(k){var Q=F[k];k&&Q&&w.forEach(function(M){F[M+k]=Q})}),F},ct.kebabCase=function(F){var v=/([^-])([A-Z])/g;return F.replace(v,"$1-$2").replace(v,"$1-$2").toLowerCase()},ct.capitalize=function(F){return(0,a.isString)(F)?F.charAt(0).toUpperCase()+F.slice(1):F};var N=ct.looseEqual=function(F,v){var w=(0,a.isObject)(F),k=(0,a.isObject)(v);return w&&k?JSON.stringify(F)===JSON.stringify(v):!w&&!k?String(F)===String(v):!1},_=ct.arrayEquals=function(F,v){if(F=F||[],v=v||[],F.length!==v.length)return!1;for(var w=0;w<F.length;w++)if(!N(F[w],v[w]))return!1;return!0};ct.isEqual=function(F,v){return Array.isArray(F)&&Array.isArray(v)?_(F,v):N(F,v)};var B=ct.isEmpty=function(F){if(F==null)return!0;if(typeof F=="boolean")return!1;if(typeof F=="number")return!F;if(F instanceof Error)return F.message==="";switch(Object.prototype.toString.call(F)){case"[object String]":case"[object Array]":return!F.length;case"[object File]":case"[object Map]":case"[object Set]":return!F.size;case"[object Object]":return!Object.keys(F).length}return!1};function j(T){var F=!1;return function(){for(var v=this,w=arguments.length,k=Array(w),Q=0;Q<w;Q++)k[Q]=arguments[Q];F||(F=!0,window.requestAnimationFrame(function(M){T.apply(v,k),F=!1}))}}function R(T){return Array.isArray(T)?T:B(T)?[]:[T]}return ct.isMac=function(){return!r.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)},ct}var WS;function UV(){if(WS)return Wh;WS=1,Wh.__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};Wh.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(r,function(y,O,S,N){var _=void 0;return c[N-1]==="{"&&c[N+y.length]==="}"?S:(_=(0,n.hasOwn)(m,S)?m[S]:null,_==null?"":_)})}return s};var n=Ir(),r=/(%|)\{([0-9a-zA-Z_]+)\}/g;return Wh}var GS;function m0(){if(GS)return $r;GS=1,$r.__esModule=!0,$r.i18n=$r.use=$r.t=void 0;var e=HV(),n=g(e),r=Ri.default,a=g(r),s=VV(),c=g(s),p=UV(),m=g(p);function g(R){return R&&R.__esModule?R:{default:R}}var y=(0,m.default)(a.default),O=n.default,S=!1,N=function(){var T=Object.getPrototypeOf(this||a.default).$t;if(typeof T=="function"&&!!a.default.locale)return S||(S=!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,F){var v=N.apply(this,arguments);if(v!=null)return v;for(var w=T.split("."),k=O,Q=0,M=w.length;Q<M;Q++){var H=w[Q];if(v=k[H],Q===M-1)return y(v,F);if(!v)return"";k=v}return""},B=$r.use=function(T){O=T||O},j=$r.i18n=function(T){N=T||N};return $r.default={use:B,t:_,i18n:j},$r}var JS;function YV(){if(JS)return Ue;JS=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=zS(),n=a(e),r=m0();function a(v){return v&&v.__esModule?v:{default:v}}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,k){for(var Q=[],M=w;M<=k;M++)Q.push(M);return Q},m=Ue.getI18nSettings=function(){return{dayNamesShort:s.map(function(w){return(0,r.t)("el.datepicker.weeks."+w)}),dayNames:s.map(function(w){return(0,r.t)("el.datepicker.weeks."+w)}),monthNamesShort:c.map(function(w){return(0,r.t)("el.datepicker.months."+w)}),monthNames:c.map(function(w,k){return(0,r.t)("el.datepicker.month"+(k+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,k){return w=g(w),w?n.default.format(w,k||"yyyy-MM-dd",m()):""};var O=Ue.parseDate=function(w,k){return n.default.parse(w,k||"yyyy-MM-dd",m())},S=Ue.getDayCountOfMonth=function(w,k){return isNaN(+k)?31:new Date(w,+k+1,0).getDate()};Ue.getDayCountOfYear=function(w){var k=w%400===0||w%100!==0&&w%4===0;return k?366:365},Ue.getFirstDayOfMonth=function(w){var k=new Date(w.getTime());return k.setDate(1),k.getDay()};var N=Ue.prevDate=function(w){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()-k)};Ue.nextDate=function(w){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()+k)},Ue.getStartDateOfMonth=function(w,k){var Q=new Date(w,k,1),M=Q.getDay();return M===0?N(Q,7):N(Q,M)},Ue.getWeekNumber=function(w){if(!y(w))return null;var k=new Date(w.getTime());k.setHours(0,0,0,0),k.setDate(k.getDate()+3-(k.getDay()+6)%7);var Q=new Date(k.getFullYear(),0,4);return 1+Math.round(((k.getTime()-Q.getTime())/864e5-3+(Q.getDay()+6)%7)/7)},Ue.getRangeHours=function(w){var k=[],Q=[];if((w||[]).forEach(function(ne){var re=ne.map(function(de){return de.getHours()});Q=Q.concat(p(re[0],re[1]))}),Q.length)for(var M=0;M<24;M++)k[M]=Q.indexOf(M)===-1;else for(var H=0;H<24;H++)k[H]=!1;return k},Ue.getPrevMonthLastDays=function(w,k){if(k<=0)return[];var Q=new Date(w.getTime());Q.setDate(0);var M=Q.getDate();return B(k).map(function(H,ne){return M-(k-ne-1)})},Ue.getMonthDays=function(w){var k=new Date(w.getFullYear(),w.getMonth()+1,0),Q=k.getDate();return B(Q).map(function(M,H){return H+1})};function _(v,w,k,Q){for(var M=w;M<k;M++)v[M]=Q}Ue.getRangeMinutes=function(w,k){var Q=new Array(60);return w.length>0?w.forEach(function(M){var H=M[0],ne=M[1],re=H.getHours(),de=H.getMinutes(),me=ne.getHours(),pe=ne.getMinutes();re===k&&me!==k?_(Q,de,60,!0):re===k&&me===k?_(Q,de,pe+1,!0):re!==k&&me===k?_(Q,0,pe+1,!0):re<k&&me>k&&_(Q,0,60,!0)}):_(Q,0,60,!0),Q};var B=Ue.range=function(w){return Array.apply(null,{length:w}).map(function(k,Q){return Q})},j=Ue.modifyDate=function(w,k,Q,M){return new Date(k,Q,M,w.getHours(),w.getMinutes(),w.getSeconds(),w.getMilliseconds())},R=Ue.modifyTime=function(w,k,Q,M){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),k,Q,M,w.getMilliseconds())};Ue.modifyWithTimeString=function(w,k){return w==null||!k?w:(k=O(k,"HH:mm:ss"),R(w,k.getHours(),k.getMinutes(),k.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,k){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(k.length===0)return w;var M=function(Se){return n.default.parse(n.default.format(Se,Q),Q)},H=M(w),ne=k.map(function(pe){return pe.map(M)});if(ne.some(function(pe){return H>=pe[0]&&H<=pe[1]}))return w;var re=ne[0][0],de=ne[0][0];ne.forEach(function(pe){re=new Date(Math.min(pe[0],re)),de=new Date(Math.max(pe[1],re))});var me=H<re?re:de;return j(me,w.getFullYear(),w.getMonth(),w.getDate())};Ue.timeWithinRange=function(w,k,Q){var M=T(w,k,Q);return M.getTime()===w.getTime()};var F=Ue.changeYearMonthAndClampDate=function(w,k,Q){var M=Math.min(w.getDate(),S(k,Q));return j(w,k,Q,M)};return Ue.prevMonth=function(w){var k=w.getFullYear(),Q=w.getMonth();return Q===0?F(w,k-1,11):F(w,k,Q-1)},Ue.nextMonth=function(w){var k=w.getFullYear(),Q=w.getMonth();return Q===11?F(w,k+1,0):F(w,k,Q+1)},Ue.prevYear=function(w){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Q=w.getFullYear(),M=w.getMonth();return F(w,Q-k,M)},Ue.nextYear=function(w){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Q=w.getFullYear(),M=w.getMonth();return F(w,Q+k,M)},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,k){return w.getMonth()===k.getMonth()&&w.getFullYear()===k.getFullYear()},Ue}var ln={},KS;function Ca(){if(KS)return ln;KS=1,ln.__esModule=!0,ln.isInContainer=ln.getScrollContainer=ln.isScroll=ln.getStyle=ln.once=ln.off=ln.on=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F};ln.hasClass=N,ln.addClass=_,ln.removeClass=B,ln.setStyle=R;var n=Ri.default,r=a(n);function a(F){return F&&F.__esModule?F:{default:F}}var s=r.default.prototype.$isServer,c=/([\:\-\_]+(.))/g,p=/^moz([A-Z])/,m=s?0:Number(document.documentMode),g=function(v){return(v||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},y=function(v){return v.replace(c,function(w,k,Q,M){return M?Q.toUpperCase():Q}).replace(p,"Moz$1")},O=ln.on=function(){return!s&&document.addEventListener?function(F,v,w){F&&v&&w&&F.addEventListener(v,w,!1)}:function(F,v,w){F&&v&&w&&F.attachEvent("on"+v,w)}}(),S=ln.off=function(){return!s&&document.removeEventListener?function(F,v,w){F&&v&&F.removeEventListener(v,w,!1)}:function(F,v,w){F&&v&&F.detachEvent("on"+v,w)}}();ln.once=function(v,w,k){var Q=function M(){k&&k.apply(this,arguments),S(v,w,M)};O(v,w,Q)};function N(F,v){if(!F||!v)return!1;if(v.indexOf(" ")!==-1)throw new Error("className should not contain space.");return F.classList?F.classList.contains(v):(" "+F.className+" ").indexOf(" "+v+" ")>-1}function _(F,v){if(!!F){for(var w=F.className,k=(v||"").split(" "),Q=0,M=k.length;Q<M;Q++){var H=k[Q];!H||(F.classList?F.classList.add(H):N(F,H)||(w+=" "+H))}F.classList||F.setAttribute("class",w)}}function B(F,v){if(!(!F||!v)){for(var w=v.split(" "),k=" "+F.className+" ",Q=0,M=w.length;Q<M;Q++){var H=w[Q];!H||(F.classList?F.classList.remove(H):N(F,H)&&(k=k.replace(" "+H+" "," ")))}F.classList||F.setAttribute("class",g(k))}}var j=ln.getStyle=m<9?function(F,v){if(!s){if(!F||!v)return null;v=y(v),v==="float"&&(v="styleFloat");try{switch(v){case"opacity":try{return F.filters.item("alpha").opacity/100}catch{return 1}default:return F.style[v]||F.currentStyle?F.currentStyle[v]:null}}catch{return F.style[v]}}}:function(F,v){if(!s){if(!F||!v)return null;v=y(v),v==="float"&&(v="cssFloat");try{var w=document.defaultView.getComputedStyle(F,"");return F.style[v]||w?w[v]:null}catch{return F.style[v]}}};function R(F,v,w){if(!(!F||!v))if((typeof v>"u"?"undefined":e(v))==="object")for(var k in v)v.hasOwnProperty(k)&&R(F,k,v[k]);else v=y(v),v==="opacity"&&m<9?F.style.filter=isNaN(w)?"":"alpha(opacity="+w*100+")":F.style[v]=w}var T=ln.isScroll=function(v,w){if(!s){var k=w!=null,Q=k?w?j(v,"overflow-y"):j(v,"overflow-x"):j(v,"overflow");return Q.match(/(scroll|auto|overlay)/)}};return ln.getScrollContainer=function(v,w){if(!s){for(var k=v;k;){if([window,document,document.documentElement].includes(k))return window;if(T(k,w))return k;k=k.parentNode}return k}},ln.isInContainer=function(v,w){if(s||!v||!w)return!1;var k=v.getBoundingClientRect(),Q=void 0;return[window,document,document.documentElement,null,void 0].includes(w)?Q={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:Q=w.getBoundingClientRect(),k.top<Q.bottom&&k.bottom>Q.top&&k.right>Q.left&&k.left<Q.right},ln}var Gh={},XS;function ws(){if(XS)return Gh;XS=1,Gh.__esModule=!0;function e(n,r,a){this.$children.forEach(function(s){var c=s.$options.componentName;c===n?s.$emit.apply(s,[r].concat(a)):e.apply(s,[n,r].concat([a]))})}return Gh.default={methods:{dispatch:function(r,a,s){for(var c=this.$parent||this.$root,p=c.$options.componentName;c&&(!p||p!==r);)c=c.$parent,c&&(p=c.$options.componentName);c&&c.$emit.apply(c,[a].concat(s))},broadcast:function(r,a,s){e.call(this,r,a,s)}}},Gh}var Jh={},ZS;function g0(){if(ZS)return Jh;ZS=1,Jh.__esModule=!0;var e=m0();return Jh.default={methods:{t:function(){for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return e.t.apply(this,a)}}},Jh}var Kh={},tc={},Xh={},$S;function Zh(){return $S||($S=1,Xh.__esModule=!0,Xh.default=function(e){for(var n=1,r=arguments.length;n<r;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}),Xh}var $h={},qS;function WV(){if(qS)return $h;qS=1,$h.__esModule=!0;var e=Ri.default,n=a(e),r=Ca();function a(S){return S&&S.__esModule?S:{default:S}}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,_,B,j,R){if(!n.default.prototype.$isServer&&!(!N||_===void 0)){this.modalFade=R;for(var T=this.modalStack,F=0,v=T.length;F<v;F++){var w=T[F];if(w.id===N)return}var k=m();if((0,r.addClass)(k,"v-modal"),this.modalFade&&!s&&(0,r.addClass)(k,"v-modal-enter"),j){var Q=j.trim().split(/\s+/);Q.forEach(function(M){return(0,r.addClass)(k,M)})}setTimeout(function(){(0,r.removeClass)(k,"v-modal-enter")},200),B&&B.parentNode&&B.parentNode.nodeType!==11?B.parentNode.appendChild(k):document.body.appendChild(k),_&&(k.style.zIndex=_),k.tabIndex=0,k.style.display="",this.modalStack.push({id:N,zIndex:_,modalClass:j})}},closeModal:function(N){var _=this.modalStack,B=m();if(_.length>0){var j=_[_.length-1];if(j.id===N){if(j.modalClass){var R=j.modalClass.trim().split(/\s+/);R.forEach(function(F){return(0,r.removeClass)(B,F)})}_.pop(),_.length>0&&(B.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,r.addClass)(B,"v-modal-leave"),setTimeout(function(){_.length===0&&(B.parentNode&&B.parentNode.removeChild(B),B.style.display="none",y.modalDom=void 0),(0,r.removeClass)(B,"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(S){if(S.keyCode===27){var N=O();N&&N.closeOnPressEscape&&(N.handleClose?N.handleClose():N.handleAction?N.handleAction("cancel"):N.close())}}),$h.default=y,$h}var qh={},e5;function A0(){if(e5)return qh;e5=1,qh.__esModule=!0,qh.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=Ri.default,n=r(e);function r(s){return s&&s.__esModule?s:{default:s}}var a=void 0;return qh}var t5;function n5(){if(t5)return tc;t5=1,tc.__esModule=!0,tc.PopupManager=void 0;var e=Ri.default,n=y(e),r=Zh(),a=y(r),s=WV(),c=y(s),p=A0(),m=y(p),g=Ca();function y(N){return N&&N.__esModule?N:{default:N}}var O=1,S=void 0;return tc.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 B=this;if(_){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,n.default.nextTick(function(){B.open()}))}else this.close()}},methods:{open:function(_){var B=this;this.rendered||(this.rendered=!0);var j=(0,a.default)({},this.$props||this,_);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var R=Number(j.openDelay);R>0?this._openTimer=setTimeout(function(){B._openTimer=null,B.doOpen(j)},R):this.doOpen(j)},doOpen:function(_){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var B=this.$el,j=_.modal,R=_.zIndex;if(R&&(c.default.zIndex=R),j&&(this._closing&&(c.default.closeModal(this._popupId),this._closing=!1),c.default.openModal(this._popupId,c.default.nextZIndex(),this.modalAppendToBody?void 0:B,_.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)),S=(0,m.default)();var T=document.documentElement.clientHeight<document.body.scrollHeight,F=(0,g.getStyle)(document.body,"overflowY");S>0&&(T||F==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+S+"px"),(0,g.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(B).position==="static"&&(B.style.position="absolute"),B.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 B=Number(this.closeDelay);B>0?this._closeTimer=setTimeout(function(){_._closeTimer=null,_.doClose()},B):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}}},tc.PopupManager=c.default,tc}var v0={exports:{}},i5;function GV(){return i5||(i5=1,function(e){var n=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};(function(r,a){n(e)==="object"&&e.exports?e.exports=a():r.Popper=a()})(void 0,function(){var r=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(v,w,k){this._reference=v.jquery?v[0]:v,this.state={};var Q=typeof w>"u"||w===null,M=w&&Object.prototype.toString.call(w)==="[object Object]";return Q||M?this._popper=this.parse(M?w:{}):this._popper=w.jquery?w[0]:w,this._options=Object.assign({},a,k),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[F("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},s.prototype.update=function(){var v={instance:this,styles:{}};v.placement=this._options.placement,v._originalPlacement=this._options.placement,v.offsets=this._getOffsets(this._popper,this._reference,v.placement),v.boundaries=this._getBoundaries(v,this._options.boundariesPadding,this._options.boundariesElement),v=this.runModifiers(v,this._options.modifiers),typeof this.state.updateCallback=="function"&&this.state.updateCallback(v)},s.prototype.onCreate=function(v){return v(this),this},s.prototype.onUpdate=function(v){return this.state.updateCallback=v,this},s.prototype.parse=function(v){var w={tagName:"div",classNames:["popper"],attributes:[],parent:r.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};v=Object.assign({},w,v);var k=r.document,Q=k.createElement(v.tagName);if(ne(Q,v.classNames),re(Q,v.attributes),v.contentType==="node"?Q.appendChild(v.content.jquery?v.content[0]:v.content):v.contentType==="html"?Q.innerHTML=v.content:Q.textContent=v.content,v.arrowTagName){var M=k.createElement(v.arrowTagName);ne(M,v.arrowClassNames),re(M,v.arrowAttributes),Q.appendChild(M)}var H=v.parent.jquery?v.parent[0]:v.parent;if(typeof H=="string"){if(H=k.querySelectorAll(v.parent),H.length>1&&console.warn("WARNING: the given `parent` query("+v.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(Q),Q;function ne(de,me){me.forEach(function(pe){de.classList.add(pe)})}function re(de,me){me.forEach(function(pe){de.setAttribute(pe.split(":")[0],pe.split(":")[1]||"")})}},s.prototype._getPosition=function(v,w){if(O(w),this._options.forceAbsolute)return"absolute";var k=N(w);return k?"fixed":"absolute"},s.prototype._getOffsets=function(v,w,k){k=k.split("-")[0];var Q={};Q.position=this.state.position;var M=Q.position==="fixed",H=T(w,O(v),M),ne=c(v);return["right","left"].indexOf(k)!==-1?(Q.top=H.top+H.height/2-ne.height/2,k==="left"?Q.left=H.left-ne.width:Q.left=H.right):(Q.left=H.left+H.width/2-ne.width/2,k==="top"?Q.top=H.top-ne.height:Q.top=H.bottom),Q.width=ne.width,Q.height=ne.height,{popper:Q,reference:H}},s.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),r.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var v=S(this._reference);(v===r.document.body||v===r.document.documentElement)&&(v=r),v.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=v}},s.prototype._removeEventListeners=function(){r.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(v,w,k){var Q={},M,H;if(k==="window"){var ne=r.document.body,re=r.document.documentElement;H=Math.max(ne.scrollHeight,ne.offsetHeight,re.clientHeight,re.scrollHeight,re.offsetHeight),M=Math.max(ne.scrollWidth,ne.offsetWidth,re.clientWidth,re.scrollWidth,re.offsetWidth),Q={top:0,right:M,bottom:H,left:0}}else if(k==="viewport"){var de=O(this._popper),me=S(this._popper),pe=j(de),Se=function(ie){return ie==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):ie.scrollTop},ye=function(ie){return ie==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):ie.scrollLeft},_e=v.offsets.popper.position==="fixed"?0:Se(me),W=v.offsets.popper.position==="fixed"?0:ye(me);Q={top:0-(pe.top-_e),right:r.document.documentElement.clientWidth-(pe.left-W),bottom:r.document.documentElement.clientHeight-(pe.top-_e),left:0-(pe.left-W)}}else O(this._popper)===k?Q={top:0,left:0,right:k.clientWidth,bottom:k.clientHeight}:Q=j(k);return Q.left+=w,Q.right-=w,Q.top=Q.top+w,Q.bottom=Q.bottom-w,Q},s.prototype.runModifiers=function(v,w,k){var Q=w.slice();return k!==void 0&&(Q=this._options.modifiers.slice(0,g(this._options.modifiers,k))),Q.forEach(function(M){B(M)&&(v=M.call(this,v))}.bind(this)),v},s.prototype.isModifierRequired=function(v,w){var k=g(this._options.modifiers,v);return!!this._options.modifiers.slice(0,k).filter(function(Q){return Q===w}).length},s.prototype.modifiers={},s.prototype.modifiers.applyStyle=function(v){var w={position:v.offsets.popper.position},k=Math.round(v.offsets.popper.left),Q=Math.round(v.offsets.popper.top),M;return this._options.gpuAcceleration&&(M=F("transform"))?(w[M]="translate3d("+k+"px, "+Q+"px, 0)",w.top=0,w.left=0):(w.left=k,w.top=Q),Object.assign(w,v.styles),_(this._popper,w),this._popper.setAttribute("x-placement",v.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&v.offsets.arrow&&_(v.arrowElement,v.offsets.arrow),v},s.prototype.modifiers.shift=function(v){var w=v.placement,k=w.split("-")[0],Q=w.split("-")[1];if(Q){var M=v.offsets.reference,H=m(v.offsets.popper),ne={y:{start:{top:M.top},end:{top:M.top+M.height-H.height}},x:{start:{left:M.left},end:{left:M.left+M.width-H.width}}},re=["bottom","top"].indexOf(k)!==-1?"x":"y";v.offsets.popper=Object.assign(H,ne[re][Q])}return v},s.prototype.modifiers.preventOverflow=function(v){var w=this._options.preventOverflowOrder,k=m(v.offsets.popper),Q={left:function(){var H=k.left;return k.left<v.boundaries.left&&(H=Math.max(k.left,v.boundaries.left)),{left:H}},right:function(){var H=k.left;return k.right>v.boundaries.right&&(H=Math.min(k.left,v.boundaries.right-k.width)),{left:H}},top:function(){var H=k.top;return k.top<v.boundaries.top&&(H=Math.max(k.top,v.boundaries.top)),{top:H}},bottom:function(){var H=k.top;return k.bottom>v.boundaries.bottom&&(H=Math.min(k.top,v.boundaries.bottom-k.height)),{top:H}}};return w.forEach(function(M){v.offsets.popper=Object.assign(k,Q[M]())}),v},s.prototype.modifiers.keepTogether=function(v){var w=m(v.offsets.popper),k=v.offsets.reference,Q=Math.floor;return w.right<Q(k.left)&&(v.offsets.popper.left=Q(k.left)-w.width),w.left>Q(k.right)&&(v.offsets.popper.left=Q(k.right)),w.bottom<Q(k.top)&&(v.offsets.popper.top=Q(k.top)-w.height),w.top>Q(k.bottom)&&(v.offsets.popper.top=Q(k.bottom)),v},s.prototype.modifiers.flip=function(v){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!"),v;if(v.flipped&&v.placement===v._originalPlacement)return v;var w=v.placement.split("-")[0],k=p(w),Q=v.placement.split("-")[1]||"",M=[];return this._options.flipBehavior==="flip"?M=[w,k]:M=this._options.flipBehavior,M.forEach(function(H,ne){if(!(w!==H||M.length===ne+1)){w=v.placement.split("-")[0],k=p(w);var re=m(v.offsets.popper),de=["right","bottom"].indexOf(w)!==-1;(de&&Math.floor(v.offsets.reference[w])>Math.floor(re[k])||!de&&Math.floor(v.offsets.reference[w])<Math.floor(re[k]))&&(v.flipped=!0,v.placement=M[ne+1],Q&&(v.placement+="-"+Q),v.offsets.popper=this._getOffsets(this._popper,this._reference,v.placement).popper,v=this.runModifiers(v,this._options.modifiers,this._flip))}}.bind(this)),v},s.prototype.modifiers.offset=function(v){var w=this._options.offset,k=v.offsets.popper;return v.placement.indexOf("left")!==-1?k.top-=w:v.placement.indexOf("right")!==-1?k.top+=w:v.placement.indexOf("top")!==-1?k.left-=w:v.placement.indexOf("bottom")!==-1&&(k.left+=w),v},s.prototype.modifiers.arrow=function(v){var w=this._options.arrowElement,k=this._options.arrowOffset;if(typeof w=="string"&&(w=this._popper.querySelector(w)),!w)return v;if(!this._popper.contains(w))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),v;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!"),v;var Q={},M=v.placement.split("-")[0],H=m(v.offsets.popper),ne=v.offsets.reference,re=["left","right"].indexOf(M)!==-1,de=re?"height":"width",me=re?"top":"left",pe=re?"left":"top",Se=re?"bottom":"right",ye=c(w)[de];ne[Se]-ye<H[me]&&(v.offsets.popper[me]-=H[me]-(ne[Se]-ye)),ne[me]+ye>H[Se]&&(v.offsets.popper[me]+=ne[me]+ye-H[Se]);var _e=ne[me]+(k||ne[de]/2-ye/2),W=_e-H[me];return W=Math.max(Math.min(H[de]-ye-8,W),8),Q[me]=W,Q[pe]="",v.offsets.arrow=Q,v.arrowElement=w,v};function c(v){var w=v.style.display,k=v.style.visibility;v.style.display="block",v.style.visibility="hidden",v.offsetWidth;var Q=r.getComputedStyle(v),M=parseFloat(Q.marginTop)+parseFloat(Q.marginBottom),H=parseFloat(Q.marginLeft)+parseFloat(Q.marginRight),ne={width:v.offsetWidth+H,height:v.offsetHeight+M};return v.style.display=w,v.style.visibility=k,ne}function p(v){var w={left:"right",right:"left",bottom:"top",top:"bottom"};return v.replace(/left|right|bottom|top/g,function(k){return w[k]})}function m(v){var w=Object.assign({},v);return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function g(v,w){var k=0,Q;for(Q in v){if(v[Q]===w)return k;k++}return null}function y(v,w){var k=r.getComputedStyle(v,null);return k[w]}function O(v){var w=v.offsetParent;return w===r.document.body||!w?r.document.documentElement:w}function S(v){var w=v.parentNode;return w?w===r.document?r.document.body.scrollTop||r.document.body.scrollLeft?r.document.body:r.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:S(v.parentNode):v}function N(v){return v===r.document.body?!1:y(v,"position")==="fixed"?!0:v.parentNode?N(v.parentNode):v}function _(v,w){function k(Q){return Q!==""&&!isNaN(parseFloat(Q))&&isFinite(Q)}Object.keys(w).forEach(function(Q){var M="";["width","height","top","right","bottom","left"].indexOf(Q)!==-1&&k(w[Q])&&(M="px"),v.style[Q]=w[Q]+M})}function B(v){var w={};return v&&w.toString.call(v)==="[object Function]"}function j(v){var w={width:v.offsetWidth,height:v.offsetHeight,left:v.offsetLeft,top:v.offsetTop};return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function R(v){var w=v.getBoundingClientRect(),k=navigator.userAgent.indexOf("MSIE")!=-1,Q=k&&v.tagName==="HTML"?-v.scrollTop:w.top;return{left:w.left,top:Q,right:w.right,bottom:w.bottom,width:w.right-w.left,height:w.bottom-Q}}function T(v,w,k){var Q=R(v),M=R(w);if(k){var H=S(w);M.top+=H.scrollTop,M.bottom+=H.scrollTop,M.left+=H.scrollLeft,M.right+=H.scrollLeft}var ne={top:Q.top-M.top,left:Q.left-M.left,bottom:Q.top-M.top+Q.height,right:Q.left-M.left+Q.width,width:Q.width,height:Q.height};return ne}function F(v){for(var w=["","ms","webkit","moz","o"],k=0;k<w.length;k++){var Q=w[k]?w[k]+v.charAt(0).toUpperCase()+v.slice(1):v;if(typeof r.document.body.style[Q]<"u")return Q}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 k=Object(w),Q=1;Q<arguments.length;Q++){var M=arguments[Q];if(M!=null){M=Object(M);for(var H=Object.keys(M),ne=0,re=H.length;ne<re;ne++){var de=H[ne],me=Object.getOwnPropertyDescriptor(M,de);me!==void 0&&me.enumerable&&(k[de]=M[de])}}}return k}}),s})}(v0)),v0.exports}var r5;function em(){if(r5)return Kh;r5=1,Kh.__esModule=!0;var e=Ri.default,n=a(e),r=n5();function a(p){return p&&p.__esModule?p:{default:p}}var s=n.default.prototype.$isServer?function(){}:GV(),c=function(m){return m.stopPropagation()};return Kh.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(S){m.$emit("created",m),m.resetTransformOrigin(),m.$nextTick(m.updatePopper)}),typeof g.onUpdate=="function"&&this.popperJS.onUpdate(g.onUpdate),this.popperJS._popper.style.zIndex=r.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",c))}},updatePopper:function(){var m=this.popperJS;m?(m.update(),m._popper&&(m._popper.style.zIndex=r.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)}},Kh}var b0={exports:{}},tm={},a5;function o5(){if(a5)return tm;a5=1,tm.__esModule=!0;var e=Ir();return tm.default={mounted:function(){if(process.env.NODE_ENV!=="production"&&!!this.$vnode){var r=this.getMigratingConfig(),a=r.props,s=a===void 0?{}:a,c=r.events,p=c===void 0?{}:c,m=this.$vnode,g=m.data,y=m.componentOptions,O=g.attrs||{},S=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 S)_=(0,e.kebabCase)(_),p[_]&&console.warn("[Element Migrating]["+this.$options.name+"][Event]: "+p[_])}},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}},tm}var yd={},s5;function nm(){if(s5)return yd;s5=1,yd.__esModule=!0,yd.isDef=e,yd.isKorean=n;function e(r){return r!=null}function n(r){var a=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return a.test(r)}return yd}var l5;function _0(){return l5||(l5=1,function(e){e.exports=function(n){var r={};function a(s){if(r[s])return r[s].exports;var c=r[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=r,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,r,a){a.d(r,"a",function(){return s});function s(c,p,m,g,y,O,S,N){var _=typeof c=="function"?c.options:c;p&&(_.render=p,_.staticRenderFns=m,_._compiled=!0),g&&(_.functional=!0),O&&(_._scopeId="data-v-"+O);var B;if(S?(B=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(S)},_._ssrRegister=B):y&&(B=N?function(){y.call(this,this.$root.$options.shadowRoot)}:y),B)if(_.functional){_._injectStyles=B;var j=_.render;_.render=function(F,v){return B.call(v),j(F,v)}}else{var R=_.beforeCreate;_.beforeCreate=R?[].concat(R,B):[B]}return{exports:c,options:_}}},11:function(n,r){n.exports=o5()},21:function(n,r){n.exports=nm()},4:function(n,r){n.exports=ws()},75:function(n,r,a){a.r(r);var s=function(){var M=this,H=M.$createElement,ne=M._self._c||H;return ne("div",{class:[M.type==="textarea"?"el-textarea":"el-input",M.inputSize?"el-input--"+M.inputSize:"",{"is-disabled":M.inputDisabled,"is-exceed":M.inputExceed,"el-input-group":M.$slots.prepend||M.$slots.append,"el-input-group--append":M.$slots.append,"el-input-group--prepend":M.$slots.prepend,"el-input--prefix":M.$slots.prefix||M.prefixIcon,"el-input--suffix":M.$slots.suffix||M.suffixIcon||M.clearable||M.showPassword}],on:{mouseenter:function(re){M.hovering=!0},mouseleave:function(re){M.hovering=!1}}},[M.type!=="textarea"?[M.$slots.prepend?ne("div",{staticClass:"el-input-group__prepend"},[M._t("prepend")],2):M._e(),M.type!=="textarea"?ne("input",M._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:M.tabindex,type:M.showPassword?M.passwordVisible?"text":"password":M.type,disabled:M.inputDisabled,readonly:M.readonly,autocomplete:M.autoComplete||M.autocomplete,"aria-label":M.label},on:{compositionstart:M.handleCompositionStart,compositionupdate:M.handleCompositionUpdate,compositionend:M.handleCompositionEnd,input:M.handleInput,focus:M.handleFocus,blur:M.handleBlur,change:M.handleChange}},"input",M.$attrs,!1)):M._e(),M.$slots.prefix||M.prefixIcon?ne("span",{staticClass:"el-input__prefix"},[M._t("prefix"),M.prefixIcon?ne("i",{staticClass:"el-input__icon",class:M.prefixIcon}):M._e()],2):M._e(),M.getSuffixVisible()?ne("span",{staticClass:"el-input__suffix"},[ne("span",{staticClass:"el-input__suffix-inner"},[!M.showClear||!M.showPwdVisible||!M.isWordLimitVisible?[M._t("suffix"),M.suffixIcon?ne("i",{staticClass:"el-input__icon",class:M.suffixIcon}):M._e()]:M._e(),M.showClear?ne("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(re){re.preventDefault()},click:M.clear}}):M._e(),M.showPwdVisible?ne("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:M.handlePasswordVisible}}):M._e(),M.isWordLimitVisible?ne("span",{staticClass:"el-input__count"},[ne("span",{staticClass:"el-input__count-inner"},[M._v(`
40
+ <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){r=a}if(this._emit("saveSVG.done",{error:r,svg:n}),r)throw r;return{svg:n}},an.prototype._setDefinitions=function(e){this._definitions=e},an.prototype.getModules=function(){return this._modules},an.prototype.clear=function(){!this.getDefinitions()||so.prototype.clear.call(this)},an.prototype.destroy=function(){so.prototype.destroy.call(this),Wl(this._container)},an.prototype.on=function(e,n,r,a){return this.get("eventBus").on(e,n,r,a)},an.prototype.off=function(e,n){this.get("eventBus").off(e,n)},an.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=_a(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},an.prototype.getDefinitions=function(){return this._definitions},an.prototype.detach=function(){const e=this._container,n=e.parentNode;!n||(this._emit("detach",{}),n.removeChild(e))},an.prototype._init=function(e,n,r){const a=r.modules||this.getModules(r),s=r.additionalModules||[],c=[{bpmnjs:["value",this],moddle:["value",n]}],p=[].concat(c,a,s),m=Je(yj(r,["additionalModules"]),{canvas:Je({},r.canvas,{container:e}),modules:p});so.call(this,m),r&&r.container&&this.attachTo(r.container)},an.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},an.prototype._createContainer=function(e){const n=Hi('<div class="bjs-container"></div>');return Nn(n,{width:wS(e.width),height:wS(e.height),position:e.position}),n},an.prototype._createModdle=function(e){const n=Je({},this._moddleExtensions,e.moddleExtensions);return new kH(n)},an.prototype._modules=[];function Uh(e,n){return e.warnings=n,e}function QH(e){const r=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return r&&(e.message="unparsable content <"+r[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+r[2]),e}const HH={width:"100%",height:"100%",position:"relative"};function wS(e){return e+(to(e)?"px":"")}function VH(e,n){return n&&Br(e.diagrams,function(r){return r.id===n})||null}function UH(e){const r='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+_S+"</a>",a=Hi(r);Nn(_a("svg",a),yS),Nn(a,xS,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(a),gs.bind(a,"click",function(s){zH(),s.preventDefault()})}function ec(e){an.call(this,e)}Gr(ec,an),ec.prototype._modules=[iz,xz,C6,Dz,b6],ec.prototype._moddleExtensions={};var YH=/^djs-cursor-.*$/;function ES(e){var n=ms(document.body);n.removeMatching(YH),e&&n.add("djs-cursor-"+e)}function WH(){ES(null)}var GH=5e3;function JH(e,n){n=n||"element.click";function r(){return!1}return e.once(n,GH,r),function(){e.off(n,r)}}function CS(e,n){return{x:e.x-n.x,y:e.y-n.y}}var KH=15;function kS(e,n){var r;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=r.start,y=r.button,O=T6(m),S=CS(O,g);if(!r.dragging&&XH(S)>KH&&(r.dragging=!0,y===0&&JH(e),ES("grab")),r.dragging){var N=r.last||r.start;S=CS(O,N),n.scroll({dx:S.x,dy:S.y}),r.last=O}m.preventDefault()}function c(m){gs.unbind(document,"mousemove",s),gs.unbind(document,"mouseup",c),r=null,WH()}function p(m){if(!f6(m.target,".djs-draggable")){var g=m.button;if(!(g>=2||m.ctrlKey||m.shiftKey||m.altKey))return r={button:g,start:T6(m)},gs.bind(document,"mousemove",s),gs.bind(document,"mouseup",c),!0}}this.isActive=function(){return!!r}}kS.$inject=["eventBus","canvas"];function XH(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const _d={__init__:["moveCanvas"],moveCanvas:["type",kS]};var ZH=new Yy("tt");function $H(e){var n=Hi('<div class="djs-tooltip-container" />');return Nn(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function qH(e,n,r){Nn(e,{left:n+"px",top:r+"px"})}function c0(e,n){e.style.display=n===!1?"none":""}var SS="djs-tooltip",u0="."+SS;function ii(e,n){this._eventBus=e,this._canvas=n,this._ids=ZH,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=$H(n.getContainer());var r=this;Yl.bind(this._tooltipRoot,u0,"mousedown",function(a){a.stopPropagation()}),Yl.bind(this._tooltipRoot,u0,"mouseover",function(a){r.trigger("mouseover",a)}),Yl.bind(this._tooltipRoot,u0,"mouseout",function(a){r.trigger("mouseout",a)}),this._init()}ii.$inject=["eventBus","canvas"],ii.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},ii.prototype.trigger=function(e,n){var r=n.delegateTarget||n.target,a=this.get(Ly(r,"data-tooltip-id"));!a||(e==="mouseover"&&a.timeout&&this.clearTimeout(a),e==="mouseout"&&a.timeout&&(a.timeout=1e3,this.setTimeout(a)))},ii.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},ii.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},ii.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)}},ii.prototype.remove=function(e){var n=this.get(e);n&&(Wl(n.html),Wl(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},ii.prototype.show=function(){c0(this._tooltipRoot)},ii.prototype.hide=function(){c0(this._tooltipRoot,!1)},ii.prototype._updateRoot=function(e){var n=e.scale||1,r=e.scale||1,a="matrix("+n+",0,0,"+r+","+-1*e.x*n+","+-1*e.y*r+")";this._tooltipRoot.style.transform=a,this._tooltipRoot.style["-ms-transform"]=a},ii.prototype._addTooltip=function(e){var n=e.id,r=e.html,a,s=this._tooltipRoot;r.get&&r.constructor.prototype.jquery&&(r=r.get(0)),Dr(r)&&(r=Hi(r)),a=Hi('<div data-tooltip-id="'+n+'" class="'+SS+'">'),Nn(a,{position:"absolute"}),a.appendChild(r),e.type&&ms(a).add("djs-tooltip-"+e.type),e.className&&ms(a).add(e.className),e.htmlContainer=a,s.appendChild(a),this._tooltips[n]=e,this._updateTooltip(e)},ii.prototype._updateTooltip=function(e){var n=e.position,r=e.htmlContainer;qH(r,n.x,n.y)},ii.prototype._updateTooltipVisibilty=function(e){We(this._tooltips,function(n){var r=n.show,a=n.htmlContainer,s=!0;r&&((r.minZoom>e.scale||r.maxZoom<e.scale)&&(s=!1),c0(a,s))})},ii.prototype._init=function(){var e=this;function n(r){e._updateRoot(r),e._updateTooltipVisibilty(r),e.show()}this._eventBus.on("canvas.viewbox.changing",function(r){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(r){n(r.viewbox)})};const d0={__init__:["tooltips"],tooltips:["type",ii]};var eV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-card",{class:(e.item||{}).endTime?"":"cur-process"},[e.item.historyActivityType=="endEvent"?r("p",[r("b",[e._v("\u6D41\u7A0B\u5DF2\u7ED3\u675F")])]):e.item.historyActivityType=="startEvent"?r("p",[r("span",{staticClass:"flow-name"},[e._v(e._s(e.item.assigneeName||(e.item.comments&&e.item.comments.length>0?e.my(e.item):"")))]),e._v(" \u5728 "),r("span",{staticClass:"flow-time"},[e._v(e._s(e.item.createTime))]),e._v(" \u53D1\u8D77\u4E86\u6D41\u7A0B ")]):r("p",[r("span",{staticClass:"flow-name"},[e._v(e._s(e.item.assigneeName||(e.item.comments&&e.item.comments.length>0?e.my(e.item):"")))]),e._v(" \u5728 "),r("span",{staticClass:"flow-time"},[e._v(e._s(e.item.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),r("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?r("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 r("p",{key:s},[s<1?[r("span",{class:["comment-type",e.item.class]},[e._v(e._s(e.commentMap[a.type]||a.type))]),r("span",{staticClass:"comment-user"},[e._v(e._s(a.userId))]),e._v(": "),r("span",[e._v(" "+e._s(a.fullMessage)+" ")]),e.item.comments.filter(function(c){return c.action==="AddComment"}).length>1?r("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),r("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}),r("el-icon",[e.isFlag?r("el-icon-arrow-up"):r("el-icon-arrow-down")],1)],1):e._e(),a.time&&e.isFlag?r("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(a.time))]):e._e()]:e._e(),s>0&&e.isFlag?[r("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[a.type]||a.type))]),r("span",{staticClass:"comment-user"},[e._v(e._s(a.userId))]),e._v(": "),r("span",[e._v(" "+e._s(a.fullMessage)+" ")]),a.time?r("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?[r("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[r("span",[e._v("\u7B7E\u5B57: ")]),r("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[r("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?[r("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[r("span",[e._v("\u9644\u4EF6: ")]),r("div",{staticStyle:{flex:"1",margin:"-15px 0 0 4px"}},[r("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&&e.item.historyActivityType!="startEvent"?r("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(e.item.endTime))]):e._e()],2)},tV=[];const xX="",nV={name:"nf-flow",props:{item:{type:Object,default:()=>({})},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Sy,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:{my(e){return e.comments[e.comments.length-1].userId||""},handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},DS={};var iV=rn(nV,eV,tV,!1,rV,"598546f3",null,null);function rV(e){for(let n in DS)this[n]=DS[n]}const aV=function(){return iV.exports}();var oV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"bpmnnd-box"},[r("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"}},[r("div",{staticClass:"bpmnd-detail"},[r("div",{staticClass:"bpmnd-top"},[e._v(" "+e._s(e.curName||"\u8282\u70B9\u540D\u79F0")+" ")]),r("div",{staticClass:"bpmnd-body"},e._l(e.getColors(e.curData),function(a){return r("div",{staticClass:"bpmnd-cur"},[r("processFlowItem",{attrs:{flowList:e.curData,item:a}})],1)}),0)])])],1)},sV=[];const wX="",lV={components:{processFlowItem:aV},data(){return{getColors:Sy,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 r=n.filter(a=>a.historyActivityType=="userTask");this.curData=r.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}}},BS={};var cV=rn(lV,oV,sV,!1,uV,"01478349",null,null);function uV(e){for(let n in BS)this[n]=BS[n]}const dV=function(){return cV.exports}();var fV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{ref:"container",class:["bpmn-look",e.preview?"bpmn-look-preview":""],on:{wheel:e.handleWheel}},[r("bpmnNodeDetail",{ref:"bpmnNodeDetailRef",on:{close:e.closeDetail}})],1)},pV=[];const EX="",hV={name:"bpmn-look",components:{bpmnNodeDetail:dV},props:{preview:{type:Boolean,default:!1},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={},r="";try{n=await api.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(r=n.data)}catch(a){console.error(a)}return r},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(ec)=="[object Function]"?ec:ec.default,n=Object.prototype.toString.call(d0)=="[object Object]"?d0:d0.default,r=Object.prototype.toString.call(_d)=="[object Object]"?_d:_d.default;Object.prototype.toString.call(_d),this.viewer=new e({container:this.$refs.container,additionalModules:[n,r]}),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("fit-viewport","auto")},setNodeColor(e){const n=this.viewer.get("canvas"),r=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=r.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=oj(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()}},IS={};var mV=rn(hV,fV,pV,!1,gV,"3d46faae",null,null);function gV(e){for(let n in IS)this[n]=IS[n]}const OS=function(){return mV.exports}();var AV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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():[r("div",{ref:"baseTabs",staticClass:"tabs"},[r("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 r("el-tab-pane",{key:s,attrs:{label:a.name,name:a.slot||a.name,item:a}},[a.name=="\u57FA\u672C\u4FE1\u606F"&&!a.slot?[r("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?[r("div",{staticClass:"view-node-info",on:{click:e.getNodeList}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]),e.trackUrl?r("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?r("bpmnLook",{attrs:{approvalData:e.processData.flow,diagram:e.processData.process.xml}}):r("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?[r("processFlow",{attrs:{isActive:!!(e.processData.historyFlow&&e.processData.historyFlow.length>0),"flow-list":e.formatFlow(e.processData.flow)}}),e.processData.historyFlow&&e.processData.historyFlow.length>0?e._l(e.processData.historyFlow,function(c){return r("processFlow",{attrs:{isHistory:!0,"flow-list":e.formatFlow(c)}})}):e._e()]:r("div",{staticStyle:{height:"100px",display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6570\u636E ")])]:[e.activeName==a.name?r("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?r("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?r("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?r("el-dropdown",{attrs:{placement:"top-start",trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[r("el-dropdown-menu",e._l(e.absoluteBtns.inside,function(a,s){return r("el-dropdown-item",{key:a.name+s,nativeOn:{click:function(c){return function(){a.click(),e.aftClickBtn=a}.apply(null,arguments)}}},[r("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)},[r("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small"}},[e._v(" \u66F4\u591A ")])],1):e._e(),e._l(e.absoluteBtns.outside,function(a){return r("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():r("div"),r("div",{staticClass:"dialog"},[r("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[r("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")]),r("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"}},[r("div",{ref:"obRef",staticClass:"operation-box"},[e.dialogVisibleOperation?r(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?r("el-form",{attrs:{"label-width":"120px","status-icon":"",rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9644\u4EF6",prop:e.attachRule.required?"attach":""}},[r("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)]),r("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"}},[r("el-form",{ref:"form",staticClass:"task",attrs:{"label-width":"100px"}},[r("el-form-item",{attrs:{label:"\u8BF7\u9009\u62E9\uFF1A",prop:"content"}},[r("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 r("el-radio",{key:a.nodeId,attrs:{label:a.taskId,border:""}},[e._v(e._s(a.nodeName))])}),1)],1)],1),r("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:e.onCheckSure}},[e._v("\u786E\u5B9A")])],1)],1),r("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"}},[r("el-table",{staticClass:"process-table",attrs:{data:e.filterFlow(e.processData.flow),border:"","header-row-style":e.headerRowStyle}},[r("el-table-column",{attrs:{label:"\u5E8F\u53F7",type:"index",width:"60px",align:"center"}}),r("el-table-column",{attrs:{prop:"historyActivityName",label:"\u8282\u70B9\u540D\u79F0","min-width":"130"}}),r("el-table-column",{attrs:{prop:"assigneeName",label:"\u5BA1\u6279\u4EBA","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(" "+e._s(a.row.createTime?a.row.assigneeName:"")+" ")]}}])})],1)],1)],1)],2)},vV=[];const CX="",kX="",bV={components:{processBtns:rj,processFlow:fj,bpmnLook:OS,staffTree:Aa,...h4,ViewFile:dM,JyrFileUpload:rh},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:{},historyFlow:[]},currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},processData:{button:[],flow:[],form:{},process:{},historyFlow:[]},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:h4,Enum:Ep,isOperLoading:!1,isOperationHidden:!1,boxLoading:!1,rules:{attach:[{required:!0,trigger:"change"}]},noReload:!1,digitalSignatureList:[]}},mounted(){console.info("%c\u26A1"+wp.name+"%c v"+wp.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==_t.success&&(this.taskNode=n.data,Xe.pis.getProcessStatus(this.processId,this.absoluteTaskId).then(r=>{r.code==_t.success&&(this.processStatus=r.data,this.$emit("getStatus",r.data),this.absoluteTaskId?Xe.repository.getUserTaskModelCmd(this.absoluteTaskId).then(a=>{a.code==_t.success&&(this.taskObj=a.data,this.straightenBtns())}):this.straightenBtns())}))}),Xe.repository.getTrackUrl({processInstId:e,type:Lb.\u7535\u8111\u7AEF}).then(n=>{n.code==_t.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(r=>r.digitalSignature).map(r=>r.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=[];if(Object.prototype.toString.call(e)==="[object Object]")for(let a in e)n.push(...e[a]);else n=e;let r=(n||[]).map(a=>({...a,attachmentsFujian:(a.attachments||[]).filter(s=>s.type!="signature"),attachmentsQianzi:(a.attachments||[]).filter(s=>s.type=="signature")}));return r=r.reverse(),r},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 r=n.currentProcessOriginData[0],a=(r.currentName||"").split(","),s=(r.avatar||"").split(",");a=a.map((c,p)=>({realName:c,avatar:s[p]||"",phone:"",ancestorNames:[]})),n.currentMan=a,n.currentFirstNode=r,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 r=(this.processData.process||{}).taskId;this.taskObj.buttons=this.processData.button,this.absoluteTaskId=r,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 r=ky(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:r.intersection?1:0,userIds:r.userIds,postIds:r.postIds,deptIds:r.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(W_,e)}):this.showOperation(W_,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(o4,e)},handleUserSelect({type:e,checkType:n,name:r}){e=="transfer"?this.handleTransfer(r):e=="addInstance"&&this.handleAddInstance(r)},handleTransfer(e){this.showOperation(e4,e)},handleAddInstance(e){this.showOperation(Zk,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(l4,e)},handleTerminateProcess(){},handleCirculate(e){this.showOperation(p4,e)},handleWithdrawTask(e){this.handleRevoke()},findTargetHtml(e,n,r="parentElement"){if(!e)return null;if(e.classList.contains(n))return e;let a=e[r];if(!a)return null;if(r=="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 r="/";e.indexOf("\\")!=-1&&(r="\\");let a=e,s=a.lastIndexOf(r);return a.substr(s+1+n,a.length)},clickCustomButton(e){this.$emit("clickCustomButton",{name:e,processStatus:this.processStatus,setName:n=>{this.taskObj.buttons.map(r=>{r.label==e&&(r.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 r=n.data||{};n.code==200&&!n.data.evaluation&&(this.incomingConditionItemList=[],r.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=[],r.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.branches[0].id)),r=await this.getSelectFixData(r,e),this.nextTaskNode=r},async getNodeUser({deptId:e,intersection:n,userIds:r,postIds:a,deptIds:s}){return await Xe.user.getTaskAuditor({deptId:e,intersection:n,userIds:r,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 r=this.$refs.obRef;if(this.$refs,!r)return;let a=(m=r.getBoundingClientRect())==null?void 0:m.top,s=this.findTargetHtml(r,"el-dialog"),c=this.findTargetHtml(s,"el-dialog__footer","children"),p=window.innerHeight-((g=r.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 ad.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(r=>{n.push({id:r.id,name:this.fileNameLastof(r.name),size:r.fileSize,format:r.fileType,url:r.url,uploadTime:r.createTime,processInstId:this.operationParam.processInstId,taskInstId:this.operationParam.taskInstId})}),n=n.sort((r,a)=>qu(r.uploadTime).valueOf()>qu(a.uploadTime).valueOf())),this.$refs.operationRef&&this.$refs.operationRef.confirm(e,()=>{this.isOperLoading=!0},n)},operationSuccess(e=!0){ad.success("\u64CD\u4F5C\u6210\u529F"),this.dialogVisibleOperation=!1,e&&this.$emit("Complete"),this.isOperLoading=!1},operationFail(e=""){e&&ad.warning(e),this.isOperLoading=!1},async getSelectFixData(e,n){let r=JSON.parse(JSON.stringify(e));if(r.nodeType!="userTask"&&Array.isArray(r.branches))for(let a=0;a<r.branches.length;a++){let s=r.branches[a],c=s.nodeInfoDTO?s.nodeInfoDTO:s;try{c=await this.getSelectFixData(c,n)}catch(p){}s.nodeInfoDTO?s.nodeInfoDTO=c:s=c,r.branches[a]=s}else if(r.nodeType=="userTask"&&!r.setPersonnel){let a=ky(r),s;try{s=await this.getNodeUser({deptId:n,intersection:a.intersection?1:0,userIds:a.userIds,postIds:a.postIds,deptIds:a.deptIds}),s.code==_t.success}catch(c){}s.code==_t.success&&(r.userList=s.data)}return r},async getOutgoingProcessNode(e,n){let r=await Xe.repository.getOutgoingProcessNode(e,n);if(r.code==_t.success){if(r.data){for(let a=0;a<r.data.length;a++){let s=r.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)),r.data[a].type!="endEvent"&&(r.data[a].humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||r.data[a].humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&await Xe.repository.getParticipantsOfPerformerNames(e,[r.data[a].id]).then(c=>{r.data[a].routeTxt.userNames=c.data[r.data[a].id]})}r.data.length==0&&r.data.push({id:"",incomingConditionItemList:[],type:"endEvent",name:"\u7ED3\u675F\u4E8B\u4EF6"})}return r.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(){U3.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==_t.success&&(ad.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(()=>{})},handleReminders(){U3.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==_t.success&&(ad.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 r={outside:[],inside:[]};n.length>4?(r.outside=n.splice(n.length-4,n.length-1),r.inside=n):r.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=r,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,r,a="";switch(this.operationLabel){case"\u9000\u56DE":r=e.find(c=>c.name=="otherButtonAnnexList"),a=r?r.value:"",a&&(n=!0);break;case"\u901A\u8FC7":case"\u529E\u7406":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u5904\u7406":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u540C\u610F":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u62D2\u7EDD":r=e.find(c=>c.name=="otherButtonAnnexList"),a=r?r.value:"";break;case"\u52A0\u7B7E":r=e.find(c=>c.name=="counterSignButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u8F6C\u529E":r=e.find(c=>c.name=="delegateTaskButtonAnnex"),a=r?r.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}}},TS={};var _V=rn(bV,AV,vV,!1,yV,"0502920f",null,null);function yV(e){for(let n in TS)this[n]=TS[n]}const NS=function(){return _V.exports}(),xV=async(e,n)=>{const r=n||{},a=r.dragElement||(r.targetClassName?MS(e,r.targetClassName):e.querySelector(".el-dialog"));let s;new IntersectionObserver(v=>{s=v[0].isIntersecting,s||F()}).observe(a);const p=r.dragHeader||".el-dialog__header",m=a.querySelector(p),g=r.restrictElement||document.body;let y;g?y=g.getBoundingClientRect():y={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};let O=!1,S,N,_;const B=()=>{if(m){m.style.cursor="move",m.style["user-select"]="none",m.onmousedown=w=>{O=!0;const k=a.style.transform.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);S=k?parseFloat(k[1]):0,N=k?parseFloat(k[2]):0,document.addEventListener("mousemove",R),document.addEventListener("mouseup",T)};const v=a.getBoundingClientRect();_={"+x":y.right-v.right,"-x":y.left-v.left,"+y":y.bottom-v.bottom,"-y":y.top-v.top}}},j=()=>{O=!1,m.style.cursor="auto",m.style["user-select"]="auto",m.onmousedown=v=>{}};x.watch(r.dialogConfig,(v,w)=>{v.fullScreen&&(j(),F())}),B();const R=v=>{if(!O)return;v.stopPropagation(),v.preventDefault();let w=v.movementX+S,k=v.movementY+N;w>=0?w=w>=_["+x"]?_["+x"]:w:w=w<=_["-x"]?_["-x"]:w,k>=0?k=k>=_["+y"]?_["+y"]:k:k=k<=_["-y"]?_["-y"]:k,a.style.transform=`translate(${w}px, ${k}px)`,S=w,N=k},T=()=>{O=!1,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",T),a.style["user-select"]="auto"},F=()=>{a.style.transform="none"}};function MS(e,n){if(!e)return null;if(e.classList.contains(n))return e;let r=e.parentElement;return r?MS(r,n):null}const wV="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 EV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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[r("div",{staticClass:"dialog-header"},[e._t("title",function(){return[r("div",[e._v("\u6D41\u7A0B\u4FE1\u606F")])]}),r("div",{staticClass:"dialog-icon"},[r("span",{on:{click:function(a){e.fullscreen=!e.fullscreen}}},[r("img",{attrs:{src:wV,alt:""}})])])],2)]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[e.showProcess?r("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),[r("div",{staticClass:"processDialogMain"},[e._t("default")],2)]):e._e()],1)},CV=[];const SX="",kV={components:{process:NS},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&&xV(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)}}},FS={};var SV=rn(kV,EV,CV,!1,DV,null,null,null);function DV(e){for(let n in FS)this[n]=FS[n]}const BV=function(){return SV.exports}();var IV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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[r("el-button",{attrs:{loading:e.btnLoading,type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),r("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"}},[r("el-form",{staticClass:"create-form",attrs:{"label-width":"200px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u5F53\u524D\u6D41\u7A0B",size:"medium",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D41\u7A0B"}]}},[e.processDefList.length>1?r("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 r("el-option",{key:s,attrs:{label:a.name,value:a.id,disabled:a.disabled}})}),1):r("b",{staticClass:"process-def-name"},[e._v(" "+e._s(e.processDefName)+" ")]),e.processDefId?r("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():r("el-form-item",{attrs:{size:"medium",label:"\u9009\u62E9\u90E8\u95E8",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8"}]}},[r("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?r("div",{staticClass:"node-list"},[e.processList&&e.processList.length>0?r("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[r("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?r("div",{staticClass:"user-task-split"}):e._e()]})]:e._e()],2):e._e()],1)],1),r("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?r("bpmnLook",{ref:"PreviewRef",attrs:{preview:!0,diagram:e.processXml}}):e._e()],1),r("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}},[r("div",{staticStyle:{"margin-left":"20px"}},[r("div",{staticStyle:{"margin-left":"40px","margin-bottom":"20px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),r("el-timeline",e._l(e.flowForecastData.processBudgetModelList,function(a,s){return r("el-timeline-item",{key:s,attrs:{icon:"el-icon-check",color:s==0?"#009800":a.color,timestamp:a.title,placement:"top"}},[r("div",[r("span",{staticStyle:{color:"#1389FF"}},[r("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u53D1\u8D77\u4EBA\uFF1A"+e._s(a.createUser)+" ")]),r("span",{staticStyle:{color:"#009800","margin-left":"50px"}},[r("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(a.excutor)+" ")])])])}),1)],1)])],1)},OV=[];const DX="",BX="";var xs=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{xs=e});const TV={components:{userTask:Y_,bpmnLook:OS},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"+wp.name+"%c v"+wp.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={},r="";try{n=await Xe.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(r=n.data)}catch(a){console.error(a)}return r},async viewFlowChart(){this.flowChartVisible=!0,this.processXml=await this.getXml(this.processDefId),!Date.now()&&Xe.repository.getDiagramUrl({processDefId:this.processDefId,diagramType:1,type:Lb.\u7535\u8111\u7AEF}).then(e=>{e.code==_t.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,r)=>{Xe.pis.getProcessForecast({processDefId:this.processDefId,...e}).then(a=>{this.btnLoading=!1,a.code==_t.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"),r(a)})})},flowForecastClose(){this.flowForecastProcessInstId?Xe.pis.deleteProcessById(this.flowForecastProcessInstId).then(e=>{e.code==_t.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==_t.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,r)=>{if(!Object.values(this._multiNodeParticipant).some(s=>s&&Array.isArray(s)&&s.length>0))return xs.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==_t.success?(this.flag=!1,n(s)):xs.error(s.msg)}).catch(s=>{this.btnLoading=!1,xs.error("\u6D41\u7A0B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),r(s)})})},revivalFlow(e={},n=!1,r="\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,r,"",n,this._multiNodeParticipant).then(p=>{this.btnLoading=!1,p.code==_t.success?(this.flag=!1,a(p)):xs.error(p.msg)}).catch(p=>{this.btnLoading=!1,xs.error("\u6D41\u7A0B\u590D\u6D3B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s(p)})})},Show(e,n="",r=!1){return this.processList=[],this.revival=r,this.processDefId=e,n&&Xe.repository.getProcessDefList(n,"",this.subjectId||"").then(a=>{a.code==_t.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==_t.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,r)=>{this.cancelCallBack=r,Xe.repository.getProcessDefListNew(e).then(a=>{a.code==_t.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==_t.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 r=ky(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:r.intersection?1:0,userIds:r.userIds,postIds:r.postIds,deptIds:r.deptIds})}catch(s){}if(a.code==_t.success){const s=this.processList[n];s.userList=a.data,this.processList[n]=s}})},async getNodeUser({deptId:e,intersection:n,userIds:r,postIds:a,deptIds:s}){return await Xe.user.getTaskAuditor({deptId:e,intersection:n,userIds:r,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,r)=>{e.length==1?(this.processDefId=e[0].id,this.processDefName=e[0].name,this.cancelCallBack=r,Xe.repository.getFirstProcessNode(this.processDefId).then(a=>{a.code==_t.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 r={};try{r=await Xe.tis.getTaskModelDetail(e?{processInstId:n,taskId:e}:{processInstId:n})}catch{r={}}return r.code==200,r},async revivalShow({processInstId:e,businessId:n,taskId:r,deptId:a}){this.processInstId=e,this.hasDeptId=!!a;let s=await this.getProcessInfo({taskId:r,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 xs.warning("\u8BF7\u9009\u62E9\u6D41\u7A0B"),!1;let e={},n={};for(let r in this.userTaskListData){let a=this.userTaskListData[r],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()}}},PS={};var NV=rn(TV,IV,OV,!1,MV,"b3f62330",null,null);function MV(e){for(let n in PS)this[n]=PS[n]}const FV=function(){return NV.exports}();var PV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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[r("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),r("el-button",{on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}])},[r("el-form",{attrs:{"label-width":"100px","status-icon":""}},[e.isUserTask?e._l(e.processList,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{processNode:a}})}):e._e()],2)],1)],1)},RV=[],RS=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{RS=e});const jV={components:{userTask:Y_},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,r)=>{this.cancelCallBack=r,Xe.repository.getFirstProcessNode(e).then(a=>{a.code==_t.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 RS.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={},r={};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},r={...r,...p.vars},e={...e,multiNodeParticipant:n,vars:r}}}this.callbacak&&this.callbacak(e),this.flag=!1},onClickCancel(){this.flag=!1,this.cancelCallBack&&this.cancelCallBack()}}},jS={};var LV=rn(jV,PV,RV,!1,zV,null,null,null);function zV(e){for(let n in jS)this[n]=jS[n]}const QV=function(){return LV.exports}();Promise.resolve().then(()=>xG);var f0={exports:{}},Ue={},p0={exports:{}},LS;function zS(){return LS||(LS=1,function(e){(function(n){var r={},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 S(w,k){for(var Q=[],M=0,H=w.length;M<H;M++)Q.push(w[M].substr(0,k));return Q}function N(w){return function(k,Q,M){var H=M[w].indexOf(Q.charAt(0).toUpperCase()+Q.substr(1).toLowerCase());~H&&(k.month=H)}}function _(w,k){for(w=String(w),k=k||2;w.length<k;)w="0"+w;return w}var B=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],j=["January","February","March","April","May","June","July","August","September","October","November","December"],R=S(j,3),T=S(B,3);r.i18n={dayNamesShort:T,dayNames:B,monthNamesShort:R,monthNames:j,amPm:["am","pm"],DoFn:function(k){return k+["th","st","nd","rd"][k%10>3?0:(k-k%10!==10)*k%10]}};var F={D:function(k){return k.getDay()},DD:function(k){return _(k.getDay())},Do:function(k,Q){return Q.DoFn(k.getDate())},d:function(k){return k.getDate()},dd:function(k){return _(k.getDate())},ddd:function(k,Q){return Q.dayNamesShort[k.getDay()]},dddd:function(k,Q){return Q.dayNames[k.getDay()]},M:function(k){return k.getMonth()+1},MM:function(k){return _(k.getMonth()+1)},MMM:function(k,Q){return Q.monthNamesShort[k.getMonth()]},MMMM:function(k,Q){return Q.monthNames[k.getMonth()]},yy:function(k){return _(String(k.getFullYear()),4).substr(2)},yyyy:function(k){return _(k.getFullYear(),4)},h:function(k){return k.getHours()%12||12},hh:function(k){return _(k.getHours()%12||12)},H:function(k){return k.getHours()},HH:function(k){return _(k.getHours())},m:function(k){return k.getMinutes()},mm:function(k){return _(k.getMinutes())},s:function(k){return k.getSeconds()},ss:function(k){return _(k.getSeconds())},S:function(k){return Math.round(k.getMilliseconds()/100)},SS:function(k){return _(Math.round(k.getMilliseconds()/10),2)},SSS:function(k){return _(k.getMilliseconds(),3)},a:function(k,Q){return k.getHours()<12?Q.amPm[0]:Q.amPm[1]},A:function(k,Q){return k.getHours()<12?Q.amPm[0].toUpperCase():Q.amPm[1].toUpperCase()},ZZ:function(k){var Q=k.getTimezoneOffset();return(Q>0?"-":"+")+_(Math.floor(Math.abs(Q)/60)*100+Math.abs(Q)%60,4)}},v={d:[s,function(w,k){w.day=k}],Do:[s+m,function(w,k){w.day=parseInt(k,10)}],M:[s,function(w,k){w.month=k-1}],yy:[s,function(w,k){var Q=new Date,M=+(""+Q.getFullYear()).substr(0,2);w.year=""+(k>68?M-1:M)+k}],h:[s,function(w,k){w.hour=k}],m:[s,function(w,k){w.minute=k}],s:[s,function(w,k){w.second=k}],yyyy:[p,function(w,k){w.year=k}],S:["\\d",function(w,k){w.millisecond=k*100}],SS:["\\d{2}",function(w,k){w.millisecond=k*10}],SSS:[c,function(w,k){w.millisecond=k}],D:[s,y],ddd:[m,y],MMM:[m,N("monthNamesShort")],MMMM:[m,N("monthNames")],a:[m,function(w,k,Q){var M=k.toLowerCase();M===Q.amPm[0]?w.isPm=!1:M===Q.amPm[1]&&(w.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(w,k){var Q=(k+"").match(/([+-]|\d\d)/gi),M;Q&&(M=+(Q[1]*60)+parseInt(Q[2],10),w.timezoneOffset=Q[0]==="+"?M:-M)}]};v.dd=v.d,v.dddd=v.ddd,v.DD=v.D,v.mm=v.m,v.hh=v.H=v.HH=v.h,v.MM=v.M,v.ss=v.s,v.A=v.a,r.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"},r.format=function(w,k,Q){var M=Q||r.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");k=r.masks[k]||k||r.masks.default;var H=[];return k=k.replace(g,function(ne,re){return H.push(re),"@@@"}),k=k.replace(a,function(ne){return ne in F?F[ne](w,M):ne.slice(1,ne.length-1)}),k.replace(/@@@/g,function(){return H.shift()})},r.parse=function(w,k,Q){var M=Q||r.i18n;if(typeof k!="string")throw new Error("Invalid format in fecha.parse");if(k=r.masks[k]||k,w.length>1e3)return null;var H={},ne=[],re=[];k=k.replace(g,function(_e,W){return re.push(W),"@@@"});var de=O(k).replace(a,function(_e){if(v[_e]){var W=v[_e];return ne.push(W[1]),"("+W[0]+")"}return _e});de=de.replace(/@@@/g,function(){return re.shift()});var me=w.match(new RegExp(de,"i"));if(!me)return null;for(var pe=1;pe<me.length;pe++)ne[pe-1](H,me[pe],M);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=r:n.fecha=r})(void 0)}(p0)),p0.exports}var $r={},Yh={},QS;function HV(){return QS||(QS=1,Yh.__esModule=!0,Yh.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"}}}),Yh}var h0,HS;function VV(){if(HS)return h0;HS=1;var e=function(_){return n(_)&&!r(_)};function n(N){return!!N&&typeof N=="object"}function r(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 B=_&&_.clone===!0;return B&&e(N)?O(p(N),N,_):N}function g(N,_,B){var j=N.slice();return _.forEach(function(R,T){typeof j[T]>"u"?j[T]=m(R,B):e(R)?j[T]=O(N[T],R,B):N.indexOf(R)===-1&&j.push(m(R,B))}),j}function y(N,_,B){var j={};return e(N)&&Object.keys(N).forEach(function(R){j[R]=m(N[R],B)}),Object.keys(_).forEach(function(R){!e(_[R])||!N[R]?j[R]=m(_[R],B):j[R]=O(N[R],_[R],B)}),j}function O(N,_,B){var j=Array.isArray(_),R=Array.isArray(N),T=B||{arrayMerge:g},F=j===R;if(F)if(j){var v=T.arrayMerge||g;return v(N,_,B)}else return y(N,_,B);else return m(_,B)}O.all=function(_,B){if(!Array.isArray(_)||_.length<2)throw new Error("first argument should be an array with at least two elements");return _.reduce(function(j,R){return O(j,R,B)})};var S=O;return h0=S,h0}var Wh={},ct={},Wi={},VS;function US(){if(VS)return Wi;VS=1,Wi.__esModule=!0,Wi.isDefined=Wi.isUndefined=Wi.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};Wi.isString=s,Wi.isObject=c,Wi.isHtmlElement=p;var n=Ri.default,r=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"&&(r.default.prototype.$isServer||typeof document.childNodes!="function")&&(Wi.isFunction=m=function(y){return typeof y=="function"||!1}),Wi.isFunction=m,Wi.isUndefined=function(y){return y===void 0},Wi.isDefined=function(y){return y!=null},Wi}var YS;function Ir(){if(YS)return ct;YS=1,ct.__esModule=!0,ct.isMac=ct.isEmpty=ct.isEqual=ct.arrayEquals=ct.looseEqual=ct.capitalize=ct.kebabCase=ct.autoprefixer=ct.isFirefox=ct.isEdge=ct.isIE=ct.coerceTruthyValueToArray=ct.arrayFind=ct.arrayFindIndex=ct.escapeRegexpString=ct.valueEquals=ct.generateId=ct.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};ct.noop=p,ct.hasOwn=m,ct.toObject=y,ct.getPropByPath=O,ct.rafThrottle=j,ct.objToArray=R;var n=Ri.default,r=s(n),a=US();function s(T){return T&&T.__esModule?T:{default:T}}var c=Object.prototype.hasOwnProperty;function p(){}function m(T,F){return c.call(T,F)}function g(T,F){for(var v in F)T[v]=F[v];return T}function y(T){for(var F={},v=0;v<T.length;v++)T[v]&&g(F,T[v]);return F}ct.getValueByPath=function(F,v){v=v||"";for(var w=v.split("."),k=F,Q=null,M=0,H=w.length;M<H;M++){var ne=w[M];if(!k)break;if(M===H-1){Q=k[ne];break}k=k[ne]}return Q};function O(T,F,v){var w=T;F=F.replace(/\[(\w+)\]/g,".$1"),F=F.replace(/^\./,"");for(var k=F.split("."),Q=0,M=k.length;Q<M-1&&!(!w&&!v);++Q){var H=k[Q];if(H in w)w=w[H];else{if(v)throw new Error("please transfer a valid prop path to form item!");break}}return{o:w,k:k[Q],v:w?w[k[Q]]:null}}ct.generateId=function(){return Math.floor(Math.random()*1e4)},ct.valueEquals=function(F,v){if(F===v)return!0;if(!(F instanceof Array)||!(v instanceof Array)||F.length!==v.length)return!1;for(var w=0;w!==F.length;++w)if(F[w]!==v[w])return!1;return!0},ct.escapeRegexpString=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String(F).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var S=ct.arrayFindIndex=function(F,v){for(var w=0;w!==F.length;++w)if(v(F[w]))return w;return-1};ct.arrayFind=function(F,v){var w=S(F,v);return w!==-1?F[w]:void 0},ct.coerceTruthyValueToArray=function(F){return Array.isArray(F)?F:F?[F]:[]},ct.isIE=function(){return!r.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},ct.isEdge=function(){return!r.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},ct.isFirefox=function(){return!r.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},ct.autoprefixer=function(F){if((typeof F>"u"?"undefined":e(F))!=="object")return F;var v=["transform","transition","animation"],w=["ms-","webkit-"];return v.forEach(function(k){var Q=F[k];k&&Q&&w.forEach(function(M){F[M+k]=Q})}),F},ct.kebabCase=function(F){var v=/([^-])([A-Z])/g;return F.replace(v,"$1-$2").replace(v,"$1-$2").toLowerCase()},ct.capitalize=function(F){return(0,a.isString)(F)?F.charAt(0).toUpperCase()+F.slice(1):F};var N=ct.looseEqual=function(F,v){var w=(0,a.isObject)(F),k=(0,a.isObject)(v);return w&&k?JSON.stringify(F)===JSON.stringify(v):!w&&!k?String(F)===String(v):!1},_=ct.arrayEquals=function(F,v){if(F=F||[],v=v||[],F.length!==v.length)return!1;for(var w=0;w<F.length;w++)if(!N(F[w],v[w]))return!1;return!0};ct.isEqual=function(F,v){return Array.isArray(F)&&Array.isArray(v)?_(F,v):N(F,v)};var B=ct.isEmpty=function(F){if(F==null)return!0;if(typeof F=="boolean")return!1;if(typeof F=="number")return!F;if(F instanceof Error)return F.message==="";switch(Object.prototype.toString.call(F)){case"[object String]":case"[object Array]":return!F.length;case"[object File]":case"[object Map]":case"[object Set]":return!F.size;case"[object Object]":return!Object.keys(F).length}return!1};function j(T){var F=!1;return function(){for(var v=this,w=arguments.length,k=Array(w),Q=0;Q<w;Q++)k[Q]=arguments[Q];F||(F=!0,window.requestAnimationFrame(function(M){T.apply(v,k),F=!1}))}}function R(T){return Array.isArray(T)?T:B(T)?[]:[T]}return ct.isMac=function(){return!r.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)},ct}var WS;function UV(){if(WS)return Wh;WS=1,Wh.__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};Wh.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(r,function(y,O,S,N){var _=void 0;return c[N-1]==="{"&&c[N+y.length]==="}"?S:(_=(0,n.hasOwn)(m,S)?m[S]:null,_==null?"":_)})}return s};var n=Ir(),r=/(%|)\{([0-9a-zA-Z_]+)\}/g;return Wh}var GS;function m0(){if(GS)return $r;GS=1,$r.__esModule=!0,$r.i18n=$r.use=$r.t=void 0;var e=HV(),n=g(e),r=Ri.default,a=g(r),s=VV(),c=g(s),p=UV(),m=g(p);function g(R){return R&&R.__esModule?R:{default:R}}var y=(0,m.default)(a.default),O=n.default,S=!1,N=function(){var T=Object.getPrototypeOf(this||a.default).$t;if(typeof T=="function"&&!!a.default.locale)return S||(S=!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,F){var v=N.apply(this,arguments);if(v!=null)return v;for(var w=T.split("."),k=O,Q=0,M=w.length;Q<M;Q++){var H=w[Q];if(v=k[H],Q===M-1)return y(v,F);if(!v)return"";k=v}return""},B=$r.use=function(T){O=T||O},j=$r.i18n=function(T){N=T||N};return $r.default={use:B,t:_,i18n:j},$r}var JS;function YV(){if(JS)return Ue;JS=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=zS(),n=a(e),r=m0();function a(v){return v&&v.__esModule?v:{default:v}}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,k){for(var Q=[],M=w;M<=k;M++)Q.push(M);return Q},m=Ue.getI18nSettings=function(){return{dayNamesShort:s.map(function(w){return(0,r.t)("el.datepicker.weeks."+w)}),dayNames:s.map(function(w){return(0,r.t)("el.datepicker.weeks."+w)}),monthNamesShort:c.map(function(w){return(0,r.t)("el.datepicker.months."+w)}),monthNames:c.map(function(w,k){return(0,r.t)("el.datepicker.month"+(k+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,k){return w=g(w),w?n.default.format(w,k||"yyyy-MM-dd",m()):""};var O=Ue.parseDate=function(w,k){return n.default.parse(w,k||"yyyy-MM-dd",m())},S=Ue.getDayCountOfMonth=function(w,k){return isNaN(+k)?31:new Date(w,+k+1,0).getDate()};Ue.getDayCountOfYear=function(w){var k=w%400===0||w%100!==0&&w%4===0;return k?366:365},Ue.getFirstDayOfMonth=function(w){var k=new Date(w.getTime());return k.setDate(1),k.getDay()};var N=Ue.prevDate=function(w){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()-k)};Ue.nextDate=function(w){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()+k)},Ue.getStartDateOfMonth=function(w,k){var Q=new Date(w,k,1),M=Q.getDay();return M===0?N(Q,7):N(Q,M)},Ue.getWeekNumber=function(w){if(!y(w))return null;var k=new Date(w.getTime());k.setHours(0,0,0,0),k.setDate(k.getDate()+3-(k.getDay()+6)%7);var Q=new Date(k.getFullYear(),0,4);return 1+Math.round(((k.getTime()-Q.getTime())/864e5-3+(Q.getDay()+6)%7)/7)},Ue.getRangeHours=function(w){var k=[],Q=[];if((w||[]).forEach(function(ne){var re=ne.map(function(de){return de.getHours()});Q=Q.concat(p(re[0],re[1]))}),Q.length)for(var M=0;M<24;M++)k[M]=Q.indexOf(M)===-1;else for(var H=0;H<24;H++)k[H]=!1;return k},Ue.getPrevMonthLastDays=function(w,k){if(k<=0)return[];var Q=new Date(w.getTime());Q.setDate(0);var M=Q.getDate();return B(k).map(function(H,ne){return M-(k-ne-1)})},Ue.getMonthDays=function(w){var k=new Date(w.getFullYear(),w.getMonth()+1,0),Q=k.getDate();return B(Q).map(function(M,H){return H+1})};function _(v,w,k,Q){for(var M=w;M<k;M++)v[M]=Q}Ue.getRangeMinutes=function(w,k){var Q=new Array(60);return w.length>0?w.forEach(function(M){var H=M[0],ne=M[1],re=H.getHours(),de=H.getMinutes(),me=ne.getHours(),pe=ne.getMinutes();re===k&&me!==k?_(Q,de,60,!0):re===k&&me===k?_(Q,de,pe+1,!0):re!==k&&me===k?_(Q,0,pe+1,!0):re<k&&me>k&&_(Q,0,60,!0)}):_(Q,0,60,!0),Q};var B=Ue.range=function(w){return Array.apply(null,{length:w}).map(function(k,Q){return Q})},j=Ue.modifyDate=function(w,k,Q,M){return new Date(k,Q,M,w.getHours(),w.getMinutes(),w.getSeconds(),w.getMilliseconds())},R=Ue.modifyTime=function(w,k,Q,M){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),k,Q,M,w.getMilliseconds())};Ue.modifyWithTimeString=function(w,k){return w==null||!k?w:(k=O(k,"HH:mm:ss"),R(w,k.getHours(),k.getMinutes(),k.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,k){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(k.length===0)return w;var M=function(Se){return n.default.parse(n.default.format(Se,Q),Q)},H=M(w),ne=k.map(function(pe){return pe.map(M)});if(ne.some(function(pe){return H>=pe[0]&&H<=pe[1]}))return w;var re=ne[0][0],de=ne[0][0];ne.forEach(function(pe){re=new Date(Math.min(pe[0],re)),de=new Date(Math.max(pe[1],re))});var me=H<re?re:de;return j(me,w.getFullYear(),w.getMonth(),w.getDate())};Ue.timeWithinRange=function(w,k,Q){var M=T(w,k,Q);return M.getTime()===w.getTime()};var F=Ue.changeYearMonthAndClampDate=function(w,k,Q){var M=Math.min(w.getDate(),S(k,Q));return j(w,k,Q,M)};return Ue.prevMonth=function(w){var k=w.getFullYear(),Q=w.getMonth();return Q===0?F(w,k-1,11):F(w,k,Q-1)},Ue.nextMonth=function(w){var k=w.getFullYear(),Q=w.getMonth();return Q===11?F(w,k+1,0):F(w,k,Q+1)},Ue.prevYear=function(w){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Q=w.getFullYear(),M=w.getMonth();return F(w,Q-k,M)},Ue.nextYear=function(w){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Q=w.getFullYear(),M=w.getMonth();return F(w,Q+k,M)},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,k){return w.getMonth()===k.getMonth()&&w.getFullYear()===k.getFullYear()},Ue}var ln={},KS;function Ca(){if(KS)return ln;KS=1,ln.__esModule=!0,ln.isInContainer=ln.getScrollContainer=ln.isScroll=ln.getStyle=ln.once=ln.off=ln.on=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F};ln.hasClass=N,ln.addClass=_,ln.removeClass=B,ln.setStyle=R;var n=Ri.default,r=a(n);function a(F){return F&&F.__esModule?F:{default:F}}var s=r.default.prototype.$isServer,c=/([\:\-\_]+(.))/g,p=/^moz([A-Z])/,m=s?0:Number(document.documentMode),g=function(v){return(v||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},y=function(v){return v.replace(c,function(w,k,Q,M){return M?Q.toUpperCase():Q}).replace(p,"Moz$1")},O=ln.on=function(){return!s&&document.addEventListener?function(F,v,w){F&&v&&w&&F.addEventListener(v,w,!1)}:function(F,v,w){F&&v&&w&&F.attachEvent("on"+v,w)}}(),S=ln.off=function(){return!s&&document.removeEventListener?function(F,v,w){F&&v&&F.removeEventListener(v,w,!1)}:function(F,v,w){F&&v&&F.detachEvent("on"+v,w)}}();ln.once=function(v,w,k){var Q=function M(){k&&k.apply(this,arguments),S(v,w,M)};O(v,w,Q)};function N(F,v){if(!F||!v)return!1;if(v.indexOf(" ")!==-1)throw new Error("className should not contain space.");return F.classList?F.classList.contains(v):(" "+F.className+" ").indexOf(" "+v+" ")>-1}function _(F,v){if(!!F){for(var w=F.className,k=(v||"").split(" "),Q=0,M=k.length;Q<M;Q++){var H=k[Q];!H||(F.classList?F.classList.add(H):N(F,H)||(w+=" "+H))}F.classList||F.setAttribute("class",w)}}function B(F,v){if(!(!F||!v)){for(var w=v.split(" "),k=" "+F.className+" ",Q=0,M=w.length;Q<M;Q++){var H=w[Q];!H||(F.classList?F.classList.remove(H):N(F,H)&&(k=k.replace(" "+H+" "," ")))}F.classList||F.setAttribute("class",g(k))}}var j=ln.getStyle=m<9?function(F,v){if(!s){if(!F||!v)return null;v=y(v),v==="float"&&(v="styleFloat");try{switch(v){case"opacity":try{return F.filters.item("alpha").opacity/100}catch{return 1}default:return F.style[v]||F.currentStyle?F.currentStyle[v]:null}}catch{return F.style[v]}}}:function(F,v){if(!s){if(!F||!v)return null;v=y(v),v==="float"&&(v="cssFloat");try{var w=document.defaultView.getComputedStyle(F,"");return F.style[v]||w?w[v]:null}catch{return F.style[v]}}};function R(F,v,w){if(!(!F||!v))if((typeof v>"u"?"undefined":e(v))==="object")for(var k in v)v.hasOwnProperty(k)&&R(F,k,v[k]);else v=y(v),v==="opacity"&&m<9?F.style.filter=isNaN(w)?"":"alpha(opacity="+w*100+")":F.style[v]=w}var T=ln.isScroll=function(v,w){if(!s){var k=w!=null,Q=k?w?j(v,"overflow-y"):j(v,"overflow-x"):j(v,"overflow");return Q.match(/(scroll|auto|overlay)/)}};return ln.getScrollContainer=function(v,w){if(!s){for(var k=v;k;){if([window,document,document.documentElement].includes(k))return window;if(T(k,w))return k;k=k.parentNode}return k}},ln.isInContainer=function(v,w){if(s||!v||!w)return!1;var k=v.getBoundingClientRect(),Q=void 0;return[window,document,document.documentElement,null,void 0].includes(w)?Q={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:Q=w.getBoundingClientRect(),k.top<Q.bottom&&k.bottom>Q.top&&k.right>Q.left&&k.left<Q.right},ln}var Gh={},XS;function ws(){if(XS)return Gh;XS=1,Gh.__esModule=!0;function e(n,r,a){this.$children.forEach(function(s){var c=s.$options.componentName;c===n?s.$emit.apply(s,[r].concat(a)):e.apply(s,[n,r].concat([a]))})}return Gh.default={methods:{dispatch:function(r,a,s){for(var c=this.$parent||this.$root,p=c.$options.componentName;c&&(!p||p!==r);)c=c.$parent,c&&(p=c.$options.componentName);c&&c.$emit.apply(c,[a].concat(s))},broadcast:function(r,a,s){e.call(this,r,a,s)}}},Gh}var Jh={},ZS;function g0(){if(ZS)return Jh;ZS=1,Jh.__esModule=!0;var e=m0();return Jh.default={methods:{t:function(){for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return e.t.apply(this,a)}}},Jh}var Kh={},tc={},Xh={},$S;function Zh(){return $S||($S=1,Xh.__esModule=!0,Xh.default=function(e){for(var n=1,r=arguments.length;n<r;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}),Xh}var $h={},qS;function WV(){if(qS)return $h;qS=1,$h.__esModule=!0;var e=Ri.default,n=a(e),r=Ca();function a(S){return S&&S.__esModule?S:{default:S}}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,_,B,j,R){if(!n.default.prototype.$isServer&&!(!N||_===void 0)){this.modalFade=R;for(var T=this.modalStack,F=0,v=T.length;F<v;F++){var w=T[F];if(w.id===N)return}var k=m();if((0,r.addClass)(k,"v-modal"),this.modalFade&&!s&&(0,r.addClass)(k,"v-modal-enter"),j){var Q=j.trim().split(/\s+/);Q.forEach(function(M){return(0,r.addClass)(k,M)})}setTimeout(function(){(0,r.removeClass)(k,"v-modal-enter")},200),B&&B.parentNode&&B.parentNode.nodeType!==11?B.parentNode.appendChild(k):document.body.appendChild(k),_&&(k.style.zIndex=_),k.tabIndex=0,k.style.display="",this.modalStack.push({id:N,zIndex:_,modalClass:j})}},closeModal:function(N){var _=this.modalStack,B=m();if(_.length>0){var j=_[_.length-1];if(j.id===N){if(j.modalClass){var R=j.modalClass.trim().split(/\s+/);R.forEach(function(F){return(0,r.removeClass)(B,F)})}_.pop(),_.length>0&&(B.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,r.addClass)(B,"v-modal-leave"),setTimeout(function(){_.length===0&&(B.parentNode&&B.parentNode.removeChild(B),B.style.display="none",y.modalDom=void 0),(0,r.removeClass)(B,"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(S){if(S.keyCode===27){var N=O();N&&N.closeOnPressEscape&&(N.handleClose?N.handleClose():N.handleAction?N.handleAction("cancel"):N.close())}}),$h.default=y,$h}var qh={},e5;function A0(){if(e5)return qh;e5=1,qh.__esModule=!0,qh.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=Ri.default,n=r(e);function r(s){return s&&s.__esModule?s:{default:s}}var a=void 0;return qh}var t5;function n5(){if(t5)return tc;t5=1,tc.__esModule=!0,tc.PopupManager=void 0;var e=Ri.default,n=y(e),r=Zh(),a=y(r),s=WV(),c=y(s),p=A0(),m=y(p),g=Ca();function y(N){return N&&N.__esModule?N:{default:N}}var O=1,S=void 0;return tc.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 B=this;if(_){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,n.default.nextTick(function(){B.open()}))}else this.close()}},methods:{open:function(_){var B=this;this.rendered||(this.rendered=!0);var j=(0,a.default)({},this.$props||this,_);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var R=Number(j.openDelay);R>0?this._openTimer=setTimeout(function(){B._openTimer=null,B.doOpen(j)},R):this.doOpen(j)},doOpen:function(_){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var B=this.$el,j=_.modal,R=_.zIndex;if(R&&(c.default.zIndex=R),j&&(this._closing&&(c.default.closeModal(this._popupId),this._closing=!1),c.default.openModal(this._popupId,c.default.nextZIndex(),this.modalAppendToBody?void 0:B,_.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)),S=(0,m.default)();var T=document.documentElement.clientHeight<document.body.scrollHeight,F=(0,g.getStyle)(document.body,"overflowY");S>0&&(T||F==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+S+"px"),(0,g.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(B).position==="static"&&(B.style.position="absolute"),B.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 B=Number(this.closeDelay);B>0?this._closeTimer=setTimeout(function(){_._closeTimer=null,_.doClose()},B):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}}},tc.PopupManager=c.default,tc}var v0={exports:{}},i5;function GV(){return i5||(i5=1,function(e){var n=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};(function(r,a){n(e)==="object"&&e.exports?e.exports=a():r.Popper=a()})(void 0,function(){var r=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(v,w,k){this._reference=v.jquery?v[0]:v,this.state={};var Q=typeof w>"u"||w===null,M=w&&Object.prototype.toString.call(w)==="[object Object]";return Q||M?this._popper=this.parse(M?w:{}):this._popper=w.jquery?w[0]:w,this._options=Object.assign({},a,k),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[F("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},s.prototype.update=function(){var v={instance:this,styles:{}};v.placement=this._options.placement,v._originalPlacement=this._options.placement,v.offsets=this._getOffsets(this._popper,this._reference,v.placement),v.boundaries=this._getBoundaries(v,this._options.boundariesPadding,this._options.boundariesElement),v=this.runModifiers(v,this._options.modifiers),typeof this.state.updateCallback=="function"&&this.state.updateCallback(v)},s.prototype.onCreate=function(v){return v(this),this},s.prototype.onUpdate=function(v){return this.state.updateCallback=v,this},s.prototype.parse=function(v){var w={tagName:"div",classNames:["popper"],attributes:[],parent:r.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};v=Object.assign({},w,v);var k=r.document,Q=k.createElement(v.tagName);if(ne(Q,v.classNames),re(Q,v.attributes),v.contentType==="node"?Q.appendChild(v.content.jquery?v.content[0]:v.content):v.contentType==="html"?Q.innerHTML=v.content:Q.textContent=v.content,v.arrowTagName){var M=k.createElement(v.arrowTagName);ne(M,v.arrowClassNames),re(M,v.arrowAttributes),Q.appendChild(M)}var H=v.parent.jquery?v.parent[0]:v.parent;if(typeof H=="string"){if(H=k.querySelectorAll(v.parent),H.length>1&&console.warn("WARNING: the given `parent` query("+v.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(Q),Q;function ne(de,me){me.forEach(function(pe){de.classList.add(pe)})}function re(de,me){me.forEach(function(pe){de.setAttribute(pe.split(":")[0],pe.split(":")[1]||"")})}},s.prototype._getPosition=function(v,w){if(O(w),this._options.forceAbsolute)return"absolute";var k=N(w);return k?"fixed":"absolute"},s.prototype._getOffsets=function(v,w,k){k=k.split("-")[0];var Q={};Q.position=this.state.position;var M=Q.position==="fixed",H=T(w,O(v),M),ne=c(v);return["right","left"].indexOf(k)!==-1?(Q.top=H.top+H.height/2-ne.height/2,k==="left"?Q.left=H.left-ne.width:Q.left=H.right):(Q.left=H.left+H.width/2-ne.width/2,k==="top"?Q.top=H.top-ne.height:Q.top=H.bottom),Q.width=ne.width,Q.height=ne.height,{popper:Q,reference:H}},s.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),r.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var v=S(this._reference);(v===r.document.body||v===r.document.documentElement)&&(v=r),v.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=v}},s.prototype._removeEventListeners=function(){r.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(v,w,k){var Q={},M,H;if(k==="window"){var ne=r.document.body,re=r.document.documentElement;H=Math.max(ne.scrollHeight,ne.offsetHeight,re.clientHeight,re.scrollHeight,re.offsetHeight),M=Math.max(ne.scrollWidth,ne.offsetWidth,re.clientWidth,re.scrollWidth,re.offsetWidth),Q={top:0,right:M,bottom:H,left:0}}else if(k==="viewport"){var de=O(this._popper),me=S(this._popper),pe=j(de),Se=function(ie){return ie==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):ie.scrollTop},ye=function(ie){return ie==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):ie.scrollLeft},_e=v.offsets.popper.position==="fixed"?0:Se(me),W=v.offsets.popper.position==="fixed"?0:ye(me);Q={top:0-(pe.top-_e),right:r.document.documentElement.clientWidth-(pe.left-W),bottom:r.document.documentElement.clientHeight-(pe.top-_e),left:0-(pe.left-W)}}else O(this._popper)===k?Q={top:0,left:0,right:k.clientWidth,bottom:k.clientHeight}:Q=j(k);return Q.left+=w,Q.right-=w,Q.top=Q.top+w,Q.bottom=Q.bottom-w,Q},s.prototype.runModifiers=function(v,w,k){var Q=w.slice();return k!==void 0&&(Q=this._options.modifiers.slice(0,g(this._options.modifiers,k))),Q.forEach(function(M){B(M)&&(v=M.call(this,v))}.bind(this)),v},s.prototype.isModifierRequired=function(v,w){var k=g(this._options.modifiers,v);return!!this._options.modifiers.slice(0,k).filter(function(Q){return Q===w}).length},s.prototype.modifiers={},s.prototype.modifiers.applyStyle=function(v){var w={position:v.offsets.popper.position},k=Math.round(v.offsets.popper.left),Q=Math.round(v.offsets.popper.top),M;return this._options.gpuAcceleration&&(M=F("transform"))?(w[M]="translate3d("+k+"px, "+Q+"px, 0)",w.top=0,w.left=0):(w.left=k,w.top=Q),Object.assign(w,v.styles),_(this._popper,w),this._popper.setAttribute("x-placement",v.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&v.offsets.arrow&&_(v.arrowElement,v.offsets.arrow),v},s.prototype.modifiers.shift=function(v){var w=v.placement,k=w.split("-")[0],Q=w.split("-")[1];if(Q){var M=v.offsets.reference,H=m(v.offsets.popper),ne={y:{start:{top:M.top},end:{top:M.top+M.height-H.height}},x:{start:{left:M.left},end:{left:M.left+M.width-H.width}}},re=["bottom","top"].indexOf(k)!==-1?"x":"y";v.offsets.popper=Object.assign(H,ne[re][Q])}return v},s.prototype.modifiers.preventOverflow=function(v){var w=this._options.preventOverflowOrder,k=m(v.offsets.popper),Q={left:function(){var H=k.left;return k.left<v.boundaries.left&&(H=Math.max(k.left,v.boundaries.left)),{left:H}},right:function(){var H=k.left;return k.right>v.boundaries.right&&(H=Math.min(k.left,v.boundaries.right-k.width)),{left:H}},top:function(){var H=k.top;return k.top<v.boundaries.top&&(H=Math.max(k.top,v.boundaries.top)),{top:H}},bottom:function(){var H=k.top;return k.bottom>v.boundaries.bottom&&(H=Math.min(k.top,v.boundaries.bottom-k.height)),{top:H}}};return w.forEach(function(M){v.offsets.popper=Object.assign(k,Q[M]())}),v},s.prototype.modifiers.keepTogether=function(v){var w=m(v.offsets.popper),k=v.offsets.reference,Q=Math.floor;return w.right<Q(k.left)&&(v.offsets.popper.left=Q(k.left)-w.width),w.left>Q(k.right)&&(v.offsets.popper.left=Q(k.right)),w.bottom<Q(k.top)&&(v.offsets.popper.top=Q(k.top)-w.height),w.top>Q(k.bottom)&&(v.offsets.popper.top=Q(k.bottom)),v},s.prototype.modifiers.flip=function(v){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!"),v;if(v.flipped&&v.placement===v._originalPlacement)return v;var w=v.placement.split("-")[0],k=p(w),Q=v.placement.split("-")[1]||"",M=[];return this._options.flipBehavior==="flip"?M=[w,k]:M=this._options.flipBehavior,M.forEach(function(H,ne){if(!(w!==H||M.length===ne+1)){w=v.placement.split("-")[0],k=p(w);var re=m(v.offsets.popper),de=["right","bottom"].indexOf(w)!==-1;(de&&Math.floor(v.offsets.reference[w])>Math.floor(re[k])||!de&&Math.floor(v.offsets.reference[w])<Math.floor(re[k]))&&(v.flipped=!0,v.placement=M[ne+1],Q&&(v.placement+="-"+Q),v.offsets.popper=this._getOffsets(this._popper,this._reference,v.placement).popper,v=this.runModifiers(v,this._options.modifiers,this._flip))}}.bind(this)),v},s.prototype.modifiers.offset=function(v){var w=this._options.offset,k=v.offsets.popper;return v.placement.indexOf("left")!==-1?k.top-=w:v.placement.indexOf("right")!==-1?k.top+=w:v.placement.indexOf("top")!==-1?k.left-=w:v.placement.indexOf("bottom")!==-1&&(k.left+=w),v},s.prototype.modifiers.arrow=function(v){var w=this._options.arrowElement,k=this._options.arrowOffset;if(typeof w=="string"&&(w=this._popper.querySelector(w)),!w)return v;if(!this._popper.contains(w))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),v;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!"),v;var Q={},M=v.placement.split("-")[0],H=m(v.offsets.popper),ne=v.offsets.reference,re=["left","right"].indexOf(M)!==-1,de=re?"height":"width",me=re?"top":"left",pe=re?"left":"top",Se=re?"bottom":"right",ye=c(w)[de];ne[Se]-ye<H[me]&&(v.offsets.popper[me]-=H[me]-(ne[Se]-ye)),ne[me]+ye>H[Se]&&(v.offsets.popper[me]+=ne[me]+ye-H[Se]);var _e=ne[me]+(k||ne[de]/2-ye/2),W=_e-H[me];return W=Math.max(Math.min(H[de]-ye-8,W),8),Q[me]=W,Q[pe]="",v.offsets.arrow=Q,v.arrowElement=w,v};function c(v){var w=v.style.display,k=v.style.visibility;v.style.display="block",v.style.visibility="hidden",v.offsetWidth;var Q=r.getComputedStyle(v),M=parseFloat(Q.marginTop)+parseFloat(Q.marginBottom),H=parseFloat(Q.marginLeft)+parseFloat(Q.marginRight),ne={width:v.offsetWidth+H,height:v.offsetHeight+M};return v.style.display=w,v.style.visibility=k,ne}function p(v){var w={left:"right",right:"left",bottom:"top",top:"bottom"};return v.replace(/left|right|bottom|top/g,function(k){return w[k]})}function m(v){var w=Object.assign({},v);return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function g(v,w){var k=0,Q;for(Q in v){if(v[Q]===w)return k;k++}return null}function y(v,w){var k=r.getComputedStyle(v,null);return k[w]}function O(v){var w=v.offsetParent;return w===r.document.body||!w?r.document.documentElement:w}function S(v){var w=v.parentNode;return w?w===r.document?r.document.body.scrollTop||r.document.body.scrollLeft?r.document.body:r.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:S(v.parentNode):v}function N(v){return v===r.document.body?!1:y(v,"position")==="fixed"?!0:v.parentNode?N(v.parentNode):v}function _(v,w){function k(Q){return Q!==""&&!isNaN(parseFloat(Q))&&isFinite(Q)}Object.keys(w).forEach(function(Q){var M="";["width","height","top","right","bottom","left"].indexOf(Q)!==-1&&k(w[Q])&&(M="px"),v.style[Q]=w[Q]+M})}function B(v){var w={};return v&&w.toString.call(v)==="[object Function]"}function j(v){var w={width:v.offsetWidth,height:v.offsetHeight,left:v.offsetLeft,top:v.offsetTop};return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function R(v){var w=v.getBoundingClientRect(),k=navigator.userAgent.indexOf("MSIE")!=-1,Q=k&&v.tagName==="HTML"?-v.scrollTop:w.top;return{left:w.left,top:Q,right:w.right,bottom:w.bottom,width:w.right-w.left,height:w.bottom-Q}}function T(v,w,k){var Q=R(v),M=R(w);if(k){var H=S(w);M.top+=H.scrollTop,M.bottom+=H.scrollTop,M.left+=H.scrollLeft,M.right+=H.scrollLeft}var ne={top:Q.top-M.top,left:Q.left-M.left,bottom:Q.top-M.top+Q.height,right:Q.left-M.left+Q.width,width:Q.width,height:Q.height};return ne}function F(v){for(var w=["","ms","webkit","moz","o"],k=0;k<w.length;k++){var Q=w[k]?w[k]+v.charAt(0).toUpperCase()+v.slice(1):v;if(typeof r.document.body.style[Q]<"u")return Q}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 k=Object(w),Q=1;Q<arguments.length;Q++){var M=arguments[Q];if(M!=null){M=Object(M);for(var H=Object.keys(M),ne=0,re=H.length;ne<re;ne++){var de=H[ne],me=Object.getOwnPropertyDescriptor(M,de);me!==void 0&&me.enumerable&&(k[de]=M[de])}}}return k}}),s})}(v0)),v0.exports}var r5;function em(){if(r5)return Kh;r5=1,Kh.__esModule=!0;var e=Ri.default,n=a(e),r=n5();function a(p){return p&&p.__esModule?p:{default:p}}var s=n.default.prototype.$isServer?function(){}:GV(),c=function(m){return m.stopPropagation()};return Kh.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(S){m.$emit("created",m),m.resetTransformOrigin(),m.$nextTick(m.updatePopper)}),typeof g.onUpdate=="function"&&this.popperJS.onUpdate(g.onUpdate),this.popperJS._popper.style.zIndex=r.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",c))}},updatePopper:function(){var m=this.popperJS;m?(m.update(),m._popper&&(m._popper.style.zIndex=r.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)}},Kh}var b0={exports:{}},tm={},a5;function o5(){if(a5)return tm;a5=1,tm.__esModule=!0;var e=Ir();return tm.default={mounted:function(){if(process.env.NODE_ENV!=="production"&&!!this.$vnode){var r=this.getMigratingConfig(),a=r.props,s=a===void 0?{}:a,c=r.events,p=c===void 0?{}:c,m=this.$vnode,g=m.data,y=m.componentOptions,O=g.attrs||{},S=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 S)_=(0,e.kebabCase)(_),p[_]&&console.warn("[Element Migrating]["+this.$options.name+"][Event]: "+p[_])}},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}},tm}var yd={},s5;function nm(){if(s5)return yd;s5=1,yd.__esModule=!0,yd.isDef=e,yd.isKorean=n;function e(r){return r!=null}function n(r){var a=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return a.test(r)}return yd}var l5;function _0(){return l5||(l5=1,function(e){e.exports=function(n){var r={};function a(s){if(r[s])return r[s].exports;var c=r[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=r,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,r,a){a.d(r,"a",function(){return s});function s(c,p,m,g,y,O,S,N){var _=typeof c=="function"?c.options:c;p&&(_.render=p,_.staticRenderFns=m,_._compiled=!0),g&&(_.functional=!0),O&&(_._scopeId="data-v-"+O);var B;if(S?(B=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(S)},_._ssrRegister=B):y&&(B=N?function(){y.call(this,this.$root.$options.shadowRoot)}:y),B)if(_.functional){_._injectStyles=B;var j=_.render;_.render=function(F,v){return B.call(v),j(F,v)}}else{var R=_.beforeCreate;_.beforeCreate=R?[].concat(R,B):[B]}return{exports:c,options:_}}},11:function(n,r){n.exports=o5()},21:function(n,r){n.exports=nm()},4:function(n,r){n.exports=ws()},75:function(n,r,a){a.r(r);var s=function(){var M=this,H=M.$createElement,ne=M._self._c||H;return ne("div",{class:[M.type==="textarea"?"el-textarea":"el-input",M.inputSize?"el-input--"+M.inputSize:"",{"is-disabled":M.inputDisabled,"is-exceed":M.inputExceed,"el-input-group":M.$slots.prepend||M.$slots.append,"el-input-group--append":M.$slots.append,"el-input-group--prepend":M.$slots.prepend,"el-input--prefix":M.$slots.prefix||M.prefixIcon,"el-input--suffix":M.$slots.suffix||M.suffixIcon||M.clearable||M.showPassword}],on:{mouseenter:function(re){M.hovering=!0},mouseleave:function(re){M.hovering=!1}}},[M.type!=="textarea"?[M.$slots.prepend?ne("div",{staticClass:"el-input-group__prepend"},[M._t("prepend")],2):M._e(),M.type!=="textarea"?ne("input",M._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:M.tabindex,type:M.showPassword?M.passwordVisible?"text":"password":M.type,disabled:M.inputDisabled,readonly:M.readonly,autocomplete:M.autoComplete||M.autocomplete,"aria-label":M.label},on:{compositionstart:M.handleCompositionStart,compositionupdate:M.handleCompositionUpdate,compositionend:M.handleCompositionEnd,input:M.handleInput,focus:M.handleFocus,blur:M.handleBlur,change:M.handleChange}},"input",M.$attrs,!1)):M._e(),M.$slots.prefix||M.prefixIcon?ne("span",{staticClass:"el-input__prefix"},[M._t("prefix"),M.prefixIcon?ne("i",{staticClass:"el-input__icon",class:M.prefixIcon}):M._e()],2):M._e(),M.getSuffixVisible()?ne("span",{staticClass:"el-input__suffix"},[ne("span",{staticClass:"el-input__suffix-inner"},[!M.showClear||!M.showPwdVisible||!M.isWordLimitVisible?[M._t("suffix"),M.suffixIcon?ne("i",{staticClass:"el-input__icon",class:M.suffixIcon}):M._e()]:M._e(),M.showClear?ne("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(re){re.preventDefault()},click:M.clear}}):M._e(),M.showPwdVisible?ne("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:M.handlePasswordVisible}}):M._e(),M.isWordLimitVisible?ne("span",{staticClass:"el-input__count"},[ne("span",{staticClass:"el-input__count-inner"},[M._v(`
41
41
  `+M._s(M.textLength)+"/"+M._s(M.upperLimit)+`
42
42
  `)])]):M._e()],2),M.validateState?ne("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",M.validateIcon]}):M._e()]):M._e(),M.$slots.append?ne("div",{staticClass:"el-input-group__append"},[M._t("append")],2):M._e()]:ne("textarea",M._b({ref:"textarea",staticClass:"el-textarea__inner",style:M.textareaStyle,attrs:{tabindex:M.tabindex,disabled:M.inputDisabled,readonly:M.readonly,autocomplete:M.autoComplete||M.autocomplete,"aria-label":M.label},on:{compositionstart:M.handleCompositionStart,compositionupdate:M.handleCompositionUpdate,compositionend:M.handleCompositionEnd,input:M.handleInput,focus:M.handleFocus,blur:M.handleBlur,change:M.handleChange}},"textarea",M.$attrs,!1)),M.isWordLimitVisible&&M.type==="textarea"?ne("span",{staticClass:"el-input__count"},[M._v(M._s(M.textLength)+"/"+M._s(M.upperLimit))]):M._e()],2)},c=[];s._withStripped=!0;var p=a(4),m=a.n(p),g=a(11),y=a.n(g),O=void 0,S=`
43
43
  height:0 !important;