ecinc-cloud-wappaio 9.6.430 → 9.6.431

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(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ecwappaio"]=t(require("vue")):e["ecwappaio"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__9274__){return function(){var __webpack_modules__={35003:function(e,t){var i,n,r;(function(o,a){n=[],i=a,r="function"===typeof i?i.apply(t,n):i,void 0===r||(e.exports=r)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var i,n,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(p.stack)||a.exec(p.stack),l=s&&s[1]||!1,d=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");l===c&&(i=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(d-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=i.replace(n,"$1").trim());for(var f=0;f<u.length;f++){if("interactive"===u[f].readyState)return u[f];if(u[f].src===l)return u[f];if(l===c&&u[f].innerHTML&&u[f].innerHTML.trim()===r)return u[f]}return null}}return e}))},74575:function(e,t,i){"use strict";i.d(t,{A:function(){return d}});var n=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[e.vo.parentName?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"parentName",expression:"'parentName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.vo.parentName)}})])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" "+e._s(e.nameLabel)+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.nameLabel,rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"name",placeholder:e.$tx("common.plInputContent",{content:e.nameLabel},"请输入".concat(e.nameLabel))},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}])})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" "+e._s(e.codeLabel)+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.codeLabel,rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"code",placeholder:e.$tx("common.plInputContent",{content:e.codeLabel},"请输入".concat(e.codeLabel))},model:{value:e.vo.code,callback:function(t){e.$set(e.vo,"code",t)},expression:"vo.code"}},[2==e.vo.moduleLevel||3==e.vo.leafType||4==e.vo.leafType?t("el-button",{attrs:{slot:"append",icon:"el-icon-more"},on:{click:e.selectMenuIcon},slot:"append"}):e._e()],1)],1)]}}])})],1)]),1==e.vo.moduleLevel?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"columnAbbre",expression:"'columnAbbre'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("栏目简称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"description",placeholder:e.$tx("ecwplat.menuForm.fields.columnAbbreEnter","请输入栏目简称")},model:{value:e.vo.description,callback:function(t){e.$set(e.vo,"description",t)},expression:"vo.description"}})],1)]):e._e(),1!==e.vo.moduleLevel?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"menuType",expression:"'menuType'"}]},[e._v("菜单类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[e.isWflowMenus?t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"approvalMenu",expression:"'approvalMenu'"}]},[e._v("审批菜单组")]):t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuType","菜单类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"leafFlag",placeholder:e.$tx("ecwplat.menuForm.fields.selectmenuType","请选择菜单类型")},model:{value:e.vo.leafFlag,callback:function(t){e.$set(e.vo,"leafFlag",t)},expression:"vo.leafFlag"}},e._l(e.leafFlagOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}],null,!1,2896587604)})],1)]):e._e(),e.isWflowMenus?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"moduleSubmenu",expression:"'moduleSubmenu'"}]},[e._v("审批模块子菜单")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.moduleSubmenu","审批模块子菜单"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-select",{staticStyle:{width:"732px"},attrs:{name:"wflowMenuType",placeholder:e.$tx("ecwplat.menuForm.fields.selectModuleSubmenu","请选择审批模块子菜单")},on:{change:e.updateMenuItemView},model:{value:e.wflowMenuType,callback:function(t){e.wflowMenuType=t},expression:"wflowMenuType"}},e._l(e.wflowMenuTypeOptions,(function(e,i){return t("el-option",{key:i,attrs:{label:e.text,value:e.value}})})),1)],1)]}}],null,!1,2177602340)}),t("el-link",{staticStyle:{"margin-left":"10px",right:"0px"},attrs:{underline:!1},on:{click:e.previewSubMenuItems}},[e._v("查看审批菜单示例")])],1)]):e._e(),!e.isWflowMenus||1!=e.wflowMenuType&&2!=e.wflowMenuType?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"myCreatedURL",expression:"'myCreatedURL'"}]},[e._v("我创建的列表URL")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.myCreatedURL","我创建的列表URL"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"listMyCratedPageUrl",placeholder:e.$tx("ecwplat.menuForm.fields.enterMyCreatedURL","请输入我创建的列表URL"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.passenger.listMyCratedPageUrl,callback:function(t){e.$set(e.vo.passenger,"listMyCratedPageUrl",t)},expression:"vo.passenger.listMyCratedPageUrl"}})],1)]}}],null,!1,1791232420)})],1)]),e.isWflowMenus?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"listURL",expression:"'listURL'"}],attrs:{dataType:e.$tx("ecwplat.menuForm.allFile","全部")}},[e._v(e._s(this.$tx("ecwplat.menuForm.allFile","全部"))+"列表URL")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.allFile","全部")+"列表URL",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"listAllFilepageUrl",placeholder:e.$tx("ecwplat.menuForm.fields.enterListURL",{dataType:e.$tx("ecwplat.menuForm.allFile","全部")},"{dataType}列表URL"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.passenger.listAllFilepageUrl,callback:function(t){e.$set(e.vo.passenger,"listAllFilepageUrl",t)},expression:"vo.passenger.listAllFilepageUrl"}})],1)]}}],null,!1,1742495918)})],1)]):e._e(),e.isWflowMenus&&1==e.wflowMenuType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"approvalCode",expression:"'approvalCode'"}]},[e._v("审批模块业务代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.approvalCode","审批模块业务代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:e.$tx("ecwplat.menuForm.fields.enterApprovalCode","请输入审批模块业务代码,例:fawen,shouwen,hytz")},model:{value:e.vo.passenger.busiCode,callback:function(t){e.$set(e.vo.passenger,"busiCode",t)},expression:"vo.passenger.busiCode"}})],1)]}}],null,!1,471353048)})],1)]):e._e(),e.refresh||1!==e.vo.moduleLevel&&(1===e.vo.moduleLevel||1!==e.vo.leafFlag)||e.isWflowMenus?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"pageContentType",expression:"'pageContentType'"}]},[e._v("页面内容类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.pageContentType","页面内容类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"leafType",placeholder:e.$tx("ecwplat.menuForm.fields.selectPageContentType","请选择页面内容类型")},model:{value:e.vo.leafType,callback:function(t){e.$set(e.vo,"leafType",t)},expression:"vo.leafType"}},e._l(e.leafTypeOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}],null,!1,2308690411)})],1)]),1!==e.vo.leafFlag||e.isWflowMenus?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"openType",expression:"'openType'"}]},[e._v("打开方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.openType","打开方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"target",placeholder:e.$tx("ecwplat.menuForm.fields.selectOpenType","请选择打开方式")},model:{value:e.vo.target,callback:function(t){e.$set(e.vo,"target",t)},expression:"vo.target"}},e._l(e.targetOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}],null,!1,859240764)})],1)]),e.vo.moduleLevel>=2&&0===e.vo.leafFlag&&!e.isWflowMenus?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"submenuStyle",expression:"'submenuStyle'"}]},[e._v("子菜单样式")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.submenuStyle","子菜单样式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"target",placeholder:e.$tx("ecwplat.menuForm.fields.selectSubmenuStyle","请选择子菜单样式")},model:{value:e.vo.target,callback:function(t){e.$set(e.vo,"target",t)},expression:"vo.target"}},e._l(e.targetOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}],null,!1,454132852)})],1)]):e._e(),1!==e.vo.leafFlag||1!==e.vo.leafType&&2!==e.vo.leafType&&5!==e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navName",expression:"'navName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("页面导航名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"listNavName",placeholder:e.$tx("ecwplat.menuForm.fields.navNameEnter","请输入页面导航名称")},model:{value:e.vo.listNavName,callback:function(t){e.$set(e.vo,"listNavName",t)},expression:"vo.listNavName"}})],1)]),1!==e.vo.leafFlag||3===e.vo.leafType||5===e.vo.leafType||6===e.vo.leafType||1===e.vo.leafType||e.isWflowMenus?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"menuLink",expression:"'menuLink'"}]},[e._v("菜单链接")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuLink","菜单链接"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接")},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,1000627797)})],1)]),1!==e.vo.leafFlag||1!==e.vo.leafType&&5!==e.vo.leafType&&6!==e.vo.leafType||e.isWflowMenus?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"menuLink",expression:"'menuLink'"}]},[e._v("菜单链接")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuLink","菜单链接"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[6===e.vo.leafType?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:e.portalPageListUrl},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}}):5===e.vo.leafType?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:"ureport.reportDefine.list?urlsearch=reportViewType:W"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}}):t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,3601479216)})],1)]),1!==e.vo.leafFlag||1!==e.vo.leafType&&2!==e.vo.leafType||e.isWflowMenus?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormat",expression:"'urlFormat'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("URL格式")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.vo.leafType?t("div",{staticStyle:{"line-height":"20px"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip1",expression:"'urlFormatTip1'"}]},[e._v('1、动态列表视图vue组件url,以英文字符"/"结尾,不包括扩展名')]),t("br"),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip2",expression:"'urlFormatTip2'"}]},[e._v("2、格式为:#/dcontent/base.jobPosition.list/")])]):e._e(),2===e.vo.leafType?t("div",{staticStyle:{"line-height":"20px"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip3",expression:"'urlFormatTip3'"}]},[e._v("1、静态列表视图vue组件文件路径,不包括文件扩展名")]),t("br"),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip4",expression:"'urlFormatTip4'"}]},[e._v("2、格式为:@/wapp/workflow/wfTaskItem/myTodo")])]):e._e()])]),1===e.vo.moduleLevel||1!=e.vo.leafFlag||3!=e.vo.leafType&&4!=e.vo.leafType?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"wfName",expression:"'wfName'"}]},[e._v("流程名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.wfName","流程名称"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"wfName",placeholder:e.$tx("ecwplat.menuForm.fields.wfNameEnter","请输入流程名称"),listviewurl:"workflow.wfdProcess.list"},model:{value:e.vo.wfName,callback:function(t){e.$set(e.vo,"wfName",t)},expression:"vo.wfName"}})],1)]}}],null,!1,223860017)})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"wfCode",expression:"'wfCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("流程编码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfCode",placeholder:e.$tx("ecwplat.menuForm.fields.wfCodeEnter","请输入流程编码")},model:{value:e.vo.wfCode,callback:function(t){e.$set(e.vo,"wfCode",t)},expression:"vo.wfCode"}})],1)]),1!==e.vo.moduleLevel&&1===e.vo.leafFlag&&3===e.vo.leafType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"businessCode",expression:"'businessCode'"}]},[e._v("业务代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.businessCode","业务代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.businessCodeEnter","请输入业务代码,首字母小写"),listviewurl:"base.entityListpage.list"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,3104104198)})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"engineUrl",expression:"'engineUrl'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("引擎(模块)URL")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfEngineUrl",placeholder:e.$tx("ecwplat.menuForm.fields.engineUrlEnter","请输入引擎(模块)URL")},model:{value:e.vo.wfEngineUrl,callback:function(t){e.$set(e.vo,"wfEngineUrl",t)},expression:"vo.wfEngineUrl"}})],1)]):e._e(),1==e.vo.moduleLevel||1!=e.vo.leafFlag||3!=e.vo.leafType&&4!=e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stageName",expression:"'stageName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("起始环节名称")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfNodeName",placeholder:e.$tx("ecwplat.menuForm.fields.stageNameEnter","请输入起始环节名称")},model:{value:e.vo.wfNodeName,callback:function(t){e.$set(e.vo,"wfNodeName",t)},expression:"vo.wfNodeName"}})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stageCode",expression:"'stageCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("H5是否禁用")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"h5Disable"},model:{value:e.vo.h5Disable,callback:function(t){e.$set(e.vo,"h5Disable",t)},expression:"vo.h5Disable"}},[t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption1",expression:"'navOption1'"}],attrs:{label:1}},[e._v("禁用")]),t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption2",expression:"'navOption2'"}],attrs:{label:0}},[e._v("不禁用")])],1)],1)]),1==e.vo.moduleLevel?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navShow",expression:"'navShow'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("导航栏显示")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"visitType"},model:{value:e.vo.topFlag,callback:function(t){e.$set(e.vo,"topFlag",t)},expression:"vo.topFlag"}},[t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption1",expression:"'navOption1'"}],attrs:{label:1}},[e._v("显示")]),t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption2",expression:"'navOption2'"}],attrs:{label:0}},[e._v("不显示")])],1)],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"authoType",expression:"'authoType'"}]},[e._v("授权方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.authoType","授权方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-select",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"visitType",placeholder:e.$tx("ecwplat.menuForm.fields.selectAuthoType","请选择授权方式")},model:{value:e.vo.visitType,callback:function(t){e.$set(e.vo,"visitType",t)},expression:"vo.visitType"}},e._l(e.visitTypeOptions,(function(e,i){return t("el-option",{key:i,attrs:{label:e.text,value:e.value}})})),1)],1)]}}])})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"i18nCode",expression:"'i18nCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("I18N代码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"i18nCode",placeholder:e.$tx("ecwplat.menuForm.fields.i18nCodeEnter","请输入I18N代码")},model:{value:e.vo.i18nCode,callback:function(t){e.$set(e.vo,"i18nCode",t)},expression:"vo.i18nCode"}})],1)]),0!==e.vo.visitType?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"accessAuthorization",expression:"'accessAuthorization'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("访问授权")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("res-roles",{attrs:{"res-id":e.vo.id,"res-type":"MENU","permission-code":"VISIT","root-org-code":e.vo.orgCode,"sys-code":e.vo.sysCode,"visit-type":e.vo.visitType,"select-type":e.resRolesSelectType,change:e.handleResRolesChange,"can-edit":e.canEdit}})],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orderNumber",expression:"'orderNumber'"}]},[e._v("排序序号")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.orderNumber","排序序号"),rules:"required|integer|length:4"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"orderNo",placeholder:e.$tx("ecwplat.menuForm.fields.orderNumberEnter","请输入4位数字排序序号"),"ecng-listpage-dialog":"",listviewurl:"base.entityListpage.list"},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}})],1)]}}])})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"status",expression:"'status'"}]},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.status","状态"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"status",placeholder:e.$tx("ecwplat.menuForm.fields.selectstatus","请选择状态")},model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},e._l(e.statusOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}])})],1)])])])])]),t("el-dialog",{attrs:{visible:e.menuPreviewDialogVisible,"append-to-body":!0,width:"960px","close-on-click-modal":!0,title:"审批菜单组"},on:{"update:visible":function(t){e.menuPreviewDialogVisible=t}}},[t("img",{staticStyle:{width:"100%"},attrs:{src:e.wflowMenuTypeImgs["img"+e.wflowMenuType],alt:""}})]),e.iconDialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],staticClass:"icon-dialog",attrs:{visible:e.iconDialogFormVisible,"append-to-body":!0,"close-on-click-modal":!0,width:"1250px",title:e.$tx("ecwplat.menuForm.fields.menuIcon","选择菜单图标")},on:{"update:visible":function(t){e.iconDialogFormVisible=t}}},[t("Icons")],1):e._e()],1)},r=[],o={name:"MenuItemForm",components:{},props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1},newMenuType:{type:String,default:null},sys:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"menuForm",leafFlagOptions:[{value:0,text:this.$tx("ecwplat.menuForm.folder","文件夹")},{value:1,text:this.$tx("ecwplat.menuForm.menuItem","菜单项")}],statusOptions:[{value:1,text:this.$tx("ecwplat.PageBtns.enable","启用")},{value:0,text:this.$tx("ecwplat.PageBtns.disable","禁用")}],refresh:!1,iconDialogFormVisible:!1,menuPreviewDialogVisible:!1,wflowMenuType:2,wflowMenuTypeOptions:[{value:1,text:"我创建的/我处理的/全部的,左导航+页面标签子菜单"},{value:2,text:"我的申请/全部申请,页面标签子菜单"},{value:3,text:"全部/草稿/处理中/已结束,页面标签子菜单"}],wflowMenuTypeImgs:{img1:i(413),img2:i(59174),img3:i(98191)},wflowMenuItems1:[{code:"MyCreated",name:this.$tx("ecwplat.menuForm.myCreated","我创建的"),text:this.$tx("ecwplat.menuForm.fourStatus","(全部、草稿、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Draft",name:"草稿",urlsearch:"status:0"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]},{code:"MyProcessed",name:this.$tx("ecwplat.menuForm.myProcessed","我处理的"),text:this.$tx("ecwplat.menuForm.twoStatus","(待办、已办)"),children:[{code:"Todo",name:"待办",listpageUrl:"#/dcontent/workflow.wfTaskItem.myTodo/?urlsearch=module:[busiCode]"},{code:"Done",name:"已办",listpageUrl:"#/dcontent/workflow.wfTaskItem.myDone/?urlsearch=module:[busiCode]"}]},{code:"AllFile",name:this.$tx("ecwplat.menuForm.allFile","全部"),text:this.$tx("ecwplat.menuForm.threeStatus","(全部、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]}],wflowMenuItems2:[{code:"AllFile",name:"全部申请",children:[{code:"MyCreated",name:"我的申请",urlsearch:"status<:2"},{code:"AllFile",name:"全部申请",urlsearch:"status<:2"}]}],wflowMenuItems3:[{code:"AllFile",name:this.$tx("ecwplat.menuForm.allFile","全部"),text:this.$tx("ecwplat.menuForm.fourStatus","(全部、草稿、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Draft",name:"草稿",urlsearch:"status:0"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]}],productCodeAll:this.$store.getters.productCodeAll,resRolesSelectType:""}},computed:{nameLabel:function(){return 1===this.vo.moduleLevel?this.$tx("ecwplat.menuForm.columnName","栏目名称"):this.$tx("ecwplat.menuForm.menuName","菜单名称")},codeLabel:function(){return 1===this.vo.moduleLevel?this.$tx("ecwplat.menuForm.columnCode","栏目编码"):this.$tx("ecwplat.menuForm.menuCode","菜单编码")},targetOptions:function(){return 1===this.vo.moduleLevel||1===this.vo.leafFlag?[{value:"mainpage",text:this.$tx("ecwplat.menuForm.lnavWork","左导航+工作区")},{value:"content",text:this.$tx("ecwplat.menuForm.work","工作区")},{value:"_blank",text:this.$tx("ecwplat.menuForm.popUp","弹出窗口")},{value:"_top",text:this.$tx("ecwplat.menuForm.topWAin","顶层窗口")}]:this.vo.moduleLevel>=2&&0===this.vo.leafFlag?[{value:"leftMenuItem",text:this.$tx("ecwplat.menuForm.leftMenu","左侧菜单顶")},{value:"rightLabel",text:this.$tx("ecwplat.menuForm.rightLabel","右侧页面标签")}]:[]},leafTypeOptions:function(){if(1===this.vo.moduleLevel)return[{value:null,text:this.$tx("ecwplat.menuForm.not","无")},{value:0,text:this.$tx("ecwplat.menuForm.regularURL","普通URL")},{value:1,text:this.$tx("ecwplat.menuForm.dynamicListPage","动态列表页面")},{value:2,text:this.$tx("ecwplat.menuForm.staticListPage","静态列表页面")},{value:6,text:this.$tx("ecwplat.menuForm.superiorName","动态门户")}];if(1===this.vo.leafFlag){var e=[{value:0,text:this.$tx("ecwplat.menuForm.regularURL","普通URL")},{value:1,text:this.$tx("ecwplat.menuForm.dynamicList","动态列表")},{value:2,text:this.$tx("ecwplat.menuForm.staticList","静态列表")},{value:6,text:this.$tx("ecwplat.menuForm.superiorName","动态门户")},{value:5,text:this.$tx("ecwplat.menuForm.statisticalReport","统计报表")}];return this.sys&&this.sys.passenger&&0!==this.sys.passenger.workflow&&(e.push({value:3,text:this.$tx("ecwplat.menuForm.standardDraft","起草文件(标准)")}),e.push({value:4,text:this.$tx("ecwplat.menuForm.customizedDraft","起草文件(定制)")})),e}return[]},visitTypeOptions:function(){var e=[{value:0,text:this.$tx("ecwplat.menuForm.Unrestricted","不限制")},{value:1,text:this.$tx("ecwplat.menuForm.designatedRole","指定角色")}];return"plat"===this.vo.orgCode&&-1!==this.productCodeAll.indexOf(this.vo.sysCode)||(e.push({value:2,text:this.$tx("ecwplat.menuForm.desiPerson","指定机构人员")}),e.push({value:3,text:this.$tx("ecwplat.menuForm.specifyGroup","指定群组")})),e},portalPageListUrl:function(){var e="base.portalPage.list_portal";return"plat"===this.vo.orgCode&&-1!==this.productCodeAll.indexOf(this.vo.sysCode)&&(e="base.portalPage.list_product"),e+"?urlsearch=sysCode:"+this.vo.sysCode+";clientType:W"},isWflowMenus:function(){return"wflowMenus"===this.newMenuType}},watch:{vo:{handler:function(e,t){this.updateMenuItemView()},deep:!0}},created:function(){this.$options.components["Icons"]=this.$loadComponent("@/wapp/support/icons/index")},beforeDestroy:function(){},mounted:function(){1!==this.vo.moduleLevel||this.vo.href||this.$set(this.vo,"leafType",null),this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("resRolesSelectType=")&&(this.resRolesSelectType=this.$route.meta.params.split("resRolesSelectType=")[1].split("&")[0]),this.updateMenuItemView()},methods:{previewSubMenuItems:function(){this.menuPreviewDialogVisible=!0},updateMenuItemView:function(){var e=this;this.isWflowMenus&&(this.vo.passenger.wflowMenuItems=this["wflowMenuItems"+this.wflowMenuType],this.vo.moduleLevel>=2&&(2===this.wflowMenuType||3===this.wflowMenuType)?this.vo.target="rightLabel":this.vo.target="leftMenuItem",1===this.wflowMenuType&&(this.wflowMenuItems1[2].name=this.$tx("ecwplat.menuForm.allFile","全部")+(this.vo.name||""))),1===this.vo.moduleLevel&&(null===this.vo.leafType?this.$set(this.vo,"leafFlag",0):this.$set(this.vo,"leafFlag",1),null===this.vo.topFlag&&this.$set(this.vo,"topFlag",1)),0===this.vo.leafFlag&&"leftMenuItem"!==this.vo.target&&"rightLabel"!==this.vo.target?2===this.vo.moduleLevel?this.vo.target="leftMenuItem":this.vo.moduleLevel>=3&&(this.vo.target="rightLabel"):1!==this.vo.leafFlag||"leftMenuItem"!==this.vo.target&&"rightLabel"!==this.vo.target||(this.vo.target=""),this.vo.h5Disable=this.vo.h5Disable||0,this.refresh=!0,this.$nextTick((function(){e.refresh=!1}))},selectMenuIcon:function(){this.iconDialogFormVisible=!0},handleResRolesChange:function(e){this.vo.visitOwnerIds=e},onSelectListpageRowCompleted:function(e,t){if(0!==e.length)if("wfName"===t.name){if(this.$set(this.vo,"wfName",e[0].name),this.$set(this.vo,"wfCode",e[0].processNo),e[0].workFormW){if(0==this.vo.wfCode.indexOf("udmjysp_"))this.$set(this.vo,"href",this.vo.wfCode.toLowerCase()),this.$set(this.vo,"wfEngineUrl","znbg/udmjysp");else{var i=e[0].workFormW;-1!==i.indexOf("/dcontent/")?i=i.split("/dcontent/")[1]:i.indexOf("@/wapp/")&&(i=i.split("@/wapp/")[1].replace("///",".")),this.$set(this.vo,"href",i.split(".")[1]),this.$set(this.vo,"wfEngineUrl",i.split(".")[0]+"/"+i.split(".")[1])}4===this.vo.leafType&&this.$set(this.vo,"href","#/wflow?busiCode="+this.vo.href+"&wfEngineUrl="+this.vo.wfEngineUrl)}}else if("href"===t.name)if(6===this.vo.leafType){this.vo.name||this.$set(this.vo,"name",e[0].pageName),this.vo.code||this.$set(this.vo,"code",e[0].pageCode);var n="@/wapp/portal/index?pageCode="+e[0].pageCode;-1!==e[0].pageViewUrl.indexOf("?pageCode=")&&(n=e[0].pageViewUrl),this.$set(this.vo,"href",n)}else if(5===this.vo.leafType){this.vo.name||this.$set(this.vo,"name",e[0].reportName),this.vo.code||this.$set(this.vo,"code",e[0].reportCode);var r="#/dcontent/vuereportpage/"+decodeURIComponent(e[0].reportViewUrl).split("_u=")[1];this.$set(this.vo,"href",r)}else if(3===this.vo.leafType){var o=e[0].listViewUrl.split(".")[0];o=o.replace(/\//g,"."),this.$set(this.vo,"href",o.split(".")[2]),this.$set(this.vo,"wfEngineUrl",o.split(".")[1]+"/"+o.split(".")[2])}else{var a=e[0].listViewUrl.split(".")[0];a=a.replace(/\//g,"."),a=a.substring(1)+"/",this.$set(this.vo,"href","#/dcontent/"+a)}else{var s=e[0].listViewUrl.split(".")[0];s=s.replace(/\//g,"."),s=s.substring(1)+"/",this.$set(this.vo.passenger,t.name,"#/dcontent/"+s),this.vo.passenger.busiCode||this.$set(this.vo.passenger,"busiCode",s.split(".")[2])}}}},a=o,s=(i(43067),i(81656)),l=(0,s.A)(a,n,r,!1,null,"c28e28c6",null),d=l.exports},11939:function(e,t,i){"use strict";i.d(t,{A:function(){return b}});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"block-box"},[null!==e.header?t("div",{staticClass:"block-head"},[e._t("head",(function(){return[e.header.icon?t("div",{staticClass:"block-head-icon"},[e.header.icon.indexOf(".svg")>-1?t("svg-icon",{attrs:{"icon-class":e.getIcon(e.header.icon)}}):t("i",{class:"el-icon-"+e.header.icon})],1):e._e(),e.header.title?t("div",{staticClass:"block-head-title"},[e.getJudge(e.header.title)===String?t("div",{staticClass:"block-head-title-string"},[t("span",[e._v(e._s(e.header.title))]),void 0!==e.header.count?t("span",[e._v(e._s(e.header.count))]):e._e()]):e._e(),e.getJudge(e.header.title)===Array?[e._l(e.header.title,(function(i,n){return t("div",{key:n,staticStyle:{display:"flex"},style:n>0?"padding-left:20px":""},[t("div",{staticClass:"block-head-title-array",class:{"block-head-title-array-click":e.clickIndex===n},on:{click:function(t){return e.titleClick(e.header.title,n)}}},[t("span",[e._v(e._s(i.name))])]),void 0!==i.count?t("div",[t("el-tag",{staticClass:"tag_count",class:i.tabCountClass,attrs:{color:"#F75854",effect:"dark",type:"danger"}},[e._v(e._s(i.count))])],1):e._e()])}))]:e._e(),e._t("head-left")],2):e._e(),e._t("head-right"),e.showMore?t("div",{staticClass:"block-head-more",on:{click:function(t){return e.gotoPages(e.header)}}},[e._v(" 更多 "),t("i",{staticClass:"el-icon-d-arrow-right"})]):e._e()]}))],2):e._e(),t("div",{staticClass:"block-content",class:{"block-content-border":e.contendBorder}},[e._t("default")],2)])},r=[],o=i(95353);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){d(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function d(e,t,i){return(t=c(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e){var t=u(e,"string");return"symbol"==a(t)?t:t+""}function u(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var f={components:{},props:{header:{type:Object,default:null},contendBorder:{type:Boolean,default:!0},filterPath:{type:Function,default:null}},data:function(){return{clickIndex:-1,moduleCode:"",showMore:!1,headerMoreClick:null,bgColor:this.$store.state.settings.headerbgColor}},computed:l({},(0,o.L8)(["routes"])),watch:{},created:function(){""!==this.header.more&&null!==this.header.more&&void 0!==this.header.more&&(this.showMore=this.header.more)},beforeDestroy:function(){},mounted:function(){this.header.title.constructor===Array&&this.titleClick(this.header.title,0)},methods:{getIcon:function(e){return e.split(".svg")[0]},getJudge:function(e){return e.constructor===String&&(this.moduleCode=this.header.code,"function"===typeof this.header.moreClick&&(this.headerMoreClick=this.header.moreClick)),e.constructor}}},p=f,h=(i(72258),i(81656)),m=(0,h.A)(p,n,r,!1,null,"1002c2fa",null),b=m.exports},74164:function(e,t,i){"use strict";i.d(t,{A:function(){return b}});var n=function(){var e=this,t=e._self._c;return t("div",{ref:"portlet",staticClass:"block"},[e.appdata.url||e.appdata.pppId?t("applet",{attrs:{"page-code":e.pageCode,"applet-data":e.appdata,"layout-data":e.layoutData,"app-columns":"layoutData"}}):"topElement"===e.appdata.dataType?t("div",{staticClass:"pageElement"},[t("div",{staticStyle:{"text-align":"center",margin:"20px"}},[e._v(" "+e._s(e.appdata.name)+",X轴坐标:"+e._s(e.appdata.x)+",组件高度:"+e._s(e.appdata.h*e.layoutHeight)+",组件列宽:"+e._s(e.appdata.w)+"/"+e._s(e.colNum||24)+" ")])]):!1===e.appdata.showCaption||0===e.appdata.showCaption?t("div",{staticClass:"pageElement"},[t("div",{staticStyle:{"text-align":"center",margin:"50px"}},[e._v(" "+e._s(e.appdata.name)+",X轴坐标:"+e._s(e.appdata.x)+",组件高度:"+e._s(e.appdata.h*e.layoutHeight)+",组件列宽:"+e._s(e.appdata.w)+"/"+e._s(e.colNum||24)+" ")])]):t("BlockFrame",{attrs:{header:{title:e.appdata.name,icon:e.appdata.icon,more:e.appdata.more,code:e.appdata.code}}},[t("div",{staticStyle:{"text-align":"center",margin:"10px","overflow-y":"auto"}},[e.portalPage&&"lmr3col"!==e.portalPage.pageTemplate?t("div",{staticStyle:{"text-align":"center"}},[e._v("X轴坐标:"+e._s(e.appdata.x)+",组件列宽:"+e._s(e.appdata.w)+"/"+e._s(e.colNum||24))]):e._e(),"blank"===e.appdata.code?t("div",{style:"M"===e.portalPage.clientType?"padding-top:40px;":"padding-top:70px;"},[e._v(" 从小组件面板拖拉需要的模块 ")]):t("div",[t("img",{staticStyle:{"max-width":"100px"},attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"14px",color:"#dbdbdb"}},[e._v("暂无数据")])])])])],1)},r=[],o=i(11939),a=function(){var e=this,t=e._self._c;return t("div",{ref:"myComponents",staticClass:"applet-wrap",staticStyle:{"pointer-events":"none"}},[t(e.app,{tag:"components",attrs:{"app-columns":e.appColumns,"search-type":e.searchType,"layout-data":e.layoutData,"applet-data":e.appletData,"null-processing":e.nullProcessing}}),e.app?e._e():[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:e.appletData.more,code:e.appletData.code}}})],"value"!==e.showMessage?t("div",{staticClass:"block-content",style:{"justify-content":e.position,position:"absolute",top:"50%",transform:"translate(0, -50%)"}},["null"===e.showMessage?t("div",{staticStyle:{"text-align":"center"}},[t("img",{staticStyle:{"max-width":"180px"},attrs:{src:"images/w-imgs/empty.png"}}),t("br"),t("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),"err"===e.showMessage?t("div",{staticStyle:{"text-align":"center"}},[t("img",{staticStyle:{"max-width":"180px"},attrs:{src:"images/w-imgs/errLoad.png"}}),t("br"),t("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[e._v("加载失败")])]):e._e(),"failure"===e.showMessage?t("div",{staticStyle:{"text-align":"center"}},[t("img",{staticStyle:{"max-width":"180px"},attrs:{src:"images/w-imgs/errLoad.png"}}),t("br"),t("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[e._v("请求失败")])]):e._e()]):e._e()],2)},s=[],l={name:"Applet",components:{BlockFrame:o.A},props:{pageCode:{type:String,default:function(){return""}},layoutData:{type:Object,default:function(){return[]}},appletData:{type:Object,required:!0,default:function(){return{}}},allcomps:{type:Object,required:!0,default:function(){return{}}},appColumns:{type:String,required:!0}},data:function(){return{searchType:null,app:null,nomessageHeight:"",showMessage:"value",position:"center",iconName:"",componentsHeight:"100%"}},computed:{},created:function(){if(!this.appletData.pppId||3!==this.appletData.type||"dataList"!==this.appletData.repeatType&&"quickEntry"!==this.appletData.repeatType&&"transactionStatistics"!==this.appletData.repeatType&&"statisticalChart"!==this.appletData.repeatType)this.initPortalApplet();else{var e="#/dcontent/vuePagePortlet/"+this.appletData.pppId+".vue?sysCode="+this.appletData.sysCode;this.app=this.$loadComponent(e)}},mounted:function(){var e=this;setTimeout((function(){console.log("appletData => ",e.appletData,e.app)}),100)},methods:{initPortalApplet:function(){if(this.appletData.url){var e=this.appletData.url,t=e.lastIndexOf("/?"),i=null;if(-1!==t){var n=e.substring(t+1,e.length),r=n.indexOf("&");this.searchType=-1===r?e.substring(t+1,e.length).replace("?type=",""):this.getQueryVariable(n.replace("?",""),"type"),i=e.substring(0,t)}else i=e;this.app=this.$loadComponent(i)}},getQueryVariable:function(e,t){for(var i=e.split("&"),n=0;n<i.length;n++){var r=i[n].split("=");if(r[0]===t)return r[1]}return!1},nullProcessing:function(e,t,i,n){if(this.showMessage=e,"value"!==this.showMessage){this.iconName=t,this.position=i,n&&(console.log(n),this.$message.error(n));var r=this.$refs.myComponents;r.style.height="".concat(this.componentsHeight)}}}},d=l,c=(i(17042),i(81656)),u=(0,c.A)(d,a,s,!1,null,"615001ea",null),f=u.exports,p={name:"Portlet",components:{BlockFrame:o.A,applet:f},props:{appdata:{type:Object,default:function(){return{}}},layoutHeight:{type:Number,default:function(){return 10}},colNum:{type:Number,default:function(){return 24}},clientType:{type:String,default:"W"}},data:function(){return{openInterface:window.openInterface,layoutData:[],portalPage:{}}},created:function(){"topElement"===this.appdata.dataType?this.portalPage=this.$vnode.context.$vnode.context.$vnode.context.portalPage:this.portalPage=this.$vnode.context.$vnode.context.portalPage},updated:function(){},beforeDestroy:function(){},mounted:function(){this.layoutData=this.$vnode.context.grids,"grid4col"===this.portalPage.pageTemplate?(this.$el.querySelector(".block-head").style.backgroundColor="#fff",this.$el.querySelector(".block-head").style.height="50px",this.$el.querySelector(".block-head").style.lineHeight="50px"):"M"===this.portalPage.clientType&&this.$el.querySelector(".block-head")&&(this.$el.querySelector(".block-head").style.backgroundColor="#fff")},methods:{}},h=p,m=(i(27942),(0,c.A)(h,n,r,!1,null,"5b4b9d8c",null)),b=m.exports},8323:function(e,t,i){"use strict";i.d(t,{A:function(){return c}});var n=function(){var e=this,t=e._self._c;return t("div",{ref:"portletModule",staticClass:"block portletModule",staticStyle:{"background-color":"rgba(83,168,255,0.1) !important",width:"100%"}},[e.appdata.showCaption?t("BlockFrame",{staticStyle:{height:"40px"},attrs:{header:{title:e.appdata.name,icon:e.appdata.icon,more:e.appdata.more,code:e.appdata.code}}}):e._e(),t("Grid24colPageModule",{attrs:{applets:e.applets,"is-module":!0,"grid-layout-id":e.appdata.gridster.gridsterModule,"module-name":e.appdata.gridster.gridsterModule,"layout-height":50,"min-h":1}})],1)},r=[],o=i(11939),a={name:"PortletModule",components:{BlockFrame:o.A,Grid24colPageModule:function(){return i.e(871).then(i.bind(i,48871))}},props:{applets:{type:Object,default:function(){return[]}},appdata:{type:Object,default:function(){return{}}},layoutHeight:{type:Number,default:function(){return 50}}},data:function(){return{portalPage:{}}},created:function(){this.$bus.emit("getPortalpage",this)},updated:function(){},beforeDestroy:function(){},mounted:function(){var e=this;console.log(this.appdata,"appdata"),"grid4col"===this.portalPage.pageTemplate?(this.$el.querySelector(".block-head").style.backgroundColor="#fff",this.$el.querySelector(".block-head").style.height="50px",this.$el.querySelector(".block-head").style.lineHeight="50px"):"M"===this.portalPage.clientType&&(this.$el.querySelector(".block-head").style.backgroundColor="#fff"),this.$nextTick((function(){var t=setInterval((function(){if(e.$el.querySelector(".vue-grid-layout")){var i=e.$el.querySelector(".vue-grid-layout").offsetHeight;e.$el.querySelector(".vue-grid-layout").style.height=i+1+"px",e.$forceUpdate(),clearInterval(t)}}),50)}))},methods:{}},s=a,l=(i(99201),i(81656)),d=(0,l.A)(s,n,r,!1,null,"2eed369a",null),c=d.exports},62854:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return k}});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"icons-container"},[t("el-tabs",{attrs:{type:"border-card"}},[t("el-tab-pane",{attrs:{label:"Icons"}},e._l(e.svgIcons,(function(i){return t("div",{key:i,on:{click:function(t){e.handleClipboard(e.generateIconCode(i),t)}}},[t("el-tooltip",{attrs:{placement:"top"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.generateIconCode(i))+" ")]),t("div",{staticClass:"icon-item"},[t("svg-icon",{attrs:{"icon-class":i,"class-name":"disabled"}}),t("span",[e._v(e._s(i))])],1)])],1)})),0),t("el-tab-pane",{attrs:{label:"Element-UI Icons"}},e._l(e.elementIcons,(function(i){return t("div",{key:i,on:{click:function(t){e.handleClipboard(e.generateElementIconCode(i),t)}}},[t("el-tooltip",{attrs:{placement:"top"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.generateElementIconCode(i))+" ")]),t("div",{staticClass:"icon-item"},[t("i",{class:"el-icon-"+i}),t("span",[e._v(e._s(i))])])])],1)})),0)],1)],1)},r=[],o=i(9274),a=i.n(o),s=i(57576),l=i.n(s);function d(){a().prototype.$message({message:"Copy successfully",type:"success",duration:1500})}function c(){a().prototype.$message({message:"Copy failed",type:"error"})}function u(e,t){var i=new(l())(t.target,{text:function(){return e}});i.on("success",(function(){d(),i.off("error"),i.off("success"),i.destroy()})),i.on("error",(function(){c(),i.off("error"),i.off("success"),i.destroy()})),i.onClick(t)}var f=i(60824),p=function(e){return e.keys()},h=/\.\/(.*)\.svg/,m=p(f).map((function(e){return e.match(h)[1]})),b=m,v=["info","error","success","warning","question","back","arrow-left","arrow-down","arrow-right","arrow-up","caret-left","caret-bottom","caret-top","caret-right","d-arrow-left","d-arrow-right","minus","plus","remove","circle-plus","remove-outline","circle-plus-outline","close","check","circle-close","circle-check","zoom-out","zoom-in","d-caret","sort","sort-down","sort-up","tickets","document","goods","sold-out","news","message","date","printer","time","bell","mobile-phone","service","view","menu","more","more-outline","star-on","star-off","location","location-outline","phone","phone-outline","picture","picture-outline","delete","search","edit","edit-outline","rank","refresh","share","setting","upload","upload2","download","loading"],g=v,y={name:"Icons",data:function(){return{svgIcons:b,elementIcons:g}},created:function(){this.$bus.$emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.$emit("showNavSearch",!0)},methods:{generateIconCode:function(e){return e+".svg"},generateElementIconCode:function(e){return e},handleClipboard:function(e,t){u(e,t),this.$vnode.context.iconDialogFormVisible&&(this.$vnode.context.vo&&this.$vnode.context.$set(this.$vnode.context.vo,"code",e),this.$vnode.context.newMenu&&this.$vnode.context.$set(this.$vnode.context.newMenu,"code",e),this.$vnode.context.$forceUpdate(),this.$vnode.context.iconDialogFormVisible=!1)}}},w=y,_=(i(66823),i(81656)),x=(0,_.A)(w,n,r,!1,null,"0e7b06cb",null),k=x.exports},81656:function(e,t,i){"use strict";function n(e,t,i,n,r,o,a,s){var l,d="function"===typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):r&&(l=s?function(){r.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,t){return l.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:d}}i.d(t,{A:function(){return n}})},87568:function(e,t,i){var n=t;n.bignum=i(72344),n.define=i(47363).define,n.base=i(9673),n.constants=i(22153),n.decoders=i(22853),n.encoders=i(24669)},47363:function(e,t,i){var n=i(87568),r=i(56698),o=t;function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}o.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=i(68961).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(n){t=function(e){this._initNamed(e)}}return r(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},47227:function(e,t,i){var n=i(56698),r=i(9673).Reporter,o=i(48287).Buffer;function a(e,t){r.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"===typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"===typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,r),t.t=a,a.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,r.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var i=new a(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.d=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(e,t),t+=i.length})):("number"===typeof this.value?e[t]=this.value:"string"===typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},9673:function(e,t,i){var n=t;n.Reporter=i(89220).a,n.DecoderBuffer=i(47227).t,n.EncoderBuffer=i(47227).d,n.Node=i(90993)},90993:function(e,t,i){var n=i(9673).Reporter,r=i(9673).EncoderBuffer,o=i(9673).DecoderBuffer,a=i(43349),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),d=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function c(e,t){var i={};this._baseState=i,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i["default"]=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}e.exports=c;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};u.forEach((function(i){t[i]=e[i]}));var i=new this.constructor(t.parent);return i._baseState=t,i},c.prototype._wrap=function(){var e=this._baseState;l.forEach((function(t){this[t]=function(){var i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}}),this)},c.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,i=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==i.length&&(a(null===t.children),t.children=i,i.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(i){i==(0|i)&&(i|=0);var n=e[i];t[n]=i})),t})))},d.forEach((function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){c.prototype[e]=function(){var t=this._baseState,i=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(i),this}})),c.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return a(null===t["default"]),t["default"]=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){var e=this._baseState;return e.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));var n,r=i["default"],a=!0,s=null;if(null!==i.key&&(s=e.enterKey(i.key)),i.optional){var l=null;if(null!==i.explicit?l=i.explicit:null!==i.implicit?l=i.implicit:null!==i.tag&&(l=i.tag),null!==l||i.any){if(a=this._peekTag(e,l,i.any),e.isError(a))return a}else{var d=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),a=!0}catch(h){a=!1}e.restore(d)}}if(i.obj&&a&&(n=e.enterObject()),a){if(null!==i.explicit){var c=this._decodeTag(e,i.explicit);if(e.isError(c))return c;e=c}var u=e.offset;if(null===i.use&&null===i.choice){if(i.any)d=e.save();var f=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(f))return f;i.any?r=e.raw(d):e=f}if(t&&t.track&&null!==i.tag&&t.track(e.path(),u,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(e,t)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){var p=new o(r);r=this._getUse(i.contains,e._reporterState.obj)._decode(p,t)}}return i.obj&&a&&(r=e.leaveObject(n)),null===i.key||null===r&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,i.key,r),r},c.prototype._decodeGeneric=function(e,t,i){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var i=this._baseState;return i.useDecoder=this._use(e,t),a(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},c.prototype._decodeChoice=function(e,t){var i=this._baseState,n=null,r=!1;return Object.keys(i.choice).some((function(o){var a=e.save(),s=i.choice[o];try{var l=s._decode(e,t);if(e.isError(l))return!1;n={type:o,value:l},r=!0}catch(d){return e.restore(a),!1}return!0}),this),r?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},c.prototype._encode=function(e,t,i){var n=this._baseState;if(null===n["default"]||n["default"]!==e){var r=this._encodeValue(e,t,i);if(void 0!==r&&!this._skipDefault(r,t,i))return r}},c.prototype._encodeValue=function(e,t,i){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r["default"])return;e=r["default"]}var a=null,s=!1;if(r.any)o=this._createEncoderBuffer(e);else if(r.choice)o=this._encodeChoice(e,t);else if(r.contains)a=this._getUse(r.contains,i)._encode(e,t),s=!0;else if(r.children)a=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,t,e);if(null===i._baseState.key)return t.error("Child should have a key");var n=t.enterKey(i._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");var r=i._encode(e[i._baseState.key],t,e);return t.leaveKey(n),r}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(i){var n=this._baseState;return this._getUse(n.args[0],e)._encode(i,t)}),l))}else null!==r.use?o=this._getUse(r.use,i)._encode(e,t):(a=this._encodePrimitive(r.tag,e),s=!0);if(!r.any&&null===r.choice){var d=null!==r.implicit?r.implicit:r.tag,c=null===r.implicit?"universal":"context";null===d?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(d,s,c,a))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){var i=this._baseState,n=i.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},89220:function(e,t,i){var n=i(56698);function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.a=r,r.prototype.isError=function(e){return e instanceof o},r.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,i){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){var t=this._reporterState,i=t.obj;return t.obj=e,i},r.prototype.error=function(e){var t,i=this._reporterState,n=e instanceof o;if(t=n?e:new o(i.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!i.options.partial)throw t;return n||i.errors.push(t),t},r.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},74598:function(e,t,i){var n=i(22153);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},22153:function(e,t,i){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);var n=e[i];t[n]=i})),t},n.der=i(74598)},62010:function(e,t,i){var n=i(56698),r=i(87568),o=r.base,a=r.bignum,s=r.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){o.Node.call(this,"der",e)}function c(e,t){var i=e.readUInt8(t);if(e.isError(i))return i;var n=s.tagClass[i>>6],r=0===(32&i);if(31===(31&i)){var o=i;i=0;while(128===(128&o)){if(o=e.readUInt8(t),e.isError(o))return o;i<<=7,i|=127&o}}else i&=31;var a=s.tag[i];return{cls:n,primitive:r,tag:i,tagStr:a}}function u(e,t,i){var n=e.readUInt8(i);if(e.isError(n))return n;if(!t&&128===n)return null;if(0===(128&n))return n;var r=127&n;if(r>4)return e.error("length octect is too long");n=0;for(var o=0;o<r;o++){n<<=8;var a=e.readUInt8(i);if(e.isError(a))return a;n|=a}return n}e.exports=l,l.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(d,o.Node),d.prototype._peekTag=function(e,t,i){if(e.isEmpty())return!1;var n=e.save(),r=c(e,'Failed to peek tag: "'+t+'"');return e.isError(r)?r:(e.restore(n),r.tag===t||r.tagStr===t||r.tagStr+"of"===t||i)},d.prototype._decodeTag=function(e,t,i){var n=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var r=u(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(r))return r;if(!i&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==r)return e.skip(r,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(r=e.offset-o.offset,e.restore(o),e.skip(r,'Failed to match body of: "'+t+'"'))},d.prototype._skipUntilEnd=function(e,t){while(1){var i=c(e,t);if(e.isError(i))return i;var n,r=u(e,i.primitive,t);if(e.isError(r))return r;if(n=i.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===i.tagStr)break}},d.prototype._decodeList=function(e,t,i,n){var r=[];while(!e.isEmpty()){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=i.decode(e,"der",n);if(e.isError(a)&&o)break;r.push(a)}return r},d.prototype._decodeStr=function(e,t){if("bitstr"===t){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var r="",o=0;o<n.length/2;o++)r+=String.fromCharCode(n.readUInt16BE(2*o));return r}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},d.prototype._decodeObjid=function(e,t,i){var n,r=[],o=0;while(!e.isEmpty()){var a=e.readUInt8();o<<=7,o|=127&a,0===(128&a)&&(r.push(o),o=0)}128&a&&r.push(o);var s=r[0]/40|0,l=r[0]%40;if(n=i?r:[s,l].concat(r.slice(1)),t){var d=t[n.join(" ")];void 0===d&&(d=t[n.join(".")]),void 0!==d&&(n=d)}return n},d.prototype._decodeTime=function(e,t){var i=e.raw().toString();if("gentime"===t)var n=0|i.slice(0,4),r=0|i.slice(4,6),o=0|i.slice(6,8),a=0|i.slice(8,10),s=0|i.slice(10,12),l=0|i.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|i.slice(0,2),r=0|i.slice(2,4),o=0|i.slice(4,6),a=0|i.slice(6,8),s=0|i.slice(8,10),l=0|i.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,o,a,s,l,0)},d.prototype._decodeNull=function(e){return null},d.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},d.prototype._decodeInt=function(e,t){var i=e.raw(),n=new a(i);return t&&(n=t[n.toString(10)]||n),n},d.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getDecoder("der").tree}},22853:function(e,t,i){var n=t;n.der=i(62010),n.pem=i(58903)},58903:function(e,t,i){var n=i(56698),r=i(48287).Buffer,o=i(62010);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var i=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,d=0;d<i.length;d++){var c=i[d].match(a);if(null!==c&&c[2]===n){if(-1!==s){if("END"!==c[1])break;l=d;break}if("BEGIN"!==c[1])break;s=d}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+n);var u=i.slice(s+1,l).join("");u.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new r(u,"base64");return o.prototype.decode.call(this,f,t)}},70082:function(e,t,i){var n=i(56698),r=i(48287).Buffer,o=i(87568),a=o.base,s=o.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){a.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}function u(e,t,i,n){var r;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))r=s.tagByName[e];else{if("number"!==typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);r=e}return r>=31?n.error("Multi-octet tag encoding unsupported"):(t||(r|=32),r|=s.tagClassByName[i||"universal"]<<6,r)}e.exports=l,l.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(d,a.Node),d.prototype._encodeComposite=function(e,t,i,n){var o=u(e,t,i,this.reporter);if(n.length<128){var a=new r(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,l=n.length;l>=256;l>>=8)s++;a=new r(2+s);a[0]=o,a[1]=128|s;l=1+s;for(var d=n.length;d>0;l--,d>>=8)a[l]=255&d;return this._createEncoderBuffer([a,n])},d.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var i=new r(2*e.length),n=0;n<e.length;n++)i.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(i)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},d.prototype._encodeObjid=function(e,t,i){if("string"===typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n<e.length;n++){var a=e[n];for(o++;a>=128;a>>=7)o++}var s=new r(o),l=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];s[l--]=127&a;while((a>>=7)>0)s[l--]=128|127&a}return this._createEncoderBuffer(s)},d.prototype._encodeTime=function(e,t){var i,n=new Date(e);return"gentime"===t?i=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(e,t){if("string"===typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!==typeof e&&!r.isBuffer(e)){var i=e.toArray();!e.sign&&128&i[0]&&i.unshift(0),e=new r(i)}if(r.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new r(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(o=new Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new r(o))},d.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},d.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},d.prototype._skipDefault=function(e,t,i){var n,r=this._baseState;if(null===r["default"])return!1;var o=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r["default"],t,i).join()),o.length!==r.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==r.defaultBuffer[n])return!1;return!0}},24669:function(e,t,i){var n=t;n.der=i(70082),n.pem=i(90735)},90735:function(e,t,i){var n=i(56698),r=i(70082);function o(e){r.call(this,e),this.enc="pem"}n(o,r),e.exports=o,o.prototype.encode=function(e,t){for(var i=r.prototype.encode.call(this,e),n=i.toString("base64"),o=["-----BEGIN "+t.label+"-----"],a=0;a<n.length;a+=64)o.push(n.slice(a,a+64));return o.push("-----END "+t.label+"-----"),o.join("\n")}},72344:function(e,t,i){e=i.nmd(e),function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(78982).Buffer}catch(M){}function s(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,t,i){var n=s(e,i);return i-1>=t&&(n|=s(e,i-1)<<4),n}function d(e,t,i,n){for(var r=0,o=Math.min(e.length,i),a=t;a<o;a++){var s=e.charCodeAt(a)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"===typeof e)return this._initNumber(e,t,i);if("object"===typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var r=0;"-"===e[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=e.length-1,o=0;r>=0;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<e.length;r+=3)a=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=l(e,t,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2)r=l(e,t,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8}this.strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var o=e.length-i,a=o%n,s=Math.min(o,o-a)+i,l=0,c=i;c<s;c+=n)l=d(e,c,c+n,t),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var u=1;for(l=d(e,c,e.length,t),c=0;c<a;c++)u*=t;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){while(this.length<e)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],o=0|t.words[0],a=r*o,s=67108863&a,l=a/67108864|0;i.words[0]=s;for(var d=1;d<n;d++){for(var c=l>>>26,u=67108863&l,f=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=f;p++){var h=d-p|0;r=0|e.words[h],o=0|t.words[p],a=r*o+u,c+=a/67108864|0,u=67108863&a}i.words[d]=0|u,l=0|c}return 0!==l?i.words[d]=0|l:i.length--,i.strip()}o.prototype.toString=function(e,t){var i;if(e=e||10,t=0|t||1,16===e||"hex"===e){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<r|o)).toString(16);o=s>>>24-r&16777215,i=0!==o||a!==this.length-1?c[6-l.length]+l+i:l+i,r+=2,r>=26&&(r-=26,a--)}0!==o&&(i=o.toString(16)+i);while(i.length%t!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],p=f[e];i="";var h=this.clone();h.negative=0;while(!h.isZero()){var m=h.modn(p).toString(e);h=h.idivn(p),i=h.isZero()?m+i:c[d-m.length]+m+i}this.isZero()&&(i="0"+i);while(i.length%t!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,d=new e(o),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),d[s]=a;for(;s<o;s++)d[s]=0}else{for(s=0;s<o-r;s++)d[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),d[o-s-1]=a}return d},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0===(8191&t)&&(i+=13,t>>>=13),0===(127&t)&&(i+=7,t>>>=7),0===(15&t)&&(i+=4,t>>>=4),0===(3&t)&&(i+=2,t>>>=2),0===(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){while(this.length<e.length)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,o=0;o<n.length;o++)t=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&t,r=t>>>26;for(;0!==r&&o<i.length;o++)t=(0|i.words[o])+r,this.words[o]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)t=(0|i.words[a])-(0|n.words[a])+o,o=t>>26,this.words[a]=67108863&t;for(;0!==o&&a<i.length;a++)t=(0|i.words[a])+o,o=t>>26,this.words[a]=67108863&t;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,i){var n,r,o,a=e.words,s=t.words,l=i.words,d=0,c=0|a[0],u=8191&c,f=c>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],v=8191&b,g=b>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],k=8191&x,S=x>>>13,T=0|a[5],C=8191&T,M=T>>>13,N=0|a[6],L=8191&N,I=N>>>13,D=0|a[7],E=8191&D,O=D>>>13,F=0|a[8],A=8191&F,P=F>>>13,$=0|a[9],B=8191&$,j=$>>>13,R=0|s[0],U=8191&R,H=R>>>13,W=0|s[1],Y=8191&W,V=W>>>13,z=0|s[2],q=8191&z,J=z>>>13,G=0|s[3],K=8191&G,X=G>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],oe=8191&re,ae=re>>>13,se=0|s[7],le=8191&se,de=se>>>13,ce=0|s[8],ue=8191&ce,fe=ce>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;i.negative=e.negative^t.negative,i.length=19,n=Math.imul(u,U),r=Math.imul(u,H),r=r+Math.imul(f,U)|0,o=Math.imul(f,H);var be=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(h,U),r=Math.imul(h,H),r=r+Math.imul(m,U)|0,o=Math.imul(m,H),n=n+Math.imul(u,Y)|0,r=r+Math.imul(u,V)|0,r=r+Math.imul(f,Y)|0,o=o+Math.imul(f,V)|0;var ve=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,U),r=Math.imul(v,H),r=r+Math.imul(g,U)|0,o=Math.imul(g,H),n=n+Math.imul(h,Y)|0,r=r+Math.imul(h,V)|0,r=r+Math.imul(m,Y)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(f,q)|0,o=o+Math.imul(f,J)|0;var ge=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(w,U),r=Math.imul(w,H),r=r+Math.imul(_,U)|0,o=Math.imul(_,H),n=n+Math.imul(v,Y)|0,r=r+Math.imul(v,V)|0,r=r+Math.imul(g,Y)|0,o=o+Math.imul(g,V)|0,n=n+Math.imul(h,q)|0,r=r+Math.imul(h,J)|0,r=r+Math.imul(m,q)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,X)|0,r=r+Math.imul(f,K)|0,o=o+Math.imul(f,X)|0;var ye=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(k,U),r=Math.imul(k,H),r=r+Math.imul(S,U)|0,o=Math.imul(S,H),n=n+Math.imul(w,Y)|0,r=r+Math.imul(w,V)|0,r=r+Math.imul(_,Y)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(h,K)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(u,Q)|0,r=r+Math.imul(u,ee)|0,r=r+Math.imul(f,Q)|0,o=o+Math.imul(f,ee)|0;var we=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,U),r=Math.imul(C,H),r=r+Math.imul(M,U)|0,o=Math.imul(M,H),n=n+Math.imul(k,Y)|0,r=r+Math.imul(k,V)|0,r=r+Math.imul(S,Y)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(_,q)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,X)|0,n=n+Math.imul(h,Q)|0,r=r+Math.imul(h,ee)|0,r=r+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(u,ie)|0,r=r+Math.imul(u,ne)|0,r=r+Math.imul(f,ie)|0,o=o+Math.imul(f,ne)|0;var _e=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,U),r=Math.imul(L,H),r=r+Math.imul(I,U)|0,o=Math.imul(I,H),n=n+Math.imul(C,Y)|0,r=r+Math.imul(C,V)|0,r=r+Math.imul(M,Y)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(k,q)|0,r=r+Math.imul(k,J)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,X)|0,r=r+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(v,Q)|0,r=r+Math.imul(v,ee)|0,r=r+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(h,ie)|0,r=r+Math.imul(h,ne)|0,r=r+Math.imul(m,ie)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(u,oe)|0,r=r+Math.imul(u,ae)|0,r=r+Math.imul(f,oe)|0,o=o+Math.imul(f,ae)|0;var xe=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(E,U),r=Math.imul(E,H),r=r+Math.imul(O,U)|0,o=Math.imul(O,H),n=n+Math.imul(L,Y)|0,r=r+Math.imul(L,V)|0,r=r+Math.imul(I,Y)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(C,q)|0,r=r+Math.imul(C,J)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(k,K)|0,r=r+Math.imul(k,X)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,r=r+Math.imul(w,ee)|0,r=r+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,ie)|0,r=r+Math.imul(v,ne)|0,r=r+Math.imul(g,ie)|0,o=o+Math.imul(g,ne)|0,n=n+Math.imul(h,oe)|0,r=r+Math.imul(h,ae)|0,r=r+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(u,le)|0,r=r+Math.imul(u,de)|0,r=r+Math.imul(f,le)|0,o=o+Math.imul(f,de)|0;var ke=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(A,U),r=Math.imul(A,H),r=r+Math.imul(P,U)|0,o=Math.imul(P,H),n=n+Math.imul(E,Y)|0,r=r+Math.imul(E,V)|0,r=r+Math.imul(O,Y)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(L,q)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(I,q)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(C,K)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(k,Q)|0,r=r+Math.imul(k,ee)|0,r=r+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(w,ie)|0,r=r+Math.imul(w,ne)|0,r=r+Math.imul(_,ie)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,r=r+Math.imul(v,ae)|0,r=r+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,n=n+Math.imul(h,le)|0,r=r+Math.imul(h,de)|0,r=r+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0,n=n+Math.imul(u,ue)|0,r=r+Math.imul(u,fe)|0,r=r+Math.imul(f,ue)|0,o=o+Math.imul(f,fe)|0;var Se=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,U),r=Math.imul(B,H),r=r+Math.imul(j,U)|0,o=Math.imul(j,H),n=n+Math.imul(A,Y)|0,r=r+Math.imul(A,V)|0,r=r+Math.imul(P,Y)|0,o=o+Math.imul(P,V)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(O,q)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(L,K)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul(I,K)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(C,Q)|0,r=r+Math.imul(C,ee)|0,r=r+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(k,ie)|0,r=r+Math.imul(k,ne)|0,r=r+Math.imul(S,ie)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(w,oe)|0,r=r+Math.imul(w,ae)|0,r=r+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,le)|0,r=r+Math.imul(v,de)|0,r=r+Math.imul(g,le)|0,o=o+Math.imul(g,de)|0,n=n+Math.imul(h,ue)|0,r=r+Math.imul(h,fe)|0,r=r+Math.imul(m,ue)|0,o=o+Math.imul(m,fe)|0,n=n+Math.imul(u,he)|0,r=r+Math.imul(u,me)|0,r=r+Math.imul(f,he)|0,o=o+Math.imul(f,me)|0;var Te=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,Y),r=Math.imul(B,V),r=r+Math.imul(j,Y)|0,o=Math.imul(j,V),n=n+Math.imul(A,q)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(P,q)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,X)|0,r=r+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(L,Q)|0,r=r+Math.imul(L,ee)|0,r=r+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(C,ie)|0,r=r+Math.imul(C,ne)|0,r=r+Math.imul(M,ie)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(k,oe)|0,r=r+Math.imul(k,ae)|0,r=r+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,n=n+Math.imul(w,le)|0,r=r+Math.imul(w,de)|0,r=r+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0,n=n+Math.imul(v,ue)|0,r=r+Math.imul(v,fe)|0,r=r+Math.imul(g,ue)|0,o=o+Math.imul(g,fe)|0,n=n+Math.imul(h,he)|0,r=r+Math.imul(h,me)|0,r=r+Math.imul(m,he)|0,o=o+Math.imul(m,me)|0;var Ce=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,q),r=Math.imul(B,J),r=r+Math.imul(j,q)|0,o=Math.imul(j,J),n=n+Math.imul(A,K)|0,r=r+Math.imul(A,X)|0,r=r+Math.imul(P,K)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(E,Q)|0,r=r+Math.imul(E,ee)|0,r=r+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(L,ie)|0,r=r+Math.imul(L,ne)|0,r=r+Math.imul(I,ie)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(C,oe)|0,r=r+Math.imul(C,ae)|0,r=r+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(k,le)|0,r=r+Math.imul(k,de)|0,r=r+Math.imul(S,le)|0,o=o+Math.imul(S,de)|0,n=n+Math.imul(w,ue)|0,r=r+Math.imul(w,fe)|0,r=r+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(v,he)|0,r=r+Math.imul(v,me)|0,r=r+Math.imul(g,he)|0,o=o+Math.imul(g,me)|0;var Me=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,K),r=Math.imul(B,X),r=r+Math.imul(j,K)|0,o=Math.imul(j,X),n=n+Math.imul(A,Q)|0,r=r+Math.imul(A,ee)|0,r=r+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(E,ie)|0,r=r+Math.imul(E,ne)|0,r=r+Math.imul(O,ie)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(L,oe)|0,r=r+Math.imul(L,ae)|0,r=r+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(C,le)|0,r=r+Math.imul(C,de)|0,r=r+Math.imul(M,le)|0,o=o+Math.imul(M,de)|0,n=n+Math.imul(k,ue)|0,r=r+Math.imul(k,fe)|0,r=r+Math.imul(S,ue)|0,o=o+Math.imul(S,fe)|0,n=n+Math.imul(w,he)|0,r=r+Math.imul(w,me)|0,r=r+Math.imul(_,he)|0,o=o+Math.imul(_,me)|0;var Ne=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(B,Q),r=Math.imul(B,ee),r=r+Math.imul(j,Q)|0,o=Math.imul(j,ee),n=n+Math.imul(A,ie)|0,r=r+Math.imul(A,ne)|0,r=r+Math.imul(P,ie)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(E,oe)|0,r=r+Math.imul(E,ae)|0,r=r+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(L,le)|0,r=r+Math.imul(L,de)|0,r=r+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0,n=n+Math.imul(C,ue)|0,r=r+Math.imul(C,fe)|0,r=r+Math.imul(M,ue)|0,o=o+Math.imul(M,fe)|0,n=n+Math.imul(k,he)|0,r=r+Math.imul(k,me)|0,r=r+Math.imul(S,he)|0,o=o+Math.imul(S,me)|0;var Le=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(B,ie),r=Math.imul(B,ne),r=r+Math.imul(j,ie)|0,o=Math.imul(j,ne),n=n+Math.imul(A,oe)|0,r=r+Math.imul(A,ae)|0,r=r+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(E,le)|0,r=r+Math.imul(E,de)|0,r=r+Math.imul(O,le)|0,o=o+Math.imul(O,de)|0,n=n+Math.imul(L,ue)|0,r=r+Math.imul(L,fe)|0,r=r+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(C,he)|0,r=r+Math.imul(C,me)|0,r=r+Math.imul(M,he)|0,o=o+Math.imul(M,me)|0;var Ie=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(B,oe),r=Math.imul(B,ae),r=r+Math.imul(j,oe)|0,o=Math.imul(j,ae),n=n+Math.imul(A,le)|0,r=r+Math.imul(A,de)|0,r=r+Math.imul(P,le)|0,o=o+Math.imul(P,de)|0,n=n+Math.imul(E,ue)|0,r=r+Math.imul(E,fe)|0,r=r+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(L,he)|0,r=r+Math.imul(L,me)|0,r=r+Math.imul(I,he)|0,o=o+Math.imul(I,me)|0;var De=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(B,le),r=Math.imul(B,de),r=r+Math.imul(j,le)|0,o=Math.imul(j,de),n=n+Math.imul(A,ue)|0,r=r+Math.imul(A,fe)|0,r=r+Math.imul(P,ue)|0,o=o+Math.imul(P,fe)|0,n=n+Math.imul(E,he)|0,r=r+Math.imul(E,me)|0,r=r+Math.imul(O,he)|0,o=o+Math.imul(O,me)|0;var Ee=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,ue),r=Math.imul(B,fe),r=r+Math.imul(j,ue)|0,o=Math.imul(j,fe),n=n+Math.imul(A,he)|0,r=r+Math.imul(A,me)|0,r=r+Math.imul(P,he)|0,o=o+Math.imul(P,me)|0;var Oe=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,he),r=Math.imul(B,me),r=r+Math.imul(j,he)|0,o=Math.imul(j,me);var Fe=(d+n|0)+((8191&r)<<13)|0;return d=(o+(r>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,l[0]=be,l[1]=ve,l[2]=ge,l[3]=ye,l[4]=we,l[5]=_e,l[6]=xe,l[7]=ke,l[8]=Se,l[9]=Te,l[10]=Ce,l[11]=Me,l[12]=Ne,l[13]=Le,l[14]=Ie,l[15]=De,l[16]=Ee,l[17]=Oe,l[18]=Fe,0!==d&&(l[19]=d,i.length++),i};function b(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,l=Math.min(o,t.length-1),d=Math.max(0,o-e.length+1);d<=l;d++){var c=o-d,u=0|e.words[c],f=0|t.words[d],p=u*f,h=67108863&p;a=a+(p/67108864|0)|0,h=h+s|0,s=67108863&h,a=a+(h>>>26)|0,r+=a>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}function v(e,t,i){var n=new g;return n.mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(m=h),o.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?m(this,e,t):n<63?h(this,e,t):n<1024?b(this,e,t):v(this,e,t),i},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},g.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},g.prototype.permute=function(e,t,i,n,r,o){for(var a=0;a<o;a++)n[a]=t[e[a]],r[a]=i[e[a]]},g.prototype.transform=function(e,t,i,n,r,o){this.permute(o,e,t,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),d=Math.sin(2*Math.PI/s),c=0;c<r;c+=s)for(var u=l,f=d,p=0;p<a;p++){var h=i[c+p],m=n[c+p],b=i[c+p+a],v=n[c+p+a],g=u*b-f*v;v=u*v+f*b,b=g,i[c+p]=h+b,n[c+p]=m+v,i[c+p+a]=h-b,n[c+p+a]=m-v,p!==s&&(g=l*u-d*f,f=l*f+d*u,u=g)}},g.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},g.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},g.prototype.convert13b=function(e,t,i,r){for(var o=0,a=0;a<t;a++)o+=0|e[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<r;++a)i[a]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},g.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),d=new Array(n),c=new Array(n),u=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,d,n),this.transform(a,o,s,l,n,r),this.transform(d,o,c,u,n,r);for(var p=0;p<n;p++){var h=s[p]*c[p]-l[p]*u[p];l[p]=s[p]*u[p]+l[p]*c[p],s[p]=h}return this.conjugate(s,l,n),this.transform(s,l,f,o,n,r),this.conjugate(f,o,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,o=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=o>>>26,this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=p(e);if(0===t.length)return new o(1);for(var i=this,n=0;n<t.length;n++,i=i.sqr())if(0!==t[n])break;if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<i;this.words[t]=l|a,a=s>>>26-i}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,i){var r;n("number"===typeof e&&e>=0),r=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=i;if(r-=a,r=Math.max(0,r),l){for(var d=0;d<a;d++)l.words[d]=this.words[d];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,d=0;d<this.length;d++)this.words[d]=this.words[d+a];else this.words[0]=0,this.length=1;var c=0;for(d=this.length-1;d>=0&&(0!==c||d>=r);d--){var u=0|this.words[d];this.words[d]=c<<26-o|u>>>o,c=u&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,i){var r,o,a=e.length+i;this._expand(a);var s=0;for(r=0;r<e.length;r++){o=(0|this.words[r+i])+s;var l=(0|e.words[r])*t;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+s,s=o>>26,this.words[r+i]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,r=0;r<this.length;r++)o=-(0|this.words[r])+s,s=o>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var i=this.length-e.length,n=this.clone(),r=e,a=0|r.words[r.length-1],s=this._countBits(a);i=26-s,0!==i&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var l,d=n.length-r.length;if("mod"!==t){l=new o(null),l.length=d+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,d);0===u.negative&&(n=u,l&&(l.words[d]=1));for(var f=d-1;f>=0;f--){var p=67108864*(0|n.words[r.length+f])+(0|n.words[r.length+f-1]);p=Math.min(p/a|0,67108863),n._ishlnsubmul(r,p,f);while(0!==n.negative)p--,n.negative=0,n._ishlnsubmul(r,1,f),n.isZero()||(n.negative^=1);l&&(l.words[f]=p)}return l&&l.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(e)),{div:r,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();var r=new o(1),a=new o(0),s=new o(0),l=new o(1),d=0;while(t.isEven()&&i.isEven())t.iushrn(1),i.iushrn(1),++d;var c=i.clone(),u=t.clone();while(!t.isZero()){for(var f=0,p=1;0===(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0){t.iushrn(f);while(f-- >0)(r.isOdd()||a.isOdd())&&(r.iadd(c),a.isub(u)),r.iushrn(1),a.iushrn(1)}for(var h=0,m=1;0===(i.words[0]&m)&&h<26;++h,m<<=1);if(h>0){i.iushrn(h);while(h-- >0)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(u)),s.iushrn(1),l.iushrn(1)}t.cmp(i)>=0?(t.isub(i),r.isub(s),a.isub(l)):(i.isub(t),s.isub(r),l.isub(a))}return{a:s,b:l,gcd:i.iushln(d)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();var r,a=new o(1),s=new o(0),l=i.clone();while(t.cmpn(1)>0&&i.cmpn(1)>0){for(var d=0,c=1;0===(t.words[0]&c)&&d<26;++d,c<<=1);if(d>0){t.iushrn(d);while(d-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}for(var u=0,f=1;0===(i.words[0]&f)&&u<26;++u,f<<=1);if(u>0){i.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}t.cmp(i)>=0?(t.isub(i),a.isub(s)):(i.isub(t),s.isub(a))}return r=0===t.cmpn(1)?a:s,r.cmpn(0)<0&&r.iadd(e),r},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);do{while(t.isEven())t.iushrn(1);while(i.isEven())i.iushrn(1);var r=t.cmp(i);if(r<0){var o=t;t=i,i=o}else if(0===r||0===i.cmpn(1))break;t.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new T(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),t=i.bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},r(_,w),_.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(x,w),r(k,w),r(S,w),S.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new x;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},T.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},T.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}var r=this.m.subn(1),a=0;while(!r.isZero()&&0===r.andln(1))a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),l=s.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,d).cmp(l))c.redIAdd(l);var u=this.pow(c,r),f=this.pow(e,r.addn(1).iushrn(1)),p=this.pow(e,r),h=a;while(0!==p.cmp(s)){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<h);var v=this.pow(u,new o(1).iushln(h-b-1));f=f.redMul(v),u=v.redSqr(),p=p.redMul(u),h=b}return f},T.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},T.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],s=0,l=0,d=t.bitLength()%26;for(0===d&&(d=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=d-1;u>=0;u--){var f=c>>u&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==s?(s<<=1,s|=f,l++,(l===i||0===r&&0===u)&&(a=this.mul(a,n[s]),l=0,s=0)):l=0}d=26}return a},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new C(e)},r(C,T),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}}(e,this)},96407:function(e){e.exports={name:"WfdList",props:{row:{type:Object,default:{}}},components:{},data:function(){return{dwadmin:0,product:0,platadmin:0,inited:0,loginUser:this.$store.getters.loginUser,formTitle:this.$tx("ecwplat.Common.importConfiguration","导入流程配置"),selectedRows:[],dialogVisible:!1,voFromSon:{},fileFromSon:{},moduleInfo:{delUrl:"workflow/wfdProcessMgr/delete",moduleCode:"process",listDataUrl:"workflow/wfdProcessMgr/listdata"},tbColumns:[{field:"state",checkbox:!0,width:"50px",sortable:!1,align:"center"},{field:"index",width:"50px",sortable:!1,propType:"",align:"center",title:"序号",searchable:!1},{propFormatter:"",listAdvSearchElement:"input",field:"sysName",width:"",elementFormatter:"",sortable:!0,propType:"String",align:"left",title:"系统名称",searchable:!0},{propFormatter:"",listAdvSearchElement:"input",field:"name",width:"180px",elementFormatter:"",sortable:!0,propType:"String",align:"left",title:"流程名称",searchable:!0},{propFormatter:"",listAdvSearchElement:"input",field:"processNo",width:"120px",elementFormatter:"",sortable:!0,propType:"String",align:"center",title:"流程编号",searchable:!0},{propFormatter:"",listAdvSearchElement:"input",field:"version",width:"120px",elementFormatter:"",sortable:!0,propType:"String",align:"center",title:"流程版本",searchable:!0},{propFormatter:"",listAdvSearchElement:"input",field:"orderNo",width:"120px",elementFormatter:"",sortable:!0,propType:"String",align:"center",title:"流程排序",searchable:!0},{field:"updateTime",title:"更新时间",width:"160px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,listAdvSearchElement:"date",propFormatter:"format:yyyy-MM-dd HH:mm:ss",propType:"java.util.Date",sortable:!0},{propFormatter:"",listAdvSearchElement:"select",field:"status",width:"75px",elementFormatter:"1:启用\r\n0:禁用\r\n",sortable:!1,propType:"Short",align:"center",title:"状态 ",searchable:!0}],listpageBtns:[{btnName:"新增",btnIcon:"plus",btnClick:"workflowDesigner();",btnPermission:"addObject",id:"btn_add",btnType:"toolbar"},{btnName:"删除",btnIcon:"close",btnClick:"deleteIds();",btnPermission:"deleteIds",id:"btn_deleteIds",btnType:"toolbar"},{btnName:"导入",btnIcon:"import.svg",btnClick:"importWfDefine();",btnPermission:"importWfDefine",id:"btn_btn4",btnType:"toolbar"},{btnName:"导出",btnIcon:"export.svg",btnClick:"exportWfDefines();",btnPermission:"exportWfDefines",id:"btn_btn5",btnType:"toolbar"},{btnName:"导出I18n",btnIcon:"export.svg",btnClick:"exportWfdI18nCode();",btnPermission:"exportWfdI18nCode",id:"btn_btn5",btnType:"toolbar"},{btnName:"复制",btnIcon:"copy-document",btnClick:this.workflowDesigner,btnPermission:"copyWfDefine",id:"btn_copy",btnType:"column"},{btnName:"删除",btnIcon:"delete",btnClick:"deleteIds(row.id);",btnPermission:"deleteIds",id:"btn_deleteId",btnType:"column"}]}},computed:{},created:function(){var e=this;this.moduleInfo.listpageViewUrl="/workflow/wfdProcess/list.vue";var t=this;this.listpageBtns.forEach((function(e){if(e.btnParams=null,"string"===typeof e.btnClick){var i=e.btnClick;if(-1!==e.btnClick.indexOf("(")){var n=i.substring(i.indexOf("(")+1,i.lastIndexOf(")"));""!==n&&(n=n.replace(/'/g,"").split(","),e.btnParams=n),i=i.split("(")[0]}t[i]&&(e.btnClick=t[i])}})),"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?(this.dwadmin=1,window.$user.findUserRolePermissions().then((function(t){"success"===t.code&&(t.body["ROLE_CODE_LIST"].indexOf("dwAdministrators")||(e.listpageBtns=e.listpageBtns.filter((function(e){if("deleteIds"===e.btnPermission&&"column"===e.btnType)return!0}))))})),this.moduleInfo.delUrl+="?dwadmin=1"):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("product=1")?(this.product=1,this.tbColumns[2].title="产品名称"):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")&&(this.platadmin=1),-1!==this.$route.meta.params.indexOf("product=1")?this.$options.components["SelectInput"]=this.$loadComponent("@/wapp/common/components/SwitchSys/orgSelectProduct"):this.$options.components["SelectInput"]=this.$loadComponent("@/wapp/common/components/SwitchSys/orgSelect"),this.tbColumns[this.tbColumns.length]={field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"},this.inited=!0,this.$bus.$on("getVo",this.getVoHandler),this.$bus.$on("getFile",this.getFileHandler),this.$bus.$on("dialogClose",this.dialogCloseHandler)},beforeDestroy:function(){this.$bus.$off("getVo",this.getVoHandler),this.$bus.$off("getFile",this.getFileHandler),this.$bus.$off("dialogClose",this.dialogCloseHandler)},mounted:function(){},watch:{},methods:{onOrgTreeNodeClick:function(e,t,i,n){this.$route.query.urlsearch="orgCode:"+n,this.$bus.emit("refreshListData")},onListDataBeforeLoad:function(e,t){console.log("process listdata before load.."),this.loginUser=e.loginUser,this.row.sysCode&&(t.urlsearch="sysCode:"+this.row.sysCode,this.moduleInfo.row=this.row);var i=this.$route.query.status;void 0!==i&&(t.urlsearch?t.urlsearch+=";status:"+i:t.urlsearch="status:"+i);var n=localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"",r=localStorage.orgItemProduct?JSON.parse(localStorage.orgItemProduct).code:"";t.urlsearch?t.urlsearch+=";sysCode:"+(this.product?r:n):t.urlsearch="sysCode:"+(this.product?r:n)},onListDataLoaded:function(e,t){console.log("process listdata loaded"),t.list.forEach((function(e){e.sysName+="("+e.sysCode+")"}))},onBasicFormBeforeOpen:function(e,t,i){console.log("process form before open"),i.resolve(!0)},onBasicFormOpened:function(e,t){console.log("process form opened")},onBasicFormBeforeSubmit:function(e,t,i){console.log("process form submit validation success"),i.resolve(!0)},onBasicFormSubmited:function(e,t){console.log("process form submited")},onDeleteSuccessed:function(e,t){console.log("process delete successed")},importWfDefine:function(){this.dialogVisible=!0},exportWfDefines:function(){var e=this,t=[];this.selectedRows.length>0?(this.selectedRows.forEach((function(e,i){t.push(e.id)})),this.$confirm("确认要导出选择的流程配置吗?",this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then((function(){e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:t,url:"workflow/wfdProcessMgr/exportWfDefines"}).then((function(t){if("success"===t.code){var i=t.body,n='<br/>下载地址:<a href="/apigw/'+i.zipurl+'" target="_blank">'+i.zipname+"</a>";e.$alert(t.message+n,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$message({type:"warning",message:t.message})}),(function(t){e.$message.error(t)}))})).catch((function(){}))):this.$alert("请选择需要导出的流程配置。",this.$tx("common.operationTip","操作提示"),{type:"info"})},exportWfdI18nCode:function(){var e=[];this.selectedRows.length>0?(this.selectedRows.forEach((function(t,i){e.push(t.id)})),this.$confirm("确认要导出选择的流程配置I18nCode吗?","确认操作",{type:"warning"}).then((function(){var t="/apigw/base/apiPortlet/dowloadWfdProcessConfigOnI18n?wfIds="+e.join(",");window.open(t)}))):this.$alert("请选择需要导出I18nCode的流程配置。",this.$tx("common.operationTip","操作提示"),{type:"info"})},onSelectedRowsChange:function(e){this.selectedRows=e},workflowDesigner:function(e,t,i,n){var r="/#/designer/workflow";1===this.dwadmin?r+="?dwadmin=1":1===this.product?r+="?product=1":1===this.platadmin&&(r+="?platadmin=1"),e&&void 0!==e.id&&("column_operate"===t.field&&(-1!==r.indexOf("?")?r+="&copy=1":r+="?copy=1"),-1!==r.indexOf("?")?r+="&id="+e.id:r+="?id="+e.id),window.open(r)},submitImportWfDefine:function(e){var t=this;this.$refs.son.$refs.ValidationProvider.validate().then((function(){var e=document.querySelector(".invalid-field");null!==e&&""!==e.innerHTML||t.$refs.son.$refs.upload.submit()}))},getVoHandler:function(e){this.voFromSon=e},getFileHandler:function(e){this.fileFromSon=e},dialogCloseHandler:function(e){this.dialogVisible=e}}}},29814:function(e){e.exports={name:"SyncRestfulApi",data:function(){return{title:"同步产品API",dialogFormVisible:!1,canEdit:1,doing:!1,vo:null,tableFieldInfo:[{elementCanEdit:1,elementReadonly:1,elementType:"input",emptyMessage:"请选择平台产品 ",formTdAlign:"text-left",formTdColspan:0,isRequired:1,passenger:{},propComment:"产品名称",propName:"sysName",propType:"String",dialog:1,dialogType:"listpage",dialogMultiple:!1,dialogTitle:"选择平台产品",dialogListviewurl:"base.product.list",dialogExcludeFileds:"status"},{elementCanEdit:0,elementType:"input",emptyMessage:"",formTdAlign:"text-left",formTdColspan:0,isRequired:1,passenger:{},propComment:"产品代码",propName:"sysCode",propType:"String"},{elementCanEdit:1,elementType:"input",emptyMessage:'请输入基础平台微服务地址,"/"结尾',formTdAlign:"text-left",formTdColspan:0,isRequired:1,passenger:{},propComment:"产品微服务地址",propName:"apiUrl",propType:"String"}],resEntityName:""}},created:function(){this.$bus.on("openSyncRestfulApiForm",this.openBusiform)},beforeDestroy:function(){this.$bus.off("openSyncRestfulApiForm",this.openBusiform)},methods:{openBusiform:function(){this.vo={sysCode:"standard",sysName:"易臣智慧云",apiUrl:""},this.dialogFormVisible=!0},submitBusiform:function(){if(""!==this.vo.apiUrl&&null!==this.vo.apiUrl){var e=this;e.doing=!0;var t=this.vo.apiUrl;"/"!==t.substring(t.length-1)&&(t+="/"),e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{apiUrl:t,jwtToken:encodeURIComponent(window.$auth.getToken())},url:"v2/api-docs"}).then((function(t){if(t.tags){var i=[];t.tags.forEach((function(n,r){var o,a,s,l=function(){var r=!1;e.vo.pathPrefix?e.vo.pathPrefix.split(",").forEach((function(e){""!==e&&0===d.indexOf(e)&&(r=!0)})):r=!0,o=e.getFirstAttrName(t.paths[d]),a=t.paths[d][o],r&&a.tags[0]===n.name&&(s={},s.apiDesc=a.summary,s.apiUrl=d,s.controllerCode=n.description.replace(/ /g,""),s.controllerName=n.name.trim(),-1!==s.controllerName.indexOf(" ")&&(s.controllerName=s.controllerName.substring(s.controllerName.lastIndexOf(" ")+1)),s.httpMethod=o,s.visitType=0,s.operationCode=d.substring(d.lastIndexOf("/")+1),"{"===s.operationCode.substring(0,1)&&d.split("/").length>=2&&(s.operationCode=d.split("/")[d.split("/").length-2]),s.sysCode=e.vo.sysCode,s.sysName=e.vo.sysName,i.push(s))};for(var d in t.paths)l()})),i.length>0?e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:i,url:"base/restfulApi/batchSaveRestfulApi"}).then((function(t){"success"===t.code?(e.$message({type:t.code,message:t.message,showClose:!0}),e.$bus.emit("refreshListData"),e.closeDialog()):(e.$alert(t.message,this.$tx("common.operationTip","操作提示"),{type:"error"}),e.doing=!1)})):(e.$message({type:"success",message:"RESTFUL API已全部同步成功!",showClose:!0}),e.closeDialog())}else e.$alert(t.message,this.$tx("common.operationTip","操作提示"),{type:"error"}),e.doing=!1}))}else this.$alert("请输入产品微服务地址",this.$tx("common.operationTip","操作提示"),{type:"warning"})},getFirstAttrName:function(e){for(var t in e)return t},closeDialog:function(){this.dialogFormVisible=!1,this.doing=!1,this.moduleInfo={},this.vo={}},footerBtns:function(){var e=[];return e.push({id:"btn_close",btnName:"取 消",btnIcon:"close",btnClick:this.closeDialog,btnPermission:"",btnType:""}),e.push({id:"btn_save",btnName:"确 定",btnIcon:"check",btnClick:this.submitBusiform,btnPermission:"saveObject",btnType:"primary"}),e},onSelectListpageRowCompleted:function(e,t){var i=this;this.$set(this.vo,"sysName",e[0].name),this.$set(this.vo,"sysCode",e[0].code),this.$set(this.vo,"apiUrl",e[0].apiUrl||""),3===this.tableFieldInfo.length&&this.tableFieldInfo.push({elementCanEdit:1,elementType:"input",emptyMessage:"请输入产品API接口前缀,例:/gwgl,/gwjh,/wpsOffice",formTdAlign:"text-left",formTdColspan:0,isRequired:0,passenger:{},propComment:"产品API接口前缀",propName:"pathPrefix",propType:"String"});var n="",r=[{compare:"=",field:"productCode",value:e[0].code}];this.$http({method:"POST",data:r,url:"base/apiRoute/querydata"}).then((function(t){"success"===t.code?t.body.listdata.forEach((function(e){var t=e.path.split("/")[1];-1===n.indexOf("/"+t)&&(n+=",/"+t)})):i.$alert(t.message,i.$tx("common.operationTip","操作提示"),{type:"error"}),""===n?(n=e[0].code,n.length>=5&&("ecyoa"===n?n="/ecoa,/message,/disk,/voice,/user,/mail":"ecykq"===n?n="/kqgl":0===n.indexOf("ecy")?n="/"+n.substring(3):0===n.indexOf("ec")&&(n="/"+n.substring(2)))):n=n.substring(1),i.$set(i.vo,"pathPrefix",n)}))}}}},26200:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},55539:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},98259:function(e,t,i){"use strict";i.d(t,{KS:function(){return k},Pc:function(){return x},Z0:function(){return T},ot:function(){return _},wS:function(){return S}});var n=i(12215),r=i.n(n),o=i(45730),a=i(26200),s=i.n(a),l=i(16700),d=i.n(l),c=i(55539),u=i.n(c),f=i(93150),p=i.n(f);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function b(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?m(Object(i),!0).forEach((function(t){v(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function v(e,t,i){return(t=g(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function g(e){var t=y(e,"string");return"symbol"==h(t)?t:t+""}function y(e,t){if("object"!=h(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var w={en:b({},s()),zhCN:b({},d()),es:b({},u()),ja:b({},p())},_=w;function x(e,t,i){var n,r=this&&this.$vnode?this.$vnode.context:window.$wapp||window.$mapp;return r.$i18n||console.log(e),n=r.$i18n&&r.$te(e)?r.$t(e):"object"!==h(t)?t:i,"object"===h(t)&&n&&Object.keys(t).forEach((function(e){n=n.replace("{"+e+"}",t[e])})),n}function k(e,t,i,n,r){if(t=t||this,t.$i18n&&"zhCN"===t.$i18n.locale){if(e.btnName&&-1===e.btnName.indexOf("."))return e.btnName;if(e.field&&e.title)return e.title}if(e.i18nCode&&-1!==e.i18nCode.indexOf(".")&&t.$te(e.i18nCode))return t.$t(e.i18nCode,r);var o=t.moduleInfo||t.$vnode.context.moduleInfo||t.$vnode.context.$vnode.context.moduleInfo;if(!n&&(n=t.i18npkg||t.$vnode.context.i18npkg||t.$vnode.context.$vnode.context.i18npkg,!n)){var a=t.wfInstance||t.$vnode.context.wfInstance;if(a&&a.workForm){var s=a.workForm;if(-1!==s.indexOf("/dcontent/"))s=s.split("/dcontent/")[1].split("."),n=s[0],i=s[1];else if(t.wfEngineUrl||t.$vnode.context.wfEngineUrl||t.$vnode.context.$vnode.context.wfEngineUrl){var l=(t.wfEngineUrl||t.$vnode.context.wfEngineUrl||t.$vnode.context.$vnode.context.wfEngineUrl).split("/");n=l[0],i=l[1]}else-1!==s.indexOf("@/")&&(s=s.split("/"),n=s[2],i=s[3])}else if(void 0!==e.activeMenu||"menuItem"===e.type){if(e.i18npkg)n=e.i18npkg;else if(e.i18nCode&&-1!=e.i18nCode.indexOf("."))n=e.i18nCode.substring(0,e.i18nCode.indexOf(".")),e.i18npkg=n,e.i18nCode=e.i18nCode.substring(e.i18nCode.lastIndexOf(".")+1);else if(!e.i18npkg&&e.href){var d=e.href;-1!==d.indexOf("/dcontent/")?(d=d.split("/dcontent/")[1].split("."),n=d[0],e.i18npkg=d[0]):-1!==d.indexOf("@/")&&(d=d.split("/"),n=d[2],e.i18npkg=d[0])}}else o&&o.listDataUrl&&o.listDataUrl.split("/").length>2&&("/"===o.listDataUrl.substring(0,1)&&(o.listDataUrl=o.listDataUrl.substring(1)),n=o.listDataUrl.split("/")[0])}n?n+=".":n="",i||(i=t.moduleCode||t.$vnode.context.moduleCode||t.$vnode.context.$vnode.context.moduleCode,!i&&o&&(o.moduleCode?i=o.moduleCode:o.listDataUrl&&o.listDataUrl.split("/").length>2&&("/"===o.listDataUrl.substring(0,1)&&(o.listDataUrl=o.listDataUrl.substring(1)),i=o.listDataUrl.split("/")[1]))),i?i+=".":i="";var c="";if("menuItem"===e.type||void 0!==e.activeMenu||1===e.level&&1===e.topFlag)c=n+"menuItem."+e.i18nCode;else if("navbar"===e.type||void 0!==e.breadcrumb)c="navbar."+e.title;else if(e.formTitle)c=n+e.code+".formTitle";else{if(e.field&&"option"===e.type){var u=null;n&&(u=t.$i18n.messages[t.$i18n.locale][n.replace(".","")]),u||(u=t.$i18n.messages[t.$i18n.locale]),i=i.substring(0,i.length-1);var f=[];return u&&u[i]&&u[i].options&&u[i].options[e.field]?f=u[i].options[e.field]:u&&u.options&&u.options[e.field]?f=u.options[e.field]:t.$i18n.messages[t.$i18n.locale].options&&t.$i18n.messages[t.$i18n.locale].options[e.field]&&(f=t.$i18n.messages[t.$i18n.locale].options[e.field]),f[e.value]?f[e.value]:null}e.field?c=n+i+"fields."+e.field:e.btnI18nCode?c="commandBarBtn"===e.type?n+i+"wfdProcess.operations."+e.btnI18nCode:n+"pageBtns."+e.btnI18nCode:e.wfNodeName?c=n+i+"wfdProcess.nodes."+e.wfNodeName:e.wfPathName?c=n+i+"wfdProcess.paths."+e.wfPathName:e.wfIdeaLabel?c=n+i+"wfdProcess.ideaLabels."+e.wfIdeaLabel:e.i18nCode&&(c=e.i18nCode,-1===c.indexOf(i)&&(c=i+c),-1===c.indexOf(n)&&(c=n+c))}var p=c.replace(n,"").replace(i,""),h=c.replace(i,"");if(t&&t.$te){if(t.$te(c))return t.$t(c,r);if(t.$te(h))return t.$t(h,r);if(t.$te(p))return t.$t(p,r);if("zhCN"!==t.$i18n.locale&&"option"!==e.type){var m="",b=e.i18nCode||e.code||e.field||e.btnI18nCode||e.title||"";if(m=b.split(".").length>1?b.substring(b.lastIndexOf(".")+1).replace("-","_"):b.replace("-","_"),-1!==m.indexOf("_")){m=m.toLowerCase().split("_");for(var v=0;v<m.length;v++)m[v]=m[v].substring(0,1).toUpperCase()+m[v].substring(1);return m.join("")}return m.substring(0,1).toUpperCase()+m.substring(1)}}return e.title||e.btnName||e.formTitle}function S(e,t,i,n){var r=o.A.state.settings.title;return n.$te("sysName")&&(r=n.$t("sysName")),t&&(e=k({i18nCode:t,href:i,type:"menuItem"},n)),e?"".concat(e," - ").concat(r):r}function T(){try{var e=r().get("language");if(e)return"zh-CN"==e&&(e="zhCN"),e;var t=(navigator.language||navigator.browserLanguage||"").toLowerCase();if(w)for(var i=Object.keys(w),n=0,o=i;n<o.length;n++){var a=o[n];if(t.indexOf(a)>-1)return a}}catch(s){console.log(s)}return"zhCN"}},93150:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},16700:function(e){e.exports={request:{status401relogin:"认证会话已过期,请重新登录。",status401:"认证会话已过期。",status404:"接口不存在或执行错误:"}}},45730:function(e,t,i){"use strict";i.d(t,{A:function(){return u}});var n=i(9274),r=i.n(n),o=i(95353),a={sidebar:function(e){return e.app.sidebar},language:function(e){return e.app.language},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},loginUser:function(e){return e.user.loginUser},organList:function(e){return e.user.organList},avatar:function(e){return e.user.avatar},roles:function(e){return e.user.roles},routes:function(e){return e.route.routes},swipeImages:function(e){return e.app.swipeImages},productCodeList:function(e){return e.user.productCodeList},productCodeAll:function(e){return e.user.productCodeAll},maxFileSize:function(e){return e.user.maxFileSize}},s=a;r().use(o.Ay);var l=null,d=null;void 0!==window.vType?("wapp"===window.vType?l=i(85196):"mapp"===window.vType&&(l=i(59326)),d=l.keys().reduce((function(e,t){var i=t.replace(/^\.\/(.*)\.\w+$/,"$1"),n=l(t);return e[i]=n.default,e}),{}),l=i(82397),l.keys().reduce((function(e,t){var i=t.replace(/^\.\/(.*)\.\w+$/,"$1"),n=l(t);return d[i]=n.default,d}),{})):(l=i(82397),d=l.keys().reduce((function(e,t){var i=t.replace(/^\.\/(.*)\.\w+$/,"$1"),n=l(t);return e[i]=n.default,e}),{}));var c=new o.Ay.Store({modules:d,getters:s}),u=c},83070:function(e,t,i){"use strict";i.r(t);var n=i(12215),r=i.n(n),o={device:"mobile",swipeImages:r().get("swipeImages")||[]},a={SET_SWIPE_IMAGES:function(e,t){e.swipeImages=t,r().set("swipeImages",t)},SET_DEVICE:function(e,t){e.device=t,r().set("device",t)}},s={setSwipeImages:function(e,t){var i=e.commit;i("SET_SWIPE_IMAGES",t)},setDevice:function(e,t){var i=e.commit;i("SET_DEVICE",t)}};t["default"]={namespaced:!0,state:o,mutations:a,actions:s}},28076:function(e,t,i){"use strict";i.r(t);var n={routes:[]},r={SET_ROUTES:function(e,t){e.routes=t}},o={generateRoutes:function(e){var t=e.commit;return new Promise((function(e,i){window.$user.findH5apps().then((function(i){var n=[];i.body.listdata.forEach((function(e){var t=s(e);if(n.push(t),void 0!==e.appRoute&&null!==e.appRoute&&""!==e.appRoute&&"[{}]"!==e.appRoute&&"[]"!==e.appRoute){var i=JSON.parse(e.appRoute.replace(/\r\n/g,"").replace(/\n/g,"").replace(/ /g,""));a(n,i,e)}})),t("SET_ROUTES",n),e(n)})).catch((function(e){i(e)}))}))},updateRoutes:function(e,t){var i=e.commit;i("SET_ROUTES",t)}};function a(e,t,i){t.forEach((function(t){var n=t.component;if(null!==n&&"#/dcontent/"===n.substring(0,11)){var r=n.substring(11);-1===r.indexOf("?")?r+=".vue?sysCode="+(i.sysCode||i.meta.sysCode):r=n.substring(11).split("?")[0]+".vue?sysCode="+(i.sysCode||i.meta.sysCode)+"&"+n.substring(11).split("?")[1],r=0===r.indexOf("portalpage/")||0===r.indexOf("vuereportpage/")?"#/dcontent/"+r:"#/dcontent/vuelistpage/"+r,n=r}t.component=window.$loadComponent(n),t.meta=t.meta||{},t.metasysCode=i.sysCode||i.meta.sysCode,t.metasysName=i.sysName||i.meta.sysName,t.metaorgCode=i.orgCode||i.meta.orgCode,t.metaorgName=i.orgName||i.meta.orgName,e.push(t),void 0!==t.children&&null!==t.children&&a(e,t.children,t)}))}function s(e){return 2===e.appType?e.routeTo=e.h5Url.substring(1):e.h5Url.indexOf("?")>0?e.routeTo="/"+e.id+e.h5Url.substring(e.h5Url.indexOf("?")):e.routeTo="/"+e.id,{path:"/"+e.id,component:window.$loadComponent("@/mapp/common/components/H5appLoader/index"),name:e.id,alias:e.name,hidden:!0,meta:e,sysCode:e.sysCode}}t["default"]={namespaced:!0,state:n,mutations:r,actions:o}},70819:function(e,t,i){"use strict";i.r(t);var n=i(45730),r=i(12215),o=i.n(r);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",d=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,i){return e[t]=i}}function f(e,t,i,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new E(n||[]);return r(a,"_invoke",{value:N(e,i,s)}),a}function p(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",b="executing",v="completed",g={};function y(){}function w(){}function _(){}var x={};u(x,l,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(O([])));S&&S!==i&&n.call(S,l)&&(x=S);var T=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function i(r,o,s,l){var d=p(e[r],e,o);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==a(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,l)}))}l(d.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function N(t,i,n){var r=h;return function(o,a){if(r===b)throw Error("Generator is already running");if(r===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=b;var d=p(t,i,n);if("normal"===d.type){if(r=n.done?v:m,d.arg===g)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(r=v,n.method="throw",n.arg=d.arg)}}}function L(t,i){var n=i.method,r=t.iterator[n];if(r===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,L(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(r,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var a=o.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var i=t[l];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function i(){for(;++r<t.length;)if(n.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError(a(t)+" is not iterable")}return w.prototype=_,r(T,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},C(M.prototype),u(M.prototype,d,(function(){return this})),t.AsyncIterator=M,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new M(f(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(T),u(T,c,"Generator"),u(T,l,(function(){return this})),u(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(n,r){return s.type="throw",s.arg=t,i.next=n,r&&(i.method="next",i.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),d=n.call(a,"finallyLoc");if(l&&d){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),D(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;D(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:O(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function l(e,t,i,n,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function d(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function a(e){l(o,n,r,a,s,"next",e)}function s(e){l(o,n,r,a,s,"throw",e)}a(void 0)}))}}var c="-"+location.port;localStorage.getItem("productCode")&&(c="-"+localStorage.getItem("productCode"));var u={token:o().get((window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN")+c),name:"",avatar:"",loginUser:{},disallowPermissions:{},roles:[],organList:[],productCodeList:[],productCodeAll:[],maxFileSize:-1},f={SET_TOKEN:function(e,t){e.token=t},SET_LOGIN_USER:function(e,t){e.loginUser=t},SET_NAME:function(e,t){e.name=t},SET_PERMISSIONS:function(e,t){var i={};t.forEach((function(e){if(e.resUrl){"/"!==e.resUrl.substring(0,1)&&(e.resUrl="/"+e.resUrl);var t=e.resUrl.split("/"),n=t[1]+"."+t[2];t.length>4?n+="."+t[4].replace(".html","").replace(".vue",""):t.length>3?n+="."+t[3].replace(".html","").replace(".vue",""):n=n.replace(".html","").replace(".vue",""),void 0===i[n]&&(i[n]=[]),i[n].push(e.code)}})),e.disallowPermissions=i},SET_ROLES:function(e,t){e.roles=t},SET_PERSON_ORGAN_LIST:function(e,t){e.organList=t},SET_AVATAR:function(e,t){e.avatar=t},SET_PRODUCT_CODE_LIST:function(e,t){e.productCodeList=t},SET_PRODUCT_CODE_ALL:function(e,t){e.productCodeAll=t||[]},SET_MAX_FILE_SIZE:function(e,t){e.maxFileSize=t}};function p(e){try{var t=document.createStyleSheet();t.cssText=e}catch(i){t=document.createElement("style");t.type="text/css",t.textContent=e,document.getElementsByTagName("HEAD").item(0).appendChild(t)}}var h={login:function(e,t){var i=e.commit,n=t.username,r=t.password,o=t.kaptcha,a=t.encrypt,l=t.productCode,c=t.sysCode,u=t.imei,f=t.enjwt;return new Promise((function(e,t){window.$user.formLogin({username:n.trim(),password:r,kaptcha:o,encrypt:a,productCode:l,sysCode:c,imei:u,enjwt:f}).then(function(){var n=d(s().mark((function n(r){var o,a,l;return s().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=r,"success"!==o.code){n.next=13;break}return a=o[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]||o["PORTAL-JWTSSO-TOKEN"],n.next=5,window.$user.getLoginUser(a);case 5:l=n.sent,o["STAFF_INFO_LIST"]&&o["STAFF_INFO_LIST"].length>0?l.staffList=o["STAFF_INFO_LIST"]:l.staffList=[],o["PERMISSION_LIST"]?(window.$auth.setProductCode(o["PRODUCT_CODE_LIST"],l.sysCode),window.$auth.setToken(a),window.$auth.setTicket(o[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(o["ecweb-csrf-token"]),i("SET_TOKEN",a),i("SET_ROLES",o["ROLE_CODE_LIST"]),i("SET_PERMISSIONS",o["PERMISSION_LIST"]),i("SET_PERSON_ORGAN_LIST",o["PERSON_ORGAN_LIST"]),i("SET_PRODUCT_CODE_LIST",o["PRODUCT_CODE_LIST"]),i("SET_PRODUCT_CODE_ALL",o["PRODUCT_CODE_ALL"]),i("SET_MAX_FILE_SIZE",o["MAX_FILE_SIZE"])):(window.$auth.setToken(a),window.$auth.setTicket(o[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(o["ecweb-csrf-token"]),i("SET_TOKEN",a)),i("SET_AVATAR","/apigw/base/user/download?id="+l.userId+"&dataField=photoData&nameField=photoName&csrfToken="+o["ecweb-csrf-token"]),i("SET_LOGIN_USER",l),e(o),n.next=14;break;case 13:t(o);case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()).catch((function(e){t(e)}))}))},tokenSsoLogin:function(e,t){var i=e.commit;return new Promise(function(){var e=d(s().mark((function e(n){var r;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getLoginUser(t[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]);case 2:r=e.sent,window.$auth.setProductCode(t["PRODUCT_CODE_LIST"],r.sysCode),window.$auth.setToken(t[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]),window.$auth.setTicket(t[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(t["ecweb-csrf-token"]),t["STAFF_INFO_LIST"]&&t["STAFF_INFO_LIST"].length>0?r.staffList=t["STAFF_INFO_LIST"]:r.staffList=[],i("SET_TOKEN",window.$auth.getToken()),i("SET_LOGIN_USER",r),i("SET_ROLES",t["ROLE_CODE_LIST"]),i("SET_PERMISSIONS",t["PERMISSION_LIST"]),i("SET_PERSON_ORGAN_LIST",t["PERSON_ORGAN_LIST"]),i("SET_PRODUCT_CODE_LIST",t["PRODUCT_CODE_LIST"]),i("SET_PRODUCT_CODE_ALL",t["PRODUCT_CODE_ALL"]),i("SET_MAX_FILE_SIZE",t["MAX_FILE_SIZE"]),i("SET_AVATAR","/apigw/base/user/download?id="+r.userId+"&dataField=photoData&nameField=photoName&csrfToken="+t["ecweb-csrf-token"]),n();case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},updateStore:function(e,t){var i=e.commit,n=e.state;return new Promise(function(){var e=d(s().mark((function e(r){var o,a;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=t||window.$auth.getToken(),n.loginUser.userId&&n.productCodeAll&&!t||!o){e.next=10;break}return e.next=4,window.$user.getLoginUser(o);case 4:a=e.sent,i("SET_TOKEN",window.$auth.getToken()),i("SET_LOGIN_USER",a),window.$user.findUserRolePermissions().then((function(e){if("success"===e.code){var t=e.body;try{window.$auth.getProductCode()||(window.$auth.setProductCode(t["PRODUCT_CODE_LIST"],a.sysCode),window.$auth.setToken(o))}catch(n){console.log(n)}window.$auth.setTicket(t[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(t["ecweb-csrf-token"]),i("SET_ROLES",t["ROLE_CODE_LIST"]),i("SET_PERMISSIONS",t["PERMISSION_LIST"]),i("SET_PERSON_ORGAN_LIST",t["PERSON_ORGAN_LIST"]),i("SET_PRODUCT_CODE_LIST",t["PRODUCT_CODE_LIST"]),i("SET_PRODUCT_CODE_ALL",t["PRODUCT_CODE_ALL"]),i("SET_MAX_FILE_SIZE",t["MAX_FILE_SIZE"]),t["STAFF_INFO_LIST"]&&t["STAFF_INFO_LIST"].length>0?a.staffList=t["STAFF_INFO_LIST"]:a.staffList=[],i("SET_LOGIN_USER",a),i("SET_AVATAR","/apigw/base/user/download?id="+a.userId+"&dataField=photoData&nameField=photoName&csrfToken="+t["ecweb-csrf-token"]),r(!0)}else r(e.message)})).catch((function(e){r(e)})),e.next=11;break;case 10:r(!0);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setUIStyle:function(e,t){e.state;return new Promise(function(){var e=d(s().mark((function e(i){var n;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,window.$user.getUIStyle();case 3:n=e.sent,"string"===typeof n&&p(n);case 5:i(!0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setDefaultUIStyle:function(e,t){e.state;return new Promise(function(){var e=d(s().mark((function e(i){var n;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getDefaultUIStyle(t);case 2:n=e.sent,"string"===typeof n&&p(n),i(!0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},updateJwtToken:function(e,t){var i=e.commit;return new Promise(function(){var e=d(s().mark((function e(n){var r;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getLoginUser(t);case 2:r=e.sent,i("SET_TOKEN",t),i("SET_LOGIN_USER",r),window.$user.findUserRolePermissions().then((function(e){if("success"===e.code){var o=e.body;try{window.$auth.getProductCode()||(window.$auth.setProductCode(o["PRODUCT_CODE_LIST"],r.sysCode),window.$auth.setToken(t))}catch(a){console.log(a)}window.$auth.setTicket(o[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(o["ecweb-csrf-token"]),i("SET_ROLES",o["ROLE_CODE_LIST"]),i("SET_PERMISSIONS",o["PERMISSION_LIST"]),i("SET_PERSON_ORGAN_LIST",o["PERSON_ORGAN_LIST"]),i("SET_PRODUCT_CODE_LIST",o["PRODUCT_CODE_LIST"]),i("SET_PRODUCT_CODE_ALL",o["PRODUCT_CODE_ALL"]),i("SET_MAX_FILE_SIZE",o["MAX_FILE_SIZE"]),o["STAFF_INFO_LIST"]&&o["STAFF_INFO_LIST"].length>0?r.staffList=o["STAFF_INFO_LIST"]:r.staffList=[],i("SET_LOGIN_USER",r),n(!0)}else n(e.message)})).catch((function(e){n(e)})),n();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},hasPermission:function(e,t){var i=e.state,n="",r=t.href;if(void 0===r)return!0;for(var o=r.split(","),a=0;a<o.length;a++)if(r=o[a],0===r.indexOf("@/wapp")||0===r.indexOf("@/mapp")){var s=r.split("/");if(n=s[2]+"."+s[3],s.length>4&&(n+="."+s[4]),s.length>5&&(n+="."+s[5]),n=n.replace(".vue","").replace(".html",""),i.disallowPermissions[n]&&-1!==i.disallowPermissions[n].indexOf(t.pcode))return!1}else if(0===r.indexOf("#/dcontent")){r=r.split("/")[2];s=r.split(".");if(n=s[0]+"."+s[1],s.length>2&&(n+="."+s[2]),s.length>3&&(n+="."+s[3]),n=n.replace(".vue","").replace(".html",""),i.disallowPermissions[n]&&-1!==i.disallowPermissions[n].indexOf(t.pcode))return!1}return!0},logout:function(e){var t=e.commit;e.state;return new Promise(function(){var e=d(s().mark((function e(i){return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:window.$user.logout().then((function(){n.A.dispatch("route/updateRoutes",[]).then((function(){t("SET_TOKEN",""),t("SET_LOGIN_USER",null),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),t("SET_PERSON_ORGAN_LIST",[]),t("SET_AVATAR",""),t("SET_PRODUCT_CODE_LIST",[]),t("SET_PRODUCT_CODE_ALL",[]),window.$auth.removeProductCode(),window.$auth.removeToken(),window.$auth.removeTicket(),window.$auth.removeRoles(),window.$auth.removePermissions(),i()}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_LOGIN_USER",null),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),t("SET_AVATAR",""),window.$auth.removeTicket(),window.$auth.removeToken(),window.$auth.removeRoles(),window.$auth.removePermissions(),e()}))}};t["default"]={namespaced:!0,state:u,mutations:f,actions:h}},78532:function(e,t,i){"use strict";i.r(t);var n=i(12215),r=i.n(n),o=i(98259),a={sidebar:{opened:!r().get("sidebarStatus")||!!+r().get("sidebarStatus"),withoutAnimation:!1},device:"desktop",language:(0,o.Z0)(),size:r().get("size")||"medium"},s={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?r().set("sidebarStatus",1):r().set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){r().set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},OPEN_SIDEBAR:function(e,t){r().set("sidebarStatus",1),e.sidebar.opened=!0,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_LANGUAGE:function(e,t){e.language=t,r().set("language",t)},SET_SIZE:function(e,t){e.size=t,r().set("size",t)}},l={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var i=e.commit,n=t.withoutAnimation;i("CLOSE_SIDEBAR",n)},openSideBar:function(e,t){var i=e.commit,n=t.withoutAnimation;i("OPEN_SIDEBAR",n)},toggleDevice:function(e,t){var i=e.commit;i("TOGGLE_DEVICE",t)},setLanguage:function(e,t){var i=e.commit;i("SET_LANGUAGE",t)},setSize:function(e,t){var i=e.commit;i("SET_SIZE",t)}};t["default"]={namespaced:!0,state:a,mutations:s,actions:l}},26338:function(e,t,i){"use strict";i.r(t);i(28572);var n=i(38342),r=i(4466);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",d=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function u(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,i){return e[t]=i}}function f(e,t,i,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new E(n||[]);return r(a,"_invoke",{value:N(e,i,s)}),a}function p(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",b="executing",v="completed",g={};function y(){}function w(){}function _(){}var x={};u(x,l,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(O([])));S&&S!==i&&n.call(S,l)&&(x=S);var T=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function i(r,a,s,l){var d=p(e[r],e,a);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==o(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,l)}))}l(d.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function N(t,i,n){var r=h;return function(o,a){if(r===b)throw Error("Generator is already running");if(r===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=b;var d=p(t,i,n);if("normal"===d.type){if(r=n.done?v:m,d.arg===g)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(r=v,n.method="throw",n.arg=d.arg)}}}function L(t,i){var n=i.method,r=t.iterator[n];if(r===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,L(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(r,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var a=o.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var i=t[l];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function i(){for(;++r<t.length;)if(n.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return w.prototype=_,r(T,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},C(M.prototype),u(M.prototype,d,(function(){return this})),t.AsyncIterator=M,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new M(f(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(T),u(T,c,"Generator"),u(T,l,(function(){return this})),u(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(n,r){return s.type="throw",s.arg=t,i.next=n,r&&(i.method="next",i.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),d=n.call(a,"finallyLoc");if(l&&d){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),D(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;D(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:O(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function s(e,t,i,n,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function l(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function a(e){s(o,n,r,a,l,"next",e)}function l(e){s(o,n,r,a,l,"throw",e)}a(void 0)}))}}var d=i(34195),c=d.showTopMenus,u={routes:[]},f={SET_ROUTES:function(e,t){e.routes=t}},p={generateRoutes:function(e,t){var i=e.commit;return new Promise((function(e,n){window.$user.findNavMenus(t).then(function(){var t=l(a().mark((function t(n){var o,s,l,d,c,u;return a().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=window.$loadComponent("@/wapp/common/layout/index"),s=[],l=n.body.listdata.filter((function(e){if(1===e.moduleLevel)return!0})),t.next=5,window.$user.getLoginUser(window.$auth.getToken());case 5:if(d=t.sent,c=sessionStorage.getItem("dynamicRoutes-"+d.personAccount),c&&(c=JSON.parse(c),h(s,c)),l.forEach((function(e){if(!c||e.id!==c[0].meta.id){var t=o;!e.href||"@/"!==e.href.substring(0,2)&&"#/dcontent"!==e.href.substring(0,10)||"_top"!==e.target||(t=window.$loadComponent(e.href));var i=b(t,e,null,null,null);s.push(i);var r=m(t,n.body.listdata,e,null,null);s=s.concat(r)}})),void 0!==n.body.wappRoutes&&null!==n.body.wappRoutes)for(u in n.body.wappRoutes)h(s,n.body.wappRoutes[u]);i("SET_ROUTES",s),r.A.connectWebSocket(window.$wapp),e(s);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){n(e)}))}))},updateRoutes:function(e,t){var i=e.commit;i("SET_ROUTES",t)}};function h(e,t){t.forEach((function(t){t.component&&"string"===typeof t.component?t.component=window.$loadComponent(t.component):t.meta&&t.meta.href&&(0===t.meta.href.indexOf("@/")||0===t.meta.href.indexOf("#/dcontent"))&&(t.component=window.$loadComponent(t.meta.href)),e.push(t),void 0!==t.children&&null!==t.children&&h(e,t.children)}))}function m(e,t,i,n,r,o){var a=[],s=t.filter((function(e){if(e.parentId===i.id)return!0}));return s.forEach((function(s){2===s.moduleLevel&&(n=s.code),3===s.moduleLevel?(r=s.name,o=(s.i18nCode||s.code).replace(".svg","")):4!==s.moduleLevel||s.target||(s.target="rightLabel");var l=b(e,s,n,r,o);l.meta.parentTarget=i.target,0===s.leafFlag&&(l.children=m(e,t,s,n,r,o),("rightLabel"===s.target||s.moduleLevel>=3&&"leftMenuItem"!==s.target)&&l.children.length>0?(l.children.forEach((function(e,t){e.hidden=!0,"rightLabel"===s.target&&(e.meta.parentTarget="rightLabel"),e.meta.activeMenu=l.meta.activeMenu||l.path})),""!==l.meta.href&&"#"!==l.meta.href||(l.redirect=l.path+"/"+l.children[0].path)):3===s.moduleLevel&&"leftMenuItem"===s.target&&l.children.forEach((function(e,t){e.meta.activeMenu=l.meta.activeMenu+"/"+e.path}))),a.push(l)})),a}function b(e,t,i,r,o){var a=!1,s="/lm/"+t.id,l=t.code,d=null;1===t.moduleLevel?(a=!0,s="/tm/"+t.id):2===t.moduleLevel?a=c:(null!==t.wfName&&""!==t.wfName||(l=null),d="/lm/"+t.parentId+"/"+t.id,s=t.id);var u=t.href||"#",f=null;f=-1!==u.indexOf("?")?u.substring(u.indexOf("?")+1):null;var p=e;if(null!==u&&"@/"===u.substring(0,2))p=window.$loadComponent(u),u=u.split("?")[0];else if(null!==u&&"#/dcontent/"===u.substring(0,11)){var h=u.substring(11);-1===h.indexOf("?")?h+=".vue?sysCode="+t.sysCode:h=u.substring(11).split("?")[0]+".vue?sysCode="+t.sysCode+"&"+u.substring(11).split("?")[1],p=0===h.indexOf("portalpage/")||0===h.indexOf("vuereportpage/")||5===t.leafType?window.$loadComponent("#/dcontent/"+h):window.$loadComponent("#/dcontent/vuelistpage/"+h),u=u.split("?")[0]}else null!==u&&"http"===u.substring(0,4)?p=n.vT:t.moduleLevel>2&&(p=window.$loadComponent("@/wapp/common/layout/components/Blank"));1!==t.leafFlag||t.target&&"leftMenuItem"!==t.target||(1===t.moduleLevel?t.target="mainpage":t.target="content");var m={path:s,component:p,name:t.id,alias:t.name,hidden:a,alwaysShow:2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target,meta:{id:t.id,componentUrl:p.componentUrl,lazy:p.lzay,title:t.name,description:t.description,busiType:t.busiType,icon:l,code:t.code,i18nCode:(t.i18nCode||t.code).replace(".svg",""),level:t.moduleLevel,topFlag:t.topFlag,href:u,target:t.target,params:f,parentId:t.parentId,parentIconCode:i,parentTitle:r,parentI18nCode:o,activeMenu:d,wfName:t.wfName,wfNodeName:t.wfNodeName,wfEngineUrl:t.wfEngineUrl,sysCode:t.sysCode}};if(t.href&&"#"!==t.href&&t.moduleLevel<=2&&("content"===t.target||"mainpage"===t.target)){m.path="/lm/"+t.parentId+"/"+t.id,m.hidden=!1,m.meta.level=t.moduleLevel+1;var b={path:"/lm/"+t.parentId+"/"+t.id+"/"+Math.random(),component:e,hidden:a,meta:{id:t.id,title:t.name,i18nCode:(t.i18nCode||t.code).replace(".svg",""),busiType:t.busiType,icon:t.code,level:t.moduleLevel,parentId:t.parentId,target:t.target,breadcrumb:!1,sysCode:t.sysCode},children:[m]};1===t.moduleLevel&&(b.path="/"+t.parentId,b.meta.topFlag=t.topFlag,b.meta.target="mainpage",b.hidden=!0,b.children[0].path=t.id,b.children[0].hidden=!0,b.children[0].meta.parentId=t.id),m=b}return m}t["default"]={namespaced:!0,state:u,mutations:f,actions:p}},44578:function(e,t,i){"use strict";i.r(t);var n=i(1631),r=i(34195),o=r.title,a=r.showSettings,s=r.tagsView,l=r.fixedHeader,d=r.showTopMenus,c=r.stripeTable,u={title:o,theme:n.theme,showSettings:a,tagsView:s,fixedHeader:l,showTopMenus:d,stripeTable:c},f={CHANGE_SETTING:function(e,t){if(t.key)e.hasOwnProperty(t.key)&&(e[t.key]=t.value);else for(var i in t)e.hasOwnProperty(i)&&(e[i]=t[i])}},p={changeSetting:function(e,t){var i=e.commit;i("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:u,mutations:f,actions:p}},16575:function(e,t,i){"use strict";function n(e){return a(e)||o(e)||f(e)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e){if(Array.isArray(e))return p(e)}function s(e,t){return c(e)||d(e,t)||f(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,d=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){d=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}function c(e){if(Array.isArray(e))return e}function u(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=f(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}i.r(t);var h={visitedViews:[],cachedViews:[]},m={ADD_VISITED_VIEW:function(e,t){var i={};i.title=t.meta.tagTitle||t.meta.title||"no-name",i.path=t.path,i.fullPath=t.fullPath,i.meta=JSON.parse(JSON.stringify(t.meta)),i.query=JSON.parse(JSON.stringify(t.query)),i.params=JSON.parse(JSON.stringify(t.params)),t.query&&t.query.tagTitle&&(i.title=decodeURI(t.query.tagTitle));for(var n=0;n<e.visitedViews.length;n++){var r=e.visitedViews[n];if(r.path===t.path){if(r.clone){if(r.fullPath===t.fullPath)return;e.visitedViews.splice(n,1),e.cachedViews.splice(n--,1)}else{if(-1===t.fullPath.indexOf("itemurl="))return;t.query.tagTitle?i.title=decodeURI(t.query.tagTitle):i.title="正在打开..",i.meta.tagTitle=i.title}-1!==t.fullPath.indexOf("itemurl=")&&(i.clone=!0)}}e.visitedViews.push(i)},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.fullPath)||t.meta.noCache||e.cachedViews.push(t.fullPath)},DEL_VISITED_VIEW:function(e,t){var i,n=u(e.visitedViews.entries());try{for(n.s();!(i=n.n()).done;){var r=s(i.value,2),o=r[0],a=r[1];if(a.fullPath===t.fullPath){e.visitedViews.splice(o,1);break}}}catch(l){n.e(l)}finally{n.f()}},DEL_CACHED_VIEW:function(e,t){var i,n=u(e.cachedViews);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r===t.fullPath){var o=e.cachedViews.indexOf(r);e.cachedViews.splice(o,1);break}}}catch(a){n.e(a)}finally{n.f()}},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.fullPath===t.fullPath}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var i,n=u(e.cachedViews);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r===t.fullPath){var o=e.cachedViews.indexOf(r);e.cachedViews=e.cachedViews.slice(o,o+1);break}}}catch(a){n.e(a)}finally{n.f()}},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var i,n=u(e.visitedViews);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.fullPath===t.fullPath){r=Object.assign(r,t);break}}}catch(o){n.e(o)}finally{n.f()}}},b={addView:function(e,t){var i=e.dispatch;i("addVisitedView",t),i("addCachedView",t)},addVisitedView:function(e,t){var i=e.commit;i("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var i=e.commit;i("ADD_CACHED_VIEW",t)},delView:function(e,t){var i=e.dispatch,r=e.state;return new Promise((function(e){i("delVisitedView",t),i("delCachedView",t),e({visitedViews:n(r.visitedViews),cachedViews:n(r.cachedViews)})}))},delVisitedView:function(e,t){var i=e.commit,r=e.state;return new Promise((function(e){i("DEL_VISITED_VIEW",t),e(n(r.visitedViews))}))},delCachedView:function(e,t){var i=e.commit,r=e.state;return new Promise((function(e){i("DEL_CACHED_VIEW",t),e(n(r.cachedViews))}))},delOthersViews:function(e,t){var i=e.dispatch,r=e.state;return new Promise((function(e){i("delOthersVisitedViews",t),i("delOthersCachedViews",t),e({visitedViews:n(r.visitedViews),cachedViews:n(r.cachedViews)})}))},delOthersVisitedViews:function(e,t){var i=e.commit,r=e.state;return new Promise((function(e){i("DEL_OTHERS_VISITED_VIEWS",t),e(n(r.visitedViews))}))},delOthersCachedViews:function(e,t){var i=e.commit,r=e.state;return new Promise((function(e){i("DEL_OTHERS_CACHED_VIEWS",t),e(n(r.cachedViews))}))},delAllViews:function(e,t){var i=e.dispatch,r=e.state;return new Promise((function(e){i("delAllVisitedViews",t),i("delAllCachedViews",t),e({visitedViews:n(r.visitedViews),cachedViews:n(r.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,i=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(n(i.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,i=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(n(i.cachedViews))}))},updateVisitedView:function(e,t){var i=e.commit;i("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:h,mutations:m,actions:b}},4466:function(e,t){"use strict";var i=location.host;i="".concat(location.protocol.indexOf("https")>-1?"wss://":"ws://","/").concat(i,"/webSocket/");var n=!1,r=null,o=null,a=null;function s(e){if(!n){o=e;var t=window.ReconnectingWebSocket;if(t&&o.$settings.websocketAutoConnection){n=!0;var s=e.$store.getters.loginUser,p=[],h={debug:!0,reconnectInterval:3e3,reconnectDecay:2,maxReconnectInterval:3e5,maxRetries:10};o.$setting&&void 0!==o.$setting.webSocketMaxRetries&&(h.maxRetries=o.$setting.webSocketMaxRetries),console.log("创建连接===",i+s.userId+"_"+(window.deviceId||"web")),r=new t(i+s.userId+"_"+(window.deviceId||"web"),p,h),r.onerror=function(t,i){n=!1,console.log("websocket连接错误===",t,i),e.$bus.emit("webSocketError",t)},r.onopen=function(t){console.log("websocket连接成功"),n=!0,f(o.$store.getters.loginUser,window.$auth.getTicket()),e.$bus.emit("webSocketOpen",t)},r.onmessage=function(t){var i=JSON.parse(t.data);"heartBeat"!==i.body.type&&("212"===i.body.type&&(null!==a&&(clearInterval(a),a=null),l()),e.$bus.emit("webSocketOnmessage",t))},r.onclose=function(t){console.log("websocket连接断开"),n=!1,e.$bus.emit("webSocketOnClose",t)},e.$bus.on("webSocketClose",l),e.$bus.on("webSocketSend",d),e.$bus.on("reloadWebSocketConnect",c),e.$bus.on("getConnectParams",u),window.onbeforeunload=function(){l()}}}}function l(){r.close()}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};r.send(e),t()}function c(e){null!==a&&(clearInterval(a),a=null),e&&(i=e),null!==r&&l(),n=!1,s(o)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};e({wsurl:i,connect:n})}function f(e,t){a=setInterval((function(){d(JSON.stringify({message:{receipt:!1,fromUser:{userId:e.userId+"_"+(window.deviceId||"web"),userName:e.personName},body:{type:"heartBeat",message:"维持心跳消息"}},ticket:t}))}),3e4)}t.A={connectWebSocket:s}},79561:function(e){e.exports={ecwapp:{Basicform:{emptyMessage:"Please select access authorization",propComment:"Access Authorization",unsupportedMessage:"Unsupported file format!",deleteUploadedFile:"Are you sure you want to delete the uploaded file?",iconDialogTitle:"Select Icon"},BatchProcessing:{allCategories:"All Categories",notClassified:"Not classified",unClassified:"Unclassified",winTitle:"Follow Files",lxbwTitle:"Continuous document processing",plbwTitle:"Batch Document Processing",plywTitle:"Batch Reading",plzxTitle:"Batch Cancellation",orderInvalid:"Batch processing instruction {actionType} is invalid!",cancellation:"Cancellation",handle:"process",cancellationOrhandle:"Please select the file that requires batch {actionType}!",setUp:"Settings",cancel:"Cancel",successFile:"Follow file successfully!",erroeFile:"Failed to follow file!",lxblFile:"Please select the files that need to be processed continuously!",typeAndStatus:"The file type or processing step you have selected is inconsistent and cannot be processed in bulk!",belongingDw:"The files you have selected do not belong to the same organization and cannot be processed in bulk!",surePlzxFile:"Are you sure you want to batch cancel files?",todoSuccessFile:"Successfully processed!",commonLengthFile:"A total of {length} files have been processed consecutively!",todoCompleteFile:"{winTitle} Processing completed!",youCannotHandle:"You are not the current processor of {wfItem} and cannot handle it!",addFollow:"Add Follow",cancelFollow:"unfollow",adjustClassification:"Adjust classification",selectNeed:"Please select the file that requires {attendText}!",notSelectable:"{typeName} is not selectable",changeType:"Switch Category",changeTypeSuccess:"Successfully switched categories!",selcetType:"Please select category",selectNeedZpFile:"Please select the file that needs to be transferred!",selectZbReceiver:"Select the recipient for transfer",transferFile:"Jointly transfer {content} files",hangUp:"Suspend",unboxing:"Unboxing",reductionFile:"Please select the file to be restored!",cancelledFile:"Are you sure you want to restore the logged out file?",addMenu:"Add Category",editMenu:"Edit Categories",changeMeun:"Change Category",delMenu:"Delete Category",setMenu:"Classification Settings",noEditMenu:"Editing {menu}' 'is not allowed",nodeleterMenu:"Deleting {menu}' 'is not allowed",deleteSelectMeun:"Are you sure you want to delete the selected category?"},Common:{index:"SN",fileTitle:"File Title",fileType:"File Type",processingPersonal:"Processor",handlerDept:"Processing department",sender:"Sender",startTime:"StartTime",processingSteps:"Processing Steps",processingStatus:"Processing Status",fileName:"File Name",fileSize:"File size",uploadTime:"Upload Time",uploader:"uploader",operate:"Operation",tobeUpload:"To be uploaded",reUpload:"Re upload",readerScope:"View permissions",deleting:" Deleting...",delSuccess:"Deletion successful",cancelSave:"Cancel Save",notOpen:"Not opened",notCompleted:"Incomplete",notSubmitted:"Not submitted",notTiemOut:"Not timed out",endless:"No time limit",tobeReviewed:"To be viewed",readAlready:"already read"},DataTable:{selectRow:"{selectedRowCount} data has been selected",previousPage:"Previous Page",nextPage:"Next Page",requiredFiledTip:"{content} is required",needDeleterRow:"Please select the data that needs to be deleted.",sureDeleterRow:"Are you sure you want to delete the selected data?",onlyOneOrg:"Only data access permissions belonging to the same organization can be set.",onlyOneProduct:"Only data access permissions for the same product can be set.",selectSetRoot:"Please select the data for which access permissions need to be set!",selectExport:"Please select the data you want to export!",targetDatabase:"Target database",targetDatabaseType:"Please select the target database type:",exportTipText:"Are you sure you want to export all the data from the current list?<br/>If only partial data needs to be exported, please select or filter through search first.",downloadRow:"Please select the data that needs to be downloaded in bulk.",resourcePermissions:"Resource Access Permissions",auMethod:"Authorization Method ",selectAuMethod:"Please select the authorization method ",auObject:"Authorization Object",moduleMenu:"Module Menu",operationButton:"Operation Button",processButton:"Process Button",serviceInterface:"Service Interface",accessSystem:"Access System",portalMiniProgram:"Portal Mini Program",mobileApplications:"Mobile Applications",fileQuery:"File Query",allFileQuery:"All File Query",deptFileQuery:"Dept File Query",changeRoot:"Are you sure you want to batch modify access permissions?",startSearching:"Start Search",clearSearch:"Clear Search",startBeforeEnd:"{title} The start time must be before the end time",allPersonnel:"All personnel",selectDateTime:"Select Date Time",refresh:"Refresh",list:"Column"},DoingDialog:{doingWait:"Processing in progress, please wait..."},ModifyFormTrace:{formTitle:"Form Modification Record",saveFormInfo:"Save form information",noFormRecord:"No form modification record available",current:"Currently"},PageBtns:{sure:"OK",choice:"Select",del:"Delete",resend:"Resend"},PdfTools:{sgnature:"Signature",addSgnature:"Add Signature",saveSgnature:"Save signature",selectSeal:"Select Seal",saveSeal:"Save Seal",appAddSgnature:"Scan QR code on mobile device to add signature",selectSgnature:"Select signed",noSgnature:"No available signatures at the moment",noStampedFile:"There are no stamped body files available.",redBeforeStamping:"The current file is not highlighted, please highlight it before stamping.",saveSealTip:"Saving seal, please wait...",electronicSeal:"Electronic Seal",sealAccount:"Seal Account",inputSealAccount:"Please enter the seal account",sealPassword:"Seal Password",inputSealPassword:"Please enter the seal password",stampMethod:"Stamping Method:",stampPage:"Stamped Page:",currentPage:"Current Page",allPage:"All pages",partialPage:"Partial Page",oddPage:"Odd Pages",pageNumber:"Page Number",pageNumberTip:"Please enter page number or page range",explain:NaN,stampPageNumber:"Stamp Page Number:",whatPage:"Page {dataType}",loadingWait:"Loading, please wait...",sealAndStamp:"Seal",pageSignature:"Page Signature",saddleSeal:"Riding Seal",standardizedFilling:"Please follow the prompts to fill in page numbers in a standardized manner!",firstSelect:"Please select the seal first!",inputStampPageNumber:"Please enter the page number that needs to be stamped!"},SelectDialog:{selectAll:"Select All",search:"Search",sureClearSelection:"Are you sure to clear the selection?",byInstitution:"By Institution",byPosition:"By Position",byGroup:"By Group",byCommonGroup:"By Common Group",keyWords:"Please enter search keywords",searching:"Searching for...",selected:"Selected ({dataType})",setCommonGroup:"Set as Common Group",noSelection:"No selection available",commonGroup:"Common Group",commonGroupName:"Common Group Name",inputCommonGroup:"Please enter a commonly used group name!",addUsedGroup:"Are you sure you want to add a frequently used group?",selectRegion:"Select Administrative Region",selectDirectory:"Select Institution Directory",selectWorkGroup:"Select WorkGroup",selectJobPosition:"Select job position",selectPersonnelExtend:"Select personnel (extension)",selectDepartmentExtend:"Select Department (Extension)"},TextRecognition:{identifyFileTitle:"Recognized as file title",identifyUnit:"Identify as the unit of communication",identifyDate:"Recognized as date of communication",identifyId:"Recognized as Document Number",identifyCory:"Recognized as a cutting board",identifyText:"Recognized as text",corySuccess:"Copy successful",identifySuccess:"Recognition successful",invalidDateFormat:"Invalid date format",textIdentify:"Text Recognition",textIdentifyResults:"Text Recognition Results",uploadIdentifyFile:"Upload the file to be recognized",identifyResults:"Identification result:",identifyCount:"Number of words recognized: {dataType}",timeConsumption:"Duration: {dataType}",identifyFailed:"Text recognition failed, please try again later!",noWfEngineUrl:"Recognition failed (failed to obtain wfEngineURL)"},Wflowform:{Attachment:{moveTip:"Press and drag the mouse to move and sort",noAttachments:"No attachments available",pUploadFile:"Please upload the file",clickUpload:"Click to upload",limitUpload:"Currently limited to uploading {limitCount} files, {attachLength} files have already been uploaded, {valLength} files have been selected this time, exceeding {lengthCount} files",togetherUpload:"Currently, the upload limit is {limitCount} files. This time, {valLength} files have been selected, for a total of {fileLength} files",beyondUpload:"Currently limited to uploading {limitCount} files, {valLength} files have been selected this time, out of a total of {fileLength} files, exceeding {lengthCount} files",notAllowedUpload:"Currently, the upload limit is {limitCount} files, and adding new files is not allowed",cannotBeUpload:"The file {fileName} already exists, named files cannot be uploaded.",onlineFile:"Generating online preview file, please wait...",delReupload:"Are you sure you want to delete and re upload?",delSelAttach:"Are you sure you want to delete the selected attachment?",fileUploadSuccess:"File upload successful!",needUploadFile:"Please select the attachment you want to upload!",noSelNeedUploadFile:"No attachments selected for upload",noTobeUploadFile:"There are no pending attachments to upload",attchUploadFile:"All attachments uploaded successfully",notSupportSaveas:"Unuploaded local files do not support saving as!",noDowmAttach:"There are no downloadable attachments.",needSaveadAttach:"Please select the attachment that needs to be saved separately.",selectReaderScope:"Please select View permissions",maxFileSize:"Uploading a single file size is not allowed to exceed {maxFileSize}"},BodyFile:{bodyText:"Main text",historicalVersion:"Historical Version",currentVersion:"Current Version",uploadStamped:"Upload stamped file",uploadTextFile:"Upload the main text",mattersNeeding:"Precautions",fileContent:"Format instructions for uploading file content:",firstPoint:"1. The uploaded file should be a. pdf file;",secondPoint:"2. The uploaded file should be a stamped file, with the same legal effect as a stamped (signed) file.",thirdPoint:"3. In the case of multiple uploads of stamped files, only the last upload will be selected. After confirming that the upload is correct in the current window, please click the OK button to complete the upload operation.",fileBody:"Document Content",downloadingWait:"Downloading file, please wait...",deleterCurrent:"Are you sure you want to delete the current file?",deleterHistor:"Are you sure you want to delete the historical version file",errFileFormat:"The file format you uploaded is incorrect. Only files in {accept} format are supported!",uploadingFile:"Uploading body text...",stampedDocument:"There is currently a stamped document, re uploading it will overwrite the previous stamped document!<br/>Do you want to continue?",directlyUpload:"The current content of the main text has not been highlighted yet <br/>Do you want to upload the stamped document directly?",sureToClose:"Are you sure to close?",onlyPDF:"The file format you uploaded is incorrect, only PDF format files are supported!",cannotSave:"The stamped file has not been uploaded yet, cannot be saved!",uploadingStamped:"Uploading stamped file..."},HandleIdea:{opinion:"Opinion",otherOpinion:"Other opinions",open:"Expand",fold:"fold",deleteOpinion:"Delete process instance opinion",sureDeleteOpinion:"Are you sure you want to delete the processing suggestion?"},IdeaInputBox:{pWriteOpinion:"Please fill in the handling opinion.",selectSaveType:"Select the method for saving opinions",selectComOpinion:"Select common opinions",selectShowScope:"Set the reader of opinions",noComOpinion:"No commonly used comments at the moment",saveComOpinion:"Save frequently used opinions",appendOpinion:"Add new opinions",replaceOpinion:"Replace the original opinion",retainOpinion:"Keep the original opinion",opinionAttach:"Opinion Attachment:",pOpinionAttach:"Please select the opinion attachment",personalOpinions:"Common personal opinions",writeOpinion:"Fill in opinions",sureDeleteAttach:"Are you sure you want to delete the opinion attachment?",useCommonOpinion:"The processing suggestion already exists. Are you sure you want to use the commonly used suggestion?",uploadFileFail:"Upload file failed",fileExists:"An opinion attachment with the same name already exists, please modify the attachment name!"},IdeaSignature:{opinionSignature:"Opinion Signature",appAddOpinion:"Scan your phone to add your opinion signature",openWithBrowser:"If the signature canvas cannot be opened properly, please select Open with browser",unableApp:"Mobile cannot access {window}",signatureFail:"Signature failed"},ImgView:{prevPicture:"Previous picture",nextPicture:"Next Picture",narrow:"Shrink",enlarge:"enlarge",leftRotation:"Left Rotation",rightRotation:"Right rotation"},WflogAddReader:{circulation:"Circulation",readers:"Circulation personnel",selReaders:"Please select the circulation personnel",timeLimit:"End time of circulation",selTimeLimit:"Please select the end time for circulation",sendToOther:"Continue to circulate",viewHistoryIdea:"View opinions"},ModifyWflogAddUser:{prevStep:"Previous processing step",prevHandler:"Previous stage handler",addStep:"Add processing step",addHandler:"Add link handler",pSelectAddStep:"Please select the new processing step",pSelectAddHandler:"Please select a new link handler",addStepLimit:"Add processing time limit for new steps",endless:"No time limit",specifyLimit:"Specify time limit",pSelectLimit:"Please select a processing time limit",addProcessor:"Add Processor",batchTransfer:"Batch Transfer",successfullyCompleted:"{winTitle} has been successfully completed!",nextTodoMode:"Subsequent handling method",nextTodoModeReturn:"Return to the previous step",nextTodoModeUseSubmitNext:"Submit the next step"},ModifyWflogIdea:{oldOpinion:"Original Processing Opinion",newOpinion:"New Processing Opinion",newOpinionWriteTime:"New opinion signature time",newOpinionWriteTime0:"Original signature date",newOpinionWriteTime1:"This save time",newOpinionWriteTime2:"Specify the signing time",inputNewOpinion:"Please enter a new processing suggestion",handleOpinion:"Handling Opinion"},ModifyWflogSubmitFile:{selfTesting:"Process Self Testing ({wflog})",reprocessTesting:"Reprocess ({wflog})",agencyTesting:"agency (wflog)",uploadMaterials:"Please upload supporting materials!"},ModifyWfNodelog:{notice:"Notification",selectNoticeType:"Select notification method",takeBack:"Retract",mandatoryCompletion:"Mandatory completion",completionTime:"Completion time",timeLimit:"Processing time limit",submitPath:"Submission Path",reprocess:"Reprocess",agency:"proxy",transfer:"transfer",removeAssistantUser:"Remove Assistant User",canBeretRieved:"There is no processing step that can be retrieved!",wantToRetrieve:"Are you sure you want to retrieve the file?",needDelStep:"Please select the process node that needs to be deleted!",sureDelStep:"Are you sure you want to delete the selected process node?",synchronizationDel:"The node to be deleted contains sub process instances. Are you sure you want to synchronize the deletion?",processToCeCompleted:"Are you sure you want to force the process to be completed?",transferredHandle:"The file has been successfully transferred to {selectedNodes} for processing.",transferPersonnel:"Select transfer personnel",revokeAuthorization:"Are you sure you want to revoke the processing permission granted to {deputy}?"},ReplaceFile:{replaceFile:"Replace file",replaceFileAttach:"File Attachment Replacement",replaceFileSuffix:"Please replace the file with the same suffix!",fileName:"Name",updateTime:"Upload Time",updateBy:"Upload personnel",operate:"Operation"},SelectOuterDeputy:{outwardPeople:"Outward people",agent:"Agent",sendToMe:"Send to me",selectAgent:"Select Agent",selectedOutAgent:"An outbound agent has been selected."},SubmitDialog:{submitHandle:"Submit for processing",editMainText:"Please edit the main text!",uploadMainText:"Please upload the main text!"},SubmitHandle:{defineSteps:"Process Definition",processSteps:"Process Steps",processHandler:"Process handler",submitNextStage:"Submit to the next stage",handleLimint:"Processing time limit",byWorkDay:"By working day",byNaturalDay:"By natural day",peopleCount:",a total of {count} people",assistHandling:"Assisting with document processing",smsNotice:"SMS Notification",todoNotice:"To Do Notification",stayTuned:"Stay focused",noTemplate:"No processing template available",selectTemplate:"Select Processing Template",saveTemplate:"Save processing template",supportMaterials:"Supporting Materials",pSupportMaterials:"Please select supporting materials",processTemplate:"Processing Template",sendRoute:"Send {NextNode}",endProcessing:"End Processing",sendBack:"Return",addHandlers:"Add handlers",transferTo:"Transfer"},ViewBodyFile:{noMainText:"No text at the moment",contractTemplate:"Select Contract Template",downLook:"Online preview is not supported, you can download it locally to view"},WfNodelogList:{docTracking:"Document Tracking",openTiem:"Open Time",processingTime:"Processing Time",timeoutDuration:"timeout duration",toread:"Send for review",readingLog:"Reading Log",readingTime:"Reading Time",timeLimit:"Time limit",remark:"Remark",trackingMap:"Process Tracking Map",situationAnalysis:"Completion Analysis",readingSection:"Reading section",readingLiterati:"Reading Literati",readingDepartment:"Reading Literature Departmen",circulationOpinions:"Circulation Opinions",myOpinion:"My opinion",recipient:"Recipient",toDone:"Completed",notDoTimedOut:"Not processed (not timed out)",doTimedOut:"Not processed (timed out)",unread:"unread",addReaders:"Add readers",addReadersSuccess:"Successfully added readers!",readedClosed:"Are you sure you have read and closed?",udmNodeNameIsNull:"Process steps are unnamed!"},WfTaskNode:{stepSetting:"Stage Setting",linkName:"Link Name",inputLinkName:"Please enter the link name",taskType:"Task Type",selectTaskType:"Please select the task type",singlePerson:"Single person",multiplayerParallel:"Multiplayer Parallel",multiPersonSignature:"Multi person co signature",multiplayerSerial:"Multiplayer Serial",multiplayerCompetition:"Multiplayer Competition",multiPersonReading:"Reading with multiple people",handlerMethod:"Method for selecting handlers",designatedPersonnel:"Designated personnel",byDepartment:"By Department",byWorkgroup:"By Workgroup",byJobPosition:"By job position",byJobRank:"By job rank",byHistoryTNUser:"By history user",optionalStage:"Optional handlers for stages",xzhjclr:"Please select the link handler",xzhjclrbm:"Please select the department responsible for handling the process",xzhjclrgzqz:"Please select the link handler workgroup",xzhjclrgzgw:"Please select the job position of the link handler",editPermissions:"Edit Permissions",setEditPermissions:"Please set editing permissions",opinionTags:"Opinion tags",selectOpinionTags:"Please choose an opinion tag"},WriteToReadIdea:{reviewComments:"Review Comments",writReviewComments:"Please provide your review comments",noWritReview:"Your reading record does not exist, unable to provide feedback"}}}}},23582:function(e){e.exports={}},60380:function(e,t,i){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function a(e,t,i){return(t=s(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e){var t=l(e,"string");return"symbol"==n(t)?t:t+""}function l(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=i(79561),c=i(54293),u=i(23582),f=i(90583),p={en:o({},d),zhCN:o({},c),es:o({},u),ja:o({},f)};e.exports=o({},p)},90583:function(e){e.exports={}},54293:function(e){e.exports={ecwapp:{Basicform:{emptyMessage:"请选择访问授权",propComment:"访问授权",unsupportedMessage:"不支持的文件格式!",deleteUploadedFile:"您是否确认删除已上传的文件?",iconDialogTitle:"选择图标"},BatchProcessing:{allCategories:"全部分类",notClassified:"不分类",unClassified:"未分类",winTitle:"关注文件",lxbwTitle:"连续办文",plbwTitle:"批量办文",plywTitle:"批量阅文",plzxTitle:"批量注销",orderInvalid:"批量处理指令“{actionType}”无效!",cancellation:"注销",handle:"处理",cancellationOrhandle:"请选择需要批量{actionType}的文件!",setUp:"设置",cancel:"取消",successFile:"关注文件成功!",erroeFile:"关注文件失败!",lxblFile:"请选择需要连续办理的文件!",typeAndStatus:"您选择的文件类型或处理环节不一致,无法批量办理!",belongingDw:"您选择的文件不属于同一单位,无法批量办理!",surePlzxFile:"您是否确认批量注销文件?",todoSuccessFile:"已处理成功!",commonLengthFile:"共{length}份文件已连续处理完成!",todoCompleteFile:"{winTitle}已处理完成!",youCannotHandle:"您不是“{wfItem}”的当前处理人,不能办理!",addFollow:"添加关注",cancelFollow:"取消关注",adjustClassification:"调整分类",selectNeed:"请选择需要{attendText}的文件!",notSelectable:"{typeName}不可选",changeType:"调整分类",changeTypeSuccess:"调整分类成功!",selcetType:"请选择分类",selectNeedZpFile:"请选择需要转派的文件!",selectZbReceiver:"选择转办接收人",transferFile:"共转办{content}份文件",hangUp:"挂起",unboxing:"解挂",reductionFile:"请选择需要还原的文件!",cancelledFile:"您是否确认还原已注销文件?",addMenu:"新增分类",editMenu:"编辑分类",changeMeun:"修改分类",delMenu:"删除分类",setMenu:"分类设置",noEditMenu:"不允许编辑{menu}''",nodeleterMenu:"不允许删除{menu}''",deleteSelectMeun:"您是否确认删除选择的分类?"},Common:{index:"序号",fileTitle:"文件标题",fileType:"文件类型",processingPersonal:"处理人",handlerDept:"处理人部门",sender:"发送人",startTime:"开始时间",processingSteps:"处理环节",processingStatus:"处理状态",fileName:"文件名",fileSize:"文件大小",uploadTime:"上传时间",uploader:"上传人",operate:"操作",tobeUpload:"待上传",reUpload:"重新上传",deleting:" 正在删除...",delSuccess:"删除成功",cancelSave:"取消保存",notOpen:"未打开",notCompleted:"未完成",notSubmitted:"未提交",notTiemOut:"未超时",endless:"无时限",tobeReviewed:"待阅",readAlready:"已阅"},DataTable:{selectRow:"已经选择{selectedRowCount}条数据",previousPage:"上一页",nextPage:"下一页",requiredFiledTip:"{content}是必须的",needDeleterRow:"请选择需要删除的数据。",sureDeleterRow:"您是否确认删除选择的数据?",onlyOneOrg:"只能设置同属一个机构的数据访问权限。",onlyOneProduct:"只能设置同属一个产品的数据访问权限。",selectSetRoot:"请选择需要设置访问权限的数据!",selectExport:"请选择需要导出的数据!",targetDatabase:"目标数据库",targetDatabaseType:"请选择目标数据库类型:",exportTipText:"您是否确认要导出当前列表的全部数据?<br/>如果仅需导出部分数据,请先选择或通过搜索筛选。",downloadRow:"请选择需要批量下载的数据。",resourcePermissions:"资源访问权限",auMethod:"授权方式 ",selectAuMethod:"请选择授权方式 ",auObject:"授权对象",moduleMenu:"模块菜单",operationButton:"操作按钮",processButton:"流程按钮",serviceInterface:"服务接口",accessSystem:"接入系统",portalMiniProgram:"门户小程序",mobileApplications:"移动应用",fileQuery:"文件查询",allFileQuery:"全部文件查询",deptFileQuery:"部门文件查询",changeRoot:"确认要批量修改访问权限吗?",startSearching:"开始搜索",clearSearch:"清除搜索",startBeforeEnd:"{title}开始时间必须在结束时间之前",allPersonnel:"全部人员",selectDateTime:"选择日期时间",refresh:"刷新",list:"列表"},DoingDialog:{doingWait:"正在处理中,请稍候..."},ModifyFormTrace:{formTitle:"表单修改记录",saveFormInfo:"保存表单信息",noFormRecord:"暂无表单修改记录",current:"当前"},PageBtns:{sure:"确定",choice:"选择",del:"删 除"},PdfTools:{sgnature:"签名",addSgnature:"添加签名",saveSgnature:"保存签名",selectSeal:"选择印章",saveSeal:"保存印章",appAddSgnature:"移动端扫描二维码添加签名",selectSgnature:"选择已填加签名",noSgnature:"暂无可用签名",noStampedFile:"没有可盖章正文文件。",redBeforeStamping:"当前文件没有套红,请先套红再盖章。",saveSealTip:"正在保存印章,请稍候...",electronicSeal:"电子印章",sealAccount:"印章账号",inputSealAccount:"请输入印章账号",sealPassword:"印章密码",inputSealPassword:"请输入印章密码",stampMethod:"盖章方式:",stampPage:"盖章页面:",currentPage:"当前页",allPage:"全部页",partialPage:"部分页",oddPage:"奇数页",pageNumber:"页 码",pageNumberTip:"请输入页码或者页码范围",explain:NaN,stampPageNumber:"盖章页码:",whatPage:"第{dataType}页",loadingWait:"正在加载,请稍候...",sealAndStamp:"盖 章",pageSignature:"页签章",saddleSeal:"骑缝章",standardizedFilling:"请注意按提示规范填写页码!",firstSelect:"请先选择印章!",inputStampPageNumber:"请输入需要盖章的页码!"},SelectDialog:{selectAll:"全选",search:"搜索...",sureClearSelection:"是否确认清除已选?",byInstitution:"按机构",byPosition:"按岗位",byGroup:"按群组",byCommonGroup:"按常用组",keyWords:"请输入搜索关键字",searching:"正在搜索...",selected:"已选择({dataType})",setCommonGroup:"设为常用组",noSelection:"暂无选择",commonGroup:"常用组",commonGroupName:"常用组名称",inputCommonGroup:"请输入常用组名称!",addUsedGroup:"是否确认添加常用组?",selectRegion:"选择行政区域",selectDirectory:"选择机构目录",selectWorkGroup:"选择工作群组",selectJobPosition:"选择工作岗位",selectPersonnelExtend:"选择人员(扩展)",selectDepartmentExtend:"选择部门(扩展)"},TextRecognition:{identifyFileTitle:"识别为 “文件标题”",identifyUnit:"识别为 “来文单位”",identifyDate:"识别为 “来文日期”",identifyId:"识别为 “来文文号”",identifyCory:"识别为 “剪切板”",identifyText:"识别为 “文字”",corySuccess:"复制成功",identifySuccess:"识别成功",invalidDateFormat:"无效的日期格式",textIdentify:"文字识别",textIdentifyResults:"文字识别结果",uploadIdentifyFile:"上传要识别的文件",identifyResults:"识别结果:",identifyCount:"识别字数:{dataType}",timeConsumption:"耗时:{dataType}",identifyFailed:"文字识别失败,请稍后再试!",noWfEngineUrl:"识别失败(获取wfEngineUrl失败)"},Wflowform:{Attachment:{moveTip:"按下鼠标拖可动排序",noAttachments:"暂无附件",pUploadFile:"上传文件,请",clickUpload:"点击上传",limitUpload:"当前限制上传{limitCount}个文件,已上传了{attachLength}个文件,本次选择了{valLength} 个文件,已超出{lengthCount}个文件",togetherUpload:"当前限制上传{limitCount}个文件,本次选择了{valLength}个文件,共有{filelength}个文件",beyondUpload:"当前限制上传{limitCount}个文件,本次选择了{valLength}个文件,共选择了{filelength}个文件,已超出{lengthCount}个文件",notAllowedUpload:"当前限制上传{limitCount}个文件,不允许在添加新文件",cannotBeUpload:"文件“{fileName}”已存在,不允许上传重名文件。",onlineFile:"正在生成在线预览文件,请稍候...",delReupload:"您是否确认删除并重新上传?",delSelAttach:"您是否确认删除选择的附件?",fileUploadSuccess:"文件上传成功!",needUploadFile:"请选择需要上传的附件!",noSelNeedUploadFile:"没有选择需要上传的附件",noTobeUploadFile:"没有待上传附件",attchUploadFile:"附件全部上传成功",notSupportSaveas:"未上传的本地文件不支持另存!",noDowmAttach:"没有可下载的附件。",needSaveadAttach:"请选择需要另存的附件。",selectReaderScope:"请选择查阅权限",maxFileSize:"上传单个文件大小不允许超过{maxFileSize}"},BodyFile:{bodyText:"正文",historicalVersion:"历史版本",currentVersion:"当前版本",uploadStamped:"上传盖章文件",uploadTextFile:"上传正文",mattersNeeding:"注意事项",fileContent:"上传文件内容格式说明:",firstPoint:"1.上传文件应为 .pdf 文件;",secondPoint:"2.上传文件应是已经盖好章的文件,效力等同于 已盖章(已签名)",thirdPoint:"3.多次上传盖章文件的情况下只取最后一次上传,当前窗口上传确认无误后请点击确定按钮完成上传操作。",fileBody:"文件正文",downloadingWait:"正在下载文件,请稍候...",deleterCurrent:"您是否确认删除当前的文件?",deleterHistor:"您是否确认删除历史版本文件?",errFileFormat:"您上传的文件格式有误,仅支持{accept}格式的文件!",uploadingFile:"正在上传正文...",stampedDocument:"当前已有盖章文件,重新上传后会覆盖之前盖章文件!<br>是否继续?",directlyUpload:"当前正文内容还未套红<br>是否直接上传盖章文件?",sureToClose:"确认关闭?",onlyPDF:"您上传的文件格式有误,仅支持PDF格式的文件!",cannotSave:"当前还未上传盖章文件,不能保存!",uploadingStamped:"正在上传盖章文件..."},HandleIdea:{opinion:"意见",otherOpinion:"其他意见",open:"展开",fold:"折叠",deleteOpinion:"删除流程实例意见",sureDeleteOpinion:"您是否确认删除处理意见?"},IdeaInputBox:{pWriteOpinion:"请填写处理意见。",selectSaveType:"--选择意见保存方式--",selectComOpinion:"--选择常用意见--",selectShowScope:"--设置意见可见范围--",noComOpinion:"暂无常用意见",saveComOpinion:"保存常用意见",appendOpinion:"追加新意见",replaceOpinion:"替换原有意见",retainOpinion:"保留原有意见",opinionAttach:"意见附件:",pOpinionAttach:"请选择意见附件",personalOpinions:"个人常用意见",writeOpinion:"填写意见",sureDeleteAttach:"您是否确认删除意见附件?",useCommonOpinion:"处理意见已存在,是否确认使用常用意见?",uploadFileFail:"上传文件失败"},IdeaSignature:{opinionSignature:"意见签名",appAddOpinion:"手机扫一扫添加意见签名",openWithBrowser:"如果不能正常打开签名画板,请选择“使用浏览器打开”",unableApp:"手机端不能访问{window}",signatureFail:"签名失败"},ImgView:{prevPicture:"上一张",nextPicture:"下一张",narrow:"缩小",enlarge:"放大",leftRotation:"左旋转",rightRotation:"右旋转"},ModifyWflogAddUser:{prevStep:"上一处理环节",prevHandler:"上一环节处理人",addStep:"新增处理环节",addHandler:"新增环节处理人",pSelectAddStep:"请选择新增处理环节",pSelectAddHandler:"请选择新增环节处理人",addStepLimit:"新增环节处理时限",endless:"无时限",specifyLimit:"指定时限",pSelectLimit:"请选择处理时限",addProcessor:"添加处理人",batchTransfer:"批量转派",successfullyCompleted:"{winTitle}已成功!",nextTodoMode:"加签办理方式",nextTodoModeReturn:"返回加签人",nextTodoModeUseSubmitNext:"提交下一步"},ModifyWflogIdea:{oldOpinion:"原处理意见",newOpinion:"新处理意见",inputNewOpinion:"请输入新处理意见",handleOpinion:"处理意见"},ModifyWflogSubmitFile:{selfTesting:"流程自测({wflog})",reprocessTesting:"重办({wflog})",agencyTesting:"代办({wflog})",uploadMaterials:"请上传佐证材料!"},ModifyWfNodelog:{notice:"通知",smsNotice:"短信通知",selectNoticeType:"选择通知方式",takeBack:"收回",mandatoryCompletion:"强制办结",completionTime:"完成时间",timeLimit:"办理时限",submitPath:"提交路径",reprocess:"重办",agency:"代办",transfer:"转办",removeAssistantUser:"减签",canBeretRieved:"没有能够收回的处理环节!",wantToRetrieve:"您是否确认要收回文件?",needDelStep:"请选择需要删除的流程节点!",sureDelStep:"您确定要删除选择的流程节点吗?",synchronizationDel:"待删除节点包含子流程实例,是否确认同步删除?",processToCeCompleted:"您确定要将流程强制办结吗?",transferredHandle:"已经成功将文件转给{selectedNodes}办理。",transferPersonnel:"选择转办人员"},ReplaceFile:{replaceFile:"替换文件",replaceFileAttach:"文件附件替换",replaceFileSuffix:"请替换相同后缀名的文件!",fileName:"名称",updateTime:"上传时间",updateBy:"上传人员",operate:"操作"},SelectOuterDeputy:{outwardPeople:"外出人",agent:"代理人",sendToMe:"发本人",selectAgent:"选择代理人",selectedOutAgent:"已选择外出代理人。"},SubmitDialog:{submitHandle:"提交办理",editMainText:"请编辑正文!",uploadMainText:"请上传正文!"},SubmitHandle:{defineSteps:"流程配置",processSteps:"流程环节",processHandler:"环节处理人",submitNextStage:"提交下一环节",handleLimint:"处理时限",byWorkDay:"按工作日",byNaturalDay:"按自然日",peopleCount:",等{count}人",assistHandling:"辅助办文",todoNotice:"待办通知",stayTuned:"保持关注",noTemplate:"暂无办理模板",selectTemplate:"---选择办理模板---",saveTemplate:"保存办理模板",supportMaterials:"佐证材料",pSupportMaterials:"请选择佐证材料",processTemplate:"办理模板",sendRoute:"送{nextNode}",endProcessing:"结束处理",sendBack:"退回",addHandlers:"增加处理人",transferTo:"转派"},ViewBodyFile:{noMainText:"暂无正文",contractTemplate:"选择合同模版",downLook:"不支持在线预览,您可下载到本地查看"},WfNodelogList:{docTracking:"办文跟踪",openTiem:"打开时间",processingTime:"办理时长",timeoutDuration:"超时时长",readingLog:"阅文日志",readingTime:"阅文时间",remark:"备注",trackingMap:"流程跟踪图",situationAnalysis:"完成情况分析",readingSection:"阅文环节",readingLiterati:"阅文人",readingDepartment:"阅文人部门",circulationOpinions:"流转意见",myOpinion:"我的意见",recipient:"接收人",toDone:"已办",notDoTimedOut:"未办(未超时)",doTimedOut:"未办(已超时)",unread:"未读",addReaders:"添加阅文人",addReadersSuccess:"已成功添加阅文人!",readedClosed:"您是否确认已阅并关闭?",udmNodeNameIsNull:"流程环节未命名!"},WfTaskNode:{stepSetting:"环节设置",linkName:"环节名称",inputLinkName:"请输入环节名称",taskType:"任务类型",selectTaskType:"请选择任务类型",singlePerson:"单人",multiplayerParallel:"多人并行",multiPersonSignature:"多人会签",multiplayerSerial:"多人串行",multiplayerCompetition:"多人竞争",multiPersonReading:"多人阅文",handlerMethod:"处理人选择方式",optionalStage:"环节可选处理人",xzhjclr:"请选择环节处理人",xzhjclrbm:"请选择环节处理人部门",xzhjclrgzqz:"请选择环节处理人工作群组",xzhjclrgzgw:"请选择环节处理人工作岗位",editPermissions:"编辑权限",setEditPermissions:"请设置编辑权限",opinionTags:"意见标签",selectOpinionTags:"请选择意见标签"},WriteToReadIdea:{reviewComments:"批阅意见",writReviewComments:"请填写批阅意见",noWritReview:"您的阅文记录不存在,不能填写批阅意见"},returnHistory:{selectHint:"请选择驳回节点",confirm:"您是否确认驳回到上一环节?"}}}}},38342:function(e,t,i){"use strict";i.d(t,{tT:function(){return J},vT:function(){return K},$U:function(){return z},Mq:function(){return G},DY:function(){return q}});var n=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[e.orgCode&&!e.row.id&&e.sysSetupList.length>1?t("el-switch",{attrs:{"active-text":e.$tx("ecwplat.sysSetup.activeText","按主系统合并"),"inactive-text":e.$tx("ecwplat.sysSetup.inactiveText","展开子系统")},on:{change:function(t){return e.loadSysSetup()}},model:{value:e.mergeSubSys,callback:function(t){e.mergeSubSys=t},expression:"mergeSubSys"}}):e._e(),null!=e.treeData&&e.treeData.length>0?t("GiantTree",{class:e.row.id||1==e.sysSetupList.length?"":"can-merge-subsys",attrs:{nodes:e.treeData,multiple:!1,drag:!0,"tree-before-drop-node":e.treeBeforeDropNode},on:{onClick:e.onTreeNodeClick,onCreated:e.onTreeCreated,onDrop:e.treeDropNode},scopedSlots:e._u([{key:"context-menu",fn:function(i){return[i&&null===i.contextNode.pId?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addColumn",expression:"'ecwplat.PageBtns.addColumn'"}],on:{click:function(t){return e.addModuleMenu(i.treeId,i.contextNode)}}},[e._v("新增栏目")]),1!=e.dwadmin?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.systemSetting",expression:"'ecwplat.PageBtns.systemSetting'"}],on:{click:function(t){return e.editSysSetup(i.treeId,i.contextNode)}}},[e._v("系统设置")]):e._e()]):e._e(),i&&null!==i.contextNode.pId?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addSubmenu",expression:"'ecwplat.PageBtns.addSubmenu'"}],on:{click:function(t){return e.addMenu(i.treeId,i.contextNode)}}},[e._v("新增子菜单")]),i.contextNode.moduleLevel<=2?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addApprMenu",expression:"'ecwplat.PageBtns.addApprMenu'"}],on:{click:function(t){return e.addWflowMenus(i.treeId,i.contextNode)}}},[e._v("新增审批菜单组")]):e._e(),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.modifyMenu",expression:"'ecwplat.PageBtns.modifyMenu'"}],on:{click:function(t){return e.editMenu(i.treeId,i.contextNode)}}},[e._v("修改菜单")]),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.deleteMenu",expression:"'ecwplat.PageBtns.deleteMenu'"}],on:{click:function(t){return e.deleteMenu(i.treeId,i.contextNode)}}},[e._v("删除菜单")])]):e._e()]}}],null,!1,3213185892)}):e._e(),null==e.treeData||0==e.treeData.length?t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectMechanism",expression:"'selectMechanism'"}],staticClass:"dwadmin-initmessage",on:{click:e.openSelectRootOrgDialog}},[e._v("请选择模块菜单所属机构")]):e._e()],1),t("RightPanel",[null==e.sys&&1!=e.dwadmin?t("div",[t("PageContent",{attrs:{title:e.$tx("ecwplat.sysSetup.moduleMenu","模块菜单"),"set-nav-search":!1}},[null==e.importResult?t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"824px","margin-top":"10px"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[1!=e.dwadmin?t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"affiliatedInstitution",expression:"'affiliatedInstitution'"}],staticClass:"tdlbl tdw17"},[e._v("所属机构")]),t("td",{staticClass:"tdcont tdw83 td-organ",attrs:{colspan:"5"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.affiliatedInstitution","所属机构"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"rootorg",expression:"'rootorg'"}],attrs:{"org-type":"1",readonly:"",name:"orgCode",placeholder:e.$tx("ecwplat.sysSetup.selectAffInsti","请选择模块菜单所属机构")},model:{value:e.treeNode,callback:function(t){e.treeNode=t},expression:"treeNode"}})],1)]}}],null,!1,3659148067)})],1)]):e._e(),t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"settingInstruction",expression:"'settingInstruction'"}],staticClass:"tdlbl tdw17"},[e._v("设置说明")]),t("td",{staticClass:"tdcont tdw83",attrs:{colspan:"5"}},[t("div",{staticStyle:{float:"left","text-align":"left","line-height":"25px"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip1",expression:"'explainTip1'"}]},[e._v("1.产品业务开通后,可对各单位已开通产品的模块菜单做个性化设置;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip2",expression:"'explainTip2'"}]},[e._v("2.一个单位开通多个产品,一次性加载全部产品模块菜单;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip3",expression:"'explainTip3'"}]},[e._v("3.请先选择模块菜单所属单位。")]),t("br")])])])])])])])]):e._e()],1)],1):e._e(),null!==e.sys&&null===e.menuItem?t("SysSetup",{attrs:{vo:e.sys,"z-tree":e.zTree,"sys-code":e.row.sysCode,"allow-delete-sys":e.allowDeleteSys}}):e._e(),null!==e.sys&&null!==e.menuItem?t("ModuleMenu",{attrs:{sys:e.sys,vo:e.menuItem,"z-tree":e.zTree}}):e._e(),t("CopyMenu",{attrs:{"z-tree":e.zTree},on:{refreshTreeData:e.refreshTreeData}})],1)],1)},r=[],o=i(95353);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){d(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function d(e,t,i){return(t=c(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e){var t=u(e,"string");return"symbol"==a(t)?t:t+""}function u(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var f={name:"ModuleIndex",components:{},props:{row:{type:Object,default:function(){return{}}},allowDeleteSys:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",moduleInfo:{loadSysSetupUrl:"base/sysSetup/querydata",loadTreeNodeUrl:"base/menuMgr/querydata",updateModuleUrl:"base/menuMgr/updateModuleAndPermissions"},sys:null,sysSetupList:[],menuItem:null,mergeSubSys:!0,treeData:[],zTree:{},isPortal:!1,dwadmin:0,orgCode:null}},computed:l({},(0,o.L8)(["loginUser"])),watch:{},created:function(){if(this.$bus.emit("showNavSearch",!1),console.log(this.$route.meta.params,"this.$route.meta.params"),this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("orgCode=")){var e=this.$route.meta.params.split("orgCode=")[1].split("&");this.loadSysSetup(e)}else"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?(this.dwadmin=1,this.loadSysSetup(this.loginUser.orgCode)):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")?this.loadSysSetup(this.loginUser.orgCode):this.row.sysCode?this.loadSysSetup(this.row.orgCode):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("isPortal=1")&&(this.isPortal=!0);this.$bus.on("setOrgItemTree",this.setOrgItem)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("setOrgItemTree",this.setOrgItem)},mounted:function(){},methods:{setOrgItem:function(e){var t=localStorage.orgItem?JSON.parse(localStorage.orgItem).orgCode:JSON.parse(localStorage.orgList)[1].orgCode;this.loadSysSetup(t)},loadSysSetup:function(e){var t=this;this.orgCode=e||this.orgCode,this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"orgCode",value:this.row.orgCode||this.orgCode}],params:{orderBy:"isDefaultSys desc,orderNo"},url:this.moduleInfo.loadSysSetupUrl}).then((function(e){if("success"===e.code)if(t.sysSetupList=e.body.listdata,e.body.listdata.length>0){t.sys=e.body.listdata[0];var i=[];e.body.listdata.forEach((function(e){i.push(e.sysCode)}));var n=[];if(t.row.sysCode)e.body.listdata.forEach((function(e){e.sysCode===t.row.sysCode&&n.push(e)}));else if(t.isPortal&&localStorage.orgItem){var r=t.isPortal&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";e.body.listdata.forEach((function(e){e.sysCode===r&&n.push(e)}))}else n=e.body.listdata;var o=t.isPortal&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";t.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"in",field:"sysCode",value:o||t.row.sysCode||i.join(",")}],params:{orderBy:"moduleLevel asc,orderNo asc"},url:t.moduleInfo.loadTreeNodeUrl}).then((function(e){"success"===e.code?t.treeData=t.treeDataAdapter(n.concat(e.body.listdata)):t.$alert(e.message,{type:"error"})}))}else t.$alert(t.$tx("ecwplat.sysSetup.chooseAgain","您所选择的单位未开通任何业务,请重新选择!"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else t.$alert(e.message,{type:"error"})}))},openSelectRootOrgDialog:function(){document.querySelector(".td-organ").querySelector("BUTTON").click()},onSelectRootorgCompleted:function(e,t){this.loadSysSetup(e[0].ocode)},treeDataAdapter:function(e){var t={},i={},n={};if(!0===this.mergeSubSys&&e.length>1&&1===e[0].sysType){for(var r=0;r<e.length;r++){var o=e[r];"appCenter"===o.code&&1===o.moduleLevel&&1===o.topFlag&&(n[o.sysCode]=o,o.passenger.disallowAddSubMenu=!0),void 0!==o.sysLicense?(o.name=o.sysName,o.pId=null,o.open=!0,o.title=o.sysName,1===o.sysType?t[o.sysCode]=o.id:t[o.masterSys]&&(t[o.sysCode]=t[o.masterSys],i[o.sysCode]=o.orderNo,e.splice(r--,1))):("0"===o.parentId?o.pId=t[o.sysCode]:o.pId=o.parentId,o.title="名称:"+o.name+"\r\n代码:"+o.code+"\r\n排序:"+o.orderNo)}for(var a in n){var s=n[a];if(s)for(var l=0;l<e.length;l++){var d=e[l];1===d.moduleLevel&&0===d.topFlag&&a!==d.sysCode&&(d.pId=s.id,d.orderNo=i[d.sysCode]+"/"+d.orderNo,d.title="名称:"+d.name+"\r\n代码:"+d.code+"\r\n排序:"+d.orderNo)}}e.sort((function(e,t){return e.orderNo<t.orderNo?-1:1}))}else e.forEach((function(e){void 0!==e.sysLicense?(e.name=e.sysName,e.pId=null,e.open=!0,e.title=e.sysName,t[e.sysCode]=e.id):("0"===e.parentId?e.pId=t[e.sysCode]:e.pId=e.parentId,e.title="名称:"+e.name+"\r\n代码:"+e.code+"\r\n排序:"+e.orderNo)}));return e},refreshTreeData:function(e){this.loadSysSetup(this.orgCode)},onTreeNodeClick:function(e,t,i){var n=this,r=JSON.parse(JSON.stringify(this.sys));this.sys=null,this.$nextTick((function(e){void 0===i.pId||null===i.pId?(n.menuItem=null,n.sys=i):(n.setMenuItem(i),n.sys=r)}))},setMenuItem:function(e){var t=e.getParentNode(),i="";while(null!==t&&t.getParentNode)i=t.name+"/"+i,t=t.getParentNode();e.parentName=i,2===e.moduleLevel&&0===e.leafFlag&&"rightLabel"!==e.target&&(e.target="leftMenuItem"),this.menuItem=e},onTreeCreated:function(e){this.zTree=e},treeBeforeDropNode:function(e,t,i,n,r){return!("inner"===n&&i.moduleLevel>1&&1===i.leafFlag)||(this.$alert(this.$tx("ecwplat.sysSetup.cannotBe",{targetNode:i.name},"".concat(i.name,"不是文件夹菜单,不能移入。")),{type:"warning"}),!1)},treeDropNode:function(e,t,i,n,r,o){var a=this,s=null,l=n.orderNo;if("inner"===r){s=n;var d=n.children;null!=d&&d.length>1&&(l=d[d.length-2].orderNo,isNaN(l)||(l=l-0+10))}else s=n.getParentNode(),isNaN(l)||("prev"===r?l-=1:l=l-0+1);var c=l+"",u=c.length;if(l>=0)if(c.length<4)for(var f=0;f<4-u;f++)c+="0";else c.length>4&&(c="9999");i.orderNo=c,i.pId=s.id,i.sysCOde=s.sysCode,null==s.pId?(i.moduleLevel=1,i.parentId="0"):(i.moduleLevel=s.moduleLevel+1,i.parentId=s.id),this.$http({method:"put",data:i,url:this.moduleInfo.updateModuleUrl}).then((function(n){"success"===n.code?(a.onTreeNodeClick(e,t,i),a.$message.success(n.message)):a.$alert(n.message,{type:"error"})}))},addModuleMenu:function(e,t){var i=this;this.zTree.selectNode(t),this.sys=t,this.menuItem=null,this.$nextTick((function(){i.$bus.emit("addModuleMenu")}))},editSysSetup:function(e,t){var i=this;this.zTree.selectNode(t),this.sys=t,this.menuItem=null,this.$nextTick((function(){i.$bus.emit("editSysSetup")}))},addMenu:function(e,t){var i=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){i.$bus.emit("addMenu")}))},addWflowMenus:function(e,t){var i=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){i.$bus.emit("addMenu","wflowMenus")}))},editMenu:function(e,t){var i=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){i.$bus.emit("editMenu")}))},deleteMenu:function(e,t){var i=this;null===this.menuItem&&(this.zTree.selectNode(t),this.setMenuItem(t)),this.$nextTick((function(){i.$bus.emit("deleteMenu",t)}))}}},p=f,h=(i(30458),i(81656)),m=(0,h.A)(p,n,r,!1,null,"3801b56a",null),b=m.exports,v=function(){var e=this,t=e._self._c;return t("PageContent",{attrs:{title:e.formTitle}},[t("dynamic-form",{attrs:{"table-field-info":e.sysSetupTableFieldInfo,vo:e.vo,"module-info":e.sysSetupModuleInfo,"can-edit":0}}),"SysSetup"===e.formType?t("Basicform",{attrs:{title:e.$tx("ecwplat.PageBtns.systemSetting","系统设置"),"win-width":e.sysSetupModuleInfo.winWidth,"win-height":e.sysSetupModuleInfo.winHeight,"toolbar-btns":e.busiformBtns,"on-basic-form-before-open":e.onSysSetupFormBeforeOpen,"on-basic-form-submited":e.onSysSetupFormSubmited},scopedSlots:e._u([{key:"default",fn:function(i){return[t("dynamic-form",{attrs:{vo:i?i.vo:e.formVo,"table-field-info":e.sysSetupTableFieldInfo,"can-edit":i?i.canEdit:1,"module-info":e.sysSetupModuleInfo}})]}}],null,!1,1967240207)}):e._e(),"ModuleMenu"===e.formType?t("Basicform",{attrs:{title:e.$tx("ecwplat.Common.columnMenuConfiguration","栏目菜单配置"),"append-to-body":!0,"win-width":e.menuModuleInfo.winWidth,"win-height":e.menuModuleInfo.winHeight,"on-basic-form-before-open":e.onMenuModuleFormBeforeOpen,"on-basic-form-submited":e.onMenuModuleFormSubmited},scopedSlots:e._u([{key:"default",fn:function(i){return[t("MenuItemForm",{attrs:{vo:i?i.vo:e.formVo,"can-edit":i?i.canEdit:1,"module-info":e.menuModuleInfo}})]}}],null,!1,1127664884)}):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"addModuleMenu",expression:"'addModuleMenu'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addColumn",expression:"'addColumn'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addModuleMenu}},[e._v("新增栏目")]),1!=e.dwadmin?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"systemSetting",expression:"'systemSetting'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editSysSetup}},[e._v("系统设置")]):e._e(),1!=e.dwadmin&&"eccloud"!=e.vo.sysCode&&e.allowDeleteSys?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"oneClickDelete",expression:"'oneClickDelete'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:e.deleteSysSetup}},[e._v("一键删除")]):e._e(),1!=e.dwadmin&&1!=e.platadmin?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"switchUnits",expression:"'switchUnits'"}],attrs:{plain:"",icon:"el-icon-search"},on:{click:e.selectOrgan}},[e._v("切换单位")]):e._e(),1!=e.dwadmin?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"exportMenu",expression:"'exportMenu'"}],attrs:{plain:"",icon:"el-icon-top-right"},on:{click:e.exportMenu}},[e._v("导出菜单")]):e._e(),1!=e.dwadmin?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"importMenu",expression:"'importMenu'"}],attrs:{plain:"",icon:"el-icon-bottom-right"},on:{click:e.importMenu}},[e._v("导入菜单")]):e._e()],1),t("ExportModuleCode"),t("ImportModuleCode"),t("DoingDialog")],1)},g=[],y=i(74575);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function _(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,i){return e[t]=i}}function c(e,t,i,n){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new E(n||[]);return r(a,"_invoke",{value:N(e,i,s)}),a}function u(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",b={};function v(){}function g(){}function y(){}var x={};d(x,a,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(O([])));S&&S!==i&&n.call(S,a)&&(x=S);var T=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function i(r,o,a,s){var l=u(e[r],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==w(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(c).then((function(e){d.value=e,a(d)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function N(t,i,n){var r=f;return function(o,a){if(r===h)throw Error("Generator is already running");if(r===m){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var d=u(t,i,n);if("normal"===d.type){if(r=n.done?m:p,d.arg===b)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(r=m,n.method="throw",n.arg=d.arg)}}}function L(t,i){var n=i.method,r=t.iterator[n];if(r===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,L(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=u(r,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,b;var a=o.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,b):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,b)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var i=t[a];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function i(){for(;++r<t.length;)if(n.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError(w(t)+" is not iterable")}return g.prototype=y,r(T,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:g,configurable:!0}),g.displayName=d(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,d(e,l,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},C(M.prototype),d(M.prototype,s,(function(){return this})),t.AsyncIterator=M,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new M(c(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(T),d(T,l,"Generator"),d(T,a,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(n,r){return s.type="throw",s.arg=t,i.next=n,r&&(i.method="next",i.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),d=n.call(a,"finallyLoc");if(l&&d){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),D(i),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;D(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:O(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function x(e,t,i,n,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function k(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function a(e){x(o,n,r,a,s,"next",e)}function s(e){x(o,n,r,a,s,"throw",e)}a(void 0)}))}}var S={name:"SysSetup",components:{MenuItemForm:y.A},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},allowDeleteSys:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",formTitle:this.$tx("ecwplat.sysSetup.fields.sysConfigInfo","系统配置信息"),dwadmin:0,platadmin:0,loginUser:this.$store.getters.loginUser,formType:"SysSetup",formVo:null,sysSetupModuleInfo:{winWidth:1e3,winHeight:600,moduleCode:"sysSetup",updateUrl:"base/sysSetup/update",delUrl:"base/sysSetup/deleteSysSetup",getByIdUrl:"base/sysSetup/getById"},menuModuleInfo:{moduleCode:"Module",addNewUrl:"base/menuMgr/addNew?sysCode="+this.vo.sysCode+"&parentId=0",insertUrl:"base/menuMgr/insertModuleAndPermissions",winWidth:900,winHeight:600},sysSetupTableFieldInfo:[{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入用户单位名称",errorMessage:"",formElementIndex:0,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"b06df403257a4614a78cc883b2149c3c",isRequired:1,passenger:{},propComment:"用户单位名称",propName:"orgFullname",propType:"String",textFormatter:"textfield",valueMaxLength:100},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入用户单位代码",errorMessage:"",formElementIndex:2,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"364d485f85ee49a4b0e7307b7e489a6d",isRequired:1,propComment:"用户单位代码",propName:"orgCode",propType:"String",textFormatter:"textfield",valueMaxLength:50},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入系统名称",errorMessage:"",formElementIndex:3,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"eb35f7324ce245d2bfcc2d8599fb7be2",isRequired:1,propComment:"系统名称",propName:"sysName",propType:"String",textFormatter:"textfield",valueMaxLength:250},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入系统代码",errorMessage:"",formElementIndex:4,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"3d71c21947bb4edcb692026c44a83625",isRequired:1,propComment:"系统代码",propName:"sysCode",propType:"String",textFormatter:"textfield",valueMaxLength:50},{defaultValue:"",elementCanEdit:"0",elementFormatter:"1:是\n0:否",elementType:"radio",emptyMessage:"请输入是否默认主系统",errorMessage:"",formElementIndex:5,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"bbbcdcece2704ad986ed9fe66f2fc653",isRequired:1,passenger:{},propComment:"是否默认主系统",propName:"isDefaultSys",propType:"Short",textFormatter:""},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementType:"select",emptyMessage:"请选择产品名称 ",errorMessage:"",formElementIndex:6,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"4d2ef571906e487baa359f215b32b18e",isRequired:0,propComment:"产品代码",propName:"productName",propType:"String",textFormatter:"",valueMaxLength:50},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入LOGO图片文件名",errorMessage:"",formElementIndex:0,formShow:0,formTdAlign:"text-left",formTdColspan:0,id:"7eee9e8e3a884c33ac731b94bfbc0637",isRequired:1,propComment:"LOGO图片文件名",propName:"sysLogoFileName",propType:"String",textFormatter:"textfield",valueMaxLength:100},{defaultValue:"sysLogoFileName",elementCanEdit:"{{canEdit}}",elementFormatter:"",elementType:"file",emptyMessage:"请选择系统LOGO图片",errorMessage:"",formElementIndex:0,formShow:0,formTdAlign:"text-left",formTdColspan:0,id:"e2a472a94bfe4b23b72171cd74dc9d4a",isRequired:1,propComment:"系统LOGO图片",propName:"sysLogo",propType:"byte[]",textFormatter:"image/*",valueMaxLength:1,valueMinLength:0},{defaultValue:"",elementCanEdit:"0",elementFormatter:"",elementReadonly:1,elementType:"date",emptyMessage:"请输入业务开通时间",errorMessage:"",formElementIndex:24,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"6c4558fc66af4d1c8c83ce00bcd4ca55",isRequired:1,propComment:"业务开通时间",propName:"openTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd",valueMinLength:0},{defaultValue:"",elementCanEdit:"0",elementFormatter:"",elementReadonly:1,elementType:"date",emptyMessage:"请输入业务开通时间",errorMessage:"",formElementIndex:24,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"6c4558fc66af4d1c8c83ce00bcd4ca55",isRequired:1,propComment:"业务截止时间",propName:"expiredTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd",valueMinLength:0},{defaultValue:"1",elementCanEdit:"{{canEdit}}",elementFormatter:"1:启用\r\n0:禁用\r\n",elementType:"radio",emptyMessage:"请选择系统状态 ",errorMessage:"",formElementIndex:11,formShow:1,formTdAlign:"text-left",formTdColspan:24,id:"9391e6e75a964a82949543dd899e746e",isRequired:1,propComment:"系统状态 ",propName:"sysStatus",propType:"Short",textFormatter:"",valueMinLength:0}],busiformBtns:[]}},computed:{},watch:{},created:function(){this.$bus.on("editSysSetup",this.editSysSetup),this.$bus.on("addModuleMenu",this.addModuleMenu),"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?this.dwadmin=1:this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")&&(this.platadmin=1,this.sysSetupTableFieldInfo.splice(0,2))},beforeDestroy:function(){this.$bus.off("editSysSetup",this.editSysSetup),this.$bus.off("addModuleMenu",this.addModuleMenu)},mounted:function(){},methods:{editSysSetup:function(){var e=this;this.formType="SysSetup",this.$nextTick((function(){e.$bus.emit("openBusiform",e.sysSetupModuleInfo,e.vo,1)}))},deleteSysSetup:function(){var e=this,t=this.$tx("ecwplat.sysSetup.delSysSetupTip",{sysName:this.vo.sysName},"您是否确认删除".concat(this.vo.sysName,"的全部系统数据?"));1===this.vo.sysType&&(t=this.$tx("ecwplat.sysSetup.delSysSetupAllTip",{sysName:this.vo.sysName},"您是否确认删除".concat(this.vo.sysName,"以及关联子系统的全部数据?"))),this.$confirm(t,this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(k(_().mark((function t(){var i;return _().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$bus.emit("showDoingDialog"),t.next=3,e.$app.deleteByIds(e.sysSetupModuleInfo.delUrl,e.vo.id.split(","));case 3:i=t.sent,e.$bus.emit("closeDoingDialog"),"success"===i.code?(e.$alert(i.message,e.$tx("common.operationTip","操作提示"),{type:"warning"}),e.$vnode.context.treeData=[],e.$vnode.context.sys=null):e.$alert(i.message,e.$tx("common.operationTip","操作提示"),{type:"error"});case 6:case"end":return t.stop()}}),t)})))).catch((function(e){"cancel"!==e&&console.error(e)}))},selectOrgan:function(){this.$vnode.context.treeData=[],this.$vnode.context.sys=null,this.$nextTick((function(e){document.querySelector(".td-organ").querySelector(".el-button").click()}))},addModuleMenu:function(){var e=this;this.formType="ModuleMenu",this.$nextTick((function(){e.$bus.emit("openBusiform",e.menuModuleInfo,null,1)}))},onMenuModuleFormBeforeOpen:function(e,t,i){t.parentName=this.vo.sysName,null===t.status&&(t.status=1),null===t.leafFlag&&(t.leafFlag=0),this.formVo=t,i.resolve(!0)},onMenuModuleFormSubmited:function(e,t){console.log("moduleMenu form submited"),t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo,"0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId,this.$bus.emit("updateTreeNode",t)},onSysSetupFormBeforeOpen:function(e,t,i){this.formVo=t,i.resolve(!0)},onSysSetupFormSubmited:function(e,t){console.log("sysSetup form submited"),t.name=t.sysName,t.title=t.sysName,this.$bus.emit("updateTreeNode",t)},exportMenu:function(){var e=this,t=[{value:"menus",text:this.$tx("ecwplat.Common.moduleMenu","模块菜单")},{value:"rolePermissions",text:this.$tx("ecwplat.Common.role","角色授权")}];this.$bus.emit("openExportModuleDialog",this.$tx("ecwplat.PageBtns.exportMenu","导出菜单"),t,(function(t){if("success"===t.code){var i=t.value;i.sysCode=e.vo.sysCode,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:[],params:i,url:"base/codeGenerate/exportMenuDbSql"}).then((function(t){if("success"===t.code){var i='<br/>下载代码:<a href="/apigw/'+t.body.zipurl+'" target="_blank">'+t.body.zipname+"</a>";e.$alert(t.message+i,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$alert(t.message,{type:"error"})}))}}),null,null,this.$tx("ecwplat.Common.selectSqlType","请选择目标数据库类型:"))},importMenu:function(){var e=this;this.$bus.emit("openImportModuleDialog",this.$tx("ecwplat.Common.moduleMenu","模块菜单"),"/base/codeGenerate/importModuleMenu?parentId="+this.vo.id,(function(t){"success"===t.code&&e.$vnode.context.loadSysSetup(e.vo.orgCode)}))}}},T=S,C=(0,h.A)(T,v,g,!1,null,"2497073a",null),M=C.exports,N=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.dialogFormVisible,"append-to-body":!0,"close-on-click-modal":!1,width:"900px",title:e.$tx("ecwplat.sysSetup.dialogTitle","复制菜单")},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("el-form",{attrs:{model:e.newMenu}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"superiorMenu",expression:"'superiorMenu'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级菜单名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.srcMenu.parentName)}})])]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"currentMenu",expression:"'currentMenu'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("当前菜单名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.srcMenu.name)}})])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"tarSystemCode",expression:"'tarSystemCode'"}]},[e._v("目标系统代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.fields.tarSystemCode","目标系统代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"sysCode",placeholder:e.$tx("ecwplat.sysSetup.fields.tarSystemCodeEnter","请输入新菜单目标系统代码")},model:{value:e.newMenu.sysCode,callback:function(t){e.$set(e.newMenu,"sysCode",t)},expression:"newMenu.sysCode"}})],1)]}}],null,!1,825548065)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"newMenu",expression:"'newMenu'"}]},[e._v("新菜单名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.fields.newMenu","新菜单名称"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"newName",placeholder:e.$tx("ecwplat.sysSetup.fields.newMenuEnter","请输入新菜单名称")},model:{value:e.newMenu.newName,callback:function(t){e.$set(e.newMenu,"newName",t)},expression:"newMenu.newName"}})],1)]}}],null,!1,1078266707)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e.srcMenu.sysCode==e.newMenu.sysCode?t("span",{staticClass:"required"},[e._v("*")]):e._e(),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replaceForm",expression:"'replaceForm'"}]},[e._v("菜单代码替换From")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{attrs:{name:"replaceFrom",placeholder:e.$tx("ecwplat.sysSetup.fields.replaceFormKey","请输入菜单代码替换From关键词")},on:{input:function(t){return e.$forceUpdate()}},model:{value:e.newMenu.replaceFrom,callback:function(t){e.$set(e.newMenu,"replaceFrom",t)},expression:"newMenu.replaceFrom"}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e.srcMenu.sysCode==e.newMenu.sysCode?t("span",{staticClass:"required"},[e._v("*")]):e._e(),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replaceTo",expression:"'replaceTo'"}]},[e._v("菜单代码替换To")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{attrs:{name:"replaceTo",placeholder:e.$tx("ecwplat.sysSetup.fields.replaceToKey","请输入菜单代码替换To关键词")},on:{input:function(t){return e.$forceUpdate()}},model:{value:e.newMenu.replaceTo,callback:function(t){e.$set(e.newMenu,"replaceTo",t)},expression:"newMenu.replaceTo"}})],1)])])])])])]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:e.closeDialog}},[e._v("关 闭")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"save",expression:"'save'"}],attrs:{type:"primary",icon:"el-icon-check"},on:{click:e.submitForm}},[e._v("保 存")])],1)],1):e._e()},L=[],I={name:"CopyMenu",components:{},props:{zTree:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",srcMenu:{},newMenu:{},moduleInfo:{},dialogFormVisible:!1,doing:!1}},computed:{},watch:{},created:function(){this.$bus.on("copyMenu",this.openForm)},beforeDestroy:function(){this.$bus.off("copyMenu",this.openForm)},mounted:function(){},methods:{openForm:function(e,t){this.moduleInfo=e,this.srcMenu=t,this.newMenu.sourceId=t.id,this.newMenu.sysCode=t.sysCode,this.newMenu.replaceFrom="",this.newMenu.replaceTo="",this.dialogFormVisible=!0,this.doing=!1},submitForm:function(){var e=this,t=this;t.doing||this.formValidate((function(){if(e.srcMenu.sysCode===e.newMenu.sysCode){if(e.srcMenu.name===e.newMenu.newName)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenu","同一系统,新菜单名称不能与当前菜单相同"),e.$tx("common.operationTip","操作提示"),{type:"warning"});if(""===e.newMenu.replaceFrom)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenuForm","同一系统,必须输入菜单代码替换From关键词"),e.$tx("common.operationTip","操作提示"),{type:"warning"});if(""===e.newMenu.replaceTo)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenuTo","同一系统,必须输入菜单代码替换To关键词"),e.$tx("common.operationTip","操作提示"),{type:"warning"})}t.doing=!0,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",params:e.newMenu,url:e.moduleInfo.copyModuleUrl}).then((function(i){if("success"===i.code){var n=e.zTree.getNodeByParam("id",e.srcMenu.parentId,null),r="";while(null!==n&&n.moduleLevel>=1)r=n.name+"/"+r,n=n.getParentNode();e.$emit("refreshTreeData",i.body.listdata),e.$alert(e.$tx("ecwplat.sysSetup.replaceSuccess",{newName:r+e.newMenu.newName},"复制成功,新菜单名称为:{newName}"),{type:"success"}),e.closeDialog()}else t.doing=!1,e.$alert(i.message,{type:"error"})}))}))},closeDialog:function(){this.srcMenu={},this.newMenu={},this.moduleInfo={},this.dialogFormVisible=!1}}},D=I,E=(0,h.A)(D,N,L,!1,null,"2a346ced",null),O=E.exports,F=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.title}},[t("MenuItemForm",{attrs:{vo:e.vo,"can-edit":0,sys:e.sys}}),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addSubmenu",expression:"'addSubmenu'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addMenu()}}},[e._v("新增子菜单")]),null!=e.sys&&e.sys.passenger&&0!==e.sys.passenger.workflow&&e.vo.moduleLevel<=2?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addApprMenu",expression:"'addApprMenu'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addMenu("wflowMenus")}}},[e._v("新增审批菜单组")]):e._e(),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"modifyMenu",expression:"'modifyMenu'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editMenu}},[e._v("修改菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"copyMenu",expression:"'copyMenu'"}],attrs:{plain:"",icon:"el-icon-document-copy"},on:{click:e.copyMenu}},[e._v("复制菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"exportMenu",expression:"'exportMenu'"}],attrs:{plain:"",icon:"el-icon-top-right"},on:{click:e.exportMenu}},[e._v("导出菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"importMenu",expression:"'importMenu'"}],attrs:{plain:"",icon:"el-icon-bottom-right"},on:{click:e.importMenu}},[e._v("导入菜单")])],1)],1),e.forceUpdate?e._e():t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"append-to-body":!0,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(i){return[t("MenuItemForm",{attrs:{vo:i?i.vo:e.formVo,"can-edit":i?i.canEdit:1,"module-info":e.moduleInfo,"new-menu-type":e.newMenuType,sys:e.sys}})]}}],null,!1,440819207)}),t("ExportModuleCode"),t("ImportModuleCode")],1)},A=[],P={name:"ModuleMenu",components:{MenuItemForm:y.A},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},sys:{type:Number,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"meunItem",title:1===this.vo.moduleLevel?this.$tx("ecwplat.Common.columnMenuConfiguration","栏目菜单配置"):this.$tx("ecwplat.Common.leftMenuConfiguration","左导航菜单配置"),moduleInfo:{moduleCode:"Module",addNewUrl:"base/menuMgr/addNew",insertUrl:"base/menuMgr/insertModuleAndPermissions",getByIdUrl:"base/menuMgr/getById",updateUrl:"base/menuMgr/updateModuleAndPermissions",delUrl:"base/menuMgr/deleteModuleAndPermissions",copyModuleUrl:"base/menuMgr/copyModuleAndPermissions",winWidth:1080,winHeight:600},formVo:null,newMenuType:null}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){var e=this;if(this.sys.sysCode!==this.vo.sysCode){var t=this.$vnode.context.treeData.filter((function(t){return t.sysCode===e.vo.sysCode&&!t.pId}));t.length>0&&(this.sys=t[0])}},methods:{addMenu:function(e){if(this.newMenuType=e,this.vo.moduleLevel>1&&0!==this.vo.leafFlag)this.$alert(this.$tx("ecwplat.meunItem.menuTip",{voName:this.vo.name},"".concat(this.vo.name,"不是文件夹菜单,不能创建子菜单。")),{type:"warning"});else if(this.vo.passenger.disallowAddSubMenu)this.$alert(this.$tx("ecwplat.meunItem.notAllMenu",{voName:this.vo.name},"".concat(this.vo.name,"下不允许创建子菜单。")),{type:"warning"});else{var t=this.moduleInfo.addNewUrl.split("?")[0];t+="?sysCode="+this.vo.sysCode+"&menuType="+(e||"")+"&parentId=",void 0!==this.vo.sysLicense?this.moduleInfo.addNewUrl=t:this.moduleInfo.addNewUrl=t+this.vo.id,this.$bus.emit("openBusiform",this.moduleInfo,null,1)}},editMenu:function(){this.newMenuType=null,this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},copyMenu:function(){this.$bus.emit("copyMenu",this.moduleInfo,this.vo)},deleteMenu:function(e){var t=this,i=this.$tx("ecwplat.meunItem.delMenu",{nodeName:e.name},"确认删除“".concat(e.name,'"吗?'));e.children&&e.children.length>0&&(i=this.$tx("ecwplat.meunItem.isDelMenu",{nodeName:e.name},"确认删除“".concat(e.name,"”及下级全部子菜单吗?"))),this.$confirm(i,{type:"warning"}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(i){if("success"===i.code){var n=e.getParentNode();t.zTree.removeNode(e),t.zTree.selectNode(n),t.$bus.emit("updateTreeNode",n),t.$message.success(i.message)}else t.$alert(i.message,{type:"error"})}))}))},exportMenu:function(){var e=this,t=this.zTree.getSelectedNodes(),i=null,n=this.vo.parentName+this.vo.name;t.length>1&&(n="",t.forEach((function(e){if(""!==n)n+="、";else{var t=e.getParentNode();n=t.name+"/",i=t.name}n+=e.name})));var r=[{value:"menus",text:this.$tx("ecwplat.Common.moduleMenu","模块菜单")},{value:"rolePermissions",text:this.$tx("ecwplat.Common.role","角色授权")}];this.$bus.emit("openExportModuleDialog",this.$tx("ecwplat.PageBtns.exportMenu","导出菜单"),r,(function(n){if("success"===n.code){var r=n.value;r.menuName=i,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:t,params:r,url:"base/codeGenerate/exportMenuDbSql"}).then((function(t){if("success"===t.code){var i='<br/>下载代码:<a href="/apigw/'+t.body.zipurl+'" target="_blank">'+t.body.zipname+"</a>";e.$alert(t.message+i,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$alert(t.message,{type:"error"})}))}}),null,null,this.$tx("ecwplat.Common.selectSqlType","请选择目标数据库类型:"))},importMenu:function(){var e=this;this.$bus.emit("openImportModuleDialog",this.$tx("ecwplat.Common.moduleMenu","模块菜单"),"/base/codeGenerate/importModuleMenu?parentId="+this.vo.id,(function(t){"success"===t.code&&e.$vnode.context.loadSysSetup(e.vo.orgCode)}))},onBasicFormBeforeOpen:function(e,t,i){var n="";null!==t.updateTime?n=this.vo.parentName:"0"===t.parentId?(t.moduleLevel=1,n=t.sysName,t.status=1,t.leafFlag=0):(t.status=1,t.leafFlag=null===t.leafFlag?0:t.leafFlag,2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target&&(t.target="leftMenuItem"),n=this.vo.parentName+this.vo.name),t.parentName=n,this.formVo=t,i.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,i){null===t.leafType&&(t.href=""),i.resolve(!0)},onBasicFormSubmited:function(e,t){void 0!==t.pId&&null!==t.pId||("0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId),t.passenger.wflowMenuItems?this.$vnode.context.loadSysSetup(t.orgCode):(this.$vnode.context.sysSetupList&&1===t.moduleLevel&&0===t.topFlag&&this.$vnode.context.sysSetupList.forEach((function(e){e.sysCode===t.sysCode&&(t.orderNo=e.orderNo+"/"+t.orderNo)})),this.$bus.emit("updateTreeNode",t)),t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo}}},$=P,B=(0,h.A)($,F,A,!1,null,"07439568",null),j=B.exports,R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.showToolbar?t("div",{staticClass:"data-table-container"},[t("toolbar")],1):e._e(),t("div",{directives:[{name:"loading",rawName:"v-loading",value:!e.showFrame,expression:"!showFrame"}],class:e.showFrame?"":"loading"},[t("iframe",{directives:[{name:"show",rawName:"v-show",value:e.showFrame,expression:"showFrame"}],ref:"iframe",attrs:{src:e.src,width:"100%",height:"100%",frameborder:"0"}})])])},U=[],H={name:"FrameLoader",props:{src:{type:String,default:""}},data:function(){return{shwoToolbar:!1,showFrame:!1}},created:function(){var e=this.$route.meta;e&&!this.src&&(this.src=e.href),this.$route.meta&&"rightLabel"===this.$route.meta.parentTarget&&(this.showToolbar=!0)},mounted:function(){var e=this;this.$refs["iframe"].onload=function(){setTimeout((function(){var t=document.querySelector(".main-scrollbar").clientHeight;t=e.showToolbar?t-50-20-32-15-4:t-50-20-4,e.$refs["iframe"].style.height=t+"px",e.$refs["iframe"].style.minHeight="unset",e.showFrame=!0}),1e3)}}},W=H,Y=(i(89292),(0,h.A)(W,R,U,!1,null,"69610664",null)),V=Y.exports;b.install=function(e){e.component(b.name,b)},M.install=function(e){e.component(M.name,M)},O.install=function(e){e.component(O.name,O)},j.install=function(e){e.component(j.name,j)},V.install=function(e){e.component(V.name,V)};var z=b,q=M,J=O,G=j,K=V},26695:function(e){e.exports={ecwplat:{sysSetup:{fields:{superiorMenu:"Superior menu name",currentMenu:"Current menu name",tarSystemCode:"Target system code",tarSystemCodeEnter:"Please enter the new menu target system code",newMenu:"New menu name",newMenuEnter:"Please enter the new menu name",replaceForm:"Menu code replace From",replaceFormKey:"Please enter the menu code replace From keyword",replaceTo:"Menu code replace To",replaceToKey:"Please enter the menu code replace To keyword",basicInfo:"Basic information",name:"Name",namePlaceholder:"Please enter your name",selectUser:"Select registered user",selectDwUser:"Select unit user",loginId:"Login ID",loginIdPlaceholder:"Please enter UID",account:"Account",accountPlaceholder:"Please enter account",webchat:"Webchat",employeeNo:"Employee number",employeeNoEmptyMessage:"Please enter employee number",mobilePhone:"Mobile phone number",mobilePhonePlaceholder:"Please enter mobile phone number",password:"Password",passwordPlaceholder:"Please enter password",conformPwd:"Confirm password",conformPwdPlaceholder:"Please enter confirm password",confirmPassword:"Password and confirm password must be the same",email:"Email address",emailPlaceholder:"Please enter email address",idCard:"Citizen identification number",idCardPlaceholder:"Please enter citizen identification number",sex:"Gender",createType:"Creation method",sexEmpty:"Please select gender",userName:"User nickname",userNamePlaceholder:"Please enter user nickname",chatPhone:"Chat number",chatPhonePlaceholder:"Please enter chat number",operate:"Operate",statusPlaceholder:"Please enter select status",createTime:"Creation time",secretLevel:"Confidentiality level",secretLevelPlaceholder:"Please select confidentiality level",shortTel:"Mobile副号",bindIP:"Binding IP",bindIPplaceholder:"Please enter binding IP address",provisioningSystem:"Provisioning system",provisioningSystemPlaceholder:"Please select provisioning system method",designatedSystem:"Designated system",personSatus:"Please select personnel status",audit:"Pending review",jobInformation:"Job information",workUnit:"Work unit",sort:"Sort",jobType:"Job type",jobTypePlaceholder:"Please enter select job type",jobTitle:"Job title",jobTitlePlaceholder:"Please enter job title",orgFullName:"Organization name",orgFullNamePlaceholder:"Please enter organization name",orgFullNamePlaceholder2:"Please select organization name",orgCode:"Organization code",orgCodePlaceholder:"Please enter organization code",orgCodePlaceholder2:"Please select organization code",orgShortName:"Organization abbreviation",orgShortNamePlaceholder:"Please enter organization abbreviation",orgLevel:"Organization level",orgLevelPlaceholder:"Please select organization level",companyLevel:"Company level",orgType:"Organization type",manageOrgName:"Supervisory organization",selectStatus:"Please select status",personCountLimit:"Unit user count",orgDescript:"Organization description",orgDescriptPlaceholder:"Please enter organization description",positionPersonnel:"Position personnel",selectSsPlaceholder:"Please select affiliated personnel",noOrgJobInfo:"No job configuration information available.",regDep:"Organizational department",regDepPlaceholder:"Please select if it's an organizational department",orderNo:"Sort number",orderNoPlaceholder:"Please enter sort number",otherInfo:"Other information",rolePermission:"Role permission",userRole:"User role:",mainPerson:"Main person in charge",deputyDirector:"Deputy director",commonPerson:"General staff",openAll:"Open all",notOpen:"Not open",common:"Common",inner:"Internal",workSecrets:"Work secrets",secrets:"Secrets",index:"Serial number",otherColsEmail:"Email address",otherColsPartyStatus:"Political status",otherColsEducational:"Education level",otherColsNation:"Place of origin",nationEmptyMessage:"Please enter place of origin",otherColsNativePlace:"Home address",otherColsWorkNature:"Nature of work",otherColsWorkAddress:"Work location",workAddressEmptyMessage:"Please enter work location",otherColsWorkTel:"Work phone",otherColsJobRank:"Job rank",otherColsBirthday:"Birthday",orgPersonExport:"- Organization personnel export",cardPhoto:"ID photo",cardPhotoEmptyMessage:"Please select ID photo",cAorderNo:"CA serial number",cAorderNoEmptyMessage:"Please enter CA serial number",entryDate:"Entry date",entryDateEmptyMessage:"Please select entry date",positiveDate:"Regularization date",positiveDateEmptyMessage:"Please select regularization date",workDate:"Work start date",workDateEmptyMessage:"Please select work start date",workAge:"Years of service",workAgeEmptyMessage:"Please enter years of service",partyStatus:"Political status",partyStatusEmptyMessage:"Please enter political status",interruptedTime:"Duration of work interruption",interruptedTimeEmptyMessage:"Please enter duration of work interruption",workNature:"Nature of work",workNatureEmptyMessage:"Please select nature of work",jobRankEmptyMessage:"Please select job rank",educational:"Education level",educationalEmptyMessage:"Please select education level",graduatedSchool:"Graduated school",graduatedSchoolEmptyMessage:"Please enter graduated school",workTel:"Work phone",workTelEmptyMessage:"Please enter work phone",homeTel:"Home phone",homeTelEmptyMessage:"Please enter home phone",birthday:"Date of birth",birthdayEmptyMessage:"Please select date of birth",marriage:"Marital status",marriageEmptyMessage:"Please select marital status",homeAddress:"Home address",homeAddressEmptyMessage:"Please enter home address",emergencyContact:"Emergency contact",emergencyContactEmptyMessage:"Please enter emergency contact",linkmanTel:"Emergency contact phone",linkmanTelEmptyMessage:"Please enter emergency contact phone",privateSet:"Privacy settings",privateSetPlaceholder:"Please enter privacy settings",privateSetPlaceholder2:"Please select privacy settings",privateAllow:"Designated range",privateAllowPlaceholder:"Please enter designated range",visiblePerson:"Visible personnel",visiblePersonPlaceholder:"Please select visible personnel",person:"Personnel",parentName:"Superior organization",orgInfo:"Organization information",deptOrgInfo:"Department/office organization information",deptFzInfo:"Department grouping information",institutionalDirectory:"Institution directory",institutionalDirectoryPlaceholder:"Please select institution directory",isManagementOrganization:"Is it a management organization",isManagementOrganizationPlaceholder:"Please select if it is a management organization",memberRoles:"Member roles",remarks:"Remarks",roleOrgStr:"Member roles assigned to all personnel under the organization, including personnel from sub-organizations.",fzName:"Grouping name",fzNamePlaceholder:"Please enter grouping name",fzDescript:"Grouping description",fzDescriptPlaceholder:"Please enter grouping description",fzStatusPlaceholder:"Please select grouping status",mlTreeInfo:"Directory tree node information",parentLevelNode:"Superior node",nodeNameEmpty:"Please enter node name",orderNoEmpty:"Please enter sort order",sysRole:"System role",PendingConfidentiality:"Pending confidentiality",exportModule:"Import mode",addTb:"Incremental synchronization",allTb:"Full synchronization",depart:"Department",ks:"Office",importRes:"Import result",importResultStr:"UID and mobile number are not unique, not imported",importResultStr2:"Account already exists, only employees imported",importResultStr3:"Account and employee already exist, updated",importOrgInfo:"Import organization information",importGroupCy:"Import group members",startImport:"Start import",jobJzTitle:"{name} position personnel matrix",groupJzTitle:"{name} group personnel matrix",organizationalDirectory:"Organizational directory",productName:"Product name",productNamePlaceholder:"Please select the platform product for the role",selectProPlat:"Select platform product",productCode:"Product code",roleName:"Role name",roleNamePlaceholder:"Please enter role name",roleNo:"Role number",roleNoPlaceholder:"Please enter role number",roleDescript:"Role description",rolePlaceholder:"Please enter role description",status:"Status",sysConfigInfo:"System configuration information",orgFullname:"User unit name",orgFullnameEnter:"Please enter user unit name",orgCodeEnter:"Please enter user unit code",sysName:"System name",sysNameEnter:"Please enter system name",sysCode:"System code",sysCodeEnter:"Please enter system code",defToSys:"Is it the default main system",defToSysEnter:"Please enter if it is the default main system",productCodeEnter:"Please select product name",logoImgName:"LOGO image file name",logoImgNameEnter:"Please enter LOGO image file name",syslogoImgName:"System LOGO image",syslogoImgNameEnter:"Please select system LOGO image",busActTime:"Business activation time",busActTimeEnter:"Please enter business activation time",businessDeadline:"Business deadline",businessDeadlineEnter:"Please enter business activation time",systemState:"System state",selectSystemState:"Please select system state"},options:{statusOptions:{1:"Valid",0:"Invalid",6:"Pending confidentiality",7:"Pending review",8:"Frozen"},positionTypeOptions:{1:"Main person in charge",2:"Deputy person in charge",0:"Ordinary employee"},isSysUserOptions:{1:"Open all",0:"Do not open",2:"Designated system"},isRegDeptOptions:{1:"Yes",0:"No"},secretLevelOptions:{0:"Ordinary",1:"Internal",2:"Work secret",3:"Secret"},privateSetOptions:{0:"All visible",1:"Visible to superiors",4:"Visible to peers",2:"Visible within the department",3:"Designated range"},orgTypeOptions:{1:"Established organization",0:"Temporary organization",2:"External organization"},orgLevelOptions:{2:"Department level",3:"Office level",4:"Team level",5:"Group level",6:"Level Six",7:"Level Seven",8:"Level Eight",9:"Level Nine",10:"Level Ten"}},currentRegisteredUser:"Current registered users:",validUser:"Valid users:",PendingClassifiedUser:"Pending confidentiality users:",pendingUserReview:"Pending review users:",invalidUser:"Invalid users:",freezeUsers:"Frozen users:",personInfo:"Personnel information",dialogTitle:"Copy menu",replaceMenu:"In the same system, the new menu name cannot be the same as the current menu.",replaceMenuForm:"In the same system, you must enter a menu code to replace the 'From' keyword.",replaceMenuTo:"In the same system, you must enter a menu code to replace the 'To' keyword.",replaceSuccess:"Copy successful, new menu name is: {newName}",activeText:"Merge by main system",inactiveText:"Expand sub-systems",selectMechanism:"Please select the organization that the module menu belongs to",moduleMenu:"Module menu management",selectAffInsti:"Please select the organization that the module menu belongs to",settingInstruction:"Setting instructions",explainTip1:"1. After the product business is activated, you can make personalized settings for the module menu of the activated products of each unit;",explainTip2:"2. If a unit activates multiple products, all product module menus will be loaded at once;",explainTip3:"3. Please first select the unit to which the module menu belongs.",chooseAgain:"The unit you selected has not activated any business, please select again!",cannotBe:"{targetNode} is not a folder menu and cannot be moved in.",delSysSetupTip:"Are you sure you want to delete all system data of '{sysName}'?",delSysSetupAllTip:"Are you sure you want to delete all data of '{sysName}' and associated sub-systems?",statusPlaceholder:"Please select a status",updateTime:"Update time",roleProduct:"Product role",roleMatrix:"{treeNode} role permission matrix",unauthorized:"Unauthorized",authorized:"Authorized",unrestricted:"Unrestricted",operationButton:"Operation button",processButton:"Process button",serviceInterface:"Service interface",accessSystem:"Access system",portalMiniProgram:"Portal mini-program",mobileApp:"Mobile application",fileSearch:"File Query",allFileSearch:"All File Query",deptFileSearch:"Dept File Query",platRolesTipOne:"1. '{dataType}' is a global role for the platform, other roles are product-level roles;",platRolesTipTwo:"2. After assigning permissions to platform-level roles, users must log in again for them to take effect; permissions assigned to product-level roles will only take effect for newly activated systems;",platRolesTipThree:"3. 'Function permission management --\x3e Role permission management --\x3e Permission settings' provides the function to assign permissions for roles in the activated systems.",selectPerson:"Select organization personnel",plselectPerson:"Please select organization personnel",selectWork:"Select work group",selectBusinessSystem:"Select business system",pSelectBusinessSystem:"Please select activated business system",roleOwner:"Role owner",personalOwner:"Individual owner",deptOwner:"Department owner",grolupOwner:"Group owner",commonNum:"Total of {dataType} people",importRolePersonnel:"Import role personnel"},menuForm:{fields:{parentName:"Parent name",columnAbbre:"Column abbreviation",columnAbbreEnter:"Please enter column abbreviation",menuType:"Menu type",selectmenuType:"Please select menu type",approvalMenu:"Approval menu group",moduleSubmenu:"Approval module submenu",selectModuleSubmenu:"Please select approval module submenu",myCreatedURL:"My created list URL",enterMyCreatedURL:"Please enter my created list URL",listURL:"{dataType} list URL",enterListURL:"Please enter {name} list URL",approvalCode:"Approval module business code",enterApprovalCode:"Please enter approval module business code, e.g., fawen, shouwen, hytz",pageContentType:"Page content type",selectPageContentType:"Please select page content type",openType:"Open type",selectOpenType:"Please select open type",submenuStyle:"Submenu style",selectSubmenuStyle:"Please select submenu style",navName:"Page navigation name",navNameEnter:"Please enter page navigation name",menuLink:"Menu link",menuLinkEnter:"Please enter menu link",urlFormat:"URL format",urlFormatTip1:"1. Dynamic list view vue component URL, must end with '/' and should not include file extension",urlFormatTip2:"2. Format: #/dcontent/base.jobPosition.list/",urlFormatTip3:"1. Static list view vue component file path, should not include file extension",urlFormatTip4:"2. Format: @/wapp/workflow/wfTaskItem/myTodo",businessCode:"Business code",businessCodeEnter:"Please enter business code, starting with a lowercase letter",engineUrl:"Engine (module) URL",engineUrlEnter:"Please enter engine (module) URL",wfName:"Workflow name",wfNameEnter:"Please enter workflow name",wfCode:"Workflow code",wfCodeEnter:"Please enter workflow code",stageName:"Starting stage name",stageNameEnter:"Please enter starting stage name",stageCode:"Starting stage code",stageCodeEnter:"Please enter starting stage code",navShow:"Navigation bar display",navOption1:"Show",navOption2:"Do not show",authoType:"Authorization method",selectAuthoType:"Please select authorization method",i18nCode:"I18N code",i18nCodeEnter:"Please enter I18N code",accessAuthorization:"Access authorization",orderNumber:"Order number",orderNumberEnter:"Please enter a 4-digit order number",status:"Status",selectstatus:"Please select status",menuIcon:"Select menu icon"},folder:"Folder",menuItem:"Menu item",myCreated:"My created",fourStatus:"(All, Draft, In Process, Completed)",myProcessed:"My processed",twoStatus:"(Pending, Completed)",allFile:"All",threeStatus:"(All, In Process, Completed)",columnName:"Column name",menuName:"Menu name",columnCode:"Column code",menuCode:"Menu code",lnavWork:"Left navigation + workspace",work:"Workspace",popUp:"Pop-up window",topWAin:"Top-level window",leftMenu:"Left side menu top",rightLabel:"Right side page label",not:"None",dynamicListPage:"Dynamic list page",staticListPage:"Static list page",superiorName:"Dynamic portal",regularURL:"Regular URL",dynamicList:"Dynamic list",staticList:"Static list",statisticalReport:"Statistical report",standardDraft:"Draft document (standard)",customizedDraft:"Draft document (customized)",Unrestricted:"Unrestricted",designatedRole:"Designated role",desiPerson:"Designated organization personnel",specifyGroup:"Designated group"},meunItem:{menuTip:"{voName} is not a folder menu and cannot create submenus.",notAllMenu:"Submenus are not allowed to be created under {voName}.",delMenu:"Are you sure you want to delete '{nodeName}'?",isDelMenu:"Are you sure you want to delete '{nodeName}' and all its submenus?",downCode:"Download code"},messages:{isUpdateContent:"Do you want to modify this content?",tip:"Tip",yes:"Yes",no:"No",updateSuccess:"Modification successful",operateTip:"Operation tip",hasRz:"{name} is already in a position at {work} and cannot be added again!",selectDept:"Please select a department/office.",inputPwd:"Please enter the password!",selectResetPwd:"Please select the personnel whose password needs to be reset!",inputNewPwd:"Please enter a new password",pwdTip:"Password must be at least 5 characters and no more than 20 characters",selectPersonDept:"Please select the personnel whose department needs to be adjusted!",isSameDw:"Only personnel from the same unit can be adjusted!",selectDrDept:"Select the department to transfer to",selectImportFile:"Please select the file to import",noNodeDelete1:"There are still child nodes under {name}, cannot delete.",noNodeDelete2:"There are still subordinate organizations under {name}, cannot delete.",confirmDeleteNode:"Are you sure you want to delete {name}?",treeMoveAlert1:"Cannot move directory tree nodes into organizations.",treeMoveAlert2:"Cannot move main organizations into other organizations.",treeMoveAlert3:"Department grouping nodes can only be moved at the same level.",treeMoveAlert4:"Only secondary departments can be moved under department grouping nodes.",treeMoveAlert5:"Cannot move subordinate organizations out of the main organization.",treeMoveAlert6:"Cannot move subordinate organizations across main organizations."},Common:{moduleMenu:"Module menu",role:"Role authorization",allAuthorizationMethods:"All authorization methods",allow:"Allow",prohibit:"Prohibit",accessPermissions:"Access permissions",accessPermissionsAllData:"All Files",accessPermissionsDeptData:"Dept Files",operationPage:"Operation page",pageURL:"Page URL",operationName:"Operation name",operationType:"Operation type",listToolbarButton:"List toolbar button",listColumnButton:"List operation column button",formPageButton:"Form page button",linkName:"Link name",singleColumnButton:"Single column button",dropdownButton:"Dropdown button",pullDownSubButton:"Pull down sub-button",controllerName:"Controller name",apiAddress:"API address",apiDescription:"API description",homepage:"Homepage address",designation:"Name",portalPage:"Portal page",xaxis:"X-axis coordinate",yaxis:"Y-axis coordinate",applyName:"Application name",accessAddress:"Access address",listName:"List name",listUrl:"List URL",rootSet:"Permission settings for {name}",columnMenuConfiguration:"Column menu configuration",leftMenuConfiguration:"Left navigation menu configuration",produceInfo:"Product configuration information",exportMenu:"Export module menu",selectTimePlace:"Select date and time",keyPlaceholder:"Please enter search keywords",selectSqlType:"Please select target database type:",treeIsNoMenu:"{name} is not a folder menu and cannot be moved in.",treeNoMove:"Cannot move module menu out of the product.",importFile:"Import file",importSuccess:"Import successful",importErrorPerson:"The following members failed to import:",selectImportFile:"Select import file",uploadFile:"Upload file content format description:",uploadFileText1:"1. The import file should be an Office Excel file;",uploadFileText2:"2. Import files do not support Excel files of Office 2007 and later versions; if you are using Office 2007 and later versions, please convert the Excel file to the format of a version prior to 2003. The specific conversion method is: In the opened Excel file, select 'Save As' -> 'Excel 97-2003 Workbook';",uploadFileText3:"3. When conducting the import operation, please ensure that the document you are importing is not in use.",uploadFileText4:"Uploaded file content example:",downFile:"Click to download Excel import example",clickDown:"Click to download",importConfiguration:"Import process configuration"},PageBtns:{enable:"Enable",disable:"Disable",sure:"Confirm",import:"Import",startImport:"Start import",cancel:"Cancel",moveto:"Transfer",resetPwd:"Reset password",addColumn:"Add new column",systemSetting:"System settings",addSubmenu:"Add new submenu",addApprMenu:"Add new approval menu group",modifyMenu:"Modify menu",deleteMenu:"Delete menu",copyMenu:"Copy menu",exportMenu:"Export menu",importMenu:"Import menu",oneClickDelete:"One-click delete",switchUnits:"Switch units",setUserRoles:"Set confidentiality level",setRoles:"Set roles",addRootNode:"Add new root node",addChildNode:"Add new child node",addMainOrg:"Add new main organization",updateMainOrg:"Modify main organization",delMainOrg:"Delete main organization",addChildOrg:"Add new subordinate organization",addDeptfz:"Add new department group",updateTreeNode:"Modify tree node",delTreeNode:"Delete tree node",updateOrg:"Modify organization",delOrg:"Delete organization",updateFz:"Modify group",delFz:"Delete group",privateSet:"Privacy settings"}}}},68532:function(e){e.exports={}},87422:function(e,t,i){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function a(e,t,i){return(t=s(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e){var t=l(e,"string");return"symbol"==n(t)?t:t+""}function l(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=i(26695),c=i(11819),u=i(68532),f=i(78389),p={en:o({},d),zhCN:o({},c),es:o({},u),ja:o({},f)};e.exports=o({},p)},78389:function(e){e.exports={}},11819:function(e){e.exports={ecwplat:{sysSetup:{fields:{superiorMenu:"上级菜单名称",currentMenu:"当前菜单名称",tarSystemCode:"目标系统代码",tarSystemCodeEnter:"请输入新菜单目标系统代码",newMenu:"新菜单名称",newMenuEnter:"请输入新菜单名称",replaceForm:"菜单代码替换From",replaceFormKey:"请输入菜单代码替换From关键词",replaceTo:"菜单代码替换To",replaceToKey:"请输入菜单代码替换To关键词",basicInfo:"基本信息",name:"姓名",namePlaceholder:"请输入姓名",selectUser:"选择注册用户",selectDwUser:"选择单位用户",loginId:"登录ID",loginIdPlaceholder:"请输入UID",account:"账号",accountPlaceholder:"请输入账号",webchat:"聊天号",employeeNo:"工号",employeeNoEmptyMessage:"请输入工号",mobilePhone:"手机号码",mobilePhonePlaceholder:"请输入手机号码",password:"密码",passwordPlaceholder:"请输入密码",conformPwd:"确认密码",conformPwdPlaceholder:"请输入确认密码",confirmPassword:"密码、确认密码必须相同",email:"邮箱地址",emailPlaceholder:"请输入邮箱地址",idCard:"公民身份号码",idCardPlaceholder:"请输入公民身份号码",sex:"性别",createType:"创建方式",sexEmpty:"请选择性别",userName:"用户昵称",userNamePlaceholder:"请输入用户昵称",chatPhone:"聊天号码",chatPhonePlaceholder:"请输入聊天号码",operate:"操作",statusPlaceholder:"请输入选择状态",createTime:"创建时间",secretLevel:"密级",secretLevelPlaceholder:"请选择密级",shortTel:"手机副号",bindIP:"绑定IP",bindIPplaceholder:"请输入绑定IP地址",provisioningSystem:"开通系统",provisioningSystemPlaceholder:"请选择开通系统方式",designatedSystem:"指定系统",personSatus:"请选择人员状态",audit:"待审核",jobInformation:"职务信息",workUnit:"工作单位",sort:"排序",jobType:"职务类型",jobTypePlaceholder:"请输入选择职务类型",jobTitle:"职务名称",jobTitlePlaceholder:"请输入职务名称",orgFullName:"机构名称",orgFullNamePlaceholder:"请输入机构名称",orgFullNamePlaceholder2:"请选择机构名称",orgCode:"机构代码",orgCodePlaceholder:"请输入机构代码",orgCodePlaceholder2:"请选择机构代码",orgShortName:"机构简称",orgShortNamePlaceholder:"请输入机构简称",orgLevel:"机构级别",orgLevelPlaceholder:"请选择机构级别",companyLevel:"公司级",orgType:"机构类型",manageOrgName:"主管机构",selectStatus:"请选择状态",personCountLimit:"单位用户数",orgDescript:"机构描述",orgDescriptPlaceholder:"请输入机构描述",positionPersonnel:"岗位人员",selectSsPlaceholder:"请选择所属人员",noOrgJobInfo:"暂无工作岗位配置信息。",regDep:"编制部门",regDepPlaceholder:"请选择是否编制部门",orderNo:"排序编号",orderNoPlaceholder:"请输入排序编号",otherInfo:"其他信息",rolePermission:"角色权限",userRole:"用户角色:",mainPerson:"主负责人",deputyDirector:"副负责人",commonPerson:"普通员工",openAll:"开通全部",notOpen:"不开通",common:"普通",inner:"内部",workSecrets:"工作秘密",secrets:"秘密",index:"序号",otherColsEmail:"电子邮箱",otherColsPartyStatus:"政治面貌",otherColsEducational:"学历",otherColsNation:"籍贯",nationEmptyMessage:"请输入籍贯",otherColsNativePlace:"家庭地址",otherColsWorkNature:"工作性质",otherColsWorkAddress:"工作地点",workAddressEmptyMessage:"请输入工作地点",otherColsWorkTel:"工作电话",otherColsJobRank:"职级",otherColsBirthday:"生日",orgPersonExport:"-机构人员导出",cardPhoto:"证件照片",cardPhotoEmptyMessage:"请选择证件照片",cAorderNo:"CA序列号",cAorderNoEmptyMessage:"请输入CA序列号",entryDate:"入职时间",entryDateEmptyMessage:"请选择入职时间",positiveDate:"转正时间",positiveDateEmptyMessage:"请选择转正时间",workDate:"参加工作时间",workDateEmptyMessage:"请选择参加工作时间",workAge:"工龄",workAgeEmptyMessage:"请输入工龄",partyStatus:"政治面貌",partyStatusEmptyMessage:"请输入政治面貌",interruptedTime:"工作中断时长",interruptedTimeEmptyMessage:"请输入工作中断时长",workNature:"工作性质",workNatureEmptyMessage:"请选择工作性质",jobRankEmptyMessage:"请选择职级",educational:"学历",educationalEmptyMessage:"请选择学历",graduatedSchool:"毕业学校",graduatedSchoolEmptyMessage:"请输入毕业学校",workTel:"工作电话",workTelEmptyMessage:"请输入工作电话",homeTel:"家庭电话",homeTelEmptyMessage:"请输入家庭电话",birthday:"出生日期",birthdayEmptyMessage:"请选择出生日期",marriage:"婚姻情况",marriageEmptyMessage:"请选择婚姻情况",homeAddress:"家庭住址",homeAddressEmptyMessage:"请输入家庭住址",emergencyContact:"紧急联系人",emergencyContactEmptyMessage:"请输入紧急联系人",linkmanTel:"紧急联系人电话",linkmanTelEmptyMessage:"请输入紧急联系人电话",privateSet:"隐私设置",privateSetPlaceholder:"请输入隐私设置",privateSetPlaceholder2:"请选择隐私设置",privateAllow:"指定范围",privateAllowPlaceholder:"请输入指定范围",visiblePerson:"可见人员",visiblePersonPlaceholder:"请选择可见人员",person:"人员",parentName:"上级机构",orgInfo:"组织机构信息",deptOrgInfo:"部门/科室机构信息",deptFzInfo:"部门分组信息",institutionalDirectory:"机构目录",institutionalDirectoryPlaceholder:"请选择机构目录",isManagementOrganization:"是否管理机构",isManagementOrganizationPlaceholder:"请选择是否管理机构",memberRoles:"成员角色",remarks:"备注",roleOrgStr:"成员角色分配给机构下全部人员,包括子机构人员。",fzName:"分组名称",fzNamePlaceholder:"请输入分组名称",fzDescript:"分组说明",fzDescriptPlaceholder:"请输入分组说明",fzStatusPlaceholder:"请选择分组状态",mlTreeInfo:"目录树节点信息",parentLevelNode:"上级节点",nodeNameEmpty:"请输入节点名称",orderNoEmpty:"请输入排序",sysRole:"系统角色",PendingConfidentiality:"待定密",exportModule:"导入模式",addTb:"增量同步",allTb:"全量同步",depart:"部门",ks:"科室",importRes:"导入结果",importResultStr:"UID、手机号码不唯一,未导入",importResultStr2:"帐号已存在,只导入员工",importResultStr3:"帐号、员工已存在,更新",importOrgInfo:"导入机构信息",importGroupCy:"导入群组成员",startImport:"开始导入",jobJzTitle:"{name}岗位人员矩阵",groupJzTitle:"{name}群组人员矩阵",organizationalDirectory:"组织机构目录",productName:"产品名称",productNamePlaceholder:"请选择角色所属平台产品",selectProPlat:"选择平台产品",productCode:"产品代码",roleName:"角色名称",roleNamePlaceholder:"请输入角色名称",roleNo:"角色编号",roleNoPlaceholder:"请输入角色编号",roleDescript:"角色描述",rolePlaceholder:"请输入角色描述",status:"状态",sysConfigInfo:"系统配置信息",orgFullname:"用户单位名称",orgFullnameEnter:"请输入用户单位名称",orgCodeEnter:"请输入用户单位代码",sysName:"系统名称",sysNameEnter:"请输入系统名称",sysCode:"系统代码",sysCodeEnter:"请输入系统代码",defToSys:"是否默认主系统",defToSysEnter:"请输入是否默认主系统",productCodeEnter:"请选择产品名称",logoImgName:"LOGO图片文件名",logoImgNameEnter:"请输入LOGO图片文件名",syslogoImgName:"系统LOGO图片",syslogoImgNameEnter:"请选择系统LOGO图片",busActTime:"业务开通时间",busActTimeEnter:"请输入业务开通时间",businessDeadline:"业务截止时间",businessDeadlineEnter:"请输入业务开通时间",systemState:"系统状态",selectSystemState:"请选择系统状态"},options:{statusOptions:{1:"有效",0:"无效",6:"待定密",7:"待审核",8:"冻结"},positionTypeOptions:{1:"主负责人",2:"副负责人",0:"普通员工"},isSysUserOptions:{1:"开通全部",0:"不开通",2:"指定系统"},isRegDeptOptions:{1:"是",0:"否"},secretLevelOptions:{0:"普通",1:"内部",2:"工作秘密",3:"秘密"},privateSetOptions:{0:"全部可见",1:"上级可见",4:"同级可见",2:"部门内可见",3:"指定范围"},orgTypeOptions:{1:"编制机构",0:"临时机构",2:"外部机构"},orgLevelOptions:{2:"部门级",3:"科室级",4:"班组级",5:"小组级",6:"六级",7:"七级",8:"八级",9:"九级",10:"十级"}},currentRegisteredUser:"当前注册用户:",validUser:"有效用户:",PendingClassifiedUser:"待定密用户:",pendingUserReview:"待审核用户:",invalidUser:"无效用户:",freezeUsers:"冻结用户:",personInfo:"人员信息",dialogTitle:"复制菜单",replaceMenu:"同一系统,新菜单名称不能与当前菜单相同",replaceMenuForm:"同一系统,必须输入菜单代码替换From关键词",replaceMenuTo:"同一系统,必须输入菜单代码替换To关键词",replaceSuccess:"复制成功,新菜单名称为:{newName}",activeText:"按主系统合并",inactiveText:"展开子系统",selectMechanism:"请选择模块菜单所属机构",moduleMenu:"模块菜单管理",selectAffInsti:"请选择模块菜单所属机构",settingInstruction:"设置说明",explainTip1:"1.产品业务开通后,可对各单位已开通产品的模块菜单做个性化设置;",explainTip2:"2.一个单位开通多个产品,一次性加载全部产品模块菜单;",explainTip3:"3.请先选择模块菜单所属单位。",chooseAgain:"您所选择的单位未开通任何业务,请重新选择!",cannotBe:"{targetNode}不是文件夹菜单,不能移入。",delSysSetupTip:"您是否确认删除“{sysName}”的全部系统数据?",delSysSetupAllTip:"您是否确认删除“{sysName}”以及关联子系统的全部数据?",statusPlaceholder:"请选择状态",updateTime:"更新时间",roleProduct:"产品角色",roleMatrix:"{treeNode}角色权限矩阵",unauthorized:"未授权",authorized:"已授权",unrestricted:"不限制",operationButton:"操作按钮",processButton:"流程按钮",serviceInterface:"服务接口",accessSystem:"接入系统",portalMiniProgram:"门户小程序",mobileApp:"移动应用",fileSearch:"文件查询",allFileSearch:"全部文件查询",deptFileSearch:"部门文件查询",platRolesTipOne:"1、“{dataType}”为平台全局角色,其它角色为产品级角色;",platRolesTipTwo:"2、为平台级角色分配权限后,用户重新登录即可生效;为产品级角色分配权限后,仅新开通的系统生效;",platRolesTipThree:"3、“功能权限管理--\x3e角色权限管理--\x3e权限设置”提供为已开通系统角色分配权限的功能。",selectPerson:"选择机构人员",plselectPerson:"请选择机构人员",selectWork:"选择工作群组",selectBusinessSystem:"选择业务系统",pSelectBusinessSystem:"请选择已开通业务系统",roleOwner:"角色拥有者",personalOwner:"个人拥有者",deptOwner:"部门拥有者",grolupOwner:"群组拥有者",commonNum:"等共{dataType}人",importRolePersonnel:"导入角色人员"},menuForm:{fields:{parentName:"上级名称",columnAbbre:"栏目简称",columnAbbreEnter:"请输入栏目简称",menuType:"菜单类型",selectmenuType:"请选择菜单类型",approvalMenu:"审批菜单组",moduleSubmenu:"审批模块子菜单",selectModuleSubmenu:"请选择审批模块子菜单",myCreatedURL:"我创建的列表URL",enterMyCreatedURL:"请输入我创建的列表URL",listURL:"{dataType}列表URL",enterListURL:"请输入{name}列表URL",approvalCode:"审批模块业务代码",enterApprovalCode:"请输入审批模块业务代码,例:fawen,shouwen,hytz",pageContentType:"页面内容类型",selectPageContentType:"请选择页面内容类型",openType:"打开方式",selectOpenType:"请选择打开方式",submenuStyle:"子菜单样式",selectSubmenuStyle:"请选择子菜单样式",navName:"页面导航名称",navNameEnter:"请输入页面导航名称",menuLink:"菜单链接",menuLinkEnter:"请输入菜单链接",urlFormat:"URL格式",urlFormatTip1:'1、动态列表视图vue组件url,以英文字符"/"结尾,不包括扩展名',urlFormatTip2:"2、格式为:#/dcontent/base.jobPosition.list/",urlFormatTip3:"1、静态列表视图vue组件文件路径,不包括文件扩展名",urlFormatTip4:"2、格式为:@/wapp/workflow/wfTaskItem/myTodo",businessCode:"业务代码",businessCodeEnter:"请输入业务代码,首字母小写",engineUrl:"引擎(模块)URL",engineUrlEnter:"请输入引擎(模块)URL",wfName:"流程名称",wfNameEnter:"请输入流程名称",wfCode:"流程编码",wfCodeEnter:"请输入流程编码",stageName:"起始环节名称",stageNameEnter:"请输入起始环节名称",stageCode:"起始环节编码",stageCodeEnter:"请输入起始环节编码",navShow:"导航栏显示",navOption1:"显示",navOption2:"不显示",authoType:"授权方式",selectAuthoType:"请选择授权方式",i18nCode:"I18N代码",i18nCodeEnter:"请输入I18N代码",accessAuthorization:"访问授权",orderNumber:"排序序号",orderNumberEnter:"请输入4位数字排序序号",status:"状态",selectstatus:"请选择状态",menuIcon:"选择菜单图标"},folder:"文件夹",menuItem:"菜单项",myCreated:"我创建的",fourStatus:"(全部、草稿、处理中、已结束)",myProcessed:"我处理的",twoStatus:"(待办、已办)",allFile:"全部",threeStatus:"(全部、处理中、已结束)",columnName:"栏目名称",menuName:"菜单名称",columnCode:"栏目编码",menuCode:"菜单编码",lnavWork:"左导航+工作区",work:"工作区",popUp:"弹出窗口",topWAin:"顶层窗口",leftMenu:"左侧菜单顶",rightLabel:"右侧页面标签",not:"无",dynamicListPage:"动态列表页面",staticListPage:"静态列表页面",superiorName:"动态门户",regularURL:"普通URL",dynamicList:"动态列表",staticList:"静态列表",statisticalReport:"统计报表",standardDraft:"起草文件(标准)",customizedDraft:"起草文件(定制)",Unrestricted:"不限制",designatedRole:"指定角色",desiPerson:"指定机构人员",specifyGroup:"指定群组"},meunItem:{menuTip:"{voName}不是文件夹菜单,不能创建子菜单。",notAllMenu:"{voName}下不允许创建子菜单。",delMenu:"确认删除“{nodeName}”吗?",isDelMenu:"确认删除“{nodeName}”及下级全部子菜单吗?",downCode:"下载代码"},messages:{isUpdateContent:"是否修改该内容吗?",tip:"提示",yes:"是",no:"否",updateSuccess:"修改成功",operateTip:"操作提示",hasRz:"{name}已经在{work}任职,不能重复添加!",selectDept:"请选择部门/科室机构。",inputPwd:"请输入密码!",selectResetPwd:"请选择需要重置密码的人员!",inputNewPwd:"请输入新密码",pwdTip:"密码最小5个字符,最多20个字符",selectPersonDept:"请选择需要调整部门的人员!",isSameDw:"只能调整同一单位下的人员!",selectDrDept:"选择调入部门",selectImportFile:"请选择导入文件",noNodeDelete1:"{name}下还有子节点,不能删除。",noNodeDelete2:"{name}下还有子机构,不能删除。",confirmDeleteNode:"确定要删除{name}吗?",treeMoveAlert1:"不能将目录树节点移到机构内。",treeMoveAlert2:"不能将主机构移到其它机构内。",treeMoveAlert3:"部门分组节点只能平级移动。",treeMoveAlert4:"部门分组节点下只能移入二级部门。",treeMoveAlert5:"不能将子机构移出到主机构外。",treeMoveAlert6:"不能将跨主机构移动子机构。"},Common:{moduleMenu:"模块菜单",role:"角色授权",allAuthorizationMethods:"全部授权方式",allow:"允许",prohibit:"禁止",accessPermissions:"访问权限",accessPermissionsAllData:"全部文件权限",accessPermissionsDeptData:"部门文件权限",operationPage:"操作页面",pageURL:"页面URL",operationName:"操作名称",operationType:"操作类型",listToolbarButton:"列表工具栏按钮",listColumnButton:"列表操作列按钮",formPageButton:"表单页面按钮",linkName:"环节名称",singleColumnButton:"单体栏按钮",dropdownButton:"下拉按钮",pullDownSubButton:"下拉子按钮",controllerName:"控制器名称",apiAddress:"API地址",apiDescription:"API描述",homepage:"主页地址",designation:"名称",portalPage:"门户页面",xaxis:"X轴坐标",yaxis:"Y轴坐标",applyName:"应用名称",accessAddress:"接入地址",listName:"列表名称",listUrl:"列表URL",rootSet:"权限设置-{name}",columnMenuConfiguration:"栏目菜单配置",leftMenuConfiguration:"左导航菜单配置",produceInfo:"产品配置信息",exportMenu:"导出模块菜单",selectTimePlace:"选择日期时间",keyPlaceholder:"请输入搜索关键字",selectSqlType:"请选择目标数据库类型:",treeIsNoMenu:"{name}不是文件夹菜单,不能移入。",treeNoMove:"不能将模块菜单移出产品外。",importFile:"导入文件",importSuccess:"导入成功",importErrorPerson:"以下成员导入失败:",selectImportFile:"选择导入文件",uploadFile:"上传文件内容格式说明:",uploadFileText1:"1.导入文件应为Office Excel文件;",uploadFileText2:"2.导入文件暂不支持Office2007及以后版本的Excel文件,使用的是Office2007及以后版本,请把Excel文件转换为2003前的版本格式,具体转换方式为:打开的Excel文件中,选择“为”->“Excel97-2003工作簿”;",uploadFileText3:"3.进行导入操作时,请确保您导入的文未处于使用状态。",uploadFileText4:"上传文件内容示例:",downFile:"点击下载Excel导入示例",clickDown:"点击下载",importConfiguration:"导入流程配置"},PageBtns:{enable:"启用",disable:"禁用",sure:"确定",import:"导入",startImport:"开始导入",cancel:"取消",moveto:"调动",resetPwd:"重置密码",addColumn:"新增栏目",systemSetting:"系统设置",addSubmenu:"新增子菜单",addApprMenu:"新增审批菜单组",modifyMenu:"修改菜单",deleteMenu:"删除菜单",copyMenu:"复制菜单",exportMenu:"导出菜单",importMenu:"导入菜单",oneClickDelete:"一键删除",switchUnits:"切换单位",setUserRoles:"审核密级",setRoles:"设置角色",addRootNode:"新增根节点",addChildNode:"新增子节点",addMainOrg:"新增主机构",updateMainOrg:"修改主机构",delMainOrg:"删除主机构",addChildOrg:"新增子机构",addDeptfz:"新增部门分组",updateTreeNode:"修改树节点",delTreeNode:"删除树节点",updateOrg:"修改机构",delOrg:"删除机构",updateFz:"修改分组",delFz:"删除分组",privateSet:"隐私设置"}}}},2962:function(e,t,i){"use strict";function n(){for(var e=[],t="0123456789abcdef",i=0;i<36;i++)e[i]=t.substr(Math.floor(16*Math.random()),1);e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="";var n=e.join("");return n}i.d(t,{o:function(){return r},u:function(){return n}});var r={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,i,n,o,a,s,l,d="",c=0;e=r._utf8_encode(e);while(c<e.length)t=e.charCodeAt(c++),i=e.charCodeAt(c++),n=e.charCodeAt(c++),o=t>>2,a=(3&t)<<4|i>>4,s=(15&i)<<2|n>>6,l=63&n,isNaN(i)?s=l=64:isNaN(n)&&(l=64),d=d+this._keyStr.charAt(o)+this._keyStr.charAt(a)+this._keyStr.charAt(s)+this._keyStr.charAt(l);return d},decode:function(e){var t,i,n,o,a,s,l,d="",c=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length)o=this._keyStr.indexOf(e.charAt(c++)),a=this._keyStr.indexOf(e.charAt(c++)),s=this._keyStr.indexOf(e.charAt(c++)),l=this._keyStr.indexOf(e.charAt(c++)),t=o<<2|a>>4,i=(15&a)<<4|s>>2,n=(3&s)<<6|l,d+=String.fromCharCode(t),64!==s&&(d+=String.fromCharCode(i)),64!==l&&(d+=String.fromCharCode(n));return d=r._utf8_decode(d),d},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t},_utf8_decode:function(e){var t,i="",n=0,r=0,o=0;while(n<e.length)r=e.charCodeAt(n),r<128?(i+=String.fromCharCode(r),n++):r>191&&r<224?(o=e.charCodeAt(n+1),i+=String.fromCharCode((31&r)<<6|63&o),n+=2):(o=e.charCodeAt(n+1),t=e.charCodeAt(n+2),i+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&t),n+=3);return i}}},62685:function(e,t,i){"use strict";i.r(t),i.d(t,{dragAddNode:function(){return k},dragLine:function(){return _},getPathXyData:function(){return w},isDomDrag:function(){return n},model:function(){return g},nodeEvents:function(){return y}});var n,r=i(74692),o=i.n(r),a=i(16473),s=i(2962),l=i(83375),d=i(15880),c=window.jsPlumb,u="/images/w-imgs/definition/center/c_ptjd.png",f="/images/w-imgs/definition/center/c_jzjd.png",p="/images/w-imgs/definition/center/c_drbx.png",h="/images/w-imgs/definition/center/c_drcx.png",m="/images/w-imgs/definition/center/c_hqjd.png",b="/images/w-imgs/definition/center/c_ywjd.png",v="/images/w-imgs/definition/center/c_zlc.png",g={};function y(e,t,i){o()("#"+e).bind("mousedown",(function(n){if(!(o()("#"+e).hasClass("model_process_yb")||o()("#"+e).hasClass("model_process_yth")||o()("#"+e).hasClass("model_process_jxz"))){var r=c.getAllConnections(),a=[],s=o()(this).attr("id");if(3===n.which&&(o()("#centextMenu").remove(),o()(".dropdown-menu").show(),o()(".dropdown-menu").css({left:n.pageX,top:n.pageY}),o()(".dropdown-menu").find("a").hide(),o()("#"+e).hasClass("parentWf")?o()("#viewParentWf").bind("click",(function(){S(t,s)})):o()("#"+e).hasClass("childWf")&&o()("#viewChildWf").bind("click",(function(){S(t,s)})),o()("#deleteNode").show(),o()("#deleteNode").bind("click",(function(){1!==document.querySelector(".model_process").length?i.$confirm("您是否确认删除选择的节点?",i.$t("common.confirm"),{type:"warning"}).then((function(){for(var n=0;n<r.length;n++)r[n].targetId==s&&a.push(r[n]),r[n].sourceId==s&&a.push(r[n]);for(var o=0;o<t.paths.length;o++)for(var l=0;l<a.length;l++)if(t.paths[o].id==a[l].id){if(t.wfdEvents)for(var d=0;d<t.wfdEvents.length;d++)t.wfdEvents[d].pathId===t.paths[o].id&&(1===t.wfdEvents[d].isPublic||0!==t.wfdEvents[d].isPublic||t.wfdEvents[d].isnew?t.wfdEvents.splice(d--,1):t.wfdEvents[d].passenger.delete=1);for(var u=0;u<t.nextNodes.length;u++)t.nextNodes[u].pathId==t.paths[o].id&&t.nextNodes.splice(u--,1);t.paths.splice(o,1);break}for(var f=0;f<t.nodes.length;f++)t.nodes[f].id==s&&(t.nodes[f].name&&"start"==t.nodes[f].name&&g.start--,t.nodes.splice(f--,1));for(var p=0;p<t.nextNodes.length;p++)t.nextNodes[p].nextNodeId==s&&t.nextNodes.splice(p--,1);if(t.wfdEvents)for(var h=0;h<t.wfdEvents.length;h++)t.wfdEvents[h].nodeId===s&&(1===t.wfdEvents[h].isPublic||0!==t.wfdEvents[h].isPublic||t.wfdEvents[h].isnew?t.wfdEvents.splice(h--,1):t.wfdEvents[h].passenger.delete=1);c.remove(e),i.removeUdmNode&&i.removeUdmNode(e)})):i.$alert("至少需要一个节点,不允许删除。","操作提示",{type:"warning"})})),-1!==this.innerHTML.indexOf("启动子流程")))for(var l=0;l<t.nodes.length;l++)if(t.nodes[l].id==s){if(t.nodes[l].childWflow){var d=JSON.parse(t.nodes[l].childWflow);d.wfCode&&(o()("#viewChildWf").show(),o()("#viewChildWf").bind("click",(function(){var e=location.href.replace("&id="+t.process.id,"&wfCode="+d.wfCode+"&orgCode="+d.orgCode);window.open(e,"_blank")})))}break}return!1}}))}function w(e,t){var i=e.connector.getPathData().split(","),n=i.length,r=t&&t.pathMinX?t.pathMinX:e.connector.bounds.minX,o=t&&t.pathMaxX?t.pathMaxX:e.connector.bounds.maxX,a=t&&t.pathMinY?t.pathMinY:e.connector.bounds.minY,s=t&&t.pathMaxY?t.pathMaxY:e.connector.bounds.maxY,l=[parseFloat(e.endpoints[0].anchor.x),parseFloat(e.endpoints[0].anchor.y),e.endpoints[0].anchor.orientation[0],e.endpoints[0].anchor.orientation[1]],d=[parseFloat(e.endpoints[1].anchor.x),parseFloat(e.endpoints[1].anchor.y),e.endpoints[1].anchor.orientation[0],e.endpoints[1].anchor.orientation[1]];if(3===n){if(1===l[3]&&-1===d[3]){var c=i[0].split(" ");s=parseInt(c[5])-parseInt(c[2])}else if(1===l[2]&&-1===d[2]){var u=i[0].split(" ");o=parseInt(u[4])-parseInt(u[1])}}else if(n>=4){if(1===l[2]){var f=i[0].split(" ");o=Math.abs(parseInt(f[1])-parseInt(f[4]))+5}if(1===d[2]){var p=i[i.length-1].split(" ");o=Math.abs(parseInt(p[1])-parseInt(p[4]))+5}if(1===l[3]){var h=i[0].split(" ");s=Math.abs(parseInt(h[2])-parseInt(h[5]))+5}if(1===d[3]){var m=i[i.length-1].split(" ");s=Math.abs(parseInt(m[2])-parseInt(m[5]))+5}}return{linesCount:n,pathMinX:r,pathMaxX:o,pathMinY:a,pathMaxY:s,firstEndpoints:l,secondEndpoints:d}}function _(e,t,i){var n=0;o()(document).bind("mousedown",(function(r){var a=t.connector.getPathData().split(","),s=a.length;if(s<2)o()(document).unbind("mousedown");else{e.dragLineObj.disX=r.pageX,e.dragLineObj.disY=r.pageY;var l=w(t,i),d=l.pathMaxX,c=l.pathMaxY,u=l.pathMinX,f=l.pathMinY,p=210,h=112,m=t.endpoints[0].anchor.orientation,b=t.endpoints[1].anchor.orientation;0!==m[0]&&Math.abs(h+t.endpoints[0].anchor.lastReturnValue[1]-r.pageY)<=10||0!==b[0]&&Math.abs(h+t.endpoints[1].anchor.lastReturnValue[1]-r.pageY)<=10||0!==m[1]&&Math.abs(p+t.endpoints[0].anchor.lastReturnValue[0]-r.pageX)<=10||0!==b[1]&&Math.abs(p+t.endpoints[1].anchor.lastReturnValue[0]-r.pageX)<=10?o()(document).unbind("mousedown"):(x(!0),o()(document).bind("mousemove",(function(r){if(!(t.endpoints.length<2)){var a=null;a=document.querySelector("#center-scrollbar")?document.querySelector("#center-scrollbar").querySelector(".el-scrollbar__wrap"):document.querySelector("#wfNodelogList").parentElement.parentElement;var l=a.scrollTop,v=parseInt(t.canvas.style.left),g=parseInt(t.canvas.style.top),y=t.canvas.clientWidth,w=t.canvas.clientHeight;r.pageX<220?r.pageX=220:r.pageX>parseInt(o()(".main").css("width"))-10&&(r.pageX=parseInt(o()(".main").css("width"))-10),r.pageY<122&&(r.pageY=122);var _=r.pageX,x=r.pageY,k=[0,0];s<=3?-1===m[0]?(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[-n,10]):1===m[0]?(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[n,10]):-1===m[1]?(n=-(Math.abs(f)-(x-e.dragLineObj.disY)),n>-10&&(n=-10),i.pathMinY=n,k=[-n,10]):1===m[1]&&(n=Math.abs(c)+(x-e.dragLineObj.disY),n<10&&(n=10),i.pathMaxY=n,k=[n,10]):4===s?-1===m[0]?Math.abs(h+g-e.dragLineObj.disY)<=10?(n=-(Math.abs(f)-(x-e.dragLineObj.disY-l)),n>-10&&(n=-10),i.pathMinY=n,k=[Math.abs(u),-n]):Math.abs(h+g+w-e.dragLineObj.disY-l)<=10?(n=Math.abs(c)+(x-e.dragLineObj.disY-l),n<10&&(n=10),i.pathMaxY=n,k=[Math.abs(u),n]):Math.abs(p+v-e.dragLineObj.disX)<=10&&(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[-n,Math.abs(-1===b[1]?f:c)]):1===m[0]?Math.abs(h+g-e.dragLineObj.disY)<=10?(n=-(Math.abs(f)-(x-e.dragLineObj.disY-l)),n>-10&&(n=-10),i.pathMinY=n,k=[Math.abs(d),-n]):Math.abs(h+g+w-e.dragLineObj.disY-l)<=10?(n=Math.abs(c)+(x-e.dragLineObj.disY-l),n<10&&(n=10),i.pathMaxY=n,k=[Math.abs(d),n]):Math.abs(p+v+y-e.dragLineObj.disX)<=10&&(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[n,Math.abs(-1===b[1]?f:c)]):1===m[1]?Math.abs(h+g+w-e.dragLineObj.disY-l)<=10?(n=Math.abs(c)+(x-e.dragLineObj.disY),n<10&&(n=10),i.pathMaxY=n,k=[n,Math.abs(-1===b[0]?u:d)]):Math.abs(p+v-e.dragLineObj.disX)<=10?(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[Math.abs(c),-n]):Math.abs(p+v+y-e.dragLineObj.disX)<=10&&(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[Math.abs(c),n]):-1===m[1]&&(Math.abs(h+g-e.dragLineObj.disY)<=10?(n=-(Math.abs(f)-(x-e.dragLineObj.disY)),n>-10&&(n=-10),i.pathMinY=n,k=[-n,Math.abs(-1===b[0]?u:d)]):Math.abs(p+v-e.dragLineObj.disX)<=10?(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[Math.abs(f),-n]):Math.abs(p+v+y-e.dragLineObj.disX)<=10&&(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[Math.abs(f),n])):5===s&&(0!==m[0]?Math.abs(p+v-e.dragLineObj.disX)<=10?-1===m[0]?(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[-n,Math.abs(d)]):1===m[0]&&(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[Math.abs(d),-n]):-1===m[0]?(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[Math.abs(u),n]):1===m[0]&&(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[n,Math.abs(u)]):Math.abs(h+g-e.dragLineObj.disY-l)<=10?-1===m[1]?(n=-(Math.abs(f)-(x-e.dragLineObj.disY)),n>-10&&(n=-10),i.pathMinY=n,k=[-n,Math.abs(c)]):1===m[1]&&(n=-(Math.abs(c)-(x-e.dragLineObj.disY)),n>-10&&(n=-10),i.pathMinY=n,k=[Math.abs(c),-n]):-1===m[1]?(n=Math.abs(c)+(x-e.dragLineObj.disY),n<10&&(n=10),i.pathMaxY=n,k=[Math.abs(f),n]):1===m[1]&&(n=Math.abs(c)+(x-e.dragLineObj.disY),n<10&&(n=10),i.pathMaxY=n,k=[n,Math.abs(c)])),t.setConnector(["Flowchart",{stub:k,gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}]),t.addOverlay(["Arrow",{width:10,length:10,location:1}])}})),o()(document).bind("mouseup",(function(e){x(!1),o()(document).unbind("mousedown"),o()(document).unbind("mousemove"),o()(document).unbind("mouseup")})))}}))}function x(e){e?o()("#center").addClass("move"):o()("#center").removeClass("move")}function k(e,t,i,n){var r=o()(t.draggable).attr("associated"),s=o()(t.draggable).attr("resize"),l=o()(t.draggable).attr("domJoin"),c=o()(t.draggable).attr("type"),u=document.querySelector(".center-container"),f=g.CreateModel(t,o()(u),s,l,r,c,i.wflow,i);i.getProcessNum(r),i.curNode=JSON.parse(JSON.stringify(n)),a.oW.forEach((function(e){e.associated===r&&(i.curNode.name=e.name||"",i.curNode.nodeNo=e.nodeNo,i.curNode.nodeType=e.nodeType,void 0!==e.dccodeType&&(i.curNode.dccodeType=e.dccodeType),void 0!==e.processType&&(i.curNode.processType=e.processType))})),i.curNode.id=f,i.curNode.processId=i.process.id,i.curNode.nodeNo||(i.curNode.nodeNo=10*i.processNum),i.wflow.nodes.push(i.curNode),i.emitData(),o()(".process").bind("click",(function(e){if(o()(".process").removeClass("seled"),o()(e.currentTarget).addClass("seled"),i.$vnode.context.$refs["siderefs"]){i.getHistroyNodes();for(var t=o()(e.currentTarget).attr("id"),n=0;n<i.wflow.nodes.length;n++)if(t===i.wflow.nodes[n].id){i.curNode=i.wflow.nodes[n],o()(e.currentTarget).attr("id",i.wflow.nodes[n].id);break}i.getNodeSpecialData(t),i.clickNodeFieldValues(),i.clickNodeOperation(),i.getWaitNode(),i.emitData()}})),i.AddAnchor();var p=document.querySelector(".scissors-line");return p&&p.conn&&((0,d.scissorsLineAndRelocation)(i,p.conn,f),o()(".insert-node-btn").css({display:"none"})),f}function S(e,t){for(var i=0;i<e.nodes.length;i++)if(e.nodes[i].id==t){var n=e.nodes[i];n.childWflow}}g.countId=0,g.modelId="PROCESS_DOM_",g.createDom="",g.start=0,g.CreateModel=function(e,t,i,r,a,u,f,p){if(g.start>=1&&"start"==a)return p.$alert("已经有开始节点存在了","操作提示",{type:"warning"}),!1;"start"==a&&g.start++,g.countId++;var h=(0,s.u)(),m=parseInt(e.offset.left+24-o()(t).offset().left),b=parseInt(e.offset.top-o()(t).offset().top);return"start"==a||"jslc"==a||"jsrw"==a||"parentWf"==a||"zyjd"==a||"dfzjd"==a||"jhjd"==a?g.createDom=g.customModel(h,a,u):"jcjd"==a?(g.createDom=g.customModel(h,a,u),m+=-40):(g.createDom=g.ordinaryModel(h,a,u),m+=-40),o()("#center").append(g.createDom),m=10*Math.round(m/10),b=10*Math.round(b/10),o()("#"+h).css("left",m).css("top",b),1==r||(c.addEndpoint(h,{anchors:[1,.5,1,0],uuid:jsPlumbUtil.uuid()},l.Yy),c.addEndpoint(h,{anchors:[0,.5,-1,0],uuid:jsPlumbUtil.uuid()},l.Yy),c.addEndpoint(h,{anchors:[.5,0,0,-1],uuid:jsPlumbUtil.uuid()},l.Yy)),c.addEndpoint(h,{anchors:[.5,1,0,1],uuid:jsPlumbUtil.uuid()},l.Yy),o()("#"+h).draggable({grid:[10,10],start:function(){(0,d.startMove)(),c.repaintEverything()},drag:function(e,t){(0,d.MoveSelectDiv)(e,t,h),c.repaintEverything()},stop:function(e,t){(0,d.resetLocation)(t,e.target.id),c.repaintEverything()}}),y(h,f,p),n=!0,h},g.ordinaryModel=function(e,t,i){for(var r="",o="",s=0;s<a.oW.length;s++)a.oW[s].associated==t&&(o=a.oW[s].title,a.oW[s].text);switch(t){case"ptjd":r=u;break;case"jzjd":r=f;break;case"drbx":r=p;break;case"drcx":r=h;break;case"hqjd":r=m;break;case"ywjd":r=b;break;case"childWf":r=v;break}var l='<div id="'+e+'" type="'+i+'" class="process model_process '+t+'"><div class="title"><img src="'+r+'" width="22" alt=""><span>'+o+"</span></div><p></p></div>";return n=!0,l},g.customModel=function(e,t,i){var n='<div id="'+e+'" type="'+i+'" class="process '+t+'"></div>';return n}},83375:function(e,t,i){"use strict";i.d(t,{Nc:function(){return o},Yy:function(){return r},on:function(){return a}});var n=window.jsPlumb;n.importDefaults({PaintStyle:{lineWidth:8,stroke:"#00ff54"}});var r={DragOptions:{cursor:"pointer",zIndex:2e3},endpoint:["Dot",{radius:7}],paintStyle:{fillStyle:"#438eb9",radius:5,lineWidth:"transparent"},isSource:!0,connector:["Flowchart",{stub:[50,50],gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}],isTarget:!0,maxConnections:-1,connectorOverlays:[["Arrow",{width:10,length:10,location:1}],["Label",{label:"",cssClass:"line_text",events:{mousedown:function(e,t){n.draggable($(".line_text"))},mouseout:function(){return!1}}}]]};function o(e,t,i){var r=n.connect({source:e.sourceId||e.PageSourceId,target:e.targetId||e.PageTargetId,anchors:i,editable:!0,parameters:{pathId:e.id||e.ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:t,overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}]});return r?(r.setLabel({label:e.label||" ",cssClass:"line_text",location:e.labelLocation||.5}),r.labelLocation=e.labelLocation):console.log("createConnect failure",r),r}function a(e){for(var t=0;t<e.length;t++){var i=[e[t].firstEndpoints,e[t].secondEndpoints],n=0,r=void 0,a=[0,0];"Straight"===e[t].type?r=["Straight",{stub:[0,0]}]:"Flowchart"===e[t].type?(1===e[t].linesCount||0!==i[0][3]&&i[1][3]!==i[0][3]&&void 0!==e[t].pathMinX&&Math.abs(e[t].pathMaxX)<10&&Math.abs(e[t].pathMinX)<10||0!==i[0][2]&&i[1][2]!==i[0][2]&&void 0!==e[t].pathMinY&&Math.abs(e[t].pathMaxY)<10&&Math.abs(e[t].pathMinY)<10?a=[0,0]:3===e[t].linesCount?(-1===i[0][2]?a=[Math.abs(e[t].pathMinX),10]:1===i[0][2]?a=[Math.abs(e[t].pathMaxX),10]:-1===i[0][3]?a=[Math.abs(e[t].pathMinY),10]:1===i[0][3]&&(a=[Math.abs(e[t].pathMaxY),10]),isNaN(a[0])&&(a[0]=50)):e[t].linesCount>=4?(a=[10,10],-1===i[0][2]?a[0]=Math.abs(e[t].pathMinX):1===i[0][2]?a[0]=Math.abs(e[t].pathMaxX):-1===i[0][3]?a[0]=Math.abs(e[t].pathMinY):1===i[0][3]&&(a[0]=Math.abs(e[t].pathMaxY)),-1===i[1][2]?a[1]=Math.abs(e[t].pathMinX):1===i[1][2]?a[1]=Math.abs(e[t].pathMaxX):-1===i[1][3]?a[1]=Math.abs(e[t].pathMinY):1===i[1][3]&&(a[1]=Math.abs(e[t].pathMaxY)),10===a[0]&&10===a[1]&&(r=["Flowchart",{stub:[50,50]}])):Math.abs(e[t].pathMaxX)>10||Math.abs(e[t].pathMinX)>10?0!==i[0][2]&&0!==i[1][2]?(Math.abs(e[t].pathMaxX)>Math.abs(e[t].pathMinX)?e[t].pathMaxX>0&&(e[t].pathMaxX=e[t].pathMinX):e[t].pathMinX&&(e[t].pathMaxX=e[t].pathMinX),n=Math.abs(e[t].pathMaxX),(isNaN(n)||n<10)&&(n=50,e[t].pathMaxX=50),a=[n,10]):(Math.abs(e[t].pathMaxX)>Math.abs(e[t].pathMinX)?e[t].pathMax>0&&(e[t].pathMaxY=e[t].pathMinX):e[t].pathMaxY=e[t].pathMinX,n=Math.abs(e[t].pathMaxY),(isNaN(n)||n<10)&&(n=50,e[t].pathMaxY=50),a=[n,10]):e[t].pathMaxY=0,isNaN(a[0])&&(a[0]=50),isNaN(a[1])&&(a[1]=50),r=[e[t].type,{stub:a,gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}]):"Bezier"===e[t].type&&(r=["Bezier",{stub:[0,0]}]);var s=$("#"+e[t].PageSourceId);(s.hasClass("dfzjd")||s.hasClass("zyjd"))&&(e[t].label="");try{o(e[t],r,i)}catch(l){o(e[t],r,i)}}}},83275:function(e,t,i){"use strict";i.r(t),i.d(t,{ecinc_attr_panel:function(){return d},ecinc_process:function(){return l}});var n=i(16473),r=i(2962),o=i(74692),a={ConnectionId:"",PageSourceId:"",PageTargetId:"",uuid:[null,null],label:"",firstEndpoints:[.5,1,0,1],secondEndpoints:[.5,0,0,-1],type:"Flowchart",pathMinX:0,pathMaxX:0,pathMinY:2.5,pathMaxY:88,linesCount:1},s={start:{domH:'<div id="" type="1" class="process start jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style="left: 470px; top: 120px;" ></div>'},ptjd:{domH:'<div id="" type="2" class="process model_process ptjd jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_ptjd.png" width="22" alt=""><span>普通节点</span></div><p>普通节点</p></div>'},jzjd:{domH:'<div id="" type="3" class="process model_process jzjd jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_jzjd.png" width="22" alt=""><span>竞争节点</span></div><p>多人竞争</p></div>'},drbx:{domH:'<div id="" type="4" class="process model_process drbx jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_drbx.png" width="22" alt=""><span>多人并行</span></div><p>多人并行</p></div>'},drcx:{domH:'<div id="" type="4" class="process model_process drcx jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_drcx.png" width="22" alt=""><span>多人串行</span></div><p>多人串行</p></div>'},hqjd:{domH:'<div id="" type="6" class="process model_process hqjd jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_hqjd.png" width="22" alt=""><span>会签节点</span></div><p>多人会签</p></div>'},ywjd:{domH:'<div id="" type="7" class="process model_process ywjd jtk-endpoint-anchor jtk-managed jtk-connected ui-draggable ui-draggable-handle" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_ywjd.png" width="22" alt=""><span>多人阅文</span></div><p>多人阅文</p></div>'},dfzjd:{domH:'<div id="" type="12" class="process dfzjd jtk-managed ui-draggable ui-draggable-handle jtk-connected jtk-endpoint-anchor seled" style=""></div>'},jslc:{domH:'<div id="" type="9" class="process jslc jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected " style="" bleft="570" btop="780"></div>'}},l={connection:null,init:function(){o(".right-form").draggable({containment:"#center"}),l.configLeft()},configLeft:function(){var e=o("#left .domList").find("li");e.each((function(t,i){e.eq(t).attr("associated",n.oW[t].associated),e.eq(t).attr("resize",n.oW[t].resize),e.eq(t).attr("domJoin",n.oW[t].domJoin),e.eq(t).attr("type",n.oW[t].type)}))}},d={init:function(){d.setDrag(),d.event()},setDrag:function(){o(".right-form").draggable()},event:function(){o("body").on("click",".process",(function(){o(".right-form").show();var e=o(this).attr("type");switch(e){case"2":case"3":case"4":case"5":case"6":case"7":o(".node").hide(),o(".panel_node").show(),setTimeout((function(){o("#HandlerBtn").attr("showType",1),o("#HandlerBtn").trigger("click")}),0);break;case"14":o(".node").hide(),o(".panel_node").show(),setTimeout((function(){o("#HandlerBtn").attr("showType",2),o("#HandlerBtn").trigger("click")}),0);break;case"10":o(".node").hide(),o(".panel_decision").show();break;case"13":o(".node").hide(),o(".panel_aggregation").show();break;default:o(".node").hide(),o(".panel_process").show()}return!1}))}};l.initProcess=function(e){if("plat"!==e.loginUser.orgCode||"1"===e.$route.query.dwadmin?(e.dwadmin=1,e.$set(e.process,"orgName",e.loginUser.orgName),e.$set(e.process,"orgCode",e.loginUser.orgCode),void 0!==e.$route.query.sysCode&&(e.$set(e.process,"sysName",e.$route.query.sysName),e.$set(e.process,"sysCode",e.$route.query.sysCode))):"1"===e.$route.query.product?e.product=1:"1"===e.$route.query.platadmin&&(e.$set(e.process,"sysName",e.loginUser.sysName),e.$set(e.process,"sysCode",e.loginUser.sysCode),e.$set(e.process,"orgName",e.loginUser.orgName),e.$set(e.process,"orgCode",e.loginUser.orgCode)),void 0!==e.$route.query.udmid){var t=e.$route.query;if(e.$set(e.process,"name",t.udmname),e.$set(e.process,"processNo","udmjysp_"+t.udmcode),e.$set(e.process,"version","V1.0"),e.$set(e.process,"workFormW","/dcontent/"+t.workform+"/"),void 0!==e.$route.query.sysCode&&(e.$set(e.process,"sysName",e.$route.query.sysName),e.$set(e.process,"sysCode",e.$route.query.sysCode)),t.ideaLabels&&""!==t.ideaLabels){e.ideaLabels=e.ideaLabels||[];var i=t.ideaLabels.replace(/,/g,"\r\n").split("\r\n");i.forEach((function(t,i){var n=e.ideaLabels.filter((function(e){return e.name===t}));if(0===n.length){var o={status:-1,id:(0,r.u)(),name:t,orderNo:"no"+(i<10?"0"+i:i),processId:e.process.id};e.ideaLabels.push(o)}})),e.$bus.emit("emitIdeaLables",e.ideaLabels),e.saveIdeaLable(e.ideaLabels)}e.$bus.emit("emitProcess",e.process)}},l.setNewChartdata=function(e){var t=[];e.process.chartData={domHtml:[]},a.processId=e.process.id,n.Lq.processId=e.process.id;var i=(0,r.u)(),l=JSON.parse(JSON.stringify(s.start)).domH.replace('id=""','id="'+i+'"');e.process.chartData.domHtml.push({domH:r.o.encode(l)});var d=JSON.parse(JSON.stringify(n.EP));d.name="start",d.id=i,d.processId=e.process.id,d.nodeNo="start",e.wflow.nodes.push(d);var c=(0,r.u)(),u=JSON.parse(JSON.stringify(s.ptjd)).domH.replace('id=""','id="'+c+'"');u=u.replace("<p>普通节点</p>","<p>发起申请</p>");var f=300;u=u.replace('style=""','style="left: 430px; top: '+f+'px;"'),e.process.chartData.domHtml.push({domH:r.o.encode(u)});var p=JSON.parse(JSON.stringify(n.EP));p.name="发起申请",p.id=c,p.processId=e.process.id,p.nodeNo="10",e.wflow.nodes.push(p);var h=(0,r.u)(),m=JSON.parse(JSON.stringify(s.jslc)).domH.replace('id=""','id="'+h+'"'),b=500;m=m.replace('style=""','style="left: 470px; top: '+b+'px;"'),e.process.chartData.domHtml.push({domH:r.o.encode(m)});var v=JSON.parse(JSON.stringify(n.EP));v.name="jslc",v.id=h,v.processId=e.process.id,v.nodeNo="jslc",e.wflow.nodes.push(v);var g=JSON.parse(JSON.stringify(a));g.ConnectionId=(0,r.u)(),g.label="",g.PageSourceId=i,g.PageTargetId=c,t.push(g);var y=JSON.parse(JSON.stringify(a));y.ConnectionId=(0,r.u)(),y.label="结束处理",y.PageSourceId=c,y.PageTargetId=h,t.push(y);var w=JSON.parse(JSON.stringify(n.Lq));w.id=y.ConnectionId,w.name=y.label,w.pathType=4,e.pathObj.push(w),e.process.chartData=JSON.stringify({domHtml:e.process.chartData.domHtml,connects:t}),e.$vnode.context.$refs["siderefs"].selectedItemType="ptjd";var _=e.$vnode.context.$refs["siderefs"].$el.querySelector(".selected");o(_).hasClass("ptjd")||(o(_).removeClass("selected"),o(e.$vnode.context.$refs["siderefs"].$el.querySelector(".ptjd").querySelector(".jd-item")).addClass("selected"))},l.setUdmChartdata=function(e,t){t=JSON.parse(t);var i=t.udmNodes;if(i&&0!==i.length){for(var o=function(t){i[t].name?(i[t].id=(0,r.u)(),i[t].nextPaths&&"dfzjd"!==i[t].name&&i[t].nextPaths.forEach((function(n,o){n.pathNextTns&&n.pathNextTns.split("、").length>1&&(i.splice(++t,0,{id:(0,r.u)(),name:"dfzjd",processId:e.process.id,nextPaths:[{pathName:"多分支",pathNextTns:n.pathNextTns}]}),n.pathNextTns="dfzjd")}))):i.splice(t--,1),l=t},l=0;l<i.length;l++)o(l);var d=[];e.process.chartData={domHtml:[]},a.processId=e.process.id,n.Lq.processId=e.process.id;var c=(0,r.u)(),u=JSON.parse(JSON.stringify(s.start)).domH.replace('id=""','id="'+c+'"');e.process.chartData.domHtml.push({domH:r.o.encode(u)});var f=JSON.parse(JSON.stringify(n.EP));f.name="start",f.id=c,f.processId=e.process.id,f.nodeNo="start",e.wflow.nodes.push(f);var p=(0,r.u)(),h=0;i.forEach((function(t,o){if(0===o){var l=JSON.parse(JSON.stringify(a));l.ConnectionId=(0,r.u)(),l.PageSourceId=c,l.PageTargetId=t.id,d.push(l)}else if(1===o||-1!==t.name.indexOf("审核")){var u=JSON.parse(JSON.stringify(a));u.ConnectionId=(0,r.u)(),u.label="退回",u.PageSourceId=t.id,u.PageTargetId=i[0].id,u.firstEndpoints=[0,.5,-1,0],u.secondEndpoints=[0,.5,-1,0],u.linesCount=3,u.pathMinX=-53-50*o,d.push(u);var f=JSON.parse(JSON.stringify(n.Lq));f.id=u.ConnectionId,f.name=u.label,f.pathType=3,f.pathNo=90,e.pathObj.push(f)}if(o+1===i.length){var m=JSON.parse(JSON.stringify(a));m.ConnectionId=(0,r.u)(),m.label="结束处理",m.PageSourceId=t.id,m.PageTargetId=p,d.push(m);var b=JSON.parse(JSON.stringify(n.Lq));b.id=m.ConnectionId,b.name=m.label,b.pathType=4,e.pathObj.push(b)}var v=!1;if(t.nextPaths&&t.nextPaths.forEach((function(s,l){if(s.pathName)if(v=!0,s.pathNextTns)s.pathNextTns=s.pathNextTns.replace("、",","),i.forEach((function(i,c){if(-1!==(s.pathNextTns+",").indexOf(i.name+",")){"多分支"===s.pathName&&(s.pathName="");var u=JSON.parse(JSON.stringify(a));u.ConnectionId=(0,r.u)(),u.label=s.pathName,u.PageSourceId=t.id,u.PageTargetId=i.id,c-o>1&&"dfzjd"!==t.name&&(u.firstEndpoints=[1,.5,1,0],u.secondEndpoints=[1,.5,1,0],u.linesCount=3,u.pathMaxX=103+50*o),d.push(u);var f=JSON.parse(JSON.stringify(n.Lq));f.id=u.ConnectionId,f.name=u.label,f.pathNo=10*(l+1),e.pathObj.push(f)}}));else{var c=JSON.parse(JSON.stringify(a));c.ConnectionId=(0,r.u)(),c.label=s.pathName,c.PageSourceId=t.id,c.PageTargetId=p,d.push(c);var u=JSON.parse(JSON.stringify(n.Lq));u.id=c.ConnectionId,u.name=c.label,u.pathType=4,e.pathObj.push(u)}})),!v&&o+1<i.length){var g=JSON.parse(JSON.stringify(a));g.ConnectionId=(0,r.u)(),g.label="送"+i[o+1].name,g.PageSourceId=t.id,g.PageTargetId=i[o+1].id,d.push(g);var y=JSON.parse(JSON.stringify(n.Lq));y.id=g.ConnectionId,y.name=g.label,e.pathObj.push(y)}var w=100+180*(o+1-h),_=430,x="";o>1&&"dfzjd"===i[o-1].name&&i[o-1].nextPaths.length>0?(h+=1,x=i[o-1].nextPaths[0].pathNextTns):o>2&&"dfzjd"===i[o-2].name?x=i[o-2].nextPaths[0].pathNextTns:o>3&&"dfzjd"===i[o-3].name?x=i[o-3].nextPaths[0].pathNextTns:o>4&&"dfzjd"===i[o-4].name&&(x=i[o-4].nextPaths[0].pathNextTns),x&&(x=x.replace("、",",").split(","),2===x.length?0===x.indexOf(t.name)?_-=140:_+=140:3===x.length?0===x.indexOf(t.name)?_-=200:2===x.indexOf(t.name)&&(_+=200):4===x.length&&(0===x.indexOf(t.name)?_-=280:0===x.indexOf(t.name)?_-=120:0===x.indexOf(t.name)?_+=120:_+=280));var k="";"dfzjd"===t.name?(_=470,k=s.dfzjd.domH):-1!==t.name.indexOf("阅")?k=JSON.parse(JSON.stringify(s.ywjd)).domH.replace("<p>多人阅文</p>","<p>"+t.name+"</p>"):0!==t.todoMode&&t.todoMode?1===t.todoMode?k=JSON.parse(JSON.stringify(s.drbx)).domH.replace("<p>多人并行</p>","<p>"+t.name+"</p>"):2===t.todoMode?k=JSON.parse(JSON.stringify(s.hqjd)).domH.replace("<p>多人会签</p>","<p>"+t.name+"</p>"):3===t.todoMode?k=JSON.parse(JSON.stringify(s.drcx)).domH.replace("<p>多人串行</p>","<p>"+t.name+"</p>"):4===t.todoMode&&(k=JSON.parse(JSON.stringify(s.jzjd)).domH.replace("<p>多人竞争</p>","<p>"+t.name+"</p>")):k=JSON.parse(JSON.stringify(s.ptjd)).domH.replace("<p>普通节点</p>","<p>"+t.name+"</p>"),k=k.replace('style=""','style="left: '+_+"px; top: "+w+'px;"').replace('id=""','id="'+t.id+'"'),e.process.chartData.domHtml.push({domH:r.o.encode(k)});var S=JSON.parse(JSON.stringify(n.EP));S.id=t.id,S.name=t.name,S.selectType=parseInt(t.selectType),S.orgLevel=t.orgLevel,S.orgStaffType=t.orgStaffType,S.orgStaffFilterType=t.orgStaffFilterType,S.nodeNo=5*(o+2),S.todoType=0,-1!==S.name.indexOf("阅")?S.nodeType=3:(S.nodeType=1,e.ideaLabels.forEach((function(e){t.ideaLabel===e.name&&(S.ideaLabelId=e.id)}))),0===o||-1!==S.name.indexOf("审核")?S.isDocEditable=1:S.isDocEditable=0,S.description="",S.processId=e.process.id,0===S.selectType&&1===S.orgStaffFilterType?e.nodeFieldValueFn("nodeFieldValue",S.id,t.userIds,t.userNames):1===S.selectType?e.nodeFieldValueFn("workgroup",S.id,t.userIds,t.userNames):2===S.selectType?i.forEach((function(e,i){e.name===t.userNames&&(S.historyNodeId=e.id)})):3===S.selectType?e.nodeFieldValueFn("orgStaff",S.id,t.userIds,t.userNames):7===S.selectType?e.nodeFieldValueFn("jobPosition",S.id,t.userIds,t.userNames):8===S.selectType&&e.nodeFieldValueFn("userrole",S.id,t.userIds,t.userNames),e.wflow.nodes.push(S)}));var m=JSON.parse(JSON.stringify(s.jslc)).domH.replace('id=""','id="'+p+'"'),b=100+180*(i.length+1-h);m=m.replace('style=""','style="left: 470px; top: '+b+'px;"'),e.process.chartData.domHtml.push({domH:r.o.encode(m)});var v=JSON.parse(JSON.stringify(n.EP));v.name="jslc",v.id=p,v.processId=e.process.id,v.nodeNo="jslc",e.wflow.nodes.push(v),e.process.chartData=JSON.stringify({domHtml:e.process.chartData.domHtml,connects:d})}},l.ComparePath=function(){var e=document.querySelector(".center-container").scrollWidth,t=document.querySelector(".center-container").clientWidth;e>t&&o("#center").width(e+50);var i=document.querySelector(".center-container").scrollHeight,n=document.querySelector(".center-container").clientHeight;i>n?o("#center").height(i+50):o("#center").height(n);var r=0,a=0;document.querySelector(".center-container").childNodes.forEach((function(e){e.offsetLeft<r&&(r=e.offsetLeft),e.offsetTop<a&&(a=e.offsetTop)})),(r<0||a<112)&&(document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&(r<0?o("#"+e.id).css("left",parseInt(o("#"+e.id).css("left"))+-1*r+50+"px"):a<0&&o("#"+e.id).css("top",parseInt(o("#"+e.id).css("top"))+-1*a+50+"px"))})),jsPlumb.repaintEverything())},l.AddAnchor=function(e,t){o(".process").bind("dblclick",(function(i){var n=i.currentTarget.classList;o.inArray("jcjd",n);var r,a,s,l,d=i.pageX,c=i.pageY,u=o("#"+i.currentTarget.id).offset().top,f=o("#"+i.currentTarget.id).offset().left,p=o("#"+i.currentTarget.id).width(),h=o("#"+i.currentTarget.id).height(),m=!1;c-u<=5||d-f<=5?d-f<=5?d-f<=c-u?(r=0,a=parseFloat((c-u)/h),s=-1,l=0,m=!0):(a=0,r=parseFloat((d-f)/p),s=0,l=-1,m=!0):p-(d-f)<=c-u?(r=1,a=parseFloat((c-u)/h),s=1,l=0,m=!0):(a=0,r=parseFloat((d-f)/p),s=0,l=-1,m=!0):(u+h-c<=5||f+p-d<=5)&&(d-f<=p/2?h-(c-u)<=d-f?(r=parseFloat((d-f)/p),a=1,s=0,l=1,m=!0):(r=0,a=parseFloat((c-u)/h),s=-1,l=0,m=!0):h-(c-u)<=p-(d-f)?(r=parseFloat((d-f)/p),a=1,s=0,l=1,m=!0):(r=1,a=parseFloat((c-u)/h),s=1,l=0,m=!0)),m?jsPlumb.addEndpoint(i.currentTarget.id,{anchor:[r,a,s,l],uuid:jsPlumbUtil.uuid()},t):e.curNodeDbclick&&e.curNodeDbclick(i.currentTarget.id)})),l.bindName=function(e,t){o("#"+e).hasClass("jcjd")?o("#"+e).html(t):o("#"+e).find("p").html(t)},l.changeNodeType=function(e,t,i,n){switch(o("#"+t).removeClass("ptjd"),o("#"+t).removeClass("ywjd"),o("#"+t).removeClass("drbx"),o("#"+t).removeClass("hqjd"),o("#"+t).removeClass("drcx"),o("#"+t).removeClass("jzjd"),i){case 0:"start"!==n.nodeNo&&(1===n.nodeType?(o("#"+t).addClass("process model_process ptjd"),o("#"+t).find("img").attr("src",e.ptjd),o("#"+t).find("span").html("普通节点")):(o("#"+t).addClass("process model_process ywjd"),o("#"+t).find("img").attr("src",e.ywjd),o("#"+t).find("span").html("阅文节点")));break;case 1:o("#"+t).addClass("process model_process drbx"),o("#"+t).find("img").attr("src",e.drbx),o("#"+t).find("span").html("多人并行");break;case 2:o("#"+t).addClass("process model_process hqjd"),o("#"+t).find("img").attr("src",e.hqjd),o("#"+t).find("span").html("会签节点");break;case 3:o("#"+t).addClass("process model_process drcx"),o("#"+t).find("img").attr("src",e.drcx),o("#"+t).find("span").html("多人串行");break;case 4:case 5:case 6:o("#"+t).addClass("process model_process jzjd"),o("#"+t).find("img").attr("src",e.jzjd),o("#"+t).find("span").html("竞争节点");break}}}},15880:function(e,t,i){"use strict";i.r(t),i.d(t,{MoveSelectDiv:function(){return w},RegionSelect:function(){return g},SelectAlignCenter:function(){return S},SelectAlignLeft:function(){return k},SelectAlignMean:function(){return T},SelectAlignMiddle:function(){return N},SelectAlignTop:function(){return M},SelectMeanCenter:function(){return C},addNodeBtnClick:function(){return E},getSelectedRegions:function(){return y},resetLocation:function(){return x},scissorsLineAndRelocation:function(){return O},showAddNodeBtn:function(){return D},showProcessDesc:function(){return I},startMove:function(){return _}});var n=i(74692),r=i.n(n),o=i(16473),a=i(83375),s=i(2962),l=window.jsPlumb,d=i(62685),c=d.dragAddNode;function u(e){return e.all?e.all:e.getElementsByTagName("*")}function f(e,t,i){i=i||document,window.attachEvent&&i.attachEvent("on"+e,t),window.addEventListener&&i.addEventListener(e,t,!1)}function p(e){e=e||window.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1}function h(e,t){e=e||window.event;var i=document.getElementById(t),n=m(i,i.offsetLeft),r=b(i,i.offsetTop),o=document.querySelector(".center-container").parentElement.parentElement,a=e.pageX||e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),s=e.clientY+o.scrollTop-106;return{x:a-n,y:s-r}}function m(e,t){return e.parentElement&&(t+=e.parentElement.offsetLeft,t=m(e.parentElement,t)),t}function b(e,t){return t}Array.prototype.remove=function(e){for(var t=0;t<this.length;t++)if(e==this[t])break;if(t!=this.length){for(var i=t;i<this.length-1;i++)this[i]=this[i+1];this.length--}},String.prototype.replaceAll=function(e,t){var i=new RegExp(e,"g");return this.replace(i,t)},document.getElementsBySelector=function(e){if(!document.getElementsByTagName)return new Array;for(var t=e.split(" "),i=new Array(document),n=0;n<t.length;n++){var r=t[n].replace(/^\s+/,"").replace(/\s+$/,"");if(r.indexOf("#")>-1){var o=r.split("#"),a=o[0],s=o[1],l=document.getElementById(s);if(a&&l.nodeName.toLowerCase()!=a)return new Array;i=new Array(l)}else if(r.indexOf(".")>-1&&null!==i[0]){o=r.split("."),a=o[0];var d=o[1];a||(a="*");for(var c=new Array,f=0,p=0;p<i.length;p++){_="*"==a?u(i[p]):i[p].getElementsByTagName(a);for(var h=0;h<_.length;h++)c[f++]=_[h]}i=new Array;for(var m=0,b=0;b<c.length;b++)c[b].className&&c[b].className.match(new RegExp("\\b"+d+"\\b"))&&(i[m++]=c[b])}else if(r.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){a=RegExp.$1;var v=RegExp.$2,g=RegExp.$3,y=RegExp.$4;a||(a="*");for(c=new Array,f=0,p=0;p<i.length;p++){_="*"==a?u(i[p]):i[p].getElementsByTagName(a);for(h=0;h<_.length;h++)c[f++]=_[h]}i=new Array;var w;m=0;switch(g){case"=":w=function(e){return e.getAttribute(v)==y};break;case"~":w=function(e){return e.getAttribute(v).match(new RegExp("\\b"+y+"\\b"))};break;case"|":w=function(e){return e.getAttribute(v).match(new RegExp("^"+y+"-?"))};break;case"^":w=function(e){return 0==e.getAttribute(v).indexOf(y)};break;case"$":w=function(e){return e.getAttribute(v).lastIndexOf(y)==e.getAttribute(v).length-y.length};break;case"*":w=function(e){return e.getAttribute(v).indexOf(y)>-1};break;default:w=function(e){return e.getAttribute(v)}}i=new Array;for(m=0,b=0;b<c.length;b++)w(c[b])&&(i[m++]=c[b])}else{a=r;c=new Array;if(null!==i[0])for(f=0,p=0;p<i.length;p++){var _=i[p].getElementsByTagName(a);for(h=0;h<_.length;h++)c[f++]=_[h]}i=c}}return i};var v=[];function g(e){this.regions=[],this.selProp=e,this.InitRegions(e),this.selectedClass=e["selectedClass"],this.selectedRegion=[],this.selectDiv=null,this.startX=null,this.startY=null,this.parentId=e["parentId"]}function y(){return v}function w(e,t,i){for(var n=y(),o=t.position.left-t.originalPosition.left,a=t.position.top-t.originalPosition.top,s=0;s<n.length;s++)if(n[s].parentNode&&document.getElementById(i)){if(n[s].parentNode.id!==document.getElementById(i).parentNode.id)continue;var l=parseInt(r()(n[s]).attr("bLeft")),d=parseInt(r()(n[s]).attr("bTop"));r()(n[s]).css("left",l+o+"px"),r()(n[s]).css("top",d+a+"px")}}function _(){for(var e=y(),t=0;t<e.length;t++)r()(e[t]).attr("bLeft",r()(e[t]).position().left),r()(e[t]).attr("bTop",r()(e[t]).position().top)}function x(e,t){var i=10*Math.round(e.position.left/10),n=10*Math.round(e.position.top/10);r()("#"+t).css("left",i+"px"),r()("#"+t).css("top",n+"px")}function k(){for(var e=y(),t=0,i="",n=0;n<e.length;n++)""===i&&(i=e[n].parentNode.id),i===e[n].parentNode.id&&(r()(e[n]).position().left<t||0===t)&&(t=r()(e[n]).position().left);for(var o=0;o<e.length;o++)i===e[o].parentNode.id&&r()(e[o]).css("left",t+"px");l.repaintEverything()}function S(){for(var e=y(),t=0,i="",n=0;n<e.length;n++)""===i&&(i=e[n].parentNode.id),i===e[n].parentNode.id&&(r()(e[n]).position().left<t||0===t)&&(t=r()(e[n]).position().left+parseInt(L(e[n],"width"))/2);for(var o=0;o<e.length;o++)i===e[o].parentNode.id&&r()(e[o]).css("left",t-parseInt(L(e[o],"width"))/2+"px");l.repaintEverything()}function T(){var e=y();if(e.length<=2)alert("请选择至少三个个模型节点");else{for(var t=e[0].offsetTop,i=e[0].offsetTop,n=e[0].offsetHeight,o=(e[0].offsetHeight,0),a=0,s=0;s<e.length;s++)e[s].offsetTop<t&&(t=e[s].offsetTop,n=e[s].offsetHeight),e[s].offsetTop>i&&(i=e[s].offsetTop,e[s].offsetHeight);for(var d=i-(t+n),c=0;c<e.length;c++)e[c].offsetTop!=t&&e[c].offsetTop!=i&&(o+=e[c].offsetHeight);for(var u=0;u<e.length;u++)if(e[u].offsetTop!=t&&e[u].offsetTop!=i){var f=(d-o)/(e.length-1),p=f+n+t+a*e[u].offsetHeight+a*f;r()(e[u]).css("top",p),a++}l.repaintEverything()}}function C(){var e=y();if(e.length<=2)alert("请选择至少三个模型节点");else{for(var t=e[0].offsetLeft,i=e[0].offsetLeft,n=e[0].offsetWidth,o=(e[0].offsetWidth,0),a=0,s=0;s<e.length;s++)e[s].offsetLeft<t&&(t=e[s].offsetLeft,n=e[s].offsetWidth),e[s].offsetLeft>i&&(i=e[s].offsetLeft,e[s].offsetWidth);for(var d=i-(t+n),c=0;c<e.length;c++)e[c].offsetLeft!=t&&e[c].offsetLeft!=i&&(o+=e[c].offsetWidth);for(var u=0;u<e.length;u++)if(e[u].offsetLeft!=t&&e[u].offsetLeft!=i){var f=(d-o)/(e.length-1),p=f+n+t+a*e[u].offsetWidth+a*f;r()(e[u]).css("left",p),a++}l.repaintEverything()}}function M(){for(var e=y(),t=0,i="",n=0;n<e.length;n++)""===i&&(i=e[n].parentNode.id),i===e[n].parentNode.id&&(r()(e[n]).position().top<t||0===t)&&(t=r()(e[n]).position().top);for(var o=0;o<e.length;o++)i===e[o].parentNode.id&&r()(e[o]).css("top",t+"px");l.repaintEverything()}function N(){for(var e=y(),t=0,i="",n=0;n<e.length;n++)""===i&&(i=e[n].parentNode.id),i===e[n].parentNode.id&&(r()(e[n]).position().top+parseInt(L(e[n],"height"))/2<t||0===t)&&(t=r()(e[n]).position().top+parseInt(L(e[n],"height"))/2);for(var o=0;o<e.length;o++)i===e[o].parentNode.id&&r()(e[o]).css("top",t-parseInt(L(e[o],"height"))/2+"px");l.repaintEverything()}function L(e,t){return e.currentStyle?e.currentStyle[t]:getComputedStyle(e,!1)[t]}g.prototype.InitRegions=function(){var e=this;e.regions=[];var t=document.getElementsBySelector(e.selProp["region"]),i=!0;if(t&&t.length>0)for(var n=0;n<t.length;n++)t[n].onmousedown=function(){i=!1;var n=window.event||arguments[0];n.shiftKey||n.ctrlKey?-1==this.className.indexOf(e.selectedClass)?(this.className+=" "+e.selectedClass,v.push(this)):(this.className=this.className.replaceAll(e.selectedClass,""),v.remove(this)):-1===r().inArray(this,v)&&(e.clearSelections(t),this.className+=" "+e.selectedClass,v=[],v.push(this)),p(n)},this.regions.push(t[n]);i&&(e.clearSelections(t),v=[])},g.prototype.select=function(){var e=this,t=e.parentId,i=[0,0],n=[0,0];document.getElementById(t)&&(f("mousedown",(function(){var r=window.event||arguments[0],o=r.buttons||r.button;if((void 0==r.target||r.target.id===t)&&(void 0==r.srcElement||r.srcElement.id===t)){if(void 0==r.buttons&&0==o&&e.onBeforeSelect(r,t),1===o&&e.onBeforeSelect(r,t),2===o){i=[r.clientX,r.clientY];var a=parseInt(L(document.getElementById(t),"left")),s=parseInt(L(document.getElementById(t),"top"));n=[a,s],document.getElementById(t).style.cursor="move"}p(r)}}),document),f("mousemove",(function(){var o=window.event||arguments[0],a=o.buttons||o.button;if(void 0==o.buttons&&0==a&&e.onSelect(o,t),1===a&&e.onSelect(o,t),2===a){var s=n[0]+o.clientX-i[0],l=n[1]+o.clientY-i[1];s>=0&&(s=0),l>=0&&(l=0),r()("#"+t).css("left",s+"px"),r()("#"+t).css("top",l+"px")}p(o)}),document),f("mouseup",(function(){var t=window.event||arguments[0];t.buttons||t.button;t.buttons,e.onEnd()}),document))},g.prototype.onBeforeSelect=function(e,t){var i=this;i.InitRegions(i.selProp),document.getElementById("selContainer")?this.selectDiv=document.getElementById("selContainer"):(this.selectDiv=document.createElement("div"),this.selectDiv.style.cssText="position:absolute;width:0px;height:0px;font-size:0px;margin:0px;padding:0px;border:1px dashed #0099FF;background-color:#C3D5ED;z-index:1000;filter:alpha(opacity:60);opacity:0.6;display:none;",this.selectDiv.id="selContainer",document.getElementById(t).appendChild(this.selectDiv)),this.startX=h(e,t).x,this.startY=h(e,t).y,this.isSelect=!0},g.prototype.onSelect=function(e,t){var i=this;if(i.isSelect){"none"==i.selectDiv.style.display&&(i.selectDiv.style.display="");var n=h(e,t).x,r=h(e,t).y;i.selectDiv.style.left=Math.min(n,this.startX)+"px",i.selectDiv.style.top=Math.min(r,this.startY)+"px",i.selectDiv.style.width=Math.abs(n-this.startX)+"px",i.selectDiv.style.height=Math.abs(r-this.startY)+"px";for(var o=i.regions,a=0;a<o.length;a++)if(i.selectDiv.parentNode.id===o[a].parentNode.id){var s=o[a],l=i.innerRegion(i.selectDiv,s);l&&-1==s.className.indexOf(i.selectedClass)?(s.className=s.className+" "+i.selectedClass,v.push(s)):l||-1==s.className.indexOf(i.selectedClass)||(s.className=s.className.replaceAll(i.selectedClass,""),v.remove(s))}}},g.prototype.onEnd=function(){var e=this;e.selectDiv&&(e.selectDiv.style.display="none"),this.isSelect=!1},g.prototype.innerRegion=function(e,t){var i=parseInt(e.style.top),n=parseInt(e.style.left),r=n+parseInt(e.offsetWidth),o=i+parseInt(e.offsetHeight),a=parseInt(t.offsetTop),s=parseInt(t.offsetLeft),l=s+parseInt(t.offsetWidth),d=a+parseInt(t.offsetHeight),c=Math.max(i,a),u=Math.min(r,l),f=Math.min(o,d),p=Math.max(n,s);return f>c+5&&u>p+5?t:null},g.prototype.clearSelections=function(e){for(var t=0;t<e.length;t++)e[t].className=e[t].className.replaceAll(this.selectedClass,"")};var I=function(e,t,i,n,o){var a=document.querySelector(".process-desc-container");null!==a&&(a.style.display="",t=a.clientHeight,i=a.offsetLeft,n=a.offsetTop,e=a.querySelector(".el-textarea__inner").value,a.remove()),a=document.createElement("div"),a.className="process-desc-container",a.style.top=n+"px",a.style.left=i+"px",a.style.position="relative",a.style.zIndex=1001,a.style.display=o||"",document.querySelector("#center").appendChild(a);var s="";-1===location.href.indexOf("designer/workflow")&&(s='readonly style="resize:none;"'),a.innerHTML="<div class='label'><span>流程说明</span><img class='process-desc-close' src='/images/w-imgs/definition/menu/close.png'></div><div class='content'><textarea class='el-textarea__inner' "+s+" rows=5></textarea></div>",a.querySelector("textarea").value=e,a.querySelector("textarea").style.height=t-30+"px",r()(".process-desc-container").draggable({containment:"#center",grid:[10,10],handle:".label",scope:"desc"}),r()(".process-desc-close").click((function(){document.querySelector(".process-desc-container").style.display="none"}))},D=function(e,t,i,n){var r=e.$vnode.context.$refs["siderefs"]?e.$vnode.context.$refs["siderefs"].selectedItemType:"ptjd";if(r&&"line"!==r){var o=i.parentElement.parentElement,a=document.querySelector(".add-node-btn");a.style.top=o.style.top,a.style.left=o.style.left,a.style.display="block",a.curConn=t,a.selectedItemType=r}},E=function(e,t,i){var n=i.curConn,l={top:n.element.offsetTop+102,left:n.element.offsetLeft+210};e.$vnode.context.$refs["siderefs"]||(l.left+=-210,l.top+=-30);var d={ConnectionId:"",PageSourceId:"",PageTargetId:"",uuid:[null,null],label:"",firstEndpoints:[.5,1,0,1],secondEndpoints:[.5,0,0,-1],type:"Flowchart",pathMinX:0,pathMaxX:0,pathMinY:2.5,pathMaxY:88,linesCount:1},u=[0,0];0===n.anchor.x?(console.log("当前节点左侧添加新节点"),l.left+=-240,d.firstEndpoints=[n.anchor.x,n.anchor.y,-1,0],d.secondEndpoints=[1,.5,0,0]):1===n.anchor.x?(console.log("当前节点右侧添加新节点"),l.left+=280,d.firstEndpoints=[n.anchor.x,n.anchor.y,-1,0],d.secondEndpoints=[0,.5,0,0]):0===n.anchor.y?(console.log("当前节点上方添加新节点"),l.left+=20,l.top+=-180,d.firstEndpoints=[n.anchor.x,n.anchor.y,-1,0],d.secondEndpoints=[.5,1,0,0]):(console.log("当前节点下方添加新节点"),l.left+=20,l.top+=180,d.firstEndpoints=[n.anchor.x,n.anchor.y,-1,0],d.secondEndpoints=[.5,0,0,0]);var f=null;f=document.querySelector("#center-scrollbar")?document.querySelector("#center-scrollbar").querySelector(".el-scrollbar__wrap"):document.querySelector("#wfNodelogList").parentElement.parentElement;var p=f.scrollTop,h=f.scrollLeft;l.top+=-p,l.left+=-h;var m=r()("#"+n.elementId);0===n.anchor.x||1===n.anchor.x?m.hasClass("ptjd")||m.hasClass("jzjd")||m.hasClass("drbx")||m.hasClass("drcx")||m.hasClass("hqjd")||m.hasClass("ywjd")||(l.top+=-10):0!==n.anchor.y&&1!==n.anchor.y||m.hasClass("ptjd")||m.hasClass("jzjd")||m.hasClass("drbx")||m.hasClass("drcx")||m.hasClass("hqjd")||m.hasClass("ywjd")||m.hasClass("jcjd")||(l.left+=-40),"ptjd"!==i.selectedItemType&&"jzjd"!==i.selectedItemType&&"drbx"!==i.selectedItemType&&"drcx"!==i.selectedItemType&&"hqjd"!==i.selectedItemType&&"ywjd"!==i.selectedItemType&&"jcjd"!==i.selectedItemType?0===n.anchor.x||1===n.anchor.x?(l.top+=10,0===n.anchor.x&&(l.left+=60)):0!==n.anchor.y&&1!==n.anchor.y||0===n.anchor.y&&(l.top+=20):"jcjd"!==i.selectedItemType||0!==n.anchor.x&&1!==n.anchor.x||(l.top+=10);var b=null;b=e.$vnode.context.$refs["siderefs"]?e.$vnode.context.$refs["siderefs"].$el.querySelector("."+i.selectedItemType):document.querySelector(".ptjd");var v={position:l};v.offset=v.position,v.draggable=b,v.helper=b;var g=c(t,v,e,o.EP);if(0===n.connections.length){var y=JSON.parse(JSON.stringify(d));y.ConnectionId=(0,s.u)(),y.PageSourceId=n.elementId,y.PageTargetId=g;var w=[y.firstEndpoints,y.secondEndpoints],_=[y.type,{stub:u,gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}];(0,a.Nc)(y,_,w)}else O(e,n.connections[0],g);e.wfInstance&&e.curNodeDbclick&&e.curNodeDbclick(g,n.elementId)},O=function(e,t,i){var n=t.getLabel(),o=t.sourceId,d=["Flowchart",{stub:[50,50],gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}],c=[parseFloat(t.endpoints[0].anchor.x),parseFloat(t.endpoints[0].anchor.y),t.endpoints[0].anchor.orientation[0],t.endpoints[0].anchor.orientation[1]],u=[parseFloat(t.endpoints[1].anchor.x),parseFloat(t.endpoints[1].anchor.y),t.endpoints[1].anchor.orientation[0],t.endpoints[1].anchor.orientation[1]],f=[c,u],p=parseInt(r()("#"+t.sourceId).css("top")),h=parseInt(r()("#"+i).css("top")),m=parseInt(r()("#"+t.targetId).css("top")),b=0;1==c[1]&&0==u[1]?(b=h-p-80-120,b<0&&(r()("#"+i).css("top",h+-1*b),h=parseInt(r()("#"+i).css("top"))),b=m-h-80-120,document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&b<0&&(e.id==t.targetId||h<parseInt(r()(e).css("top")))&&r()("#"+e.id).css("top",parseInt(r()("#"+e.id).css("top"))+-1*b+"px")}))):0==c[1]&&1==u[1]&&(b=p-h-80-120,b<0&&(r()("#"+i).css("top",h+b),h=parseInt(r()("#"+i).css("top"))),b=h-m-80-120,document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&b<0&&(e.id==t.targetId||h>parseInt(r()(e).css("top")))&&r()("#"+e.id).css("top",parseInt(r()("#"+e.id).css("top"))+b+"px")})));var v=parseInt(r()("#"+t.sourceId).css("left")),g=parseInt(r()("#"+i).css("left")),y=parseInt(r()("#"+t.targetId).css("left")),w=0;1==c[0]&&0==u[0]?(w=g-v-140-120,w<0&&(r()("#"+i).css("left",g+-1*w),g=parseInt(r()("#"+i).css("left"))),w=y-g-140-120,document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&w<0&&(e.id==t.targetId||g<parseInt(r()(e).css("left")))&&r()("#"+e.id).css("left",parseInt(r()("#"+e.id).css("left"))+-1*w+"px")}))):0==c[0]&&1==c[0]&&(w=v-g-140-120,w<0&&(r()("#"+i).css("left",g+w),g=parseInt(r()("#"+i).css("left"))),w=g-y-140-120,document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&w<0&&(e.id==t.targetId||g>parseInt(r()(e).css("left")))&&r()("#"+e.id).css("left",parseInt(r()("#"+e.id).css("left"))+w+"px")}))),l.deleteConnection(t);for(var _=0;_<e.wflow.paths.length;_++)t.id===e.wflow.paths[_].id&&e.wflow.paths.splice(_--,1);t.sourceId=i;var x=(0,a.Nc)(t,d,f);x.setLabel({label:n||" ",cssClass:"line_text",location:t.labelLocation||.5}),t.sourceId=o,t.targetId=i,t.id=(0,s.u)();var k=(0,a.Nc)(t,d,f);k.setLabel({label:"",cssClass:"line_text",location:t.labelLocation||.5})}},16473:function(e,t,i){"use strict";i.d(t,{EP:function(){return r},Lq:function(){return o},eR:function(){return n},oW:function(){return a}});var n={process:{chartData:"",codeRule:"",commonIdea:"",creatPersonId:"",createTime:"",creator:"",description:"",id:"",name:"",orgCode:"",orgName:"",processNo:"",processType:"",status:1,sysCode:"",sysName:"",version:"",workFormM:"",workFormW:""},nodes:[],nextNodes:[],paths:[],ideaLabels:[],nodeFieldValues:[],pathFieldValues:[],operations:[]},r={status:-1,autoProcess:0,addStaffType:0,assistStaffType:0,attachEditable:"",formFieldEditable:0,autoexecClassPath:"",dccodeType:"",decisionClassPath:"",decisionFormula:"",description:"",jobStaffFilterType:0,jobStaffFilterTypeAdd:0,jobStaffFilterTypeAssist:0,groupStaffFilterType:0,groupStaffFilterTypeAdd:0,groupStaffFilterTypeAssist:0,groupStaffGroupType:0,groupStaffGroupTypeAdd:0,groupStaffGroupTypeAssist:0,historyNodeId:null,historyNodeIdAdd:"",id:"",ideaFillType:1,ideaLabelId:null,ideaSaveType:0,ideaSignType:0,ideaShowScope:0,isAutoSendRead:0,isAutoCheckedAll:0,isDocEditable:1,isIdeaHighlight:1,isOrgOnlyPerson:1,isOrgOnlyPersonAdd:1,isTimeLimitEditable:1,name:"",needWaitNodeId:"",nodeNo:0,nodeType:1,orgLevel:2,orgLevelAdd:1,orgLevelAssist:2,orgStaffType:1,orgStaffFilterType:2,orgStaffTypeAdd:0,orgStaffTypeAssist:3,processId:"",processType:0,selectType:0,selectTypeAdd:0,selectTypeAssist:0,serial:"",specialClassPath:"",specialClassPathAdd:"",staffFilterType:0,staffFilterTypeAdd:"",timeLimitBeforeNotice:0,timeLimitDay:0,timeLimitHour:0,timeLimitScope:0,timeLimitType:9,todoType:0,webFormFieldName:"",webFormFieldNameAdd:"",workFormM:"",workFormW:"",nodeFormFields:[]},o={id:"",status:-1,ctrlType:0,customClassPath:"",decisionResult:"",description:"",evtCompletePercent:0,evtMessageCode:"",name:"",orgFilterType:0,orgLevel:0,orgStaffType:0,pathNo:"",pathType:0,pathUseType:1,preNodeId:null,processId:"",serial:"",taskCompletePercent:0,webFormFieldExp:""},a=[{id:1,imgSrc:"/images/w-imgs/definition/center/c_start.png",title:"开始",text:"",associated:"start",resize:0,domJoin:1,type:1,name:"start",nodeNo:"start",nodeType:0},{id:8,imgSrc:"/images/w-imgs/definition/center/c_jsrw.png",title:"结束任务",text:"部门领导审批",associated:"jsrw",resize:0,domJoin:4,type:8,name:"jsrw",nodeNo:"jsrw",nodeType:9},{id:9,imgSrc:"/images/w-imgs/definition/center/c_jslc.png",title:"结束流程",text:"部门领导审批",associated:"jslc",resize:0,domJoin:4,type:9,name:"jslc",nodeNo:"jslc",nodeType:9},{id:2,imgSrc:"/images/w-imgs/definition/center/c_ptjd.png",title:"普通节点",text:"",associated:"ptjd",resize:1,domJoin:4,type:2,nodeType:1,processType:0},{id:3,imgSrc:"/images/w-imgs/definition/center/c_jzjd.png",title:"竞争节点",text:"部门领导审批",associated:"jzjd",resize:1,domJoin:4,type:3,nodeType:1,processType:4},{id:4,imgSrc:"/images/w-imgs/definition/center/c_drbx.png",title:"多人并行",text:"部门领导审批",associated:"drbx",resize:1,domJoin:4,type:4,nodeType:1,processType:1},{id:5,imgSrc:"/images/w-imgs/definition/center/c_drcx.png",title:"多人串行",text:"部门领导审批",associated:"drcx",resize:1,domJoin:4,type:5,nodeType:1,processType:3},{id:6,imgSrc:"/images/w-imgs/definition/center/c_hqjd.png",title:"会签节点",text:"部门领导审批",associated:"hqjd",resize:1,domJoin:4,type:6,nodeType:1,processType:2},{id:7,imgSrc:"/images/w-imgs/definition/center/c_ywjd.png",title:"阅文节点",text:"部门领导审批",associated:"ywjd",resize:1,domJoin:4,type:7,nodeType:3,processType:8},{id:10,imgSrc:"/images/w-imgs/definition/center/c_jcjd.png",title:"决策节点",text:"部门领导审批",associated:"jcjd",resize:0,domJoin:4,type:10,nodeType:4,dccodeType:"DCCode"},{id:11,imgSrc:"/images/w-imgs/definition/center/c_zyjd.png",title:"自由节点",text:"部门领导审批",associated:"zyjd",resize:0,domJoin:4,type:11,nodeType:6,name:"zyjd",nodeNo:"zyjd"},{id:12,imgSrc:"/images/w-imgs/definition/center/c_dfzjd.png",title:"多分支节点",text:"部门领导审批",associated:"dfzjd",resize:0,domJoin:4,type:12,nodeType:8,name:"dfzjd",nodeNo:"dfzjd"},{id:13,imgSrc:"/images/w-imgs/definition/center/c_jhjd.png",title:"聚合节点",text:"部门领导审批",associated:"jhjd",resize:0,domJoin:4,type:13,nodeType:5,dccodeType:"LastWfUser"},{id:14,imgSrc:"/images/w-imgs/definition/center/c_zlc.png",title:"启动子流程",text:"",associated:"childWf",resize:0,domJoin:4,type:14,nodeType:1},{id:15,imgSrc:"/images/w-imgs/definition/center/c_plc.png",title:"返回父流程",text:"",associated:"parentWf",resize:0,domJoin:4,name:"parentWf",nodeNo:"parentWf",type:15,nodeType:7}]},33610:function(e){e.exports={wplus:{adminConsole:{copybusiformConfirm:"Are you sure you need to copy the busiform?",selectExportBusiform:"Please select the busiform that needs to export.",selectGenerateVuecodeBusiform:"Please select the busiform that requires generating Vue component code.",generateVuecodeBusiformConfirm:"Are you sure you want to generate busiform Vue component code?",generateVuecode:"GenerateVueCode",selectDatabase:"Please select database",dataTableSet:"DataTables ({folder})",pleaseSelectEntityForBusiform:"Please select a table that requires configuring busiform.",selectBusiformType:"Please select the new busiform type:",copyOrModifyBusiformConfirm:"Are you sure you need to copy the busiform?<br/>If you need to modify the busiform, please click on the table line directly.",downloadCode:"<br/>Download code:",importDataType:"Import {dataType}",ORM:"Model Mapping",noImportFileSelected:"Please select the import file.",importSelectFile:"Select {dataType} mapping configuration file",importFormatDesc:"{dataType} configuration file content format description:",importFormatTip:"1. The imported file should be a JSON format zip file exported through {dataType} configuration;",importBackupTip:"2. Before performing the import operation, please ensure that you have backed up the platform library.",copyListpageConfirm:"Are you sure you need to copy the listpage?",selectExportListpage:"Please select the listpage that needs to export.",selectGenerateVuecodeListpage:"Please select the busiform that requires generating Vue component code.",generateVuecodeListpageConfirm:"Are you sure you want to generate listpage Vue component code?",pleaseSelectEntityForListpage:"Please select a table that requires configuring listpage.",selectListpageType:"Please select the new listpage type:",copyOrModifyListpageConfirm:"Are you sure you need to copy the listpage?<br/>If you need to modify the listpage, please click on the table line directly."},entityBusiform:{fields:{frmName:"FormName",frmViewType:"Viewtype",frmViewUrl:"ViewUrl",frmViewVer:"ViewVer",vueCode:"VueCode"},options:{moduleType:{W_FLOW:"PC version blank process form",W_FLOW_ST:"PC version standard process form",M_FLOW:"Mobile version blank process form",M_FLOW_ST:"Mobile version standard process form",W_BASIC:"PC version basic form",W_OPENFORM:"PC version new page form",M_BASIC:"Mobile version basic form"}}},pageBtns:{generateVueCode:"GenerateVueCode",startImport:"Start Import"}}}},16749:function(e){e.exports={adminConsole:{copybuformConfirm:"Are you sure you need to copy the busiform?",selectDatabase:"Please select database"}}},94864:function(e){e.exports={adminConsole:{copybuformConfirm:"Are you sure you need to copy the busiform?",selectDatabase:"Please select database"}}},40366:function(e){e.exports={wplus:{adminConsole:{copybusiformConfirm:"您是否确认需要复制业务表单?",selectExportBusiform:"请选择需要导出配置的业务表单。",selectGenerateVuecodeBusiform:"请选择需要生成Vue组件代码的业务表单。",generateVuecodeBusiformConfirm:"确认要生成业务表单Vue组件代码吗?",generateVuecode:"生成Vue组件代码",selectDatabase:"请选择应用数据库",dataTableSet:"数据表集({folder})",pleaseSelectEntity:"请选择一个需要配置业务表单的表。",selectBusiformType:"请选择新增表单类型:",copyBusiformConfig:"您是否确认需要复制业务表单?<br/>如需修改业务表单请直接单击表单行。",downloadCode:"<br/>下载代码:",importDataType:"导入{dataType}",ORM:"模型映射",noImportFileSelected:"请选择导入文件。"}}}},18957:function(e,t,i){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}i.d(t,{Ai:function(){return p},Go:function(){return l},bu:function(){return b},fU:function(){return a},ge:function(){return h},iQ:function(){return c},nB:function(){return d},pe:function(){return o},r6:function(){return m},uB:function(){return s},v7:function(){return f},vy:function(){return u}});var r=i(95093);function o(e){return 0===arguments.length?null:("object"===n(e)?t=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(/-/g,"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),t=new Date(e)),t);var t}function a(e,t){var i=o(e);null===e&&(i=Date().now());var n=Date.now(),a=(n-i)/1e3;return void 0===t?a<30?"刚刚":a<3600?Math.floor(a/60)+"分钟前":a<86400?Math.floor(a/3600)+"小时前":a<172800?"1天前":i.getFullYear()<o(n).getFullYear()?i.getFullYear()+"/"+(i.getMonth()+1)+"/"+i.getDate():i.getMonth()+1+"/"+i.getDate():(t=t.replace("yyyy","YYYY").replace("dd","DD"),r(i).format(t))}function s(e){e=null==e?window.location.href:e;var t=e.substring(e.lastIndexOf("?")+1),i={},n=/([^?&=]+)=([^?&=]*)/g;return t.replace(n,(function(e,t,n){var r=decodeURIComponent(t),o=decodeURIComponent(n);return o=String(o),i[r]=o,e})),i}function l(e){if(!e&&"object"!==n(e))throw new Error("error arguments","deepClone");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(i){e[i]&&"object"===n(e[i])?t[i]=l(e[i]):t[i]=e[i]})),t}function d(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function c(e,t){d(e,t)||(e.className+=" "+t)}function u(e,t){if(d(e,t)){var i=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(i," ")}}function f(e){if(e<1024)return e+"B";if(e<1048576){var t=e/1024;return t=t.toFixed(2),t+"KB"}if(e<1073741824){var i=e/1048576;return i=i.toFixed(2),i+"MB"}var n=e/1073741824;return n=n.toFixed(2),n+"GB"}function p(e){var t=e.oriangialName||e.fileName;return t=t.substring(t.lastIndexOf(".")),".doc"===t||".docx"===t?"images/w-imgs/email/word.png":".ppt"===t||".pptx"===t?"images/w-imgs/email/ppt.png":".xls"===t||".xlsx"===t?"images/w-imgs/email/excel.png":".pdf"===t?"images/w-imgs/email/pdf.png":".txt"===t?"images/w-imgs/email/txt.png":".audio"===t||".amr"===t||".mp3"===t||".wav"===t?"images/w-imgs/email/audio.png":".video"===t||".mp4"===t||".mov"===t?"images/w-imgs/email/video.png":".zip"===t||".rar"===t?"images/w-imgs/email/zip.png":".image"===t||".mp4"===t||".jpg"===t||".jpeg"===t||".png"===t||".gif"===t||".bmp"===t||".svg"===t?"images/w-imgs/email/picture.png":" "===t?"images/w-imgs/email/none.png":"images/w-imgs/email/other.png"}function h(e){return/^(https?:|mailto:|tel:)/.test(e)}function m(e,t,i){return e.sort((function(e,n){var r=e[t],o=n[t];return"desc"===i?r>o?-1:r<o?1:0:r<o?-1:r>o?1:0}))}function b(){for(var e=[],t="0123456789abcdef",i=0;i<36;i++)e[i]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="",e.join("")}},34195:function(e){e.exports={title:"",showSettings:!1,tagsView:!0,fixedHeader:!1,showTopMenus:!0}},67526:function(e,t){"use strict";t.byteLength=d,t.toByteArray=u,t.fromByteArray=h;for(var i=[],n=[],r="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)i[a]=o[a],n[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=t);var n=i===t?0:4-i%4;return[i,n]}function d(e){var t=l(e),i=t[0],n=t[1];return 3*(i+n)/4-n}function c(e,t,i){return 3*(t+i)/4-i}function u(e){var t,i,o=l(e),a=o[0],s=o[1],d=new r(c(e,a,s)),u=0,f=s>0?a-4:a;for(i=0;i<f;i+=4)t=n[e.charCodeAt(i)]<<18|n[e.charCodeAt(i+1)]<<12|n[e.charCodeAt(i+2)]<<6|n[e.charCodeAt(i+3)],d[u++]=t>>16&255,d[u++]=t>>8&255,d[u++]=255&t;return 2===s&&(t=n[e.charCodeAt(i)]<<2|n[e.charCodeAt(i+1)]>>4,d[u++]=255&t),1===s&&(t=n[e.charCodeAt(i)]<<10|n[e.charCodeAt(i+1)]<<4|n[e.charCodeAt(i+2)]>>2,d[u++]=t>>8&255,d[u++]=255&t),d}function f(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,i){for(var n,r=[],o=t;o<i;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),r.push(f(n));return r.join("")}function h(e){for(var t,n=e.length,r=n%3,o=[],a=16383,s=0,l=n-r;s<l;s+=a)o.push(p(e,s,s+a>l?l:s+a));return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},39404:function(e,t,i){e=i.nmd(e),function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(47790).Buffer}catch(I){}function s(e,t){var i=e.charCodeAt(t);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void n(!1,"Invalid character in "+e)}function l(e,t,i){var n=s(e,i);return i-1>=t&&(n|=s(e,i-1)<<4),n}function d(e,t,i,r){for(var o=0,a=0,s=Math.min(e.length,i),l=t;l<s;l++){var d=e.charCodeAt(l)-48;o*=r,a=d>=49?d-49+10:d>=17?d-17+10:d,n(d>=0&&a<r,"Invalid character"),o+=a}return o}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"===typeof e)return this._initNumber(e,t,i);if("object"===typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var r=0;"-"===e[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=e.length-1,o=0;r>=0;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<e.length;r+=3)a=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=l(e,t,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2)r=l(e,t,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8}this._strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var o=e.length-i,a=o%n,s=Math.min(o,o-a)+i,l=0,c=i;c<s;c+=n)l=d(e,c,c+n,t),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var u=1;for(l=d(e,c,e.length,t),c=0;c<a;c++)u*=t;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){c(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){while(this.length<e)this.words[this.length++]=0;return this},o.prototype._strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(I){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var i;if(e=e||10,t=0|t||1,16===e||"hex"===e){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<r|o)).toString(16);o=s>>>24-r&16777215,r+=2,r>=26&&(r-=26,a--),i=0!==o||a!==this.length-1?f[6-l.length]+l+i:l+i}0!==o&&(i=o.toString(16)+i);while(i.length%t!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var d=p[e],c=h[e];i="";var u=this.clone();u.negative=0;while(!u.isZero()){var m=u.modrn(c).toString(e);u=u.idivn(c),i=u.isZero()?m+i:f[d-m.length]+m+i}this.isZero()&&(i="0"+i);while(i.length%t!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var m=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function b(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=e.words[n]>>>r&1}return t}function v(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],o=0|t.words[0],a=r*o,s=67108863&a,l=a/67108864|0;i.words[0]=s;for(var d=1;d<n;d++){for(var c=l>>>26,u=67108863&l,f=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=f;p++){var h=d-p|0;r=0|e.words[h],o=0|t.words[p],a=r*o+u,c+=a/67108864|0,u=67108863&a}i.words[d]=0|u,l=0|c}return 0!==l?i.words[d]=0|l:i.length--,i._strip()}o.prototype.toArrayLike=function(e,t,i){this._strip();var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=m(e,o),s="le"===t?"LE":"BE";return this["_toArrayLike"+s](a,r),a},o.prototype._toArrayLikeLE=function(e,t){for(var i=0,n=0,r=0,o=0;r<this.length;r++){var a=this.words[r]<<o|n;e[i++]=255&a,i<e.length&&(e[i++]=a>>8&255),i<e.length&&(e[i++]=a>>16&255),6===o?(i<e.length&&(e[i++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(i<e.length){e[i++]=n;while(i<e.length)e[i++]=0}},o.prototype._toArrayLikeBE=function(e,t){for(var i=e.length-1,n=0,r=0,o=0;r<this.length;r++){var a=this.words[r]<<o|n;e[i--]=255&a,i>=0&&(e[i--]=a>>8&255),i>=0&&(e[i--]=a>>16&255),6===o?(i>=0&&(e[i--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(i>=0){e[i--]=n;while(i>=0)e[i--]=0}},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0===(8191&t)&&(i+=13,t>>>=13),0===(127&t)&&(i+=7,t>>>=7),0===(15&t)&&(i+=4,t>>>=4),0===(3&t)&&(i+=2,t>>>=2),0===(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){while(this.length<e.length)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this._strip()},o.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,o=0;o<n.length;o++)t=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&t,r=t>>>26;for(;0!==r&&o<i.length;o++)t=(0|i.words[o])+r,this.words[o]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)t=(0|i.words[a])-(0|n.words[a])+o,o=t>>26,this.words[a]=67108863&t;for(;0!==o&&a<i.length;a++)t=(0|i.words[a])+o,o=t>>26,this.words[a]=67108863&t;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,i){var n,r,o,a=e.words,s=t.words,l=i.words,d=0,c=0|a[0],u=8191&c,f=c>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],v=8191&b,g=b>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],k=8191&x,S=x>>>13,T=0|a[5],C=8191&T,M=T>>>13,N=0|a[6],L=8191&N,I=N>>>13,D=0|a[7],E=8191&D,O=D>>>13,F=0|a[8],A=8191&F,P=F>>>13,$=0|a[9],B=8191&$,j=$>>>13,R=0|s[0],U=8191&R,H=R>>>13,W=0|s[1],Y=8191&W,V=W>>>13,z=0|s[2],q=8191&z,J=z>>>13,G=0|s[3],K=8191&G,X=G>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],oe=8191&re,ae=re>>>13,se=0|s[7],le=8191&se,de=se>>>13,ce=0|s[8],ue=8191&ce,fe=ce>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;i.negative=e.negative^t.negative,i.length=19,n=Math.imul(u,U),r=Math.imul(u,H),r=r+Math.imul(f,U)|0,o=Math.imul(f,H);var be=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(h,U),r=Math.imul(h,H),r=r+Math.imul(m,U)|0,o=Math.imul(m,H),n=n+Math.imul(u,Y)|0,r=r+Math.imul(u,V)|0,r=r+Math.imul(f,Y)|0,o=o+Math.imul(f,V)|0;var ve=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,U),r=Math.imul(v,H),r=r+Math.imul(g,U)|0,o=Math.imul(g,H),n=n+Math.imul(h,Y)|0,r=r+Math.imul(h,V)|0,r=r+Math.imul(m,Y)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(f,q)|0,o=o+Math.imul(f,J)|0;var ge=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(w,U),r=Math.imul(w,H),r=r+Math.imul(_,U)|0,o=Math.imul(_,H),n=n+Math.imul(v,Y)|0,r=r+Math.imul(v,V)|0,r=r+Math.imul(g,Y)|0,o=o+Math.imul(g,V)|0,n=n+Math.imul(h,q)|0,r=r+Math.imul(h,J)|0,r=r+Math.imul(m,q)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,X)|0,r=r+Math.imul(f,K)|0,o=o+Math.imul(f,X)|0;var ye=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(k,U),r=Math.imul(k,H),r=r+Math.imul(S,U)|0,o=Math.imul(S,H),n=n+Math.imul(w,Y)|0,r=r+Math.imul(w,V)|0,r=r+Math.imul(_,Y)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(h,K)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(u,Q)|0,r=r+Math.imul(u,ee)|0,r=r+Math.imul(f,Q)|0,o=o+Math.imul(f,ee)|0;var we=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,U),r=Math.imul(C,H),r=r+Math.imul(M,U)|0,o=Math.imul(M,H),n=n+Math.imul(k,Y)|0,r=r+Math.imul(k,V)|0,r=r+Math.imul(S,Y)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(_,q)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,X)|0,n=n+Math.imul(h,Q)|0,r=r+Math.imul(h,ee)|0,r=r+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(u,ie)|0,r=r+Math.imul(u,ne)|0,r=r+Math.imul(f,ie)|0,o=o+Math.imul(f,ne)|0;var _e=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,U),r=Math.imul(L,H),r=r+Math.imul(I,U)|0,o=Math.imul(I,H),n=n+Math.imul(C,Y)|0,r=r+Math.imul(C,V)|0,r=r+Math.imul(M,Y)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(k,q)|0,r=r+Math.imul(k,J)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,X)|0,r=r+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(v,Q)|0,r=r+Math.imul(v,ee)|0,r=r+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(h,ie)|0,r=r+Math.imul(h,ne)|0,r=r+Math.imul(m,ie)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(u,oe)|0,r=r+Math.imul(u,ae)|0,r=r+Math.imul(f,oe)|0,o=o+Math.imul(f,ae)|0;var xe=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(E,U),r=Math.imul(E,H),r=r+Math.imul(O,U)|0,o=Math.imul(O,H),n=n+Math.imul(L,Y)|0,r=r+Math.imul(L,V)|0,r=r+Math.imul(I,Y)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(C,q)|0,r=r+Math.imul(C,J)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(k,K)|0,r=r+Math.imul(k,X)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,r=r+Math.imul(w,ee)|0,r=r+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,ie)|0,r=r+Math.imul(v,ne)|0,r=r+Math.imul(g,ie)|0,o=o+Math.imul(g,ne)|0,n=n+Math.imul(h,oe)|0,r=r+Math.imul(h,ae)|0,r=r+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(u,le)|0,r=r+Math.imul(u,de)|0,r=r+Math.imul(f,le)|0,o=o+Math.imul(f,de)|0;var ke=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(A,U),r=Math.imul(A,H),r=r+Math.imul(P,U)|0,o=Math.imul(P,H),n=n+Math.imul(E,Y)|0,r=r+Math.imul(E,V)|0,r=r+Math.imul(O,Y)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(L,q)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(I,q)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(C,K)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(k,Q)|0,r=r+Math.imul(k,ee)|0,r=r+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(w,ie)|0,r=r+Math.imul(w,ne)|0,r=r+Math.imul(_,ie)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,r=r+Math.imul(v,ae)|0,r=r+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,n=n+Math.imul(h,le)|0,r=r+Math.imul(h,de)|0,r=r+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0,n=n+Math.imul(u,ue)|0,r=r+Math.imul(u,fe)|0,r=r+Math.imul(f,ue)|0,o=o+Math.imul(f,fe)|0;var Se=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,U),r=Math.imul(B,H),r=r+Math.imul(j,U)|0,o=Math.imul(j,H),n=n+Math.imul(A,Y)|0,r=r+Math.imul(A,V)|0,r=r+Math.imul(P,Y)|0,o=o+Math.imul(P,V)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(O,q)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(L,K)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul(I,K)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(C,Q)|0,r=r+Math.imul(C,ee)|0,r=r+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(k,ie)|0,r=r+Math.imul(k,ne)|0,r=r+Math.imul(S,ie)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(w,oe)|0,r=r+Math.imul(w,ae)|0,r=r+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,le)|0,r=r+Math.imul(v,de)|0,r=r+Math.imul(g,le)|0,o=o+Math.imul(g,de)|0,n=n+Math.imul(h,ue)|0,r=r+Math.imul(h,fe)|0,r=r+Math.imul(m,ue)|0,o=o+Math.imul(m,fe)|0,n=n+Math.imul(u,he)|0,r=r+Math.imul(u,me)|0,r=r+Math.imul(f,he)|0,o=o+Math.imul(f,me)|0;var Te=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,Y),r=Math.imul(B,V),r=r+Math.imul(j,Y)|0,o=Math.imul(j,V),n=n+Math.imul(A,q)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(P,q)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,X)|0,r=r+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(L,Q)|0,r=r+Math.imul(L,ee)|0,r=r+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(C,ie)|0,r=r+Math.imul(C,ne)|0,r=r+Math.imul(M,ie)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(k,oe)|0,r=r+Math.imul(k,ae)|0,r=r+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,n=n+Math.imul(w,le)|0,r=r+Math.imul(w,de)|0,r=r+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0,n=n+Math.imul(v,ue)|0,r=r+Math.imul(v,fe)|0,r=r+Math.imul(g,ue)|0,o=o+Math.imul(g,fe)|0,n=n+Math.imul(h,he)|0,r=r+Math.imul(h,me)|0,r=r+Math.imul(m,he)|0,o=o+Math.imul(m,me)|0;var Ce=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,q),r=Math.imul(B,J),r=r+Math.imul(j,q)|0,o=Math.imul(j,J),n=n+Math.imul(A,K)|0,r=r+Math.imul(A,X)|0,r=r+Math.imul(P,K)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(E,Q)|0,r=r+Math.imul(E,ee)|0,r=r+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(L,ie)|0,r=r+Math.imul(L,ne)|0,r=r+Math.imul(I,ie)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(C,oe)|0,r=r+Math.imul(C,ae)|0,r=r+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(k,le)|0,r=r+Math.imul(k,de)|0,r=r+Math.imul(S,le)|0,o=o+Math.imul(S,de)|0,n=n+Math.imul(w,ue)|0,r=r+Math.imul(w,fe)|0,r=r+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(v,he)|0,r=r+Math.imul(v,me)|0,r=r+Math.imul(g,he)|0,o=o+Math.imul(g,me)|0;var Me=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,K),r=Math.imul(B,X),r=r+Math.imul(j,K)|0,o=Math.imul(j,X),n=n+Math.imul(A,Q)|0,r=r+Math.imul(A,ee)|0,r=r+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(E,ie)|0,r=r+Math.imul(E,ne)|0,r=r+Math.imul(O,ie)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(L,oe)|0,r=r+Math.imul(L,ae)|0,r=r+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(C,le)|0,r=r+Math.imul(C,de)|0,r=r+Math.imul(M,le)|0,o=o+Math.imul(M,de)|0,n=n+Math.imul(k,ue)|0,r=r+Math.imul(k,fe)|0,r=r+Math.imul(S,ue)|0,o=o+Math.imul(S,fe)|0,n=n+Math.imul(w,he)|0,r=r+Math.imul(w,me)|0,r=r+Math.imul(_,he)|0,o=o+Math.imul(_,me)|0;var Ne=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(B,Q),r=Math.imul(B,ee),r=r+Math.imul(j,Q)|0,o=Math.imul(j,ee),n=n+Math.imul(A,ie)|0,r=r+Math.imul(A,ne)|0,r=r+Math.imul(P,ie)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(E,oe)|0,r=r+Math.imul(E,ae)|0,r=r+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(L,le)|0,r=r+Math.imul(L,de)|0,r=r+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0,n=n+Math.imul(C,ue)|0,r=r+Math.imul(C,fe)|0,r=r+Math.imul(M,ue)|0,o=o+Math.imul(M,fe)|0,n=n+Math.imul(k,he)|0,r=r+Math.imul(k,me)|0,r=r+Math.imul(S,he)|0,o=o+Math.imul(S,me)|0;var Le=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(B,ie),r=Math.imul(B,ne),r=r+Math.imul(j,ie)|0,o=Math.imul(j,ne),n=n+Math.imul(A,oe)|0,r=r+Math.imul(A,ae)|0,r=r+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(E,le)|0,r=r+Math.imul(E,de)|0,r=r+Math.imul(O,le)|0,o=o+Math.imul(O,de)|0,n=n+Math.imul(L,ue)|0,r=r+Math.imul(L,fe)|0,r=r+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(C,he)|0,r=r+Math.imul(C,me)|0,r=r+Math.imul(M,he)|0,o=o+Math.imul(M,me)|0;var Ie=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(B,oe),r=Math.imul(B,ae),r=r+Math.imul(j,oe)|0,o=Math.imul(j,ae),n=n+Math.imul(A,le)|0,r=r+Math.imul(A,de)|0,r=r+Math.imul(P,le)|0,o=o+Math.imul(P,de)|0,n=n+Math.imul(E,ue)|0,r=r+Math.imul(E,fe)|0,r=r+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(L,he)|0,r=r+Math.imul(L,me)|0,r=r+Math.imul(I,he)|0,o=o+Math.imul(I,me)|0;var De=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(B,le),r=Math.imul(B,de),r=r+Math.imul(j,le)|0,o=Math.imul(j,de),n=n+Math.imul(A,ue)|0,r=r+Math.imul(A,fe)|0,r=r+Math.imul(P,ue)|0,o=o+Math.imul(P,fe)|0,n=n+Math.imul(E,he)|0,r=r+Math.imul(E,me)|0,r=r+Math.imul(O,he)|0,o=o+Math.imul(O,me)|0;var Ee=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,ue),r=Math.imul(B,fe),r=r+Math.imul(j,ue)|0,o=Math.imul(j,fe),n=n+Math.imul(A,he)|0,r=r+Math.imul(A,me)|0,r=r+Math.imul(P,he)|0,o=o+Math.imul(P,me)|0;var Oe=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,he),r=Math.imul(B,me),r=r+Math.imul(j,he)|0,o=Math.imul(j,me);var Fe=(d+n|0)+((8191&r)<<13)|0;return d=(o+(r>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,l[0]=be,l[1]=ve,l[2]=ge,l[3]=ye,l[4]=we,l[5]=_e,l[6]=xe,l[7]=ke,l[8]=Se,l[9]=Te,l[10]=Ce,l[11]=Me,l[12]=Ne,l[13]=Le,l[14]=Ie,l[15]=De,l[16]=Ee,l[17]=Oe,l[18]=Fe,0!==d&&(l[19]=d,i.length++),i};function y(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,l=Math.min(o,t.length-1),d=Math.max(0,o-e.length+1);d<=l;d++){var c=o-d,u=0|e.words[c],f=0|t.words[d],p=u*f,h=67108863&p;a=a+(p/67108864|0)|0,h=h+s|0,s=67108863&h,a=a+(h>>>26)|0,r+=a>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i._strip()}function w(e,t,i){return y(e,t,i)}function _(e,t){this.x=e,this.y=t}Math.imul||(g=v),o.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?g(this,e,t):n<63?v(this,e,t):n<1024?y(this,e,t):w(this,e,t),i},_.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},_.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},_.prototype.permute=function(e,t,i,n,r,o){for(var a=0;a<o;a++)n[a]=t[e[a]],r[a]=i[e[a]]},_.prototype.transform=function(e,t,i,n,r,o){this.permute(o,e,t,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),d=Math.sin(2*Math.PI/s),c=0;c<r;c+=s)for(var u=l,f=d,p=0;p<a;p++){var h=i[c+p],m=n[c+p],b=i[c+p+a],v=n[c+p+a],g=u*b-f*v;v=u*v+f*b,b=g,i[c+p]=h+b,n[c+p]=m+v,i[c+p+a]=h-b,n[c+p+a]=m-v,p!==s&&(g=l*u-d*f,f=l*f+d*u,u=g)}},_.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},_.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},_.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},_.prototype.convert13b=function(e,t,i,r){for(var o=0,a=0;a<t;a++)o+=0|e[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<r;++a)i[a]=0;n(0===o),n(0===(-8192&o))},_.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},_.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),d=new Array(n),c=new Array(n),u=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,d,n),this.transform(a,o,s,l,n,r),this.transform(d,o,c,u,n,r);for(var p=0;p<n;p++){var h=s[p]*c[p]-l[p]*u[p];l[p]=s[p]*u[p]+l[p]*c[p],s[p]=h}return this.conjugate(s,l,n),this.transform(s,l,f,o,n,r),this.conjugate(f,o,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),w(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"===typeof e),n(e<67108864);for(var i=0,r=0;r<this.length;r++){var o=(0|this.words[r])*e,a=(67108863&o)+(67108863&i);i>>=26,i+=o/67108864|0,i+=a>>>26,this.words[r]=67108863&a}return 0!==i&&(this.words[r]=i,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=b(e);if(0===t.length)return new o(1);for(var i=this,n=0;n<t.length;n++,i=i.sqr())if(0!==t[n])break;if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<i;this.words[t]=l|a,a=s>>>26-i}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,i){var r;n("number"===typeof e&&e>=0),r=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=i;if(r-=a,r=Math.max(0,r),l){for(var d=0;d<a;d++)l.words[d]=this.words[d];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,d=0;d<this.length;d++)this.words[d]=this.words[d+a];else this.words[0]=0,this.length=1;var c=0;for(d=this.length-1;d>=0&&(0!==c||d>=r);d--){var u=0|this.words[d];this.words[d]=c<<26-o|u>>>o,c=u&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,i){var r,o,a=e.length+i;this._expand(a);var s=0;for(r=0;r<e.length;r++){o=(0|this.words[r+i])+s;var l=(0|e.words[r])*t;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+s,s=o>>26,this.words[r+i]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,r=0;r<this.length;r++)o=-(0|this.words[r])+s,s=o>>26,this.words[r]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var i=this.length-e.length,n=this.clone(),r=e,a=0|r.words[r.length-1],s=this._countBits(a);i=26-s,0!==i&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var l,d=n.length-r.length;if("mod"!==t){l=new o(null),l.length=d+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,d);0===u.negative&&(n=u,l&&(l.words[d]=1));for(var f=d-1;f>=0;f--){var p=67108864*(0|n.words[r.length+f])+(0|n.words[r.length+f-1]);p=Math.min(p/a|0,67108863),n._ishlnsubmul(r,p,f);while(0!==n.negative)p--,n.negative=0,n._ishlnsubmul(r,1,f),n.isZero()||(n.negative^=1);l&&(l.words[f]=p)}return l&&l._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(e)),{div:r,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var r,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=(1<<26)%e,r=0,o=this.length-1;o>=0;o--)r=(i*r+(0|this.words[o]))%e;return t?-r:r},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*i;this.words[r]=o/e|0,i=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();var r=new o(1),a=new o(0),s=new o(0),l=new o(1),d=0;while(t.isEven()&&i.isEven())t.iushrn(1),i.iushrn(1),++d;var c=i.clone(),u=t.clone();while(!t.isZero()){for(var f=0,p=1;0===(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0){t.iushrn(f);while(f-- >0)(r.isOdd()||a.isOdd())&&(r.iadd(c),a.isub(u)),r.iushrn(1),a.iushrn(1)}for(var h=0,m=1;0===(i.words[0]&m)&&h<26;++h,m<<=1);if(h>0){i.iushrn(h);while(h-- >0)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(u)),s.iushrn(1),l.iushrn(1)}t.cmp(i)>=0?(t.isub(i),r.isub(s),a.isub(l)):(i.isub(t),s.isub(r),l.isub(a))}return{a:s,b:l,gcd:i.iushln(d)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();var r,a=new o(1),s=new o(0),l=i.clone();while(t.cmpn(1)>0&&i.cmpn(1)>0){for(var d=0,c=1;0===(t.words[0]&c)&&d<26;++d,c<<=1);if(d>0){t.iushrn(d);while(d-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}for(var u=0,f=1;0===(i.words[0]&f)&&u<26;++u,f<<=1);if(u>0){i.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}t.cmp(i)>=0?(t.isub(i),a.isub(s)):(i.isub(t),s.isub(a))}return r=0===t.cmpn(1)?a:s,r.cmpn(0)<0&&r.iadd(e),r},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);do{while(t.isEven())t.iushrn(1);while(i.isEven())i.iushrn(1);var r=t.cmp(i);if(r<0){var o=t;t=i,i=o}else if(0===r||0===i.cmpn(1))break;t.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new N(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function k(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function L(e){N.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},k.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),t=i.bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},k.prototype.split=function(e,t){e.iushrn(this.n,0,t)},k.prototype.imulK=function(e){return e.imul(this.k)},r(S,k),S.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(T,k),r(C,k),r(M,k),M.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(x[e])return x[e];var t;if("k256"===e)t=new S;else if("p224"===e)t=new T;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return x[e]=t,t},N.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},N.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},N.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},N.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},N.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},N.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},N.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},N.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},N.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},N.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},N.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},N.prototype.isqr=function(e){return this.imul(e,e.clone())},N.prototype.sqr=function(e){return this.mul(e,e)},N.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}var r=this.m.subn(1),a=0;while(!r.isZero()&&0===r.andln(1))a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),l=s.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,d).cmp(l))c.redIAdd(l);var u=this.pow(c,r),f=this.pow(e,r.addn(1).iushrn(1)),p=this.pow(e,r),h=a;while(0!==p.cmp(s)){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<h);var v=this.pow(u,new o(1).iushln(h-b-1));f=f.redMul(v),u=v.redSqr(),p=p.redMul(u),h=b}return f},N.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},N.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],s=0,l=0,d=t.bitLength()%26;for(0===d&&(d=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=d-1;u>=0;u--){var f=c>>u&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==s?(s<<=1,s|=f,l++,(l===i||0===r&&0===u)&&(a=this.mul(a,n[s]),l=0,s=0)):l=0}d=26}return a},N.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},N.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new L(e)},r(L,N),L.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},L.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},L.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},L.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}}(e,this)},15037:function(e,t,i){var n;function r(e){this.rand=e}if(e.exports=function(e){return n||(n=new r(null)),n.generate(e)},e.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=i(73776);if("function"!==typeof o.randomBytes)throw new Error("Not supported");r.prototype._rand=function(e){return o.randomBytes(e)}}catch(a){}},50462:function(e,t,i){var n=i(92861).Buffer;function r(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,i=new Array(t),r=0;r<t;r++)i[r]=e.readUInt32BE(4*r);return i}function o(e){for(var t=0;t<e.length;e++)e[t]=0}function a(e,t,i,n,r){for(var o,a,s,l,d=i[0],c=i[1],u=i[2],f=i[3],p=e[0]^t[0],h=e[1]^t[1],m=e[2]^t[2],b=e[3]^t[3],v=4,g=1;g<r;g++)o=d[p>>>24]^c[h>>>16&255]^u[m>>>8&255]^f[255&b]^t[v++],a=d[h>>>24]^c[m>>>16&255]^u[b>>>8&255]^f[255&p]^t[v++],s=d[m>>>24]^c[b>>>16&255]^u[p>>>8&255]^f[255&h]^t[v++],l=d[b>>>24]^c[p>>>16&255]^u[h>>>8&255]^f[255&m]^t[v++],p=o,h=a,m=s,b=l;return o=(n[p>>>24]<<24|n[h>>>16&255]<<16|n[m>>>8&255]<<8|n[255&b])^t[v++],a=(n[h>>>24]<<24|n[m>>>16&255]<<16|n[b>>>8&255]<<8|n[255&p])^t[v++],s=(n[m>>>24]<<24|n[b>>>16&255]<<16|n[p>>>8&255]<<8|n[255&h])^t[v++],l=(n[b>>>24]<<24|n[p>>>16&255]<<16|n[h>>>8&255]<<8|n[255&m])^t[v++],o>>>=0,a>>>=0,s>>>=0,l>>>=0,[o,a,s,l]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],n=[],r=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var d=s^s<<1^s<<2^s<<3^s<<4;d=d>>>8^255&d^99,i[a]=d,n[d]=a;var c=e[a],u=e[c],f=e[u],p=257*e[d]^16843008*d;r[0][a]=p<<24|p>>>8,r[1][a]=p<<16|p>>>16,r[2][a]=p<<8|p>>>24,r[3][a]=p,p=16843009*f^65537*u^257*c^16843008*a,o[0][d]=p<<24|p>>>8,o[1][d]=p<<16|p>>>16,o[2][d]=p<<8|p>>>24,o[3][d]=p,0===a?a=s=1:(a=c^e[e[e[f^c]]],s^=e[e[s]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:r,INV_SUB_MIX:o}}();function d(e){this._key=r(e),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,n=4*(i+1),r=[],o=0;o<t;o++)r[o]=e[o];for(o=t;o<n;o++){var a=r[o-1];o%t===0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t===4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),r[o]=r[o-t]^a}for(var d=[],c=0;c<n;c++){var u=n-c,f=r[u-(c%4?0:4)];d[c]=c<4||u<=4?f:l.INV_SUB_MIX[0][l.SBOX[f>>>24]]^l.INV_SUB_MIX[1][l.SBOX[f>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[f>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&f]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(e){return e=r(e),a(e,this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},d.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=n.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},d.prototype.decryptBlock=function(e){e=r(e);var t=e[1];e[1]=e[3],e[3]=t;var i=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(i[0],0),o.writeUInt32BE(i[3],4),o.writeUInt32BE(i[2],8),o.writeUInt32BE(i[1],12),o},d.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=d},92356:function(e,t,i){var n=i(50462),r=i(92861).Buffer,o=i(56168),a=i(56698),s=i(25892),l=i(30295),d=i(45122);function c(e,t){var i=0;e.length!==t.length&&i++;for(var n=Math.min(e.length,t.length),r=0;r<n;++r)i+=e[r]^t[r];return i}function u(e,t,i){if(12===t.length)return e._finID=r.concat([t,r.from([0,0,0,1])]),r.concat([t,r.from([0,0,0,2])]);var n=new s(i),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(r.alloc(a,0))),n.update(r.alloc(8,0));var l=8*o,c=r.alloc(8);c.writeUIntBE(l,0,8),n.update(c),e._finID=n.state;var u=r.from(e._finID);return d(u),u}function f(e,t,i,a){o.call(this);var l=r.alloc(4,0);this._cipher=new n.AES(t);var d=this._cipher.encryptBlock(l);this._ghash=new s(d),i=u(this,i,d),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=r.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&c(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},f.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=f},1241:function(e,t,i){var n=i(25799),r=i(36171),o=i(3219);function a(){return Object.keys(o)}t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=r.createDecipher,t.createDecipheriv=t.Decipheriv=r.createDecipheriv,t.listCiphers=t.getCiphers=a},36171:function(e,t,i){var n=i(92356),r=i(92861).Buffer,o=i(530),a=i(50650),s=i(56168),l=i(50462),d=i(68078),c=i(56698);function u(e,t,i){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new l.AES(t),this._prev=r.from(i),this._mode=e,this._autopadding=!0}function f(){this.cache=r.allocUnsafe(0)}function p(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var i=-1;while(++i<t)if(e[i+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function h(e,t,i){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof i&&(i=r.from(i)),"GCM"!==s.mode&&i.length!==s.iv)throw new TypeError("invalid iv length "+i.length);if("string"===typeof t&&(t=r.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,i,!0):"auth"===s.type?new n(s.module,t,i,!0):new u(s.module,t,i)}function m(e,t){var i=o[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=d(t,!1,i.key,i.iv);return h(e,n.key,n.iv)}c(u,s),u.prototype._update=function(e){var t,i;this._cache.add(e);var n=[];while(t=this._cache.get(this._autopadding))i=this._mode.decrypt(this,t),n.push(i);return r.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return p(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=r.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=m,t.createDecipheriv=h},25799:function(e,t,i){var n=i(530),r=i(92356),o=i(92861).Buffer,a=i(50650),s=i(56168),l=i(50462),d=i(68078),c=i(56698);function u(e,t,i){s.call(this),this._cache=new p,this._cipher=new l.AES(t),this._prev=o.from(i),this._mode=e,this._autopadding=!0}c(u,s),u.prototype._update=function(e){var t,i;this._cache.add(e);var n=[];while(t=this._cache.get())i=this._mode.encrypt(this,t),n.push(i);return o.concat(n)};var f=o.alloc(16,16);function p(){this.cache=o.allocUnsafe(0)}function h(e,t,i){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"===typeof i&&(i=o.from(i)),"GCM"!==s.mode&&i.length!==s.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===s.type?new a(s.module,t,i):"auth"===s.type?new r(s.module,t,i):new u(s.module,t,i)}function m(e,t){var i=n[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=d(t,!1,i.key,i.iv);return h(e,r.key,r.iv)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},p.prototype.add=function(e){this.cache=o.concat([this.cache,e])},p.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},p.prototype.flush=function(){var e=16-this.cache.length,t=o.allocUnsafe(e),i=-1;while(++i<e)t.writeUInt8(e,i);return o.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=m},25892:function(e,t,i){var n=i(92861).Buffer,r=n.alloc(16,0);function o(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){var t=-1;while(++t<e.length)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){var e,t,i,n=o(this.h),r=[0,0,0,0],s=-1;while(++s<128){for(t=0!==(this.state[~~(s/8)]&1<<7-s%8),t&&(r[0]^=n[0],r[1]^=n[1],r[2]^=n[2],r[3]^=n[3]),i=0!==(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=a(r)},s.prototype.update=function(e){var t;this.cache=n.concat([this.cache,e]);while(this.cache.length>=16)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},45122:function(e){function t(e){var t,i=e.length;while(i--){if(t=e.readUInt8(i),255!==t){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}e.exports=t},92884:function(e,t,i){var n=i(30295);t.encrypt=function(e,t){var i=n(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},t.decrypt=function(e,t){var i=e._prev;e._prev=t;var r=e._cipher.decryptBlock(t);return n(r,i)}},46383:function(e,t,i){var n=i(92861).Buffer,r=i(30295);function o(e,t,i){var o=t.length,a=r(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,i?t:a]),a}t.encrypt=function(e,t,i){var r,a=n.allocUnsafe(0);while(t.length){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,i)]);break}r=e._cache.length,a=n.concat([a,o(e,t.slice(0,r),i)]),t=t.slice(r)}return a}},55264:function(e,t,i){var n=i(92861).Buffer;function r(e,t,i){var n,r,a,s=-1,l=8,d=0;while(++s<l)n=e._cipher.encryptBlock(e._prev),r=t&1<<7-s?128:0,a=n[0]^r,d+=(128&a)>>s%8,e._prev=o(e._prev,i?r:a);return d}function o(e,t){var i=e.length,r=-1,o=n.allocUnsafe(e.length);e=n.concat([e,n.from([t])]);while(++r<i)o[r]=e[r]<<1|e[r+1]>>7;return o}t.encrypt=function(e,t,i){var o=t.length,a=n.allocUnsafe(o),s=-1;while(++s<o)a[s]=r(e,t[s],i);return a}},86975:function(e,t,i){var n=i(92861).Buffer;function r(e,t,i){var r=e._cipher.encryptBlock(e._prev),o=r[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([i?t:o])]),o}t.encrypt=function(e,t,i){var o=t.length,a=n.allocUnsafe(o),s=-1;while(++s<o)a[s]=r(e,t[s],i);return a}},63053:function(e,t,i){var n=i(30295),r=i(92861).Buffer,o=i(45122);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var s=16;t.encrypt=function(e,t){var i=Math.ceil(t.length/s),o=e._cache.length;e._cache=r.concat([e._cache,r.allocUnsafe(i*s)]);for(var l=0;l<i;l++){var d=a(e),c=o+l*s;e._cache.writeUInt32BE(d[0],c+0),e._cache.writeUInt32BE(d[1],c+4),e._cache.writeUInt32BE(d[2],c+8),e._cache.writeUInt32BE(d[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},52632:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},530:function(e,t,i){var n={ECB:i(52632),CBC:i(92884),CFB:i(46383),CFB8:i(86975),CFB1:i(55264),OFB:i(46843),CTR:i(63053),GCM:i(63053)},r=i(3219);for(var o in r)r[o].module=n[r[o].mode];e.exports=r},46843:function(e,t,i){var n=i(30295);function r(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){while(e._cache.length<t.length)e._cache=Buffer.concat([e._cache,r(e)]);var i=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,i)}},50650:function(e,t,i){var n=i(50462),r=i(92861).Buffer,o=i(56168),a=i(56698);function s(e,t,i,a){o.call(this),this._cipher=new n.AES(t),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._mode=e}a(s,o),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s},30125:function(e,t,i){var n=i(84050),r=i(1241),o=i(530),a=i(32438),s=i(68078);function l(e,t){var i,n;if(e=e.toLowerCase(),o[e])i=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");i=8*a[e].key,n=a[e].iv}var r=s(t,!1,i,n);return c(e,r.key,r.iv)}function d(e,t){var i,n;if(e=e.toLowerCase(),o[e])i=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");i=8*a[e].key,n=a[e].iv}var r=s(t,!1,i,n);return u(e,r.key,r.iv)}function c(e,t,i){if(e=e.toLowerCase(),o[e])return r.createCipheriv(e,t,i);if(a[e])return new n({key:t,iv:i,mode:e});throw new TypeError("invalid suite type")}function u(e,t,i){if(e=e.toLowerCase(),o[e])return r.createDecipheriv(e,t,i);if(a[e])return new n({key:t,iv:i,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function f(){return Object.keys(a).concat(r.getCiphers())}t.createCipher=t.Cipher=l,t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=d,t.createDecipheriv=t.Decipheriv=u,t.listCiphers=t.getCiphers=f},84050:function(e,t,i){var n=i(56168),r=i(29560),o=i(56698),a=i(92861).Buffer,s={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function l(e){n.call(this);var t,i=e.mode.toLowerCase(),r=s[i];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==i&&"des-ede-cbc"!==i||(o=a.concat([o,o.slice(0,8)]));var l=e.iv;a.isBuffer(l)||(l=a.from(l)),this._des=r.create({key:o,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=l,o(l,n),l.prototype._update=function(e){return a.from(this._des.update(e))},l.prototype._final=function(){return a.from(this._des.final())}},32438:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},67332:function(e,t,i){var n=i(39404),r=i(53209);function o(e){var t=a(e),i=t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed();return{blinder:i,unblinder:t.invm(e.modulus)}}function a(e){var t,i=e.modulus.byteLength();do{t=new n(r(i))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var i=o(t),r=t.modulus.byteLength(),a=new n(e).mul(i.blinder).umod(t.modulus),s=a.toRed(n.mont(t.prime1)),l=a.toRed(n.mont(t.prime2)),d=t.coefficient,c=t.prime1,u=t.prime2,f=s.redPow(t.exponent1).fromRed(),p=l.redPow(t.exponent2).fromRed(),h=f.isub(p).imul(d).umod(c).imul(u);return p.iadd(h).imul(i.unblinder).umod(t.modulus).toArrayLike(Buffer,"be",r)}s.getr=a,e.exports=s},55715:function(e,t,i){"use strict";e.exports=i(62951)},20:function(e,t,i){"use strict";var n=i(92861).Buffer,r=i(47108),o=i(28399),a=i(56698),s=i(35359),l=i(74847),d=i(62951);function c(e){o.Writable.call(this);var t=d[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){o.Writable.call(this);var t=d[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new c(e)}function p(e){return new u(e)}Object.keys(d).forEach((function(e){d[e].id=n.from(d[e].id,"hex"),d[e.toLowerCase()]=d[e]})),a(c,o.Writable),c.prototype._write=function(e,t,i){this._hash.update(e),i()},c.prototype.update=function(e,t){return this._hash.update("string"===typeof e?n.from(e,t):e),this},c.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),n=s(i,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(u,o.Writable),u.prototype._write=function(e,t,i){this._hash.update(e),i()},u.prototype.update=function(e,t){return this._hash.update("string"===typeof e?n.from(e,t):e),this},u.prototype.verify=function(e,t,i){var r="string"===typeof t?n.from(t,i):t;this.end();var o=this._hash.digest();return l(r,o,e,this._signType,this._tag)},e.exports={Sign:f,Verify:p,createSign:f,createVerify:p}},35359:function(e,t,i){"use strict";var n=i(92861).Buffer,r=i(83507),o=i(67332),a=i(86729).ec,s=i(39404),l=i(78170),d=i(64589),c=1;function u(e,t,i,r,a){var s=l(t);if(s.curve){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");return f(e,s)}if("dsa"===s.type){if("dsa"!==r)throw new Error("wrong private key type");return p(e,s,i)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");if(void 0!==t.padding&&t.padding!==c)throw new Error("illegal or unsupported padding mode");e=n.concat([a,e]);var d=s.modulus.byteLength(),u=[0,1];while(e.length+u.length+1<d)u.push(255);u.push(0);var h=-1;while(++h<e.length)u.push(e[h]);var m=o(u,s);return m}function f(e,t){var i=d[t.curve.join(".")];if(!i)throw new Error("unknown curve "+t.curve.join("."));var r=new a(i),o=r.keyFromPrivate(t.privateKey),s=o.sign(e);return n.from(s.toDER())}function p(e,t,i){var n,r=t.params.priv_key,o=t.params.p,a=t.params.q,l=t.params.g,d=new s(0),c=b(e,a).mod(a),u=!1,f=m(r,a,e,i);while(!1===u)n=g(a,f,i),d=y(l,n,o,a),u=n.invm(a).imul(c.add(r.mul(d))).mod(a),0===u.cmpn(0)&&(u=!1,d=new s(0));return h(d,u)}function h(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var i=e.length+t.length+4,r=[48,i,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}function m(e,t,i,o){if(e=n.from(e.toArray()),e.length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=i.length,l=v(i,t),d=n.alloc(s);d.fill(1);var c=n.alloc(s);return c=r(o,c).update(d).update(n.from([0])).update(e).update(l).digest(),d=r(o,c).update(d).digest(),c=r(o,c).update(d).update(n.from([1])).update(e).update(l).digest(),d=r(o,c).update(d).digest(),{k:c,v:d}}function b(e,t){var i=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&i.ishrn(n),i}function v(e,t){e=b(e,t),e=e.mod(t);var i=n.from(e.toArray());if(i.length<t.byteLength()){var r=n.alloc(t.byteLength()-i.length);i=n.concat([r,i])}return i}function g(e,t,i){var o,a;do{o=n.alloc(0);while(8*o.length<e.bitLength())t.v=r(i,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=b(o,e),t.k=r(i,t.k).update(t.v).update(n.from([0])).digest(),t.v=r(i,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function y(e,t,i,n){return e.toRed(s.mont(i)).redPow(t).fromRed().mod(n)}e.exports=u,e.exports.getKey=m,e.exports.makeKey=g},74847:function(e,t,i){"use strict";var n=i(92861).Buffer,r=i(39404),o=i(86729).ec,a=i(78170),s=i(64589);function l(e,t,i,o,s){var l=a(i);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return d(e,t,l)}if("dsa"===l.type){if("dsa"!==o)throw new Error("wrong public key type");return c(e,t,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");t=n.concat([s,t]);var u=l.modulus.byteLength(),f=[1],p=0;while(t.length+f.length+2<u)f.push(255),p+=1;f.push(0);var h=-1;while(++h<t.length)f.push(t[h]);f=n.from(f);var m=r.mont(l.modulus);e=new r(e).toRed(m),e=e.redPow(new r(l.publicExponent)),e=n.from(e.fromRed().toArray());var b=p<8?1:0;u=Math.min(e.length,f.length),e.length!==f.length&&(b=1),h=-1;while(++h<u)b|=e[h]^f[h];return 0===b}function d(e,t,i){var n=s[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var r=new o(n),a=i.data.subjectPrivateKey.data;return r.verify(t,e,a)}function c(e,t,i){var n=i.data.p,o=i.data.q,s=i.data.g,l=i.data.pub_key,d=a.signature.decode(e,"der"),c=d.s,f=d.r;u(c,o),u(f,o);var p=r.mont(n),h=c.invm(o),m=s.toRed(p).redPow(new r(t).mul(h).mod(o)).fromRed().mul(l.toRed(p).redPow(f.mul(h).mod(o)).fromRed()).mod(n).mod(o);return 0===m.cmp(f)}function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=l},30295:function(e){e.exports=function(e,t){for(var i=Math.min(e.length,t.length),n=new Buffer(i),r=0;r<i;++r)n[r]=e[r]^t[r];return n}},48287:function(e,t,i){"use strict";
1
+ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ecwappaio"]=t(require("vue")):e["ecwappaio"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__9274__){return function(){var __webpack_modules__={35003:function(e,t){var i,n,r;(function(o,a){n=[],i=a,r="function"===typeof i?i.apply(t,n):i,void 0===r||(e.exports=r)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var i,n,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(p.stack)||a.exec(p.stack),l=s&&s[1]||!1,d=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");l===c&&(i=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(d-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=i.replace(n,"$1").trim());for(var f=0;f<u.length;f++){if("interactive"===u[f].readyState)return u[f];if(u[f].src===l)return u[f];if(l===c&&u[f].innerHTML&&u[f].innerHTML.trim()===r)return u[f]}return null}}return e}))},74575:function(e,t,i){"use strict";i.d(t,{A:function(){return d}});var n=function(){var e=this,t=e._self._c;return t("el-form",{attrs:{model:e.vo}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[e.vo.parentName?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"parentName",expression:"'parentName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.vo.parentName)}})])]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" "+e._s(e.nameLabel)+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.nameLabel,rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"name",placeholder:e.$tx("common.plInputContent",{content:e.nameLabel},"请输入".concat(e.nameLabel))},model:{value:e.vo.name,callback:function(t){e.$set(e.vo,"name",t)},expression:"vo.name"}})],1)]}}])})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(" "+e._s(e.codeLabel)+" ")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.codeLabel,rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"code",placeholder:e.$tx("common.plInputContent",{content:e.codeLabel},"请输入".concat(e.codeLabel))},model:{value:e.vo.code,callback:function(t){e.$set(e.vo,"code",t)},expression:"vo.code"}},[2==e.vo.moduleLevel||3==e.vo.leafType||4==e.vo.leafType?t("el-button",{attrs:{slot:"append",icon:"el-icon-more"},on:{click:e.selectMenuIcon},slot:"append"}):e._e()],1)],1)]}}])})],1)]),1==e.vo.moduleLevel?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"columnAbbre",expression:"'columnAbbre'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("栏目简称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"description",placeholder:e.$tx("ecwplat.menuForm.fields.columnAbbreEnter","请输入栏目简称")},model:{value:e.vo.description,callback:function(t){e.$set(e.vo,"description",t)},expression:"vo.description"}})],1)]):e._e(),1!==e.vo.moduleLevel?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"menuType",expression:"'menuType'"}]},[e._v("菜单类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[e.isWflowMenus?t("div",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"approvalMenu",expression:"'approvalMenu'"}]},[e._v("审批菜单组")]):t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuType","菜单类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"leafFlag",placeholder:e.$tx("ecwplat.menuForm.fields.selectmenuType","请选择菜单类型")},model:{value:e.vo.leafFlag,callback:function(t){e.$set(e.vo,"leafFlag",t)},expression:"vo.leafFlag"}},e._l(e.leafFlagOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}],null,!1,2896587604)})],1)]):e._e(),e.isWflowMenus?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"moduleSubmenu",expression:"'moduleSubmenu'"}]},[e._v("审批模块子菜单")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.moduleSubmenu","审批模块子菜单"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-select",{staticStyle:{width:"732px"},attrs:{name:"wflowMenuType",placeholder:e.$tx("ecwplat.menuForm.fields.selectModuleSubmenu","请选择审批模块子菜单")},on:{change:e.updateMenuItemView},model:{value:e.wflowMenuType,callback:function(t){e.wflowMenuType=t},expression:"wflowMenuType"}},e._l(e.wflowMenuTypeOptions,(function(e,i){return t("el-option",{key:i,attrs:{label:e.text,value:e.value}})})),1)],1)]}}],null,!1,2177602340)}),t("el-link",{staticStyle:{"margin-left":"10px",right:"0px"},attrs:{underline:!1},on:{click:e.previewSubMenuItems}},[e._v("查看审批菜单示例")])],1)]):e._e(),!e.isWflowMenus||1!=e.wflowMenuType&&2!=e.wflowMenuType?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"myCreatedURL",expression:"'myCreatedURL'"}]},[e._v("我创建的列表URL")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.myCreatedURL","我创建的列表URL"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"listMyCratedPageUrl",placeholder:e.$tx("ecwplat.menuForm.fields.enterMyCreatedURL","请输入我创建的列表URL"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.passenger.listMyCratedPageUrl,callback:function(t){e.$set(e.vo.passenger,"listMyCratedPageUrl",t)},expression:"vo.passenger.listMyCratedPageUrl"}})],1)]}}],null,!1,1791232420)})],1)]),e.isWflowMenus?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"listURL",expression:"'listURL'"}],attrs:{dataType:e.$tx("ecwplat.menuForm.allFile","全部")}},[e._v(e._s(this.$tx("ecwplat.menuForm.allFile","全部"))+"列表URL")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.allFile","全部")+"列表URL",rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"listAllFilepageUrl",placeholder:e.$tx("ecwplat.menuForm.fields.enterListURL",{dataType:e.$tx("ecwplat.menuForm.allFile","全部")},"{dataType}列表URL"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.passenger.listAllFilepageUrl,callback:function(t){e.$set(e.vo.passenger,"listAllFilepageUrl",t)},expression:"vo.passenger.listAllFilepageUrl"}})],1)]}}],null,!1,1742495918)})],1)]):e._e(),e.isWflowMenus&&1==e.wflowMenuType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"approvalCode",expression:"'approvalCode'"}]},[e._v("审批模块业务代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.approvalCode","审批模块业务代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{placeholder:e.$tx("ecwplat.menuForm.fields.enterApprovalCode","请输入审批模块业务代码,例:fawen,shouwen,hytz")},model:{value:e.vo.passenger.busiCode,callback:function(t){e.$set(e.vo.passenger,"busiCode",t)},expression:"vo.passenger.busiCode"}})],1)]}}],null,!1,471353048)})],1)]):e._e(),e.refresh||1!==e.vo.moduleLevel&&(1===e.vo.moduleLevel||1!==e.vo.leafFlag)||e.isWflowMenus?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"pageContentType",expression:"'pageContentType'"}]},[e._v("页面内容类型")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.pageContentType","页面内容类型"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"leafType",placeholder:e.$tx("ecwplat.menuForm.fields.selectPageContentType","请选择页面内容类型")},model:{value:e.vo.leafType,callback:function(t){e.$set(e.vo,"leafType",t)},expression:"vo.leafType"}},e._l(e.leafTypeOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}],null,!1,2308690411)})],1)]),1!==e.vo.leafFlag||e.isWflowMenus?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"openType",expression:"'openType'"}]},[e._v("打开方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.openType","打开方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"target",placeholder:e.$tx("ecwplat.menuForm.fields.selectOpenType","请选择打开方式")},model:{value:e.vo.target,callback:function(t){e.$set(e.vo,"target",t)},expression:"vo.target"}},e._l(e.targetOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}],null,!1,859240764)})],1)]),e.vo.moduleLevel>=2&&0===e.vo.leafFlag&&!e.isWflowMenus?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"submenuStyle",expression:"'submenuStyle'"}]},[e._v("子菜单样式")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.submenuStyle","子菜单样式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"target",placeholder:e.$tx("ecwplat.menuForm.fields.selectSubmenuStyle","请选择子菜单样式")},model:{value:e.vo.target,callback:function(t){e.$set(e.vo,"target",t)},expression:"vo.target"}},e._l(e.targetOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}],null,!1,454132852)})],1)]):e._e(),1!==e.vo.leafFlag||1!==e.vo.leafType&&2!==e.vo.leafType&&5!==e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navName",expression:"'navName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("页面导航名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"listNavName",placeholder:e.$tx("ecwplat.menuForm.fields.navNameEnter","请输入页面导航名称")},model:{value:e.vo.listNavName,callback:function(t){e.$set(e.vo,"listNavName",t)},expression:"vo.listNavName"}})],1)]),1!==e.vo.leafFlag||3===e.vo.leafType||5===e.vo.leafType||6===e.vo.leafType||1===e.vo.leafType||e.isWflowMenus?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"menuLink",expression:"'menuLink'"}]},[e._v("菜单链接")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuLink","菜单链接"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接")},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,1000627797)})],1)]),1!==e.vo.leafFlag||1!==e.vo.leafType&&5!==e.vo.leafType&&6!==e.vo.leafType||e.isWflowMenus?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"menuLink",expression:"'menuLink'"}]},[e._v("菜单链接")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.menuLink","菜单链接"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[6===e.vo.leafType?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:e.portalPageListUrl},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}}):5===e.vo.leafType?t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:"ureport.reportDefine.list?urlsearch=reportViewType:W"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}}):t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.menuLinkEnter","请输入菜单链接"),listviewurl:"base.entityListpage.list?urlsearch=listViewType:W"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,3601479216)})],1)]),1!==e.vo.leafFlag||1!==e.vo.leafType&&2!==e.vo.leafType||e.isWflowMenus?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormat",expression:"'urlFormat'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("URL格式")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[1===e.vo.leafType?t("div",{staticStyle:{"line-height":"20px"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip1",expression:"'urlFormatTip1'"}]},[e._v('1、动态列表视图vue组件url,以英文字符"/"结尾,不包括扩展名')]),t("br"),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip2",expression:"'urlFormatTip2'"}]},[e._v("2、格式为:#/dcontent/base.jobPosition.list/")])]):e._e(),2===e.vo.leafType?t("div",{staticStyle:{"line-height":"20px"}},[t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip3",expression:"'urlFormatTip3'"}]},[e._v("1、静态列表视图vue组件文件路径,不包括文件扩展名")]),t("br"),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"urlFormatTip4",expression:"'urlFormatTip4'"}]},[e._v("2、格式为:@/wapp/workflow/wfTaskItem/myTodo")])]):e._e()])]),1===e.vo.moduleLevel||1!=e.vo.leafFlag||3!=e.vo.leafType&&4!=e.vo.leafType?e._e():t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"wfName",expression:"'wfName'"}]},[e._v("流程名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.wfName","流程名称"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"wfName",placeholder:e.$tx("ecwplat.menuForm.fields.wfNameEnter","请输入流程名称"),listviewurl:"workflow.wfdProcess.list"},model:{value:e.vo.wfName,callback:function(t){e.$set(e.vo,"wfName",t)},expression:"vo.wfName"}})],1)]}}],null,!1,223860017)})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"wfCode",expression:"'wfCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("流程编码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfCode",placeholder:e.$tx("ecwplat.menuForm.fields.wfCodeEnter","请输入流程编码")},model:{value:e.vo.wfCode,callback:function(t){e.$set(e.vo,"wfCode",t)},expression:"vo.wfCode"}})],1)]),1!==e.vo.moduleLevel&&1===e.vo.leafFlag&&3===e.vo.leafType?t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"businessCode",expression:"'businessCode'"}]},[e._v("业务代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.businessCode","业务代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"},{name:"listpage-dialog",rawName:"v-listpage-dialog"}],attrs:{name:"href",placeholder:e.$tx("ecwplat.menuForm.fields.businessCodeEnter","请输入业务代码,首字母小写"),listviewurl:"base.entityListpage.list"},model:{value:e.vo.href,callback:function(t){e.$set(e.vo,"href",t)},expression:"vo.href"}})],1)]}}],null,!1,3104104198)})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"engineUrl",expression:"'engineUrl'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("引擎(模块)URL")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfEngineUrl",placeholder:e.$tx("ecwplat.menuForm.fields.engineUrlEnter","请输入引擎(模块)URL")},model:{value:e.vo.wfEngineUrl,callback:function(t){e.$set(e.vo,"wfEngineUrl",t)},expression:"vo.wfEngineUrl"}})],1)]):e._e(),1==e.vo.moduleLevel||1!=e.vo.leafFlag||3!=e.vo.leafType&&4!=e.vo.leafType?e._e():t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stageName",expression:"'stageName'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("起始环节名称")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"wfNodeName",placeholder:e.$tx("ecwplat.menuForm.fields.stageNameEnter","请输入起始环节名称")},model:{value:e.vo.wfNodeName,callback:function(t){e.$set(e.vo,"wfNodeName",t)},expression:"vo.wfNodeName"}})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"stageCode",expression:"'stageCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("H5是否禁用")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"h5Disable"},model:{value:e.vo.h5Disable,callback:function(t){e.$set(e.vo,"h5Disable",t)},expression:"vo.h5Disable"}},[t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption1",expression:"'navOption1'"}],attrs:{label:1}},[e._v("禁用")]),t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption2",expression:"'navOption2'"}],attrs:{label:0}},[e._v("不禁用")])],1)],1)]),1==e.vo.moduleLevel?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navShow",expression:"'navShow'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("导航栏显示")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"visitType"},model:{value:e.vo.topFlag,callback:function(t){e.$set(e.vo,"topFlag",t)},expression:"vo.topFlag"}},[t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption1",expression:"'navOption1'"}],attrs:{label:1}},[e._v("显示")]),t("el-radio",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"navOption2",expression:"'navOption2'"}],attrs:{label:0}},[e._v("不显示")])],1)],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"authoType",expression:"'authoType'"}]},[e._v("授权方式")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.authoType","授权方式"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-select",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"visitType",placeholder:e.$tx("ecwplat.menuForm.fields.selectAuthoType","请选择授权方式")},model:{value:e.vo.visitType,callback:function(t){e.$set(e.vo,"visitType",t)},expression:"vo.visitType"}},e._l(e.visitTypeOptions,(function(e,i){return t("el-option",{key:i,attrs:{label:e.text,value:e.value}})})),1)],1)]}}])})],1),t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"i18nCode",expression:"'i18nCode'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("I18N代码")]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"i18nCode",placeholder:e.$tx("ecwplat.menuForm.fields.i18nCodeEnter","请输入I18N代码")},model:{value:e.vo.i18nCode,callback:function(t){e.$set(e.vo,"i18nCode",t)},expression:"vo.i18nCode"}})],1)]),0!==e.vo.visitType?t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"accessAuthorization",expression:"'accessAuthorization'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("访问授权")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("res-roles",{attrs:{"res-id":e.vo.id,"res-type":"MENU","permission-code":"VISIT","root-org-code":e.vo.orgCode,"sys-code":e.vo.sysCode,"visit-type":e.vo.visitType,"select-type":e.resRolesSelectType,change:e.handleResRolesChange,"can-edit":e.canEdit}})],1)]):e._e(),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"orderNumber",expression:"'orderNumber'"}]},[e._v("排序序号")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.orderNumber","排序序号"),rules:"required|integer|length:4"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"can-edit",rawName:"v-can-edit"}],attrs:{name:"orderNo",placeholder:e.$tx("ecwplat.menuForm.fields.orderNumberEnter","请输入4位数字排序序号"),"ecng-listpage-dialog":"",listviewurl:"base.entityListpage.list"},model:{value:e.vo.orderNo,callback:function(t){e.$set(e.vo,"orderNo",t)},expression:"vo.orderNo"}})],1)]}}])})],1),t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"status",expression:"'status'"}]},[e._v("状态")])]),t("td",{staticClass:"el-table__cell tdcont tdw33"},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.menuForm.fields.status","状态"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-radio-group",{directives:[{name:"can-edit",rawName:"v-can-edit"}],staticStyle:{width:"100%"},attrs:{name:"status",placeholder:e.$tx("ecwplat.menuForm.fields.selectstatus","请选择状态")},model:{value:e.vo.status,callback:function(t){e.$set(e.vo,"status",t)},expression:"vo.status"}},e._l(e.statusOptions,(function(i,n){return t("el-radio",{key:n,attrs:{label:i.value}},[e._v(e._s(i.text))])})),1)],1)]}}])})],1)])])])])]),t("el-dialog",{attrs:{visible:e.menuPreviewDialogVisible,"append-to-body":!0,width:"960px","close-on-click-modal":!0,title:"审批菜单组"},on:{"update:visible":function(t){e.menuPreviewDialogVisible=t}}},[t("img",{staticStyle:{width:"100%"},attrs:{src:e.wflowMenuTypeImgs["img"+e.wflowMenuType],alt:""}})]),e.iconDialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],staticClass:"icon-dialog",attrs:{visible:e.iconDialogFormVisible,"append-to-body":!0,"close-on-click-modal":!0,width:"1250px",title:e.$tx("ecwplat.menuForm.fields.menuIcon","选择菜单图标")},on:{"update:visible":function(t){e.iconDialogFormVisible=t}}},[t("Icons")],1):e._e()],1)},r=[],o={name:"MenuItemForm",components:{},props:{moduleInfo:{type:Object,default:function(){return{}}},vo:{type:Object,default:function(){return{}}},canEdit:{type:Number,default:1},newMenuType:{type:String,default:null},sys:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"menuForm",leafFlagOptions:[{value:0,text:this.$tx("ecwplat.menuForm.folder","文件夹")},{value:1,text:this.$tx("ecwplat.menuForm.menuItem","菜单项")}],statusOptions:[{value:1,text:this.$tx("ecwplat.PageBtns.enable","启用")},{value:0,text:this.$tx("ecwplat.PageBtns.disable","禁用")}],refresh:!1,iconDialogFormVisible:!1,menuPreviewDialogVisible:!1,wflowMenuType:2,wflowMenuTypeOptions:[{value:1,text:"我创建的/我处理的/全部的,左导航+页面标签子菜单"},{value:2,text:"我的申请/全部申请,页面标签子菜单"},{value:3,text:"全部/草稿/处理中/已结束,页面标签子菜单"}],wflowMenuTypeImgs:{img1:i(413),img2:i(59174),img3:i(98191)},wflowMenuItems1:[{code:"MyCreated",name:this.$tx("ecwplat.menuForm.myCreated","我创建的"),text:this.$tx("ecwplat.menuForm.fourStatus","(全部、草稿、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Draft",name:"草稿",urlsearch:"status:0"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]},{code:"MyProcessed",name:this.$tx("ecwplat.menuForm.myProcessed","我处理的"),text:this.$tx("ecwplat.menuForm.twoStatus","(待办、已办)"),children:[{code:"Todo",name:"待办",listpageUrl:"#/dcontent/workflow.wfTaskItem.myTodo/?urlsearch=module:[busiCode]"},{code:"Done",name:"已办",listpageUrl:"#/dcontent/workflow.wfTaskItem.myDone/?urlsearch=module:[busiCode]"}]},{code:"AllFile",name:this.$tx("ecwplat.menuForm.allFile","全部"),text:this.$tx("ecwplat.menuForm.threeStatus","(全部、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]}],wflowMenuItems2:[{code:"AllFile",name:"全部申请",children:[{code:"MyCreated",name:"我的申请",urlsearch:"status<:2"},{code:"AllFile",name:"全部申请",urlsearch:"status<:2"}]}],wflowMenuItems3:[{code:"AllFile",name:this.$tx("ecwplat.menuForm.allFile","全部"),text:this.$tx("ecwplat.menuForm.fourStatus","(全部、草稿、处理中、已结束)"),children:[{code:"All",name:"全部",urlsearch:"status<:2"},{code:"Draft",name:"草稿",urlsearch:"status:0"},{code:"Doing",name:"处理中",urlsearch:"status:1"},{code:"Done",name:"已结束",urlsearch:"status:2"}]}],productCodeAll:this.$store.getters.productCodeAll,resRolesSelectType:""}},computed:{nameLabel:function(){return 1===this.vo.moduleLevel?this.$tx("ecwplat.menuForm.columnName","栏目名称"):this.$tx("ecwplat.menuForm.menuName","菜单名称")},codeLabel:function(){return 1===this.vo.moduleLevel?this.$tx("ecwplat.menuForm.columnCode","栏目编码"):this.$tx("ecwplat.menuForm.menuCode","菜单编码")},targetOptions:function(){return 1===this.vo.moduleLevel||1===this.vo.leafFlag?[{value:"mainpage",text:this.$tx("ecwplat.menuForm.lnavWork","左导航+工作区")},{value:"content",text:this.$tx("ecwplat.menuForm.work","工作区")},{value:"_blank",text:this.$tx("ecwplat.menuForm.popUp","弹出窗口")},{value:"_top",text:this.$tx("ecwplat.menuForm.topWAin","顶层窗口")}]:this.vo.moduleLevel>=2&&0===this.vo.leafFlag?[{value:"leftMenuItem",text:this.$tx("ecwplat.menuForm.leftMenu","左侧菜单顶")},{value:"rightLabel",text:this.$tx("ecwplat.menuForm.rightLabel","右侧页面标签")}]:[]},leafTypeOptions:function(){if(1===this.vo.moduleLevel)return[{value:null,text:this.$tx("ecwplat.menuForm.not","无")},{value:0,text:this.$tx("ecwplat.menuForm.regularURL","普通URL")},{value:1,text:this.$tx("ecwplat.menuForm.dynamicListPage","动态列表页面")},{value:2,text:this.$tx("ecwplat.menuForm.staticListPage","静态列表页面")},{value:6,text:this.$tx("ecwplat.menuForm.superiorName","动态门户")}];if(1===this.vo.leafFlag){var e=[{value:0,text:this.$tx("ecwplat.menuForm.regularURL","普通URL")},{value:1,text:this.$tx("ecwplat.menuForm.dynamicList","动态列表")},{value:2,text:this.$tx("ecwplat.menuForm.staticList","静态列表")},{value:6,text:this.$tx("ecwplat.menuForm.superiorName","动态门户")},{value:5,text:this.$tx("ecwplat.menuForm.statisticalReport","统计报表")}];return this.sys&&this.sys.passenger&&0!==this.sys.passenger.workflow&&(e.push({value:3,text:this.$tx("ecwplat.menuForm.standardDraft","起草文件(标准)")}),e.push({value:4,text:this.$tx("ecwplat.menuForm.customizedDraft","起草文件(定制)")})),e}return[]},visitTypeOptions:function(){var e=[{value:0,text:this.$tx("ecwplat.menuForm.Unrestricted","不限制")},{value:1,text:this.$tx("ecwplat.menuForm.designatedRole","指定角色")}];return"plat"===this.vo.orgCode&&-1!==this.productCodeAll.indexOf(this.vo.sysCode)||(e.push({value:2,text:this.$tx("ecwplat.menuForm.desiPerson","指定机构人员")}),e.push({value:3,text:this.$tx("ecwplat.menuForm.specifyGroup","指定群组")})),e},portalPageListUrl:function(){var e="base.portalPage.list_portal";return"plat"===this.vo.orgCode&&-1!==this.productCodeAll.indexOf(this.vo.sysCode)&&(e="base.portalPage.list_product"),e+"?urlsearch=sysCode:"+this.vo.sysCode+";clientType:W"},isWflowMenus:function(){return"wflowMenus"===this.newMenuType}},watch:{vo:{handler:function(e,t){this.updateMenuItemView()},deep:!0}},created:function(){this.$options.components["Icons"]=this.$loadComponent("@/wapp/support/icons/index")},beforeDestroy:function(){},mounted:function(){1!==this.vo.moduleLevel||this.vo.href||this.$set(this.vo,"leafType",null),this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("resRolesSelectType=")&&(this.resRolesSelectType=this.$route.meta.params.split("resRolesSelectType=")[1].split("&")[0]),this.updateMenuItemView()},methods:{previewSubMenuItems:function(){this.menuPreviewDialogVisible=!0},updateMenuItemView:function(){var e=this;this.isWflowMenus&&(this.vo.passenger.wflowMenuItems=this["wflowMenuItems"+this.wflowMenuType],this.vo.moduleLevel>=2&&(2===this.wflowMenuType||3===this.wflowMenuType)?this.vo.target="rightLabel":this.vo.target="leftMenuItem",1===this.wflowMenuType&&(this.wflowMenuItems1[2].name=this.$tx("ecwplat.menuForm.allFile","全部")+(this.vo.name||""))),1===this.vo.moduleLevel&&(null===this.vo.leafType?this.$set(this.vo,"leafFlag",0):this.$set(this.vo,"leafFlag",1),null===this.vo.topFlag&&this.$set(this.vo,"topFlag",1)),0===this.vo.leafFlag&&"leftMenuItem"!==this.vo.target&&"rightLabel"!==this.vo.target?2===this.vo.moduleLevel?this.vo.target="leftMenuItem":this.vo.moduleLevel>=3&&(this.vo.target="rightLabel"):1!==this.vo.leafFlag||"leftMenuItem"!==this.vo.target&&"rightLabel"!==this.vo.target||(this.vo.target=""),this.vo.h5Disable=this.vo.h5Disable||0,this.refresh=!0,this.$nextTick((function(){e.refresh=!1}))},selectMenuIcon:function(){this.iconDialogFormVisible=!0},handleResRolesChange:function(e){this.vo.visitOwnerIds=e},onSelectListpageRowCompleted:function(e,t){if(0!==e.length)if("wfName"===t.name){if(this.$set(this.vo,"wfName",e[0].name),this.$set(this.vo,"wfCode",e[0].processNo),e[0].workFormW){if(0==this.vo.wfCode.indexOf("udmjysp_"))this.$set(this.vo,"href",this.vo.wfCode.toLowerCase()),this.$set(this.vo,"wfEngineUrl","znbg/udmjysp");else{var i=e[0].workFormW;-1!==i.indexOf("/dcontent/")?i=i.split("/dcontent/")[1]:i.indexOf("@/wapp/")&&(i=i.split("@/wapp/")[1].replace("///",".")),this.$set(this.vo,"href",i.split(".")[1]),this.$set(this.vo,"wfEngineUrl",i.split(".")[0]+"/"+i.split(".")[1])}4===this.vo.leafType&&this.$set(this.vo,"href","#/wflow?busiCode="+this.vo.href+"&wfEngineUrl="+this.vo.wfEngineUrl)}}else if("href"===t.name)if(6===this.vo.leafType){this.vo.name||this.$set(this.vo,"name",e[0].pageName),this.vo.code||this.$set(this.vo,"code",e[0].pageCode);var n="@/wapp/portal/index?pageCode="+e[0].pageCode;-1!==e[0].pageViewUrl.indexOf("?pageCode=")&&(n=e[0].pageViewUrl),this.$set(this.vo,"href",n)}else if(5===this.vo.leafType){this.vo.name||this.$set(this.vo,"name",e[0].reportName),this.vo.code||this.$set(this.vo,"code",e[0].reportCode);var r="#/dcontent/vuereportpage/"+decodeURIComponent(e[0].reportViewUrl).split("_u=")[1];this.$set(this.vo,"href",r)}else if(3===this.vo.leafType){var o=e[0].listViewUrl.split(".")[0];o=o.replace(/\//g,"."),this.$set(this.vo,"href",o.split(".")[2]),this.$set(this.vo,"wfEngineUrl",o.split(".")[1]+"/"+o.split(".")[2])}else{var a=e[0].listViewUrl.split(".")[0];a=a.replace(/\//g,"."),a=a.substring(1)+"/",this.$set(this.vo,"href","#/dcontent/"+a)}else{var s=e[0].listViewUrl.split(".")[0];s=s.replace(/\//g,"."),s=s.substring(1)+"/",this.$set(this.vo.passenger,t.name,"#/dcontent/"+s),this.vo.passenger.busiCode||this.$set(this.vo.passenger,"busiCode",s.split(".")[2])}}}},a=o,s=(i(43067),i(81656)),l=(0,s.A)(a,n,r,!1,null,"c28e28c6",null),d=l.exports},11939:function(e,t,i){"use strict";i.d(t,{A:function(){return b}});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"block-box"},[null!==e.header?t("div",{staticClass:"block-head"},[e._t("head",(function(){return[e.header.icon?t("div",{staticClass:"block-head-icon"},[e.header.icon.indexOf(".svg")>-1?t("svg-icon",{attrs:{"icon-class":e.getIcon(e.header.icon)}}):t("i",{class:"el-icon-"+e.header.icon})],1):e._e(),e.header.title?t("div",{staticClass:"block-head-title"},[e.getJudge(e.header.title)===String?t("div",{staticClass:"block-head-title-string"},[t("span",[e._v(e._s(e.header.title))]),void 0!==e.header.count?t("span",[e._v(e._s(e.header.count))]):e._e()]):e._e(),e.getJudge(e.header.title)===Array?[e._l(e.header.title,(function(i,n){return t("div",{key:n,staticStyle:{display:"flex"},style:n>0?"padding-left:20px":""},[t("div",{staticClass:"block-head-title-array",class:{"block-head-title-array-click":e.clickIndex===n},on:{click:function(t){return e.titleClick(e.header.title,n)}}},[t("span",[e._v(e._s(i.name))])]),void 0!==i.count?t("div",[t("el-tag",{staticClass:"tag_count",class:i.tabCountClass,attrs:{color:"#F75854",effect:"dark",type:"danger"}},[e._v(e._s(i.count))])],1):e._e()])}))]:e._e(),e._t("head-left")],2):e._e(),e._t("head-right"),e.showMore?t("div",{staticClass:"block-head-more",on:{click:function(t){return e.gotoPages(e.header)}}},[e._v(" 更多 "),t("i",{staticClass:"el-icon-d-arrow-right"})]):e._e()]}))],2):e._e(),t("div",{staticClass:"block-content",class:{"block-content-border":e.contendBorder}},[e._t("default")],2)])},r=[],o=i(95353);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){d(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function d(e,t,i){return(t=c(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e){var t=u(e,"string");return"symbol"==a(t)?t:t+""}function u(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var f={components:{},props:{header:{type:Object,default:null},contendBorder:{type:Boolean,default:!0},filterPath:{type:Function,default:null}},data:function(){return{clickIndex:-1,moduleCode:"",showMore:!1,headerMoreClick:null,bgColor:this.$store.state.settings.headerbgColor}},computed:l({},(0,o.L8)(["routes"])),watch:{},created:function(){""!==this.header.more&&null!==this.header.more&&void 0!==this.header.more&&(this.showMore=this.header.more)},beforeDestroy:function(){},mounted:function(){this.header.title.constructor===Array&&this.titleClick(this.header.title,0)},methods:{getIcon:function(e){return e.split(".svg")[0]},getJudge:function(e){return e.constructor===String&&(this.moduleCode=this.header.code,"function"===typeof this.header.moreClick&&(this.headerMoreClick=this.header.moreClick)),e.constructor}}},p=f,h=(i(72258),i(81656)),m=(0,h.A)(p,n,r,!1,null,"1002c2fa",null),b=m.exports},74164:function(e,t,i){"use strict";i.d(t,{A:function(){return b}});var n=function(){var e=this,t=e._self._c;return t("div",{ref:"portlet",staticClass:"block"},[e.appdata.url||e.appdata.pppId?t("applet",{attrs:{"page-code":e.pageCode,"applet-data":e.appdata,"layout-data":e.layoutData,"app-columns":"layoutData"}}):"topElement"===e.appdata.dataType?t("div",{staticClass:"pageElement"},[t("div",{staticStyle:{"text-align":"center",margin:"20px"}},[e._v(" "+e._s(e.appdata.name)+",X轴坐标:"+e._s(e.appdata.x)+",组件高度:"+e._s(e.appdata.h*e.layoutHeight)+",组件列宽:"+e._s(e.appdata.w)+"/"+e._s(e.colNum||24)+" ")])]):!1===e.appdata.showCaption||0===e.appdata.showCaption?t("div",{staticClass:"pageElement"},[t("div",{staticStyle:{"text-align":"center",margin:"50px"}},[e._v(" "+e._s(e.appdata.name)+",X轴坐标:"+e._s(e.appdata.x)+",组件高度:"+e._s(e.appdata.h*e.layoutHeight)+",组件列宽:"+e._s(e.appdata.w)+"/"+e._s(e.colNum||24)+" ")])]):t("BlockFrame",{attrs:{header:{title:e.appdata.name,icon:e.appdata.icon,more:e.appdata.more,code:e.appdata.code}}},[t("div",{staticStyle:{"text-align":"center",margin:"10px","overflow-y":"auto"}},[e.portalPage&&"lmr3col"!==e.portalPage.pageTemplate?t("div",{staticStyle:{"text-align":"center"}},[e._v("X轴坐标:"+e._s(e.appdata.x)+",组件列宽:"+e._s(e.appdata.w)+"/"+e._s(e.colNum||24))]):e._e(),"blank"===e.appdata.code?t("div",{style:"M"===e.portalPage.clientType?"padding-top:40px;":"padding-top:70px;"},[e._v(" 从小组件面板拖拉需要的模块 ")]):t("div",[t("img",{staticStyle:{"max-width":"100px"},attrs:{src:"images/w-imgs/nomessage.png"}}),t("br"),t("span",{staticStyle:{"font-size":"14px",color:"#dbdbdb"}},[e._v("暂无数据")])])])])],1)},r=[],o=i(11939),a=function(){var e=this,t=e._self._c;return t("div",{ref:"myComponents",staticClass:"applet-wrap",staticStyle:{"pointer-events":"none"}},[t(e.app,{tag:"components",attrs:{"app-columns":e.appColumns,"search-type":e.searchType,"layout-data":e.layoutData,"applet-data":e.appletData,"null-processing":e.nullProcessing}}),e.app?e._e():[t("BlockFrame",{attrs:{header:{title:e.appletData.name,icon:e.appletData.icon,more:e.appletData.more,code:e.appletData.code}}})],"value"!==e.showMessage?t("div",{staticClass:"block-content",style:{"justify-content":e.position,position:"absolute",top:"50%",transform:"translate(0, -50%)"}},["null"===e.showMessage?t("div",{staticStyle:{"text-align":"center"}},[t("img",{staticStyle:{"max-width":"180px"},attrs:{src:"images/w-imgs/empty.png"}}),t("br"),t("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[e._v("暂无数据")])]):e._e(),"err"===e.showMessage?t("div",{staticStyle:{"text-align":"center"}},[t("img",{staticStyle:{"max-width":"180px"},attrs:{src:"images/w-imgs/errLoad.png"}}),t("br"),t("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[e._v("加载失败")])]):e._e(),"failure"===e.showMessage?t("div",{staticStyle:{"text-align":"center"}},[t("img",{staticStyle:{"max-width":"180px"},attrs:{src:"images/w-imgs/errLoad.png"}}),t("br"),t("span",{staticStyle:{"font-size":"15px",color:"#dbdbdb"}},[e._v("请求失败")])]):e._e()]):e._e()],2)},s=[],l={name:"Applet",components:{BlockFrame:o.A},props:{pageCode:{type:String,default:function(){return""}},layoutData:{type:Object,default:function(){return[]}},appletData:{type:Object,required:!0,default:function(){return{}}},allcomps:{type:Object,required:!0,default:function(){return{}}},appColumns:{type:String,required:!0}},data:function(){return{searchType:null,app:null,nomessageHeight:"",showMessage:"value",position:"center",iconName:"",componentsHeight:"100%"}},computed:{},created:function(){if(!this.appletData.pppId||3!==this.appletData.type||"dataList"!==this.appletData.repeatType&&"quickEntry"!==this.appletData.repeatType&&"transactionStatistics"!==this.appletData.repeatType&&"statisticalChart"!==this.appletData.repeatType)this.initPortalApplet();else{var e="#/dcontent/vuePagePortlet/"+this.appletData.pppId+".vue?sysCode="+this.appletData.sysCode;this.app=this.$loadComponent(e)}},mounted:function(){var e=this;setTimeout((function(){console.log("appletData => ",e.appletData,e.app)}),100)},methods:{initPortalApplet:function(){if(this.appletData.url){var e=this.appletData.url,t=e.lastIndexOf("/?"),i=null;if(-1!==t){var n=e.substring(t+1,e.length),r=n.indexOf("&");this.searchType=-1===r?e.substring(t+1,e.length).replace("?type=",""):this.getQueryVariable(n.replace("?",""),"type"),i=e.substring(0,t)}else i=e;this.app=this.$loadComponent(i)}},getQueryVariable:function(e,t){for(var i=e.split("&"),n=0;n<i.length;n++){var r=i[n].split("=");if(r[0]===t)return r[1]}return!1},nullProcessing:function(e,t,i,n){if(this.showMessage=e,"value"!==this.showMessage){this.iconName=t,this.position=i,n&&(console.log(n),this.$message.error(n));var r=this.$refs.myComponents;r.style.height="".concat(this.componentsHeight)}}}},d=l,c=(i(17042),i(81656)),u=(0,c.A)(d,a,s,!1,null,"615001ea",null),f=u.exports,p={name:"Portlet",components:{BlockFrame:o.A,applet:f},props:{appdata:{type:Object,default:function(){return{}}},layoutHeight:{type:Number,default:function(){return 10}},colNum:{type:Number,default:function(){return 24}},clientType:{type:String,default:"W"}},data:function(){return{openInterface:window.openInterface,layoutData:[],portalPage:{}}},created:function(){"topElement"===this.appdata.dataType?this.portalPage=this.$vnode.context.$vnode.context.$vnode.context.portalPage:this.portalPage=this.$vnode.context.$vnode.context.portalPage},updated:function(){},beforeDestroy:function(){},mounted:function(){this.layoutData=this.$vnode.context.grids,"grid4col"===this.portalPage.pageTemplate?(this.$el.querySelector(".block-head").style.backgroundColor="#fff",this.$el.querySelector(".block-head").style.height="50px",this.$el.querySelector(".block-head").style.lineHeight="50px"):"M"===this.portalPage.clientType&&this.$el.querySelector(".block-head")&&(this.$el.querySelector(".block-head").style.backgroundColor="#fff")},methods:{}},h=p,m=(i(27942),(0,c.A)(h,n,r,!1,null,"5b4b9d8c",null)),b=m.exports},8323:function(e,t,i){"use strict";i.d(t,{A:function(){return c}});var n=function(){var e=this,t=e._self._c;return t("div",{ref:"portletModule",staticClass:"block portletModule",staticStyle:{"background-color":"rgba(83,168,255,0.1) !important",width:"100%"}},[e.appdata.showCaption?t("BlockFrame",{staticStyle:{height:"40px"},attrs:{header:{title:e.appdata.name,icon:e.appdata.icon,more:e.appdata.more,code:e.appdata.code}}}):e._e(),t("Grid24colPageModule",{attrs:{applets:e.applets,"is-module":!0,"grid-layout-id":e.appdata.gridster.gridsterModule,"module-name":e.appdata.gridster.gridsterModule,"layout-height":50,"min-h":1}})],1)},r=[],o=i(11939),a={name:"PortletModule",components:{BlockFrame:o.A,Grid24colPageModule:function(){return i.e(871).then(i.bind(i,48871))}},props:{applets:{type:Object,default:function(){return[]}},appdata:{type:Object,default:function(){return{}}},layoutHeight:{type:Number,default:function(){return 50}}},data:function(){return{portalPage:{}}},created:function(){this.$bus.emit("getPortalpage",this)},updated:function(){},beforeDestroy:function(){},mounted:function(){var e=this;console.log(this.appdata,"appdata"),"grid4col"===this.portalPage.pageTemplate?(this.$el.querySelector(".block-head").style.backgroundColor="#fff",this.$el.querySelector(".block-head").style.height="50px",this.$el.querySelector(".block-head").style.lineHeight="50px"):"M"===this.portalPage.clientType&&(this.$el.querySelector(".block-head").style.backgroundColor="#fff"),this.$nextTick((function(){var t=setInterval((function(){if(e.$el.querySelector(".vue-grid-layout")){var i=e.$el.querySelector(".vue-grid-layout").offsetHeight;e.$el.querySelector(".vue-grid-layout").style.height=i+1+"px",e.$forceUpdate(),clearInterval(t)}}),50)}))},methods:{}},s=a,l=(i(99201),i(81656)),d=(0,l.A)(s,n,r,!1,null,"2eed369a",null),c=d.exports},62854:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return k}});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"icons-container"},[t("el-tabs",{attrs:{type:"border-card"}},[t("el-tab-pane",{attrs:{label:"Icons"}},e._l(e.svgIcons,(function(i){return t("div",{key:i,on:{click:function(t){e.handleClipboard(e.generateIconCode(i),t)}}},[t("el-tooltip",{attrs:{placement:"top"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.generateIconCode(i))+" ")]),t("div",{staticClass:"icon-item"},[t("svg-icon",{attrs:{"icon-class":i,"class-name":"disabled"}}),t("span",[e._v(e._s(i))])],1)])],1)})),0),t("el-tab-pane",{attrs:{label:"Element-UI Icons"}},e._l(e.elementIcons,(function(i){return t("div",{key:i,on:{click:function(t){e.handleClipboard(e.generateElementIconCode(i),t)}}},[t("el-tooltip",{attrs:{placement:"top"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.generateElementIconCode(i))+" ")]),t("div",{staticClass:"icon-item"},[t("i",{class:"el-icon-"+i}),t("span",[e._v(e._s(i))])])])],1)})),0)],1)],1)},r=[],o=i(9274),a=i.n(o),s=i(57576),l=i.n(s);function d(){a().prototype.$message({message:"Copy successfully",type:"success",duration:1500})}function c(){a().prototype.$message({message:"Copy failed",type:"error"})}function u(e,t){var i=new(l())(t.target,{text:function(){return e}});i.on("success",(function(){d(),i.off("error"),i.off("success"),i.destroy()})),i.on("error",(function(){c(),i.off("error"),i.off("success"),i.destroy()})),i.onClick(t)}var f=i(60824),p=function(e){return e.keys()},h=/\.\/(.*)\.svg/,m=p(f).map((function(e){return e.match(h)[1]})),b=m,v=["info","error","success","warning","question","back","arrow-left","arrow-down","arrow-right","arrow-up","caret-left","caret-bottom","caret-top","caret-right","d-arrow-left","d-arrow-right","minus","plus","remove","circle-plus","remove-outline","circle-plus-outline","close","check","circle-close","circle-check","zoom-out","zoom-in","d-caret","sort","sort-down","sort-up","tickets","document","goods","sold-out","news","message","date","printer","time","bell","mobile-phone","service","view","menu","more","more-outline","star-on","star-off","location","location-outline","phone","phone-outline","picture","picture-outline","delete","search","edit","edit-outline","rank","refresh","share","setting","upload","upload2","download","loading"],g=v,y={name:"Icons",data:function(){return{svgIcons:b,elementIcons:g}},created:function(){this.$bus.$emit("showNavSearch",!1)},beforeDestroy:function(){this.$bus.$emit("showNavSearch",!0)},methods:{generateIconCode:function(e){return e+".svg"},generateElementIconCode:function(e){return e},handleClipboard:function(e,t){u(e,t),this.$vnode.context.iconDialogFormVisible&&(this.$vnode.context.vo&&this.$vnode.context.$set(this.$vnode.context.vo,"code",e),this.$vnode.context.newMenu&&this.$vnode.context.$set(this.$vnode.context.newMenu,"code",e),this.$vnode.context.$forceUpdate(),this.$vnode.context.iconDialogFormVisible=!1)}}},w=y,_=(i(66823),i(81656)),x=(0,_.A)(w,n,r,!1,null,"0e7b06cb",null),k=x.exports},81656:function(e,t,i){"use strict";function n(e,t,i,n,r,o,a,s){var l,d="function"===typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):r&&(l=s?function(){r.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,t){return l.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:d}}i.d(t,{A:function(){return n}})},87568:function(e,t,i){var n=t;n.bignum=i(72344),n.define=i(47363).define,n.base=i(9673),n.constants=i(22153),n.decoders=i(22853),n.encoders=i(24669)},47363:function(e,t,i){var n=i(87568),r=i(56698),o=t;function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}o.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=i(68961).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(n){t=function(e){this._initNamed(e)}}return r(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},47227:function(e,t,i){var n=i(56698),r=i(9673).Reporter,o=i(48287).Buffer;function a(e,t){r.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"===typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"===typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,r),t.t=a,a.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,r.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var i=new a(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.d=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(e,t),t+=i.length})):("number"===typeof this.value?e[t]=this.value:"string"===typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},9673:function(e,t,i){var n=t;n.Reporter=i(89220).a,n.DecoderBuffer=i(47227).t,n.EncoderBuffer=i(47227).d,n.Node=i(90993)},90993:function(e,t,i){var n=i(9673).Reporter,r=i(9673).EncoderBuffer,o=i(9673).DecoderBuffer,a=i(43349),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),d=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function c(e,t){var i={};this._baseState=i,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i["default"]=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}e.exports=c;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};u.forEach((function(i){t[i]=e[i]}));var i=new this.constructor(t.parent);return i._baseState=t,i},c.prototype._wrap=function(){var e=this._baseState;l.forEach((function(t){this[t]=function(){var i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}}),this)},c.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,i=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==i.length&&(a(null===t.children),t.children=i,i.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(i){i==(0|i)&&(i|=0);var n=e[i];t[n]=i})),t})))},d.forEach((function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){c.prototype[e]=function(){var t=this._baseState,i=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(i),this}})),c.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return a(null===t["default"]),t["default"]=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){var e=this._baseState;return e.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));var n,r=i["default"],a=!0,s=null;if(null!==i.key&&(s=e.enterKey(i.key)),i.optional){var l=null;if(null!==i.explicit?l=i.explicit:null!==i.implicit?l=i.implicit:null!==i.tag&&(l=i.tag),null!==l||i.any){if(a=this._peekTag(e,l,i.any),e.isError(a))return a}else{var d=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),a=!0}catch(h){a=!1}e.restore(d)}}if(i.obj&&a&&(n=e.enterObject()),a){if(null!==i.explicit){var c=this._decodeTag(e,i.explicit);if(e.isError(c))return c;e=c}var u=e.offset;if(null===i.use&&null===i.choice){if(i.any)d=e.save();var f=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(f))return f;i.any?r=e.raw(d):e=f}if(t&&t.track&&null!==i.tag&&t.track(e.path(),u,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(e,t)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){var p=new o(r);r=this._getUse(i.contains,e._reporterState.obj)._decode(p,t)}}return i.obj&&a&&(r=e.leaveObject(n)),null===i.key||null===r&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,i.key,r),r},c.prototype._decodeGeneric=function(e,t,i){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var i=this._baseState;return i.useDecoder=this._use(e,t),a(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},c.prototype._decodeChoice=function(e,t){var i=this._baseState,n=null,r=!1;return Object.keys(i.choice).some((function(o){var a=e.save(),s=i.choice[o];try{var l=s._decode(e,t);if(e.isError(l))return!1;n={type:o,value:l},r=!0}catch(d){return e.restore(a),!1}return!0}),this),r?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},c.prototype._encode=function(e,t,i){var n=this._baseState;if(null===n["default"]||n["default"]!==e){var r=this._encodeValue(e,t,i);if(void 0!==r&&!this._skipDefault(r,t,i))return r}},c.prototype._encodeValue=function(e,t,i){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r["default"])return;e=r["default"]}var a=null,s=!1;if(r.any)o=this._createEncoderBuffer(e);else if(r.choice)o=this._encodeChoice(e,t);else if(r.contains)a=this._getUse(r.contains,i)._encode(e,t),s=!0;else if(r.children)a=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,t,e);if(null===i._baseState.key)return t.error("Child should have a key");var n=t.enterKey(i._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");var r=i._encode(e[i._baseState.key],t,e);return t.leaveKey(n),r}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(i){var n=this._baseState;return this._getUse(n.args[0],e)._encode(i,t)}),l))}else null!==r.use?o=this._getUse(r.use,i)._encode(e,t):(a=this._encodePrimitive(r.tag,e),s=!0);if(!r.any&&null===r.choice){var d=null!==r.implicit?r.implicit:r.tag,c=null===r.implicit?"universal":"context";null===d?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(d,s,c,a))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){var i=this._baseState,n=i.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},89220:function(e,t,i){var n=i(56698);function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.a=r,r.prototype.isError=function(e){return e instanceof o},r.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,i){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){var t=this._reporterState,i=t.obj;return t.obj=e,i},r.prototype.error=function(e){var t,i=this._reporterState,n=e instanceof o;if(t=n?e:new o(i.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!i.options.partial)throw t;return n||i.errors.push(t),t},r.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},74598:function(e,t,i){var n=i(22153);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},22153:function(e,t,i){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);var n=e[i];t[n]=i})),t},n.der=i(74598)},62010:function(e,t,i){var n=i(56698),r=i(87568),o=r.base,a=r.bignum,s=r.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){o.Node.call(this,"der",e)}function c(e,t){var i=e.readUInt8(t);if(e.isError(i))return i;var n=s.tagClass[i>>6],r=0===(32&i);if(31===(31&i)){var o=i;i=0;while(128===(128&o)){if(o=e.readUInt8(t),e.isError(o))return o;i<<=7,i|=127&o}}else i&=31;var a=s.tag[i];return{cls:n,primitive:r,tag:i,tagStr:a}}function u(e,t,i){var n=e.readUInt8(i);if(e.isError(n))return n;if(!t&&128===n)return null;if(0===(128&n))return n;var r=127&n;if(r>4)return e.error("length octect is too long");n=0;for(var o=0;o<r;o++){n<<=8;var a=e.readUInt8(i);if(e.isError(a))return a;n|=a}return n}e.exports=l,l.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(d,o.Node),d.prototype._peekTag=function(e,t,i){if(e.isEmpty())return!1;var n=e.save(),r=c(e,'Failed to peek tag: "'+t+'"');return e.isError(r)?r:(e.restore(n),r.tag===t||r.tagStr===t||r.tagStr+"of"===t||i)},d.prototype._decodeTag=function(e,t,i){var n=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var r=u(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(r))return r;if(!i&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==r)return e.skip(r,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(r=e.offset-o.offset,e.restore(o),e.skip(r,'Failed to match body of: "'+t+'"'))},d.prototype._skipUntilEnd=function(e,t){while(1){var i=c(e,t);if(e.isError(i))return i;var n,r=u(e,i.primitive,t);if(e.isError(r))return r;if(n=i.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===i.tagStr)break}},d.prototype._decodeList=function(e,t,i,n){var r=[];while(!e.isEmpty()){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=i.decode(e,"der",n);if(e.isError(a)&&o)break;r.push(a)}return r},d.prototype._decodeStr=function(e,t){if("bitstr"===t){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var r="",o=0;o<n.length/2;o++)r+=String.fromCharCode(n.readUInt16BE(2*o));return r}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},d.prototype._decodeObjid=function(e,t,i){var n,r=[],o=0;while(!e.isEmpty()){var a=e.readUInt8();o<<=7,o|=127&a,0===(128&a)&&(r.push(o),o=0)}128&a&&r.push(o);var s=r[0]/40|0,l=r[0]%40;if(n=i?r:[s,l].concat(r.slice(1)),t){var d=t[n.join(" ")];void 0===d&&(d=t[n.join(".")]),void 0!==d&&(n=d)}return n},d.prototype._decodeTime=function(e,t){var i=e.raw().toString();if("gentime"===t)var n=0|i.slice(0,4),r=0|i.slice(4,6),o=0|i.slice(6,8),a=0|i.slice(8,10),s=0|i.slice(10,12),l=0|i.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|i.slice(0,2),r=0|i.slice(2,4),o=0|i.slice(4,6),a=0|i.slice(6,8),s=0|i.slice(8,10),l=0|i.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,o,a,s,l,0)},d.prototype._decodeNull=function(e){return null},d.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},d.prototype._decodeInt=function(e,t){var i=e.raw(),n=new a(i);return t&&(n=t[n.toString(10)]||n),n},d.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getDecoder("der").tree}},22853:function(e,t,i){var n=t;n.der=i(62010),n.pem=i(58903)},58903:function(e,t,i){var n=i(56698),r=i(48287).Buffer,o=i(62010);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var i=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,d=0;d<i.length;d++){var c=i[d].match(a);if(null!==c&&c[2]===n){if(-1!==s){if("END"!==c[1])break;l=d;break}if("BEGIN"!==c[1])break;s=d}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+n);var u=i.slice(s+1,l).join("");u.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new r(u,"base64");return o.prototype.decode.call(this,f,t)}},70082:function(e,t,i){var n=i(56698),r=i(48287).Buffer,o=i(87568),a=o.base,s=o.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){a.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}function u(e,t,i,n){var r;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))r=s.tagByName[e];else{if("number"!==typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);r=e}return r>=31?n.error("Multi-octet tag encoding unsupported"):(t||(r|=32),r|=s.tagClassByName[i||"universal"]<<6,r)}e.exports=l,l.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(d,a.Node),d.prototype._encodeComposite=function(e,t,i,n){var o=u(e,t,i,this.reporter);if(n.length<128){var a=new r(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,l=n.length;l>=256;l>>=8)s++;a=new r(2+s);a[0]=o,a[1]=128|s;l=1+s;for(var d=n.length;d>0;l--,d>>=8)a[l]=255&d;return this._createEncoderBuffer([a,n])},d.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var i=new r(2*e.length),n=0;n<e.length;n++)i.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(i)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},d.prototype._encodeObjid=function(e,t,i){if("string"===typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n<e.length;n++){var a=e[n];for(o++;a>=128;a>>=7)o++}var s=new r(o),l=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];s[l--]=127&a;while((a>>=7)>0)s[l--]=128|127&a}return this._createEncoderBuffer(s)},d.prototype._encodeTime=function(e,t){var i,n=new Date(e);return"gentime"===t?i=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(e,t){if("string"===typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!==typeof e&&!r.isBuffer(e)){var i=e.toArray();!e.sign&&128&i[0]&&i.unshift(0),e=new r(i)}if(r.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new r(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(o=new Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new r(o))},d.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},d.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},d.prototype._skipDefault=function(e,t,i){var n,r=this._baseState;if(null===r["default"])return!1;var o=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r["default"],t,i).join()),o.length!==r.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==r.defaultBuffer[n])return!1;return!0}},24669:function(e,t,i){var n=t;n.der=i(70082),n.pem=i(90735)},90735:function(e,t,i){var n=i(56698),r=i(70082);function o(e){r.call(this,e),this.enc="pem"}n(o,r),e.exports=o,o.prototype.encode=function(e,t){for(var i=r.prototype.encode.call(this,e),n=i.toString("base64"),o=["-----BEGIN "+t.label+"-----"],a=0;a<n.length;a+=64)o.push(n.slice(a,a+64));return o.push("-----END "+t.label+"-----"),o.join("\n")}},72344:function(e,t,i){e=i.nmd(e),function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(78982).Buffer}catch(M){}function s(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,t,i){var n=s(e,i);return i-1>=t&&(n|=s(e,i-1)<<4),n}function d(e,t,i,n){for(var r=0,o=Math.min(e.length,i),a=t;a<o;a++){var s=e.charCodeAt(a)-48;r*=n,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"===typeof e)return this._initNumber(e,t,i);if("object"===typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var r=0;"-"===e[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=e.length-1,o=0;r>=0;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<e.length;r+=3)a=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=l(e,t,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2)r=l(e,t,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8}this.strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var o=e.length-i,a=o%n,s=Math.min(o,o-a)+i,l=0,c=i;c<s;c+=n)l=d(e,c,c+n,t),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var u=1;for(l=d(e,c,e.length,t),c=0;c<a;c++)u*=t;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){while(this.length<e)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],o=0|t.words[0],a=r*o,s=67108863&a,l=a/67108864|0;i.words[0]=s;for(var d=1;d<n;d++){for(var c=l>>>26,u=67108863&l,f=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=f;p++){var h=d-p|0;r=0|e.words[h],o=0|t.words[p],a=r*o+u,c+=a/67108864|0,u=67108863&a}i.words[d]=0|u,l=0|c}return 0!==l?i.words[d]=0|l:i.length--,i.strip()}o.prototype.toString=function(e,t){var i;if(e=e||10,t=0|t||1,16===e||"hex"===e){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<r|o)).toString(16);o=s>>>24-r&16777215,i=0!==o||a!==this.length-1?c[6-l.length]+l+i:l+i,r+=2,r>=26&&(r-=26,a--)}0!==o&&(i=o.toString(16)+i);while(i.length%t!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],p=f[e];i="";var h=this.clone();h.negative=0;while(!h.isZero()){var m=h.modn(p).toString(e);h=h.idivn(p),i=h.isZero()?m+i:c[d-m.length]+m+i}this.isZero()&&(i="0"+i);while(i.length%t!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,d=new e(o),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),d[s]=a;for(;s<o;s++)d[s]=0}else{for(s=0;s<o-r;s++)d[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),d[o-s-1]=a}return d},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0===(8191&t)&&(i+=13,t>>>=13),0===(127&t)&&(i+=7,t>>>=7),0===(15&t)&&(i+=4,t>>>=4),0===(3&t)&&(i+=2,t>>>=2),0===(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){while(this.length<e.length)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},o.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,o=0;o<n.length;o++)t=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&t,r=t>>>26;for(;0!==r&&o<i.length;o++)t=(0|i.words[o])+r,this.words[o]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)t=(0|i.words[a])-(0|n.words[a])+o,o=t>>26,this.words[a]=67108863&t;for(;0!==o&&a<i.length;a++)t=(0|i.words[a])+o,o=t>>26,this.words[a]=67108863&t;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,i){var n,r,o,a=e.words,s=t.words,l=i.words,d=0,c=0|a[0],u=8191&c,f=c>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],v=8191&b,g=b>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],k=8191&x,S=x>>>13,T=0|a[5],C=8191&T,M=T>>>13,N=0|a[6],L=8191&N,I=N>>>13,D=0|a[7],E=8191&D,O=D>>>13,F=0|a[8],A=8191&F,P=F>>>13,$=0|a[9],B=8191&$,j=$>>>13,R=0|s[0],U=8191&R,H=R>>>13,W=0|s[1],Y=8191&W,V=W>>>13,z=0|s[2],q=8191&z,J=z>>>13,G=0|s[3],K=8191&G,X=G>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],oe=8191&re,ae=re>>>13,se=0|s[7],le=8191&se,de=se>>>13,ce=0|s[8],ue=8191&ce,fe=ce>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;i.negative=e.negative^t.negative,i.length=19,n=Math.imul(u,U),r=Math.imul(u,H),r=r+Math.imul(f,U)|0,o=Math.imul(f,H);var be=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(h,U),r=Math.imul(h,H),r=r+Math.imul(m,U)|0,o=Math.imul(m,H),n=n+Math.imul(u,Y)|0,r=r+Math.imul(u,V)|0,r=r+Math.imul(f,Y)|0,o=o+Math.imul(f,V)|0;var ve=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,U),r=Math.imul(v,H),r=r+Math.imul(g,U)|0,o=Math.imul(g,H),n=n+Math.imul(h,Y)|0,r=r+Math.imul(h,V)|0,r=r+Math.imul(m,Y)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(f,q)|0,o=o+Math.imul(f,J)|0;var ge=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(w,U),r=Math.imul(w,H),r=r+Math.imul(_,U)|0,o=Math.imul(_,H),n=n+Math.imul(v,Y)|0,r=r+Math.imul(v,V)|0,r=r+Math.imul(g,Y)|0,o=o+Math.imul(g,V)|0,n=n+Math.imul(h,q)|0,r=r+Math.imul(h,J)|0,r=r+Math.imul(m,q)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,X)|0,r=r+Math.imul(f,K)|0,o=o+Math.imul(f,X)|0;var ye=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(k,U),r=Math.imul(k,H),r=r+Math.imul(S,U)|0,o=Math.imul(S,H),n=n+Math.imul(w,Y)|0,r=r+Math.imul(w,V)|0,r=r+Math.imul(_,Y)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(h,K)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(u,Q)|0,r=r+Math.imul(u,ee)|0,r=r+Math.imul(f,Q)|0,o=o+Math.imul(f,ee)|0;var we=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,U),r=Math.imul(C,H),r=r+Math.imul(M,U)|0,o=Math.imul(M,H),n=n+Math.imul(k,Y)|0,r=r+Math.imul(k,V)|0,r=r+Math.imul(S,Y)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(_,q)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,X)|0,n=n+Math.imul(h,Q)|0,r=r+Math.imul(h,ee)|0,r=r+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(u,ie)|0,r=r+Math.imul(u,ne)|0,r=r+Math.imul(f,ie)|0,o=o+Math.imul(f,ne)|0;var _e=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,U),r=Math.imul(L,H),r=r+Math.imul(I,U)|0,o=Math.imul(I,H),n=n+Math.imul(C,Y)|0,r=r+Math.imul(C,V)|0,r=r+Math.imul(M,Y)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(k,q)|0,r=r+Math.imul(k,J)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,X)|0,r=r+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(v,Q)|0,r=r+Math.imul(v,ee)|0,r=r+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(h,ie)|0,r=r+Math.imul(h,ne)|0,r=r+Math.imul(m,ie)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(u,oe)|0,r=r+Math.imul(u,ae)|0,r=r+Math.imul(f,oe)|0,o=o+Math.imul(f,ae)|0;var xe=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(E,U),r=Math.imul(E,H),r=r+Math.imul(O,U)|0,o=Math.imul(O,H),n=n+Math.imul(L,Y)|0,r=r+Math.imul(L,V)|0,r=r+Math.imul(I,Y)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(C,q)|0,r=r+Math.imul(C,J)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(k,K)|0,r=r+Math.imul(k,X)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,r=r+Math.imul(w,ee)|0,r=r+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,ie)|0,r=r+Math.imul(v,ne)|0,r=r+Math.imul(g,ie)|0,o=o+Math.imul(g,ne)|0,n=n+Math.imul(h,oe)|0,r=r+Math.imul(h,ae)|0,r=r+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(u,le)|0,r=r+Math.imul(u,de)|0,r=r+Math.imul(f,le)|0,o=o+Math.imul(f,de)|0;var ke=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(A,U),r=Math.imul(A,H),r=r+Math.imul(P,U)|0,o=Math.imul(P,H),n=n+Math.imul(E,Y)|0,r=r+Math.imul(E,V)|0,r=r+Math.imul(O,Y)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(L,q)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(I,q)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(C,K)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(k,Q)|0,r=r+Math.imul(k,ee)|0,r=r+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(w,ie)|0,r=r+Math.imul(w,ne)|0,r=r+Math.imul(_,ie)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,r=r+Math.imul(v,ae)|0,r=r+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,n=n+Math.imul(h,le)|0,r=r+Math.imul(h,de)|0,r=r+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0,n=n+Math.imul(u,ue)|0,r=r+Math.imul(u,fe)|0,r=r+Math.imul(f,ue)|0,o=o+Math.imul(f,fe)|0;var Se=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,U),r=Math.imul(B,H),r=r+Math.imul(j,U)|0,o=Math.imul(j,H),n=n+Math.imul(A,Y)|0,r=r+Math.imul(A,V)|0,r=r+Math.imul(P,Y)|0,o=o+Math.imul(P,V)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(O,q)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(L,K)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul(I,K)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(C,Q)|0,r=r+Math.imul(C,ee)|0,r=r+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(k,ie)|0,r=r+Math.imul(k,ne)|0,r=r+Math.imul(S,ie)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(w,oe)|0,r=r+Math.imul(w,ae)|0,r=r+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,le)|0,r=r+Math.imul(v,de)|0,r=r+Math.imul(g,le)|0,o=o+Math.imul(g,de)|0,n=n+Math.imul(h,ue)|0,r=r+Math.imul(h,fe)|0,r=r+Math.imul(m,ue)|0,o=o+Math.imul(m,fe)|0,n=n+Math.imul(u,he)|0,r=r+Math.imul(u,me)|0,r=r+Math.imul(f,he)|0,o=o+Math.imul(f,me)|0;var Te=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,Y),r=Math.imul(B,V),r=r+Math.imul(j,Y)|0,o=Math.imul(j,V),n=n+Math.imul(A,q)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(P,q)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,X)|0,r=r+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(L,Q)|0,r=r+Math.imul(L,ee)|0,r=r+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(C,ie)|0,r=r+Math.imul(C,ne)|0,r=r+Math.imul(M,ie)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(k,oe)|0,r=r+Math.imul(k,ae)|0,r=r+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,n=n+Math.imul(w,le)|0,r=r+Math.imul(w,de)|0,r=r+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0,n=n+Math.imul(v,ue)|0,r=r+Math.imul(v,fe)|0,r=r+Math.imul(g,ue)|0,o=o+Math.imul(g,fe)|0,n=n+Math.imul(h,he)|0,r=r+Math.imul(h,me)|0,r=r+Math.imul(m,he)|0,o=o+Math.imul(m,me)|0;var Ce=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,q),r=Math.imul(B,J),r=r+Math.imul(j,q)|0,o=Math.imul(j,J),n=n+Math.imul(A,K)|0,r=r+Math.imul(A,X)|0,r=r+Math.imul(P,K)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(E,Q)|0,r=r+Math.imul(E,ee)|0,r=r+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(L,ie)|0,r=r+Math.imul(L,ne)|0,r=r+Math.imul(I,ie)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(C,oe)|0,r=r+Math.imul(C,ae)|0,r=r+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(k,le)|0,r=r+Math.imul(k,de)|0,r=r+Math.imul(S,le)|0,o=o+Math.imul(S,de)|0,n=n+Math.imul(w,ue)|0,r=r+Math.imul(w,fe)|0,r=r+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(v,he)|0,r=r+Math.imul(v,me)|0,r=r+Math.imul(g,he)|0,o=o+Math.imul(g,me)|0;var Me=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,K),r=Math.imul(B,X),r=r+Math.imul(j,K)|0,o=Math.imul(j,X),n=n+Math.imul(A,Q)|0,r=r+Math.imul(A,ee)|0,r=r+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(E,ie)|0,r=r+Math.imul(E,ne)|0,r=r+Math.imul(O,ie)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(L,oe)|0,r=r+Math.imul(L,ae)|0,r=r+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(C,le)|0,r=r+Math.imul(C,de)|0,r=r+Math.imul(M,le)|0,o=o+Math.imul(M,de)|0,n=n+Math.imul(k,ue)|0,r=r+Math.imul(k,fe)|0,r=r+Math.imul(S,ue)|0,o=o+Math.imul(S,fe)|0,n=n+Math.imul(w,he)|0,r=r+Math.imul(w,me)|0,r=r+Math.imul(_,he)|0,o=o+Math.imul(_,me)|0;var Ne=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(B,Q),r=Math.imul(B,ee),r=r+Math.imul(j,Q)|0,o=Math.imul(j,ee),n=n+Math.imul(A,ie)|0,r=r+Math.imul(A,ne)|0,r=r+Math.imul(P,ie)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(E,oe)|0,r=r+Math.imul(E,ae)|0,r=r+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(L,le)|0,r=r+Math.imul(L,de)|0,r=r+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0,n=n+Math.imul(C,ue)|0,r=r+Math.imul(C,fe)|0,r=r+Math.imul(M,ue)|0,o=o+Math.imul(M,fe)|0,n=n+Math.imul(k,he)|0,r=r+Math.imul(k,me)|0,r=r+Math.imul(S,he)|0,o=o+Math.imul(S,me)|0;var Le=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(B,ie),r=Math.imul(B,ne),r=r+Math.imul(j,ie)|0,o=Math.imul(j,ne),n=n+Math.imul(A,oe)|0,r=r+Math.imul(A,ae)|0,r=r+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(E,le)|0,r=r+Math.imul(E,de)|0,r=r+Math.imul(O,le)|0,o=o+Math.imul(O,de)|0,n=n+Math.imul(L,ue)|0,r=r+Math.imul(L,fe)|0,r=r+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(C,he)|0,r=r+Math.imul(C,me)|0,r=r+Math.imul(M,he)|0,o=o+Math.imul(M,me)|0;var Ie=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(B,oe),r=Math.imul(B,ae),r=r+Math.imul(j,oe)|0,o=Math.imul(j,ae),n=n+Math.imul(A,le)|0,r=r+Math.imul(A,de)|0,r=r+Math.imul(P,le)|0,o=o+Math.imul(P,de)|0,n=n+Math.imul(E,ue)|0,r=r+Math.imul(E,fe)|0,r=r+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(L,he)|0,r=r+Math.imul(L,me)|0,r=r+Math.imul(I,he)|0,o=o+Math.imul(I,me)|0;var De=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(B,le),r=Math.imul(B,de),r=r+Math.imul(j,le)|0,o=Math.imul(j,de),n=n+Math.imul(A,ue)|0,r=r+Math.imul(A,fe)|0,r=r+Math.imul(P,ue)|0,o=o+Math.imul(P,fe)|0,n=n+Math.imul(E,he)|0,r=r+Math.imul(E,me)|0,r=r+Math.imul(O,he)|0,o=o+Math.imul(O,me)|0;var Ee=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,ue),r=Math.imul(B,fe),r=r+Math.imul(j,ue)|0,o=Math.imul(j,fe),n=n+Math.imul(A,he)|0,r=r+Math.imul(A,me)|0,r=r+Math.imul(P,he)|0,o=o+Math.imul(P,me)|0;var Oe=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,he),r=Math.imul(B,me),r=r+Math.imul(j,he)|0,o=Math.imul(j,me);var Fe=(d+n|0)+((8191&r)<<13)|0;return d=(o+(r>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,l[0]=be,l[1]=ve,l[2]=ge,l[3]=ye,l[4]=we,l[5]=_e,l[6]=xe,l[7]=ke,l[8]=Se,l[9]=Te,l[10]=Ce,l[11]=Me,l[12]=Ne,l[13]=Le,l[14]=Ie,l[15]=De,l[16]=Ee,l[17]=Oe,l[18]=Fe,0!==d&&(l[19]=d,i.length++),i};function b(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,l=Math.min(o,t.length-1),d=Math.max(0,o-e.length+1);d<=l;d++){var c=o-d,u=0|e.words[c],f=0|t.words[d],p=u*f,h=67108863&p;a=a+(p/67108864|0)|0,h=h+s|0,s=67108863&h,a=a+(h>>>26)|0,r+=a>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}function v(e,t,i){var n=new g;return n.mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(m=h),o.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?m(this,e,t):n<63?h(this,e,t):n<1024?b(this,e,t):v(this,e,t),i},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},g.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},g.prototype.permute=function(e,t,i,n,r,o){for(var a=0;a<o;a++)n[a]=t[e[a]],r[a]=i[e[a]]},g.prototype.transform=function(e,t,i,n,r,o){this.permute(o,e,t,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),d=Math.sin(2*Math.PI/s),c=0;c<r;c+=s)for(var u=l,f=d,p=0;p<a;p++){var h=i[c+p],m=n[c+p],b=i[c+p+a],v=n[c+p+a],g=u*b-f*v;v=u*v+f*b,b=g,i[c+p]=h+b,n[c+p]=m+v,i[c+p+a]=h-b,n[c+p+a]=m-v,p!==s&&(g=l*u-d*f,f=l*f+d*u,u=g)}},g.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},g.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},g.prototype.convert13b=function(e,t,i,r){for(var o=0,a=0;a<t;a++)o+=0|e[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<r;++a)i[a]=0;n(0===o),n(0===(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},g.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),d=new Array(n),c=new Array(n),u=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,d,n),this.transform(a,o,s,l,n,r),this.transform(d,o,c,u,n,r);for(var p=0;p<n;p++){var h=s[p]*c[p]-l[p]*u[p];l[p]=s[p]*u[p]+l[p]*c[p],s[p]=h}return this.conjugate(s,l,n),this.transform(s,l,f,o,n,r),this.conjugate(f,o,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,o=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=o>>>26,this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=p(e);if(0===t.length)return new o(1);for(var i=this,n=0;n<t.length;n++,i=i.sqr())if(0!==t[n])break;if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<i;this.words[t]=l|a,a=s>>>26-i}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,i){var r;n("number"===typeof e&&e>=0),r=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=i;if(r-=a,r=Math.max(0,r),l){for(var d=0;d<a;d++)l.words[d]=this.words[d];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,d=0;d<this.length;d++)this.words[d]=this.words[d+a];else this.words[0]=0,this.length=1;var c=0;for(d=this.length-1;d>=0&&(0!==c||d>=r);d--){var u=0|this.words[d];this.words[d]=c<<26-o|u>>>o,c=u&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,i){var r,o,a=e.length+i;this._expand(a);var s=0;for(r=0;r<e.length;r++){o=(0|this.words[r+i])+s;var l=(0|e.words[r])*t;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+s,s=o>>26,this.words[r+i]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,r=0;r<this.length;r++)o=-(0|this.words[r])+s,s=o>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var i=this.length-e.length,n=this.clone(),r=e,a=0|r.words[r.length-1],s=this._countBits(a);i=26-s,0!==i&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var l,d=n.length-r.length;if("mod"!==t){l=new o(null),l.length=d+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,d);0===u.negative&&(n=u,l&&(l.words[d]=1));for(var f=d-1;f>=0;f--){var p=67108864*(0|n.words[r.length+f])+(0|n.words[r.length+f-1]);p=Math.min(p/a|0,67108863),n._ishlnsubmul(r,p,f);while(0!==n.negative)p--,n.negative=0,n._ishlnsubmul(r,1,f),n.isZero()||(n.negative^=1);l&&(l.words[f]=p)}return l&&l.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(e)),{div:r,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();var r=new o(1),a=new o(0),s=new o(0),l=new o(1),d=0;while(t.isEven()&&i.isEven())t.iushrn(1),i.iushrn(1),++d;var c=i.clone(),u=t.clone();while(!t.isZero()){for(var f=0,p=1;0===(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0){t.iushrn(f);while(f-- >0)(r.isOdd()||a.isOdd())&&(r.iadd(c),a.isub(u)),r.iushrn(1),a.iushrn(1)}for(var h=0,m=1;0===(i.words[0]&m)&&h<26;++h,m<<=1);if(h>0){i.iushrn(h);while(h-- >0)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(u)),s.iushrn(1),l.iushrn(1)}t.cmp(i)>=0?(t.isub(i),r.isub(s),a.isub(l)):(i.isub(t),s.isub(r),l.isub(a))}return{a:s,b:l,gcd:i.iushln(d)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();var r,a=new o(1),s=new o(0),l=i.clone();while(t.cmpn(1)>0&&i.cmpn(1)>0){for(var d=0,c=1;0===(t.words[0]&c)&&d<26;++d,c<<=1);if(d>0){t.iushrn(d);while(d-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}for(var u=0,f=1;0===(i.words[0]&f)&&u<26;++u,f<<=1);if(u>0){i.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}t.cmp(i)>=0?(t.isub(i),a.isub(s)):(i.isub(t),s.isub(a))}return r=0===t.cmpn(1)?a:s,r.cmpn(0)<0&&r.iadd(e),r},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);do{while(t.isEven())t.iushrn(1);while(i.isEven())i.iushrn(1);var r=t.cmp(i);if(r<0){var o=t;t=i,i=o}else if(0===r||0===i.cmpn(1))break;t.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new T(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),t=i.bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},r(_,w),_.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(x,w),r(k,w),r(S,w),S.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new x;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},T.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},T.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}var r=this.m.subn(1),a=0;while(!r.isZero()&&0===r.andln(1))a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),l=s.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,d).cmp(l))c.redIAdd(l);var u=this.pow(c,r),f=this.pow(e,r.addn(1).iushrn(1)),p=this.pow(e,r),h=a;while(0!==p.cmp(s)){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<h);var v=this.pow(u,new o(1).iushln(h-b-1));f=f.redMul(v),u=v.redSqr(),p=p.redMul(u),h=b}return f},T.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},T.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],s=0,l=0,d=t.bitLength()%26;for(0===d&&(d=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=d-1;u>=0;u--){var f=c>>u&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==s?(s<<=1,s|=f,l++,(l===i||0===r&&0===u)&&(a=this.mul(a,n[s]),l=0,s=0)):l=0}d=26}return a},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new C(e)},r(C,T),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}}(e,this)},96407:function(e){e.exports={name:"WfdList",props:{row:{type:Object,default:{}}},components:{},data:function(){return{dwadmin:0,product:0,platadmin:0,inited:0,loginUser:this.$store.getters.loginUser,formTitle:this.$tx("ecwplat.Common.importConfiguration","导入流程配置"),selectedRows:[],dialogVisible:!1,voFromSon:{},fileFromSon:{},moduleInfo:{delUrl:"workflow/wfdProcessMgr/delete",moduleCode:"process",listDataUrl:"workflow/wfdProcessMgr/listdata"},tbColumns:[{field:"state",checkbox:!0,width:"50px",sortable:!1,align:"center"},{field:"index",width:"50px",sortable:!1,propType:"",align:"center",title:"序号",searchable:!1},{propFormatter:"",listAdvSearchElement:"input",field:"sysName",width:"",elementFormatter:"",sortable:!0,propType:"String",align:"left",title:"系统名称",searchable:!0},{propFormatter:"",listAdvSearchElement:"input",field:"name",width:"180px",elementFormatter:"",sortable:!0,propType:"String",align:"left",title:"流程名称",searchable:!0},{propFormatter:"",listAdvSearchElement:"input",field:"processNo",width:"120px",elementFormatter:"",sortable:!0,propType:"String",align:"center",title:"流程编号",searchable:!0},{propFormatter:"",listAdvSearchElement:"input",field:"version",width:"120px",elementFormatter:"",sortable:!0,propType:"String",align:"center",title:"流程版本",searchable:!0},{propFormatter:"",listAdvSearchElement:"input",field:"orderNo",width:"120px",elementFormatter:"",sortable:!0,propType:"String",align:"center",title:"流程排序",searchable:!0},{field:"updateTime",title:"更新时间",width:"160px",align:"center",valign:"middle",cellStyle:{css:{cursor:"pointer"}},searchable:!0,listAdvSearchElement:"date",propFormatter:"format:yyyy-MM-dd HH:mm:ss",propType:"java.util.Date",sortable:!0},{propFormatter:"",listAdvSearchElement:"select",field:"status",width:"75px",elementFormatter:"1:启用\r\n0:禁用\r\n",sortable:!1,propType:"Short",align:"center",title:"状态 ",searchable:!0}],listpageBtns:[{btnName:"新增",btnIcon:"plus",btnClick:"workflowDesigner();",btnPermission:"addObject",id:"btn_add",btnType:"toolbar"},{btnName:"删除",btnIcon:"close",btnClick:"deleteIds();",btnPermission:"deleteIds",id:"btn_deleteIds",btnType:"toolbar"},{btnName:"导入",btnIcon:"import.svg",btnClick:"importWfDefine();",btnPermission:"importWfDefine",id:"btn_btn4",btnType:"toolbar"},{btnName:"导出",btnIcon:"export.svg",btnClick:"exportWfDefines();",btnPermission:"exportWfDefines",id:"btn_btn5",btnType:"toolbar"},{btnName:"导出I18n",btnIcon:"export.svg",btnClick:"exportWfdI18nCode();",btnPermission:"exportWfdI18nCode",id:"btn_btn5",btnType:"toolbar"},{btnName:"复制",btnIcon:"copy-document",btnClick:this.workflowDesigner,btnPermission:"copyWfDefine",id:"btn_copy",btnType:"column"},{btnName:"删除",btnIcon:"delete",btnClick:"deleteIds(row.id);",btnPermission:"deleteIds",id:"btn_deleteId",btnType:"column"}]}},computed:{},created:function(){var e=this;this.moduleInfo.listpageViewUrl="/workflow/wfdProcess/list.vue";var t=this;this.listpageBtns.forEach((function(e){if(e.btnParams=null,"string"===typeof e.btnClick){var i=e.btnClick;if(-1!==e.btnClick.indexOf("(")){var n=i.substring(i.indexOf("(")+1,i.lastIndexOf(")"));""!==n&&(n=n.replace(/'/g,"").split(","),e.btnParams=n),i=i.split("(")[0]}t[i]&&(e.btnClick=t[i])}})),"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?(this.dwadmin=1,window.$user.findUserRolePermissions().then((function(t){"success"===t.code&&(t.body["ROLE_CODE_LIST"].indexOf("dwAdministrators")||(e.listpageBtns=e.listpageBtns.filter((function(e){if("deleteIds"===e.btnPermission&&"column"===e.btnType)return!0}))))})),this.moduleInfo.delUrl+="?dwadmin=1"):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("product=1")?(this.product=1,this.tbColumns[2].title="产品名称"):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")&&(this.platadmin=1),-1!==this.$route.meta.params.indexOf("product=1")?this.$options.components["SelectInput"]=this.$loadComponent("@/wapp/common/components/SwitchSys/orgSelectProduct"):this.$options.components["SelectInput"]=this.$loadComponent("@/wapp/common/components/SwitchSys/orgSelect"),this.tbColumns[this.tbColumns.length]={field:"column_operate",title:"操作",width:"70px",align:"center",valign:"middle"},this.inited=!0,this.$bus.$on("getVo",this.getVoHandler),this.$bus.$on("getFile",this.getFileHandler),this.$bus.$on("dialogClose",this.dialogCloseHandler)},beforeDestroy:function(){this.$bus.$off("getVo",this.getVoHandler),this.$bus.$off("getFile",this.getFileHandler),this.$bus.$off("dialogClose",this.dialogCloseHandler)},mounted:function(){},watch:{},methods:{onOrgTreeNodeClick:function(e,t,i,n){this.$route.query.urlsearch="orgCode:"+n,this.$bus.emit("refreshListData")},onListDataBeforeLoad:function(e,t){console.log("process listdata before load.."),this.loginUser=e.loginUser,this.row.sysCode&&(t.urlsearch="sysCode:"+this.row.sysCode,this.moduleInfo.row=this.row);var i=this.$route.query.status;void 0!==i&&(t.urlsearch?t.urlsearch+=";status:"+i:t.urlsearch="status:"+i);var n=localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"",r=localStorage.orgItemProduct?JSON.parse(localStorage.orgItemProduct).code:"";t.urlsearch?t.urlsearch+=";sysCode:"+(this.product?r:n):t.urlsearch="sysCode:"+(this.product?r:n)},onListDataLoaded:function(e,t){console.log("process listdata loaded"),t.list.forEach((function(e){e.sysName+="("+e.sysCode+")"}))},onBasicFormBeforeOpen:function(e,t,i){console.log("process form before open"),i.resolve(!0)},onBasicFormOpened:function(e,t){console.log("process form opened")},onBasicFormBeforeSubmit:function(e,t,i){console.log("process form submit validation success"),i.resolve(!0)},onBasicFormSubmited:function(e,t){console.log("process form submited")},onDeleteSuccessed:function(e,t){console.log("process delete successed")},importWfDefine:function(){this.dialogVisible=!0},exportWfDefines:function(){var e=this,t=[];this.selectedRows.length>0?(this.selectedRows.forEach((function(e,i){t.push(e.id)})),this.$confirm("确认要导出选择的流程配置吗?",this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then((function(){e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:t,url:"workflow/wfdProcessMgr/exportWfDefines"}).then((function(t){if("success"===t.code){var i=t.body,n='<br/>下载地址:<a href="/apigw/'+i.zipurl+'" target="_blank">'+i.zipname+"</a>";e.$alert(t.message+n,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$message({type:"warning",message:t.message})}),(function(t){e.$message.error(t)}))})).catch((function(){}))):this.$alert("请选择需要导出的流程配置。",this.$tx("common.operationTip","操作提示"),{type:"info"})},exportWfdI18nCode:function(){var e=[];this.selectedRows.length>0?(this.selectedRows.forEach((function(t,i){e.push(t.id)})),this.$confirm("确认要导出选择的流程配置I18nCode吗?","确认操作",{type:"warning"}).then((function(){var t="/apigw/base/apiPortlet/dowloadWfdProcessConfigOnI18n?wfIds="+e.join(",");window.open(t)}))):this.$alert("请选择需要导出I18nCode的流程配置。",this.$tx("common.operationTip","操作提示"),{type:"info"})},onSelectedRowsChange:function(e){this.selectedRows=e},workflowDesigner:function(e,t,i,n){var r="/#/designer/workflow";1===this.dwadmin?r+="?dwadmin=1":1===this.product?r+="?product=1":1===this.platadmin&&(r+="?platadmin=1"),e&&void 0!==e.id&&("column_operate"===t.field&&(-1!==r.indexOf("?")?r+="&copy=1":r+="?copy=1"),-1!==r.indexOf("?")?r+="&id="+e.id:r+="?id="+e.id),window.open(r)},submitImportWfDefine:function(e){var t=this;this.$refs.son.$refs.ValidationProvider.validate().then((function(){var e=document.querySelector(".invalid-field");null!==e&&""!==e.innerHTML||t.$refs.son.$refs.upload.submit()}))},getVoHandler:function(e){this.voFromSon=e},getFileHandler:function(e){this.fileFromSon=e},dialogCloseHandler:function(e){this.dialogVisible=e}}}},29814:function(e){e.exports={name:"SyncRestfulApi",data:function(){return{title:"同步产品API",dialogFormVisible:!1,canEdit:1,doing:!1,vo:null,tableFieldInfo:[{elementCanEdit:1,elementReadonly:1,elementType:"input",emptyMessage:"请选择平台产品 ",formTdAlign:"text-left",formTdColspan:0,isRequired:1,passenger:{},propComment:"产品名称",propName:"sysName",propType:"String",dialog:1,dialogType:"listpage",dialogMultiple:!1,dialogTitle:"选择平台产品",dialogListviewurl:"base.product.list",dialogExcludeFileds:"status"},{elementCanEdit:0,elementType:"input",emptyMessage:"",formTdAlign:"text-left",formTdColspan:0,isRequired:1,passenger:{},propComment:"产品代码",propName:"sysCode",propType:"String"},{elementCanEdit:1,elementType:"input",emptyMessage:'请输入基础平台微服务地址,"/"结尾',formTdAlign:"text-left",formTdColspan:0,isRequired:1,passenger:{},propComment:"产品微服务地址",propName:"apiUrl",propType:"String"}],resEntityName:""}},created:function(){this.$bus.on("openSyncRestfulApiForm",this.openBusiform)},beforeDestroy:function(){this.$bus.off("openSyncRestfulApiForm",this.openBusiform)},methods:{openBusiform:function(){this.vo={sysCode:"standard",sysName:"易臣智慧云",apiUrl:""},this.dialogFormVisible=!0},submitBusiform:function(){if(""!==this.vo.apiUrl&&null!==this.vo.apiUrl){var e=this;e.doing=!0;var t=this.vo.apiUrl;"/"!==t.substring(t.length-1)&&(t+="/"),e.$http({method:"GET",contentType:"application/x-www-form-urlencoded",params:{apiUrl:t,jwtToken:encodeURIComponent(window.$auth.getToken())},url:"v2/api-docs"}).then((function(t){if(t.tags){var i=[];t.tags.forEach((function(n,r){var o,a,s,l=function(){var r=!1;e.vo.pathPrefix?e.vo.pathPrefix.split(",").forEach((function(e){""!==e&&0===d.indexOf(e)&&(r=!0)})):r=!0,o=e.getFirstAttrName(t.paths[d]),a=t.paths[d][o],r&&a.tags[0]===n.name&&(s={},s.apiDesc=a.summary,s.apiUrl=d,s.controllerCode=n.description.replace(/ /g,""),s.controllerName=n.name.trim(),-1!==s.controllerName.indexOf(" ")&&(s.controllerName=s.controllerName.substring(s.controllerName.lastIndexOf(" ")+1)),s.httpMethod=o,s.visitType=0,s.operationCode=d.substring(d.lastIndexOf("/")+1),"{"===s.operationCode.substring(0,1)&&d.split("/").length>=2&&(s.operationCode=d.split("/")[d.split("/").length-2]),s.sysCode=e.vo.sysCode,s.sysName=e.vo.sysName,i.push(s))};for(var d in t.paths)l()})),i.length>0?e.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:i,url:"base/restfulApi/batchSaveRestfulApi"}).then((function(t){"success"===t.code?(e.$message({type:t.code,message:t.message,showClose:!0}),e.$bus.emit("refreshListData"),e.closeDialog()):(e.$alert(t.message,this.$tx("common.operationTip","操作提示"),{type:"error"}),e.doing=!1)})):(e.$message({type:"success",message:"RESTFUL API已全部同步成功!",showClose:!0}),e.closeDialog())}else e.$alert(t.message,this.$tx("common.operationTip","操作提示"),{type:"error"}),e.doing=!1}))}else this.$alert("请输入产品微服务地址",this.$tx("common.operationTip","操作提示"),{type:"warning"})},getFirstAttrName:function(e){for(var t in e)return t},closeDialog:function(){this.dialogFormVisible=!1,this.doing=!1,this.moduleInfo={},this.vo={}},footerBtns:function(){var e=[];return e.push({id:"btn_close",btnName:"取 消",btnIcon:"close",btnClick:this.closeDialog,btnPermission:"",btnType:""}),e.push({id:"btn_save",btnName:"确 定",btnIcon:"check",btnClick:this.submitBusiform,btnPermission:"saveObject",btnType:"primary"}),e},onSelectListpageRowCompleted:function(e,t){var i=this;this.$set(this.vo,"sysName",e[0].name),this.$set(this.vo,"sysCode",e[0].code),this.$set(this.vo,"apiUrl",e[0].apiUrl||""),3===this.tableFieldInfo.length&&this.tableFieldInfo.push({elementCanEdit:1,elementType:"input",emptyMessage:"请输入产品API接口前缀,例:/gwgl,/gwjh,/wpsOffice",formTdAlign:"text-left",formTdColspan:0,isRequired:0,passenger:{},propComment:"产品API接口前缀",propName:"pathPrefix",propType:"String"});var n="",r=[{compare:"=",field:"productCode",value:e[0].code}];this.$http({method:"POST",data:r,url:"base/apiRoute/querydata"}).then((function(t){"success"===t.code?t.body.listdata.forEach((function(e){var t=e.path.split("/")[1];-1===n.indexOf("/"+t)&&(n+=",/"+t)})):i.$alert(t.message,i.$tx("common.operationTip","操作提示"),{type:"error"}),""===n?(n=e[0].code,n.length>=5&&("ecyoa"===n?n="/ecoa,/message,/disk,/voice,/user,/mail":"ecykq"===n?n="/kqgl":0===n.indexOf("ecy")?n="/"+n.substring(3):0===n.indexOf("ec")&&(n="/"+n.substring(2)))):n=n.substring(1),i.$set(i.vo,"pathPrefix",n)}))}}}},26200:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},55539:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},98259:function(e,t,i){"use strict";i.d(t,{KS:function(){return k},Pc:function(){return x},Z0:function(){return T},ot:function(){return _},wS:function(){return S}});var n=i(12215),r=i.n(n),o=i(45730),a=i(26200),s=i.n(a),l=i(16700),d=i.n(l),c=i(55539),u=i.n(c),f=i(93150),p=i.n(f);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function b(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?m(Object(i),!0).forEach((function(t){v(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function v(e,t,i){return(t=g(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function g(e){var t=y(e,"string");return"symbol"==h(t)?t:t+""}function y(e,t){if("object"!=h(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var w={en:b({},s()),zhCN:b({},d()),es:b({},u()),ja:b({},p())},_=w;function x(e,t,i){var n,r=this&&this.$vnode?this.$vnode.context:window.$wapp||window.$mapp;return r.$i18n||console.log(e),n=r.$i18n&&r.$te(e)?r.$t(e):"object"!==h(t)?t:i,"object"===h(t)&&n&&Object.keys(t).forEach((function(e){n=n.replace("{"+e+"}",t[e])})),n}function k(e,t,i,n,r){if(t=t||this,t.$i18n&&"zhCN"===t.$i18n.locale){if(e.btnName&&-1===e.btnName.indexOf("."))return e.btnName;if(e.field&&e.title)return e.title}if(e.i18nCode&&-1!==e.i18nCode.indexOf(".")&&t.$te(e.i18nCode))return t.$t(e.i18nCode,r);var o=t.moduleInfo||t.$vnode.context.moduleInfo||t.$vnode.context.$vnode.context.moduleInfo;if(!n&&(n=t.i18npkg||t.$vnode.context.i18npkg||t.$vnode.context.$vnode.context.i18npkg,!n)){var a=t.wfInstance||t.$vnode.context.wfInstance;if(a&&a.workForm){var s=a.workForm;if(-1!==s.indexOf("/dcontent/"))s=s.split("/dcontent/")[1].split("."),n=s[0],i=s[1];else if(t.wfEngineUrl||t.$vnode.context.wfEngineUrl||t.$vnode.context.$vnode.context.wfEngineUrl){var l=(t.wfEngineUrl||t.$vnode.context.wfEngineUrl||t.$vnode.context.$vnode.context.wfEngineUrl).split("/");n=l[0],i=l[1]}else-1!==s.indexOf("@/")&&(s=s.split("/"),n=s[2],i=s[3])}else if(void 0!==e.activeMenu||"menuItem"===e.type){if(e.i18npkg)n=e.i18npkg;else if(e.i18nCode&&-1!=e.i18nCode.indexOf("."))n=e.i18nCode.substring(0,e.i18nCode.indexOf(".")),e.i18npkg=n,e.i18nCode=e.i18nCode.substring(e.i18nCode.lastIndexOf(".")+1);else if(!e.i18npkg&&e.href){var d=e.href;-1!==d.indexOf("/dcontent/")?(d=d.split("/dcontent/")[1].split("."),n=d[0],e.i18npkg=d[0]):-1!==d.indexOf("@/")&&(d=d.split("/"),n=d[2],e.i18npkg=d[0])}}else o&&o.listDataUrl&&o.listDataUrl.split("/").length>2&&("/"===o.listDataUrl.substring(0,1)&&(o.listDataUrl=o.listDataUrl.substring(1)),n=o.listDataUrl.split("/")[0])}n?n+=".":n="",i||(i=t.moduleCode||t.$vnode.context.moduleCode||t.$vnode.context.$vnode.context.moduleCode,!i&&o&&(o.moduleCode?i=o.moduleCode:o.listDataUrl&&o.listDataUrl.split("/").length>2&&("/"===o.listDataUrl.substring(0,1)&&(o.listDataUrl=o.listDataUrl.substring(1)),i=o.listDataUrl.split("/")[1]))),i?i+=".":i="";var c="";if("menuItem"===e.type||void 0!==e.activeMenu||1===e.level&&1===e.topFlag)c=n+"menuItem."+e.i18nCode;else if("navbar"===e.type||void 0!==e.breadcrumb)c="navbar."+e.title;else if(e.formTitle)c=n+e.code+".formTitle";else{if(e.field&&"option"===e.type){var u=null;n&&(u=t.$i18n.messages[t.$i18n.locale][n.replace(".","")]),u||(u=t.$i18n.messages[t.$i18n.locale]),i=i.substring(0,i.length-1);var f=[];return u&&u[i]&&u[i].options&&u[i].options[e.field]?f=u[i].options[e.field]:u&&u.options&&u.options[e.field]?f=u.options[e.field]:t.$i18n.messages[t.$i18n.locale].options&&t.$i18n.messages[t.$i18n.locale].options[e.field]&&(f=t.$i18n.messages[t.$i18n.locale].options[e.field]),f[e.value]?f[e.value]:null}e.field?c=n+i+"fields."+e.field:e.btnI18nCode?c="commandBarBtn"===e.type?n+i+"wfdProcess.operations."+e.btnI18nCode:n+"pageBtns."+e.btnI18nCode:e.wfNodeName?c=n+i+"wfdProcess.nodes."+e.wfNodeName:e.wfPathName?c=n+i+"wfdProcess.paths."+e.wfPathName:e.wfIdeaLabel?c=n+i+"wfdProcess.ideaLabels."+e.wfIdeaLabel:e.i18nCode&&(c=e.i18nCode,-1===c.indexOf(i)&&(c=i+c),-1===c.indexOf(n)&&(c=n+c))}var p=c.replace(n,"").replace(i,""),h=c.replace(i,"");if(t&&t.$te){if(t.$te(c))return t.$t(c,r);if(t.$te(h))return t.$t(h,r);if(t.$te(p))return t.$t(p,r);if("zhCN"!==t.$i18n.locale&&"option"!==e.type){var m="",b=e.i18nCode||e.code||e.field||e.btnI18nCode||e.title||"";if(m=b.split(".").length>1?b.substring(b.lastIndexOf(".")+1).replace("-","_"):b.replace("-","_"),-1!==m.indexOf("_")){m=m.toLowerCase().split("_");for(var v=0;v<m.length;v++)m[v]=m[v].substring(0,1).toUpperCase()+m[v].substring(1);return m.join("")}return m.substring(0,1).toUpperCase()+m.substring(1)}}return e.title||e.btnName||e.formTitle}function S(e,t,i,n){var r=o.A.state.settings.title;return n.$te("sysName")&&(r=n.$t("sysName")),t&&(e=k({i18nCode:t,href:i,type:"menuItem"},n)),e?"".concat(e," - ").concat(r):r}function T(){try{var e=r().get("language");if(e)return"zh-CN"==e&&(e="zhCN"),e;var t=(navigator.language||navigator.browserLanguage||"").toLowerCase();if(w)for(var i=Object.keys(w),n=0,o=i;n<o.length;n++){var a=o[n];if(t.indexOf(a)>-1)return a}}catch(s){console.log(s)}return"zhCN"}},93150:function(e){e.exports={request:{status401relogin:"The session has expired, please log in again.",status401:"The session has expired.",status404:"Interface does not exist or execution error:"}}},16700:function(e){e.exports={request:{status401relogin:"认证会话已过期,请重新登录。",status401:"认证会话已过期。",status404:"接口不存在或执行错误:"}}},45730:function(e,t,i){"use strict";i.d(t,{A:function(){return u}});var n=i(9274),r=i.n(n),o=i(95353),a={sidebar:function(e){return e.app.sidebar},language:function(e){return e.app.language},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},loginUser:function(e){return e.user.loginUser},organList:function(e){return e.user.organList},avatar:function(e){return e.user.avatar},roles:function(e){return e.user.roles},routes:function(e){return e.route.routes},swipeImages:function(e){return e.app.swipeImages},productCodeList:function(e){return e.user.productCodeList},productCodeAll:function(e){return e.user.productCodeAll},maxFileSize:function(e){return e.user.maxFileSize}},s=a;r().use(o.Ay);var l=null,d=null;void 0!==window.vType?("wapp"===window.vType?l=i(85196):"mapp"===window.vType&&(l=i(59326)),d=l.keys().reduce((function(e,t){var i=t.replace(/^\.\/(.*)\.\w+$/,"$1"),n=l(t);return e[i]=n.default,e}),{}),l=i(82397),l.keys().reduce((function(e,t){var i=t.replace(/^\.\/(.*)\.\w+$/,"$1"),n=l(t);return d[i]=n.default,d}),{})):(l=i(82397),d=l.keys().reduce((function(e,t){var i=t.replace(/^\.\/(.*)\.\w+$/,"$1"),n=l(t);return e[i]=n.default,e}),{}));var c=new o.Ay.Store({modules:d,getters:s}),u=c},83070:function(e,t,i){"use strict";i.r(t);var n=i(12215),r=i.n(n),o={device:"mobile",swipeImages:r().get("swipeImages")||[]},a={SET_SWIPE_IMAGES:function(e,t){e.swipeImages=t,r().set("swipeImages",t)},SET_DEVICE:function(e,t){e.device=t,r().set("device",t)}},s={setSwipeImages:function(e,t){var i=e.commit;i("SET_SWIPE_IMAGES",t)},setDevice:function(e,t){var i=e.commit;i("SET_DEVICE",t)}};t["default"]={namespaced:!0,state:o,mutations:a,actions:s}},28076:function(e,t,i){"use strict";i.r(t);var n={routes:[]},r={SET_ROUTES:function(e,t){e.routes=t}},o={generateRoutes:function(e){var t=e.commit;return new Promise((function(e,i){window.$user.findH5apps().then((function(i){var n=[];i.body.listdata.forEach((function(e){var t=s(e);if(n.push(t),void 0!==e.appRoute&&null!==e.appRoute&&""!==e.appRoute&&"[{}]"!==e.appRoute&&"[]"!==e.appRoute){var i=JSON.parse(e.appRoute.replace(/\r\n/g,"").replace(/\n/g,"").replace(/ /g,""));a(n,i,e)}})),t("SET_ROUTES",n),e(n)})).catch((function(e){i(e)}))}))},updateRoutes:function(e,t){var i=e.commit;i("SET_ROUTES",t)}};function a(e,t,i){t.forEach((function(t){var n=t.component;if(null!==n&&"#/dcontent/"===n.substring(0,11)){var r=n.substring(11);-1===r.indexOf("?")?r+=".vue?sysCode="+(i.sysCode||i.meta.sysCode):r=n.substring(11).split("?")[0]+".vue?sysCode="+(i.sysCode||i.meta.sysCode)+"&"+n.substring(11).split("?")[1],r=0===r.indexOf("portalpage/")||0===r.indexOf("vuereportpage/")?"#/dcontent/"+r:"#/dcontent/vuelistpage/"+r,n=r}t.component=window.$loadComponent(n),t.meta=t.meta||{},t.metasysCode=i.sysCode||i.meta.sysCode,t.metasysName=i.sysName||i.meta.sysName,t.metaorgCode=i.orgCode||i.meta.orgCode,t.metaorgName=i.orgName||i.meta.orgName,e.push(t),void 0!==t.children&&null!==t.children&&a(e,t.children,t)}))}function s(e){return 2===e.appType?e.routeTo=e.h5Url.substring(1):e.h5Url.indexOf("?")>0?e.routeTo="/"+e.id+e.h5Url.substring(e.h5Url.indexOf("?")):e.routeTo="/"+e.id,{path:"/"+e.id,component:window.$loadComponent("@/mapp/common/components/H5appLoader/index"),name:e.id,alias:e.name,hidden:!0,meta:e,sysCode:e.sysCode}}t["default"]={namespaced:!0,state:n,mutations:r,actions:o}},70819:function(e,t,i){"use strict";i.r(t);var n=i(45730),r=i(12215),o=i.n(r);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",d=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,i){return e[t]=i}}function f(e,t,i,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new E(n||[]);return r(a,"_invoke",{value:N(e,i,s)}),a}function p(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",b="executing",v="completed",g={};function y(){}function w(){}function _(){}var x={};u(x,l,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(O([])));S&&S!==i&&n.call(S,l)&&(x=S);var T=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function i(r,o,s,l){var d=p(e[r],e,o);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==a(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,l)}))}l(d.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function N(t,i,n){var r=h;return function(o,a){if(r===b)throw Error("Generator is already running");if(r===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=b;var d=p(t,i,n);if("normal"===d.type){if(r=n.done?v:m,d.arg===g)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(r=v,n.method="throw",n.arg=d.arg)}}}function L(t,i){var n=i.method,r=t.iterator[n];if(r===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,L(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(r,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var a=o.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var i=t[l];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function i(){for(;++r<t.length;)if(n.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError(a(t)+" is not iterable")}return w.prototype=_,r(T,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},C(M.prototype),u(M.prototype,d,(function(){return this})),t.AsyncIterator=M,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new M(f(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(T),u(T,c,"Generator"),u(T,l,(function(){return this})),u(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(n,r){return s.type="throw",s.arg=t,i.next=n,r&&(i.method="next",i.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),d=n.call(a,"finallyLoc");if(l&&d){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),D(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;D(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:O(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function l(e,t,i,n,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function d(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function a(e){l(o,n,r,a,s,"next",e)}function s(e){l(o,n,r,a,s,"throw",e)}a(void 0)}))}}var c="-"+location.port;localStorage.getItem("productCode")&&(c="-"+localStorage.getItem("productCode"));var u={token:o().get((window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN")+c),name:"",avatar:"",loginUser:{},disallowPermissions:{},roles:[],organList:[],productCodeList:[],productCodeAll:[],maxFileSize:-1},f={SET_TOKEN:function(e,t){e.token=t},SET_LOGIN_USER:function(e,t){e.loginUser=t},SET_NAME:function(e,t){e.name=t},SET_PERMISSIONS:function(e,t){var i={};t.forEach((function(e){if(e.resUrl){"/"!==e.resUrl.substring(0,1)&&(e.resUrl="/"+e.resUrl);var t=e.resUrl.split("/"),n=t[1]+"."+t[2];t.length>4?n+="."+t[4].replace(".html","").replace(".vue",""):t.length>3?n+="."+t[3].replace(".html","").replace(".vue",""):n=n.replace(".html","").replace(".vue",""),void 0===i[n]&&(i[n]=[]),i[n].push(e.code)}})),e.disallowPermissions=i},SET_ROLES:function(e,t){e.roles=t},SET_PERSON_ORGAN_LIST:function(e,t){e.organList=t},SET_AVATAR:function(e,t){e.avatar=t},SET_PRODUCT_CODE_LIST:function(e,t){e.productCodeList=t},SET_PRODUCT_CODE_ALL:function(e,t){e.productCodeAll=t||[]},SET_MAX_FILE_SIZE:function(e,t){e.maxFileSize=t}};function p(e){try{var t=document.createStyleSheet();t.cssText=e}catch(i){t=document.createElement("style");t.type="text/css",t.textContent=e,document.getElementsByTagName("HEAD").item(0).appendChild(t)}}var h={login:function(e,t){var i=e.commit,n=t.username,r=t.password,o=t.kaptcha,a=t.encrypt,l=t.productCode,c=t.sysCode,u=t.imei,f=t.enjwt;return new Promise((function(e,t){window.$user.formLogin({username:n.trim(),password:r,kaptcha:o,encrypt:a,productCode:l,sysCode:c,imei:u,enjwt:f}).then(function(){var n=d(s().mark((function n(r){var o,a,l;return s().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=r,"success"!==o.code){n.next=13;break}return a=o[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]||o["PORTAL-JWTSSO-TOKEN"],n.next=5,window.$user.getLoginUser(a);case 5:l=n.sent,o["STAFF_INFO_LIST"]&&o["STAFF_INFO_LIST"].length>0?l.staffList=o["STAFF_INFO_LIST"]:l.staffList=[],o["PERMISSION_LIST"]?(window.$auth.setProductCode(o["PRODUCT_CODE_LIST"],l.sysCode),window.$auth.setToken(a),window.$auth.setTicket(o[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(o["ecweb-csrf-token"]),i("SET_TOKEN",a),i("SET_ROLES",o["ROLE_CODE_LIST"]),i("SET_PERMISSIONS",o["PERMISSION_LIST"]),i("SET_PERSON_ORGAN_LIST",o["PERSON_ORGAN_LIST"]),i("SET_PRODUCT_CODE_LIST",o["PRODUCT_CODE_LIST"]),i("SET_PRODUCT_CODE_ALL",o["PRODUCT_CODE_ALL"]),i("SET_MAX_FILE_SIZE",o["MAX_FILE_SIZE"])):(window.$auth.setToken(a),window.$auth.setTicket(o[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(o["ecweb-csrf-token"]),i("SET_TOKEN",a)),i("SET_AVATAR","/apigw/base/user/download?id="+l.userId+"&dataField=photoData&nameField=photoName&csrfToken="+o["ecweb-csrf-token"]),i("SET_LOGIN_USER",l),e(o),n.next=14;break;case 13:t(o);case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()).catch((function(e){t(e)}))}))},tokenSsoLogin:function(e,t){var i=e.commit;return new Promise(function(){var e=d(s().mark((function e(n){var r;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getLoginUser(t[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]);case 2:r=e.sent,window.$auth.setProductCode(t["PRODUCT_CODE_LIST"],r.sysCode),window.$auth.setToken(t[window.jwtTokenKey||"ECWEB-JWTSSO-TOKEN"]),window.$auth.setTicket(t[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(t["ecweb-csrf-token"]),t["STAFF_INFO_LIST"]&&t["STAFF_INFO_LIST"].length>0?r.staffList=t["STAFF_INFO_LIST"]:r.staffList=[],i("SET_TOKEN",window.$auth.getToken()),i("SET_LOGIN_USER",r),i("SET_ROLES",t["ROLE_CODE_LIST"]),i("SET_PERMISSIONS",t["PERMISSION_LIST"]),i("SET_PERSON_ORGAN_LIST",t["PERSON_ORGAN_LIST"]),i("SET_PRODUCT_CODE_LIST",t["PRODUCT_CODE_LIST"]),i("SET_PRODUCT_CODE_ALL",t["PRODUCT_CODE_ALL"]),i("SET_MAX_FILE_SIZE",t["MAX_FILE_SIZE"]),i("SET_AVATAR","/apigw/base/user/download?id="+r.userId+"&dataField=photoData&nameField=photoName&csrfToken="+t["ecweb-csrf-token"]),n();case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},updateStore:function(e,t){var i=e.commit,n=e.state;return new Promise(function(){var e=d(s().mark((function e(r){var o,a;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=t||window.$auth.getToken(),n.loginUser.userId&&n.productCodeAll&&!t||!o){e.next=10;break}return e.next=4,window.$user.getLoginUser(o);case 4:a=e.sent,i("SET_TOKEN",window.$auth.getToken()),i("SET_LOGIN_USER",a),window.$user.findUserRolePermissions().then((function(e){if("success"===e.code){var t=e.body;try{window.$auth.getProductCode()||(window.$auth.setProductCode(t["PRODUCT_CODE_LIST"],a.sysCode),window.$auth.setToken(o))}catch(n){console.log(n)}window.$auth.setTicket(t[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(t["ecweb-csrf-token"]),i("SET_ROLES",t["ROLE_CODE_LIST"]),i("SET_PERMISSIONS",t["PERMISSION_LIST"]),i("SET_PERSON_ORGAN_LIST",t["PERSON_ORGAN_LIST"]),i("SET_PRODUCT_CODE_LIST",t["PRODUCT_CODE_LIST"]),i("SET_PRODUCT_CODE_ALL",t["PRODUCT_CODE_ALL"]),i("SET_MAX_FILE_SIZE",t["MAX_FILE_SIZE"]),t["STAFF_INFO_LIST"]&&t["STAFF_INFO_LIST"].length>0?a.staffList=t["STAFF_INFO_LIST"]:a.staffList=[],i("SET_LOGIN_USER",a),i("SET_AVATAR","/apigw/base/user/download?id="+a.userId+"&dataField=photoData&nameField=photoName&csrfToken="+t["ecweb-csrf-token"]),r(!0)}else r(e.message)})).catch((function(e){r(e)})),e.next=11;break;case 10:r(!0);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setUIStyle:function(e,t){e.state;return new Promise(function(){var e=d(s().mark((function e(i){var n;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,window.$user.getUIStyle();case 3:n=e.sent,"string"===typeof n&&p(n);case 5:i(!0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setDefaultUIStyle:function(e,t){e.state;return new Promise(function(){var e=d(s().mark((function e(i){var n;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getDefaultUIStyle(t);case 2:n=e.sent,"string"===typeof n&&p(n),i(!0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},updateJwtToken:function(e,t){var i=e.commit;return new Promise(function(){var e=d(s().mark((function e(n){var r;return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.$user.getLoginUser(t);case 2:r=e.sent,i("SET_TOKEN",t),i("SET_LOGIN_USER",r),window.$user.findUserRolePermissions().then((function(e){if("success"===e.code){var o=e.body;try{window.$auth.getProductCode()||(window.$auth.setProductCode(o["PRODUCT_CODE_LIST"],r.sysCode),window.$auth.setToken(t))}catch(a){console.log(a)}window.$auth.setTicket(o[window.ecwebTicket||"ecweb-ticket"]),window.$auth.setCsrfToken(o["ecweb-csrf-token"]),i("SET_ROLES",o["ROLE_CODE_LIST"]),i("SET_PERMISSIONS",o["PERMISSION_LIST"]),i("SET_PERSON_ORGAN_LIST",o["PERSON_ORGAN_LIST"]),i("SET_PRODUCT_CODE_LIST",o["PRODUCT_CODE_LIST"]),i("SET_PRODUCT_CODE_ALL",o["PRODUCT_CODE_ALL"]),i("SET_MAX_FILE_SIZE",o["MAX_FILE_SIZE"]),o["STAFF_INFO_LIST"]&&o["STAFF_INFO_LIST"].length>0?r.staffList=o["STAFF_INFO_LIST"]:r.staffList=[],i("SET_LOGIN_USER",r),n(!0)}else n(e.message)})).catch((function(e){n(e)})),n();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},hasPermission:function(e,t){var i=e.state,n="",r=t.href;if(void 0===r)return!0;for(var o=r.split(","),a=0;a<o.length;a++)if(r=o[a],0===r.indexOf("@/wapp")||0===r.indexOf("@/mapp")){var s=r.split("/");if(n=s[2]+"."+s[3],s.length>4&&(n+="."+s[4]),s.length>5&&(n+="."+s[5]),n=n.replace(".vue","").replace(".html",""),i.disallowPermissions[n]&&-1!==i.disallowPermissions[n].indexOf(t.pcode))return!1}else if(0===r.indexOf("#/dcontent")){r=r.split("/")[2];s=r.split(".");if(n=s[0]+"."+s[1],s.length>2&&(n+="."+s[2]),s.length>3&&(n+="."+s[3]),n=n.replace(".vue","").replace(".html",""),i.disallowPermissions[n]&&-1!==i.disallowPermissions[n].indexOf(t.pcode))return!1}return!0},logout:function(e){var t=e.commit;e.state;return new Promise(function(){var e=d(s().mark((function e(i){return s().wrap((function(e){while(1)switch(e.prev=e.next){case 0:window.$user.logout().then((function(){n.A.dispatch("route/updateRoutes",[]).then((function(){t("SET_TOKEN",""),t("SET_LOGIN_USER",null),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),t("SET_PERSON_ORGAN_LIST",[]),t("SET_AVATAR",""),t("SET_PRODUCT_CODE_LIST",[]),t("SET_PRODUCT_CODE_ALL",[]),window.$auth.removeProductCode(),window.$auth.removeToken(),window.$auth.removeTicket(),window.$auth.removeRoles(),window.$auth.removePermissions(),i()}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_LOGIN_USER",null),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),t("SET_AVATAR",""),window.$auth.removeTicket(),window.$auth.removeToken(),window.$auth.removeRoles(),window.$auth.removePermissions(),e()}))}};t["default"]={namespaced:!0,state:u,mutations:f,actions:h}},78532:function(e,t,i){"use strict";i.r(t);var n=i(12215),r=i.n(n),o=i(98259),a={sidebar:{opened:!r().get("sidebarStatus")||!!+r().get("sidebarStatus"),withoutAnimation:!1},device:"desktop",language:(0,o.Z0)(),size:r().get("size")||"medium"},s={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?r().set("sidebarStatus",1):r().set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){r().set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},OPEN_SIDEBAR:function(e,t){r().set("sidebarStatus",1),e.sidebar.opened=!0,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_LANGUAGE:function(e,t){e.language=t,r().set("language",t)},SET_SIZE:function(e,t){e.size=t,r().set("size",t)}},l={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var i=e.commit,n=t.withoutAnimation;i("CLOSE_SIDEBAR",n)},openSideBar:function(e,t){var i=e.commit,n=t.withoutAnimation;i("OPEN_SIDEBAR",n)},toggleDevice:function(e,t){var i=e.commit;i("TOGGLE_DEVICE",t)},setLanguage:function(e,t){var i=e.commit;i("SET_LANGUAGE",t)},setSize:function(e,t){var i=e.commit;i("SET_SIZE",t)}};t["default"]={namespaced:!0,state:a,mutations:s,actions:l}},26338:function(e,t,i){"use strict";i.r(t);i(28572);var n=i(38342),r=i(4466);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",d=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function u(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,i){return e[t]=i}}function f(e,t,i,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new E(n||[]);return r(a,"_invoke",{value:N(e,i,s)}),a}function p(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",b="executing",v="completed",g={};function y(){}function w(){}function _(){}var x={};u(x,l,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(O([])));S&&S!==i&&n.call(S,l)&&(x=S);var T=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function i(r,a,s,l){var d=p(e[r],e,a);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==o(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,l)}))}l(d.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function N(t,i,n){var r=h;return function(o,a){if(r===b)throw Error("Generator is already running");if(r===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=b;var d=p(t,i,n);if("normal"===d.type){if(r=n.done?v:m,d.arg===g)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(r=v,n.method="throw",n.arg=d.arg)}}}function L(t,i){var n=i.method,r=t.iterator[n];if(r===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,L(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(r,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var a=o.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var i=t[l];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function i(){for(;++r<t.length;)if(n.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return w.prototype=_,r(T,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},C(M.prototype),u(M.prototype,d,(function(){return this})),t.AsyncIterator=M,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new M(f(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(T),u(T,c,"Generator"),u(T,l,(function(){return this})),u(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(n,r){return s.type="throw",s.arg=t,i.next=n,r&&(i.method="next",i.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),d=n.call(a,"finallyLoc");if(l&&d){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),D(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;D(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:O(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function s(e,t,i,n,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function l(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function a(e){s(o,n,r,a,l,"next",e)}function l(e){s(o,n,r,a,l,"throw",e)}a(void 0)}))}}var d=i(34195),c=d.showTopMenus,u={routes:[]},f={SET_ROUTES:function(e,t){e.routes=t}},p={generateRoutes:function(e,t){var i=e.commit;return new Promise((function(e,n){window.$user.findNavMenus(t).then(function(){var t=l(a().mark((function t(n){var o,s,l,d,c,u;return a().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=window.$loadComponent("@/wapp/common/layout/index"),s=[],l=n.body.listdata.filter((function(e){if(1===e.moduleLevel)return!0})),t.next=5,window.$user.getLoginUser(window.$auth.getToken());case 5:if(d=t.sent,c=sessionStorage.getItem("dynamicRoutes-"+d.personAccount),c&&(c=JSON.parse(c),h(s,c)),l.forEach((function(e){var t=o;!e.href||"@/"!==e.href.substring(0,2)&&"#/dcontent"!==e.href.substring(0,10)||"_top"!==e.target||(t=window.$loadComponent(e.href));var i=b(t,e,null,null,null);if(s.push(i),!c||e.id!==c[0].meta.id){var r=m(t,n.body.listdata,e,null,null);s=s.concat(r)}})),void 0!==n.body.wappRoutes&&null!==n.body.wappRoutes)for(u in n.body.wappRoutes)h(s,n.body.wappRoutes[u]);i("SET_ROUTES",s),r.A.connectWebSocket(window.$wapp),e(s);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){n(e)}))}))},updateRoutes:function(e,t){var i=e.commit;i("SET_ROUTES",t)}};function h(e,t){t.forEach((function(t){t.component&&"string"===typeof t.component?t.component=window.$loadComponent(t.component):t.meta&&t.meta.href&&(0===t.meta.href.indexOf("@/")||0===t.meta.href.indexOf("#/dcontent"))&&(t.component=window.$loadComponent(t.meta.href)),e.push(t),void 0!==t.children&&null!==t.children&&h(e,t.children)}))}function m(e,t,i,n,r,o){var a=[],s=t.filter((function(e){if(e.parentId===i.id)return!0}));return s.forEach((function(s){2===s.moduleLevel&&(n=s.code),3===s.moduleLevel?(r=s.name,o=(s.i18nCode||s.code).replace(".svg","")):4!==s.moduleLevel||s.target||(s.target="rightLabel");var l=b(e,s,n,r,o);l.meta.parentTarget=i.target,0===s.leafFlag&&(l.children=m(e,t,s,n,r,o),("rightLabel"===s.target||s.moduleLevel>=3&&"leftMenuItem"!==s.target)&&l.children.length>0?(l.children.forEach((function(e,t){e.hidden=!0,"rightLabel"===s.target&&(e.meta.parentTarget="rightLabel"),e.meta.activeMenu=l.meta.activeMenu||l.path})),""!==l.meta.href&&"#"!==l.meta.href||(l.redirect=l.path+"/"+l.children[0].path)):3===s.moduleLevel&&"leftMenuItem"===s.target&&l.children.forEach((function(e,t){e.meta.activeMenu=l.meta.activeMenu+"/"+e.path}))),a.push(l)})),a}function b(e,t,i,r,o){var a=!1,s="/lm/"+t.id,l=t.code,d=null;1===t.moduleLevel?(a=!0,s="/tm/"+t.id):2===t.moduleLevel?a=c:(null!==t.wfName&&""!==t.wfName||(l=null),d="/lm/"+t.parentId+"/"+t.id,s=t.id);var u=t.href||"#",f=null;f=-1!==u.indexOf("?")?u.substring(u.indexOf("?")+1):null;var p=e;if(null!==u&&"@/"===u.substring(0,2))p=window.$loadComponent(u),u=u.split("?")[0];else if(null!==u&&"#/dcontent/"===u.substring(0,11)){var h=u.substring(11);-1===h.indexOf("?")?h+=".vue?sysCode="+t.sysCode:h=u.substring(11).split("?")[0]+".vue?sysCode="+t.sysCode+"&"+u.substring(11).split("?")[1],p=0===h.indexOf("portalpage/")||0===h.indexOf("vuereportpage/")||5===t.leafType?window.$loadComponent("#/dcontent/"+h):window.$loadComponent("#/dcontent/vuelistpage/"+h),u=u.split("?")[0]}else null!==u&&"http"===u.substring(0,4)?p=n.vT:t.moduleLevel>2&&(p=window.$loadComponent("@/wapp/common/layout/components/Blank"));1!==t.leafFlag||t.target&&"leftMenuItem"!==t.target||(1===t.moduleLevel?t.target="mainpage":t.target="content");var m={path:s,component:p,name:t.id,alias:t.name,hidden:a,alwaysShow:2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target,meta:{id:t.id,componentUrl:p.componentUrl,lazy:p.lzay,title:t.name,description:t.description,busiType:t.busiType,icon:l,code:t.code,i18nCode:(t.i18nCode||t.code).replace(".svg",""),level:t.moduleLevel,topFlag:t.topFlag,href:u,target:t.target,params:f,parentId:t.parentId,parentIconCode:i,parentTitle:r,parentI18nCode:o,activeMenu:d,wfName:t.wfName,wfNodeName:t.wfNodeName,wfEngineUrl:t.wfEngineUrl,sysCode:t.sysCode}};if(t.href&&"#"!==t.href&&t.moduleLevel<=2&&("content"===t.target||"mainpage"===t.target)){m.path="/lm/"+t.parentId+"/"+t.id,m.hidden=!1,m.meta.level=t.moduleLevel+1;var b={path:"/lm/"+t.parentId+"/"+t.id+"/"+Math.random(),component:e,hidden:a,meta:{id:t.id,title:t.name,i18nCode:(t.i18nCode||t.code).replace(".svg",""),busiType:t.busiType,icon:t.code,level:t.moduleLevel,parentId:t.parentId,target:t.target,breadcrumb:!1,sysCode:t.sysCode},children:[m]};1===t.moduleLevel&&(b.path="/"+t.parentId,b.meta.topFlag=t.topFlag,b.meta.target="mainpage",b.hidden=!0,b.children[0].path=t.id,b.children[0].hidden=!0,b.children[0].meta.parentId=t.id),m=b}return m}t["default"]={namespaced:!0,state:u,mutations:f,actions:p}},44578:function(e,t,i){"use strict";i.r(t);var n=i(1631),r=i(34195),o=r.title,a=r.showSettings,s=r.tagsView,l=r.fixedHeader,d=r.showTopMenus,c=r.stripeTable,u={title:o,theme:n.theme,showSettings:a,tagsView:s,fixedHeader:l,showTopMenus:d,stripeTable:c},f={CHANGE_SETTING:function(e,t){if(t.key)e.hasOwnProperty(t.key)&&(e[t.key]=t.value);else for(var i in t)e.hasOwnProperty(i)&&(e[i]=t[i])}},p={changeSetting:function(e,t){var i=e.commit;i("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:u,mutations:f,actions:p}},16575:function(e,t,i){"use strict";function n(e){return a(e)||o(e)||f(e)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e){if(Array.isArray(e))return p(e)}function s(e,t){return c(e)||d(e,t)||f(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,d=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){d=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}function c(e){if(Array.isArray(e))return e}function u(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=f(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}i.r(t);var h={visitedViews:[],cachedViews:[]},m={ADD_VISITED_VIEW:function(e,t){var i={};i.title=t.meta.tagTitle||t.meta.title||"no-name",i.path=t.path,i.fullPath=t.fullPath,i.meta=JSON.parse(JSON.stringify(t.meta)),i.query=JSON.parse(JSON.stringify(t.query)),i.params=JSON.parse(JSON.stringify(t.params)),t.query&&t.query.tagTitle&&(i.title=decodeURI(t.query.tagTitle));for(var n=0;n<e.visitedViews.length;n++){var r=e.visitedViews[n];if(r.path===t.path){if(r.clone){if(r.fullPath===t.fullPath)return;e.visitedViews.splice(n,1),e.cachedViews.splice(n--,1)}else{if(-1===t.fullPath.indexOf("itemurl="))return;t.query.tagTitle?i.title=decodeURI(t.query.tagTitle):i.title="正在打开..",i.meta.tagTitle=i.title}-1!==t.fullPath.indexOf("itemurl=")&&(i.clone=!0)}}e.visitedViews.push(i)},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.fullPath)||t.meta.noCache||e.cachedViews.push(t.fullPath)},DEL_VISITED_VIEW:function(e,t){var i,n=u(e.visitedViews.entries());try{for(n.s();!(i=n.n()).done;){var r=s(i.value,2),o=r[0],a=r[1];if(a.fullPath===t.fullPath){e.visitedViews.splice(o,1);break}}}catch(l){n.e(l)}finally{n.f()}},DEL_CACHED_VIEW:function(e,t){var i,n=u(e.cachedViews);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r===t.fullPath){var o=e.cachedViews.indexOf(r);e.cachedViews.splice(o,1);break}}}catch(a){n.e(a)}finally{n.f()}},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.fullPath===t.fullPath}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var i,n=u(e.cachedViews);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r===t.fullPath){var o=e.cachedViews.indexOf(r);e.cachedViews=e.cachedViews.slice(o,o+1);break}}}catch(a){n.e(a)}finally{n.f()}},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var i,n=u(e.visitedViews);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.fullPath===t.fullPath){r=Object.assign(r,t);break}}}catch(o){n.e(o)}finally{n.f()}}},b={addView:function(e,t){var i=e.dispatch;i("addVisitedView",t),i("addCachedView",t)},addVisitedView:function(e,t){var i=e.commit;i("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var i=e.commit;i("ADD_CACHED_VIEW",t)},delView:function(e,t){var i=e.dispatch,r=e.state;return new Promise((function(e){i("delVisitedView",t),i("delCachedView",t),e({visitedViews:n(r.visitedViews),cachedViews:n(r.cachedViews)})}))},delVisitedView:function(e,t){var i=e.commit,r=e.state;return new Promise((function(e){i("DEL_VISITED_VIEW",t),e(n(r.visitedViews))}))},delCachedView:function(e,t){var i=e.commit,r=e.state;return new Promise((function(e){i("DEL_CACHED_VIEW",t),e(n(r.cachedViews))}))},delOthersViews:function(e,t){var i=e.dispatch,r=e.state;return new Promise((function(e){i("delOthersVisitedViews",t),i("delOthersCachedViews",t),e({visitedViews:n(r.visitedViews),cachedViews:n(r.cachedViews)})}))},delOthersVisitedViews:function(e,t){var i=e.commit,r=e.state;return new Promise((function(e){i("DEL_OTHERS_VISITED_VIEWS",t),e(n(r.visitedViews))}))},delOthersCachedViews:function(e,t){var i=e.commit,r=e.state;return new Promise((function(e){i("DEL_OTHERS_CACHED_VIEWS",t),e(n(r.cachedViews))}))},delAllViews:function(e,t){var i=e.dispatch,r=e.state;return new Promise((function(e){i("delAllVisitedViews",t),i("delAllCachedViews",t),e({visitedViews:n(r.visitedViews),cachedViews:n(r.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,i=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(n(i.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,i=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(n(i.cachedViews))}))},updateVisitedView:function(e,t){var i=e.commit;i("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:h,mutations:m,actions:b}},4466:function(e,t){"use strict";var i=location.host;i="".concat(location.protocol.indexOf("https")>-1?"wss://":"ws://","/").concat(i,"/webSocket/");var n=!1,r=null,o=null,a=null;function s(e){if(!n){o=e;var t=window.ReconnectingWebSocket;if(t&&o.$settings.websocketAutoConnection){n=!0;var s=e.$store.getters.loginUser,p=[],h={debug:!0,reconnectInterval:3e3,reconnectDecay:2,maxReconnectInterval:3e5,maxRetries:10};o.$setting&&void 0!==o.$setting.webSocketMaxRetries&&(h.maxRetries=o.$setting.webSocketMaxRetries),console.log("创建连接===",i+s.userId+"_"+(window.deviceId||"web")),r=new t(i+s.userId+"_"+(window.deviceId||"web"),p,h),r.onerror=function(t,i){n=!1,console.log("websocket连接错误===",t,i),e.$bus.emit("webSocketError",t)},r.onopen=function(t){console.log("websocket连接成功"),n=!0,f(o.$store.getters.loginUser,window.$auth.getTicket()),e.$bus.emit("webSocketOpen",t)},r.onmessage=function(t){var i=JSON.parse(t.data);"heartBeat"!==i.body.type&&("212"===i.body.type&&(null!==a&&(clearInterval(a),a=null),l()),e.$bus.emit("webSocketOnmessage",t))},r.onclose=function(t){console.log("websocket连接断开"),n=!1,e.$bus.emit("webSocketOnClose",t)},e.$bus.on("webSocketClose",l),e.$bus.on("webSocketSend",d),e.$bus.on("reloadWebSocketConnect",c),e.$bus.on("getConnectParams",u),window.onbeforeunload=function(){l()}}}}function l(){r.close()}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};r.send(e),t()}function c(e){null!==a&&(clearInterval(a),a=null),e&&(i=e),null!==r&&l(),n=!1,s(o)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};e({wsurl:i,connect:n})}function f(e,t){a=setInterval((function(){d(JSON.stringify({message:{receipt:!1,fromUser:{userId:e.userId+"_"+(window.deviceId||"web"),userName:e.personName},body:{type:"heartBeat",message:"维持心跳消息"}},ticket:t}))}),3e4)}t.A={connectWebSocket:s}},79561:function(e){e.exports={ecwapp:{Basicform:{emptyMessage:"Please select access authorization",propComment:"Access Authorization",unsupportedMessage:"Unsupported file format!",deleteUploadedFile:"Are you sure you want to delete the uploaded file?",iconDialogTitle:"Select Icon"},BatchProcessing:{allCategories:"All Categories",notClassified:"Not classified",unClassified:"Unclassified",winTitle:"Follow Files",lxbwTitle:"Continuous document processing",plbwTitle:"Batch Document Processing",plywTitle:"Batch Reading",plzxTitle:"Batch Cancellation",orderInvalid:"Batch processing instruction {actionType} is invalid!",cancellation:"Cancellation",handle:"process",cancellationOrhandle:"Please select the file that requires batch {actionType}!",setUp:"Settings",cancel:"Cancel",successFile:"Follow file successfully!",erroeFile:"Failed to follow file!",lxblFile:"Please select the files that need to be processed continuously!",typeAndStatus:"The file type or processing step you have selected is inconsistent and cannot be processed in bulk!",belongingDw:"The files you have selected do not belong to the same organization and cannot be processed in bulk!",surePlzxFile:"Are you sure you want to batch cancel files?",todoSuccessFile:"Successfully processed!",commonLengthFile:"A total of {length} files have been processed consecutively!",todoCompleteFile:"{winTitle} Processing completed!",youCannotHandle:"You are not the current processor of {wfItem} and cannot handle it!",addFollow:"Add Follow",cancelFollow:"unfollow",adjustClassification:"Adjust classification",selectNeed:"Please select the file that requires {attendText}!",notSelectable:"{typeName} is not selectable",changeType:"Switch Category",changeTypeSuccess:"Successfully switched categories!",selcetType:"Please select category",selectNeedZpFile:"Please select the file that needs to be transferred!",selectZbReceiver:"Select the recipient for transfer",transferFile:"Jointly transfer {content} files",hangUp:"Suspend",unboxing:"Unboxing",reductionFile:"Please select the file to be restored!",cancelledFile:"Are you sure you want to restore the logged out file?",addMenu:"Add Category",editMenu:"Edit Categories",changeMeun:"Change Category",delMenu:"Delete Category",setMenu:"Classification Settings",noEditMenu:"Editing {menu}' 'is not allowed",nodeleterMenu:"Deleting {menu}' 'is not allowed",deleteSelectMeun:"Are you sure you want to delete the selected category?"},Common:{index:"SN",fileTitle:"File Title",fileType:"File Type",processingPersonal:"Processor",handlerDept:"Processing department",sender:"Sender",startTime:"StartTime",processingSteps:"Processing Steps",processingStatus:"Processing Status",fileName:"File Name",fileSize:"File size",uploadTime:"Upload Time",uploader:"uploader",operate:"Operation",tobeUpload:"To be uploaded",reUpload:"Re upload",readerScope:"View permissions",deleting:" Deleting...",delSuccess:"Deletion successful",cancelSave:"Cancel Save",notOpen:"Not opened",notCompleted:"Incomplete",notSubmitted:"Not submitted",notTiemOut:"Not timed out",endless:"No time limit",tobeReviewed:"To be viewed",readAlready:"already read"},DataTable:{selectRow:"{selectedRowCount} data has been selected",previousPage:"Previous Page",nextPage:"Next Page",requiredFiledTip:"{content} is required",needDeleterRow:"Please select the data that needs to be deleted.",sureDeleterRow:"Are you sure you want to delete the selected data?",onlyOneOrg:"Only data access permissions belonging to the same organization can be set.",onlyOneProduct:"Only data access permissions for the same product can be set.",selectSetRoot:"Please select the data for which access permissions need to be set!",selectExport:"Please select the data you want to export!",targetDatabase:"Target database",targetDatabaseType:"Please select the target database type:",exportTipText:"Are you sure you want to export all the data from the current list?<br/>If only partial data needs to be exported, please select or filter through search first.",downloadRow:"Please select the data that needs to be downloaded in bulk.",resourcePermissions:"Resource Access Permissions",auMethod:"Authorization Method ",selectAuMethod:"Please select the authorization method ",auObject:"Authorization Object",moduleMenu:"Module Menu",operationButton:"Operation Button",processButton:"Process Button",serviceInterface:"Service Interface",accessSystem:"Access System",portalMiniProgram:"Portal Mini Program",mobileApplications:"Mobile Applications",fileQuery:"File Query",allFileQuery:"All File Query",deptFileQuery:"Dept File Query",changeRoot:"Are you sure you want to batch modify access permissions?",startSearching:"Start Search",clearSearch:"Clear Search",startBeforeEnd:"{title} The start time must be before the end time",allPersonnel:"All personnel",selectDateTime:"Select Date Time",refresh:"Refresh",list:"Column"},DoingDialog:{doingWait:"Processing in progress, please wait..."},ModifyFormTrace:{formTitle:"Form Modification Record",saveFormInfo:"Save form information",noFormRecord:"No form modification record available",current:"Currently"},PageBtns:{sure:"OK",choice:"Select",del:"Delete",resend:"Resend"},PdfTools:{sgnature:"Signature",addSgnature:"Add Signature",saveSgnature:"Save signature",selectSeal:"Select Seal",saveSeal:"Save Seal",appAddSgnature:"Scan QR code on mobile device to add signature",selectSgnature:"Select signed",noSgnature:"No available signatures at the moment",noStampedFile:"There are no stamped body files available.",redBeforeStamping:"The current file is not highlighted, please highlight it before stamping.",saveSealTip:"Saving seal, please wait...",electronicSeal:"Electronic Seal",sealAccount:"Seal Account",inputSealAccount:"Please enter the seal account",sealPassword:"Seal Password",inputSealPassword:"Please enter the seal password",stampMethod:"Stamping Method:",stampPage:"Stamped Page:",currentPage:"Current Page",allPage:"All pages",partialPage:"Partial Page",oddPage:"Odd Pages",pageNumber:"Page Number",pageNumberTip:"Please enter page number or page range",explain:NaN,stampPageNumber:"Stamp Page Number:",whatPage:"Page {dataType}",loadingWait:"Loading, please wait...",sealAndStamp:"Seal",pageSignature:"Page Signature",saddleSeal:"Riding Seal",standardizedFilling:"Please follow the prompts to fill in page numbers in a standardized manner!",firstSelect:"Please select the seal first!",inputStampPageNumber:"Please enter the page number that needs to be stamped!"},SelectDialog:{selectAll:"Select All",search:"Search",sureClearSelection:"Are you sure to clear the selection?",byInstitution:"By Institution",byPosition:"By Position",byGroup:"By Group",byCommonGroup:"By Common Group",keyWords:"Please enter search keywords",searching:"Searching for...",selected:"Selected ({dataType})",setCommonGroup:"Set as Common Group",noSelection:"No selection available",commonGroup:"Common Group",commonGroupName:"Common Group Name",inputCommonGroup:"Please enter a commonly used group name!",addUsedGroup:"Are you sure you want to add a frequently used group?",selectRegion:"Select Administrative Region",selectDirectory:"Select Institution Directory",selectWorkGroup:"Select WorkGroup",selectJobPosition:"Select job position",selectPersonnelExtend:"Select personnel (extension)",selectDepartmentExtend:"Select Department (Extension)"},TextRecognition:{identifyFileTitle:"Recognized as file title",identifyUnit:"Identify as the unit of communication",identifyDate:"Recognized as date of communication",identifyId:"Recognized as Document Number",identifyCory:"Recognized as a cutting board",identifyText:"Recognized as text",corySuccess:"Copy successful",identifySuccess:"Recognition successful",invalidDateFormat:"Invalid date format",textIdentify:"Text Recognition",textIdentifyResults:"Text Recognition Results",uploadIdentifyFile:"Upload the file to be recognized",identifyResults:"Identification result:",identifyCount:"Number of words recognized: {dataType}",timeConsumption:"Duration: {dataType}",identifyFailed:"Text recognition failed, please try again later!",noWfEngineUrl:"Recognition failed (failed to obtain wfEngineURL)"},Wflowform:{Attachment:{moveTip:"Press and drag the mouse to move and sort",noAttachments:"No attachments available",pUploadFile:"Please upload the file",clickUpload:"Click to upload",limitUpload:"Currently limited to uploading {limitCount} files, {attachLength} files have already been uploaded, {valLength} files have been selected this time, exceeding {lengthCount} files",togetherUpload:"Currently, the upload limit is {limitCount} files. This time, {valLength} files have been selected, for a total of {fileLength} files",beyondUpload:"Currently limited to uploading {limitCount} files, {valLength} files have been selected this time, out of a total of {fileLength} files, exceeding {lengthCount} files",notAllowedUpload:"Currently, the upload limit is {limitCount} files, and adding new files is not allowed",cannotBeUpload:"The file {fileName} already exists, named files cannot be uploaded.",onlineFile:"Generating online preview file, please wait...",delReupload:"Are you sure you want to delete and re upload?",delSelAttach:"Are you sure you want to delete the selected attachment?",fileUploadSuccess:"File upload successful!",needUploadFile:"Please select the attachment you want to upload!",noSelNeedUploadFile:"No attachments selected for upload",noTobeUploadFile:"There are no pending attachments to upload",attchUploadFile:"All attachments uploaded successfully",notSupportSaveas:"Unuploaded local files do not support saving as!",noDowmAttach:"There are no downloadable attachments.",needSaveadAttach:"Please select the attachment that needs to be saved separately.",selectReaderScope:"Please select View permissions",maxFileSize:"Uploading a single file size is not allowed to exceed {maxFileSize}"},BodyFile:{bodyText:"Main text",historicalVersion:"Historical Version",currentVersion:"Current Version",uploadStamped:"Upload stamped file",uploadTextFile:"Upload the main text",mattersNeeding:"Precautions",fileContent:"Format instructions for uploading file content:",firstPoint:"1. The uploaded file should be a. pdf file;",secondPoint:"2. The uploaded file should be a stamped file, with the same legal effect as a stamped (signed) file.",thirdPoint:"3. In the case of multiple uploads of stamped files, only the last upload will be selected. After confirming that the upload is correct in the current window, please click the OK button to complete the upload operation.",fileBody:"Document Content",downloadingWait:"Downloading file, please wait...",deleterCurrent:"Are you sure you want to delete the current file?",deleterHistor:"Are you sure you want to delete the historical version file",errFileFormat:"The file format you uploaded is incorrect. Only files in {accept} format are supported!",uploadingFile:"Uploading body text...",stampedDocument:"There is currently a stamped document, re uploading it will overwrite the previous stamped document!<br/>Do you want to continue?",directlyUpload:"The current content of the main text has not been highlighted yet <br/>Do you want to upload the stamped document directly?",sureToClose:"Are you sure to close?",onlyPDF:"The file format you uploaded is incorrect, only PDF format files are supported!",cannotSave:"The stamped file has not been uploaded yet, cannot be saved!",uploadingStamped:"Uploading stamped file..."},HandleIdea:{opinion:"Opinion",otherOpinion:"Other opinions",open:"Expand",fold:"fold",deleteOpinion:"Delete process instance opinion",sureDeleteOpinion:"Are you sure you want to delete the processing suggestion?"},IdeaInputBox:{pWriteOpinion:"Please fill in the handling opinion.",selectSaveType:"Select the method for saving opinions",selectComOpinion:"Select common opinions",selectShowScope:"Set the reader of opinions",noComOpinion:"No commonly used comments at the moment",saveComOpinion:"Save frequently used opinions",appendOpinion:"Add new opinions",replaceOpinion:"Replace the original opinion",retainOpinion:"Keep the original opinion",opinionAttach:"Opinion Attachment:",pOpinionAttach:"Please select the opinion attachment",personalOpinions:"Common personal opinions",writeOpinion:"Fill in opinions",sureDeleteAttach:"Are you sure you want to delete the opinion attachment?",useCommonOpinion:"The processing suggestion already exists. Are you sure you want to use the commonly used suggestion?",uploadFileFail:"Upload file failed",fileExists:"An opinion attachment with the same name already exists, please modify the attachment name!"},IdeaSignature:{opinionSignature:"Opinion Signature",appAddOpinion:"Scan your phone to add your opinion signature",openWithBrowser:"If the signature canvas cannot be opened properly, please select Open with browser",unableApp:"Mobile cannot access {window}",signatureFail:"Signature failed"},ImgView:{prevPicture:"Previous picture",nextPicture:"Next Picture",narrow:"Shrink",enlarge:"enlarge",leftRotation:"Left Rotation",rightRotation:"Right rotation"},WflogAddReader:{circulation:"Circulation",readers:"Circulation personnel",selReaders:"Please select the circulation personnel",timeLimit:"End time of circulation",selTimeLimit:"Please select the end time for circulation",sendToOther:"Continue to circulate",viewHistoryIdea:"View opinions"},ModifyWflogAddUser:{prevStep:"Previous processing step",prevHandler:"Previous stage handler",addStep:"Add processing step",addHandler:"Add link handler",pSelectAddStep:"Please select the new processing step",pSelectAddHandler:"Please select a new link handler",addStepLimit:"Add processing time limit for new steps",endless:"No time limit",specifyLimit:"Specify time limit",pSelectLimit:"Please select a processing time limit",addProcessor:"Add Processor",batchTransfer:"Batch Transfer",successfullyCompleted:"{winTitle} has been successfully completed!",nextTodoMode:"Subsequent handling method",nextTodoModeReturn:"Return to the previous step",nextTodoModeUseSubmitNext:"Submit the next step"},ModifyWflogIdea:{oldOpinion:"Original Processing Opinion",newOpinion:"New Processing Opinion",newOpinionWriteTime:"New opinion signature time",newOpinionWriteTime0:"Original signature date",newOpinionWriteTime1:"This save time",newOpinionWriteTime2:"Specify the signing time",inputNewOpinion:"Please enter a new processing suggestion",handleOpinion:"Handling Opinion"},ModifyWflogSubmitFile:{selfTesting:"Process Self Testing ({wflog})",reprocessTesting:"Reprocess ({wflog})",agencyTesting:"agency (wflog)",uploadMaterials:"Please upload supporting materials!"},ModifyWfNodelog:{notice:"Notification",selectNoticeType:"Select notification method",takeBack:"Retract",mandatoryCompletion:"Mandatory completion",completionTime:"Completion time",timeLimit:"Processing time limit",submitPath:"Submission Path",reprocess:"Reprocess",agency:"proxy",transfer:"transfer",removeAssistantUser:"Remove Assistant User",canBeretRieved:"There is no processing step that can be retrieved!",wantToRetrieve:"Are you sure you want to retrieve the file?",needDelStep:"Please select the process node that needs to be deleted!",sureDelStep:"Are you sure you want to delete the selected process node?",synchronizationDel:"The node to be deleted contains sub process instances. Are you sure you want to synchronize the deletion?",processToCeCompleted:"Are you sure you want to force the process to be completed?",transferredHandle:"The file has been successfully transferred to {selectedNodes} for processing.",transferPersonnel:"Select transfer personnel",revokeAuthorization:"Are you sure you want to revoke the processing permission granted to {deputy}?"},ReplaceFile:{replaceFile:"Replace file",replaceFileAttach:"File Attachment Replacement",replaceFileSuffix:"Please replace the file with the same suffix!",fileName:"Name",updateTime:"Upload Time",updateBy:"Upload personnel",operate:"Operation"},SelectOuterDeputy:{outwardPeople:"Outward people",agent:"Agent",sendToMe:"Send to me",selectAgent:"Select Agent",selectedOutAgent:"An outbound agent has been selected."},SubmitDialog:{submitHandle:"Submit for processing",editMainText:"Please edit the main text!",uploadMainText:"Please upload the main text!"},SubmitHandle:{defineSteps:"Process Definition",processSteps:"Process Steps",processHandler:"Process handler",submitNextStage:"Submit to the next stage",handleLimint:"Processing time limit",byWorkDay:"By working day",byNaturalDay:"By natural day",peopleCount:",a total of {count} people",assistHandling:"Assisting with document processing",smsNotice:"SMS Notification",todoNotice:"To Do Notification",stayTuned:"Stay focused",noTemplate:"No processing template available",selectTemplate:"Select Processing Template",saveTemplate:"Save processing template",supportMaterials:"Supporting Materials",pSupportMaterials:"Please select supporting materials",processTemplate:"Processing Template",sendRoute:"Send {NextNode}",endProcessing:"End Processing",sendBack:"Return",addHandlers:"Add handlers",transferTo:"Transfer"},ViewBodyFile:{noMainText:"No text at the moment",contractTemplate:"Select Contract Template",downLook:"Online preview is not supported, you can download it locally to view"},WfNodelogList:{docTracking:"Document Tracking",openTiem:"Open Time",processingTime:"Processing Time",timeoutDuration:"timeout duration",toread:"Send for review",readingLog:"Reading Log",readingTime:"Reading Time",timeLimit:"Time limit",remark:"Remark",trackingMap:"Process Tracking Map",situationAnalysis:"Completion Analysis",readingSection:"Reading section",readingLiterati:"Reading Literati",readingDepartment:"Reading Literature Departmen",circulationOpinions:"Circulation Opinions",myOpinion:"My opinion",recipient:"Recipient",toDone:"Completed",notDoTimedOut:"Not processed (not timed out)",doTimedOut:"Not processed (timed out)",unread:"unread",addReaders:"Add readers",addReadersSuccess:"Successfully added readers!",readedClosed:"Are you sure you have read and closed?",udmNodeNameIsNull:"Process steps are unnamed!"},WfTaskNode:{stepSetting:"Stage Setting",linkName:"Link Name",inputLinkName:"Please enter the link name",taskType:"Task Type",selectTaskType:"Please select the task type",singlePerson:"Single person",multiplayerParallel:"Multiplayer Parallel",multiPersonSignature:"Multi person co signature",multiplayerSerial:"Multiplayer Serial",multiplayerCompetition:"Multiplayer Competition",multiPersonReading:"Reading with multiple people",handlerMethod:"Method for selecting handlers",designatedPersonnel:"Designated personnel",byDepartment:"By Department",byWorkgroup:"By Workgroup",byJobPosition:"By job position",byJobRank:"By job rank",byHistoryTNUser:"By history user",optionalStage:"Optional handlers for stages",xzhjclr:"Please select the link handler",xzhjclrbm:"Please select the department responsible for handling the process",xzhjclrgzqz:"Please select the link handler workgroup",xzhjclrgzgw:"Please select the job position of the link handler",editPermissions:"Edit Permissions",setEditPermissions:"Please set editing permissions",opinionTags:"Opinion tags",selectOpinionTags:"Please choose an opinion tag"},WriteToReadIdea:{reviewComments:"Review Comments",writReviewComments:"Please provide your review comments",noWritReview:"Your reading record does not exist, unable to provide feedback"}}}}},23582:function(e){e.exports={}},60380:function(e,t,i){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function a(e,t,i){return(t=s(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e){var t=l(e,"string");return"symbol"==n(t)?t:t+""}function l(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=i(79561),c=i(54293),u=i(23582),f=i(90583),p={en:o({},d),zhCN:o({},c),es:o({},u),ja:o({},f)};e.exports=o({},p)},90583:function(e){e.exports={}},54293:function(e){e.exports={ecwapp:{Basicform:{emptyMessage:"请选择访问授权",propComment:"访问授权",unsupportedMessage:"不支持的文件格式!",deleteUploadedFile:"您是否确认删除已上传的文件?",iconDialogTitle:"选择图标"},BatchProcessing:{allCategories:"全部分类",notClassified:"不分类",unClassified:"未分类",winTitle:"关注文件",lxbwTitle:"连续办文",plbwTitle:"批量办文",plywTitle:"批量阅文",plzxTitle:"批量注销",orderInvalid:"批量处理指令“{actionType}”无效!",cancellation:"注销",handle:"处理",cancellationOrhandle:"请选择需要批量{actionType}的文件!",setUp:"设置",cancel:"取消",successFile:"关注文件成功!",erroeFile:"关注文件失败!",lxblFile:"请选择需要连续办理的文件!",typeAndStatus:"您选择的文件类型或处理环节不一致,无法批量办理!",belongingDw:"您选择的文件不属于同一单位,无法批量办理!",surePlzxFile:"您是否确认批量注销文件?",todoSuccessFile:"已处理成功!",commonLengthFile:"共{length}份文件已连续处理完成!",todoCompleteFile:"{winTitle}已处理完成!",youCannotHandle:"您不是“{wfItem}”的当前处理人,不能办理!",addFollow:"添加关注",cancelFollow:"取消关注",adjustClassification:"调整分类",selectNeed:"请选择需要{attendText}的文件!",notSelectable:"{typeName}不可选",changeType:"调整分类",changeTypeSuccess:"调整分类成功!",selcetType:"请选择分类",selectNeedZpFile:"请选择需要转派的文件!",selectZbReceiver:"选择转办接收人",transferFile:"共转办{content}份文件",hangUp:"挂起",unboxing:"解挂",reductionFile:"请选择需要还原的文件!",cancelledFile:"您是否确认还原已注销文件?",addMenu:"新增分类",editMenu:"编辑分类",changeMeun:"修改分类",delMenu:"删除分类",setMenu:"分类设置",noEditMenu:"不允许编辑{menu}''",nodeleterMenu:"不允许删除{menu}''",deleteSelectMeun:"您是否确认删除选择的分类?"},Common:{index:"序号",fileTitle:"文件标题",fileType:"文件类型",processingPersonal:"处理人",handlerDept:"处理人部门",sender:"发送人",startTime:"开始时间",processingSteps:"处理环节",processingStatus:"处理状态",fileName:"文件名",fileSize:"文件大小",uploadTime:"上传时间",uploader:"上传人",operate:"操作",tobeUpload:"待上传",reUpload:"重新上传",deleting:" 正在删除...",delSuccess:"删除成功",cancelSave:"取消保存",notOpen:"未打开",notCompleted:"未完成",notSubmitted:"未提交",notTiemOut:"未超时",endless:"无时限",tobeReviewed:"待阅",readAlready:"已阅"},DataTable:{selectRow:"已经选择{selectedRowCount}条数据",previousPage:"上一页",nextPage:"下一页",requiredFiledTip:"{content}是必须的",needDeleterRow:"请选择需要删除的数据。",sureDeleterRow:"您是否确认删除选择的数据?",onlyOneOrg:"只能设置同属一个机构的数据访问权限。",onlyOneProduct:"只能设置同属一个产品的数据访问权限。",selectSetRoot:"请选择需要设置访问权限的数据!",selectExport:"请选择需要导出的数据!",targetDatabase:"目标数据库",targetDatabaseType:"请选择目标数据库类型:",exportTipText:"您是否确认要导出当前列表的全部数据?<br/>如果仅需导出部分数据,请先选择或通过搜索筛选。",downloadRow:"请选择需要批量下载的数据。",resourcePermissions:"资源访问权限",auMethod:"授权方式 ",selectAuMethod:"请选择授权方式 ",auObject:"授权对象",moduleMenu:"模块菜单",operationButton:"操作按钮",processButton:"流程按钮",serviceInterface:"服务接口",accessSystem:"接入系统",portalMiniProgram:"门户小程序",mobileApplications:"移动应用",fileQuery:"文件查询",allFileQuery:"全部文件查询",deptFileQuery:"部门文件查询",changeRoot:"确认要批量修改访问权限吗?",startSearching:"开始搜索",clearSearch:"清除搜索",startBeforeEnd:"{title}开始时间必须在结束时间之前",allPersonnel:"全部人员",selectDateTime:"选择日期时间",refresh:"刷新",list:"列表"},DoingDialog:{doingWait:"正在处理中,请稍候..."},ModifyFormTrace:{formTitle:"表单修改记录",saveFormInfo:"保存表单信息",noFormRecord:"暂无表单修改记录",current:"当前"},PageBtns:{sure:"确定",choice:"选择",del:"删 除"},PdfTools:{sgnature:"签名",addSgnature:"添加签名",saveSgnature:"保存签名",selectSeal:"选择印章",saveSeal:"保存印章",appAddSgnature:"移动端扫描二维码添加签名",selectSgnature:"选择已填加签名",noSgnature:"暂无可用签名",noStampedFile:"没有可盖章正文文件。",redBeforeStamping:"当前文件没有套红,请先套红再盖章。",saveSealTip:"正在保存印章,请稍候...",electronicSeal:"电子印章",sealAccount:"印章账号",inputSealAccount:"请输入印章账号",sealPassword:"印章密码",inputSealPassword:"请输入印章密码",stampMethod:"盖章方式:",stampPage:"盖章页面:",currentPage:"当前页",allPage:"全部页",partialPage:"部分页",oddPage:"奇数页",pageNumber:"页 码",pageNumberTip:"请输入页码或者页码范围",explain:NaN,stampPageNumber:"盖章页码:",whatPage:"第{dataType}页",loadingWait:"正在加载,请稍候...",sealAndStamp:"盖 章",pageSignature:"页签章",saddleSeal:"骑缝章",standardizedFilling:"请注意按提示规范填写页码!",firstSelect:"请先选择印章!",inputStampPageNumber:"请输入需要盖章的页码!"},SelectDialog:{selectAll:"全选",search:"搜索...",sureClearSelection:"是否确认清除已选?",byInstitution:"按机构",byPosition:"按岗位",byGroup:"按群组",byCommonGroup:"按常用组",keyWords:"请输入搜索关键字",searching:"正在搜索...",selected:"已选择({dataType})",setCommonGroup:"设为常用组",noSelection:"暂无选择",commonGroup:"常用组",commonGroupName:"常用组名称",inputCommonGroup:"请输入常用组名称!",addUsedGroup:"是否确认添加常用组?",selectRegion:"选择行政区域",selectDirectory:"选择机构目录",selectWorkGroup:"选择工作群组",selectJobPosition:"选择工作岗位",selectPersonnelExtend:"选择人员(扩展)",selectDepartmentExtend:"选择部门(扩展)"},TextRecognition:{identifyFileTitle:"识别为 “文件标题”",identifyUnit:"识别为 “来文单位”",identifyDate:"识别为 “来文日期”",identifyId:"识别为 “来文文号”",identifyCory:"识别为 “剪切板”",identifyText:"识别为 “文字”",corySuccess:"复制成功",identifySuccess:"识别成功",invalidDateFormat:"无效的日期格式",textIdentify:"文字识别",textIdentifyResults:"文字识别结果",uploadIdentifyFile:"上传要识别的文件",identifyResults:"识别结果:",identifyCount:"识别字数:{dataType}",timeConsumption:"耗时:{dataType}",identifyFailed:"文字识别失败,请稍后再试!",noWfEngineUrl:"识别失败(获取wfEngineUrl失败)"},Wflowform:{Attachment:{moveTip:"按下鼠标拖可动排序",noAttachments:"暂无附件",pUploadFile:"上传文件,请",clickUpload:"点击上传",limitUpload:"当前限制上传{limitCount}个文件,已上传了{attachLength}个文件,本次选择了{valLength} 个文件,已超出{lengthCount}个文件",togetherUpload:"当前限制上传{limitCount}个文件,本次选择了{valLength}个文件,共有{filelength}个文件",beyondUpload:"当前限制上传{limitCount}个文件,本次选择了{valLength}个文件,共选择了{filelength}个文件,已超出{lengthCount}个文件",notAllowedUpload:"当前限制上传{limitCount}个文件,不允许在添加新文件",cannotBeUpload:"文件“{fileName}”已存在,不允许上传重名文件。",onlineFile:"正在生成在线预览文件,请稍候...",delReupload:"您是否确认删除并重新上传?",delSelAttach:"您是否确认删除选择的附件?",fileUploadSuccess:"文件上传成功!",needUploadFile:"请选择需要上传的附件!",noSelNeedUploadFile:"没有选择需要上传的附件",noTobeUploadFile:"没有待上传附件",attchUploadFile:"附件全部上传成功",notSupportSaveas:"未上传的本地文件不支持另存!",noDowmAttach:"没有可下载的附件。",needSaveadAttach:"请选择需要另存的附件。",selectReaderScope:"请选择查阅权限",maxFileSize:"上传单个文件大小不允许超过{maxFileSize}"},BodyFile:{bodyText:"正文",historicalVersion:"历史版本",currentVersion:"当前版本",uploadStamped:"上传盖章文件",uploadTextFile:"上传正文",mattersNeeding:"注意事项",fileContent:"上传文件内容格式说明:",firstPoint:"1.上传文件应为 .pdf 文件;",secondPoint:"2.上传文件应是已经盖好章的文件,效力等同于 已盖章(已签名)",thirdPoint:"3.多次上传盖章文件的情况下只取最后一次上传,当前窗口上传确认无误后请点击确定按钮完成上传操作。",fileBody:"文件正文",downloadingWait:"正在下载文件,请稍候...",deleterCurrent:"您是否确认删除当前的文件?",deleterHistor:"您是否确认删除历史版本文件?",errFileFormat:"您上传的文件格式有误,仅支持{accept}格式的文件!",uploadingFile:"正在上传正文...",stampedDocument:"当前已有盖章文件,重新上传后会覆盖之前盖章文件!<br>是否继续?",directlyUpload:"当前正文内容还未套红<br>是否直接上传盖章文件?",sureToClose:"确认关闭?",onlyPDF:"您上传的文件格式有误,仅支持PDF格式的文件!",cannotSave:"当前还未上传盖章文件,不能保存!",uploadingStamped:"正在上传盖章文件..."},HandleIdea:{opinion:"意见",otherOpinion:"其他意见",open:"展开",fold:"折叠",deleteOpinion:"删除流程实例意见",sureDeleteOpinion:"您是否确认删除处理意见?"},IdeaInputBox:{pWriteOpinion:"请填写处理意见。",selectSaveType:"--选择意见保存方式--",selectComOpinion:"--选择常用意见--",selectShowScope:"--设置意见可见范围--",noComOpinion:"暂无常用意见",saveComOpinion:"保存常用意见",appendOpinion:"追加新意见",replaceOpinion:"替换原有意见",retainOpinion:"保留原有意见",opinionAttach:"意见附件:",pOpinionAttach:"请选择意见附件",personalOpinions:"个人常用意见",writeOpinion:"填写意见",sureDeleteAttach:"您是否确认删除意见附件?",useCommonOpinion:"处理意见已存在,是否确认使用常用意见?",uploadFileFail:"上传文件失败"},IdeaSignature:{opinionSignature:"意见签名",appAddOpinion:"手机扫一扫添加意见签名",openWithBrowser:"如果不能正常打开签名画板,请选择“使用浏览器打开”",unableApp:"手机端不能访问{window}",signatureFail:"签名失败"},ImgView:{prevPicture:"上一张",nextPicture:"下一张",narrow:"缩小",enlarge:"放大",leftRotation:"左旋转",rightRotation:"右旋转"},ModifyWflogAddUser:{prevStep:"上一处理环节",prevHandler:"上一环节处理人",addStep:"新增处理环节",addHandler:"新增环节处理人",pSelectAddStep:"请选择新增处理环节",pSelectAddHandler:"请选择新增环节处理人",addStepLimit:"新增环节处理时限",endless:"无时限",specifyLimit:"指定时限",pSelectLimit:"请选择处理时限",addProcessor:"添加处理人",batchTransfer:"批量转派",successfullyCompleted:"{winTitle}已成功!",nextTodoMode:"加签办理方式",nextTodoModeReturn:"返回加签人",nextTodoModeUseSubmitNext:"提交下一步"},ModifyWflogIdea:{oldOpinion:"原处理意见",newOpinion:"新处理意见",inputNewOpinion:"请输入新处理意见",handleOpinion:"处理意见"},ModifyWflogSubmitFile:{selfTesting:"流程自测({wflog})",reprocessTesting:"重办({wflog})",agencyTesting:"代办({wflog})",uploadMaterials:"请上传佐证材料!"},ModifyWfNodelog:{notice:"通知",smsNotice:"短信通知",selectNoticeType:"选择通知方式",takeBack:"收回",mandatoryCompletion:"强制办结",completionTime:"完成时间",timeLimit:"办理时限",submitPath:"提交路径",reprocess:"重办",agency:"代办",transfer:"转办",removeAssistantUser:"减签",canBeretRieved:"没有能够收回的处理环节!",wantToRetrieve:"您是否确认要收回文件?",needDelStep:"请选择需要删除的流程节点!",sureDelStep:"您确定要删除选择的流程节点吗?",synchronizationDel:"待删除节点包含子流程实例,是否确认同步删除?",processToCeCompleted:"您确定要将流程强制办结吗?",transferredHandle:"已经成功将文件转给{selectedNodes}办理。",transferPersonnel:"选择转办人员"},ReplaceFile:{replaceFile:"替换文件",replaceFileAttach:"文件附件替换",replaceFileSuffix:"请替换相同后缀名的文件!",fileName:"名称",updateTime:"上传时间",updateBy:"上传人员",operate:"操作"},SelectOuterDeputy:{outwardPeople:"外出人",agent:"代理人",sendToMe:"发本人",selectAgent:"选择代理人",selectedOutAgent:"已选择外出代理人。"},SubmitDialog:{submitHandle:"提交办理",editMainText:"请编辑正文!",uploadMainText:"请上传正文!"},SubmitHandle:{defineSteps:"流程配置",processSteps:"流程环节",processHandler:"环节处理人",submitNextStage:"提交下一环节",handleLimint:"处理时限",byWorkDay:"按工作日",byNaturalDay:"按自然日",peopleCount:",等{count}人",assistHandling:"辅助办文",todoNotice:"待办通知",stayTuned:"保持关注",noTemplate:"暂无办理模板",selectTemplate:"---选择办理模板---",saveTemplate:"保存办理模板",supportMaterials:"佐证材料",pSupportMaterials:"请选择佐证材料",processTemplate:"办理模板",sendRoute:"送{nextNode}",endProcessing:"结束处理",sendBack:"退回",addHandlers:"增加处理人",transferTo:"转派"},ViewBodyFile:{noMainText:"暂无正文",contractTemplate:"选择合同模版",downLook:"不支持在线预览,您可下载到本地查看"},WfNodelogList:{docTracking:"办文跟踪",openTiem:"打开时间",processingTime:"办理时长",timeoutDuration:"超时时长",readingLog:"阅文日志",readingTime:"阅文时间",remark:"备注",trackingMap:"流程跟踪图",situationAnalysis:"完成情况分析",readingSection:"阅文环节",readingLiterati:"阅文人",readingDepartment:"阅文人部门",circulationOpinions:"流转意见",myOpinion:"我的意见",recipient:"接收人",toDone:"已办",notDoTimedOut:"未办(未超时)",doTimedOut:"未办(已超时)",unread:"未读",addReaders:"添加阅文人",addReadersSuccess:"已成功添加阅文人!",readedClosed:"您是否确认已阅并关闭?",udmNodeNameIsNull:"流程环节未命名!"},WfTaskNode:{stepSetting:"环节设置",linkName:"环节名称",inputLinkName:"请输入环节名称",taskType:"任务类型",selectTaskType:"请选择任务类型",singlePerson:"单人",multiplayerParallel:"多人并行",multiPersonSignature:"多人会签",multiplayerSerial:"多人串行",multiplayerCompetition:"多人竞争",multiPersonReading:"多人阅文",handlerMethod:"处理人选择方式",optionalStage:"环节可选处理人",xzhjclr:"请选择环节处理人",xzhjclrbm:"请选择环节处理人部门",xzhjclrgzqz:"请选择环节处理人工作群组",xzhjclrgzgw:"请选择环节处理人工作岗位",editPermissions:"编辑权限",setEditPermissions:"请设置编辑权限",opinionTags:"意见标签",selectOpinionTags:"请选择意见标签"},WriteToReadIdea:{reviewComments:"批阅意见",writReviewComments:"请填写批阅意见",noWritReview:"您的阅文记录不存在,不能填写批阅意见"},returnHistory:{selectHint:"请选择驳回节点",confirm:"您是否确认驳回到上一环节?"}}}}},38342:function(e,t,i){"use strict";i.d(t,{tT:function(){return J},vT:function(){return K},$U:function(){return z},Mq:function(){return G},DY:function(){return q}});var n=function(){var e=this,t=e._self._c;return t("LRLayout",[t("LeftPanel",[e.orgCode&&!e.row.id&&e.sysSetupList.length>1?t("el-switch",{attrs:{"active-text":e.$tx("ecwplat.sysSetup.activeText","按主系统合并"),"inactive-text":e.$tx("ecwplat.sysSetup.inactiveText","展开子系统")},on:{change:function(t){return e.loadSysSetup()}},model:{value:e.mergeSubSys,callback:function(t){e.mergeSubSys=t},expression:"mergeSubSys"}}):e._e(),null!=e.treeData&&e.treeData.length>0?t("GiantTree",{class:e.row.id||1==e.sysSetupList.length?"":"can-merge-subsys",attrs:{nodes:e.treeData,multiple:!1,drag:!0,"tree-before-drop-node":e.treeBeforeDropNode},on:{onClick:e.onTreeNodeClick,onCreated:e.onTreeCreated,onDrop:e.treeDropNode},scopedSlots:e._u([{key:"context-menu",fn:function(i){return[i&&null===i.contextNode.pId?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addColumn",expression:"'ecwplat.PageBtns.addColumn'"}],on:{click:function(t){return e.addModuleMenu(i.treeId,i.contextNode)}}},[e._v("新增栏目")]),1!=e.dwadmin?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.systemSetting",expression:"'ecwplat.PageBtns.systemSetting'"}],on:{click:function(t){return e.editSysSetup(i.treeId,i.contextNode)}}},[e._v("系统设置")]):e._e()]):e._e(),i&&null!==i.contextNode.pId?t("ul",[t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addSubmenu",expression:"'ecwplat.PageBtns.addSubmenu'"}],on:{click:function(t){return e.addMenu(i.treeId,i.contextNode)}}},[e._v("新增子菜单")]),i.contextNode.moduleLevel<=2?t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.addApprMenu",expression:"'ecwplat.PageBtns.addApprMenu'"}],on:{click:function(t){return e.addWflowMenus(i.treeId,i.contextNode)}}},[e._v("新增审批菜单组")]):e._e(),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.modifyMenu",expression:"'ecwplat.PageBtns.modifyMenu'"}],on:{click:function(t){return e.editMenu(i.treeId,i.contextNode)}}},[e._v("修改菜单")]),t("li",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"ecwplat.PageBtns.deleteMenu",expression:"'ecwplat.PageBtns.deleteMenu'"}],on:{click:function(t){return e.deleteMenu(i.treeId,i.contextNode)}}},[e._v("删除菜单")])]):e._e()]}}],null,!1,3213185892)}):e._e(),null==e.treeData||0==e.treeData.length?t("div",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"selectMechanism",expression:"'selectMechanism'"}],staticClass:"dwadmin-initmessage",on:{click:e.openSelectRootOrgDialog}},[e._v("请选择模块菜单所属机构")]):e._e()],1),t("RightPanel",[null==e.sys&&1!=e.dwadmin?t("div",[t("PageContent",{attrs:{title:e.$tx("ecwplat.sysSetup.moduleMenu","模块菜单"),"set-nav-search":!1}},[null==e.importResult?t("el-form",[t("div",{staticClass:"el-table el-table--fit el-table--border",staticStyle:{width:"824px","margin-top":"10px"}},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[1!=e.dwadmin?t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"affiliatedInstitution",expression:"'affiliatedInstitution'"}],staticClass:"tdlbl tdw17"},[e._v("所属机构")]),t("td",{staticClass:"tdcont tdw83 td-organ",attrs:{colspan:"5"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.affiliatedInstitution","所属机构"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{directives:[{name:"select-dialog",rawName:"v-select-dialog",value:"rootorg",expression:"'rootorg'"}],attrs:{"org-type":"1",readonly:"",name:"orgCode",placeholder:e.$tx("ecwplat.sysSetup.selectAffInsti","请选择模块菜单所属机构")},model:{value:e.treeNode,callback:function(t){e.treeNode=t},expression:"treeNode"}})],1)]}}],null,!1,3659148067)})],1)]):e._e(),t("tr",[t("td",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"settingInstruction",expression:"'settingInstruction'"}],staticClass:"tdlbl tdw17"},[e._v("设置说明")]),t("td",{staticClass:"tdcont tdw83",attrs:{colspan:"5"}},[t("div",{staticStyle:{float:"left","text-align":"left","line-height":"25px"}},[t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip1",expression:"'explainTip1'"}]},[e._v("1.产品业务开通后,可对各单位已开通产品的模块菜单做个性化设置;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip2",expression:"'explainTip2'"}]},[e._v("2.一个单位开通多个产品,一次性加载全部产品模块菜单;")]),t("br"),t("span",{directives:[{name:"text-lbl",rawName:"v-text-lbl",value:"explainTip3",expression:"'explainTip3'"}]},[e._v("3.请先选择模块菜单所属单位。")]),t("br")])])])])])])])]):e._e()],1)],1):e._e(),null!==e.sys&&null===e.menuItem?t("SysSetup",{attrs:{vo:e.sys,"z-tree":e.zTree,"sys-code":e.row.sysCode,"allow-delete-sys":e.allowDeleteSys}}):e._e(),null!==e.sys&&null!==e.menuItem?t("ModuleMenu",{attrs:{sys:e.sys,vo:e.menuItem,"z-tree":e.zTree}}):e._e(),t("CopyMenu",{attrs:{"z-tree":e.zTree},on:{refreshTreeData:e.refreshTreeData}})],1)],1)},r=[],o=i(95353);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){d(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function d(e,t,i){return(t=c(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e){var t=u(e,"string");return"symbol"==a(t)?t:t+""}function u(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var f={name:"ModuleIndex",components:{},props:{row:{type:Object,default:function(){return{}}},allowDeleteSys:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",moduleInfo:{loadSysSetupUrl:"base/sysSetup/querydata",loadTreeNodeUrl:"base/menuMgr/querydata",updateModuleUrl:"base/menuMgr/updateModuleAndPermissions"},sys:null,sysSetupList:[],menuItem:null,mergeSubSys:!0,treeData:[],zTree:{},isPortal:!1,dwadmin:0,orgCode:null}},computed:l({},(0,o.L8)(["loginUser"])),watch:{},created:function(){if(this.$bus.emit("showNavSearch",!1),console.log(this.$route.meta.params,"this.$route.meta.params"),this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("orgCode=")){var e=this.$route.meta.params.split("orgCode=")[1].split("&");this.loadSysSetup(e)}else"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?(this.dwadmin=1,this.loadSysSetup(this.loginUser.orgCode)):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")?this.loadSysSetup(this.loginUser.orgCode):this.row.sysCode?this.loadSysSetup(this.row.orgCode):this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("isPortal=1")&&(this.isPortal=!0);this.$bus.on("setOrgItemTree",this.setOrgItem)},beforeDestroy:function(){this.$bus.emit("showNavSearch",!0),this.$bus.off("setOrgItemTree",this.setOrgItem)},mounted:function(){},methods:{setOrgItem:function(e){var t=localStorage.orgItem?JSON.parse(localStorage.orgItem).orgCode:JSON.parse(localStorage.orgList)[1].orgCode;this.loadSysSetup(t)},loadSysSetup:function(e){var t=this;this.orgCode=e||this.orgCode,this.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"=",field:"orgCode",value:this.row.orgCode||this.orgCode}],params:{orderBy:"isDefaultSys desc,orderNo"},url:this.moduleInfo.loadSysSetupUrl}).then((function(e){if("success"===e.code)if(t.sysSetupList=e.body.listdata,e.body.listdata.length>0){t.sys=e.body.listdata[0];var i=[];e.body.listdata.forEach((function(e){i.push(e.sysCode)}));var n=[];if(t.row.sysCode)e.body.listdata.forEach((function(e){e.sysCode===t.row.sysCode&&n.push(e)}));else if(t.isPortal&&localStorage.orgItem){var r=t.isPortal&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";e.body.listdata.forEach((function(e){e.sysCode===r&&n.push(e)}))}else n=e.body.listdata;var o=t.isPortal&&localStorage.orgItem?JSON.parse(localStorage.orgItem).sysCode:"";t.$http({method:"POST",contentType:"application/x-www-form-urlencoded",data:[{compare:"in",field:"sysCode",value:o||t.row.sysCode||i.join(",")}],params:{orderBy:"moduleLevel asc,orderNo asc"},url:t.moduleInfo.loadTreeNodeUrl}).then((function(e){"success"===e.code?t.treeData=t.treeDataAdapter(n.concat(e.body.listdata)):t.$alert(e.message,{type:"error"})}))}else t.$alert(t.$tx("ecwplat.sysSetup.chooseAgain","您所选择的单位未开通任何业务,请重新选择!"),t.$tx("common.operationTip","操作提示"),{type:"warning"});else t.$alert(e.message,{type:"error"})}))},openSelectRootOrgDialog:function(){document.querySelector(".td-organ").querySelector("BUTTON").click()},onSelectRootorgCompleted:function(e,t){this.loadSysSetup(e[0].ocode)},treeDataAdapter:function(e){var t={},i={},n={};if(!0===this.mergeSubSys&&e.length>1&&1===e[0].sysType){for(var r=0;r<e.length;r++){var o=e[r];"appCenter"===o.code&&1===o.moduleLevel&&1===o.topFlag&&(n[o.sysCode]=o,o.passenger.disallowAddSubMenu=!0),void 0!==o.sysLicense?(o.name=o.sysName,o.pId=null,o.open=!0,o.title=o.sysName,1===o.sysType?t[o.sysCode]=o.id:t[o.masterSys]&&(t[o.sysCode]=t[o.masterSys],i[o.sysCode]=o.orderNo,e.splice(r--,1))):("0"===o.parentId?o.pId=t[o.sysCode]:o.pId=o.parentId,o.title="名称:"+o.name+"\r\n代码:"+o.code+"\r\n排序:"+o.orderNo)}for(var a in n){var s=n[a];if(s)for(var l=0;l<e.length;l++){var d=e[l];1===d.moduleLevel&&0===d.topFlag&&a!==d.sysCode&&(d.pId=s.id,d.orderNo=i[d.sysCode]+"/"+d.orderNo,d.title="名称:"+d.name+"\r\n代码:"+d.code+"\r\n排序:"+d.orderNo)}}e.sort((function(e,t){return e.orderNo<t.orderNo?-1:1}))}else e.forEach((function(e){void 0!==e.sysLicense?(e.name=e.sysName,e.pId=null,e.open=!0,e.title=e.sysName,t[e.sysCode]=e.id):("0"===e.parentId?e.pId=t[e.sysCode]:e.pId=e.parentId,e.title="名称:"+e.name+"\r\n代码:"+e.code+"\r\n排序:"+e.orderNo)}));return e},refreshTreeData:function(e){this.loadSysSetup(this.orgCode)},onTreeNodeClick:function(e,t,i){var n=this,r=JSON.parse(JSON.stringify(this.sys));this.sys=null,this.$nextTick((function(e){void 0===i.pId||null===i.pId?(n.menuItem=null,n.sys=i):(n.setMenuItem(i),n.sys=r)}))},setMenuItem:function(e){var t=e.getParentNode(),i="";while(null!==t&&t.getParentNode)i=t.name+"/"+i,t=t.getParentNode();e.parentName=i,2===e.moduleLevel&&0===e.leafFlag&&"rightLabel"!==e.target&&(e.target="leftMenuItem"),this.menuItem=e},onTreeCreated:function(e){this.zTree=e},treeBeforeDropNode:function(e,t,i,n,r){return!("inner"===n&&i.moduleLevel>1&&1===i.leafFlag)||(this.$alert(this.$tx("ecwplat.sysSetup.cannotBe",{targetNode:i.name},"".concat(i.name,"不是文件夹菜单,不能移入。")),{type:"warning"}),!1)},treeDropNode:function(e,t,i,n,r,o){var a=this,s=null,l=n.orderNo;if("inner"===r){s=n;var d=n.children;null!=d&&d.length>1&&(l=d[d.length-2].orderNo,isNaN(l)||(l=l-0+10))}else s=n.getParentNode(),isNaN(l)||("prev"===r?l-=1:l=l-0+1);var c=l+"",u=c.length;if(l>=0)if(c.length<4)for(var f=0;f<4-u;f++)c+="0";else c.length>4&&(c="9999");i.orderNo=c,i.pId=s.id,i.sysCOde=s.sysCode,null==s.pId?(i.moduleLevel=1,i.parentId="0"):(i.moduleLevel=s.moduleLevel+1,i.parentId=s.id),this.$http({method:"put",data:i,url:this.moduleInfo.updateModuleUrl}).then((function(n){"success"===n.code?(a.onTreeNodeClick(e,t,i),a.$message.success(n.message)):a.$alert(n.message,{type:"error"})}))},addModuleMenu:function(e,t){var i=this;this.zTree.selectNode(t),this.sys=t,this.menuItem=null,this.$nextTick((function(){i.$bus.emit("addModuleMenu")}))},editSysSetup:function(e,t){var i=this;this.zTree.selectNode(t),this.sys=t,this.menuItem=null,this.$nextTick((function(){i.$bus.emit("editSysSetup")}))},addMenu:function(e,t){var i=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){i.$bus.emit("addMenu")}))},addWflowMenus:function(e,t){var i=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){i.$bus.emit("addMenu","wflowMenus")}))},editMenu:function(e,t){var i=this;this.zTree.selectNode(t),this.setMenuItem(t),this.$nextTick((function(){i.$bus.emit("editMenu")}))},deleteMenu:function(e,t){var i=this;null===this.menuItem&&(this.zTree.selectNode(t),this.setMenuItem(t)),this.$nextTick((function(){i.$bus.emit("deleteMenu",t)}))}}},p=f,h=(i(30458),i(81656)),m=(0,h.A)(p,n,r,!1,null,"3801b56a",null),b=m.exports,v=function(){var e=this,t=e._self._c;return t("PageContent",{attrs:{title:e.formTitle}},[t("dynamic-form",{attrs:{"table-field-info":e.sysSetupTableFieldInfo,vo:e.vo,"module-info":e.sysSetupModuleInfo,"can-edit":0}}),"SysSetup"===e.formType?t("Basicform",{attrs:{title:e.$tx("ecwplat.PageBtns.systemSetting","系统设置"),"win-width":e.sysSetupModuleInfo.winWidth,"win-height":e.sysSetupModuleInfo.winHeight,"toolbar-btns":e.busiformBtns,"on-basic-form-before-open":e.onSysSetupFormBeforeOpen,"on-basic-form-submited":e.onSysSetupFormSubmited},scopedSlots:e._u([{key:"default",fn:function(i){return[t("dynamic-form",{attrs:{vo:i?i.vo:e.formVo,"table-field-info":e.sysSetupTableFieldInfo,"can-edit":i?i.canEdit:1,"module-info":e.sysSetupModuleInfo}})]}}],null,!1,1967240207)}):e._e(),"ModuleMenu"===e.formType?t("Basicform",{attrs:{title:e.$tx("ecwplat.Common.columnMenuConfiguration","栏目菜单配置"),"append-to-body":!0,"win-width":e.menuModuleInfo.winWidth,"win-height":e.menuModuleInfo.winHeight,"on-basic-form-before-open":e.onMenuModuleFormBeforeOpen,"on-basic-form-submited":e.onMenuModuleFormSubmited},scopedSlots:e._u([{key:"default",fn:function(i){return[t("MenuItemForm",{attrs:{vo:i?i.vo:e.formVo,"can-edit":i?i.canEdit:1,"module-info":e.menuModuleInfo}})]}}],null,!1,1127664884)}):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"addModuleMenu",expression:"'addModuleMenu'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addColumn",expression:"'addColumn'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:e.addModuleMenu}},[e._v("新增栏目")]),1!=e.dwadmin?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"systemSetting",expression:"'systemSetting'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editSysSetup}},[e._v("系统设置")]):e._e(),1!=e.dwadmin&&"eccloud"!=e.vo.sysCode&&e.allowDeleteSys?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"oneClickDelete",expression:"'oneClickDelete'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:e.deleteSysSetup}},[e._v("一键删除")]):e._e(),1!=e.dwadmin&&1!=e.platadmin?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"editSysSetup",expression:"'editSysSetup'"},{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"switchUnits",expression:"'switchUnits'"}],attrs:{plain:"",icon:"el-icon-search"},on:{click:e.selectOrgan}},[e._v("切换单位")]):e._e(),1!=e.dwadmin?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"exportMenu",expression:"'exportMenu'"}],attrs:{plain:"",icon:"el-icon-top-right"},on:{click:e.exportMenu}},[e._v("导出菜单")]):e._e(),1!=e.dwadmin?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"importMenu",expression:"'importMenu'"}],attrs:{plain:"",icon:"el-icon-bottom-right"},on:{click:e.importMenu}},[e._v("导入菜单")]):e._e()],1),t("ExportModuleCode"),t("ImportModuleCode"),t("DoingDialog")],1)},g=[],y=i(74575);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function _(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,i){return e[t]=i}}function c(e,t,i,n){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new E(n||[]);return r(a,"_invoke",{value:N(e,i,s)}),a}function u(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",b={};function v(){}function g(){}function y(){}var x={};d(x,a,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(O([])));S&&S!==i&&n.call(S,a)&&(x=S);var T=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function i(r,o,a,s){var l=u(e[r],e,o);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==w(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(c).then((function(e){d.value=e,a(d)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function N(t,i,n){var r=f;return function(o,a){if(r===h)throw Error("Generator is already running");if(r===m){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var d=u(t,i,n);if("normal"===d.type){if(r=n.done?m:p,d.arg===b)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(r=m,n.method="throw",n.arg=d.arg)}}}function L(t,i){var n=i.method,r=t.iterator[n];if(r===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,L(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=u(r,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,b;var a=o.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,b):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,b)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var i=t[a];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function i(){for(;++r<t.length;)if(n.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError(w(t)+" is not iterable")}return g.prototype=y,r(T,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:g,configurable:!0}),g.displayName=d(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,d(e,l,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},C(M.prototype),d(M.prototype,s,(function(){return this})),t.AsyncIterator=M,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new M(c(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(T),d(T,l,"Generator"),d(T,a,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(n,r){return s.type="throw",s.arg=t,i.next=n,r&&(i.method="next",i.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),d=n.call(a,"finallyLoc");if(l&&d){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),D(i),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;D(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:O(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function x(e,t,i,n,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function k(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function a(e){x(o,n,r,a,s,"next",e)}function s(e){x(o,n,r,a,s,"throw",e)}a(void 0)}))}}var S={name:"SysSetup",components:{MenuItemForm:y.A},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},allowDeleteSys:{type:Boolean,default:!0}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",formTitle:this.$tx("ecwplat.sysSetup.fields.sysConfigInfo","系统配置信息"),dwadmin:0,platadmin:0,loginUser:this.$store.getters.loginUser,formType:"SysSetup",formVo:null,sysSetupModuleInfo:{winWidth:1e3,winHeight:600,moduleCode:"sysSetup",updateUrl:"base/sysSetup/update",delUrl:"base/sysSetup/deleteSysSetup",getByIdUrl:"base/sysSetup/getById"},menuModuleInfo:{moduleCode:"Module",addNewUrl:"base/menuMgr/addNew?sysCode="+this.vo.sysCode+"&parentId=0",insertUrl:"base/menuMgr/insertModuleAndPermissions",winWidth:900,winHeight:600},sysSetupTableFieldInfo:[{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入用户单位名称",errorMessage:"",formElementIndex:0,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"b06df403257a4614a78cc883b2149c3c",isRequired:1,passenger:{},propComment:"用户单位名称",propName:"orgFullname",propType:"String",textFormatter:"textfield",valueMaxLength:100},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入用户单位代码",errorMessage:"",formElementIndex:2,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"364d485f85ee49a4b0e7307b7e489a6d",isRequired:1,propComment:"用户单位代码",propName:"orgCode",propType:"String",textFormatter:"textfield",valueMaxLength:50},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入系统名称",errorMessage:"",formElementIndex:3,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"eb35f7324ce245d2bfcc2d8599fb7be2",isRequired:1,propComment:"系统名称",propName:"sysName",propType:"String",textFormatter:"textfield",valueMaxLength:250},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入系统代码",errorMessage:"",formElementIndex:4,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"3d71c21947bb4edcb692026c44a83625",isRequired:1,propComment:"系统代码",propName:"sysCode",propType:"String",textFormatter:"textfield",valueMaxLength:50},{defaultValue:"",elementCanEdit:"0",elementFormatter:"1:是\n0:否",elementType:"radio",emptyMessage:"请输入是否默认主系统",errorMessage:"",formElementIndex:5,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"bbbcdcece2704ad986ed9fe66f2fc653",isRequired:1,passenger:{},propComment:"是否默认主系统",propName:"isDefaultSys",propType:"Short",textFormatter:""},{defaultValue:"",elementCanEdit:0,elementFormatter:"",elementType:"select",emptyMessage:"请选择产品名称 ",errorMessage:"",formElementIndex:6,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"4d2ef571906e487baa359f215b32b18e",isRequired:0,propComment:"产品代码",propName:"productName",propType:"String",textFormatter:"",valueMaxLength:50},{defaultValue:"",elementCanEdit:"{${canEdit}}",elementFormatter:"",elementReadonly:0,elementType:"input",emptyMessage:"请输入LOGO图片文件名",errorMessage:"",formElementIndex:0,formShow:0,formTdAlign:"text-left",formTdColspan:0,id:"7eee9e8e3a884c33ac731b94bfbc0637",isRequired:1,propComment:"LOGO图片文件名",propName:"sysLogoFileName",propType:"String",textFormatter:"textfield",valueMaxLength:100},{defaultValue:"sysLogoFileName",elementCanEdit:"{{canEdit}}",elementFormatter:"",elementType:"file",emptyMessage:"请选择系统LOGO图片",errorMessage:"",formElementIndex:0,formShow:0,formTdAlign:"text-left",formTdColspan:0,id:"e2a472a94bfe4b23b72171cd74dc9d4a",isRequired:1,propComment:"系统LOGO图片",propName:"sysLogo",propType:"byte[]",textFormatter:"image/*",valueMaxLength:1,valueMinLength:0},{defaultValue:"",elementCanEdit:"0",elementFormatter:"",elementReadonly:1,elementType:"date",emptyMessage:"请输入业务开通时间",errorMessage:"",formElementIndex:24,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"6c4558fc66af4d1c8c83ce00bcd4ca55",isRequired:1,propComment:"业务开通时间",propName:"openTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd",valueMinLength:0},{defaultValue:"",elementCanEdit:"0",elementFormatter:"",elementReadonly:1,elementType:"date",emptyMessage:"请输入业务开通时间",errorMessage:"",formElementIndex:24,formShow:1,formTdAlign:"text-left",formTdColspan:12,id:"6c4558fc66af4d1c8c83ce00bcd4ca55",isRequired:1,propComment:"业务截止时间",propName:"expiredTime",propType:"java.util.Date",textFormatter:"yyyy-MM-dd",valueMinLength:0},{defaultValue:"1",elementCanEdit:"{{canEdit}}",elementFormatter:"1:启用\r\n0:禁用\r\n",elementType:"radio",emptyMessage:"请选择系统状态 ",errorMessage:"",formElementIndex:11,formShow:1,formTdAlign:"text-left",formTdColspan:24,id:"9391e6e75a964a82949543dd899e746e",isRequired:1,propComment:"系统状态 ",propName:"sysStatus",propType:"Short",textFormatter:"",valueMinLength:0}],busiformBtns:[]}},computed:{},watch:{},created:function(){this.$bus.on("editSysSetup",this.editSysSetup),this.$bus.on("addModuleMenu",this.addModuleMenu),"plat"!==this.loginUser.orgCode||this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("dwadmin=1")?this.dwadmin=1:this.$route.meta.params&&-1!==this.$route.meta.params.indexOf("platadmin=1")&&(this.platadmin=1,this.sysSetupTableFieldInfo.splice(0,2))},beforeDestroy:function(){this.$bus.off("editSysSetup",this.editSysSetup),this.$bus.off("addModuleMenu",this.addModuleMenu)},mounted:function(){},methods:{editSysSetup:function(){var e=this;this.formType="SysSetup",this.$nextTick((function(){e.$bus.emit("openBusiform",e.sysSetupModuleInfo,e.vo,1)}))},deleteSysSetup:function(){var e=this,t=this.$tx("ecwplat.sysSetup.delSysSetupTip",{sysName:this.vo.sysName},"您是否确认删除".concat(this.vo.sysName,"的全部系统数据?"));1===this.vo.sysType&&(t=this.$tx("ecwplat.sysSetup.delSysSetupAllTip",{sysName:this.vo.sysName},"您是否确认删除".concat(this.vo.sysName,"以及关联子系统的全部数据?"))),this.$confirm(t,this.$tx("common.confirmOperate","确认操作"),{type:"warning"}).then(k(_().mark((function t(){var i;return _().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$bus.emit("showDoingDialog"),t.next=3,e.$app.deleteByIds(e.sysSetupModuleInfo.delUrl,e.vo.id.split(","));case 3:i=t.sent,e.$bus.emit("closeDoingDialog"),"success"===i.code?(e.$alert(i.message,e.$tx("common.operationTip","操作提示"),{type:"warning"}),e.$vnode.context.treeData=[],e.$vnode.context.sys=null):e.$alert(i.message,e.$tx("common.operationTip","操作提示"),{type:"error"});case 6:case"end":return t.stop()}}),t)})))).catch((function(e){"cancel"!==e&&console.error(e)}))},selectOrgan:function(){this.$vnode.context.treeData=[],this.$vnode.context.sys=null,this.$nextTick((function(e){document.querySelector(".td-organ").querySelector(".el-button").click()}))},addModuleMenu:function(){var e=this;this.formType="ModuleMenu",this.$nextTick((function(){e.$bus.emit("openBusiform",e.menuModuleInfo,null,1)}))},onMenuModuleFormBeforeOpen:function(e,t,i){t.parentName=this.vo.sysName,null===t.status&&(t.status=1),null===t.leafFlag&&(t.leafFlag=0),this.formVo=t,i.resolve(!0)},onMenuModuleFormSubmited:function(e,t){console.log("moduleMenu form submited"),t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo,"0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId,this.$bus.emit("updateTreeNode",t)},onSysSetupFormBeforeOpen:function(e,t,i){this.formVo=t,i.resolve(!0)},onSysSetupFormSubmited:function(e,t){console.log("sysSetup form submited"),t.name=t.sysName,t.title=t.sysName,this.$bus.emit("updateTreeNode",t)},exportMenu:function(){var e=this,t=[{value:"menus",text:this.$tx("ecwplat.Common.moduleMenu","模块菜单")},{value:"rolePermissions",text:this.$tx("ecwplat.Common.role","角色授权")}];this.$bus.emit("openExportModuleDialog",this.$tx("ecwplat.PageBtns.exportMenu","导出菜单"),t,(function(t){if("success"===t.code){var i=t.value;i.sysCode=e.vo.sysCode,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:[],params:i,url:"base/codeGenerate/exportMenuDbSql"}).then((function(t){if("success"===t.code){var i='<br/>下载代码:<a href="/apigw/'+t.body.zipurl+'" target="_blank">'+t.body.zipname+"</a>";e.$alert(t.message+i,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$alert(t.message,{type:"error"})}))}}),null,null,this.$tx("ecwplat.Common.selectSqlType","请选择目标数据库类型:"))},importMenu:function(){var e=this;this.$bus.emit("openImportModuleDialog",this.$tx("ecwplat.Common.moduleMenu","模块菜单"),"/base/codeGenerate/importModuleMenu?parentId="+this.vo.id,(function(t){"success"===t.code&&e.$vnode.context.loadSysSetup(e.vo.orgCode)}))}}},T=S,C=(0,h.A)(T,v,g,!1,null,"2497073a",null),M=C.exports,N=function(){var e=this,t=e._self._c;return e.dialogFormVisible?t("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:e.dialogFormVisible,"append-to-body":!0,"close-on-click-modal":!1,width:"900px",title:e.$tx("ecwplat.sysSetup.dialogTitle","复制菜单")},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("el-form",{attrs:{model:e.newMenu}},[t("div",{staticClass:"el-table el-table--fit el-table--border"},[t("div",{staticClass:"el-table__body-wrapper"},[t("table",{staticClass:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("tbody",[t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"superiorMenu",expression:"'superiorMenu'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("上级菜单名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.srcMenu.parentName)}})])]),t("tr",[t("td",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"currentMenu",expression:"'currentMenu'"}],staticClass:"el-table__cell tdlbl tdw17"},[e._v("当前菜单名称")]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("div",{domProps:{innerHTML:e._s(e.srcMenu.name)}})])]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"tarSystemCode",expression:"'tarSystemCode'"}]},[e._v("目标系统代码")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.fields.tarSystemCode","目标系统代码"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"sysCode",placeholder:e.$tx("ecwplat.sysSetup.fields.tarSystemCodeEnter","请输入新菜单目标系统代码")},model:{value:e.newMenu.sysCode,callback:function(t){e.$set(e.newMenu,"sysCode",t)},expression:"newMenu.sysCode"}})],1)]}}],null,!1,825548065)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[t("span",{staticClass:"required"},[e._v("*")]),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"newMenu",expression:"'newMenu'"}]},[e._v("新菜单名称")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("ValidationProvider",{ref:"ValidationProvider",attrs:{name:e.$tx("ecwplat.sysSetup.fields.newMenu","新菜单名称"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.errors;return[t("el-tooltip",{class:{"invalid-field":void 0!==n&&void 0!==n[0]},attrs:{disabled:void 0===n||void 0===n[0],content:void 0===n?"":n[0],"popper-class":"error-popper-class",placement:"right-start",effect:"dark"}},[t("el-input",{attrs:{name:"newName",placeholder:e.$tx("ecwplat.sysSetup.fields.newMenuEnter","请输入新菜单名称")},model:{value:e.newMenu.newName,callback:function(t){e.$set(e.newMenu,"newName",t)},expression:"newMenu.newName"}})],1)]}}],null,!1,1078266707)})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e.srcMenu.sysCode==e.newMenu.sysCode?t("span",{staticClass:"required"},[e._v("*")]):e._e(),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replaceForm",expression:"'replaceForm'"}]},[e._v("菜单代码替换From")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{attrs:{name:"replaceFrom",placeholder:e.$tx("ecwplat.sysSetup.fields.replaceFormKey","请输入菜单代码替换From关键词")},on:{input:function(t){return e.$forceUpdate()}},model:{value:e.newMenu.replaceFrom,callback:function(t){e.$set(e.newMenu,"replaceFrom",t)},expression:"newMenu.replaceFrom"}})],1)]),t("tr",[t("td",{staticClass:"el-table__cell tdlbl tdw17"},[e.srcMenu.sysCode==e.newMenu.sysCode?t("span",{staticClass:"required"},[e._v("*")]):e._e(),t("span",{directives:[{name:"field-lbl",rawName:"v-field-lbl",value:"replaceTo",expression:"'replaceTo'"}]},[e._v("菜单代码替换To")])]),t("td",{staticClass:"el-table__cell tdcont tdw83",attrs:{colspan:"3"}},[t("el-input",{attrs:{name:"replaceTo",placeholder:e.$tx("ecwplat.sysSetup.fields.replaceToKey","请输入菜单代码替换To关键词")},on:{input:function(t){return e.$forceUpdate()}},model:{value:e.newMenu.replaceTo,callback:function(t){e.$set(e.newMenu,"replaceTo",t)},expression:"newMenu.replaceTo"}})],1)])])])])])]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"close",expression:"'close'"}],attrs:{plain:"",icon:"el-icon-close"},on:{click:e.closeDialog}},[e._v("关 闭")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"save",expression:"'save'"}],attrs:{type:"primary",icon:"el-icon-check"},on:{click:e.submitForm}},[e._v("保 存")])],1)],1):e._e()},L=[],I={name:"CopyMenu",components:{},props:{zTree:{type:Object,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"sysSetup",srcMenu:{},newMenu:{},moduleInfo:{},dialogFormVisible:!1,doing:!1}},computed:{},watch:{},created:function(){this.$bus.on("copyMenu",this.openForm)},beforeDestroy:function(){this.$bus.off("copyMenu",this.openForm)},mounted:function(){},methods:{openForm:function(e,t){this.moduleInfo=e,this.srcMenu=t,this.newMenu.sourceId=t.id,this.newMenu.sysCode=t.sysCode,this.newMenu.replaceFrom="",this.newMenu.replaceTo="",this.dialogFormVisible=!0,this.doing=!1},submitForm:function(){var e=this,t=this;t.doing||this.formValidate((function(){if(e.srcMenu.sysCode===e.newMenu.sysCode){if(e.srcMenu.name===e.newMenu.newName)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenu","同一系统,新菜单名称不能与当前菜单相同"),e.$tx("common.operationTip","操作提示"),{type:"warning"});if(""===e.newMenu.replaceFrom)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenuForm","同一系统,必须输入菜单代码替换From关键词"),e.$tx("common.operationTip","操作提示"),{type:"warning"});if(""===e.newMenu.replaceTo)return void e.$alert(e.$tx("ecwplat.sysSetup.replaceMenuTo","同一系统,必须输入菜单代码替换To关键词"),e.$tx("common.operationTip","操作提示"),{type:"warning"})}t.doing=!0,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",params:e.newMenu,url:e.moduleInfo.copyModuleUrl}).then((function(i){if("success"===i.code){var n=e.zTree.getNodeByParam("id",e.srcMenu.parentId,null),r="";while(null!==n&&n.moduleLevel>=1)r=n.name+"/"+r,n=n.getParentNode();e.$emit("refreshTreeData",i.body.listdata),e.$alert(e.$tx("ecwplat.sysSetup.replaceSuccess",{newName:r+e.newMenu.newName},"复制成功,新菜单名称为:{newName}"),{type:"success"}),e.closeDialog()}else t.doing=!1,e.$alert(i.message,{type:"error"})}))}))},closeDialog:function(){this.srcMenu={},this.newMenu={},this.moduleInfo={},this.dialogFormVisible=!1}}},D=I,E=(0,h.A)(D,N,L,!1,null,"2a346ced",null),O=E.exports,F=function(){var e=this,t=e._self._c;return t("div",[t("PageContent",{attrs:{title:e.title}},[t("MenuItemForm",{attrs:{vo:e.vo,"can-edit":0,sys:e.sys}}),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addSubmenu",expression:"'addSubmenu'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addMenu()}}},[e._v("新增子菜单")]),null!=e.sys&&e.sys.passenger&&0!==e.sys.passenger.workflow&&e.vo.moduleLevel<=2?t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"addApprMenu",expression:"'addApprMenu'"}],attrs:{plain:"",icon:"el-icon-plus"},on:{click:function(t){return e.addMenu("wflowMenus")}}},[e._v("新增审批菜单组")]):e._e(),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"modifyMenu",expression:"'modifyMenu'"}],attrs:{plain:"",icon:"el-icon-edit"},on:{click:e.editMenu}},[e._v("修改菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"copyMenu",expression:"'copyMenu'"}],attrs:{plain:"",icon:"el-icon-document-copy"},on:{click:e.copyMenu}},[e._v("复制菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"exportMenu",expression:"'exportMenu'"}],attrs:{plain:"",icon:"el-icon-top-right"},on:{click:e.exportMenu}},[e._v("导出菜单")]),t("el-button",{directives:[{name:"pageBtn-lbl",rawName:"v-pageBtn-lbl",value:"importMenu",expression:"'importMenu'"}],attrs:{plain:"",icon:"el-icon-bottom-right"},on:{click:e.importMenu}},[e._v("导入菜单")])],1)],1),e.forceUpdate?e._e():t("Basicform",{attrs:{title:e.title,"win-width":e.moduleInfo.winWidth,"win-height":e.moduleInfo.winHeight,"append-to-body":!0,"on-basic-form-before-open":e.onBasicFormBeforeOpen,"on-basic-form-opened":e.onBasicFormOpened,"on-basic-form-before-submit":e.onBasicFormBeforeSubmit,"on-basic-form-submited":e.onBasicFormSubmited},scopedSlots:e._u([{key:"default",fn:function(i){return[t("MenuItemForm",{attrs:{vo:i?i.vo:e.formVo,"can-edit":i?i.canEdit:1,"module-info":e.moduleInfo,"new-menu-type":e.newMenuType,sys:e.sys}})]}}],null,!1,440819207)}),t("ExportModuleCode"),t("ImportModuleCode")],1)},A=[],P={name:"ModuleMenu",components:{MenuItemForm:y.A},props:{vo:{type:Object,default:function(){return{}}},zTree:{type:Object,default:function(){return{}}},sys:{type:Number,default:function(){return{}}}},data:function(){return{i18npkg:"ecwplat",moduleCode:"meunItem",title:1===this.vo.moduleLevel?this.$tx("ecwplat.Common.columnMenuConfiguration","栏目菜单配置"):this.$tx("ecwplat.Common.leftMenuConfiguration","左导航菜单配置"),moduleInfo:{moduleCode:"Module",addNewUrl:"base/menuMgr/addNew",insertUrl:"base/menuMgr/insertModuleAndPermissions",getByIdUrl:"base/menuMgr/getById",updateUrl:"base/menuMgr/updateModuleAndPermissions",delUrl:"base/menuMgr/deleteModuleAndPermissions",copyModuleUrl:"base/menuMgr/copyModuleAndPermissions",winWidth:1080,winHeight:600},formVo:null,newMenuType:null}},computed:{},watch:{},created:function(){this.$bus.on("addMenu",this.addMenu),this.$bus.on("editMenu",this.editMenu),this.$bus.on("deleteMenu",this.deleteMenu)},beforeDestroy:function(){this.$bus.off("addMenu",this.addMenu),this.$bus.off("editMenu",this.editMenu),this.$bus.off("deleteMenu",this.deleteMenu)},mounted:function(){var e=this;if(this.sys.sysCode!==this.vo.sysCode){var t=this.$vnode.context.treeData.filter((function(t){return t.sysCode===e.vo.sysCode&&!t.pId}));t.length>0&&(this.sys=t[0])}},methods:{addMenu:function(e){if(this.newMenuType=e,this.vo.moduleLevel>1&&0!==this.vo.leafFlag)this.$alert(this.$tx("ecwplat.meunItem.menuTip",{voName:this.vo.name},"".concat(this.vo.name,"不是文件夹菜单,不能创建子菜单。")),{type:"warning"});else if(this.vo.passenger.disallowAddSubMenu)this.$alert(this.$tx("ecwplat.meunItem.notAllMenu",{voName:this.vo.name},"".concat(this.vo.name,"下不允许创建子菜单。")),{type:"warning"});else{var t=this.moduleInfo.addNewUrl.split("?")[0];t+="?sysCode="+this.vo.sysCode+"&menuType="+(e||"")+"&parentId=",void 0!==this.vo.sysLicense?this.moduleInfo.addNewUrl=t:this.moduleInfo.addNewUrl=t+this.vo.id,this.$bus.emit("openBusiform",this.moduleInfo,null,1)}},editMenu:function(){this.newMenuType=null,this.$bus.emit("openBusiform",this.moduleInfo,this.vo,1)},copyMenu:function(){this.$bus.emit("copyMenu",this.moduleInfo,this.vo)},deleteMenu:function(e){var t=this,i=this.$tx("ecwplat.meunItem.delMenu",{nodeName:e.name},"确认删除“".concat(e.name,'"吗?'));e.children&&e.children.length>0&&(i=this.$tx("ecwplat.meunItem.isDelMenu",{nodeName:e.name},"确认删除“".concat(e.name,"”及下级全部子菜单吗?"))),this.$confirm(i,{type:"warning"}).then((function(){t.$http({method:"DELETE",contentType:"application/x-www-form-urlencoded",params:{ids:e.id},url:t.moduleInfo.delUrl}).then((function(i){if("success"===i.code){var n=e.getParentNode();t.zTree.removeNode(e),t.zTree.selectNode(n),t.$bus.emit("updateTreeNode",n),t.$message.success(i.message)}else t.$alert(i.message,{type:"error"})}))}))},exportMenu:function(){var e=this,t=this.zTree.getSelectedNodes(),i=null,n=this.vo.parentName+this.vo.name;t.length>1&&(n="",t.forEach((function(e){if(""!==n)n+="、";else{var t=e.getParentNode();n=t.name+"/",i=t.name}n+=e.name})));var r=[{value:"menus",text:this.$tx("ecwplat.Common.moduleMenu","模块菜单")},{value:"rolePermissions",text:this.$tx("ecwplat.Common.role","角色授权")}];this.$bus.emit("openExportModuleDialog",this.$tx("ecwplat.PageBtns.exportMenu","导出菜单"),r,(function(n){if("success"===n.code){var r=n.value;r.menuName=i,e.$http({method:"post",contentType:"application/x-www-form-urlencoded",data:t,params:r,url:"base/codeGenerate/exportMenuDbSql"}).then((function(t){if("success"===t.code){var i='<br/>下载代码:<a href="/apigw/'+t.body.zipurl+'" target="_blank">'+t.body.zipname+"</a>";e.$alert(t.message+i,e.$tx("common.operationTip","操作提示"),{type:"success",dangerouslyUseHTMLString:!0,callback:function(e){"confirm"===e&&window.open("/apigw/"+t.body.zipurl,"_black")}})}else e.$alert(t.message,{type:"error"})}))}}),null,null,this.$tx("ecwplat.Common.selectSqlType","请选择目标数据库类型:"))},importMenu:function(){var e=this;this.$bus.emit("openImportModuleDialog",this.$tx("ecwplat.Common.moduleMenu","模块菜单"),"/base/codeGenerate/importModuleMenu?parentId="+this.vo.id,(function(t){"success"===t.code&&e.$vnode.context.loadSysSetup(e.vo.orgCode)}))},onBasicFormBeforeOpen:function(e,t,i){var n="";null!==t.updateTime?n=this.vo.parentName:"0"===t.parentId?(t.moduleLevel=1,n=t.sysName,t.status=1,t.leafFlag=0):(t.status=1,t.leafFlag=null===t.leafFlag?0:t.leafFlag,2===t.moduleLevel&&0===t.leafFlag&&"rightLabel"!==t.target&&(t.target="leftMenuItem"),n=this.vo.parentName+this.vo.name),t.parentName=n,this.formVo=t,i.resolve(!0)},onBasicFormOpened:function(e,t){0},onBasicFormBeforeSubmit:function(e,t,i){null===t.leafType&&(t.href=""),i.resolve(!0)},onBasicFormSubmited:function(e,t){void 0!==t.pId&&null!==t.pId||("0"===t.parentId?t.pId=this.vo.id:t.pId=t.parentId),t.passenger.wflowMenuItems?this.$vnode.context.loadSysSetup(t.orgCode):(this.$vnode.context.sysSetupList&&1===t.moduleLevel&&0===t.topFlag&&this.$vnode.context.sysSetupList.forEach((function(e){e.sysCode===t.sysCode&&(t.orderNo=e.orderNo+"/"+t.orderNo)})),this.$bus.emit("updateTreeNode",t)),t.title="名称:"+t.name+"\r\n代码:"+t.code+"\r\n排序:"+t.orderNo}}},$=P,B=(0,h.A)($,F,A,!1,null,"07439568",null),j=B.exports,R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[e.showToolbar?t("div",{staticClass:"data-table-container"},[t("toolbar")],1):e._e(),t("div",{directives:[{name:"loading",rawName:"v-loading",value:!e.showFrame,expression:"!showFrame"}],class:e.showFrame?"":"loading"},[t("iframe",{directives:[{name:"show",rawName:"v-show",value:e.showFrame,expression:"showFrame"}],ref:"iframe",attrs:{src:e.src,width:"100%",height:"100%",frameborder:"0"}})])])},U=[],H={name:"FrameLoader",props:{src:{type:String,default:""}},data:function(){return{shwoToolbar:!1,showFrame:!1}},created:function(){var e=this.$route.meta;e&&!this.src&&(this.src=e.href),this.$route.meta&&"rightLabel"===this.$route.meta.parentTarget&&(this.showToolbar=!0)},mounted:function(){var e=this;this.$refs["iframe"].onload=function(){setTimeout((function(){var t=document.querySelector(".main-scrollbar").clientHeight;t=e.showToolbar?t-50-20-32-15-4:t-50-20-4,e.$refs["iframe"].style.height=t+"px",e.$refs["iframe"].style.minHeight="unset",e.showFrame=!0}),1e3)}}},W=H,Y=(i(89292),(0,h.A)(W,R,U,!1,null,"69610664",null)),V=Y.exports;b.install=function(e){e.component(b.name,b)},M.install=function(e){e.component(M.name,M)},O.install=function(e){e.component(O.name,O)},j.install=function(e){e.component(j.name,j)},V.install=function(e){e.component(V.name,V)};var z=b,q=M,J=O,G=j,K=V},26695:function(e){e.exports={ecwplat:{sysSetup:{fields:{superiorMenu:"Superior menu name",currentMenu:"Current menu name",tarSystemCode:"Target system code",tarSystemCodeEnter:"Please enter the new menu target system code",newMenu:"New menu name",newMenuEnter:"Please enter the new menu name",replaceForm:"Menu code replace From",replaceFormKey:"Please enter the menu code replace From keyword",replaceTo:"Menu code replace To",replaceToKey:"Please enter the menu code replace To keyword",basicInfo:"Basic information",name:"Name",namePlaceholder:"Please enter your name",selectUser:"Select registered user",selectDwUser:"Select unit user",loginId:"Login ID",loginIdPlaceholder:"Please enter UID",account:"Account",accountPlaceholder:"Please enter account",webchat:"Webchat",employeeNo:"Employee number",employeeNoEmptyMessage:"Please enter employee number",mobilePhone:"Mobile phone number",mobilePhonePlaceholder:"Please enter mobile phone number",password:"Password",passwordPlaceholder:"Please enter password",conformPwd:"Confirm password",conformPwdPlaceholder:"Please enter confirm password",confirmPassword:"Password and confirm password must be the same",email:"Email address",emailPlaceholder:"Please enter email address",idCard:"Citizen identification number",idCardPlaceholder:"Please enter citizen identification number",sex:"Gender",createType:"Creation method",sexEmpty:"Please select gender",userName:"User nickname",userNamePlaceholder:"Please enter user nickname",chatPhone:"Chat number",chatPhonePlaceholder:"Please enter chat number",operate:"Operate",statusPlaceholder:"Please enter select status",createTime:"Creation time",secretLevel:"Confidentiality level",secretLevelPlaceholder:"Please select confidentiality level",shortTel:"Mobile副号",bindIP:"Binding IP",bindIPplaceholder:"Please enter binding IP address",provisioningSystem:"Provisioning system",provisioningSystemPlaceholder:"Please select provisioning system method",designatedSystem:"Designated system",personSatus:"Please select personnel status",audit:"Pending review",jobInformation:"Job information",workUnit:"Work unit",sort:"Sort",jobType:"Job type",jobTypePlaceholder:"Please enter select job type",jobTitle:"Job title",jobTitlePlaceholder:"Please enter job title",orgFullName:"Organization name",orgFullNamePlaceholder:"Please enter organization name",orgFullNamePlaceholder2:"Please select organization name",orgCode:"Organization code",orgCodePlaceholder:"Please enter organization code",orgCodePlaceholder2:"Please select organization code",orgShortName:"Organization abbreviation",orgShortNamePlaceholder:"Please enter organization abbreviation",orgLevel:"Organization level",orgLevelPlaceholder:"Please select organization level",companyLevel:"Company level",orgType:"Organization type",manageOrgName:"Supervisory organization",selectStatus:"Please select status",personCountLimit:"Unit user count",orgDescript:"Organization description",orgDescriptPlaceholder:"Please enter organization description",positionPersonnel:"Position personnel",selectSsPlaceholder:"Please select affiliated personnel",noOrgJobInfo:"No job configuration information available.",regDep:"Organizational department",regDepPlaceholder:"Please select if it's an organizational department",orderNo:"Sort number",orderNoPlaceholder:"Please enter sort number",otherInfo:"Other information",rolePermission:"Role permission",userRole:"User role:",mainPerson:"Main person in charge",deputyDirector:"Deputy director",commonPerson:"General staff",openAll:"Open all",notOpen:"Not open",common:"Common",inner:"Internal",workSecrets:"Work secrets",secrets:"Secrets",index:"Serial number",otherColsEmail:"Email address",otherColsPartyStatus:"Political status",otherColsEducational:"Education level",otherColsNation:"Place of origin",nationEmptyMessage:"Please enter place of origin",otherColsNativePlace:"Home address",otherColsWorkNature:"Nature of work",otherColsWorkAddress:"Work location",workAddressEmptyMessage:"Please enter work location",otherColsWorkTel:"Work phone",otherColsJobRank:"Job rank",otherColsBirthday:"Birthday",orgPersonExport:"- Organization personnel export",cardPhoto:"ID photo",cardPhotoEmptyMessage:"Please select ID photo",cAorderNo:"CA serial number",cAorderNoEmptyMessage:"Please enter CA serial number",entryDate:"Entry date",entryDateEmptyMessage:"Please select entry date",positiveDate:"Regularization date",positiveDateEmptyMessage:"Please select regularization date",workDate:"Work start date",workDateEmptyMessage:"Please select work start date",workAge:"Years of service",workAgeEmptyMessage:"Please enter years of service",partyStatus:"Political status",partyStatusEmptyMessage:"Please enter political status",interruptedTime:"Duration of work interruption",interruptedTimeEmptyMessage:"Please enter duration of work interruption",workNature:"Nature of work",workNatureEmptyMessage:"Please select nature of work",jobRankEmptyMessage:"Please select job rank",educational:"Education level",educationalEmptyMessage:"Please select education level",graduatedSchool:"Graduated school",graduatedSchoolEmptyMessage:"Please enter graduated school",workTel:"Work phone",workTelEmptyMessage:"Please enter work phone",homeTel:"Home phone",homeTelEmptyMessage:"Please enter home phone",birthday:"Date of birth",birthdayEmptyMessage:"Please select date of birth",marriage:"Marital status",marriageEmptyMessage:"Please select marital status",homeAddress:"Home address",homeAddressEmptyMessage:"Please enter home address",emergencyContact:"Emergency contact",emergencyContactEmptyMessage:"Please enter emergency contact",linkmanTel:"Emergency contact phone",linkmanTelEmptyMessage:"Please enter emergency contact phone",privateSet:"Privacy settings",privateSetPlaceholder:"Please enter privacy settings",privateSetPlaceholder2:"Please select privacy settings",privateAllow:"Designated range",privateAllowPlaceholder:"Please enter designated range",visiblePerson:"Visible personnel",visiblePersonPlaceholder:"Please select visible personnel",person:"Personnel",parentName:"Superior organization",orgInfo:"Organization information",deptOrgInfo:"Department/office organization information",deptFzInfo:"Department grouping information",institutionalDirectory:"Institution directory",institutionalDirectoryPlaceholder:"Please select institution directory",isManagementOrganization:"Is it a management organization",isManagementOrganizationPlaceholder:"Please select if it is a management organization",memberRoles:"Member roles",remarks:"Remarks",roleOrgStr:"Member roles assigned to all personnel under the organization, including personnel from sub-organizations.",fzName:"Grouping name",fzNamePlaceholder:"Please enter grouping name",fzDescript:"Grouping description",fzDescriptPlaceholder:"Please enter grouping description",fzStatusPlaceholder:"Please select grouping status",mlTreeInfo:"Directory tree node information",parentLevelNode:"Superior node",nodeNameEmpty:"Please enter node name",orderNoEmpty:"Please enter sort order",sysRole:"System role",PendingConfidentiality:"Pending confidentiality",exportModule:"Import mode",addTb:"Incremental synchronization",allTb:"Full synchronization",depart:"Department",ks:"Office",importRes:"Import result",importResultStr:"UID and mobile number are not unique, not imported",importResultStr2:"Account already exists, only employees imported",importResultStr3:"Account and employee already exist, updated",importOrgInfo:"Import organization information",importGroupCy:"Import group members",startImport:"Start import",jobJzTitle:"{name} position personnel matrix",groupJzTitle:"{name} group personnel matrix",organizationalDirectory:"Organizational directory",productName:"Product name",productNamePlaceholder:"Please select the platform product for the role",selectProPlat:"Select platform product",productCode:"Product code",roleName:"Role name",roleNamePlaceholder:"Please enter role name",roleNo:"Role number",roleNoPlaceholder:"Please enter role number",roleDescript:"Role description",rolePlaceholder:"Please enter role description",status:"Status",sysConfigInfo:"System configuration information",orgFullname:"User unit name",orgFullnameEnter:"Please enter user unit name",orgCodeEnter:"Please enter user unit code",sysName:"System name",sysNameEnter:"Please enter system name",sysCode:"System code",sysCodeEnter:"Please enter system code",defToSys:"Is it the default main system",defToSysEnter:"Please enter if it is the default main system",productCodeEnter:"Please select product name",logoImgName:"LOGO image file name",logoImgNameEnter:"Please enter LOGO image file name",syslogoImgName:"System LOGO image",syslogoImgNameEnter:"Please select system LOGO image",busActTime:"Business activation time",busActTimeEnter:"Please enter business activation time",businessDeadline:"Business deadline",businessDeadlineEnter:"Please enter business activation time",systemState:"System state",selectSystemState:"Please select system state"},options:{statusOptions:{1:"Valid",0:"Invalid",6:"Pending confidentiality",7:"Pending review",8:"Frozen"},positionTypeOptions:{1:"Main person in charge",2:"Deputy person in charge",0:"Ordinary employee"},isSysUserOptions:{1:"Open all",0:"Do not open",2:"Designated system"},isRegDeptOptions:{1:"Yes",0:"No"},secretLevelOptions:{0:"Ordinary",1:"Internal",2:"Work secret",3:"Secret"},privateSetOptions:{0:"All visible",1:"Visible to superiors",4:"Visible to peers",2:"Visible within the department",3:"Designated range"},orgTypeOptions:{1:"Established organization",0:"Temporary organization",2:"External organization"},orgLevelOptions:{2:"Department level",3:"Office level",4:"Team level",5:"Group level",6:"Level Six",7:"Level Seven",8:"Level Eight",9:"Level Nine",10:"Level Ten"}},currentRegisteredUser:"Current registered users:",validUser:"Valid users:",PendingClassifiedUser:"Pending confidentiality users:",pendingUserReview:"Pending review users:",invalidUser:"Invalid users:",freezeUsers:"Frozen users:",personInfo:"Personnel information",dialogTitle:"Copy menu",replaceMenu:"In the same system, the new menu name cannot be the same as the current menu.",replaceMenuForm:"In the same system, you must enter a menu code to replace the 'From' keyword.",replaceMenuTo:"In the same system, you must enter a menu code to replace the 'To' keyword.",replaceSuccess:"Copy successful, new menu name is: {newName}",activeText:"Merge by main system",inactiveText:"Expand sub-systems",selectMechanism:"Please select the organization that the module menu belongs to",moduleMenu:"Module menu management",selectAffInsti:"Please select the organization that the module menu belongs to",settingInstruction:"Setting instructions",explainTip1:"1. After the product business is activated, you can make personalized settings for the module menu of the activated products of each unit;",explainTip2:"2. If a unit activates multiple products, all product module menus will be loaded at once;",explainTip3:"3. Please first select the unit to which the module menu belongs.",chooseAgain:"The unit you selected has not activated any business, please select again!",cannotBe:"{targetNode} is not a folder menu and cannot be moved in.",delSysSetupTip:"Are you sure you want to delete all system data of '{sysName}'?",delSysSetupAllTip:"Are you sure you want to delete all data of '{sysName}' and associated sub-systems?",statusPlaceholder:"Please select a status",updateTime:"Update time",roleProduct:"Product role",roleMatrix:"{treeNode} role permission matrix",unauthorized:"Unauthorized",authorized:"Authorized",unrestricted:"Unrestricted",operationButton:"Operation button",processButton:"Process button",serviceInterface:"Service interface",accessSystem:"Access system",portalMiniProgram:"Portal mini-program",mobileApp:"Mobile application",fileSearch:"File Query",allFileSearch:"All File Query",deptFileSearch:"Dept File Query",platRolesTipOne:"1. '{dataType}' is a global role for the platform, other roles are product-level roles;",platRolesTipTwo:"2. After assigning permissions to platform-level roles, users must log in again for them to take effect; permissions assigned to product-level roles will only take effect for newly activated systems;",platRolesTipThree:"3. 'Function permission management --\x3e Role permission management --\x3e Permission settings' provides the function to assign permissions for roles in the activated systems.",selectPerson:"Select organization personnel",plselectPerson:"Please select organization personnel",selectWork:"Select work group",selectBusinessSystem:"Select business system",pSelectBusinessSystem:"Please select activated business system",roleOwner:"Role owner",personalOwner:"Individual owner",deptOwner:"Department owner",grolupOwner:"Group owner",commonNum:"Total of {dataType} people",importRolePersonnel:"Import role personnel"},menuForm:{fields:{parentName:"Parent name",columnAbbre:"Column abbreviation",columnAbbreEnter:"Please enter column abbreviation",menuType:"Menu type",selectmenuType:"Please select menu type",approvalMenu:"Approval menu group",moduleSubmenu:"Approval module submenu",selectModuleSubmenu:"Please select approval module submenu",myCreatedURL:"My created list URL",enterMyCreatedURL:"Please enter my created list URL",listURL:"{dataType} list URL",enterListURL:"Please enter {name} list URL",approvalCode:"Approval module business code",enterApprovalCode:"Please enter approval module business code, e.g., fawen, shouwen, hytz",pageContentType:"Page content type",selectPageContentType:"Please select page content type",openType:"Open type",selectOpenType:"Please select open type",submenuStyle:"Submenu style",selectSubmenuStyle:"Please select submenu style",navName:"Page navigation name",navNameEnter:"Please enter page navigation name",menuLink:"Menu link",menuLinkEnter:"Please enter menu link",urlFormat:"URL format",urlFormatTip1:"1. Dynamic list view vue component URL, must end with '/' and should not include file extension",urlFormatTip2:"2. Format: #/dcontent/base.jobPosition.list/",urlFormatTip3:"1. Static list view vue component file path, should not include file extension",urlFormatTip4:"2. Format: @/wapp/workflow/wfTaskItem/myTodo",businessCode:"Business code",businessCodeEnter:"Please enter business code, starting with a lowercase letter",engineUrl:"Engine (module) URL",engineUrlEnter:"Please enter engine (module) URL",wfName:"Workflow name",wfNameEnter:"Please enter workflow name",wfCode:"Workflow code",wfCodeEnter:"Please enter workflow code",stageName:"Starting stage name",stageNameEnter:"Please enter starting stage name",stageCode:"Starting stage code",stageCodeEnter:"Please enter starting stage code",navShow:"Navigation bar display",navOption1:"Show",navOption2:"Do not show",authoType:"Authorization method",selectAuthoType:"Please select authorization method",i18nCode:"I18N code",i18nCodeEnter:"Please enter I18N code",accessAuthorization:"Access authorization",orderNumber:"Order number",orderNumberEnter:"Please enter a 4-digit order number",status:"Status",selectstatus:"Please select status",menuIcon:"Select menu icon"},folder:"Folder",menuItem:"Menu item",myCreated:"My created",fourStatus:"(All, Draft, In Process, Completed)",myProcessed:"My processed",twoStatus:"(Pending, Completed)",allFile:"All",threeStatus:"(All, In Process, Completed)",columnName:"Column name",menuName:"Menu name",columnCode:"Column code",menuCode:"Menu code",lnavWork:"Left navigation + workspace",work:"Workspace",popUp:"Pop-up window",topWAin:"Top-level window",leftMenu:"Left side menu top",rightLabel:"Right side page label",not:"None",dynamicListPage:"Dynamic list page",staticListPage:"Static list page",superiorName:"Dynamic portal",regularURL:"Regular URL",dynamicList:"Dynamic list",staticList:"Static list",statisticalReport:"Statistical report",standardDraft:"Draft document (standard)",customizedDraft:"Draft document (customized)",Unrestricted:"Unrestricted",designatedRole:"Designated role",desiPerson:"Designated organization personnel",specifyGroup:"Designated group"},meunItem:{menuTip:"{voName} is not a folder menu and cannot create submenus.",notAllMenu:"Submenus are not allowed to be created under {voName}.",delMenu:"Are you sure you want to delete '{nodeName}'?",isDelMenu:"Are you sure you want to delete '{nodeName}' and all its submenus?",downCode:"Download code"},messages:{isUpdateContent:"Do you want to modify this content?",tip:"Tip",yes:"Yes",no:"No",updateSuccess:"Modification successful",operateTip:"Operation tip",hasRz:"{name} is already in a position at {work} and cannot be added again!",selectDept:"Please select a department/office.",inputPwd:"Please enter the password!",selectResetPwd:"Please select the personnel whose password needs to be reset!",inputNewPwd:"Please enter a new password",pwdTip:"Password must be at least 5 characters and no more than 20 characters",selectPersonDept:"Please select the personnel whose department needs to be adjusted!",isSameDw:"Only personnel from the same unit can be adjusted!",selectDrDept:"Select the department to transfer to",selectImportFile:"Please select the file to import",noNodeDelete1:"There are still child nodes under {name}, cannot delete.",noNodeDelete2:"There are still subordinate organizations under {name}, cannot delete.",confirmDeleteNode:"Are you sure you want to delete {name}?",treeMoveAlert1:"Cannot move directory tree nodes into organizations.",treeMoveAlert2:"Cannot move main organizations into other organizations.",treeMoveAlert3:"Department grouping nodes can only be moved at the same level.",treeMoveAlert4:"Only secondary departments can be moved under department grouping nodes.",treeMoveAlert5:"Cannot move subordinate organizations out of the main organization.",treeMoveAlert6:"Cannot move subordinate organizations across main organizations."},Common:{moduleMenu:"Module menu",role:"Role authorization",allAuthorizationMethods:"All authorization methods",allow:"Allow",prohibit:"Prohibit",accessPermissions:"Access permissions",accessPermissionsAllData:"All Files",accessPermissionsDeptData:"Dept Files",operationPage:"Operation page",pageURL:"Page URL",operationName:"Operation name",operationType:"Operation type",listToolbarButton:"List toolbar button",listColumnButton:"List operation column button",formPageButton:"Form page button",linkName:"Link name",singleColumnButton:"Single column button",dropdownButton:"Dropdown button",pullDownSubButton:"Pull down sub-button",controllerName:"Controller name",apiAddress:"API address",apiDescription:"API description",homepage:"Homepage address",designation:"Name",portalPage:"Portal page",xaxis:"X-axis coordinate",yaxis:"Y-axis coordinate",applyName:"Application name",accessAddress:"Access address",listName:"List name",listUrl:"List URL",rootSet:"Permission settings for {name}",columnMenuConfiguration:"Column menu configuration",leftMenuConfiguration:"Left navigation menu configuration",produceInfo:"Product configuration information",exportMenu:"Export module menu",selectTimePlace:"Select date and time",keyPlaceholder:"Please enter search keywords",selectSqlType:"Please select target database type:",treeIsNoMenu:"{name} is not a folder menu and cannot be moved in.",treeNoMove:"Cannot move module menu out of the product.",importFile:"Import file",importSuccess:"Import successful",importErrorPerson:"The following members failed to import:",selectImportFile:"Select import file",uploadFile:"Upload file content format description:",uploadFileText1:"1. The import file should be an Office Excel file;",uploadFileText2:"2. Import files do not support Excel files of Office 2007 and later versions; if you are using Office 2007 and later versions, please convert the Excel file to the format of a version prior to 2003. The specific conversion method is: In the opened Excel file, select 'Save As' -> 'Excel 97-2003 Workbook';",uploadFileText3:"3. When conducting the import operation, please ensure that the document you are importing is not in use.",uploadFileText4:"Uploaded file content example:",downFile:"Click to download Excel import example",clickDown:"Click to download",importConfiguration:"Import process configuration"},PageBtns:{enable:"Enable",disable:"Disable",sure:"Confirm",import:"Import",startImport:"Start import",cancel:"Cancel",moveto:"Transfer",resetPwd:"Reset password",addColumn:"Add new column",systemSetting:"System settings",addSubmenu:"Add new submenu",addApprMenu:"Add new approval menu group",modifyMenu:"Modify menu",deleteMenu:"Delete menu",copyMenu:"Copy menu",exportMenu:"Export menu",importMenu:"Import menu",oneClickDelete:"One-click delete",switchUnits:"Switch units",setUserRoles:"Set confidentiality level",setRoles:"Set roles",addRootNode:"Add new root node",addChildNode:"Add new child node",addMainOrg:"Add new main organization",updateMainOrg:"Modify main organization",delMainOrg:"Delete main organization",addChildOrg:"Add new subordinate organization",addDeptfz:"Add new department group",updateTreeNode:"Modify tree node",delTreeNode:"Delete tree node",updateOrg:"Modify organization",delOrg:"Delete organization",updateFz:"Modify group",delFz:"Delete group",privateSet:"Privacy settings"}}}},68532:function(e){e.exports={}},87422:function(e,t,i){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function a(e,t,i){return(t=s(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e){var t=l(e,"string");return"symbol"==n(t)?t:t+""}function l(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=i(26695),c=i(11819),u=i(68532),f=i(78389),p={en:o({},d),zhCN:o({},c),es:o({},u),ja:o({},f)};e.exports=o({},p)},78389:function(e){e.exports={}},11819:function(e){e.exports={ecwplat:{sysSetup:{fields:{superiorMenu:"上级菜单名称",currentMenu:"当前菜单名称",tarSystemCode:"目标系统代码",tarSystemCodeEnter:"请输入新菜单目标系统代码",newMenu:"新菜单名称",newMenuEnter:"请输入新菜单名称",replaceForm:"菜单代码替换From",replaceFormKey:"请输入菜单代码替换From关键词",replaceTo:"菜单代码替换To",replaceToKey:"请输入菜单代码替换To关键词",basicInfo:"基本信息",name:"姓名",namePlaceholder:"请输入姓名",selectUser:"选择注册用户",selectDwUser:"选择单位用户",loginId:"登录ID",loginIdPlaceholder:"请输入UID",account:"账号",accountPlaceholder:"请输入账号",webchat:"聊天号",employeeNo:"工号",employeeNoEmptyMessage:"请输入工号",mobilePhone:"手机号码",mobilePhonePlaceholder:"请输入手机号码",password:"密码",passwordPlaceholder:"请输入密码",conformPwd:"确认密码",conformPwdPlaceholder:"请输入确认密码",confirmPassword:"密码、确认密码必须相同",email:"邮箱地址",emailPlaceholder:"请输入邮箱地址",idCard:"公民身份号码",idCardPlaceholder:"请输入公民身份号码",sex:"性别",createType:"创建方式",sexEmpty:"请选择性别",userName:"用户昵称",userNamePlaceholder:"请输入用户昵称",chatPhone:"聊天号码",chatPhonePlaceholder:"请输入聊天号码",operate:"操作",statusPlaceholder:"请输入选择状态",createTime:"创建时间",secretLevel:"密级",secretLevelPlaceholder:"请选择密级",shortTel:"手机副号",bindIP:"绑定IP",bindIPplaceholder:"请输入绑定IP地址",provisioningSystem:"开通系统",provisioningSystemPlaceholder:"请选择开通系统方式",designatedSystem:"指定系统",personSatus:"请选择人员状态",audit:"待审核",jobInformation:"职务信息",workUnit:"工作单位",sort:"排序",jobType:"职务类型",jobTypePlaceholder:"请输入选择职务类型",jobTitle:"职务名称",jobTitlePlaceholder:"请输入职务名称",orgFullName:"机构名称",orgFullNamePlaceholder:"请输入机构名称",orgFullNamePlaceholder2:"请选择机构名称",orgCode:"机构代码",orgCodePlaceholder:"请输入机构代码",orgCodePlaceholder2:"请选择机构代码",orgShortName:"机构简称",orgShortNamePlaceholder:"请输入机构简称",orgLevel:"机构级别",orgLevelPlaceholder:"请选择机构级别",companyLevel:"公司级",orgType:"机构类型",manageOrgName:"主管机构",selectStatus:"请选择状态",personCountLimit:"单位用户数",orgDescript:"机构描述",orgDescriptPlaceholder:"请输入机构描述",positionPersonnel:"岗位人员",selectSsPlaceholder:"请选择所属人员",noOrgJobInfo:"暂无工作岗位配置信息。",regDep:"编制部门",regDepPlaceholder:"请选择是否编制部门",orderNo:"排序编号",orderNoPlaceholder:"请输入排序编号",otherInfo:"其他信息",rolePermission:"角色权限",userRole:"用户角色:",mainPerson:"主负责人",deputyDirector:"副负责人",commonPerson:"普通员工",openAll:"开通全部",notOpen:"不开通",common:"普通",inner:"内部",workSecrets:"工作秘密",secrets:"秘密",index:"序号",otherColsEmail:"电子邮箱",otherColsPartyStatus:"政治面貌",otherColsEducational:"学历",otherColsNation:"籍贯",nationEmptyMessage:"请输入籍贯",otherColsNativePlace:"家庭地址",otherColsWorkNature:"工作性质",otherColsWorkAddress:"工作地点",workAddressEmptyMessage:"请输入工作地点",otherColsWorkTel:"工作电话",otherColsJobRank:"职级",otherColsBirthday:"生日",orgPersonExport:"-机构人员导出",cardPhoto:"证件照片",cardPhotoEmptyMessage:"请选择证件照片",cAorderNo:"CA序列号",cAorderNoEmptyMessage:"请输入CA序列号",entryDate:"入职时间",entryDateEmptyMessage:"请选择入职时间",positiveDate:"转正时间",positiveDateEmptyMessage:"请选择转正时间",workDate:"参加工作时间",workDateEmptyMessage:"请选择参加工作时间",workAge:"工龄",workAgeEmptyMessage:"请输入工龄",partyStatus:"政治面貌",partyStatusEmptyMessage:"请输入政治面貌",interruptedTime:"工作中断时长",interruptedTimeEmptyMessage:"请输入工作中断时长",workNature:"工作性质",workNatureEmptyMessage:"请选择工作性质",jobRankEmptyMessage:"请选择职级",educational:"学历",educationalEmptyMessage:"请选择学历",graduatedSchool:"毕业学校",graduatedSchoolEmptyMessage:"请输入毕业学校",workTel:"工作电话",workTelEmptyMessage:"请输入工作电话",homeTel:"家庭电话",homeTelEmptyMessage:"请输入家庭电话",birthday:"出生日期",birthdayEmptyMessage:"请选择出生日期",marriage:"婚姻情况",marriageEmptyMessage:"请选择婚姻情况",homeAddress:"家庭住址",homeAddressEmptyMessage:"请输入家庭住址",emergencyContact:"紧急联系人",emergencyContactEmptyMessage:"请输入紧急联系人",linkmanTel:"紧急联系人电话",linkmanTelEmptyMessage:"请输入紧急联系人电话",privateSet:"隐私设置",privateSetPlaceholder:"请输入隐私设置",privateSetPlaceholder2:"请选择隐私设置",privateAllow:"指定范围",privateAllowPlaceholder:"请输入指定范围",visiblePerson:"可见人员",visiblePersonPlaceholder:"请选择可见人员",person:"人员",parentName:"上级机构",orgInfo:"组织机构信息",deptOrgInfo:"部门/科室机构信息",deptFzInfo:"部门分组信息",institutionalDirectory:"机构目录",institutionalDirectoryPlaceholder:"请选择机构目录",isManagementOrganization:"是否管理机构",isManagementOrganizationPlaceholder:"请选择是否管理机构",memberRoles:"成员角色",remarks:"备注",roleOrgStr:"成员角色分配给机构下全部人员,包括子机构人员。",fzName:"分组名称",fzNamePlaceholder:"请输入分组名称",fzDescript:"分组说明",fzDescriptPlaceholder:"请输入分组说明",fzStatusPlaceholder:"请选择分组状态",mlTreeInfo:"目录树节点信息",parentLevelNode:"上级节点",nodeNameEmpty:"请输入节点名称",orderNoEmpty:"请输入排序",sysRole:"系统角色",PendingConfidentiality:"待定密",exportModule:"导入模式",addTb:"增量同步",allTb:"全量同步",depart:"部门",ks:"科室",importRes:"导入结果",importResultStr:"UID、手机号码不唯一,未导入",importResultStr2:"帐号已存在,只导入员工",importResultStr3:"帐号、员工已存在,更新",importOrgInfo:"导入机构信息",importGroupCy:"导入群组成员",startImport:"开始导入",jobJzTitle:"{name}岗位人员矩阵",groupJzTitle:"{name}群组人员矩阵",organizationalDirectory:"组织机构目录",productName:"产品名称",productNamePlaceholder:"请选择角色所属平台产品",selectProPlat:"选择平台产品",productCode:"产品代码",roleName:"角色名称",roleNamePlaceholder:"请输入角色名称",roleNo:"角色编号",roleNoPlaceholder:"请输入角色编号",roleDescript:"角色描述",rolePlaceholder:"请输入角色描述",status:"状态",sysConfigInfo:"系统配置信息",orgFullname:"用户单位名称",orgFullnameEnter:"请输入用户单位名称",orgCodeEnter:"请输入用户单位代码",sysName:"系统名称",sysNameEnter:"请输入系统名称",sysCode:"系统代码",sysCodeEnter:"请输入系统代码",defToSys:"是否默认主系统",defToSysEnter:"请输入是否默认主系统",productCodeEnter:"请选择产品名称",logoImgName:"LOGO图片文件名",logoImgNameEnter:"请输入LOGO图片文件名",syslogoImgName:"系统LOGO图片",syslogoImgNameEnter:"请选择系统LOGO图片",busActTime:"业务开通时间",busActTimeEnter:"请输入业务开通时间",businessDeadline:"业务截止时间",businessDeadlineEnter:"请输入业务开通时间",systemState:"系统状态",selectSystemState:"请选择系统状态"},options:{statusOptions:{1:"有效",0:"无效",6:"待定密",7:"待审核",8:"冻结"},positionTypeOptions:{1:"主负责人",2:"副负责人",0:"普通员工"},isSysUserOptions:{1:"开通全部",0:"不开通",2:"指定系统"},isRegDeptOptions:{1:"是",0:"否"},secretLevelOptions:{0:"普通",1:"内部",2:"工作秘密",3:"秘密"},privateSetOptions:{0:"全部可见",1:"上级可见",4:"同级可见",2:"部门内可见",3:"指定范围"},orgTypeOptions:{1:"编制机构",0:"临时机构",2:"外部机构"},orgLevelOptions:{2:"部门级",3:"科室级",4:"班组级",5:"小组级",6:"六级",7:"七级",8:"八级",9:"九级",10:"十级"}},currentRegisteredUser:"当前注册用户:",validUser:"有效用户:",PendingClassifiedUser:"待定密用户:",pendingUserReview:"待审核用户:",invalidUser:"无效用户:",freezeUsers:"冻结用户:",personInfo:"人员信息",dialogTitle:"复制菜单",replaceMenu:"同一系统,新菜单名称不能与当前菜单相同",replaceMenuForm:"同一系统,必须输入菜单代码替换From关键词",replaceMenuTo:"同一系统,必须输入菜单代码替换To关键词",replaceSuccess:"复制成功,新菜单名称为:{newName}",activeText:"按主系统合并",inactiveText:"展开子系统",selectMechanism:"请选择模块菜单所属机构",moduleMenu:"模块菜单管理",selectAffInsti:"请选择模块菜单所属机构",settingInstruction:"设置说明",explainTip1:"1.产品业务开通后,可对各单位已开通产品的模块菜单做个性化设置;",explainTip2:"2.一个单位开通多个产品,一次性加载全部产品模块菜单;",explainTip3:"3.请先选择模块菜单所属单位。",chooseAgain:"您所选择的单位未开通任何业务,请重新选择!",cannotBe:"{targetNode}不是文件夹菜单,不能移入。",delSysSetupTip:"您是否确认删除“{sysName}”的全部系统数据?",delSysSetupAllTip:"您是否确认删除“{sysName}”以及关联子系统的全部数据?",statusPlaceholder:"请选择状态",updateTime:"更新时间",roleProduct:"产品角色",roleMatrix:"{treeNode}角色权限矩阵",unauthorized:"未授权",authorized:"已授权",unrestricted:"不限制",operationButton:"操作按钮",processButton:"流程按钮",serviceInterface:"服务接口",accessSystem:"接入系统",portalMiniProgram:"门户小程序",mobileApp:"移动应用",fileSearch:"文件查询",allFileSearch:"全部文件查询",deptFileSearch:"部门文件查询",platRolesTipOne:"1、“{dataType}”为平台全局角色,其它角色为产品级角色;",platRolesTipTwo:"2、为平台级角色分配权限后,用户重新登录即可生效;为产品级角色分配权限后,仅新开通的系统生效;",platRolesTipThree:"3、“功能权限管理--\x3e角色权限管理--\x3e权限设置”提供为已开通系统角色分配权限的功能。",selectPerson:"选择机构人员",plselectPerson:"请选择机构人员",selectWork:"选择工作群组",selectBusinessSystem:"选择业务系统",pSelectBusinessSystem:"请选择已开通业务系统",roleOwner:"角色拥有者",personalOwner:"个人拥有者",deptOwner:"部门拥有者",grolupOwner:"群组拥有者",commonNum:"等共{dataType}人",importRolePersonnel:"导入角色人员"},menuForm:{fields:{parentName:"上级名称",columnAbbre:"栏目简称",columnAbbreEnter:"请输入栏目简称",menuType:"菜单类型",selectmenuType:"请选择菜单类型",approvalMenu:"审批菜单组",moduleSubmenu:"审批模块子菜单",selectModuleSubmenu:"请选择审批模块子菜单",myCreatedURL:"我创建的列表URL",enterMyCreatedURL:"请输入我创建的列表URL",listURL:"{dataType}列表URL",enterListURL:"请输入{name}列表URL",approvalCode:"审批模块业务代码",enterApprovalCode:"请输入审批模块业务代码,例:fawen,shouwen,hytz",pageContentType:"页面内容类型",selectPageContentType:"请选择页面内容类型",openType:"打开方式",selectOpenType:"请选择打开方式",submenuStyle:"子菜单样式",selectSubmenuStyle:"请选择子菜单样式",navName:"页面导航名称",navNameEnter:"请输入页面导航名称",menuLink:"菜单链接",menuLinkEnter:"请输入菜单链接",urlFormat:"URL格式",urlFormatTip1:'1、动态列表视图vue组件url,以英文字符"/"结尾,不包括扩展名',urlFormatTip2:"2、格式为:#/dcontent/base.jobPosition.list/",urlFormatTip3:"1、静态列表视图vue组件文件路径,不包括文件扩展名",urlFormatTip4:"2、格式为:@/wapp/workflow/wfTaskItem/myTodo",businessCode:"业务代码",businessCodeEnter:"请输入业务代码,首字母小写",engineUrl:"引擎(模块)URL",engineUrlEnter:"请输入引擎(模块)URL",wfName:"流程名称",wfNameEnter:"请输入流程名称",wfCode:"流程编码",wfCodeEnter:"请输入流程编码",stageName:"起始环节名称",stageNameEnter:"请输入起始环节名称",stageCode:"起始环节编码",stageCodeEnter:"请输入起始环节编码",navShow:"导航栏显示",navOption1:"显示",navOption2:"不显示",authoType:"授权方式",selectAuthoType:"请选择授权方式",i18nCode:"I18N代码",i18nCodeEnter:"请输入I18N代码",accessAuthorization:"访问授权",orderNumber:"排序序号",orderNumberEnter:"请输入4位数字排序序号",status:"状态",selectstatus:"请选择状态",menuIcon:"选择菜单图标"},folder:"文件夹",menuItem:"菜单项",myCreated:"我创建的",fourStatus:"(全部、草稿、处理中、已结束)",myProcessed:"我处理的",twoStatus:"(待办、已办)",allFile:"全部",threeStatus:"(全部、处理中、已结束)",columnName:"栏目名称",menuName:"菜单名称",columnCode:"栏目编码",menuCode:"菜单编码",lnavWork:"左导航+工作区",work:"工作区",popUp:"弹出窗口",topWAin:"顶层窗口",leftMenu:"左侧菜单顶",rightLabel:"右侧页面标签",not:"无",dynamicListPage:"动态列表页面",staticListPage:"静态列表页面",superiorName:"动态门户",regularURL:"普通URL",dynamicList:"动态列表",staticList:"静态列表",statisticalReport:"统计报表",standardDraft:"起草文件(标准)",customizedDraft:"起草文件(定制)",Unrestricted:"不限制",designatedRole:"指定角色",desiPerson:"指定机构人员",specifyGroup:"指定群组"},meunItem:{menuTip:"{voName}不是文件夹菜单,不能创建子菜单。",notAllMenu:"{voName}下不允许创建子菜单。",delMenu:"确认删除“{nodeName}”吗?",isDelMenu:"确认删除“{nodeName}”及下级全部子菜单吗?",downCode:"下载代码"},messages:{isUpdateContent:"是否修改该内容吗?",tip:"提示",yes:"是",no:"否",updateSuccess:"修改成功",operateTip:"操作提示",hasRz:"{name}已经在{work}任职,不能重复添加!",selectDept:"请选择部门/科室机构。",inputPwd:"请输入密码!",selectResetPwd:"请选择需要重置密码的人员!",inputNewPwd:"请输入新密码",pwdTip:"密码最小5个字符,最多20个字符",selectPersonDept:"请选择需要调整部门的人员!",isSameDw:"只能调整同一单位下的人员!",selectDrDept:"选择调入部门",selectImportFile:"请选择导入文件",noNodeDelete1:"{name}下还有子节点,不能删除。",noNodeDelete2:"{name}下还有子机构,不能删除。",confirmDeleteNode:"确定要删除{name}吗?",treeMoveAlert1:"不能将目录树节点移到机构内。",treeMoveAlert2:"不能将主机构移到其它机构内。",treeMoveAlert3:"部门分组节点只能平级移动。",treeMoveAlert4:"部门分组节点下只能移入二级部门。",treeMoveAlert5:"不能将子机构移出到主机构外。",treeMoveAlert6:"不能将跨主机构移动子机构。"},Common:{moduleMenu:"模块菜单",role:"角色授权",allAuthorizationMethods:"全部授权方式",allow:"允许",prohibit:"禁止",accessPermissions:"访问权限",accessPermissionsAllData:"全部文件权限",accessPermissionsDeptData:"部门文件权限",operationPage:"操作页面",pageURL:"页面URL",operationName:"操作名称",operationType:"操作类型",listToolbarButton:"列表工具栏按钮",listColumnButton:"列表操作列按钮",formPageButton:"表单页面按钮",linkName:"环节名称",singleColumnButton:"单体栏按钮",dropdownButton:"下拉按钮",pullDownSubButton:"下拉子按钮",controllerName:"控制器名称",apiAddress:"API地址",apiDescription:"API描述",homepage:"主页地址",designation:"名称",portalPage:"门户页面",xaxis:"X轴坐标",yaxis:"Y轴坐标",applyName:"应用名称",accessAddress:"接入地址",listName:"列表名称",listUrl:"列表URL",rootSet:"权限设置-{name}",columnMenuConfiguration:"栏目菜单配置",leftMenuConfiguration:"左导航菜单配置",produceInfo:"产品配置信息",exportMenu:"导出模块菜单",selectTimePlace:"选择日期时间",keyPlaceholder:"请输入搜索关键字",selectSqlType:"请选择目标数据库类型:",treeIsNoMenu:"{name}不是文件夹菜单,不能移入。",treeNoMove:"不能将模块菜单移出产品外。",importFile:"导入文件",importSuccess:"导入成功",importErrorPerson:"以下成员导入失败:",selectImportFile:"选择导入文件",uploadFile:"上传文件内容格式说明:",uploadFileText1:"1.导入文件应为Office Excel文件;",uploadFileText2:"2.导入文件暂不支持Office2007及以后版本的Excel文件,使用的是Office2007及以后版本,请把Excel文件转换为2003前的版本格式,具体转换方式为:打开的Excel文件中,选择“为”->“Excel97-2003工作簿”;",uploadFileText3:"3.进行导入操作时,请确保您导入的文未处于使用状态。",uploadFileText4:"上传文件内容示例:",downFile:"点击下载Excel导入示例",clickDown:"点击下载",importConfiguration:"导入流程配置"},PageBtns:{enable:"启用",disable:"禁用",sure:"确定",import:"导入",startImport:"开始导入",cancel:"取消",moveto:"调动",resetPwd:"重置密码",addColumn:"新增栏目",systemSetting:"系统设置",addSubmenu:"新增子菜单",addApprMenu:"新增审批菜单组",modifyMenu:"修改菜单",deleteMenu:"删除菜单",copyMenu:"复制菜单",exportMenu:"导出菜单",importMenu:"导入菜单",oneClickDelete:"一键删除",switchUnits:"切换单位",setUserRoles:"审核密级",setRoles:"设置角色",addRootNode:"新增根节点",addChildNode:"新增子节点",addMainOrg:"新增主机构",updateMainOrg:"修改主机构",delMainOrg:"删除主机构",addChildOrg:"新增子机构",addDeptfz:"新增部门分组",updateTreeNode:"修改树节点",delTreeNode:"删除树节点",updateOrg:"修改机构",delOrg:"删除机构",updateFz:"修改分组",delFz:"删除分组",privateSet:"隐私设置"}}}},2962:function(e,t,i){"use strict";function n(){for(var e=[],t="0123456789abcdef",i=0;i<36;i++)e[i]=t.substr(Math.floor(16*Math.random()),1);e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="";var n=e.join("");return n}i.d(t,{o:function(){return r},u:function(){return n}});var r={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,i,n,o,a,s,l,d="",c=0;e=r._utf8_encode(e);while(c<e.length)t=e.charCodeAt(c++),i=e.charCodeAt(c++),n=e.charCodeAt(c++),o=t>>2,a=(3&t)<<4|i>>4,s=(15&i)<<2|n>>6,l=63&n,isNaN(i)?s=l=64:isNaN(n)&&(l=64),d=d+this._keyStr.charAt(o)+this._keyStr.charAt(a)+this._keyStr.charAt(s)+this._keyStr.charAt(l);return d},decode:function(e){var t,i,n,o,a,s,l,d="",c=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length)o=this._keyStr.indexOf(e.charAt(c++)),a=this._keyStr.indexOf(e.charAt(c++)),s=this._keyStr.indexOf(e.charAt(c++)),l=this._keyStr.indexOf(e.charAt(c++)),t=o<<2|a>>4,i=(15&a)<<4|s>>2,n=(3&s)<<6|l,d+=String.fromCharCode(t),64!==s&&(d+=String.fromCharCode(i)),64!==l&&(d+=String.fromCharCode(n));return d=r._utf8_decode(d),d},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t},_utf8_decode:function(e){var t,i="",n=0,r=0,o=0;while(n<e.length)r=e.charCodeAt(n),r<128?(i+=String.fromCharCode(r),n++):r>191&&r<224?(o=e.charCodeAt(n+1),i+=String.fromCharCode((31&r)<<6|63&o),n+=2):(o=e.charCodeAt(n+1),t=e.charCodeAt(n+2),i+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&t),n+=3);return i}}},62685:function(e,t,i){"use strict";i.r(t),i.d(t,{dragAddNode:function(){return k},dragLine:function(){return _},getPathXyData:function(){return w},isDomDrag:function(){return n},model:function(){return g},nodeEvents:function(){return y}});var n,r=i(74692),o=i.n(r),a=i(16473),s=i(2962),l=i(83375),d=i(15880),c=window.jsPlumb,u="/images/w-imgs/definition/center/c_ptjd.png",f="/images/w-imgs/definition/center/c_jzjd.png",p="/images/w-imgs/definition/center/c_drbx.png",h="/images/w-imgs/definition/center/c_drcx.png",m="/images/w-imgs/definition/center/c_hqjd.png",b="/images/w-imgs/definition/center/c_ywjd.png",v="/images/w-imgs/definition/center/c_zlc.png",g={};function y(e,t,i){o()("#"+e).bind("mousedown",(function(n){if(!(o()("#"+e).hasClass("model_process_yb")||o()("#"+e).hasClass("model_process_yth")||o()("#"+e).hasClass("model_process_jxz"))){var r=c.getAllConnections(),a=[],s=o()(this).attr("id");if(3===n.which&&(o()("#centextMenu").remove(),o()(".dropdown-menu").show(),o()(".dropdown-menu").css({left:n.pageX,top:n.pageY}),o()(".dropdown-menu").find("a").hide(),o()("#"+e).hasClass("parentWf")?o()("#viewParentWf").bind("click",(function(){S(t,s)})):o()("#"+e).hasClass("childWf")&&o()("#viewChildWf").bind("click",(function(){S(t,s)})),o()("#deleteNode").show(),o()("#deleteNode").bind("click",(function(){1!==document.querySelector(".model_process").length?i.$confirm("您是否确认删除选择的节点?",i.$t("common.confirm"),{type:"warning"}).then((function(){for(var n=0;n<r.length;n++)r[n].targetId==s&&a.push(r[n]),r[n].sourceId==s&&a.push(r[n]);for(var o=0;o<t.paths.length;o++)for(var l=0;l<a.length;l++)if(t.paths[o].id==a[l].id){if(t.wfdEvents)for(var d=0;d<t.wfdEvents.length;d++)t.wfdEvents[d].pathId===t.paths[o].id&&(1===t.wfdEvents[d].isPublic||0!==t.wfdEvents[d].isPublic||t.wfdEvents[d].isnew?t.wfdEvents.splice(d--,1):t.wfdEvents[d].passenger.delete=1);for(var u=0;u<t.nextNodes.length;u++)t.nextNodes[u].pathId==t.paths[o].id&&t.nextNodes.splice(u--,1);t.paths.splice(o,1);break}for(var f=0;f<t.nodes.length;f++)t.nodes[f].id==s&&(t.nodes[f].name&&"start"==t.nodes[f].name&&g.start--,t.nodes.splice(f--,1));for(var p=0;p<t.nextNodes.length;p++)t.nextNodes[p].nextNodeId==s&&t.nextNodes.splice(p--,1);if(t.wfdEvents)for(var h=0;h<t.wfdEvents.length;h++)t.wfdEvents[h].nodeId===s&&(1===t.wfdEvents[h].isPublic||0!==t.wfdEvents[h].isPublic||t.wfdEvents[h].isnew?t.wfdEvents.splice(h--,1):t.wfdEvents[h].passenger.delete=1);c.remove(e),i.removeUdmNode&&i.removeUdmNode(e)})):i.$alert("至少需要一个节点,不允许删除。","操作提示",{type:"warning"})})),-1!==this.innerHTML.indexOf("启动子流程")))for(var l=0;l<t.nodes.length;l++)if(t.nodes[l].id==s){if(t.nodes[l].childWflow){var d=JSON.parse(t.nodes[l].childWflow);d.wfCode&&(o()("#viewChildWf").show(),o()("#viewChildWf").bind("click",(function(){var e=location.href.replace("&id="+t.process.id,"&wfCode="+d.wfCode+"&orgCode="+d.orgCode);window.open(e,"_blank")})))}break}return!1}}))}function w(e,t){var i=e.connector.getPathData().split(","),n=i.length,r=t&&t.pathMinX?t.pathMinX:e.connector.bounds.minX,o=t&&t.pathMaxX?t.pathMaxX:e.connector.bounds.maxX,a=t&&t.pathMinY?t.pathMinY:e.connector.bounds.minY,s=t&&t.pathMaxY?t.pathMaxY:e.connector.bounds.maxY,l=[parseFloat(e.endpoints[0].anchor.x),parseFloat(e.endpoints[0].anchor.y),e.endpoints[0].anchor.orientation[0],e.endpoints[0].anchor.orientation[1]],d=[parseFloat(e.endpoints[1].anchor.x),parseFloat(e.endpoints[1].anchor.y),e.endpoints[1].anchor.orientation[0],e.endpoints[1].anchor.orientation[1]];if(3===n){if(1===l[3]&&-1===d[3]){var c=i[0].split(" ");s=parseInt(c[5])-parseInt(c[2])}else if(1===l[2]&&-1===d[2]){var u=i[0].split(" ");o=parseInt(u[4])-parseInt(u[1])}}else if(n>=4){if(1===l[2]){var f=i[0].split(" ");o=Math.abs(parseInt(f[1])-parseInt(f[4]))+5}if(1===d[2]){var p=i[i.length-1].split(" ");o=Math.abs(parseInt(p[1])-parseInt(p[4]))+5}if(1===l[3]){var h=i[0].split(" ");s=Math.abs(parseInt(h[2])-parseInt(h[5]))+5}if(1===d[3]){var m=i[i.length-1].split(" ");s=Math.abs(parseInt(m[2])-parseInt(m[5]))+5}}return{linesCount:n,pathMinX:r,pathMaxX:o,pathMinY:a,pathMaxY:s,firstEndpoints:l,secondEndpoints:d}}function _(e,t,i){var n=0;o()(document).bind("mousedown",(function(r){var a=t.connector.getPathData().split(","),s=a.length;if(s<2)o()(document).unbind("mousedown");else{e.dragLineObj.disX=r.pageX,e.dragLineObj.disY=r.pageY;var l=w(t,i),d=l.pathMaxX,c=l.pathMaxY,u=l.pathMinX,f=l.pathMinY,p=210,h=112,m=t.endpoints[0].anchor.orientation,b=t.endpoints[1].anchor.orientation;0!==m[0]&&Math.abs(h+t.endpoints[0].anchor.lastReturnValue[1]-r.pageY)<=10||0!==b[0]&&Math.abs(h+t.endpoints[1].anchor.lastReturnValue[1]-r.pageY)<=10||0!==m[1]&&Math.abs(p+t.endpoints[0].anchor.lastReturnValue[0]-r.pageX)<=10||0!==b[1]&&Math.abs(p+t.endpoints[1].anchor.lastReturnValue[0]-r.pageX)<=10?o()(document).unbind("mousedown"):(x(!0),o()(document).bind("mousemove",(function(r){if(!(t.endpoints.length<2)){var a=null;a=document.querySelector("#center-scrollbar")?document.querySelector("#center-scrollbar").querySelector(".el-scrollbar__wrap"):document.querySelector("#wfNodelogList").parentElement.parentElement;var l=a.scrollTop,v=parseInt(t.canvas.style.left),g=parseInt(t.canvas.style.top),y=t.canvas.clientWidth,w=t.canvas.clientHeight;r.pageX<220?r.pageX=220:r.pageX>parseInt(o()(".main").css("width"))-10&&(r.pageX=parseInt(o()(".main").css("width"))-10),r.pageY<122&&(r.pageY=122);var _=r.pageX,x=r.pageY,k=[0,0];s<=3?-1===m[0]?(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[-n,10]):1===m[0]?(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[n,10]):-1===m[1]?(n=-(Math.abs(f)-(x-e.dragLineObj.disY)),n>-10&&(n=-10),i.pathMinY=n,k=[-n,10]):1===m[1]&&(n=Math.abs(c)+(x-e.dragLineObj.disY),n<10&&(n=10),i.pathMaxY=n,k=[n,10]):4===s?-1===m[0]?Math.abs(h+g-e.dragLineObj.disY)<=10?(n=-(Math.abs(f)-(x-e.dragLineObj.disY-l)),n>-10&&(n=-10),i.pathMinY=n,k=[Math.abs(u),-n]):Math.abs(h+g+w-e.dragLineObj.disY-l)<=10?(n=Math.abs(c)+(x-e.dragLineObj.disY-l),n<10&&(n=10),i.pathMaxY=n,k=[Math.abs(u),n]):Math.abs(p+v-e.dragLineObj.disX)<=10&&(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[-n,Math.abs(-1===b[1]?f:c)]):1===m[0]?Math.abs(h+g-e.dragLineObj.disY)<=10?(n=-(Math.abs(f)-(x-e.dragLineObj.disY-l)),n>-10&&(n=-10),i.pathMinY=n,k=[Math.abs(d),-n]):Math.abs(h+g+w-e.dragLineObj.disY-l)<=10?(n=Math.abs(c)+(x-e.dragLineObj.disY-l),n<10&&(n=10),i.pathMaxY=n,k=[Math.abs(d),n]):Math.abs(p+v+y-e.dragLineObj.disX)<=10&&(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[n,Math.abs(-1===b[1]?f:c)]):1===m[1]?Math.abs(h+g+w-e.dragLineObj.disY-l)<=10?(n=Math.abs(c)+(x-e.dragLineObj.disY),n<10&&(n=10),i.pathMaxY=n,k=[n,Math.abs(-1===b[0]?u:d)]):Math.abs(p+v-e.dragLineObj.disX)<=10?(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[Math.abs(c),-n]):Math.abs(p+v+y-e.dragLineObj.disX)<=10&&(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[Math.abs(c),n]):-1===m[1]&&(Math.abs(h+g-e.dragLineObj.disY)<=10?(n=-(Math.abs(f)-(x-e.dragLineObj.disY)),n>-10&&(n=-10),i.pathMinY=n,k=[-n,Math.abs(-1===b[0]?u:d)]):Math.abs(p+v-e.dragLineObj.disX)<=10?(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[Math.abs(f),-n]):Math.abs(p+v+y-e.dragLineObj.disX)<=10&&(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[Math.abs(f),n])):5===s&&(0!==m[0]?Math.abs(p+v-e.dragLineObj.disX)<=10?-1===m[0]?(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[-n,Math.abs(d)]):1===m[0]&&(n=-(Math.abs(u)-(_-e.dragLineObj.disX)),n>-10&&(n=-10),i.pathMinX=n,k=[Math.abs(d),-n]):-1===m[0]?(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[Math.abs(u),n]):1===m[0]&&(n=Math.abs(d)+(_-e.dragLineObj.disX),n<10&&(n=10),i.pathMaxX=n,k=[n,Math.abs(u)]):Math.abs(h+g-e.dragLineObj.disY-l)<=10?-1===m[1]?(n=-(Math.abs(f)-(x-e.dragLineObj.disY)),n>-10&&(n=-10),i.pathMinY=n,k=[-n,Math.abs(c)]):1===m[1]&&(n=-(Math.abs(c)-(x-e.dragLineObj.disY)),n>-10&&(n=-10),i.pathMinY=n,k=[Math.abs(c),-n]):-1===m[1]?(n=Math.abs(c)+(x-e.dragLineObj.disY),n<10&&(n=10),i.pathMaxY=n,k=[Math.abs(f),n]):1===m[1]&&(n=Math.abs(c)+(x-e.dragLineObj.disY),n<10&&(n=10),i.pathMaxY=n,k=[n,Math.abs(c)])),t.setConnector(["Flowchart",{stub:k,gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}]),t.addOverlay(["Arrow",{width:10,length:10,location:1}])}})),o()(document).bind("mouseup",(function(e){x(!1),o()(document).unbind("mousedown"),o()(document).unbind("mousemove"),o()(document).unbind("mouseup")})))}}))}function x(e){e?o()("#center").addClass("move"):o()("#center").removeClass("move")}function k(e,t,i,n){var r=o()(t.draggable).attr("associated"),s=o()(t.draggable).attr("resize"),l=o()(t.draggable).attr("domJoin"),c=o()(t.draggable).attr("type"),u=document.querySelector(".center-container"),f=g.CreateModel(t,o()(u),s,l,r,c,i.wflow,i);i.getProcessNum(r),i.curNode=JSON.parse(JSON.stringify(n)),a.oW.forEach((function(e){e.associated===r&&(i.curNode.name=e.name||"",i.curNode.nodeNo=e.nodeNo,i.curNode.nodeType=e.nodeType,void 0!==e.dccodeType&&(i.curNode.dccodeType=e.dccodeType),void 0!==e.processType&&(i.curNode.processType=e.processType))})),i.curNode.id=f,i.curNode.processId=i.process.id,i.curNode.nodeNo||(i.curNode.nodeNo=10*i.processNum),i.wflow.nodes.push(i.curNode),i.emitData(),o()(".process").bind("click",(function(e){if(o()(".process").removeClass("seled"),o()(e.currentTarget).addClass("seled"),i.$vnode.context.$refs["siderefs"]){i.getHistroyNodes();for(var t=o()(e.currentTarget).attr("id"),n=0;n<i.wflow.nodes.length;n++)if(t===i.wflow.nodes[n].id){i.curNode=i.wflow.nodes[n],o()(e.currentTarget).attr("id",i.wflow.nodes[n].id);break}i.getNodeSpecialData(t),i.clickNodeFieldValues(),i.clickNodeOperation(),i.getWaitNode(),i.emitData()}})),i.AddAnchor();var p=document.querySelector(".scissors-line");return p&&p.conn&&((0,d.scissorsLineAndRelocation)(i,p.conn,f),o()(".insert-node-btn").css({display:"none"})),f}function S(e,t){for(var i=0;i<e.nodes.length;i++)if(e.nodes[i].id==t){var n=e.nodes[i];n.childWflow}}g.countId=0,g.modelId="PROCESS_DOM_",g.createDom="",g.start=0,g.CreateModel=function(e,t,i,r,a,u,f,p){if(g.start>=1&&"start"==a)return p.$alert("已经有开始节点存在了","操作提示",{type:"warning"}),!1;"start"==a&&g.start++,g.countId++;var h=(0,s.u)(),m=parseInt(e.offset.left+24-o()(t).offset().left),b=parseInt(e.offset.top-o()(t).offset().top);return"start"==a||"jslc"==a||"jsrw"==a||"parentWf"==a||"zyjd"==a||"dfzjd"==a||"jhjd"==a?g.createDom=g.customModel(h,a,u):"jcjd"==a?(g.createDom=g.customModel(h,a,u),m+=-40):(g.createDom=g.ordinaryModel(h,a,u),m+=-40),o()("#center").append(g.createDom),m=10*Math.round(m/10),b=10*Math.round(b/10),o()("#"+h).css("left",m).css("top",b),1==r||(c.addEndpoint(h,{anchors:[1,.5,1,0],uuid:jsPlumbUtil.uuid()},l.Yy),c.addEndpoint(h,{anchors:[0,.5,-1,0],uuid:jsPlumbUtil.uuid()},l.Yy),c.addEndpoint(h,{anchors:[.5,0,0,-1],uuid:jsPlumbUtil.uuid()},l.Yy)),c.addEndpoint(h,{anchors:[.5,1,0,1],uuid:jsPlumbUtil.uuid()},l.Yy),o()("#"+h).draggable({grid:[10,10],start:function(){(0,d.startMove)(),c.repaintEverything()},drag:function(e,t){(0,d.MoveSelectDiv)(e,t,h),c.repaintEverything()},stop:function(e,t){(0,d.resetLocation)(t,e.target.id),c.repaintEverything()}}),y(h,f,p),n=!0,h},g.ordinaryModel=function(e,t,i){for(var r="",o="",s=0;s<a.oW.length;s++)a.oW[s].associated==t&&(o=a.oW[s].title,a.oW[s].text);switch(t){case"ptjd":r=u;break;case"jzjd":r=f;break;case"drbx":r=p;break;case"drcx":r=h;break;case"hqjd":r=m;break;case"ywjd":r=b;break;case"childWf":r=v;break}var l='<div id="'+e+'" type="'+i+'" class="process model_process '+t+'"><div class="title"><img src="'+r+'" width="22" alt=""><span>'+o+"</span></div><p></p></div>";return n=!0,l},g.customModel=function(e,t,i){var n='<div id="'+e+'" type="'+i+'" class="process '+t+'"></div>';return n}},83375:function(e,t,i){"use strict";i.d(t,{Nc:function(){return o},Yy:function(){return r},on:function(){return a}});var n=window.jsPlumb;n.importDefaults({PaintStyle:{lineWidth:8,stroke:"#00ff54"}});var r={DragOptions:{cursor:"pointer",zIndex:2e3},endpoint:["Dot",{radius:7}],paintStyle:{fillStyle:"#438eb9",radius:5,lineWidth:"transparent"},isSource:!0,connector:["Flowchart",{stub:[50,50],gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}],isTarget:!0,maxConnections:-1,connectorOverlays:[["Arrow",{width:10,length:10,location:1}],["Label",{label:"",cssClass:"line_text",events:{mousedown:function(e,t){n.draggable($(".line_text"))},mouseout:function(){return!1}}}]]};function o(e,t,i){var r=n.connect({source:e.sourceId||e.PageSourceId,target:e.targetId||e.PageTargetId,anchors:i,editable:!0,parameters:{pathId:e.id||e.ConnectionId},endpointStyle:{fill:"lightgray",outlineStroke:"darkgray",outlineWidth:2},connector:t,overlays:[["Arrow",{width:10,length:10,location:1}]],endpoint:["Dot",{radius:5}]});return r?(r.setLabel({label:e.label||" ",cssClass:"line_text",location:e.labelLocation||.5}),r.labelLocation=e.labelLocation):console.log("createConnect failure",r),r}function a(e){for(var t=0;t<e.length;t++){var i=[e[t].firstEndpoints,e[t].secondEndpoints],n=0,r=void 0,a=[0,0];"Straight"===e[t].type?r=["Straight",{stub:[0,0]}]:"Flowchart"===e[t].type?(1===e[t].linesCount||0!==i[0][3]&&i[1][3]!==i[0][3]&&void 0!==e[t].pathMinX&&Math.abs(e[t].pathMaxX)<10&&Math.abs(e[t].pathMinX)<10||0!==i[0][2]&&i[1][2]!==i[0][2]&&void 0!==e[t].pathMinY&&Math.abs(e[t].pathMaxY)<10&&Math.abs(e[t].pathMinY)<10?a=[0,0]:3===e[t].linesCount?(-1===i[0][2]?a=[Math.abs(e[t].pathMinX),10]:1===i[0][2]?a=[Math.abs(e[t].pathMaxX),10]:-1===i[0][3]?a=[Math.abs(e[t].pathMinY),10]:1===i[0][3]&&(a=[Math.abs(e[t].pathMaxY),10]),isNaN(a[0])&&(a[0]=50)):e[t].linesCount>=4?(a=[10,10],-1===i[0][2]?a[0]=Math.abs(e[t].pathMinX):1===i[0][2]?a[0]=Math.abs(e[t].pathMaxX):-1===i[0][3]?a[0]=Math.abs(e[t].pathMinY):1===i[0][3]&&(a[0]=Math.abs(e[t].pathMaxY)),-1===i[1][2]?a[1]=Math.abs(e[t].pathMinX):1===i[1][2]?a[1]=Math.abs(e[t].pathMaxX):-1===i[1][3]?a[1]=Math.abs(e[t].pathMinY):1===i[1][3]&&(a[1]=Math.abs(e[t].pathMaxY)),10===a[0]&&10===a[1]&&(r=["Flowchart",{stub:[50,50]}])):Math.abs(e[t].pathMaxX)>10||Math.abs(e[t].pathMinX)>10?0!==i[0][2]&&0!==i[1][2]?(Math.abs(e[t].pathMaxX)>Math.abs(e[t].pathMinX)?e[t].pathMaxX>0&&(e[t].pathMaxX=e[t].pathMinX):e[t].pathMinX&&(e[t].pathMaxX=e[t].pathMinX),n=Math.abs(e[t].pathMaxX),(isNaN(n)||n<10)&&(n=50,e[t].pathMaxX=50),a=[n,10]):(Math.abs(e[t].pathMaxX)>Math.abs(e[t].pathMinX)?e[t].pathMax>0&&(e[t].pathMaxY=e[t].pathMinX):e[t].pathMaxY=e[t].pathMinX,n=Math.abs(e[t].pathMaxY),(isNaN(n)||n<10)&&(n=50,e[t].pathMaxY=50),a=[n,10]):e[t].pathMaxY=0,isNaN(a[0])&&(a[0]=50),isNaN(a[1])&&(a[1]=50),r=[e[t].type,{stub:a,gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}]):"Bezier"===e[t].type&&(r=["Bezier",{stub:[0,0]}]);var s=$("#"+e[t].PageSourceId);(s.hasClass("dfzjd")||s.hasClass("zyjd"))&&(e[t].label="");try{o(e[t],r,i)}catch(l){o(e[t],r,i)}}}},83275:function(e,t,i){"use strict";i.r(t),i.d(t,{ecinc_attr_panel:function(){return d},ecinc_process:function(){return l}});var n=i(16473),r=i(2962),o=i(74692),a={ConnectionId:"",PageSourceId:"",PageTargetId:"",uuid:[null,null],label:"",firstEndpoints:[.5,1,0,1],secondEndpoints:[.5,0,0,-1],type:"Flowchart",pathMinX:0,pathMaxX:0,pathMinY:2.5,pathMaxY:88,linesCount:1},s={start:{domH:'<div id="" type="1" class="process start jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style="left: 470px; top: 120px;" ></div>'},ptjd:{domH:'<div id="" type="2" class="process model_process ptjd jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_ptjd.png" width="22" alt=""><span>普通节点</span></div><p>普通节点</p></div>'},jzjd:{domH:'<div id="" type="3" class="process model_process jzjd jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_jzjd.png" width="22" alt=""><span>竞争节点</span></div><p>多人竞争</p></div>'},drbx:{domH:'<div id="" type="4" class="process model_process drbx jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_drbx.png" width="22" alt=""><span>多人并行</span></div><p>多人并行</p></div>'},drcx:{domH:'<div id="" type="4" class="process model_process drcx jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_drcx.png" width="22" alt=""><span>多人串行</span></div><p>多人串行</p></div>'},hqjd:{domH:'<div id="" type="6" class="process model_process hqjd jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_hqjd.png" width="22" alt=""><span>会签节点</span></div><p>多人会签</p></div>'},ywjd:{domH:'<div id="" type="7" class="process model_process ywjd jtk-endpoint-anchor jtk-managed jtk-connected ui-draggable ui-draggable-handle" style=""><div class="title"><img src="/images/w-imgs/definition/center/c_ywjd.png" width="22" alt=""><span>多人阅文</span></div><p>多人阅文</p></div>'},dfzjd:{domH:'<div id="" type="12" class="process dfzjd jtk-managed ui-draggable ui-draggable-handle jtk-connected jtk-endpoint-anchor seled" style=""></div>'},jslc:{domH:'<div id="" type="9" class="process jslc jtk-endpoint-anchor jtk-managed ui-draggable ui-draggable-handle jtk-connected " style="" bleft="570" btop="780"></div>'}},l={connection:null,init:function(){o(".right-form").draggable({containment:"#center"}),l.configLeft()},configLeft:function(){var e=o("#left .domList").find("li");e.each((function(t,i){e.eq(t).attr("associated",n.oW[t].associated),e.eq(t).attr("resize",n.oW[t].resize),e.eq(t).attr("domJoin",n.oW[t].domJoin),e.eq(t).attr("type",n.oW[t].type)}))}},d={init:function(){d.setDrag(),d.event()},setDrag:function(){o(".right-form").draggable()},event:function(){o("body").on("click",".process",(function(){o(".right-form").show();var e=o(this).attr("type");switch(e){case"2":case"3":case"4":case"5":case"6":case"7":o(".node").hide(),o(".panel_node").show(),setTimeout((function(){o("#HandlerBtn").attr("showType",1),o("#HandlerBtn").trigger("click")}),0);break;case"14":o(".node").hide(),o(".panel_node").show(),setTimeout((function(){o("#HandlerBtn").attr("showType",2),o("#HandlerBtn").trigger("click")}),0);break;case"10":o(".node").hide(),o(".panel_decision").show();break;case"13":o(".node").hide(),o(".panel_aggregation").show();break;default:o(".node").hide(),o(".panel_process").show()}return!1}))}};l.initProcess=function(e){if("plat"!==e.loginUser.orgCode||"1"===e.$route.query.dwadmin?(e.dwadmin=1,e.$set(e.process,"orgName",e.loginUser.orgName),e.$set(e.process,"orgCode",e.loginUser.orgCode),void 0!==e.$route.query.sysCode&&(e.$set(e.process,"sysName",e.$route.query.sysName),e.$set(e.process,"sysCode",e.$route.query.sysCode))):"1"===e.$route.query.product?e.product=1:"1"===e.$route.query.platadmin&&(e.$set(e.process,"sysName",e.loginUser.sysName),e.$set(e.process,"sysCode",e.loginUser.sysCode),e.$set(e.process,"orgName",e.loginUser.orgName),e.$set(e.process,"orgCode",e.loginUser.orgCode)),void 0!==e.$route.query.udmid){var t=e.$route.query;if(e.$set(e.process,"name",t.udmname),e.$set(e.process,"processNo","udmjysp_"+t.udmcode),e.$set(e.process,"version","V1.0"),e.$set(e.process,"workFormW","/dcontent/"+t.workform+"/"),void 0!==e.$route.query.sysCode&&(e.$set(e.process,"sysName",e.$route.query.sysName),e.$set(e.process,"sysCode",e.$route.query.sysCode)),t.ideaLabels&&""!==t.ideaLabels){e.ideaLabels=e.ideaLabels||[];var i=t.ideaLabels.replace(/,/g,"\r\n").split("\r\n");i.forEach((function(t,i){var n=e.ideaLabels.filter((function(e){return e.name===t}));if(0===n.length){var o={status:-1,id:(0,r.u)(),name:t,orderNo:"no"+(i<10?"0"+i:i),processId:e.process.id};e.ideaLabels.push(o)}})),e.$bus.emit("emitIdeaLables",e.ideaLabels),e.saveIdeaLable(e.ideaLabels)}e.$bus.emit("emitProcess",e.process)}},l.setNewChartdata=function(e){var t=[];e.process.chartData={domHtml:[]},a.processId=e.process.id,n.Lq.processId=e.process.id;var i=(0,r.u)(),l=JSON.parse(JSON.stringify(s.start)).domH.replace('id=""','id="'+i+'"');e.process.chartData.domHtml.push({domH:r.o.encode(l)});var d=JSON.parse(JSON.stringify(n.EP));d.name="start",d.id=i,d.processId=e.process.id,d.nodeNo="start",e.wflow.nodes.push(d);var c=(0,r.u)(),u=JSON.parse(JSON.stringify(s.ptjd)).domH.replace('id=""','id="'+c+'"');u=u.replace("<p>普通节点</p>","<p>发起申请</p>");var f=300;u=u.replace('style=""','style="left: 430px; top: '+f+'px;"'),e.process.chartData.domHtml.push({domH:r.o.encode(u)});var p=JSON.parse(JSON.stringify(n.EP));p.name="发起申请",p.id=c,p.processId=e.process.id,p.nodeNo="10",e.wflow.nodes.push(p);var h=(0,r.u)(),m=JSON.parse(JSON.stringify(s.jslc)).domH.replace('id=""','id="'+h+'"'),b=500;m=m.replace('style=""','style="left: 470px; top: '+b+'px;"'),e.process.chartData.domHtml.push({domH:r.o.encode(m)});var v=JSON.parse(JSON.stringify(n.EP));v.name="jslc",v.id=h,v.processId=e.process.id,v.nodeNo="jslc",e.wflow.nodes.push(v);var g=JSON.parse(JSON.stringify(a));g.ConnectionId=(0,r.u)(),g.label="",g.PageSourceId=i,g.PageTargetId=c,t.push(g);var y=JSON.parse(JSON.stringify(a));y.ConnectionId=(0,r.u)(),y.label="结束处理",y.PageSourceId=c,y.PageTargetId=h,t.push(y);var w=JSON.parse(JSON.stringify(n.Lq));w.id=y.ConnectionId,w.name=y.label,w.pathType=4,e.pathObj.push(w),e.process.chartData=JSON.stringify({domHtml:e.process.chartData.domHtml,connects:t}),e.$vnode.context.$refs["siderefs"].selectedItemType="ptjd";var _=e.$vnode.context.$refs["siderefs"].$el.querySelector(".selected");o(_).hasClass("ptjd")||(o(_).removeClass("selected"),o(e.$vnode.context.$refs["siderefs"].$el.querySelector(".ptjd").querySelector(".jd-item")).addClass("selected"))},l.setUdmChartdata=function(e,t){t=JSON.parse(t);var i=t.udmNodes;if(i&&0!==i.length){for(var o=function(t){i[t].name?(i[t].id=(0,r.u)(),i[t].nextPaths&&"dfzjd"!==i[t].name&&i[t].nextPaths.forEach((function(n,o){n.pathNextTns&&n.pathNextTns.split("、").length>1&&(i.splice(++t,0,{id:(0,r.u)(),name:"dfzjd",processId:e.process.id,nextPaths:[{pathName:"多分支",pathNextTns:n.pathNextTns}]}),n.pathNextTns="dfzjd")}))):i.splice(t--,1),l=t},l=0;l<i.length;l++)o(l);var d=[];e.process.chartData={domHtml:[]},a.processId=e.process.id,n.Lq.processId=e.process.id;var c=(0,r.u)(),u=JSON.parse(JSON.stringify(s.start)).domH.replace('id=""','id="'+c+'"');e.process.chartData.domHtml.push({domH:r.o.encode(u)});var f=JSON.parse(JSON.stringify(n.EP));f.name="start",f.id=c,f.processId=e.process.id,f.nodeNo="start",e.wflow.nodes.push(f);var p=(0,r.u)(),h=0;i.forEach((function(t,o){if(0===o){var l=JSON.parse(JSON.stringify(a));l.ConnectionId=(0,r.u)(),l.PageSourceId=c,l.PageTargetId=t.id,d.push(l)}else if(1===o||-1!==t.name.indexOf("审核")){var u=JSON.parse(JSON.stringify(a));u.ConnectionId=(0,r.u)(),u.label="退回",u.PageSourceId=t.id,u.PageTargetId=i[0].id,u.firstEndpoints=[0,.5,-1,0],u.secondEndpoints=[0,.5,-1,0],u.linesCount=3,u.pathMinX=-53-50*o,d.push(u);var f=JSON.parse(JSON.stringify(n.Lq));f.id=u.ConnectionId,f.name=u.label,f.pathType=3,f.pathNo=90,e.pathObj.push(f)}if(o+1===i.length){var m=JSON.parse(JSON.stringify(a));m.ConnectionId=(0,r.u)(),m.label="结束处理",m.PageSourceId=t.id,m.PageTargetId=p,d.push(m);var b=JSON.parse(JSON.stringify(n.Lq));b.id=m.ConnectionId,b.name=m.label,b.pathType=4,e.pathObj.push(b)}var v=!1;if(t.nextPaths&&t.nextPaths.forEach((function(s,l){if(s.pathName)if(v=!0,s.pathNextTns)s.pathNextTns=s.pathNextTns.replace("、",","),i.forEach((function(i,c){if(-1!==(s.pathNextTns+",").indexOf(i.name+",")){"多分支"===s.pathName&&(s.pathName="");var u=JSON.parse(JSON.stringify(a));u.ConnectionId=(0,r.u)(),u.label=s.pathName,u.PageSourceId=t.id,u.PageTargetId=i.id,c-o>1&&"dfzjd"!==t.name&&(u.firstEndpoints=[1,.5,1,0],u.secondEndpoints=[1,.5,1,0],u.linesCount=3,u.pathMaxX=103+50*o),d.push(u);var f=JSON.parse(JSON.stringify(n.Lq));f.id=u.ConnectionId,f.name=u.label,f.pathNo=10*(l+1),e.pathObj.push(f)}}));else{var c=JSON.parse(JSON.stringify(a));c.ConnectionId=(0,r.u)(),c.label=s.pathName,c.PageSourceId=t.id,c.PageTargetId=p,d.push(c);var u=JSON.parse(JSON.stringify(n.Lq));u.id=c.ConnectionId,u.name=c.label,u.pathType=4,e.pathObj.push(u)}})),!v&&o+1<i.length){var g=JSON.parse(JSON.stringify(a));g.ConnectionId=(0,r.u)(),g.label="送"+i[o+1].name,g.PageSourceId=t.id,g.PageTargetId=i[o+1].id,d.push(g);var y=JSON.parse(JSON.stringify(n.Lq));y.id=g.ConnectionId,y.name=g.label,e.pathObj.push(y)}var w=100+180*(o+1-h),_=430,x="";o>1&&"dfzjd"===i[o-1].name&&i[o-1].nextPaths.length>0?(h+=1,x=i[o-1].nextPaths[0].pathNextTns):o>2&&"dfzjd"===i[o-2].name?x=i[o-2].nextPaths[0].pathNextTns:o>3&&"dfzjd"===i[o-3].name?x=i[o-3].nextPaths[0].pathNextTns:o>4&&"dfzjd"===i[o-4].name&&(x=i[o-4].nextPaths[0].pathNextTns),x&&(x=x.replace("、",",").split(","),2===x.length?0===x.indexOf(t.name)?_-=140:_+=140:3===x.length?0===x.indexOf(t.name)?_-=200:2===x.indexOf(t.name)&&(_+=200):4===x.length&&(0===x.indexOf(t.name)?_-=280:0===x.indexOf(t.name)?_-=120:0===x.indexOf(t.name)?_+=120:_+=280));var k="";"dfzjd"===t.name?(_=470,k=s.dfzjd.domH):-1!==t.name.indexOf("阅")?k=JSON.parse(JSON.stringify(s.ywjd)).domH.replace("<p>多人阅文</p>","<p>"+t.name+"</p>"):0!==t.todoMode&&t.todoMode?1===t.todoMode?k=JSON.parse(JSON.stringify(s.drbx)).domH.replace("<p>多人并行</p>","<p>"+t.name+"</p>"):2===t.todoMode?k=JSON.parse(JSON.stringify(s.hqjd)).domH.replace("<p>多人会签</p>","<p>"+t.name+"</p>"):3===t.todoMode?k=JSON.parse(JSON.stringify(s.drcx)).domH.replace("<p>多人串行</p>","<p>"+t.name+"</p>"):4===t.todoMode&&(k=JSON.parse(JSON.stringify(s.jzjd)).domH.replace("<p>多人竞争</p>","<p>"+t.name+"</p>")):k=JSON.parse(JSON.stringify(s.ptjd)).domH.replace("<p>普通节点</p>","<p>"+t.name+"</p>"),k=k.replace('style=""','style="left: '+_+"px; top: "+w+'px;"').replace('id=""','id="'+t.id+'"'),e.process.chartData.domHtml.push({domH:r.o.encode(k)});var S=JSON.parse(JSON.stringify(n.EP));S.id=t.id,S.name=t.name,S.selectType=parseInt(t.selectType),S.orgLevel=t.orgLevel,S.orgStaffType=t.orgStaffType,S.orgStaffFilterType=t.orgStaffFilterType,S.nodeNo=5*(o+2),S.todoType=0,-1!==S.name.indexOf("阅")?S.nodeType=3:(S.nodeType=1,e.ideaLabels.forEach((function(e){t.ideaLabel===e.name&&(S.ideaLabelId=e.id)}))),0===o||-1!==S.name.indexOf("审核")?S.isDocEditable=1:S.isDocEditable=0,S.description="",S.processId=e.process.id,0===S.selectType&&1===S.orgStaffFilterType?e.nodeFieldValueFn("nodeFieldValue",S.id,t.userIds,t.userNames):1===S.selectType?e.nodeFieldValueFn("workgroup",S.id,t.userIds,t.userNames):2===S.selectType?i.forEach((function(e,i){e.name===t.userNames&&(S.historyNodeId=e.id)})):3===S.selectType?e.nodeFieldValueFn("orgStaff",S.id,t.userIds,t.userNames):7===S.selectType?e.nodeFieldValueFn("jobPosition",S.id,t.userIds,t.userNames):8===S.selectType&&e.nodeFieldValueFn("userrole",S.id,t.userIds,t.userNames),e.wflow.nodes.push(S)}));var m=JSON.parse(JSON.stringify(s.jslc)).domH.replace('id=""','id="'+p+'"'),b=100+180*(i.length+1-h);m=m.replace('style=""','style="left: 470px; top: '+b+'px;"'),e.process.chartData.domHtml.push({domH:r.o.encode(m)});var v=JSON.parse(JSON.stringify(n.EP));v.name="jslc",v.id=p,v.processId=e.process.id,v.nodeNo="jslc",e.wflow.nodes.push(v),e.process.chartData=JSON.stringify({domHtml:e.process.chartData.domHtml,connects:d})}},l.ComparePath=function(){var e=document.querySelector(".center-container").scrollWidth,t=document.querySelector(".center-container").clientWidth;e>t&&o("#center").width(e+50);var i=document.querySelector(".center-container").scrollHeight,n=document.querySelector(".center-container").clientHeight;i>n?o("#center").height(i+50):o("#center").height(n);var r=0,a=0;document.querySelector(".center-container").childNodes.forEach((function(e){e.offsetLeft<r&&(r=e.offsetLeft),e.offsetTop<a&&(a=e.offsetTop)})),(r<0||a<112)&&(document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&(r<0?o("#"+e.id).css("left",parseInt(o("#"+e.id).css("left"))+-1*r+50+"px"):a<0&&o("#"+e.id).css("top",parseInt(o("#"+e.id).css("top"))+-1*a+50+"px"))})),jsPlumb.repaintEverything())},l.AddAnchor=function(e,t){o(".process").bind("dblclick",(function(i){var n=i.currentTarget.classList;o.inArray("jcjd",n);var r,a,s,l,d=i.pageX,c=i.pageY,u=o("#"+i.currentTarget.id).offset().top,f=o("#"+i.currentTarget.id).offset().left,p=o("#"+i.currentTarget.id).width(),h=o("#"+i.currentTarget.id).height(),m=!1;c-u<=5||d-f<=5?d-f<=5?d-f<=c-u?(r=0,a=parseFloat((c-u)/h),s=-1,l=0,m=!0):(a=0,r=parseFloat((d-f)/p),s=0,l=-1,m=!0):p-(d-f)<=c-u?(r=1,a=parseFloat((c-u)/h),s=1,l=0,m=!0):(a=0,r=parseFloat((d-f)/p),s=0,l=-1,m=!0):(u+h-c<=5||f+p-d<=5)&&(d-f<=p/2?h-(c-u)<=d-f?(r=parseFloat((d-f)/p),a=1,s=0,l=1,m=!0):(r=0,a=parseFloat((c-u)/h),s=-1,l=0,m=!0):h-(c-u)<=p-(d-f)?(r=parseFloat((d-f)/p),a=1,s=0,l=1,m=!0):(r=1,a=parseFloat((c-u)/h),s=1,l=0,m=!0)),m?jsPlumb.addEndpoint(i.currentTarget.id,{anchor:[r,a,s,l],uuid:jsPlumbUtil.uuid()},t):e.curNodeDbclick&&e.curNodeDbclick(i.currentTarget.id)})),l.bindName=function(e,t){o("#"+e).hasClass("jcjd")?o("#"+e).html(t):o("#"+e).find("p").html(t)},l.changeNodeType=function(e,t,i,n){switch(o("#"+t).removeClass("ptjd"),o("#"+t).removeClass("ywjd"),o("#"+t).removeClass("drbx"),o("#"+t).removeClass("hqjd"),o("#"+t).removeClass("drcx"),o("#"+t).removeClass("jzjd"),i){case 0:"start"!==n.nodeNo&&(1===n.nodeType?(o("#"+t).addClass("process model_process ptjd"),o("#"+t).find("img").attr("src",e.ptjd),o("#"+t).find("span").html("普通节点")):(o("#"+t).addClass("process model_process ywjd"),o("#"+t).find("img").attr("src",e.ywjd),o("#"+t).find("span").html("阅文节点")));break;case 1:o("#"+t).addClass("process model_process drbx"),o("#"+t).find("img").attr("src",e.drbx),o("#"+t).find("span").html("多人并行");break;case 2:o("#"+t).addClass("process model_process hqjd"),o("#"+t).find("img").attr("src",e.hqjd),o("#"+t).find("span").html("会签节点");break;case 3:o("#"+t).addClass("process model_process drcx"),o("#"+t).find("img").attr("src",e.drcx),o("#"+t).find("span").html("多人串行");break;case 4:case 5:case 6:o("#"+t).addClass("process model_process jzjd"),o("#"+t).find("img").attr("src",e.jzjd),o("#"+t).find("span").html("竞争节点");break}}}},15880:function(e,t,i){"use strict";i.r(t),i.d(t,{MoveSelectDiv:function(){return w},RegionSelect:function(){return g},SelectAlignCenter:function(){return S},SelectAlignLeft:function(){return k},SelectAlignMean:function(){return T},SelectAlignMiddle:function(){return N},SelectAlignTop:function(){return M},SelectMeanCenter:function(){return C},addNodeBtnClick:function(){return E},getSelectedRegions:function(){return y},resetLocation:function(){return x},scissorsLineAndRelocation:function(){return O},showAddNodeBtn:function(){return D},showProcessDesc:function(){return I},startMove:function(){return _}});var n=i(74692),r=i.n(n),o=i(16473),a=i(83375),s=i(2962),l=window.jsPlumb,d=i(62685),c=d.dragAddNode;function u(e){return e.all?e.all:e.getElementsByTagName("*")}function f(e,t,i){i=i||document,window.attachEvent&&i.attachEvent("on"+e,t),window.addEventListener&&i.addEventListener(e,t,!1)}function p(e){e=e||window.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1}function h(e,t){e=e||window.event;var i=document.getElementById(t),n=m(i,i.offsetLeft),r=b(i,i.offsetTop),o=document.querySelector(".center-container").parentElement.parentElement,a=e.pageX||e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),s=e.clientY+o.scrollTop-106;return{x:a-n,y:s-r}}function m(e,t){return e.parentElement&&(t+=e.parentElement.offsetLeft,t=m(e.parentElement,t)),t}function b(e,t){return t}Array.prototype.remove=function(e){for(var t=0;t<this.length;t++)if(e==this[t])break;if(t!=this.length){for(var i=t;i<this.length-1;i++)this[i]=this[i+1];this.length--}},String.prototype.replaceAll=function(e,t){var i=new RegExp(e,"g");return this.replace(i,t)},document.getElementsBySelector=function(e){if(!document.getElementsByTagName)return new Array;for(var t=e.split(" "),i=new Array(document),n=0;n<t.length;n++){var r=t[n].replace(/^\s+/,"").replace(/\s+$/,"");if(r.indexOf("#")>-1){var o=r.split("#"),a=o[0],s=o[1],l=document.getElementById(s);if(a&&l.nodeName.toLowerCase()!=a)return new Array;i=new Array(l)}else if(r.indexOf(".")>-1&&null!==i[0]){o=r.split("."),a=o[0];var d=o[1];a||(a="*");for(var c=new Array,f=0,p=0;p<i.length;p++){_="*"==a?u(i[p]):i[p].getElementsByTagName(a);for(var h=0;h<_.length;h++)c[f++]=_[h]}i=new Array;for(var m=0,b=0;b<c.length;b++)c[b].className&&c[b].className.match(new RegExp("\\b"+d+"\\b"))&&(i[m++]=c[b])}else if(r.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){a=RegExp.$1;var v=RegExp.$2,g=RegExp.$3,y=RegExp.$4;a||(a="*");for(c=new Array,f=0,p=0;p<i.length;p++){_="*"==a?u(i[p]):i[p].getElementsByTagName(a);for(h=0;h<_.length;h++)c[f++]=_[h]}i=new Array;var w;m=0;switch(g){case"=":w=function(e){return e.getAttribute(v)==y};break;case"~":w=function(e){return e.getAttribute(v).match(new RegExp("\\b"+y+"\\b"))};break;case"|":w=function(e){return e.getAttribute(v).match(new RegExp("^"+y+"-?"))};break;case"^":w=function(e){return 0==e.getAttribute(v).indexOf(y)};break;case"$":w=function(e){return e.getAttribute(v).lastIndexOf(y)==e.getAttribute(v).length-y.length};break;case"*":w=function(e){return e.getAttribute(v).indexOf(y)>-1};break;default:w=function(e){return e.getAttribute(v)}}i=new Array;for(m=0,b=0;b<c.length;b++)w(c[b])&&(i[m++]=c[b])}else{a=r;c=new Array;if(null!==i[0])for(f=0,p=0;p<i.length;p++){var _=i[p].getElementsByTagName(a);for(h=0;h<_.length;h++)c[f++]=_[h]}i=c}}return i};var v=[];function g(e){this.regions=[],this.selProp=e,this.InitRegions(e),this.selectedClass=e["selectedClass"],this.selectedRegion=[],this.selectDiv=null,this.startX=null,this.startY=null,this.parentId=e["parentId"]}function y(){return v}function w(e,t,i){for(var n=y(),o=t.position.left-t.originalPosition.left,a=t.position.top-t.originalPosition.top,s=0;s<n.length;s++)if(n[s].parentNode&&document.getElementById(i)){if(n[s].parentNode.id!==document.getElementById(i).parentNode.id)continue;var l=parseInt(r()(n[s]).attr("bLeft")),d=parseInt(r()(n[s]).attr("bTop"));r()(n[s]).css("left",l+o+"px"),r()(n[s]).css("top",d+a+"px")}}function _(){for(var e=y(),t=0;t<e.length;t++)r()(e[t]).attr("bLeft",r()(e[t]).position().left),r()(e[t]).attr("bTop",r()(e[t]).position().top)}function x(e,t){var i=10*Math.round(e.position.left/10),n=10*Math.round(e.position.top/10);r()("#"+t).css("left",i+"px"),r()("#"+t).css("top",n+"px")}function k(){for(var e=y(),t=0,i="",n=0;n<e.length;n++)""===i&&(i=e[n].parentNode.id),i===e[n].parentNode.id&&(r()(e[n]).position().left<t||0===t)&&(t=r()(e[n]).position().left);for(var o=0;o<e.length;o++)i===e[o].parentNode.id&&r()(e[o]).css("left",t+"px");l.repaintEverything()}function S(){for(var e=y(),t=0,i="",n=0;n<e.length;n++)""===i&&(i=e[n].parentNode.id),i===e[n].parentNode.id&&(r()(e[n]).position().left<t||0===t)&&(t=r()(e[n]).position().left+parseInt(L(e[n],"width"))/2);for(var o=0;o<e.length;o++)i===e[o].parentNode.id&&r()(e[o]).css("left",t-parseInt(L(e[o],"width"))/2+"px");l.repaintEverything()}function T(){var e=y();if(e.length<=2)alert("请选择至少三个个模型节点");else{for(var t=e[0].offsetTop,i=e[0].offsetTop,n=e[0].offsetHeight,o=(e[0].offsetHeight,0),a=0,s=0;s<e.length;s++)e[s].offsetTop<t&&(t=e[s].offsetTop,n=e[s].offsetHeight),e[s].offsetTop>i&&(i=e[s].offsetTop,e[s].offsetHeight);for(var d=i-(t+n),c=0;c<e.length;c++)e[c].offsetTop!=t&&e[c].offsetTop!=i&&(o+=e[c].offsetHeight);for(var u=0;u<e.length;u++)if(e[u].offsetTop!=t&&e[u].offsetTop!=i){var f=(d-o)/(e.length-1),p=f+n+t+a*e[u].offsetHeight+a*f;r()(e[u]).css("top",p),a++}l.repaintEverything()}}function C(){var e=y();if(e.length<=2)alert("请选择至少三个模型节点");else{for(var t=e[0].offsetLeft,i=e[0].offsetLeft,n=e[0].offsetWidth,o=(e[0].offsetWidth,0),a=0,s=0;s<e.length;s++)e[s].offsetLeft<t&&(t=e[s].offsetLeft,n=e[s].offsetWidth),e[s].offsetLeft>i&&(i=e[s].offsetLeft,e[s].offsetWidth);for(var d=i-(t+n),c=0;c<e.length;c++)e[c].offsetLeft!=t&&e[c].offsetLeft!=i&&(o+=e[c].offsetWidth);for(var u=0;u<e.length;u++)if(e[u].offsetLeft!=t&&e[u].offsetLeft!=i){var f=(d-o)/(e.length-1),p=f+n+t+a*e[u].offsetWidth+a*f;r()(e[u]).css("left",p),a++}l.repaintEverything()}}function M(){for(var e=y(),t=0,i="",n=0;n<e.length;n++)""===i&&(i=e[n].parentNode.id),i===e[n].parentNode.id&&(r()(e[n]).position().top<t||0===t)&&(t=r()(e[n]).position().top);for(var o=0;o<e.length;o++)i===e[o].parentNode.id&&r()(e[o]).css("top",t+"px");l.repaintEverything()}function N(){for(var e=y(),t=0,i="",n=0;n<e.length;n++)""===i&&(i=e[n].parentNode.id),i===e[n].parentNode.id&&(r()(e[n]).position().top+parseInt(L(e[n],"height"))/2<t||0===t)&&(t=r()(e[n]).position().top+parseInt(L(e[n],"height"))/2);for(var o=0;o<e.length;o++)i===e[o].parentNode.id&&r()(e[o]).css("top",t-parseInt(L(e[o],"height"))/2+"px");l.repaintEverything()}function L(e,t){return e.currentStyle?e.currentStyle[t]:getComputedStyle(e,!1)[t]}g.prototype.InitRegions=function(){var e=this;e.regions=[];var t=document.getElementsBySelector(e.selProp["region"]),i=!0;if(t&&t.length>0)for(var n=0;n<t.length;n++)t[n].onmousedown=function(){i=!1;var n=window.event||arguments[0];n.shiftKey||n.ctrlKey?-1==this.className.indexOf(e.selectedClass)?(this.className+=" "+e.selectedClass,v.push(this)):(this.className=this.className.replaceAll(e.selectedClass,""),v.remove(this)):-1===r().inArray(this,v)&&(e.clearSelections(t),this.className+=" "+e.selectedClass,v=[],v.push(this)),p(n)},this.regions.push(t[n]);i&&(e.clearSelections(t),v=[])},g.prototype.select=function(){var e=this,t=e.parentId,i=[0,0],n=[0,0];document.getElementById(t)&&(f("mousedown",(function(){var r=window.event||arguments[0],o=r.buttons||r.button;if((void 0==r.target||r.target.id===t)&&(void 0==r.srcElement||r.srcElement.id===t)){if(void 0==r.buttons&&0==o&&e.onBeforeSelect(r,t),1===o&&e.onBeforeSelect(r,t),2===o){i=[r.clientX,r.clientY];var a=parseInt(L(document.getElementById(t),"left")),s=parseInt(L(document.getElementById(t),"top"));n=[a,s],document.getElementById(t).style.cursor="move"}p(r)}}),document),f("mousemove",(function(){var o=window.event||arguments[0],a=o.buttons||o.button;if(void 0==o.buttons&&0==a&&e.onSelect(o,t),1===a&&e.onSelect(o,t),2===a){var s=n[0]+o.clientX-i[0],l=n[1]+o.clientY-i[1];s>=0&&(s=0),l>=0&&(l=0),r()("#"+t).css("left",s+"px"),r()("#"+t).css("top",l+"px")}p(o)}),document),f("mouseup",(function(){var t=window.event||arguments[0];t.buttons||t.button;t.buttons,e.onEnd()}),document))},g.prototype.onBeforeSelect=function(e,t){var i=this;i.InitRegions(i.selProp),document.getElementById("selContainer")?this.selectDiv=document.getElementById("selContainer"):(this.selectDiv=document.createElement("div"),this.selectDiv.style.cssText="position:absolute;width:0px;height:0px;font-size:0px;margin:0px;padding:0px;border:1px dashed #0099FF;background-color:#C3D5ED;z-index:1000;filter:alpha(opacity:60);opacity:0.6;display:none;",this.selectDiv.id="selContainer",document.getElementById(t).appendChild(this.selectDiv)),this.startX=h(e,t).x,this.startY=h(e,t).y,this.isSelect=!0},g.prototype.onSelect=function(e,t){var i=this;if(i.isSelect){"none"==i.selectDiv.style.display&&(i.selectDiv.style.display="");var n=h(e,t).x,r=h(e,t).y;i.selectDiv.style.left=Math.min(n,this.startX)+"px",i.selectDiv.style.top=Math.min(r,this.startY)+"px",i.selectDiv.style.width=Math.abs(n-this.startX)+"px",i.selectDiv.style.height=Math.abs(r-this.startY)+"px";for(var o=i.regions,a=0;a<o.length;a++)if(i.selectDiv.parentNode.id===o[a].parentNode.id){var s=o[a],l=i.innerRegion(i.selectDiv,s);l&&-1==s.className.indexOf(i.selectedClass)?(s.className=s.className+" "+i.selectedClass,v.push(s)):l||-1==s.className.indexOf(i.selectedClass)||(s.className=s.className.replaceAll(i.selectedClass,""),v.remove(s))}}},g.prototype.onEnd=function(){var e=this;e.selectDiv&&(e.selectDiv.style.display="none"),this.isSelect=!1},g.prototype.innerRegion=function(e,t){var i=parseInt(e.style.top),n=parseInt(e.style.left),r=n+parseInt(e.offsetWidth),o=i+parseInt(e.offsetHeight),a=parseInt(t.offsetTop),s=parseInt(t.offsetLeft),l=s+parseInt(t.offsetWidth),d=a+parseInt(t.offsetHeight),c=Math.max(i,a),u=Math.min(r,l),f=Math.min(o,d),p=Math.max(n,s);return f>c+5&&u>p+5?t:null},g.prototype.clearSelections=function(e){for(var t=0;t<e.length;t++)e[t].className=e[t].className.replaceAll(this.selectedClass,"")};var I=function(e,t,i,n,o){var a=document.querySelector(".process-desc-container");null!==a&&(a.style.display="",t=a.clientHeight,i=a.offsetLeft,n=a.offsetTop,e=a.querySelector(".el-textarea__inner").value,a.remove()),a=document.createElement("div"),a.className="process-desc-container",a.style.top=n+"px",a.style.left=i+"px",a.style.position="relative",a.style.zIndex=1001,a.style.display=o||"",document.querySelector("#center").appendChild(a);var s="";-1===location.href.indexOf("designer/workflow")&&(s='readonly style="resize:none;"'),a.innerHTML="<div class='label'><span>流程说明</span><img class='process-desc-close' src='/images/w-imgs/definition/menu/close.png'></div><div class='content'><textarea class='el-textarea__inner' "+s+" rows=5></textarea></div>",a.querySelector("textarea").value=e,a.querySelector("textarea").style.height=t-30+"px",r()(".process-desc-container").draggable({containment:"#center",grid:[10,10],handle:".label",scope:"desc"}),r()(".process-desc-close").click((function(){document.querySelector(".process-desc-container").style.display="none"}))},D=function(e,t,i,n){var r=e.$vnode.context.$refs["siderefs"]?e.$vnode.context.$refs["siderefs"].selectedItemType:"ptjd";if(r&&"line"!==r){var o=i.parentElement.parentElement,a=document.querySelector(".add-node-btn");a.style.top=o.style.top,a.style.left=o.style.left,a.style.display="block",a.curConn=t,a.selectedItemType=r}},E=function(e,t,i){var n=i.curConn,l={top:n.element.offsetTop+102,left:n.element.offsetLeft+210};e.$vnode.context.$refs["siderefs"]||(l.left+=-210,l.top+=-30);var d={ConnectionId:"",PageSourceId:"",PageTargetId:"",uuid:[null,null],label:"",firstEndpoints:[.5,1,0,1],secondEndpoints:[.5,0,0,-1],type:"Flowchart",pathMinX:0,pathMaxX:0,pathMinY:2.5,pathMaxY:88,linesCount:1},u=[0,0];0===n.anchor.x?(console.log("当前节点左侧添加新节点"),l.left+=-240,d.firstEndpoints=[n.anchor.x,n.anchor.y,-1,0],d.secondEndpoints=[1,.5,0,0]):1===n.anchor.x?(console.log("当前节点右侧添加新节点"),l.left+=280,d.firstEndpoints=[n.anchor.x,n.anchor.y,-1,0],d.secondEndpoints=[0,.5,0,0]):0===n.anchor.y?(console.log("当前节点上方添加新节点"),l.left+=20,l.top+=-180,d.firstEndpoints=[n.anchor.x,n.anchor.y,-1,0],d.secondEndpoints=[.5,1,0,0]):(console.log("当前节点下方添加新节点"),l.left+=20,l.top+=180,d.firstEndpoints=[n.anchor.x,n.anchor.y,-1,0],d.secondEndpoints=[.5,0,0,0]);var f=null;f=document.querySelector("#center-scrollbar")?document.querySelector("#center-scrollbar").querySelector(".el-scrollbar__wrap"):document.querySelector("#wfNodelogList").parentElement.parentElement;var p=f.scrollTop,h=f.scrollLeft;l.top+=-p,l.left+=-h;var m=r()("#"+n.elementId);0===n.anchor.x||1===n.anchor.x?m.hasClass("ptjd")||m.hasClass("jzjd")||m.hasClass("drbx")||m.hasClass("drcx")||m.hasClass("hqjd")||m.hasClass("ywjd")||(l.top+=-10):0!==n.anchor.y&&1!==n.anchor.y||m.hasClass("ptjd")||m.hasClass("jzjd")||m.hasClass("drbx")||m.hasClass("drcx")||m.hasClass("hqjd")||m.hasClass("ywjd")||m.hasClass("jcjd")||(l.left+=-40),"ptjd"!==i.selectedItemType&&"jzjd"!==i.selectedItemType&&"drbx"!==i.selectedItemType&&"drcx"!==i.selectedItemType&&"hqjd"!==i.selectedItemType&&"ywjd"!==i.selectedItemType&&"jcjd"!==i.selectedItemType?0===n.anchor.x||1===n.anchor.x?(l.top+=10,0===n.anchor.x&&(l.left+=60)):0!==n.anchor.y&&1!==n.anchor.y||0===n.anchor.y&&(l.top+=20):"jcjd"!==i.selectedItemType||0!==n.anchor.x&&1!==n.anchor.x||(l.top+=10);var b=null;b=e.$vnode.context.$refs["siderefs"]?e.$vnode.context.$refs["siderefs"].$el.querySelector("."+i.selectedItemType):document.querySelector(".ptjd");var v={position:l};v.offset=v.position,v.draggable=b,v.helper=b;var g=c(t,v,e,o.EP);if(0===n.connections.length){var y=JSON.parse(JSON.stringify(d));y.ConnectionId=(0,s.u)(),y.PageSourceId=n.elementId,y.PageTargetId=g;var w=[y.firstEndpoints,y.secondEndpoints],_=[y.type,{stub:u,gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}];(0,a.Nc)(y,_,w)}else O(e,n.connections[0],g);e.wfInstance&&e.curNodeDbclick&&e.curNodeDbclick(g,n.elementId)},O=function(e,t,i){var n=t.getLabel(),o=t.sourceId,d=["Flowchart",{stub:[50,50],gap:5,cornerRadius:5,alwaysRespectStubs:!1,midpoint:.5}],c=[parseFloat(t.endpoints[0].anchor.x),parseFloat(t.endpoints[0].anchor.y),t.endpoints[0].anchor.orientation[0],t.endpoints[0].anchor.orientation[1]],u=[parseFloat(t.endpoints[1].anchor.x),parseFloat(t.endpoints[1].anchor.y),t.endpoints[1].anchor.orientation[0],t.endpoints[1].anchor.orientation[1]],f=[c,u],p=parseInt(r()("#"+t.sourceId).css("top")),h=parseInt(r()("#"+i).css("top")),m=parseInt(r()("#"+t.targetId).css("top")),b=0;1==c[1]&&0==u[1]?(b=h-p-80-120,b<0&&(r()("#"+i).css("top",h+-1*b),h=parseInt(r()("#"+i).css("top"))),b=m-h-80-120,document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&b<0&&(e.id==t.targetId||h<parseInt(r()(e).css("top")))&&r()("#"+e.id).css("top",parseInt(r()("#"+e.id).css("top"))+-1*b+"px")}))):0==c[1]&&1==u[1]&&(b=p-h-80-120,b<0&&(r()("#"+i).css("top",h+b),h=parseInt(r()("#"+i).css("top"))),b=h-m-80-120,document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&b<0&&(e.id==t.targetId||h>parseInt(r()(e).css("top")))&&r()("#"+e.id).css("top",parseInt(r()("#"+e.id).css("top"))+b+"px")})));var v=parseInt(r()("#"+t.sourceId).css("left")),g=parseInt(r()("#"+i).css("left")),y=parseInt(r()("#"+t.targetId).css("left")),w=0;1==c[0]&&0==u[0]?(w=g-v-140-120,w<0&&(r()("#"+i).css("left",g+-1*w),g=parseInt(r()("#"+i).css("left"))),w=y-g-140-120,document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&w<0&&(e.id==t.targetId||g<parseInt(r()(e).css("left")))&&r()("#"+e.id).css("left",parseInt(r()("#"+e.id).css("left"))+-1*w+"px")}))):0==c[0]&&1==c[0]&&(w=v-g-140-120,w<0&&(r()("#"+i).css("left",g+w),g=parseInt(r()("#"+i).css("left"))),w=g-y-140-120,document.querySelector(".center-container").childNodes.forEach((function(e){"DIV"===e.tagName&&e.id&&w<0&&(e.id==t.targetId||g>parseInt(r()(e).css("left")))&&r()("#"+e.id).css("left",parseInt(r()("#"+e.id).css("left"))+w+"px")}))),l.deleteConnection(t);for(var _=0;_<e.wflow.paths.length;_++)t.id===e.wflow.paths[_].id&&e.wflow.paths.splice(_--,1);t.sourceId=i;var x=(0,a.Nc)(t,d,f);x.setLabel({label:n||" ",cssClass:"line_text",location:t.labelLocation||.5}),t.sourceId=o,t.targetId=i,t.id=(0,s.u)();var k=(0,a.Nc)(t,d,f);k.setLabel({label:"",cssClass:"line_text",location:t.labelLocation||.5})}},16473:function(e,t,i){"use strict";i.d(t,{EP:function(){return r},Lq:function(){return o},eR:function(){return n},oW:function(){return a}});var n={process:{chartData:"",codeRule:"",commonIdea:"",creatPersonId:"",createTime:"",creator:"",description:"",id:"",name:"",orgCode:"",orgName:"",processNo:"",processType:"",status:1,sysCode:"",sysName:"",version:"",workFormM:"",workFormW:""},nodes:[],nextNodes:[],paths:[],ideaLabels:[],nodeFieldValues:[],pathFieldValues:[],operations:[]},r={status:-1,autoProcess:0,addStaffType:0,assistStaffType:0,attachEditable:"",formFieldEditable:0,autoexecClassPath:"",dccodeType:"",decisionClassPath:"",decisionFormula:"",description:"",jobStaffFilterType:0,jobStaffFilterTypeAdd:0,jobStaffFilterTypeAssist:0,groupStaffFilterType:0,groupStaffFilterTypeAdd:0,groupStaffFilterTypeAssist:0,groupStaffGroupType:0,groupStaffGroupTypeAdd:0,groupStaffGroupTypeAssist:0,historyNodeId:null,historyNodeIdAdd:"",id:"",ideaFillType:1,ideaLabelId:null,ideaSaveType:0,ideaSignType:0,ideaShowScope:0,isAutoSendRead:0,isAutoCheckedAll:0,isDocEditable:1,isIdeaHighlight:1,isOrgOnlyPerson:1,isOrgOnlyPersonAdd:1,isTimeLimitEditable:1,name:"",needWaitNodeId:"",nodeNo:0,nodeType:1,orgLevel:2,orgLevelAdd:1,orgLevelAssist:2,orgStaffType:1,orgStaffFilterType:2,orgStaffTypeAdd:0,orgStaffTypeAssist:3,processId:"",processType:0,selectType:0,selectTypeAdd:0,selectTypeAssist:0,serial:"",specialClassPath:"",specialClassPathAdd:"",staffFilterType:0,staffFilterTypeAdd:"",timeLimitBeforeNotice:0,timeLimitDay:0,timeLimitHour:0,timeLimitScope:0,timeLimitType:9,todoType:0,webFormFieldName:"",webFormFieldNameAdd:"",workFormM:"",workFormW:"",nodeFormFields:[]},o={id:"",status:-1,ctrlType:0,customClassPath:"",decisionResult:"",description:"",evtCompletePercent:0,evtMessageCode:"",name:"",orgFilterType:0,orgLevel:0,orgStaffType:0,pathNo:"",pathType:0,pathUseType:1,preNodeId:null,processId:"",serial:"",taskCompletePercent:0,webFormFieldExp:""},a=[{id:1,imgSrc:"/images/w-imgs/definition/center/c_start.png",title:"开始",text:"",associated:"start",resize:0,domJoin:1,type:1,name:"start",nodeNo:"start",nodeType:0},{id:8,imgSrc:"/images/w-imgs/definition/center/c_jsrw.png",title:"结束任务",text:"部门领导审批",associated:"jsrw",resize:0,domJoin:4,type:8,name:"jsrw",nodeNo:"jsrw",nodeType:9},{id:9,imgSrc:"/images/w-imgs/definition/center/c_jslc.png",title:"结束流程",text:"部门领导审批",associated:"jslc",resize:0,domJoin:4,type:9,name:"jslc",nodeNo:"jslc",nodeType:9},{id:2,imgSrc:"/images/w-imgs/definition/center/c_ptjd.png",title:"普通节点",text:"",associated:"ptjd",resize:1,domJoin:4,type:2,nodeType:1,processType:0},{id:3,imgSrc:"/images/w-imgs/definition/center/c_jzjd.png",title:"竞争节点",text:"部门领导审批",associated:"jzjd",resize:1,domJoin:4,type:3,nodeType:1,processType:4},{id:4,imgSrc:"/images/w-imgs/definition/center/c_drbx.png",title:"多人并行",text:"部门领导审批",associated:"drbx",resize:1,domJoin:4,type:4,nodeType:1,processType:1},{id:5,imgSrc:"/images/w-imgs/definition/center/c_drcx.png",title:"多人串行",text:"部门领导审批",associated:"drcx",resize:1,domJoin:4,type:5,nodeType:1,processType:3},{id:6,imgSrc:"/images/w-imgs/definition/center/c_hqjd.png",title:"会签节点",text:"部门领导审批",associated:"hqjd",resize:1,domJoin:4,type:6,nodeType:1,processType:2},{id:7,imgSrc:"/images/w-imgs/definition/center/c_ywjd.png",title:"阅文节点",text:"部门领导审批",associated:"ywjd",resize:1,domJoin:4,type:7,nodeType:3,processType:8},{id:10,imgSrc:"/images/w-imgs/definition/center/c_jcjd.png",title:"决策节点",text:"部门领导审批",associated:"jcjd",resize:0,domJoin:4,type:10,nodeType:4,dccodeType:"DCCode"},{id:11,imgSrc:"/images/w-imgs/definition/center/c_zyjd.png",title:"自由节点",text:"部门领导审批",associated:"zyjd",resize:0,domJoin:4,type:11,nodeType:6,name:"zyjd",nodeNo:"zyjd"},{id:12,imgSrc:"/images/w-imgs/definition/center/c_dfzjd.png",title:"多分支节点",text:"部门领导审批",associated:"dfzjd",resize:0,domJoin:4,type:12,nodeType:8,name:"dfzjd",nodeNo:"dfzjd"},{id:13,imgSrc:"/images/w-imgs/definition/center/c_jhjd.png",title:"聚合节点",text:"部门领导审批",associated:"jhjd",resize:0,domJoin:4,type:13,nodeType:5,dccodeType:"LastWfUser"},{id:14,imgSrc:"/images/w-imgs/definition/center/c_zlc.png",title:"启动子流程",text:"",associated:"childWf",resize:0,domJoin:4,type:14,nodeType:1},{id:15,imgSrc:"/images/w-imgs/definition/center/c_plc.png",title:"返回父流程",text:"",associated:"parentWf",resize:0,domJoin:4,name:"parentWf",nodeNo:"parentWf",type:15,nodeType:7}]},33610:function(e){e.exports={wplus:{adminConsole:{copybusiformConfirm:"Are you sure you need to copy the busiform?",selectExportBusiform:"Please select the busiform that needs to export.",selectGenerateVuecodeBusiform:"Please select the busiform that requires generating Vue component code.",generateVuecodeBusiformConfirm:"Are you sure you want to generate busiform Vue component code?",generateVuecode:"GenerateVueCode",selectDatabase:"Please select database",dataTableSet:"DataTables ({folder})",pleaseSelectEntityForBusiform:"Please select a table that requires configuring busiform.",selectBusiformType:"Please select the new busiform type:",copyOrModifyBusiformConfirm:"Are you sure you need to copy the busiform?<br/>If you need to modify the busiform, please click on the table line directly.",downloadCode:"<br/>Download code:",importDataType:"Import {dataType}",ORM:"Model Mapping",noImportFileSelected:"Please select the import file.",importSelectFile:"Select {dataType} mapping configuration file",importFormatDesc:"{dataType} configuration file content format description:",importFormatTip:"1. The imported file should be a JSON format zip file exported through {dataType} configuration;",importBackupTip:"2. Before performing the import operation, please ensure that you have backed up the platform library.",copyListpageConfirm:"Are you sure you need to copy the listpage?",selectExportListpage:"Please select the listpage that needs to export.",selectGenerateVuecodeListpage:"Please select the busiform that requires generating Vue component code.",generateVuecodeListpageConfirm:"Are you sure you want to generate listpage Vue component code?",pleaseSelectEntityForListpage:"Please select a table that requires configuring listpage.",selectListpageType:"Please select the new listpage type:",copyOrModifyListpageConfirm:"Are you sure you need to copy the listpage?<br/>If you need to modify the listpage, please click on the table line directly."},entityBusiform:{fields:{frmName:"FormName",frmViewType:"Viewtype",frmViewUrl:"ViewUrl",frmViewVer:"ViewVer",vueCode:"VueCode"},options:{moduleType:{W_FLOW:"PC version blank process form",W_FLOW_ST:"PC version standard process form",M_FLOW:"Mobile version blank process form",M_FLOW_ST:"Mobile version standard process form",W_BASIC:"PC version basic form",W_OPENFORM:"PC version new page form",M_BASIC:"Mobile version basic form"}}},pageBtns:{generateVueCode:"GenerateVueCode",startImport:"Start Import"}}}},16749:function(e){e.exports={adminConsole:{copybuformConfirm:"Are you sure you need to copy the busiform?",selectDatabase:"Please select database"}}},94864:function(e){e.exports={adminConsole:{copybuformConfirm:"Are you sure you need to copy the busiform?",selectDatabase:"Please select database"}}},40366:function(e){e.exports={wplus:{adminConsole:{copybusiformConfirm:"您是否确认需要复制业务表单?",selectExportBusiform:"请选择需要导出配置的业务表单。",selectGenerateVuecodeBusiform:"请选择需要生成Vue组件代码的业务表单。",generateVuecodeBusiformConfirm:"确认要生成业务表单Vue组件代码吗?",generateVuecode:"生成Vue组件代码",selectDatabase:"请选择应用数据库",dataTableSet:"数据表集({folder})",pleaseSelectEntity:"请选择一个需要配置业务表单的表。",selectBusiformType:"请选择新增表单类型:",copyBusiformConfig:"您是否确认需要复制业务表单?<br/>如需修改业务表单请直接单击表单行。",downloadCode:"<br/>下载代码:",importDataType:"导入{dataType}",ORM:"模型映射",noImportFileSelected:"请选择导入文件。"}}}},18957:function(e,t,i){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}i.d(t,{Ai:function(){return p},Go:function(){return l},bu:function(){return b},fU:function(){return a},ge:function(){return h},iQ:function(){return c},nB:function(){return d},pe:function(){return o},r6:function(){return m},uB:function(){return s},v7:function(){return f},vy:function(){return u}});var r=i(95093);function o(e){return 0===arguments.length?null:("object"===n(e)?t=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(/-/g,"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),t=new Date(e)),t);var t}function a(e,t){var i=o(e);null===e&&(i=Date().now());var n=Date.now(),a=(n-i)/1e3;return void 0===t?a<30?"刚刚":a<3600?Math.floor(a/60)+"分钟前":a<86400?Math.floor(a/3600)+"小时前":a<172800?"1天前":i.getFullYear()<o(n).getFullYear()?i.getFullYear()+"/"+(i.getMonth()+1)+"/"+i.getDate():i.getMonth()+1+"/"+i.getDate():(t=t.replace("yyyy","YYYY").replace("dd","DD"),r(i).format(t))}function s(e){e=null==e?window.location.href:e;var t=e.substring(e.lastIndexOf("?")+1),i={},n=/([^?&=]+)=([^?&=]*)/g;return t.replace(n,(function(e,t,n){var r=decodeURIComponent(t),o=decodeURIComponent(n);return o=String(o),i[r]=o,e})),i}function l(e){if(!e&&"object"!==n(e))throw new Error("error arguments","deepClone");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(i){e[i]&&"object"===n(e[i])?t[i]=l(e[i]):t[i]=e[i]})),t}function d(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function c(e,t){d(e,t)||(e.className+=" "+t)}function u(e,t){if(d(e,t)){var i=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(i," ")}}function f(e){if(e<1024)return e+"B";if(e<1048576){var t=e/1024;return t=t.toFixed(2),t+"KB"}if(e<1073741824){var i=e/1048576;return i=i.toFixed(2),i+"MB"}var n=e/1073741824;return n=n.toFixed(2),n+"GB"}function p(e){var t=e.oriangialName||e.fileName;return t=t.substring(t.lastIndexOf(".")),".doc"===t||".docx"===t?"images/w-imgs/email/word.png":".ppt"===t||".pptx"===t?"images/w-imgs/email/ppt.png":".xls"===t||".xlsx"===t?"images/w-imgs/email/excel.png":".pdf"===t?"images/w-imgs/email/pdf.png":".txt"===t?"images/w-imgs/email/txt.png":".audio"===t||".amr"===t||".mp3"===t||".wav"===t?"images/w-imgs/email/audio.png":".video"===t||".mp4"===t||".mov"===t?"images/w-imgs/email/video.png":".zip"===t||".rar"===t?"images/w-imgs/email/zip.png":".image"===t||".mp4"===t||".jpg"===t||".jpeg"===t||".png"===t||".gif"===t||".bmp"===t||".svg"===t?"images/w-imgs/email/picture.png":" "===t?"images/w-imgs/email/none.png":"images/w-imgs/email/other.png"}function h(e){return/^(https?:|mailto:|tel:)/.test(e)}function m(e,t,i){return e.sort((function(e,n){var r=e[t],o=n[t];return"desc"===i?r>o?-1:r<o?1:0:r<o?-1:r>o?1:0}))}function b(){for(var e=[],t="0123456789abcdef",i=0;i<36;i++)e[i]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="",e.join("")}},34195:function(e){e.exports={title:"",showSettings:!1,tagsView:!0,fixedHeader:!1,showTopMenus:!0}},67526:function(e,t){"use strict";t.byteLength=d,t.toByteArray=u,t.fromByteArray=h;for(var i=[],n=[],r="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)i[a]=o[a],n[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=t);var n=i===t?0:4-i%4;return[i,n]}function d(e){var t=l(e),i=t[0],n=t[1];return 3*(i+n)/4-n}function c(e,t,i){return 3*(t+i)/4-i}function u(e){var t,i,o=l(e),a=o[0],s=o[1],d=new r(c(e,a,s)),u=0,f=s>0?a-4:a;for(i=0;i<f;i+=4)t=n[e.charCodeAt(i)]<<18|n[e.charCodeAt(i+1)]<<12|n[e.charCodeAt(i+2)]<<6|n[e.charCodeAt(i+3)],d[u++]=t>>16&255,d[u++]=t>>8&255,d[u++]=255&t;return 2===s&&(t=n[e.charCodeAt(i)]<<2|n[e.charCodeAt(i+1)]>>4,d[u++]=255&t),1===s&&(t=n[e.charCodeAt(i)]<<10|n[e.charCodeAt(i+1)]<<4|n[e.charCodeAt(i+2)]>>2,d[u++]=t>>8&255,d[u++]=255&t),d}function f(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,i){for(var n,r=[],o=t;o<i;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),r.push(f(n));return r.join("")}function h(e){for(var t,n=e.length,r=n%3,o=[],a=16383,s=0,l=n-r;s<l;s+=a)o.push(p(e,s,s+a>l?l:s+a));return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},39404:function(e,t,i){e=i.nmd(e),function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:i(47790).Buffer}catch(I){}function s(e,t){var i=e.charCodeAt(t);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void n(!1,"Invalid character in "+e)}function l(e,t,i){var n=s(e,i);return i-1>=t&&(n|=s(e,i-1)<<4),n}function d(e,t,i,r){for(var o=0,a=0,s=Math.min(e.length,i),l=t;l<s;l++){var d=e.charCodeAt(l)-48;o*=r,a=d>=49?d-49+10:d>=17?d-17+10:d,n(d>=0&&a<r,"Invalid character"),o+=a}return o}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"===typeof e)return this._initNumber(e,t,i);if("object"===typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var r=0;"-"===e[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===i)for(r=e.length-1,o=0;r>=0;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r<e.length;r+=3)a=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o=0,a=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=l(e,t,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2)r=l(e,t,n)<<o,this.words[a]|=67108863&r,o>=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8}this._strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var o=e.length-i,a=o%n,s=Math.min(o,o-a)+i,l=0,c=i;c<s;c+=n)l=d(e,c,c+n,t),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var u=1;for(l=d(e,c,e.length,t),c=0;c<a;c++)u*=t;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){c(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){while(this.length<e)this.words[this.length++]=0;return this},o.prototype._strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(I){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var i;if(e=e||10,t=0|t||1,16===e||"hex"===e){i="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<r|o)).toString(16);o=s>>>24-r&16777215,r+=2,r>=26&&(r-=26,a--),i=0!==o||a!==this.length-1?f[6-l.length]+l+i:l+i}0!==o&&(i=o.toString(16)+i);while(i.length%t!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var d=p[e],c=h[e];i="";var u=this.clone();u.negative=0;while(!u.isZero()){var m=u.modrn(c).toString(e);u=u.idivn(c),i=u.isZero()?m+i:f[d-m.length]+m+i}this.isZero()&&(i="0"+i);while(i.length%t!==0)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var m=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function b(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=e.words[n]>>>r&1}return t}function v(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],o=0|t.words[0],a=r*o,s=67108863&a,l=a/67108864|0;i.words[0]=s;for(var d=1;d<n;d++){for(var c=l>>>26,u=67108863&l,f=Math.min(d,t.length-1),p=Math.max(0,d-e.length+1);p<=f;p++){var h=d-p|0;r=0|e.words[h],o=0|t.words[p],a=r*o+u,c+=a/67108864|0,u=67108863&a}i.words[d]=0|u,l=0|c}return 0!==l?i.words[d]=0|l:i.length--,i._strip()}o.prototype.toArrayLike=function(e,t,i){this._strip();var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=m(e,o),s="le"===t?"LE":"BE";return this["_toArrayLike"+s](a,r),a},o.prototype._toArrayLikeLE=function(e,t){for(var i=0,n=0,r=0,o=0;r<this.length;r++){var a=this.words[r]<<o|n;e[i++]=255&a,i<e.length&&(e[i++]=a>>8&255),i<e.length&&(e[i++]=a>>16&255),6===o?(i<e.length&&(e[i++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(i<e.length){e[i++]=n;while(i<e.length)e[i++]=0}},o.prototype._toArrayLikeBE=function(e,t){for(var i=e.length-1,n=0,r=0,o=0;r<this.length;r++){var a=this.words[r]<<o|n;e[i--]=255&a,i>=0&&(e[i--]=a>>8&255),i>=0&&(e[i--]=a>>16&255),6===o?(i>=0&&(e[i--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(i>=0){e[i--]=n;while(i>=0)e[i--]=0}},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0===(8191&t)&&(i+=13,t>>>=13),0===(127&t)&&(i+=7,t>>>=7),0===(15&t)&&(i+=4,t>>>=4),0===(3&t)&&(i+=2,t>>>=2),0===(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){while(this.length<e.length)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this._strip()},o.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,o=0;o<n.length;o++)t=(0|i.words[o])+(0|n.words[o])+r,this.words[o]=67108863&t,r=t>>>26;for(;0!==r&&o<i.length;o++)t=(0|i.words[o])+r,this.words[o]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)t=(0|i.words[a])-(0|n.words[a])+o,o=t>>26,this.words[a]=67108863&t;for(;0!==o&&a<i.length;a++)t=(0|i.words[a])+o,o=t>>26,this.words[a]=67108863&t;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,i){var n,r,o,a=e.words,s=t.words,l=i.words,d=0,c=0|a[0],u=8191&c,f=c>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],v=8191&b,g=b>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],k=8191&x,S=x>>>13,T=0|a[5],C=8191&T,M=T>>>13,N=0|a[6],L=8191&N,I=N>>>13,D=0|a[7],E=8191&D,O=D>>>13,F=0|a[8],A=8191&F,P=F>>>13,$=0|a[9],B=8191&$,j=$>>>13,R=0|s[0],U=8191&R,H=R>>>13,W=0|s[1],Y=8191&W,V=W>>>13,z=0|s[2],q=8191&z,J=z>>>13,G=0|s[3],K=8191&G,X=G>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,re=0|s[6],oe=8191&re,ae=re>>>13,se=0|s[7],le=8191&se,de=se>>>13,ce=0|s[8],ue=8191&ce,fe=ce>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;i.negative=e.negative^t.negative,i.length=19,n=Math.imul(u,U),r=Math.imul(u,H),r=r+Math.imul(f,U)|0,o=Math.imul(f,H);var be=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(h,U),r=Math.imul(h,H),r=r+Math.imul(m,U)|0,o=Math.imul(m,H),n=n+Math.imul(u,Y)|0,r=r+Math.imul(u,V)|0,r=r+Math.imul(f,Y)|0,o=o+Math.imul(f,V)|0;var ve=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,U),r=Math.imul(v,H),r=r+Math.imul(g,U)|0,o=Math.imul(g,H),n=n+Math.imul(h,Y)|0,r=r+Math.imul(h,V)|0,r=r+Math.imul(m,Y)|0,o=o+Math.imul(m,V)|0,n=n+Math.imul(u,q)|0,r=r+Math.imul(u,J)|0,r=r+Math.imul(f,q)|0,o=o+Math.imul(f,J)|0;var ge=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(w,U),r=Math.imul(w,H),r=r+Math.imul(_,U)|0,o=Math.imul(_,H),n=n+Math.imul(v,Y)|0,r=r+Math.imul(v,V)|0,r=r+Math.imul(g,Y)|0,o=o+Math.imul(g,V)|0,n=n+Math.imul(h,q)|0,r=r+Math.imul(h,J)|0,r=r+Math.imul(m,q)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(u,K)|0,r=r+Math.imul(u,X)|0,r=r+Math.imul(f,K)|0,o=o+Math.imul(f,X)|0;var ye=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(k,U),r=Math.imul(k,H),r=r+Math.imul(S,U)|0,o=Math.imul(S,H),n=n+Math.imul(w,Y)|0,r=r+Math.imul(w,V)|0,r=r+Math.imul(_,Y)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(v,q)|0,r=r+Math.imul(v,J)|0,r=r+Math.imul(g,q)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(h,K)|0,r=r+Math.imul(h,X)|0,r=r+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(u,Q)|0,r=r+Math.imul(u,ee)|0,r=r+Math.imul(f,Q)|0,o=o+Math.imul(f,ee)|0;var we=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,U),r=Math.imul(C,H),r=r+Math.imul(M,U)|0,o=Math.imul(M,H),n=n+Math.imul(k,Y)|0,r=r+Math.imul(k,V)|0,r=r+Math.imul(S,Y)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,r=r+Math.imul(w,J)|0,r=r+Math.imul(_,q)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(v,K)|0,r=r+Math.imul(v,X)|0,r=r+Math.imul(g,K)|0,o=o+Math.imul(g,X)|0,n=n+Math.imul(h,Q)|0,r=r+Math.imul(h,ee)|0,r=r+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(u,ie)|0,r=r+Math.imul(u,ne)|0,r=r+Math.imul(f,ie)|0,o=o+Math.imul(f,ne)|0;var _e=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,U),r=Math.imul(L,H),r=r+Math.imul(I,U)|0,o=Math.imul(I,H),n=n+Math.imul(C,Y)|0,r=r+Math.imul(C,V)|0,r=r+Math.imul(M,Y)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(k,q)|0,r=r+Math.imul(k,J)|0,r=r+Math.imul(S,q)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,K)|0,r=r+Math.imul(w,X)|0,r=r+Math.imul(_,K)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(v,Q)|0,r=r+Math.imul(v,ee)|0,r=r+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(h,ie)|0,r=r+Math.imul(h,ne)|0,r=r+Math.imul(m,ie)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(u,oe)|0,r=r+Math.imul(u,ae)|0,r=r+Math.imul(f,oe)|0,o=o+Math.imul(f,ae)|0;var xe=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(E,U),r=Math.imul(E,H),r=r+Math.imul(O,U)|0,o=Math.imul(O,H),n=n+Math.imul(L,Y)|0,r=r+Math.imul(L,V)|0,r=r+Math.imul(I,Y)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(C,q)|0,r=r+Math.imul(C,J)|0,r=r+Math.imul(M,q)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(k,K)|0,r=r+Math.imul(k,X)|0,r=r+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(w,Q)|0,r=r+Math.imul(w,ee)|0,r=r+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,ie)|0,r=r+Math.imul(v,ne)|0,r=r+Math.imul(g,ie)|0,o=o+Math.imul(g,ne)|0,n=n+Math.imul(h,oe)|0,r=r+Math.imul(h,ae)|0,r=r+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(u,le)|0,r=r+Math.imul(u,de)|0,r=r+Math.imul(f,le)|0,o=o+Math.imul(f,de)|0;var ke=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(A,U),r=Math.imul(A,H),r=r+Math.imul(P,U)|0,o=Math.imul(P,H),n=n+Math.imul(E,Y)|0,r=r+Math.imul(E,V)|0,r=r+Math.imul(O,Y)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(L,q)|0,r=r+Math.imul(L,J)|0,r=r+Math.imul(I,q)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(C,K)|0,r=r+Math.imul(C,X)|0,r=r+Math.imul(M,K)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(k,Q)|0,r=r+Math.imul(k,ee)|0,r=r+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(w,ie)|0,r=r+Math.imul(w,ne)|0,r=r+Math.imul(_,ie)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,r=r+Math.imul(v,ae)|0,r=r+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,n=n+Math.imul(h,le)|0,r=r+Math.imul(h,de)|0,r=r+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0,n=n+Math.imul(u,ue)|0,r=r+Math.imul(u,fe)|0,r=r+Math.imul(f,ue)|0,o=o+Math.imul(f,fe)|0;var Se=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,U),r=Math.imul(B,H),r=r+Math.imul(j,U)|0,o=Math.imul(j,H),n=n+Math.imul(A,Y)|0,r=r+Math.imul(A,V)|0,r=r+Math.imul(P,Y)|0,o=o+Math.imul(P,V)|0,n=n+Math.imul(E,q)|0,r=r+Math.imul(E,J)|0,r=r+Math.imul(O,q)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(L,K)|0,r=r+Math.imul(L,X)|0,r=r+Math.imul(I,K)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(C,Q)|0,r=r+Math.imul(C,ee)|0,r=r+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(k,ie)|0,r=r+Math.imul(k,ne)|0,r=r+Math.imul(S,ie)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(w,oe)|0,r=r+Math.imul(w,ae)|0,r=r+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,le)|0,r=r+Math.imul(v,de)|0,r=r+Math.imul(g,le)|0,o=o+Math.imul(g,de)|0,n=n+Math.imul(h,ue)|0,r=r+Math.imul(h,fe)|0,r=r+Math.imul(m,ue)|0,o=o+Math.imul(m,fe)|0,n=n+Math.imul(u,he)|0,r=r+Math.imul(u,me)|0,r=r+Math.imul(f,he)|0,o=o+Math.imul(f,me)|0;var Te=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,Y),r=Math.imul(B,V),r=r+Math.imul(j,Y)|0,o=Math.imul(j,V),n=n+Math.imul(A,q)|0,r=r+Math.imul(A,J)|0,r=r+Math.imul(P,q)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(E,K)|0,r=r+Math.imul(E,X)|0,r=r+Math.imul(O,K)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(L,Q)|0,r=r+Math.imul(L,ee)|0,r=r+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(C,ie)|0,r=r+Math.imul(C,ne)|0,r=r+Math.imul(M,ie)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(k,oe)|0,r=r+Math.imul(k,ae)|0,r=r+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,n=n+Math.imul(w,le)|0,r=r+Math.imul(w,de)|0,r=r+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0,n=n+Math.imul(v,ue)|0,r=r+Math.imul(v,fe)|0,r=r+Math.imul(g,ue)|0,o=o+Math.imul(g,fe)|0,n=n+Math.imul(h,he)|0,r=r+Math.imul(h,me)|0,r=r+Math.imul(m,he)|0,o=o+Math.imul(m,me)|0;var Ce=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,q),r=Math.imul(B,J),r=r+Math.imul(j,q)|0,o=Math.imul(j,J),n=n+Math.imul(A,K)|0,r=r+Math.imul(A,X)|0,r=r+Math.imul(P,K)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(E,Q)|0,r=r+Math.imul(E,ee)|0,r=r+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(L,ie)|0,r=r+Math.imul(L,ne)|0,r=r+Math.imul(I,ie)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(C,oe)|0,r=r+Math.imul(C,ae)|0,r=r+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(k,le)|0,r=r+Math.imul(k,de)|0,r=r+Math.imul(S,le)|0,o=o+Math.imul(S,de)|0,n=n+Math.imul(w,ue)|0,r=r+Math.imul(w,fe)|0,r=r+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0,n=n+Math.imul(v,he)|0,r=r+Math.imul(v,me)|0,r=r+Math.imul(g,he)|0,o=o+Math.imul(g,me)|0;var Me=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,K),r=Math.imul(B,X),r=r+Math.imul(j,K)|0,o=Math.imul(j,X),n=n+Math.imul(A,Q)|0,r=r+Math.imul(A,ee)|0,r=r+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(E,ie)|0,r=r+Math.imul(E,ne)|0,r=r+Math.imul(O,ie)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(L,oe)|0,r=r+Math.imul(L,ae)|0,r=r+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(C,le)|0,r=r+Math.imul(C,de)|0,r=r+Math.imul(M,le)|0,o=o+Math.imul(M,de)|0,n=n+Math.imul(k,ue)|0,r=r+Math.imul(k,fe)|0,r=r+Math.imul(S,ue)|0,o=o+Math.imul(S,fe)|0,n=n+Math.imul(w,he)|0,r=r+Math.imul(w,me)|0,r=r+Math.imul(_,he)|0,o=o+Math.imul(_,me)|0;var Ne=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(B,Q),r=Math.imul(B,ee),r=r+Math.imul(j,Q)|0,o=Math.imul(j,ee),n=n+Math.imul(A,ie)|0,r=r+Math.imul(A,ne)|0,r=r+Math.imul(P,ie)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(E,oe)|0,r=r+Math.imul(E,ae)|0,r=r+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(L,le)|0,r=r+Math.imul(L,de)|0,r=r+Math.imul(I,le)|0,o=o+Math.imul(I,de)|0,n=n+Math.imul(C,ue)|0,r=r+Math.imul(C,fe)|0,r=r+Math.imul(M,ue)|0,o=o+Math.imul(M,fe)|0,n=n+Math.imul(k,he)|0,r=r+Math.imul(k,me)|0,r=r+Math.imul(S,he)|0,o=o+Math.imul(S,me)|0;var Le=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(B,ie),r=Math.imul(B,ne),r=r+Math.imul(j,ie)|0,o=Math.imul(j,ne),n=n+Math.imul(A,oe)|0,r=r+Math.imul(A,ae)|0,r=r+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(E,le)|0,r=r+Math.imul(E,de)|0,r=r+Math.imul(O,le)|0,o=o+Math.imul(O,de)|0,n=n+Math.imul(L,ue)|0,r=r+Math.imul(L,fe)|0,r=r+Math.imul(I,ue)|0,o=o+Math.imul(I,fe)|0,n=n+Math.imul(C,he)|0,r=r+Math.imul(C,me)|0,r=r+Math.imul(M,he)|0,o=o+Math.imul(M,me)|0;var Ie=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(B,oe),r=Math.imul(B,ae),r=r+Math.imul(j,oe)|0,o=Math.imul(j,ae),n=n+Math.imul(A,le)|0,r=r+Math.imul(A,de)|0,r=r+Math.imul(P,le)|0,o=o+Math.imul(P,de)|0,n=n+Math.imul(E,ue)|0,r=r+Math.imul(E,fe)|0,r=r+Math.imul(O,ue)|0,o=o+Math.imul(O,fe)|0,n=n+Math.imul(L,he)|0,r=r+Math.imul(L,me)|0,r=r+Math.imul(I,he)|0,o=o+Math.imul(I,me)|0;var De=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(B,le),r=Math.imul(B,de),r=r+Math.imul(j,le)|0,o=Math.imul(j,de),n=n+Math.imul(A,ue)|0,r=r+Math.imul(A,fe)|0,r=r+Math.imul(P,ue)|0,o=o+Math.imul(P,fe)|0,n=n+Math.imul(E,he)|0,r=r+Math.imul(E,me)|0,r=r+Math.imul(O,he)|0,o=o+Math.imul(O,me)|0;var Ee=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,ue),r=Math.imul(B,fe),r=r+Math.imul(j,ue)|0,o=Math.imul(j,fe),n=n+Math.imul(A,he)|0,r=r+Math.imul(A,me)|0,r=r+Math.imul(P,he)|0,o=o+Math.imul(P,me)|0;var Oe=(d+n|0)+((8191&r)<<13)|0;d=(o+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,he),r=Math.imul(B,me),r=r+Math.imul(j,he)|0,o=Math.imul(j,me);var Fe=(d+n|0)+((8191&r)<<13)|0;return d=(o+(r>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,l[0]=be,l[1]=ve,l[2]=ge,l[3]=ye,l[4]=we,l[5]=_e,l[6]=xe,l[7]=ke,l[8]=Se,l[9]=Te,l[10]=Ce,l[11]=Me,l[12]=Ne,l[13]=Le,l[14]=Ie,l[15]=De,l[16]=Ee,l[17]=Oe,l[18]=Fe,0!==d&&(l[19]=d,i.length++),i};function y(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,o=0;o<i.length-1;o++){var a=r;r=0;for(var s=67108863&n,l=Math.min(o,t.length-1),d=Math.max(0,o-e.length+1);d<=l;d++){var c=o-d,u=0|e.words[c],f=0|t.words[d],p=u*f,h=67108863&p;a=a+(p/67108864|0)|0,h=h+s|0,s=67108863&h,a=a+(h>>>26)|0,r+=a>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i._strip()}function w(e,t,i){return y(e,t,i)}function _(e,t){this.x=e,this.y=t}Math.imul||(g=v),o.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return i=10===this.length&&10===e.length?g(this,e,t):n<63?v(this,e,t):n<1024?y(this,e,t):w(this,e,t),i},_.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},_.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},_.prototype.permute=function(e,t,i,n,r,o){for(var a=0;a<o;a++)n[a]=t[e[a]],r[a]=i[e[a]]},_.prototype.transform=function(e,t,i,n,r,o){this.permute(o,e,t,i,n,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),d=Math.sin(2*Math.PI/s),c=0;c<r;c+=s)for(var u=l,f=d,p=0;p<a;p++){var h=i[c+p],m=n[c+p],b=i[c+p+a],v=n[c+p+a],g=u*b-f*v;v=u*v+f*b,b=g,i[c+p]=h+b,n[c+p]=m+v,i[c+p+a]=h-b,n[c+p+a]=m-v,p!==s&&(g=l*u-d*f,f=l*f+d*u,u=g)}},_.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},_.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},_.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},_.prototype.convert13b=function(e,t,i,r){for(var o=0,a=0;a<t;a++)o+=0|e[a],i[2*a]=8191&o,o>>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<r;++a)i[a]=0;n(0===o),n(0===(-8192&o))},_.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},_.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),d=new Array(n),c=new Array(n),u=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,d,n),this.transform(a,o,s,l,n,r),this.transform(d,o,c,u,n,r);for(var p=0;p<n;p++){var h=s[p]*c[p]-l[p]*u[p];l[p]=s[p]*u[p]+l[p]*c[p],s[p]=h}return this.conjugate(s,l,n),this.transform(s,l,f,o,n,r),this.conjugate(f,o,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),w(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"===typeof e),n(e<67108864);for(var i=0,r=0;r<this.length;r++){var o=(0|this.words[r])*e,a=(67108863&o)+(67108863&i);i>>=26,i+=o/67108864|0,i+=a>>>26,this.words[r]=67108863&a}return 0!==i&&(this.words[r]=i,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=b(e);if(0===t.length)return new o(1);for(var i=this,n=0;n<t.length;n++,i=i.sqr())if(0!==t[n])break;if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<i;this.words[t]=l|a,a=s>>>26-i}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,i){var r;n("number"===typeof e&&e>=0),r=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=i;if(r-=a,r=Math.max(0,r),l){for(var d=0;d<a;d++)l.words[d]=this.words[d];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,d=0;d<this.length;d++)this.words[d]=this.words[d+a];else this.words[0]=0,this.length=1;var c=0;for(d=this.length-1;d>=0&&(0!==c||d>=r);d--){var u=0|this.words[d];this.words[d]=c<<26-o|u>>>o,c=u&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return!1;var o=this.words[i];return!!(o&r)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,i){var r,o,a=e.length+i;this._expand(a);var s=0;for(r=0;r<e.length;r++){o=(0|this.words[r+i])+s;var l=(0|e.words[r])*t;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[r+i]=67108863&o}for(;r<this.length-i;r++)o=(0|this.words[r+i])+s,s=o>>26,this.words[r+i]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,r=0;r<this.length;r++)o=-(0|this.words[r])+s,s=o>>26,this.words[r]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var i=this.length-e.length,n=this.clone(),r=e,a=0|r.words[r.length-1],s=this._countBits(a);i=26-s,0!==i&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var l,d=n.length-r.length;if("mod"!==t){l=new o(null),l.length=d+1,l.words=new Array(l.length);for(var c=0;c<l.length;c++)l.words[c]=0}var u=n.clone()._ishlnsubmul(r,1,d);0===u.negative&&(n=u,l&&(l.words[d]=1));for(var f=d-1;f>=0;f--){var p=67108864*(0|n.words[r.length+f])+(0|n.words[r.length+f-1]);p=Math.min(p/a|0,67108863),n._ishlnsubmul(r,p,f);while(0!==n.negative)p--,n.negative=0,n._ishlnsubmul(r,1,f),n.isZero()||(n.negative^=1);l&&(l.words[f]=p)}return l&&l._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:l||null,mod:n}},o.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(e)),{div:r,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var r,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=(1<<26)%e,r=0,o=this.length-1;o>=0;o--)r=(i*r+(0|this.words[o]))%e;return t?-r:r},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*i;this.words[r]=o/e|0,i=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();var r=new o(1),a=new o(0),s=new o(0),l=new o(1),d=0;while(t.isEven()&&i.isEven())t.iushrn(1),i.iushrn(1),++d;var c=i.clone(),u=t.clone();while(!t.isZero()){for(var f=0,p=1;0===(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0){t.iushrn(f);while(f-- >0)(r.isOdd()||a.isOdd())&&(r.iadd(c),a.isub(u)),r.iushrn(1),a.iushrn(1)}for(var h=0,m=1;0===(i.words[0]&m)&&h<26;++h,m<<=1);if(h>0){i.iushrn(h);while(h-- >0)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(u)),s.iushrn(1),l.iushrn(1)}t.cmp(i)>=0?(t.isub(i),r.isub(s),a.isub(l)):(i.isub(t),s.isub(r),l.isub(a))}return{a:s,b:l,gcd:i.iushln(d)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();var r,a=new o(1),s=new o(0),l=i.clone();while(t.cmpn(1)>0&&i.cmpn(1)>0){for(var d=0,c=1;0===(t.words[0]&c)&&d<26;++d,c<<=1);if(d>0){t.iushrn(d);while(d-- >0)a.isOdd()&&a.iadd(l),a.iushrn(1)}for(var u=0,f=1;0===(i.words[0]&f)&&u<26;++u,f<<=1);if(u>0){i.iushrn(u);while(u-- >0)s.isOdd()&&s.iadd(l),s.iushrn(1)}t.cmp(i)>=0?(t.isub(i),a.isub(s)):(i.isub(t),s.isub(a))}return r=0===t.cmpn(1)?a:s,r.cmpn(0)<0&&r.iadd(e),r},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);do{while(t.isEven())t.iushrn(1);while(i.isEven())i.iushrn(1);var r=t.cmp(i);if(r<0){var o=t;t=i,i=o}else if(0===r||0===i.cmpn(1))break;t.isub(i)}while(1);return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var o=r,a=i;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new N(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function k(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function L(e){N.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},k.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),t=i.bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},k.prototype.split=function(e,t){e.iushrn(this.n,0,t)},k.prototype.imulK=function(e){return e.imul(this.k)},r(S,k),S.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(T,k),r(C,k),r(M,k),M.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(x[e])return x[e];var t;if("k256"===e)t=new S;else if("p224"===e)t=new T;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return x[e]=t,t},N.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},N.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},N.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},N.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},N.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},N.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},N.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},N.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},N.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},N.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},N.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},N.prototype.isqr=function(e){return this.imul(e,e.clone())},N.prototype.sqr=function(e){return this.mul(e,e)},N.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}var r=this.m.subn(1),a=0;while(!r.isZero()&&0===r.andln(1))a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),l=s.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,d).cmp(l))c.redIAdd(l);var u=this.pow(c,r),f=this.pow(e,r.addn(1).iushrn(1)),p=this.pow(e,r),h=a;while(0!==p.cmp(s)){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<h);var v=this.pow(u,new o(1).iushln(h-b-1));f=f.redMul(v),u=v.redSqr(),p=p.redMul(u),h=b}return f},N.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},N.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=4,n=new Array(1<<i);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],s=0,l=0,d=t.bitLength()%26;for(0===d&&(d=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=d-1;u>=0;u--){var f=c>>u&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==s?(s<<=1,s|=f,l++,(l===i||0===r&&0===u)&&(a=this.mul(a,n[s]),l=0,s=0)):l=0}d=26}return a},N.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},N.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new L(e)},r(L,N),L.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},L.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},L.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},L.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}}(e,this)},15037:function(e,t,i){var n;function r(e){this.rand=e}if(e.exports=function(e){return n||(n=new r(null)),n.generate(e)},e.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=i(73776);if("function"!==typeof o.randomBytes)throw new Error("Not supported");r.prototype._rand=function(e){return o.randomBytes(e)}}catch(a){}},50462:function(e,t,i){var n=i(92861).Buffer;function r(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,i=new Array(t),r=0;r<t;r++)i[r]=e.readUInt32BE(4*r);return i}function o(e){for(var t=0;t<e.length;e++)e[t]=0}function a(e,t,i,n,r){for(var o,a,s,l,d=i[0],c=i[1],u=i[2],f=i[3],p=e[0]^t[0],h=e[1]^t[1],m=e[2]^t[2],b=e[3]^t[3],v=4,g=1;g<r;g++)o=d[p>>>24]^c[h>>>16&255]^u[m>>>8&255]^f[255&b]^t[v++],a=d[h>>>24]^c[m>>>16&255]^u[b>>>8&255]^f[255&p]^t[v++],s=d[m>>>24]^c[b>>>16&255]^u[p>>>8&255]^f[255&h]^t[v++],l=d[b>>>24]^c[p>>>16&255]^u[h>>>8&255]^f[255&m]^t[v++],p=o,h=a,m=s,b=l;return o=(n[p>>>24]<<24|n[h>>>16&255]<<16|n[m>>>8&255]<<8|n[255&b])^t[v++],a=(n[h>>>24]<<24|n[m>>>16&255]<<16|n[b>>>8&255]<<8|n[255&p])^t[v++],s=(n[m>>>24]<<24|n[b>>>16&255]<<16|n[p>>>8&255]<<8|n[255&h])^t[v++],l=(n[b>>>24]<<24|n[p>>>16&255]<<16|n[h>>>8&255]<<8|n[255&m])^t[v++],o>>>=0,a>>>=0,s>>>=0,l>>>=0,[o,a,s,l]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],n=[],r=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var d=s^s<<1^s<<2^s<<3^s<<4;d=d>>>8^255&d^99,i[a]=d,n[d]=a;var c=e[a],u=e[c],f=e[u],p=257*e[d]^16843008*d;r[0][a]=p<<24|p>>>8,r[1][a]=p<<16|p>>>16,r[2][a]=p<<8|p>>>24,r[3][a]=p,p=16843009*f^65537*u^257*c^16843008*a,o[0][d]=p<<24|p>>>8,o[1][d]=p<<16|p>>>16,o[2][d]=p<<8|p>>>24,o[3][d]=p,0===a?a=s=1:(a=c^e[e[e[f^c]]],s^=e[e[s]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:r,INV_SUB_MIX:o}}();function d(e){this._key=r(e),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,n=4*(i+1),r=[],o=0;o<t;o++)r[o]=e[o];for(o=t;o<n;o++){var a=r[o-1];o%t===0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t===4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),r[o]=r[o-t]^a}for(var d=[],c=0;c<n;c++){var u=n-c,f=r[u-(c%4?0:4)];d[c]=c<4||u<=4?f:l.INV_SUB_MIX[0][l.SBOX[f>>>24]]^l.INV_SUB_MIX[1][l.SBOX[f>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[f>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&f]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(e){return e=r(e),a(e,this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},d.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=n.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},d.prototype.decryptBlock=function(e){e=r(e);var t=e[1];e[1]=e[3],e[3]=t;var i=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(i[0],0),o.writeUInt32BE(i[3],4),o.writeUInt32BE(i[2],8),o.writeUInt32BE(i[1],12),o},d.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=d},92356:function(e,t,i){var n=i(50462),r=i(92861).Buffer,o=i(56168),a=i(56698),s=i(25892),l=i(30295),d=i(45122);function c(e,t){var i=0;e.length!==t.length&&i++;for(var n=Math.min(e.length,t.length),r=0;r<n;++r)i+=e[r]^t[r];return i}function u(e,t,i){if(12===t.length)return e._finID=r.concat([t,r.from([0,0,0,1])]),r.concat([t,r.from([0,0,0,2])]);var n=new s(i),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(r.alloc(a,0))),n.update(r.alloc(8,0));var l=8*o,c=r.alloc(8);c.writeUIntBE(l,0,8),n.update(c),e._finID=n.state;var u=r.from(e._finID);return d(u),u}function f(e,t,i,a){o.call(this);var l=r.alloc(4,0);this._cipher=new n.AES(t);var d=this._cipher.encryptBlock(l);this._ghash=new s(d),i=u(this,i,d),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=r.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&c(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},f.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=f},1241:function(e,t,i){var n=i(25799),r=i(36171),o=i(3219);function a(){return Object.keys(o)}t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=r.createDecipher,t.createDecipheriv=t.Decipheriv=r.createDecipheriv,t.listCiphers=t.getCiphers=a},36171:function(e,t,i){var n=i(92356),r=i(92861).Buffer,o=i(530),a=i(50650),s=i(56168),l=i(50462),d=i(68078),c=i(56698);function u(e,t,i){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new l.AES(t),this._prev=r.from(i),this._mode=e,this._autopadding=!0}function f(){this.cache=r.allocUnsafe(0)}function p(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var i=-1;while(++i<t)if(e[i+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function h(e,t,i){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof i&&(i=r.from(i)),"GCM"!==s.mode&&i.length!==s.iv)throw new TypeError("invalid iv length "+i.length);if("string"===typeof t&&(t=r.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,i,!0):"auth"===s.type?new n(s.module,t,i,!0):new u(s.module,t,i)}function m(e,t){var i=o[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=d(t,!1,i.key,i.iv);return h(e,n.key,n.iv)}c(u,s),u.prototype._update=function(e){var t,i;this._cache.add(e);var n=[];while(t=this._cache.get(this._autopadding))i=this._mode.decrypt(this,t),n.push(i);return r.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return p(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=r.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=m,t.createDecipheriv=h},25799:function(e,t,i){var n=i(530),r=i(92356),o=i(92861).Buffer,a=i(50650),s=i(56168),l=i(50462),d=i(68078),c=i(56698);function u(e,t,i){s.call(this),this._cache=new p,this._cipher=new l.AES(t),this._prev=o.from(i),this._mode=e,this._autopadding=!0}c(u,s),u.prototype._update=function(e){var t,i;this._cache.add(e);var n=[];while(t=this._cache.get())i=this._mode.encrypt(this,t),n.push(i);return o.concat(n)};var f=o.alloc(16,16);function p(){this.cache=o.allocUnsafe(0)}function h(e,t,i){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"===typeof i&&(i=o.from(i)),"GCM"!==s.mode&&i.length!==s.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===s.type?new a(s.module,t,i):"auth"===s.type?new r(s.module,t,i):new u(s.module,t,i)}function m(e,t){var i=n[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=d(t,!1,i.key,i.iv);return h(e,r.key,r.iv)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},p.prototype.add=function(e){this.cache=o.concat([this.cache,e])},p.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},p.prototype.flush=function(){var e=16-this.cache.length,t=o.allocUnsafe(e),i=-1;while(++i<e)t.writeUInt8(e,i);return o.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=m},25892:function(e,t,i){var n=i(92861).Buffer,r=n.alloc(16,0);function o(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){var t=-1;while(++t<e.length)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){var e,t,i,n=o(this.h),r=[0,0,0,0],s=-1;while(++s<128){for(t=0!==(this.state[~~(s/8)]&1<<7-s%8),t&&(r[0]^=n[0],r[1]^=n[1],r[2]^=n[2],r[3]^=n[3]),i=0!==(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=a(r)},s.prototype.update=function(e){var t;this.cache=n.concat([this.cache,e]);while(this.cache.length>=16)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},45122:function(e){function t(e){var t,i=e.length;while(i--){if(t=e.readUInt8(i),255!==t){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}e.exports=t},92884:function(e,t,i){var n=i(30295);t.encrypt=function(e,t){var i=n(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},t.decrypt=function(e,t){var i=e._prev;e._prev=t;var r=e._cipher.decryptBlock(t);return n(r,i)}},46383:function(e,t,i){var n=i(92861).Buffer,r=i(30295);function o(e,t,i){var o=t.length,a=r(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,i?t:a]),a}t.encrypt=function(e,t,i){var r,a=n.allocUnsafe(0);while(t.length){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,i)]);break}r=e._cache.length,a=n.concat([a,o(e,t.slice(0,r),i)]),t=t.slice(r)}return a}},55264:function(e,t,i){var n=i(92861).Buffer;function r(e,t,i){var n,r,a,s=-1,l=8,d=0;while(++s<l)n=e._cipher.encryptBlock(e._prev),r=t&1<<7-s?128:0,a=n[0]^r,d+=(128&a)>>s%8,e._prev=o(e._prev,i?r:a);return d}function o(e,t){var i=e.length,r=-1,o=n.allocUnsafe(e.length);e=n.concat([e,n.from([t])]);while(++r<i)o[r]=e[r]<<1|e[r+1]>>7;return o}t.encrypt=function(e,t,i){var o=t.length,a=n.allocUnsafe(o),s=-1;while(++s<o)a[s]=r(e,t[s],i);return a}},86975:function(e,t,i){var n=i(92861).Buffer;function r(e,t,i){var r=e._cipher.encryptBlock(e._prev),o=r[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([i?t:o])]),o}t.encrypt=function(e,t,i){var o=t.length,a=n.allocUnsafe(o),s=-1;while(++s<o)a[s]=r(e,t[s],i);return a}},63053:function(e,t,i){var n=i(30295),r=i(92861).Buffer,o=i(45122);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var s=16;t.encrypt=function(e,t){var i=Math.ceil(t.length/s),o=e._cache.length;e._cache=r.concat([e._cache,r.allocUnsafe(i*s)]);for(var l=0;l<i;l++){var d=a(e),c=o+l*s;e._cache.writeUInt32BE(d[0],c+0),e._cache.writeUInt32BE(d[1],c+4),e._cache.writeUInt32BE(d[2],c+8),e._cache.writeUInt32BE(d[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},52632:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},530:function(e,t,i){var n={ECB:i(52632),CBC:i(92884),CFB:i(46383),CFB8:i(86975),CFB1:i(55264),OFB:i(46843),CTR:i(63053),GCM:i(63053)},r=i(3219);for(var o in r)r[o].module=n[r[o].mode];e.exports=r},46843:function(e,t,i){var n=i(30295);function r(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){while(e._cache.length<t.length)e._cache=Buffer.concat([e._cache,r(e)]);var i=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,i)}},50650:function(e,t,i){var n=i(50462),r=i(92861).Buffer,o=i(56168),a=i(56698);function s(e,t,i,a){o.call(this),this._cipher=new n.AES(t),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._mode=e}a(s,o),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s},30125:function(e,t,i){var n=i(84050),r=i(1241),o=i(530),a=i(32438),s=i(68078);function l(e,t){var i,n;if(e=e.toLowerCase(),o[e])i=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");i=8*a[e].key,n=a[e].iv}var r=s(t,!1,i,n);return c(e,r.key,r.iv)}function d(e,t){var i,n;if(e=e.toLowerCase(),o[e])i=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");i=8*a[e].key,n=a[e].iv}var r=s(t,!1,i,n);return u(e,r.key,r.iv)}function c(e,t,i){if(e=e.toLowerCase(),o[e])return r.createCipheriv(e,t,i);if(a[e])return new n({key:t,iv:i,mode:e});throw new TypeError("invalid suite type")}function u(e,t,i){if(e=e.toLowerCase(),o[e])return r.createDecipheriv(e,t,i);if(a[e])return new n({key:t,iv:i,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function f(){return Object.keys(a).concat(r.getCiphers())}t.createCipher=t.Cipher=l,t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=d,t.createDecipheriv=t.Decipheriv=u,t.listCiphers=t.getCiphers=f},84050:function(e,t,i){var n=i(56168),r=i(29560),o=i(56698),a=i(92861).Buffer,s={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function l(e){n.call(this);var t,i=e.mode.toLowerCase(),r=s[i];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==i&&"des-ede-cbc"!==i||(o=a.concat([o,o.slice(0,8)]));var l=e.iv;a.isBuffer(l)||(l=a.from(l)),this._des=r.create({key:o,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=l,o(l,n),l.prototype._update=function(e){return a.from(this._des.update(e))},l.prototype._final=function(){return a.from(this._des.final())}},32438:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},67332:function(e,t,i){var n=i(39404),r=i(53209);function o(e){var t=a(e),i=t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed();return{blinder:i,unblinder:t.invm(e.modulus)}}function a(e){var t,i=e.modulus.byteLength();do{t=new n(r(i))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var i=o(t),r=t.modulus.byteLength(),a=new n(e).mul(i.blinder).umod(t.modulus),s=a.toRed(n.mont(t.prime1)),l=a.toRed(n.mont(t.prime2)),d=t.coefficient,c=t.prime1,u=t.prime2,f=s.redPow(t.exponent1).fromRed(),p=l.redPow(t.exponent2).fromRed(),h=f.isub(p).imul(d).umod(c).imul(u);return p.iadd(h).imul(i.unblinder).umod(t.modulus).toArrayLike(Buffer,"be",r)}s.getr=a,e.exports=s},55715:function(e,t,i){"use strict";e.exports=i(62951)},20:function(e,t,i){"use strict";var n=i(92861).Buffer,r=i(47108),o=i(28399),a=i(56698),s=i(35359),l=i(74847),d=i(62951);function c(e){o.Writable.call(this);var t=d[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){o.Writable.call(this);var t=d[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new c(e)}function p(e){return new u(e)}Object.keys(d).forEach((function(e){d[e].id=n.from(d[e].id,"hex"),d[e.toLowerCase()]=d[e]})),a(c,o.Writable),c.prototype._write=function(e,t,i){this._hash.update(e),i()},c.prototype.update=function(e,t){return this._hash.update("string"===typeof e?n.from(e,t):e),this},c.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),n=s(i,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(u,o.Writable),u.prototype._write=function(e,t,i){this._hash.update(e),i()},u.prototype.update=function(e,t){return this._hash.update("string"===typeof e?n.from(e,t):e),this},u.prototype.verify=function(e,t,i){var r="string"===typeof t?n.from(t,i):t;this.end();var o=this._hash.digest();return l(r,o,e,this._signType,this._tag)},e.exports={Sign:f,Verify:p,createSign:f,createVerify:p}},35359:function(e,t,i){"use strict";var n=i(92861).Buffer,r=i(83507),o=i(67332),a=i(86729).ec,s=i(39404),l=i(78170),d=i(64589),c=1;function u(e,t,i,r,a){var s=l(t);if(s.curve){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");return f(e,s)}if("dsa"===s.type){if("dsa"!==r)throw new Error("wrong private key type");return p(e,s,i)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");if(void 0!==t.padding&&t.padding!==c)throw new Error("illegal or unsupported padding mode");e=n.concat([a,e]);var d=s.modulus.byteLength(),u=[0,1];while(e.length+u.length+1<d)u.push(255);u.push(0);var h=-1;while(++h<e.length)u.push(e[h]);var m=o(u,s);return m}function f(e,t){var i=d[t.curve.join(".")];if(!i)throw new Error("unknown curve "+t.curve.join("."));var r=new a(i),o=r.keyFromPrivate(t.privateKey),s=o.sign(e);return n.from(s.toDER())}function p(e,t,i){var n,r=t.params.priv_key,o=t.params.p,a=t.params.q,l=t.params.g,d=new s(0),c=b(e,a).mod(a),u=!1,f=m(r,a,e,i);while(!1===u)n=g(a,f,i),d=y(l,n,o,a),u=n.invm(a).imul(c.add(r.mul(d))).mod(a),0===u.cmpn(0)&&(u=!1,d=new s(0));return h(d,u)}function h(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var i=e.length+t.length+4,r=[48,i,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}function m(e,t,i,o){if(e=n.from(e.toArray()),e.length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=i.length,l=v(i,t),d=n.alloc(s);d.fill(1);var c=n.alloc(s);return c=r(o,c).update(d).update(n.from([0])).update(e).update(l).digest(),d=r(o,c).update(d).digest(),c=r(o,c).update(d).update(n.from([1])).update(e).update(l).digest(),d=r(o,c).update(d).digest(),{k:c,v:d}}function b(e,t){var i=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&i.ishrn(n),i}function v(e,t){e=b(e,t),e=e.mod(t);var i=n.from(e.toArray());if(i.length<t.byteLength()){var r=n.alloc(t.byteLength()-i.length);i=n.concat([r,i])}return i}function g(e,t,i){var o,a;do{o=n.alloc(0);while(8*o.length<e.bitLength())t.v=r(i,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=b(o,e),t.k=r(i,t.k).update(t.v).update(n.from([0])).digest(),t.v=r(i,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function y(e,t,i,n){return e.toRed(s.mont(i)).redPow(t).fromRed().mod(n)}e.exports=u,e.exports.getKey=m,e.exports.makeKey=g},74847:function(e,t,i){"use strict";var n=i(92861).Buffer,r=i(39404),o=i(86729).ec,a=i(78170),s=i(64589);function l(e,t,i,o,s){var l=a(i);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return d(e,t,l)}if("dsa"===l.type){if("dsa"!==o)throw new Error("wrong public key type");return c(e,t,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");t=n.concat([s,t]);var u=l.modulus.byteLength(),f=[1],p=0;while(t.length+f.length+2<u)f.push(255),p+=1;f.push(0);var h=-1;while(++h<t.length)f.push(t[h]);f=n.from(f);var m=r.mont(l.modulus);e=new r(e).toRed(m),e=e.redPow(new r(l.publicExponent)),e=n.from(e.fromRed().toArray());var b=p<8?1:0;u=Math.min(e.length,f.length),e.length!==f.length&&(b=1),h=-1;while(++h<u)b|=e[h]^f[h];return 0===b}function d(e,t,i){var n=s[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var r=new o(n),a=i.data.subjectPrivateKey.data;return r.verify(t,e,a)}function c(e,t,i){var n=i.data.p,o=i.data.q,s=i.data.g,l=i.data.pub_key,d=a.signature.decode(e,"der"),c=d.s,f=d.r;u(c,o),u(f,o);var p=r.mont(n),h=c.invm(o),m=s.toRed(p).redPow(new r(t).mul(h).mod(o)).fromRed().mul(l.toRed(p).redPow(f.mul(h).mod(o)).fromRed()).mod(n).mod(o);return 0===m.cmp(f)}function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=l},30295:function(e){e.exports=function(e,t){for(var i=Math.min(e.length,t.length),n=new Buffer(i),r=0;r<i;++r)n[r]=e[r]^t[r];return n}},48287:function(e,t,i){"use strict";
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *