UNPKG

yinghe-lowcode

Version:

基于vue、ant-design-vue,datagrid的低代码平台

22 lines 14 MB
(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["yinghe-lowcode"]=t(require("vue")):e["yinghe-lowcode"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,l=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&l.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);u&&u(t);while(l.length)l.shift()()}var n={},i={2:0},r={2:0};function o(e){return a.p+"yinghe-lowcode.umd.min."+({0:"fail",1:"user"}[e]||e)+".js"}function a(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.e=function(e){var t=[],n={0:1,1:1,3:1,6:1};i[e]?t.push(i[e]):0!==i[e]&&n[e]&&t.push(i[e]=new Promise((function(t,n){for(var r="css/"+({0:"fail",1:"user"}[e]||e)+"."+{0:"a8f62f9c",1:"58559d74",3:"2c00ee8f",4:"31d6cfe0",5:"31d6cfe0",6:"1c4413f6",7:"31d6cfe0",8:"31d6cfe0",9:"31d6cfe0",10:"31d6cfe0",11:"31d6cfe0",12:"31d6cfe0",13:"31d6cfe0",14:"31d6cfe0",15:"31d6cfe0"}[e]+".css",o=a.p+r,s=document.getElementsByTagName("link"),l=0;l<s.length;l++){var c=s[l],u=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(u===r||u===o))return t()}var d=document.getElementsByTagName("style");for(l=0;l<d.length;l++){c=d[l],u=c.getAttribute("data-href");if(u===r||u===o)return t()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=t,h.onerror=function(t){var r=t&&t.target&&t.target.src||o,a=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=r,delete i[e],h.parentNode.removeChild(h),n(a)},h.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(h)})).then((function(){i[e]=0})));var s=r[e];if(0!==s)if(s)t.push(s[2]);else{var l=new Promise((function(t,n){s=r[e]=[t,n]}));t.push(s[2]=l);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,a.nc&&u.setAttribute("nonce",a.nc),u.src=o(e);var d=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(h);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",d.name="ChunkLoadError",d.type=i,d.request=o,n[1](d)}r[e]=void 0}};var h=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var s=("undefined"!==typeof self?self:this)["webpackJsonpyinghe_lowcode"]=("undefined"!==typeof self?self:this)["webpackJsonpyinghe_lowcode"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var u=l;return a(a.s="fb15")}({0:function(e,t){},"0009":function(e,t,n){},"0078":function(e,t,n){"use strict";n.r(t);var i=n("5b62"),r=n("ac1d"),o=n("6bc7"),a=n("bf95"),s=n("085e"),l=n("b9af"),c=n("4401"),u=n("70cd"),d=n("0da6"),h=n("af8d"),p=n("a470"),f=n("0d5c"),m=n("6f1d"),g="dx-slideout",_="dx-slideout-item-container",v="dx-slideout-menu",b="dx-slideout-item",y="dxSlideoutItemData",C=d["a"].inherit({ctor:function(e,t){this.callBase(e,t),this._logDeprecatedComponentWarning("20.1","dxDrawer")},_getDefaultOptions:function(){return Object(l["a"])(this.callBase(),{activeStateEnabled:!1,menuItemTemplate:"menuItem",swipeEnabled:!0,menuVisible:!1,menuPosition:"normal",menuGrouped:!1,menuGroupTemplate:"menuGroup",onMenuItemRendered:null,onMenuGroupRendered:null,contentTemplate:"content",selectionMode:"single",selectedIndex:0,selectionRequired:!0})},_itemClass:function(){return b},_itemDataKey:function(){return y},_itemContainer:function(){return Object(i["a"])(this._slideOutView.content())},_init:function(){this._selectedItemContentRendered=!1,this.callBase(),this.$element().addClass(g),this._initSlideOutView()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({menuItem:new p["a"]("item"),menuGroup:new p["a"]("group"),content:new f["a"]})},_initEditStrategy:function(){if(this.option("menuGrouped")){var e=c["a"].inherit({_getPlainItems:function(){return this.callBase().reduce((e,t)=>(e.push.apply(e,t.items),e),[])}});this._editStrategy=new e(this)}else this.callBase()},_initSlideOutView:function(){this._slideOutView=this._createComponent(this.$element(),u["default"],{integrationOptions:{},menuVisible:this.option("menuVisible"),swipeEnabled:this.option("swipeEnabled"),menuPosition:this.option("menuPosition"),onOptionChanged:this._slideOutViewOptionChanged.bind(this)}),this._itemContainer().addClass(_)},_slideOutViewOptionChanged:function(e){"menuVisible"===e.name&&this.option(e.name,e.value)},_initMarkup:function(){this._renderList(),this._renderContentTemplate(),this.callBase()},_render:function(){this._slideOutView._renderShield(),this.callBase()},_renderList:function(){var e=this._list&&this._list.$element()||Object(i["a"])("<div>").addClass(v).appendTo(Object(i["a"])(this._slideOutView.menuContent()));this._renderItemClickAction(),this._list=this._createComponent(e,h["a"],{itemTemplateProperty:"menuTemplate",selectionMode:this.option("selectionMode"),selectionRequired:this.option("selectionRequired"),indicateLoading:!1,onItemClick:this._listItemClickHandler.bind(this),items:this.option("items"),dataSource:this._dataSource,itemTemplate:this._getTemplateByOption("menuItemTemplate"),grouped:this.option("menuGrouped"),groupTemplate:this._getTemplateByOption("menuGroupTemplate"),onItemRendered:this.option("onMenuItemRendered"),onGroupRendered:this.option("onMenuGroupRendered"),onContentReady:this._updateSlideOutView.bind(this)}),this._list.option("selectedIndex",this.option("selectedIndex"))},_getGroupedOption:function(){return this.option("menuGrouped")},_updateSlideOutView:function(){this._slideOutView._dimensionChanged()},_renderItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_listItemClickHandler:function(e){var t=this._list.$element().find(".dx-list-item").index(e.itemElement);this.option("selectedIndex",t),this._itemClickAction(e)},_renderContentTemplate:function(){if(!Object(a["d"])(this._singleContent)){var e=this._itemContainer().html().length;this._getTemplateByOption("contentTemplate").render({container:Object(r["a"])(this._itemContainer())}),this._singleContent=this._itemContainer().html().length!==e}},_itemClickHandler:o["n"],_renderContentImpl:function(){if(!this._singleContent){var e=this.option("items"),t=this.option("selectedIndex");if(e.length&&t>-1){this._selectedItemContentRendered=!0;var n=this._list.getItemByIndex(t);this._renderItems([n])}}},_renderItem:function(e,t){this._itemContainer().find("."+b).remove(),this.callBase(e,t)},_selectedItemElement:function(){return this._itemElements().eq(0)},_updateSelection:function(){this._prepareContent(),this._renderContent()},_getListWidth:function(){return this._slideOutView._getMenuWidth()},_changeMenuOption:function(e,t){this._list.option(e,t),this._updateSlideOutView()},_cleanItemContainer:function(){this._singleContent||this.callBase()},beginUpdate:function(){this.callBase(),this._list&&this._list.beginUpdate()},endUpdate:function(){this._list&&this._list.endUpdate(),this.callBase()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"menuVisible":case"swipeEnabled":case"rtlEnabled":case"menuPosition":this._slideOutView.option(t,n);break;case"width":this.callBase(e),this._updateSlideOutView();break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"items":this._changeMenuOption("items",this.option("items")),this._selectedItemContentRendered||this._updateSelection();break;case"dataSource":case"selectedIndex":case"selectedItem":this._changeMenuOption(t,n),this.callBase(e);break;case"menuGrouped":this._initEditStrategy(),this._changeMenuOption("grouped",n);break;case"menuGroupTemplate":this._changeMenuOption("groupTemplate",this._getTemplate(n));break;case"onMenuItemRendered":this._changeMenuOption("onItemRendered",n);break;case"onMenuGroupRendered":this._changeMenuOption("onGroupRendered",n);break;case"onItemClick":this._renderItemClickAction();break;case"contentTemplate":this._singleContent=null,this._invalidate();break;default:this.callBase(e)}},showMenu:function(){return this._slideOutView.toggleMenuVisibility(!0)},hideMenu:function(){return this._slideOutView.toggleMenuVisibility(!1)},toggleMenuVisibility:function(e){return this._slideOutView.toggleMenuVisibility(e)}}).include(m["a"]);Object(s["a"])("dxSlideOut",C),t["default"]=C},"0081":function(e,t){e.exports=function(e){var t="[A-Z_][A-Z0-9_.]*",n={keyword:"HEADER ENDSEC DATA"},i={className:"meta",begin:"ISO-10303-21;",relevance:10},r={className:"meta",begin:"END-ISO-10303-21;",relevance:10};return{aliases:["p21","step","stp"],case_insensitive:!0,lexemes:t,keywords:n,contains:[i,r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}},"0096":function(e,t,n){"use strict"; /*! * devextreme-vue * Version: 21.2.6 * Build date: Tue Mar 01 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-vue */var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.setEmitOptionChangedFunc=t.bindOptionWatchers=void 0;var r=n("a293"),o=function(){function e(e,t,n,i,r,o,a){this._updateFunc=e,this._name=t,this._initialValues=n||{},this._nestedConfigurations=[],this._isCollectionItem=!!r,this._collectionItemIndex=o,this._expectedChildren=i||{},this._ownerConfig=a,this._componentChanges=[],this.updateValue=this.updateValue.bind(this)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullName",{get:function(){return this._name&&this._isCollectionItem?this._name+"["+this._collectionItemIndex+"]":this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentsCountChanged",{get:function(){return this._componentChanges},enumerable:!1,configurable:!0}),e.prototype.cleanComponentsCountChanged=function(){this._componentChanges=[]},Object.defineProperty(e.prototype,"fullPath",{get:function(){return this._ownerConfig&&this._ownerConfig.fullPath?this._ownerConfig.fullPath+"."+this.fullName:this.fullName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerConfig",{get:function(){return this._ownerConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialValues",{get:function(){return this._initialValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expectedChildren",{get:function(){return this._expectedChildren},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nested",{get:function(){return this._nestedConfigurations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevNestedOptions",{get:function(){return this._prevNestedConfigOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collectionItemIndex",{get:function(){return this._collectionItemIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCollectionItem",{get:function(){return this._isCollectionItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFunc",{get:function(){return this._updateFunc},enumerable:!1,configurable:!0}),e.prototype.init=function(e){this._options=e||[]},Object.defineProperty(e.prototype,"emitOptionChanged",{set:function(e){this._emitOptionChanged=e},enumerable:!1,configurable:!0}),e.prototype.setPrevNestedOptions=function(e){this._prevNestedConfigOptions=e},e.prototype.onOptionChanged=function(e){r.isEqual(e.value,e.previousValue)||this._onOptionChanged(e.fullName.split("."),e)},e.prototype.cleanNested=function(){this._nestedConfigurations=[]},e.prototype.createNested=function(t,n,i,r){var o=this._expectedChildren[t],a=t,s=i;o&&(s=o.isCollectionItem,o.optionName&&(a=o.optionName));var l=-1;s&&a&&(l=this._nestedConfigurations.filter((function(e){return e._name&&e._name===a})).length);var c=new e(this._updateFunc,a,n,r,s,l,this);return this._nestedConfigurations.push(c),c},e.prototype.updateValue=function(e,t){var n=[this.fullPath,e].filter((function(e){return e})).join(".");this._updateFunc(n,t)},e.prototype.getNestedOptionValues=function(){var e={};return this._nestedConfigurations.forEach((function(t){if(t._name){var n=i(i({},t.initialValues),t.getNestedOptionValues());if(n)if(t._isCollectionItem){var r=e[t._name];r&&Array.isArray(r)||(r=[],e[t._name]=r),r.push(n)}else e[t._name]=n}})),e},e.prototype.getOptionsToWatch=function(){var e={};return this._nestedConfigurations.forEach((function(t){return t._name&&(e[t._name]=!0)})),this._options.filter((function(t){return!e[t]}))},e.prototype._onOptionChanged=function(e,t){if(0!==e.length){var n=r.getOptionInfo(e[0]);if(n.isCollection||e.length>1){var i=this._getNestedConfig(n.fullName);if(i)return void i._onOptionChanged(e.slice(1),t);this._tryEmitOptionChanged(n.name,t.component.option(this.fullPath?this.fullPath+"."+n.name:n.name))}else this._tryEmitOptionChanged(n.name,t.value)}},e.prototype._getNestedConfig=function(e){for(var t=0,n=this._nestedConfigurations;t<n.length;t++){var i=n[t];if(i.fullName===e)return i}},e.prototype._tryEmitOptionChanged=function(e,t){this._emitOptionChanged&&this._emitOptionChanged(e,t)},e}();function a(e,t,n){var i=e&&e.getOptionsToWatch();i&&i.forEach((function(i){t.$watch(i,(function(t){n.hasOwnProperty(i)&&n[i]===t||e.updateValue(i,t),delete n[i]}))}))}function s(e,t,n){e.emitOptionChanged=function(e,i){r.isEqual(i,t.$props[e])||(n[e]=i,t.$emit("update:"+e,i))}}t.bindOptionWatchers=a,t.setEmitOptionChangedFunc=s,t.default=o},"00b1":function(e,t,n){"use strict";var i=n("7e94");t.string2binary=function(e){return i.string2binary(e)},t.string2Uint8Array=function(e){return i.transformTo("uint8array",e)},t.uint8Array2String=function(e){return i.transformTo("string",e)},t.string2Blob=function(e){var t=i.transformTo("arraybuffer",e);return i.arrayBuffer2Blob(t)},t.arrayBuffer2Blob=function(e){return i.arrayBuffer2Blob(e)},t.transformTo=function(e,t){return i.transformTo(e,t)},t.getTypeOf=function(e){return i.getTypeOf(e)},t.checkSupport=function(e){return i.checkSupport(e)},t.MAX_VALUE_16BITS=i.MAX_VALUE_16BITS,t.MAX_VALUE_32BITS=i.MAX_VALUE_32BITS,t.pretty=function(e){return i.pretty(e)},t.findCompression=function(e){return i.findCompression(e)},t.isRegExp=function(e){return i.isRegExp(e)}},"00b4":function(e,t,n){"use strict";n("ac1f");var i=n("23e7"),r=n("da84"),o=n("c65b"),a=n("e330"),s=n("1626"),l=n("861d"),c=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),u=r.Error,d=a(/./.test);i({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=this.exec;if(!s(t))return d(this,e);var n=o(t,this,e);if(null!==n&&!l(n))throw new u("RegExp exec method returned something other than an Object or null");return!!n}})},"00dc":function(e,t,n){(function(e){var i=n("58a2"),r=n("c24d"),o=n("561d");function a(t){var n=new e(r[t].prime,"hex"),i=new e(r[t].gen,"hex");return new o(n,i)}var s={binary:!0,hex:!0,base64:!0};function l(t,n,r,a){return e.isBuffer(n)||void 0===s[n]?l(t,"binary",n,r):(n=n||"binary",a=a||"binary",r=r||new e([2]),e.isBuffer(r)||(r=new e(r,a)),"number"===typeof t?new o(i(t,r),r,!0):(e.isBuffer(t)||(t=new e(t,n)),new o(t,r,!0)))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=a,t.createDiffieHellman=t.DiffieHellman=l}).call(this,n("1c35").Buffer)},"00e9":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["drawer"===e.dialogModalType?n("a-drawer",{staticStyle:{height:"calc(100% - 10px)",overflow:"auto"},attrs:{title:e.dialogTitle,maskClosable:!0,confirmLoading:e.confirmLoading,width:e.dialogWidth,placement:"right",closable:!0,visible:e.visible},on:{close:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading,size:"large"}},[n("k-form-build",{ref:"kfb",attrs:{value:e.configJson,dynamicData:e.dynamicData},on:{logEvent:e.logEvent,change:e.handleChange}})],1),0===e.operateBizBtn.length?n("div",{staticClass:"drawer-bootom-button"},[n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.handleCancel}},[n("a-button",{staticStyle:{"margin-right":"0.8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.confirmLoading},on:{click:e.handleOk}},[e._v("确认")])],1):e._e(),e.operateBizBtn.length>0?n("div",{staticClass:"drawer-bootom-button"},[e._l(e.operateBizBtn,(function(t,i){return[n("a-button",{key:i,attrs:{type:t.type?t.type:"primary",icon:t.icon},on:{click:function(n){return e.handleBusiness(t.operation,t)}}},[e._v(e._s(t.label))])]}))],2):e._e()],1):e._e(),"dialog"===e.dialogModalType?n("drag-modal",{staticStyle:{top:"5%",height:"70%","overflow-y":"hidden"},attrs:{title:e.dialogTitle,width:e.dialogWidth,visible:e.visible,isFooter:e.operateBizBtn.length>0,confirmLoading:e.confirmLoading,okText:"保存",cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading,size:"large"}},[n("k-form-build",{ref:"kfb",attrs:{value:e.configJson,dynamicData:e.dynamicData},on:{logEvent:e.logEvent,change:e.handleChange}})],1),e._l(e.operateBizBtn,(function(t,i){return n("template",{slot:"footer"},[n("a-button",{key:i,attrs:{type:t.type?t.type:"primary",icon:t.icon},on:{click:function(n){return e.handleBusiness(t.operation,t)}}},[e._v(e._s(t.label))])],1)}))],2):e._e()],1)},r=[],o=(n("cca6"),n("d3b7"),n("159b"),n("e6cf"),n("a79d"),n("5b4e")),a=n("1ae5"),s={name:"BaseModal",props:{serviceName:{type:String,default:"codeService"},width:{type:String,default:"40%"},pageId:{type:String,default:""},baseCodeType:{type:String,default:""},dialogType:{type:String,default:"dialog"},url:{type:Object,default:function(){return{add:"save",update:"updateById"}}},operateBtn:{type:Array,default:function(){return[]}},dynamicData:{type:Object},confirm:{type:Boolean,default:!1}},data:function(){return{visible:!1,model:{},dialogTitle:"新增",dialogServiceName:this.serviceName,dialogWidth:this.width,dialogBaseCodeType:this.baseCodeType,dialogModalType:this.dialogType,dialogUrl:{add:"save",update:"updateById"},configJson:{},disableSubmit:!1,confirmLoading:!1,pageIdTemp:"",enableList:[],disableList:[],ctos3CommonApi:o["c"],packageRpcParam:a["o"],uploadUrl:"/api",operateBizBtn:this.operateBtn}},methods:{add:function(e){this.edit(e||{})},edit:function(e){this.visible=!0,this.confirmLoading=!0,this.dynamicData.commonFunc=this.commonFunc,this.model=Object.assign({},e),this.dynamicData.record=e,this.model.hasOwnProperty("tailInfos")&&(Object.assign(this.model,this.model["tailInfos"]),delete this.model.tailInfos),this.initForm(e)},initForm:function(e){var t=this,n={serviceName:"formConfigService",methodName:"searchFormConfigByPageId"};this.pageIdTemp?(n.rpcParams=[this.pageIdTemp],this.confirmLoading=!1):e.pageId?e.pageId&&e.pageName?n.rpcParams=[this.pageId]:n.rpcParams=[e.pageId]:this.pageId?n.rpcParams=[this.pageId]:this.dialogBaseCodeType?n.rpcParams=[Object(a["h"])(this.dialogBaseCodeType)]:this.$message.error("未设置pageId!"),Object(o["b"])(n).then((function(n){if(0===n.responseData.statusCode){t.operateBizBtn=[];var i=n.responseData.resultData,r=JSON.parse(i.configJson);t.configJson=r,2===i.formType&&r.config.dialog&&(t.dialogTitle=r.config.dialog.dialogTitle,t.dialogServiceName=r.config.dialog.serviceName,t.dialogBaseCodeType=r.config.dialog.baseCodeType,t.dialogModalType=r.config.dialog.dialogType,r.config.dialog.add&&(t.dialogUrl.add=r.config.dialog.add),r.config.dialog.update&&(t.dialogUrl.update=r.config.dialog.update)),Object(a["A"])(t.configJson.config,"callInMounted",t)(o["c"],a["o"],t);var s=JSON.parse(i.operateConfigJson);s&&s.forEach((function(e){e.operation&&""!=e.operation&&t.operateBizBtn.push(e)})),t.configJson.dialogWidth&&(t.width=t.configJson.dialogWidth),t.$refs.kfb.setData(e),t.$refs.kfb.disable(t.disableList),t.$refs.kfb.enable(t.enableList),t.disableList=[],t.enableList=[],e.id||t.$refs.kfb.reset(),t.confirmLoading=!1}else t.$message.error("加载动态列表头失败!")})).catch((function(){}))},close:function(){this.$emit("close"),this.visible=!1,this.disableSubmit=!1},handleOk:function(){var e=this,t=this;this.$refs.kfb.getData().then((function(n){t.confirmLoading=!0;var i=Object.assign(e.model,n),r={};r.serviceName=e.dialogServiceName,e.dialogBaseCodeType?r.rpcParams=[i,e.dialogBaseCodeType]:r.rpcParams=[i],e.model.id?r.methodName=e.dialogUrl.update:r.methodName=e.dialogUrl.add,Object(o["b"])(r).then((function(e){var n=e.responseData;0===n.statusCode?(t.$message.success("操作成功"),t.$emit("ok","handleOk")):t.$message.warning("操作失败")})).finally((function(){t.confirmLoading=!1,t.close()})),e.$refs.kfb.reset()})).catch((function(){}))},handleCancel:function(){this.close(),this.$refs.kfb.reset()},handleChange:function(e,t){Object(a["A"])(this.configJson.config,"handleChange",this)(e,t,this)},logEvent:function(e,t){"onRowDblClick"!==e.event&&"onRowClick"!==e.event&&"onSelectionChanged"!==e.event&&"onRowUpdated"!==e.event&&"onRowRemoved"!==e.event&&"onRowInserted"!==e.event||Object(a["A"])(this.configJson.config,"logEvent",this)(e,t,this)},commonFunc:function(e){Object(a["A"])(this.configJson.config,"dynamicFunc",this)(e,this)},handleBusiness:function(e){Object(a["A"])(this.configJson.config,"handleBusiness",this)(e,this)}}},l=s,c=n("2877"),u=Object(c["a"])(l,i,r,!1,null,"f613f2ba",null);t["a"]=u.exports},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"00fd":function(t,n,i){var r=i("9e69"),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,l=r?r.toStringTag:void 0;function c(t){var n=a.call(t,l),i=t[l];try{t[l]=void 0;var r=!0}catch(e){}var o=s.call(t);return r&&(n?t[l]=i:delete t[l]),o}t.exports=c},"010b":function(e,t,n){"use strict";var i=n("facd"),r=n("c8fd"),o=n("b144"),a=n("3fd5"),s=n("9cde"),l=n("b7ae"),c=n("e942"),u=n("cc07"),d=n("6bc7"),h=i["a"].abstract,p=c["a"].queryByOptions,f={},m=i["a"].inherit({ctor:function(e){var t=this;e=e||{},this._eventsStrategy=new r["a"](this),Object(o["a"])(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],(function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])})),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=Object(l["a"])(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw a["a"].Error("E4005")},load:function(e){var t=this;return e=e||{},this._eventsStrategy.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done((function(n){t._eventsStrategy.fireEvent("loaded",[n,e])}))},_loadImpl:function(e){return p(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new u["a"];return e.done((function(){var e=this,n=arguments;s["j"].promise().done((function(){t.resolveWith(e,n)}))})).fail((function(){t.rejectWith(this,arguments)})),t},createQuery:h,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return p(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:h,insert:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done((function(e,n){t._eventsStrategy.fireEvent("inserted",[e,n]),t._eventsStrategy.fireEvent("modified")})))},_insertImpl:h,update:function(e,t){var n=this;return n._eventsStrategy.fireEvent("modifying"),n._eventsStrategy.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done((function(){n._eventsStrategy.fireEvent("updated",[e,t]),n._eventsStrategy.fireEvent("modified")})))},_updateImpl:h,push:function(e){var t={changes:e,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[t]),Object(u["c"])(...t.waitFor).done(()=>{this._pushImpl(e),this._eventsStrategy.fireEvent("push",[e])})},_pushImpl:d["n"],remove:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done((function(e){t._eventsStrategy.fireEvent("removed",[e]),t._eventsStrategy.fireEvent("modified")})))},_removeImpl:h,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(a["b"])},on(e,t){return this._eventsStrategy.on(e,t),this},off(e,t){return this._eventsStrategy.off(e,t),this}});m.create=function(e,t){if(!(e in f))throw a["a"].Error("E4020",e);return new f[e](t)},m.registerClass=function(e,t){return t&&(f[t]=e),e},m.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return m.registerClass(i,n),i}}(m.inherit),t["a"]=m},"0126":function(t,n,i){(function(){"use strict";function n(t,n,i,r){var o;"undefined"===typeof JSON?function(){function e(e){return e<10?"0"+e:e}var t=n.tester().isString().isNumber().isBoolean().tester();function i(i){return n.isDate(i)?isFinite(i.valueOf())?i.getUTCFullYear()+"-"+e(i.getUTCMonth()+1)+"-"+e(i.getUTCDate())+"T"+e(i.getUTCHours())+":"+e(i.getUTCMinutes())+":"+e(i.getUTCSeconds())+"Z":null:t(i)?i.valueOf():i}var r,a,s,l=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function u(e){return l.lastIndex=0,l.test(e)?'"'+e.replace(l,(function(e){var t=c[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function d(e,t){var n,o,l,c,h,p=r,f=t[e];switch(f&&(f=i(f)),"function"===typeof s&&(f=s.call(t,e,f)),typeof f){case"string":return u(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(r+=a,h=[],"[object Array]"===Object.prototype.toString.apply(f)){for(c=f.length,n=0;n<c;n+=1)h[n]=d(n,f)||"null";return l=0===h.length?"[]":r?"[\n"+r+h.join(",\n"+r)+"\n"+p+"]":"["+h.join(",")+"]",r=p,l}if(s&&"object"===typeof s)for(c=s.length,n=0;n<c;n+=1)"string"===typeof s[n]&&(o=s[n],l=d(o,f),l&&h.push(u(o)+(r?": ":":")+l));else for(o in f)Object.prototype.hasOwnProperty.call(f,o)&&(l=d(o,f),l&&h.push(u(o)+(r?": ":":")+l));return l=0===h.length?"{}":r?"{\n"+r+h.join(",\n"+r)+"\n"+p+"}":"{"+h.join(",")+"}",r=p,l}}o=function(e,t,n){var i;if(r="",a="","number"===typeof n)for(i=0;i<n;i+=1)a+=" ";else"string"===typeof n&&(a=n);if(s=t,t&&"function"!==typeof t&&("object"!==typeof t||"number"!==typeof t.length))throw new Error("JSON.stringify");return d("",{"":e})}}():o=JSON.stringify;var a=n.isHash,s=Array.prototype.slice,l=/%((?:-?\+?.?\d*)?|(?:\[[^\[|\]]*\]))?([sjdDZ])/g,c=/\{(?:\[([^\[|\]]*)\])?(\w+)\}/g,u=/(-?)(\+?)([A-Z|a-z|\W]?)([1-9][0-9]*)?$/,d=/([1-9][0-9]*)$/g;function h(e,t){var n=e;if(u.test(t)){var i=t.match(u),r=i[1],o=i[3],a=i[4];a&&(a=parseInt(a,10),n=n.length<a?_(n,a,o,r):v(n,a))}return n}function p(e,t){var i;if(!n.isNumber(e))throw new Error("stringExtended.format : when using %d the parameter must be a number!");if(i=""+e,u.test(t)){var r=t.match(u),o=r[1],a=r[2],s=r[3],l=r[4];a&&(i=(e>0?"+":"")+i),l&&(l=parseInt(l,10),i=i.length<l?_(i,l,s||"0",o):v(i,l))}return i}function f(t,n){var i,r=n.match(d),a=0;r&&(a=parseInt(r[0],10),isNaN(a)&&(a=0));try{i=o(t,null,a)}catch(e){throw new Error("stringExtended.format : Unable to parse json from ",t)}return i}var m={bold:1,bright:1,italic:3,underline:4,blink:5,inverse:7,crossedOut:9,red:31,green:32,yellow:33,blue:34,magenta:35,cyan:36,white:37,redBackground:41,greenBackground:42,yellowBackground:43,blueBackground:44,magentaBackground:45,cyanBackground:46,whiteBackground:47,encircled:52,overlined:53,grey:90,black:90},g={SMILEY:"☺",SOLID_SMILEY:"☻",HEART:"♥",DIAMOND:"♦",CLOVE:"♣",SPADE:"♠",DOT:"•",SQUARE_CIRCLE:"◘",CIRCLE:"○",FILLED_SQUARE_CIRCLE:"◙",MALE:"♂",FEMALE:"♀",EIGHT_NOTE:"♪",DOUBLE_EIGHTH_NOTE:"♫",SUN:"☼",PLAY:"►",REWIND:"◄",UP_DOWN:"↕",PILCROW:"¶",SECTION:"§",THICK_MINUS:"▬",SMALL_UP_DOWN:"↨",UP_ARROW:"↑",DOWN_ARROW:"↓",RIGHT_ARROW:"→",LEFT_ARROW:"←",RIGHT_ANGLE:"∟",LEFT_RIGHT_ARROW:"↔",TRIANGLE:"▲",DOWN_TRIANGLE:"▼",HOUSE:"⌂",C_CEDILLA:"Ç",U_UMLAUT:"ü",E_ACCENT:"é",A_LOWER_CIRCUMFLEX:"â",A_LOWER_UMLAUT:"ä",A_LOWER_GRAVE_ACCENT:"à",A_LOWER_CIRCLE_OVER:"å",C_LOWER_CIRCUMFLEX:"ç",E_LOWER_CIRCUMFLEX:"ê",E_LOWER_UMLAUT:"ë",E_LOWER_GRAVE_ACCENT:"è",I_LOWER_UMLAUT:"ï",I_LOWER_CIRCUMFLEX:"î",I_LOWER_GRAVE_ACCENT:"ì",A_UPPER_UMLAUT:"Ä",A_UPPER_CIRCLE:"Å",E_UPPER_ACCENT:"É",A_E_LOWER:"æ",A_E_UPPER:"Æ",O_LOWER_CIRCUMFLEX:"ô",O_LOWER_UMLAUT:"ö",O_LOWER_GRAVE_ACCENT:"ò",U_LOWER_CIRCUMFLEX:"û",U_LOWER_GRAVE_ACCENT:"ù",Y_LOWER_UMLAUT:"ÿ",O_UPPER_UMLAUT:"Ö",U_UPPER_UMLAUT:"Ü",CENTS:"¢",POUND:"£",YEN:"¥",CURRENCY:"¤",PTS:"₧",FUNCTION:"ƒ",A_LOWER_ACCENT:"á",I_LOWER_ACCENT:"í",O_LOWER_ACCENT:"ó",U_LOWER_ACCENT:"ú",N_LOWER_TILDE:"ñ",N_UPPER_TILDE:"Ñ",A_SUPER:"ª",O_SUPER:"º",UPSIDEDOWN_QUESTION:"¿",SIDEWAYS_L:"⌐",NEGATION:"¬",ONE_HALF:"½",ONE_FOURTH:"¼",UPSIDEDOWN_EXCLAMATION:"¡",DOUBLE_LEFT:"«",DOUBLE_RIGHT:"»",LIGHT_SHADED_BOX:"░",MEDIUM_SHADED_BOX:"▒",DARK_SHADED_BOX:"▓",VERTICAL_LINE:"│",MAZE__SINGLE_RIGHT_T:"┤",MAZE_SINGLE_RIGHT_TOP:"┐",MAZE_SINGLE_RIGHT_BOTTOM_SMALL:"┘",MAZE_SINGLE_LEFT_TOP_SMALL:"┌",MAZE_SINGLE_LEFT_BOTTOM_SMALL:"└",MAZE_SINGLE_LEFT_T:"├",MAZE_SINGLE_BOTTOM_T:"┴",MAZE_SINGLE_TOP_T:"┬",MAZE_SINGLE_CENTER:"┼",MAZE_SINGLE_HORIZONTAL_LINE:"─",MAZE_SINGLE_RIGHT_DOUBLECENTER_T:"╡",MAZE_SINGLE_RIGHT_DOUBLE_BL:"╛",MAZE_SINGLE_RIGHT_DOUBLE_T:"╢",MAZE_SINGLE_RIGHT_DOUBLEBOTTOM_TOP:"╖",MAZE_SINGLE_RIGHT_DOUBLELEFT_TOP:"╕",MAZE_SINGLE_LEFT_DOUBLE_T:"╞",MAZE_SINGLE_BOTTOM_DOUBLE_T:"╧",MAZE_SINGLE_TOP_DOUBLE_T:"╤",MAZE_SINGLE_TOP_DOUBLECENTER_T:"╥",MAZE_SINGLE_BOTTOM_DOUBLECENTER_T:"╨",MAZE_SINGLE_LEFT_DOUBLERIGHT_BOTTOM:"╘",MAZE_SINGLE_LEFT_DOUBLERIGHT_TOP:"╒",MAZE_SINGLE_LEFT_DOUBLEBOTTOM_TOP:"╓",MAZE_SINGLE_LEFT_DOUBLETOP_BOTTOM:"╙",MAZE_SINGLE_LEFT_TOP:"Γ",MAZE_SINGLE_RIGHT_BOTTOM:"╜",MAZE_SINGLE_LEFT_CENTER:"╟",MAZE_SINGLE_DOUBLECENTER_CENTER:"╫",MAZE_SINGLE_DOUBLECROSS_CENTER:"╪",MAZE_DOUBLE_LEFT_CENTER:"╣",MAZE_DOUBLE_VERTICAL:"║",MAZE_DOUBLE_RIGHT_TOP:"╗",MAZE_DOUBLE_RIGHT_BOTTOM:"╝",MAZE_DOUBLE_LEFT_BOTTOM:"╚",MAZE_DOUBLE_LEFT_TOP:"╔",MAZE_DOUBLE_BOTTOM_T:"╩",MAZE_DOUBLE_TOP_T:"╦",MAZE_DOUBLE_LEFT_T:"╠",MAZE_DOUBLE_HORIZONTAL:"═",MAZE_DOUBLE_CROSS:"╬",SOLID_RECTANGLE:"█",THICK_LEFT_VERTICAL:"▌",THICK_RIGHT_VERTICAL:"▐",SOLID_SMALL_RECTANGLE_BOTTOM:"▄",SOLID_SMALL_RECTANGLE_TOP:"▀",PHI_UPPER:"Φ",INFINITY:"∞",INTERSECTION:"∩",DEFINITION:"≡",PLUS_MINUS:"±",GT_EQ:"≥",LT_EQ:"≤",THEREFORE:"⌠",SINCE:"∵",DOESNOT_EXIST:"∄",EXISTS:"∃",FOR_ALL:"∀",EXCLUSIVE_OR:"⊕",BECAUSE:"⌡",DIVIDE:"÷",APPROX:"≈",DEGREE:"°",BOLD_DOT:"∙",DOT_SMALL:"·",CHECK:"√",ITALIC_X:"✗",SUPER_N:"ⁿ",SQUARED:"²",CUBED:"³",SOLID_BOX:"■",PERMILE:"‰",REGISTERED_TM:"®",COPYRIGHT:"©",TRADEMARK:"™",BETA:"β",GAMMA:"γ",ZETA:"ζ",ETA:"η",IOTA:"ι",KAPPA:"κ",LAMBDA:"λ",NU:"ν",XI:"ξ",OMICRON:"ο",RHO:"ρ",UPSILON:"υ",CHI_LOWER:"φ",CHI_UPPER:"χ",PSI:"ψ",ALPHA:"α",ESZETT:"ß",PI:"π",SIGMA_UPPER:"Σ",SIGMA_LOWER:"σ",MU:"µ",TAU:"τ",THETA:"Θ",OMEGA:"Ω",DELTA:"δ",PHI_LOWER:"φ",EPSILON:"ε"};function _(e,t,n,i){e=""+e,n=n||" ";var r=e.length;while(r<t)i?e+=n:e=n+e,r++;return e}function v(e,t,i){var r=e;if(n.isString(r)){if(e.length>t)if(i){var o=e.length;r=e.substring(o-t,o)}else r=e.substring(0,t)}else r=v(""+r,t);return r}function b(t,r){if(r instanceof Array){var u=0,d=r.length;return t.replace(l,(function(t,n,a){var s,l;if(!(u<d))return t;if(s=r[u++],"%s"===t||"%d"===t||"%D"===t)l=s+"";else if("%Z"===t)l=s.toUTCString();else if("%j"===t)try{l=o(s)}catch(e){throw new Error("stringExtended.format : Unable to parse json from ",s)}else switch(n=n.replace(/^\[|\]$/g,""),a){case"s":l=h(s,n);break;case"d":l=p(s,n);break;case"j":l=f(s,n);break;case"D":l=i.format(s,n);break;case"Z":l=i.format(s,n,!0);break}return l}))}if(a(r))return t.replace(c,(function(e,t,o){if(o=r[o],!n.isUndefined(o)){if(!t)return""+o;if(n.isString(o))return h(o,t);if(n.isNumber(o))return p(o,t);if(n.isDate(o))return i.format(o,t);if(n.isObject(o))return f(o,t)}return e}));var m=s.call(arguments).slice(1);return b(t,m)}function y(e,t){var n=[];return e&&(e.indexOf(t)>0?n=e.replace(/\s+/g,"").split(t):n.push(e)),n}function C(e,t){var n=[];if(t)for(var i=0;i<t;i++)n.push(e);return n.join("")}function w(e,t){var i,r,o;if(t)if(n.isArray(e))for(i=[],r=0,o=e.length;r<o;r++)i.push(w(e[r],t));else if(t instanceof Array)for(i=e,r=0,o=t.length;r<o;r++)i=w(i,t[r]);else t in m&&(i="["+m[t]+"m"+e+"");return i}function x(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,(function(e){return t&&-1!==r.indexOf(t,e)?e:"\\"+e}))}function S(e){return e.replace(/^\s*|\s*$/g,"")}function O(e){return e.replace(/^\s*/,"")}function E(e){return e.replace(/\s*$/,"")}function T(e){return 0===e.length}var k={toArray:y,pad:_,truncate:v,multiply:C,format:b,style:w,escape:x,trim:S,trimLeft:O,trimRight:E,isEmpty:T};return t.define(n.isString,k).define(n.isArray,{style:w}).expose(k).expose({characters:g})}t.exports&&(t.exports=n(i("a847"),i("583f"),i("a06a"),i("3874")))}).call(this)},"0135":function(e,t,n){ /*! * DevExpress Diagram (dx-diagram.min) * Version: 2.1.47 * Build date: Wed Jan 19 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs */ !function(t,n){e.exports=n()}(0,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=81)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeType=t.ShapeTypes=t.ShapeCategories=void 0;var i=function(){function e(){}return e.General="general",e.Flowchart="flowchart",e.OrgChart="orgChart",e.Containers="containers",e.Custom="custom",e}();t.ShapeCategories=i;var r=function(){function e(){}return e.Text="text",e.Rectangle="rectangle",e.Ellipse="ellipse",e.Cross="cross",e.Triangle="triangle",e.Diamond="diamond",e.Heart="heart",e.Pentagon="pentagon",e.Hexagon="hexagon",e.Octagon="octagon",e.Star="star",e.ArrowLeft="arrowLeft",e.ArrowUp="arrowTop",e.ArrowRight="arrowRight",e.ArrowDown="arrowBottom",e.ArrowUpDown="arrowNorthSouth",e.ArrowLeftRight="arrowEastWest",e.Process="process",e.Decision="decision",e.Terminator="terminator",e.PredefinedProcess="predefinedProcess",e.Document="document",e.MultipleDocuments="multipleDocuments",e.ManualInput="manualInput",e.Preparation="preparation",e.Data="data",e.Database="database",e.HardDisk="hardDisk",e.InternalStorage="internalStorage",e.PaperTape="paperTape",e.ManualOperation="manualOperation",e.Delay="delay",e.StoredData="storedData",e.Display="display",e.Merge="merge",e.Connector="connector",e.Or="or",e.SummingJunction="summingJunction",e.Container="container",e.VerticalContainer="verticalContainer",e.HorizontalContainer="horizontalContainer",e.Card="card",e.CardWithImageOnLeft="cardWithImageOnLeft",e.CardWithImageOnTop="cardWithImageOnTop",e.CardWithImageOnRight="cardWithImageOnRight",e}();t.ShapeTypes=r,function(e){e[e.text=0]="text",e[e.rectangle=1]="rectangle",e[e.ellipse=2]="ellipse",e[e.cross=3]="cross",e[e.triangle=4]="triangle",e[e.diamond=5]="diamond",e[e.heart=6]="heart",e[e.pentagon=7]="pentagon",e[e.hexagon=8]="hexagon",e[e.octagon=9]="octagon",e[e.star=10]="star",e[e.arrowLeft=11]="arrowLeft",e[e.arrowTop=12]="arrowTop",e[e.arrowRight=13]="arrowRight",e[e.arrowBottom=14]="arrowBottom",e[e.arrowNorthSouth=15]="arrowNorthSouth",e[e.arrowEastWest=16]="arrowEastWest",e[e.process=17]="process",e[e.decision=18]="decision",e[e.terminator=19]="terminator",e[e.predefinedProcess=20]="predefinedProcess",e[e.document=21]="document",e[e.multipleDocuments=22]="multipleDocuments",e[e.manualInput=23]="manualInput",e[e.preparation=24]="preparation",e[e.data=25]="data",e[e.database=26]="database",e[e.hardDisk=27]="hardDisk",e[e.internalStorage=28]="internalStorage",e[e.paperTape=29]="paperTape",e[e.manualOperation=30]="manualOperation",e[e.delay=31]="delay",e[e.storedData=32]="storedData",e[e.display=33]="display",e[e.merge=34]="merge",e[e.connector=35]="connector",e[e.or=36]="or",e[e.summingJunction=37]="summingJunction",e[e.verticalContainer=38]="verticalContainer",e[e.horizontalContainer=39]="horizontalContainer",e[e.cardWithImageOnLeft=40]="cardWithImageOnLeft",e[e.cardWithImageOnTop=41]="cardWithImageOnTop",e[e.cardWithImageOnRight=42]="cardWithImageOnRight"}(t.ShapeType||(t.ShapeType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.x=e,this.y=t}return e.zero=function(){return new e(0,0)},e.fromNumber=function(t){return new e(t,t)},e.prototype.isZero=function(){return 0===this.x&&0===this.y},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(e){return this.x===e.x&&this.y===e.y},e.prototype.offset=function(e,t){return this.x+=e,this.y+=t,this},e.prototype.offsetByPoint=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.multiply=function(e,t){return this.x*=e,this.y*=t,this},e.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},e.prototype.applyConverter=function(e){return this.x=e(this.x),this.y=e(this.y),this},e.plus=function(t,n){return new e(t.x+n.x,t.y+n.y)},e.minus=function(t,n){return new e(t.x-n.x,t.y-n.y)},e.xComparer=function(e,t){return e.x-t.x},e.yComparer=function(e,t){return e.y-t.y},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();t.Point=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.width=e,this.height=t}return e.empty=function(){return new e(0,0)},e.fromNumber=function(t){return new e(t,t)},e.initByCommonAction=function(t){var n=function(e){return e.width},i=function(e){return e.height};return new e(t(n,i),t(i,n))},e.prototype.isEmpty=function(){return 0===this.width&&0===this.height},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},e.prototype.offset=function(e,t){return this.width=this.width+e,this.height=this.height+t,this},e.prototype.multiply=function(e,t){return this.width*=e,this.height*=t,this},e.prototype.equals=function(e){return this.width===e.width&&this.height===e.height},e.prototype.clone=function(){return new e(this.width,this.height)},e.prototype.copyFrom=function(e){this.width=e.width,this.height=e.height},e.prototype.applyConverter=function(e){return this.width=e(this.width),this.height=e(this.height),this},e.equals=function(e,t){return e.width===t.width&&e.height===t.height},e}();t.Size=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HtmlFocusUtils=t.ObjectUtils=t.GeometryUtils=t.Utils=t.EventDispatcher=t.Range=t.LineEquation=void 0,n(175);var i=n(2),r=n(1),o=n(11),a=n(42),s=n(36),l=n(33),c=n(58),u=n(34),d=n(28),h=n(19),p=function(){function e(e,t,n){this.aParam=e,this.bParam=t,this.cParam=n}return e.fromPoints=function(t,n,i){return void 0===i&&(i=1e-5),_.areDuplicatedPoints(t,n,i)?void 0:new e(n.y-t.y,t.x-n.x,n.x*t.y-t.x*n.y)},e.prototype.getPointIntersection=function(e,t){void 0===t&&(t=1e-5);var n=this.aParam,i=this.bParam,r=this.cParam,o=e.aParam,a=e.bParam,s=e.cParam,c=o*i-n*a;if(l.MathUtils.numberCloseTo(c,0,t))return null;if(0===n){var u=(a*r-s*i)/(i*o);return this.createPoint(u,-r/i)}var d=(s*n-r*o)/c;return this.createPoint((-i*d-r)/n,d)},e.prototype.containsPoint=function(e,t){return void 0===t&&(t=1e-5),l.MathUtils.numberCloseTo(this.aParam*e.x+this.bParam*e.y+this.cParam,0,t)},e.prototype.createPoint=function(e,t,n){return void 0===n&&(n=1e-5),new r.Point(l.MathUtils.numberCloseTo(e,0,n)?0:e,l.MathUtils.numberCloseTo(t,0,n)?0:t)},e}();t.LineEquation=p;var f=function(){function e(e,t){this.from=e,this.to=void 0!==t?t:e}return Object.defineProperty(e.prototype,"length",{get:function(){return Math.abs(this.to-this.from)},enumerable:!1,configurable:!0}),e.prototype.extend=function(e){this.from=Math.min(e.from,this.from),this.to=Math.max(e.to,this.to)},e.prototype.includes=function(e){return e>=this.from&&e<=this.to},e.fromLength=function(t,n){return new e(t,t+n)},e}();t.Range=f;var m=function(){function e(){this.listeners=[]}return e.prototype.add=function(e){if(!e)throw new Error("Not Implemented");this.hasEventListener(e)||this.listeners.push(e)},e.prototype.remove=function(e){for(var t=0,n=void 0;n=this.listeners[t];t++)if(n===e){this.listeners.splice(t,1);break}},e.prototype.raise=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0,r=void 0;r=this.listeners[i];i++){var o=r[e];o&&o.apply(r,t)}},e.prototype.raise1=function(e){for(var t=0,n=void 0;n=this.listeners[t];t++)e(n)},e.prototype.hasEventListener=function(e){for(var t=0,n=this.listeners.length;t<n;t++)if(this.listeners[t]===e)return!0;return!1},e}();t.EventDispatcher=m;var g=function(){function e(){}return e.flatten=function(e){return[].concat.apply([],e)},e}();t.Utils=g;var _=function(){function e(){}return e.getCommonRectangle=function(e){if(!e.length)return new o.Rectangle(0,0,0,0);var t=Number.MAX_VALUE,n=-Number.MAX_VALUE,i=Number.MAX_VALUE,r=-Number.MAX_VALUE;return e.forEach((function(e){t=Math.min(t,e.x),n=Math.max(n,e.right),i=Math.min(i,e.y),r=Math.max(r,e.bottom)})),new o.Rectangle(t,i,n-t,r-i)},e.findFreeSpace=function(e,t,n,i){var o=[i?i.x:0],s=[i?i.y:0];e.forEach((function(e){o.push(e.x),o.push(e.right),s.push(e.y),s.push(e.bottom)})),o=o.sort((function(e,t){return e-t})).reduce((function(e,t,n){return o[n-1]!==t&&e.push(t)&&e||e}),[]);for(var l=(s=s.sort((function(e,t){return e-t})).reduce((function(e,t,n){return s[n-1]!==t&&e.push(t)&&e||e}),[])).map((function(e){return o.map((function(e,t){return o[t+1]-e}))})),c=function(e,t){for(var n=a.SearchUtils.binaryIndexOf(o,(function(e){return e-t.x})),i=a.SearchUtils.binaryIndexOf(o,(function(e){return e-t.right})),r=a.SearchUtils.binaryIndexOf(s,(function(e){return e-t.y})),c=a.SearchUtils.binaryIndexOf(s,(function(e){return e-t.bottom})),u=r;u<c;u++)for(var d=n;d<i;d++)l[u][d]*=-1},u=0,d=void 0;d=e[u];u++)c(0,d);for(var h=0;h<s.length;h++)for(var p=0;p<o.length-1;p++){var f=this.checkRect(l,s,o,h,p,t,n);if(f>0)p=f;else if(0===f)return new r.Point(o[p],s[h])}return null},e.checkRect=function(e,t,n,i,r,o,a){for(var s=0,l=0,c=n.length-2,u=i;u<t.length;u++){s=t[u+1]-t[i];for(var d=r;d<=c;d++){if(e[u][d]<0)return 0===d?-1:d;if(l=n[d+1]-n[r],o.width<=l||!a&&d===n.length-2&&o.width/2<=l){if(o.height<=s||!a&&u===t.length-2&&o.height/2<=s)return 0;c=d}}}},e.getArrowPoints=function(e,t,n,i){if(e.x===t.x&&e.y===t.y)return{point1:e.clone(),point2:e.clone(),point3:e.clone()};var o=t.x-e.x,a=t.y-e.y,s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2)),l=o/s,c=a/s,u=e.x+n*l+i*c,d=e.y+n*c-i*l,h=e.x+n*l-i*c,p=e.y+n*c+i*l,f=e.x+n*l,m=e.y+n*c;return{point1:new r.Point(u,d),point2:new r.Point(h,p),point3:new r.Point(f,m)}},e.createSegments=function(e){for(var t=[],n=1;n<e.length;n++)t.push(new u.Segment(e[n-1],e[n]));return t},e.createRectagle=function(e){var t=e.map((function(e){return e.x})),n=e.map((function(e){return e.y})),i=t.reduce((function(e,t){return Math.min(e,t)}),Number.MAX_VALUE),r=t.reduce((function(e,t){return Math.max(e,t)}),-Number.MAX_VALUE),a=n.reduce((function(e,t){return Math.min(e,t)}),Number.MAX_VALUE),s=n.reduce((function(e,t){return Math.max(e,t)}),-Number.MAX_VALUE);return new o.Rectangle(i,a,r-i,s-a)},e.createSegmentsFromRectangle=function(e){var t=[],n=new r.Point(e.x,e.y),i=new r.Point(e.right,e.y),o=new r.Point(e.right,e.bottom),a=new r.Point(e.x,e.bottom);return t.push(new u.Segment(n,i)),t.push(new u.Segment(i,o)),t.push(new u.Segment(o,a)),t.push(new u.Segment(a,n)),t},e.areSegmentsCutRectangle=function(t,n){if(!n)return!1;for(var i=e.createSegmentsFromRectangle(n),r=!1,o=!1,a=function(e){if(r&&o)return{value:!0};var a=t[e];if(a.isIntersectedByRect(n)){var s=a.startPoint,l=a.endPoint,c=n.containsPoint(s),u=n.containsPoint(l);if(!c&&!u)return{value:!0};if(c&&!u){var d=i.filter((function(e){return e.containsPoint(s)}));return d.length>0&&i.filter((function(e){return 1===d.length?!e.containsPoint(d[0].startPoint)&&!e.containsPoint(d[0].endPoint):e!==d[0]&&e!==d[1]})).some((function(e){return a.isIntersected(e)}))&&!r&&(r=!0),o||(o=!0),"continue"}if(!c&&u){r||(r=!0,o&&(o=!1));var h=i.filter((function(e){return e.containsPoint(l)}));return h.length>0&&i.filter((function(e){return 1===h.length?!e.containsPoint(h[0].startPoint)&&!e.containsPoint(h[0].endPoint):e!==h[0]&&e!==h[1]})).some((function(e){return a.isIntersected(e)}))&&!o&&(o=!0),"continue"}var p=i.filter((function(e){return e.containsPoint(s)})),f=i.filter((function(e){return e.containsPoint(l)}));if(2===p.length&&2===f.length)return{value:!0};if(1===p.length&&1===f.length&&p[0]!==f[0])return{value:!0};o||1!==f.length||p.length||(o=!0),r||1!==p.length||f.length||(r=!0,o&&(o=!1))}},s=0;s<t.length;s++){var l=a(s);if("object"==typeof l)return l.value}return r&&o},e.areIntersectedSegments=function(e,t){if(!t)return!1;for(var n,i=0;n=e[i];){for(var r=0,o=void 0;o=t[r];){if(o.isIntersected(n))return!0;r++}i++}return!1},e.isLineIntersected=function(t,n,i,r,o){var a=p.fromPoints(t,n),s=i.startPoint,l=i.endPoint;if(a.containsPoint(s)&&a.containsPoint(l))return!r&&!o;var c=p.fromPoints(s,l).getPointIntersection(a);return!(!c||!i.containsPoint(c))&&(r?!e.areDuplicatedPoints(s,c):!o||!e.areDuplicatedPoints(l,c))},e.removeUnnecessaryPoints=function(e,t,n,i){void 0===n&&(n=function(e){return void 0!==e}),void 0===i&&(i=1e-5),this.removeUnnecessaryPointsCore(e,t,n,i),this.removeBackwardPoints(e,t,n,i),this.removeUnnecessaryPointsCore(e,t,n,i)},e.removeUnnecessaryRightAnglePoints=function(e,t,n,i){void 0===n&&(n=function(e){return void 0!==e}),void 0===i&&(i=1e-5),this.removeUnnecessaryPointsCore(e,t,n,i),this.removeBackwardPoints(e,t,n,i),this.removeNotRightAnglePoints(e,t,n,i),this.removeUnnecessaryPointsCore(e,t,n,i)},e.removeUnnecessaryPointsCore=function(e,t,n,i){void 0===n&&(n=function(e){return void 0!==e}),void 0===i&&(i=1e-5),this.removeDuplicatedPoints(e,t,n,i),this.removeNotCornersPoints(e,t,n,i)},e.removeNotRightAnglePoints=function(t,n,i,r){void 0===i&&(i=function(e){return void 0!==e}),void 0===r&&(r=1e-5);for(var o,a=0;(o=t[a])&&t.length>2;){var s=this.getNextPoint(t,a,1,i),l=this.getNextPoint(t,a,-1,i);l&&s&&!e.isRightAngleCorner(l,o,s,r)&&n(o,a)||a++}},e.removeDuplicatedPoints=function(t,n,i,r){void 0===i&&(i=function(e){return void 0!==e}),void 0===r&&(r=1e-5);for(var o,a=0;(o=t[a])&&t.length>2;){var s=this.getNextPoint(t,a,1,i);if(s&&e.areDuplicatedPoints(o,s,r)){var l=a===t.length-2?a:a+1;if(n(t[l],l))continue}a++}},e.removeNotCornersPoints=function(t,n,i,r){void 0===i&&(i=function(e){return void 0!==e}),void 0===r&&(r=1e-5);for(var o,a=0;(o=t[a])&&t.length>2;){var s=this.getNextPoint(t,a,1,i),l=this.getNextPoint(t,a,-1,i);l&&s&&!e.isCorner(l,o,s,r)&&n(o,a)||a++}},e.removeBackwardPoints=function(t,n,i,r){void 0===i&&(i=function(e){return void 0!==e}),void 0===r&&(r=1e-5);for(var o,a=0;(o=t[a])&&t.length>2;){var s=this.getNextPoint(t,a,1,i),l=this.getNextPoint(t,a,-1,i);l&&s&&e.isBackwardPoint(l,o,s,r)&&n(o,a)||a++}},e.isRightAngleCorner=function(t,n,i,r){return void 0===r