{"code":"(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"app\"],{0:function(t,e,i){t.exports=i(\"56d7\")},\"00a3\":function(t,e,i){},\"028b\":function(t,e,i){\"use strict\";i(\"3f4d\")},\"02b8\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-component\",use:\"icon-component-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"034f\":function(t,e,i){\"use strict\";i(\"85ec\")},\"039a\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-download\",use:\"icon-download-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"0486\":function(t,e,i){\"use strict\";i(\"34db\")},\"04ad\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-rate\",use:\"icon-rate-usage\",viewBox:\"0 0 1069 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"068c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-upload\",use:\"icon-upload-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"06b3\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-tool\",use:\"icon-tool-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"06c2\":function(t,e,i){\"use strict\";i(\"6ef7\")},\"095c\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{ref:\"editor\",staticClass:\"editor\",style:t.styles})},o=[],r=(i(\"a9e3\"),i(\"99af\"),i(\"9339\")),s=i.n(r),a=(i(\"a753\"),i(\"8096\"),i(\"14e1\"),{name:\"Editor\",props:{value:{type:String,default:\"\"},height:{type:Number,default:null},minHeight:{type:Number,default:null},readOnly:{type:Boolean,default:!1}},data:function(){return{Quill:null,currentValue:\"\",options:{theme:\"snow\",bounds:document.body,debug:\"warn\",modules:{toolbar:[[\"bold\",\"italic\",\"underline\",\"strike\"],[\"blockquote\",\"code-block\"],[{list:\"ordered\"},{list:\"bullet\"}],[{indent:\"-1\"},{indent:\"+1\"}],[{size:[\"small\",!1,\"large\",\"huge\"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],[\"clean\"],[\"link\",\"image\",\"video\"]]},placeholder:\"请输入内容\",readOnly:this.readOnly}}},computed:{styles:function(){var t={};return this.minHeight&&(t.minHeight=\"\".concat(this.minHeight,\"px\")),this.height&&(t.height=\"\".concat(this.height,\"px\")),t}},watch:{value:{handler:function(t){t!==this.currentValue&&(this.currentValue=null===t?\"\":t,this.Quill&&this.Quill.pasteHTML(this.currentValue))},immediate:!0}},mounted:function(){this.init()},beforeDestroy:function(){this.Quill=null},methods:{init:function(){var t=this,e=this.$refs.editor;this.Quill=new s.a(e,this.options),this.Quill.pasteHTML(this.currentValue),this.Quill.on(\"text-change\",(function(e,i,n){var o=t.$refs.editor.children[0].innerHTML,r=t.Quill.getText(),s=t.Quill;t.currentValue=o,t.$emit(\"input\",o),t.$emit(\"on-change\",{html:o,text:r,quill:s})})),this.Quill.on(\"text-change\",(function(e,i,n){t.$emit(\"on-text-change\",e,i,n)})),this.Quill.on(\"selection-change\",(function(e,i,n){t.$emit(\"on-selection-change\",e,i,n)})),this.Quill.on(\"editor-change\",(function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o'});s.a.add(a);e[\"default\"]=a},\"0b8d\":function(t,e,i){},\"0c16\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-row\",use:\"icon-row-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"0e8f\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-tree\",use:\"icon-tree-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"0ee3\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-select\",use:\"icon-select-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"11d7\":function(t,e,i){\"use strict\";i(\"dbc4\")},\"12de\":function(t,e,i){},\"14c9\":function(t,e,i){},\"15e8\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-message\",use:\"icon-message-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"171d\":function(t,e,i){},\"181a\":function(t,e,i){\"use strict\";i(\"8502\")},1868:function(t,e,i){},\"18ae\":function(t,e,i){\"use strict\";i(\"9367\")},\"198d\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-password\",use:\"icon-password-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"1c18\":function(t,e,i){},\"1ff4\":function(t,e,i){\"use strict\";i(\"ca8c\")},\"20e7\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-chart\",use:\"icon-chart-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},2369:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-education\",use:\"icon-education-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"23f1\":function(t,e,i){var n={\"./404.svg\":\"49be\",\"./addy.svg\":\"3c06\",\"./bug.svg\":\"937c\",\"./build.svg\":\"b88c\",\"./button.svg\":\"c292\",\"./cascader.svg\":\"737d\",\"./chart.svg\":\"20e7\",\"./checkbox.svg\":\"9ec1\",\"./client.svg\":\"898c\",\"./clipboard.svg\":\"5aa7\",\"./code.svg\":\"d7a0\",\"./color.svg\":\"e218\",\"./component.svg\":\"02b8\",\"./dashboard.svg\":\"7154\",\"./date-range.svg\":\"ad41\",\"./date.svg\":\"a2bf\",\"./dict.svg\":\"da75\",\"./documentation.svg\":\"ed00\",\"./download.svg\":\"039a\",\"./drag.svg\":\"a2f6\",\"./druid.svg\":\"bc7b\",\"./edit.svg\":\"2fb0\",\"./education.svg\":\"2369\",\"./email.svg\":\"caf7\",\"./example.svg\":\"b6f9\",\"./excel.svg\":\"e3ff\",\"./exit-fullscreen.svg\":\"f22e\",\"./eye-open.svg\":\"74a2\",\"./eye.svg\":\"57fa\",\"./form.svg\":\"4576\",\"./fullscreen.svg\":\"72e5\",\"./github.svg\":\"cda1\",\"./guide.svg\":\"72d1\",\"./icon.svg\":\"9f4c\",\"./input.svg\":\"0b37\",\"./international.svg\":\"a601\",\"./job.svg\":\"e82a\",\"./language.svg\":\"a17a\",\"./link.svg\":\"5fda\",\"./list.svg\":\"3561\",\"./lock.svg\":\"a012\",\"./log.svg\":\"9cb5\",\"./logininfor.svg\":\"9b2c\",\"./message.svg\":\"15e8\",\"./money.svg\":\"4955\",\"./monitor.svg\":\"f71f\",\"./nacos.svg\":\"30a1\",\"./nested.svg\":\"91be\",\"./number.svg\":\"a1ac\",\"./online.svg\":\"575e\",\"./password.svg\":\"198d\",\"./pdf.svg\":\"8989\",\"./people.svg\":\"ae6e\",\"./peoples.svg\":\"dc13\",\"./phone.svg\":\"b470\",\"./post.svg\":\"482c\",\"./qq.svg\":\"39e1\",\"./question.svg\":\"5d9e\",\"./radio.svg\":\"9a4c\",\"./rate.svg\":\"04ad\",\"./row.svg\":\"0c16\",\"./search.svg\":\"679a\",\"./select.svg\":\"0ee3\",\"./sentinel.svg\":\"5600\",\"./server.svg\":\"4738\",\"./shopping.svg\":\"98ab\",\"./size.svg\":\"879b\",\"./skill.svg\":\"a263\",\"./slider.svg\":\"df36\",\"./spot.svg\":\"5ad5\",\"./star.svg\":\"4e5a\",\"./swagger.svg\":\"84e5\",\"./switch.svg\":\"243e\",\"./system.svg\":\"922f\",\"./tab.svg\":\"2723\",\"./table.svg\":\"dc78\",\"./textarea.svg\":\"7234\",\"./theme.svg\":\"7271\",\"./time-range.svg\":\"99c3\",\"./time.svg\":\"f8e6\",\"./tool.svg\":\"06b3\",\"./tree-table.svg\":\"4d24\",\"./tree.svg\":\"0e8f\",\"./upload.svg\":\"068c\",\"./user.svg\":\"d88a\",\"./validCode.svg\":\"67bd\",\"./wechat.svg\":\"2ba1\",\"./zip.svg\":\"a75d\"};function o(t){var e=r(t);return i(e)}function r(t){if(!i.o(n,t)){var e=new Error(\"Cannot find module '\"+t+\"'\");throw e.code=\"MODULE_NOT_FOUND\",e}return n[t]}o.keys=function(){return Object.keys(n)},o.resolve=r,t.exports=o,o.id=\"23f1\"},\"243e\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-switch\",use:\"icon-switch-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},2466:function(t,e,i){\"use strict\";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"InstanceManagementList\"},[i(\"TabPane\",{attrs:{label:\"历史流程\",name:\"历史流程\"}},[\"历史流程\"===t.tabalive?i(\"HistoricalProcess\",{attrs:{falg:1,tabalive:t.tabalive}}):t._e()],1)],1)},o=[],r=i(\"58f1\"),s=i(\"634a\"),a={name:\"handled\",components:{todoProcess:r[\"a\"],HistoricalProcess:s[\"a\"]},data:function(){return{tabalive:\"历史流程\",tabConfig:[{label:\"待办流程\",name:\"待办流程\"},{label:\"历史流程\",name:\"历史流程\"}]}},methods:{routeClick:function(t){1===t?this.tabalive=\"待办流程\":2===t&&(this.tabalive=\"历史流程\")},onClick:function(t){this.tabalive=t,\"历史流程\"===t?window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=2\"):window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=1\")}},created:function(){this.routeClick(2)}},l=a,h=(i(\"9c49\"),i(\"2877\")),u=Object(h[\"a\"])(l,n,o,!1,null,null,null);e[\"default\"]=u.exports},2657:function(t,e,i){\"use strict\";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"InstanceManagementList\"},[i(\"TabPane\",{attrs:{label:\"历史流程\",name:\"历史流程\"}},[\"历史流程\"===t.tabalive?i(\"HistoricalProcess\",{attrs:{tabalive:t.tabalive}}):t._e()],1)],1)},o=[],r=i(\"58f1\"),s=i(\"634a\"),a={name:\"process\",components:{todoProcess:r[\"a\"],HistoricalProcess:s[\"a\"]},data:function(){return{tabalive:\"历史流程\",tabConfig:[{label:\"待办流程\",name:\"待办流程\"},{label:\"历史流程\",name:\"历史流程\"}]}},methods:{routeClick:function(t){1===t?this.tabalive=\"待办流程\":2===t&&(this.tabalive=\"历史流程\")},onClick:function(t){this.tabalive=t,\"历史流程\"===t?window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=2\"):window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=1\")}},created:function(){this.routeClick(2)}},l=a,h=(i(\"18ae\"),i(\"2877\")),u=Object(h[\"a\"])(l,n,o,!1,null,null,null);e[\"default\"]=u.exports},2723:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-tab\",use:\"icon-tab-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"28fa\":function(t,e,i){},\"2ba1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-wechat\",use:\"icon-wechat-usage\",viewBox:\"0 0 128 110\",content:''});s.a.add(a);e[\"default\"]=a},\"2fb0\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-edit\",use:\"icon-edit-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"30a1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-nacos\",use:\"icon-nacos-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"324e\":function(t,e,i){\"use strict\";i(\"0b8d\")},\"34db\":function(t,e,i){},3561:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-list\",use:\"icon-list-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"39e1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-qq\",use:\"icon-qq-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"3b39\":function(t,e,i){},\"3c06\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-addy\",use:\"icon-addy-usage\",viewBox:\"0 0 1025 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"3f4d\":function(t,e,i){},4360:function(t,e,i){\"use strict\";var n=i(\"2b0e\"),o=i(\"2f62\"),r=i(\"a78e\"),s=i.n(r),a={sidebar:{opened:!s.a.get(\"sidebarStatus\")||!!+s.a.get(\"sidebarStatus\"),withoutAnimation:!1},device:\"desktop\",size:s.a.get(\"size\")||\"medium\"},l={TOGGLE_SIDEBAR:function(t){t.sidebar.opened=!t.sidebar.opened,t.sidebar.withoutAnimation=!1,t.sidebar.opened?s.a.set(\"sidebarStatus\",1):s.a.set(\"sidebarStatus\",0)},TOGGLE_SIDEBARTWO:function(t){t.sidebar.opened=!0,t.sidebar.withoutAnimation=!1,t.sidebar.opened?s.a.set(\"sidebarStatus\",1):s.a.set(\"sidebarStatus\",0)},CLOSE_SIDEBAR:function(t,e){s.a.set(\"sidebarStatus\",0),t.sidebar.opened=!1,t.sidebar.withoutAnimation=e},TOGGLE_DEVICE:function(t,e){t.device=e},SET_SIZE:function(t,e){t.size=e,s.a.set(\"size\",e)}},h={toggleSideBar:function(t){var e=t.commit;e(\"TOGGLE_SIDEBAR\")},toggleSideBartwo:function(t){var e=t.commit;e(\"TOGGLE_SIDEBARTWO\")},closeSideBar:function(t,e){var i=t.commit,n=e.withoutAnimation;i(\"CLOSE_SIDEBAR\",n)},toggleDevice:function(t,e){var i=t.commit;i(\"TOGGLE_DEVICE\",e)},setSize:function(t,e){var i=t.commit;i(\"SET_SIZE\",e)}},u={namespaced:!0,state:a,mutations:l,actions:h},c=(i(\"b0c0\"),i(\"498a\"),i(\"d3b7\"),i(\"7ded\")),f=i(\"5f87\"),d={state:{token:Object(f[\"a\"])(),name:\"\",userId:\"\",avatar:\"\",roles:[],permissions:[]},mutations:{SET_TOKEN:function(t,e){t.token=e},SET_EXPIRES_IN:function(t,e){t.expires_in=e},SET_NAME:function(t,e){t.name=e},SET_USERID:function(t,e){t.userId=e},SET_AVATAR:function(t,e){t.avatar=e},SET_ROLES:function(t,e){t.roles=e},SET_PERMISSIONS:function(t,e){t.permissions=e}},actions:{Login:function(t,e){var i=t.commit,n=e.username.trim(),o=e.password,r=e.code,s=e.uuid;return new Promise((function(t,e){Object(c[\"c\"])(n,o,r,s).then((function(e){var n=e.data;Object(f[\"d\"])(n.access_token),i(\"SET_TOKEN\",n.access_token),Object(f[\"c\"])(n.expires_in),i(\"SET_EXPIRES_IN\",n.expires_in),t()})).catch((function(t){e(t)}))}))},GetInfo:function(t){var e=t.commit;t.state;return new Promise((function(t,n){Object(c[\"b\"])().then((function(n){var o=n.user,r=\"\"==o.avatar?i(\"4b94\"):o.avatar;n.roles&&n.roles.length>0?(e(\"SET_ROLES\",n.roles),e(\"SET_PERMISSIONS\",n.permissions)):e(\"SET_ROLES\",[\"ROLE_DEFAULT\"]),e(\"SET_NAME\",o.userName),e(\"SET_USERID\",o.id),e(\"SET_AVATAR\",r),t(n)})).catch((function(t){n(t)}))}))},RefreshToken:function(t){var e=t.commit,i=t.state;return new Promise((function(t,n){Object(c[\"e\"])(i.token).then((function(i){Object(f[\"c\"])(i.data),e(\"SET_EXPIRES_IN\",i.data),t()})).catch((function(t){n(t)}))}))},LogOut:function(t){var e=t.commit,i=t.state;return new Promise((function(t,n){Object(c[\"d\"])(i.token).then((function(){e(\"SET_TOKEN\",\"\"),e(\"SET_ROLES\",[]),e(\"SET_PERMISSIONS\",[]),Object(f[\"b\"])(),t()})).catch((function(t){n(t)}))}))},FedLogOut:function(t){var e=t.commit;return new Promise((function(t){e(\"SET_TOKEN\",\"\"),Object(f[\"b\"])(),t()}))}}},p=d,g=i(\"2909\"),m=i(\"3835\"),v=i(\"b85c\"),y=(i(\"caad\"),i(\"2532\"),i(\"ddb0\"),i(\"a434\"),i(\"4de4\"),i(\"fb6a\"),{visitedViews:[],cachedViews:[]}),b={ADD_VISITED_VIEW:function(t,e){t.visitedViews.some((function(t){return t.path===e.path}))||t.visitedViews.push(Object.assign({},e,{title:e.meta.title||\"no-name\"}))},ADD_CACHED_VIEW:function(t,e){t.cachedViews.includes(e.name)||e.meta.noCache||t.cachedViews.push(e.name)},DEL_VISITED_VIEW:function(t,e){var i,n=Object(v[\"a\"])(t.visitedViews.entries());try{for(n.s();!(i=n.n()).done;){var o=Object(m[\"a\"])(i.value,2),r=o[0],s=o[1];if(s.path===e.path){t.visitedViews.splice(r,1);break}}}catch(a){n.e(a)}finally{n.f()}},DEL_CACHED_VIEW:function(t,e){var i=t.cachedViews.indexOf(e.name);i>-1&&t.cachedViews.splice(i,1)},DEL_OTHERS_VISITED_VIEWS:function(t,e){t.visitedViews=t.visitedViews.filter((function(t){return t.meta.affix||t.path===e.path}))},DEL_OTHERS_CACHED_VIEWS:function(t,e){var i=t.cachedViews.indexOf(e.name);t.cachedViews=i>-1?t.cachedViews.slice(i,i+1):[]},DEL_ALL_VISITED_VIEWS:function(t){var e=t.visitedViews.filter((function(t){return t.meta.affix}));t.visitedViews=e},DEL_ALL_CACHED_VIEWS:function(t){t.cachedViews=[]},UPDATE_VISITED_VIEW:function(t,e){var i,n=Object(v[\"a\"])(t.visitedViews);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o.path===e.path){o=Object.assign(o,e);break}}}catch(r){n.e(r)}finally{n.f()}}},w={addView:function(t,e){var i=t.dispatch;i(\"addVisitedView\",e),i(\"addCachedView\",e)},addVisitedView:function(t,e){var i=t.commit;i(\"ADD_VISITED_VIEW\",e)},addCachedView:function(t,e){var i=t.commit;i(\"ADD_CACHED_VIEW\",e)},delView:function(t,e){var i=t.dispatch,n=t.state;return new Promise((function(t){i(\"delVisitedView\",e),i(\"delCachedView\",e),t({visitedViews:Object(g[\"a\"])(n.visitedViews),cachedViews:Object(g[\"a\"])(n.cachedViews)})}))},delVisitedView:function(t,e){var i=t.commit,n=t.state;return new Promise((function(t){i(\"DEL_VISITED_VIEW\",e),t(Object(g[\"a\"])(n.visitedViews))}))},delCachedView:function(t,e){var i=t.commit,n=t.state;return new Promise((function(t){i(\"DEL_CACHED_VIEW\",e),t(Object(g[\"a\"])(n.cachedViews))}))},delOthersViews:function(t,e){var i=t.dispatch,n=t.state;return new Promise((function(t){i(\"delOthersVisitedViews\",e),i(\"delOthersCachedViews\",e),t({visitedViews:Object(g[\"a\"])(n.visitedViews),cachedViews:Object(g[\"a\"])(n.cachedViews)})}))},delOthersVisitedViews:function(t,e){var i=t.commit,n=t.state;return new Promise((function(t){i(\"DEL_OTHERS_VISITED_VIEWS\",e),t(Object(g[\"a\"])(n.visitedViews))}))},delOthersCachedViews:function(t,e){var i=t.commit,n=t.state;return new Promise((function(t){i(\"DEL_OTHERS_CACHED_VIEWS\",e),t(Object(g[\"a\"])(n.cachedViews))}))},delAllViews:function(t,e){var i=t.dispatch,n=t.state;return new Promise((function(t){i(\"delAllVisitedViews\",e),i(\"delAllCachedViews\",e),t({visitedViews:Object(g[\"a\"])(n.visitedViews),cachedViews:Object(g[\"a\"])(n.cachedViews)})}))},delAllVisitedViews:function(t){var e=t.commit,i=t.state;return new Promise((function(t){e(\"DEL_ALL_VISITED_VIEWS\"),t(Object(g[\"a\"])(i.visitedViews))}))},delAllCachedViews:function(t){var e=t.commit,i=t.state;return new Promise((function(t){e(\"DEL_ALL_CACHED_VIEWS\"),t(Object(g[\"a\"])(i.cachedViews))}))},updateVisitedView:function(t,e){var i=t.commit;i(\"UPDATE_VISITED_VIEW\",e)}},x={namespaced:!0,state:y,mutations:b,actions:w},k=(i(\"99af\"),i(\"159b\"),i(\"a18c\")),M=i(\"b775\"),C=function(){return Object(M[\"a\"])({url:\"/system/menu/getRouters\",method:\"get\"})},S=i(\"c1f7\"),N=i(\"74a1\"),P={state:{routes:[],addRoutes:[],sidebarRouters:[],tabIndex:\"\"},mutations:{SET_TABINDEX:function(t,e){t.tabIndex=e},SET_ROUTES:function(t,e){t.addRoutes=e,t.routes=k[\"a\"].concat(e)},SET_SIDEBAR_ROUTERS:function(t,e){t.sidebarRouters=k[\"a\"].concat(e)}},actions:{TabFn:function(t,e){var i=t.commit;t.state;return new Promise((function(t){i(\"SET_TABINDEX\",e),t()}))},GenerateRoutes:function(t){var e=t.commit;return new Promise((function(t){C().then((function(i){var n=JSON.parse(JSON.stringify(i.data)),o=JSON.parse(JSON.stringify(i.data)),r=T(n),s=T(o,!1,!0);s.push({path:\"*\",redirect:\"/404\",hidden:!0}),e(\"SET_ROUTES\",s),e(\"SET_SIDEBAR_ROUTERS\",r),t(s)}))}))}}};function T(t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(t){return e&&t.children&&(t.children=L(t.children)),t.component&&(\"Layout\"===t.component?t.component=S[\"a\"]:\"ParentView\"===t.component?t.component=N[\"a\"]:t.component=O(t.component)),null!=t.children&&t.children&&t.children.length?t.children=T(t.children,t,e):(delete t[\"children\"],delete t[\"redirect\"]),!0}))}function L(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[];return t.forEach((function(t,n){t.children&&t.children.length&&\"ParentView\"===t.component?t.children.forEach((function(e){e.path=t.path+\"/\"+e.path,e.children&&e.children.length?i=i.concat(L(e.children,e)):i.push(e)})):(e&&(t.path=e.path+\"/\"+t.path),i=i.concat(t))})),i}var O=function(t){return function(e){return Promise.all([i.e(\"chunk-3bded899\"),i.e(\"chunk-2d0b2b28\"),i.e(\"chunk-2d0e2366\"),i.e(\"chunk-c7ba20dc\"),i.e(\"chunk-36c8c066\")]).then(function(){var n=[i(\"4b3b\")(\"./\".concat(t))];e.apply(null,n)}.bind(this)).catch(i.oe)}},D=P,j=i(\"49f4\"),A=i.n(j),B=i(\"83d6\"),z=i.n(B),F=z.a.sideTheme,I=z.a.showSettings,E=z.a.tagsView,R=z.a.fixedHeader,V=z.a.sidebarLogo,_={theme:A.a.theme,sideTheme:F,showSettings:I,tagsView:E,fixedHeader:R,keepAliveArray:[\"TemplateManagementLists\"],sidebarLogo:V},H={CHANGE_SETTING:function(t,e){var i=e.key,n=e.value;t.hasOwnProperty(i)&&(t[i]=n)},changeKeepAliveArray:function(t,e){t.keepAliveArray=e}},Y={changeSetting:function(t,e){var i=t.commit;i(\"CHANGE_SETTING\",e)}},q={namespaced:!0,state:_,mutations:H,actions:Y},G={sidebar:function(t){return t.app.sidebar},size:function(t){return t.app.size},device:function(t){return t.app.device},visitedViews:function(t){return t.tagsView.visitedViews},cachedViews:function(t){return t.tagsView.cachedViews},token:function(t){return t.user.token},avatar:function(t){return t.user.avatar},name:function(t){return t.user.name},userId:function(t){return t.user.userId},introduction:function(t){return t.user.introduction},roles:function(t){return t.user.roles},permissions:function(t){return t.user.permissions},permission_routes:function(t){return t.permission.routes},sidebarRouters:function(t){return t.permission.sidebarRouters},tabIndex:function(t){return t.permission.tabIndex}},X=G,U=(i(\"5319\"),i(\"ac1f\"),i(\"25f0\"),i(\"2b3d\"),i(\"3ca3\"),i(\"b64b\"),i(\"bc3a\")),K=i.n(U);function $(){var t=\"xxxxxxxxxxxxxxxx\",e=\"0123456789abcdef\",i=e.length;return t.replace(/x/g,(function(t){return e.charAt(Math.floor(Math.random()*i))}))}K.a.interceptors.request.use((function(t){if(t.headers.accessToken=localStorage.getItem(\"accesstoken\"),t.headers[\"Content-Type\"]=\"application/json\",t.url=\"/jflow\".concat(t.url),store.state.encrypt){var e=$(),i=CryptoJS.enc.Utf8.parse(e),n=CryptoJS.AES.encrypt(JSON.stringify(t.data),i,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});t.data=n.toString();var o=new JSEncrypt;o.setPublicKey(\"\\n -----BEGIN PUBLIC KEY-----\\n \".concat(store.state.PUBLIC_KEY,\"\\n -----END PUBLIC KEY-----\")),t.headers[\"encrypt_key\"]=o.encrypt(e),t.headers[\"encrypt_type\"]=\"RSA\"}return t})),K.a.interceptors.response.use((function(t){return-1===t.data.resultCode&&window.vm.$Modal.fcError({title:\"错误\",content:t.data.resultMsg,mask:!0}),t}),(function(t){if(t.response){var e=t.response.status;403===e&&window.vm.$Modal.fcError({title:\"错误\",content:t.response.data.resultMsg,mask:!0,onOk:function(){router.push(\"/Login\"),localStorage.setItem(\"accesstoken\",null),localStorage.removeItem(\"username\",null)}})}Promise.reject(t)}));var W=K.a;n[\"default\"].use(o[\"a\"]);var J=new o[\"a\"].Store({modules:{app:u,user:p,tagsView:x,permission:D,settings:q},getters:X,network:W});e[\"a\"]=J},\"43c3\":function(t,e,i){},4446:function(t,e){},4575:function(t,e,i){\"use strict\";i(\"00a3\")},4576:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-form\",use:\"icon-form-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"469f\":function(t,e,i){\"use strict\";i(\"5c04\")},4738:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-server\",use:\"icon-server-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},4800:function(t,e,i){},\"482c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-post\",use:\"icon-post-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},4955:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-money\",use:\"icon-money-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"49be\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-404\",use:\"icon-404-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"49c8\":function(t,e,i){},\"49f4\":function(t,e,i){t.exports={theme:\"#1890ff\"}},\"4b72\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return o})),i.d(e,\"t\",(function(){return r})),i.d(e,\"d\",(function(){return s})),i.d(e,\"s\",(function(){return a})),i.d(e,\"w\",(function(){return l})),i.d(e,\"q\",(function(){return h})),i.d(e,\"o\",(function(){return u})),i.d(e,\"c\",(function(){return c})),i.d(e,\"j\",(function(){return f})),i.d(e,\"n\",(function(){return d})),i.d(e,\"h\",(function(){return p})),i.d(e,\"z\",(function(){return g})),i.d(e,\"m\",(function(){return m})),i.d(e,\"r\",(function(){return v})),i.d(e,\"f\",(function(){return y})),i.d(e,\"g\",(function(){return b})),i.d(e,\"v\",(function(){return w})),i.d(e,\"y\",(function(){return x})),i.d(e,\"A\",(function(){return k})),i.d(e,\"l\",(function(){return M})),i.d(e,\"b\",(function(){return C})),i.d(e,\"e\",(function(){return S})),i.d(e,\"u\",(function(){return N})),i.d(e,\"i\",(function(){return P})),i.d(e,\"k\",(function(){return T})),i.d(e,\"x\",(function(){return L})),i.d(e,\"p\",(function(){return O}));var n=i(\"b775\");function o(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation\",method:\"post\",data:t})}function r(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation\",method:\"put\",data:t})}function s(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation/\"+t,method:\"delete\"})}function a(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation/\"+t,method:\"get\"})}function l(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation/list\",method:\"get\",params:t})}function h(t){return Object(n[\"a\"])({url:\"/code/gen/list\",method:\"get\",params:t})}function u(t){return Object(n[\"a\"])({url:\"/code/gen/db/list\",method:\"get\",params:t})}function c(t){return Object(n[\"a\"])({url:\"/boman-gen/gen/addTable\",method:\"post\",data:t})}function f(t){return Object(n[\"a\"])({url:\"/code/gen/\"+t,method:\"get\"})}function d(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/table/listAllColumnsByTableId\",method:\"post\",data:t})}function p(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn/list\",method:\"get\",params:t})}function g(t){return Object(n[\"a\"])({url:\"/code/gen\",method:\"put\",data:t})}function m(t){return Object(n[\"a\"])({url:\"/code/gen/importTable\",method:\"post\",params:t})}function v(t){return Object(n[\"a\"])({url:\"/code/gen/preview/\"+t,method:\"get\"})}function y(t){return Object(n[\"a\"])({url:\"/code/gen/\"+t,method:\"delete\"})}function b(t){return Object(n[\"a\"])({url:\"/code/gen/genCode/\"+t,method:\"get\"})}function w(t){return Object(n[\"a\"])({url:\"/code/gen/synchDb/\"+t,method:\"get\"})}function x(t){return Object(n[\"a\"])({url:\"/boman-gen/tableSql/\"+t,method:\"get\"})}function k(t){return Object(n[\"a\"])({url:\"/boman-gen/tableSql/implement\",method:\"post\",data:t})}function M(t){return Object(n[\"a\"])({url:\"/boman-gen/tableSql/reload\",method:\"POST\",data:t})}function C(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn\",method:\"POST\",data:t})}function S(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn/\"+t,method:\"delete\"})}function N(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn\",method:\"put\",data:t})}function P(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn/getByIdWithForeignKey/\"+t,method:\"get\"})}function T(){return Object(n[\"a\"])({url:\"boman-gen/init/loadTable\",method:\"get\"})}function L(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/getTableQuery\",method:\"POST\",data:t})}function O(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/queryList\",method:\"post\",data:t})}},\"4b94\":function(t,e,i){t.exports=i.p+\"static/img/profile.473f5971.jpg\"},\"4c5b\":function(t,e,i){},\"4d24\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-tree-table\",use:\"icon-tree-table-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"4e5a\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-star\",use:\"icon-star-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"4ff4\":function(t,e,i){\"use strict\";i(\"8243\")},\"50a6\":function(t,e,i){\"use strict\";i(\"afbd\")},\"542a\":function(t,e,i){},5600:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-sentinel\",use:\"icon-sentinel-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"56d7\":function(t,e,i){\"use strict\";i.r(e);i(\"e260\"),i(\"e6cf\"),i(\"cca6\"),i(\"a79d\");var n=i(\"2b0e\"),o=i(\"a78e\"),r=i.n(o),s=i(\"1f94\"),a=i.n(s),l=i(\"5c96\"),h=i.n(l),u=(i(\"49f4\"),i(\"5eef\"),i(\"6861\"),i(\"b34b\"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{attrs:{id:\"app\"}},[t.isRouterAlive?i(\"router-view\"):t._e()],1)}),c=[],f={name:\"App\",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}},d=f,p=(i(\"034f\"),i(\"2877\")),g=Object(p[\"a\"])(d,u,c,!1,null,null,null),m=g.exports,v=i(\"4360\"),y=i(\"a18c\"),b=(i(\"caad\"),i(\"2532\"),{inserted:function(t,e,i){var n=e.value,o=\"admin\",r=v[\"a\"].getters&&v[\"a\"].getters.roles;if(!(n&&n instanceof Array&&n.length>0))throw new Error('请设置角色权限标签值\"');var s=n,a=r.some((function(t){return o===t||s.includes(t)}));a||t.parentNode&&t.parentNode.removeChild(t)}}),w={inserted:function(t,e,i){var n=e.value,o=\"*:*:*\",r=v[\"a\"].getters&&v[\"a\"].getters.permissions;if(!(n&&n instanceof Array&&n.length>0))throw new Error(\"请设置操作权限标签值\");var s=n,a=r.some((function(t){return o===t||s.includes(t)}));a||t.parentNode&&t.parentNode.removeChild(t)}},x=function(t){t.directive(\"hasRole\",b),t.directive(\"hasPermi\",w)};window.Vue&&(window[\"hasRole\"]=b,window[\"hasPermi\"]=w,Vue.use(x));var k=x,M=i(\"b775\"),C=i(\"b85c\");i(\"5319\"),i(\"ac1f\"),i(\"a9e3\");function S(t,e,i){var n,o=i,r=!0,s=\"\",a=Object(C[\"a\"])(e);try{for(a.s();!(n=a.n()).done;){var l,h=n.value,u=Object(C[\"a\"])(h.hrChildren);try{for(u.s();!(l=u.n()).done;){var c,f=l.value,d=Object(C[\"a\"])(t);try{for(d.s();!(c=d.n()).done;){var p=c.value;f.columnValue&&(r=!1),p==f.columnName&&(\"input\"==f.htmlType?(s=1,o=o.replace(f.columnName,f.columnValue)):\"datetime\"==f.htmlType&&(s=2,T(f.columnValue)?o=o.replace(f.columnName,T(f.columnValue)):r=!0))}}catch(g){d.e(g)}finally{d.f()}}}catch(g){u.e(g)}finally{u.f()}}}catch(g){a.e(g)}finally{a.f()}if(!r)return 2==s?P(N(o)):N(o)}function N(t){var e=new Function(\"return \".concat(t))();return e}function P(t){return Math.round(Number(t)/864e5)}function T(t){var e=new Date(t);return e.getTime()}i(\"63b0\"),i(\"d81d\"),i(\"d3b7\"),i(\"ddb0\");var L=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isExternal?i(\"div\",t._g({staticClass:\"svg-external-icon svg-icon\",style:t.styleExternalIcon},t.$listeners)):i(\"svg\",t._g({class:t.svgClass,attrs:{\"aria-hidden\":\"true\"}},t.$listeners),[i(\"use\",{attrs:{\"xlink:href\":t.iconName}})])},O=[],D=i(\"61f7\"),j={name:\"SvgIcon\",props:{iconClass:{type:String,required:!0},className:{type:String,default:\"\"}},computed:{isExternal:function(){return Object(D[\"a\"])(this.iconClass)},iconName:function(){return\"#icon-\".concat(this.iconClass)},svgClass:function(){return this.className?\"svg-icon \"+this.className:\"svg-icon\"},styleExternalIcon:function(){return{mask:\"url(\".concat(this.iconClass,\") no-repeat 50% 50%\"),\"-webkit-mask\":\"url(\".concat(this.iconClass,\") no-repeat 50% 50%\")}}}},A=j,B=(i(\"95cd\"),Object(p[\"a\"])(A,L,O,!1,null,\"248913c8\",null)),z=B.exports;n[\"default\"].component(\"svg-icon\",z);var F=i(\"23f1\"),I=function(t){return t.keys().map(t)};I(F);var E=i(\"5530\"),R=i(\"323e\"),V=i.n(R),_=(i(\"a5d8\"),i(\"5f87\"));V.a.configure({showSpinner:!1});var H=[\"/login\",\"/auth-redirect\",\"/bind\",\"/register\"];y[\"b\"].beforeEach((function(t,e,i){V.a.start(),Object(_[\"a\"])()?\"/login\"===t.path?(i({path:\"/\"}),V.a.done()):0===v[\"a\"].getters.roles.length?v[\"a\"].dispatch(\"GetInfo\").then((function(){v[\"a\"].dispatch(\"GenerateRoutes\").then((function(e){y[\"b\"].addRoutes(e),i(Object(E[\"a\"])(Object(E[\"a\"])({},t),{},{replace:!0}))}))})).catch((function(t){v[\"a\"].dispatch(\"LogOut\").then((function(){l[\"Message\"].error(t),i({path:\"/\"})}))})):i():-1!==H.indexOf(t.path)?i():(i(\"/login?redirect=\".concat(t.fullPath)),V.a.done())})),y[\"b\"].afterEach((function(){V.a.done()}));var Y=i(\"aa3a\"),q=i(\"c0c3\"),G=i(\"c38a\"),X=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"pagination-container\",class:{hidden:t.hidden}},[i(\"el-pagination\",t._b({attrs:{background:t.background,\"current-page\":t.currentPage,\"page-size\":t.pageSize,layout:t.layout,\"page-sizes\":t.pageSizes,total:t.total},on:{\"update:currentPage\":function(e){t.currentPage=e},\"update:current-page\":function(e){t.currentPage=e},\"update:pageSize\":function(e){t.pageSize=e},\"update:page-size\":function(e){t.pageSize=e},\"size-change\":t.handleSizeChange,\"current-change\":t.handleCurrentChange}},\"el-pagination\",t.$attrs,!1))],1)},U=[];Math.easeInOutQuad=function(t,e,i,n){return t/=n/2,t<1?i/2*t*t+e:(t--,-i/2*(t*(t-2)-1)+e)};var K=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function $(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function W(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function J(t,e,i){var n=W(),o=t-n,r=20,s=0;e=\"undefined\"===typeof e?500:e;var a=function t(){s+=r;var a=Math.easeInOutQuad(s,n,o,e);$(a),s=0;n--)this.config[n].url==i&&this.config.splice(n,1)},reseImage1:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},handlePictureCardPreview:function(t){console.log(t),this.dialogImageUrl=t.url,this.dialogVisible=!0},handleDownload:function(t){console.log(t)},handleQuery:function(){this.$emit(\"btns\")},handleCheckedCitiesChange:function(t){console.log(this.config)}}},pt=dt,gt=Object(p[\"a\"])(pt,lt,ht,!1,null,null,null),mt=gt.exports,vt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-form-item\",{staticStyle:{display:\"inline-block\"},attrs:{\"label-width\":\"120px\",label:t.formConfig.columnComment,prop:t.formConfig.columnName}},[\"input\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},on:{change:t.iChange},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"textarea\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{type:\"textarea\",placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},on:{change:t.iChange},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"select\"!=t.formConfig.htmlType||t.formConfig.fkInfo?t._e():i(\"el-select\",{attrs:{filterable:\"\",placeholder:\"请输入\"+t.formConfig.columnComment,disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(t){return i(\"el-option\",{key:t.dictValue,attrs:{label:t.dictLabel,value:t.dictValue}})})),1),\"select\"==t.formConfig.htmlType&&t.formConfig.fkInfo?i(\"el-select\",{attrs:{disabled:t.formConfig.disabshow,filterable:\"\",remote:\"\",\"remote-method\":t.remoteMethod,loading:t.loading,placeholder:\"请输入\"+t.formConfig.columnComment},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.filterList,(function(e){return i(\"el-option\",{key:e[t.formConfig.fkInfo.fkColumnName],attrs:{label:e[t.formConfig.fkInfo.dkColumnName],value:e[t.formConfig.fkInfo.fkColumnName]}})})),1):t._e(),\"checkbox\"==t.formConfig.htmlType?i(\"el-checkbox-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config,callback:function(e){t.config=e},expression:\"config\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-checkbox\",{key:e.dictLabel,attrs:{label:e.dictValue},on:{change:t.handleCheckedCitiesChange}},[t._v(\" \"+t._s(e.dictLabel)+\" \")])})),1):t._e(),\"radio\"==t.formConfig.htmlType?i(\"el-radio-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-radio\",{key:e.dictValue,attrs:{label:e.dictValue}},[t._v(t._s(e.dictLabel))])})),1):t._e(),\"datetime\"==t.formConfig.htmlType?i(\"el-date-picker\",{attrs:{disabled:t.formConfig.disabshow,type:\"date\",placeholder:\"请输入\"+t.formConfig.columnComment},on:{change:t.iChange},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-upload\",{attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"file-list\":t.config,\"list-type\":\"picture-card\",\"on-preview\":t.handlePictureCardPreview,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage}},[i(\"i\",{staticClass:\"el-icon-plus\"})]):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-dialog\",{attrs:{disabled:t.formConfig.disabshow,visible:t.dialogVisible},on:{\"update:visible\":function(e){t.dialogVisible=e}}},[i(\"img\",{attrs:{src:t.dialogImageUrl,alt:\"\"}})]):t._e(),\"fileUpload\"==t.formConfig.htmlType?i(\"el-upload\",{staticClass:\"upload-demo\",attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"on-change\":t.handleChange,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage,\"file-list\":t.config}},[i(\"el-button\",{attrs:{size:\"small\",type:\"primary\"}},[t._v(\"点击上传\")]),i(\"div\",{staticClass:\"el-upload__tip\",attrs:{slot:\"tip\"},slot:\"tip\"},[t._v(\"只能上传jpg/png文件,且不超过500kb\")])],1):t._e(),\"editor\"==t.formConfig.htmlType?i(\"editor\",{attrs:{disabled:t.formConfig.disabshow,\"min-height\":192},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e()],1)},yt=[],bt=i(\"83d6\"),wt={data:function(){return{fileList:[],defaultSettings:bt,dialogImageUrl:\"\",process:\"/prod-api\",dialogVisible:!1,disabled:!1,loading:!1,filterList:[],config:{},aliemg:{table:\"\",orderBy:\"create_time desc\",pageNo:1,pageSize:10,fixedData:{condition:{}}}}},components:{Editor:ut[\"a\"]},props:{queryData:{type:Object,default:function(t){return{showData:[]}}},formConfig:{type:Object,required:!0,default:function(t){return{sysDictData:[]}}},type:{type:Number,default:1}},created:function(){if(this.config={},this.type&&(1==this.formConfig.readonly||\"0\"==this.formConfig.mask.slice(3,4)||1==this.formConfig.isonliy?this.formConfig.disabshow=!0:this.formConfig.disabshow=!1,null==this.formConfig.fkInfo&&(this.formConfig.fkInfo=!1)),this.init(),this.formConfig.extendedAttributes){var t=JSON.parse(this.formConfig.extendedAttributes);this.extFn(t.col,t.comp)}},watch:{config:{handler:function(){this.$emit(\"modelFn\",this.formConfig.columnName,this.config[this.formConfig.columnName])},deep:!0},queryData:{handler:function(){if(this.formConfig.extendedAttributes){console.log(this.formConfig,222);var t=JSON.parse(this.formConfig.extendedAttributes);this.extFn(t.col,t.comp)}},deep:!0}},mounted:function(){},methods:{iChange:function(t){this.formConfig.isUseExtend&&(console.log(this.formConfig.columnName),this.$emit(\"iChange\",this.formConfig.columnName,t))},extFn:function(t,e){var i=this.getDyn(t,this.queryData.showData,e);this.config[this.formConfig.columnName]=i},eval:function(t){var e=new Function(\"return \".concat(t))();return e},listIndexfouFn:function(){var t=this;Object(ct[\"p\"])(this.aliemg).then((function(e){e.data&&(t.filterList=e.data.rows),t.loading=!1}))},remoteMethod:function(t){\"\"!==t?(this.loading=!0,this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=t,this.listIndexfouFn()):this.filterList=[]},upImageFn:function(t,e){this.config.push(t.data)},init:function(){\"checkbox\"==this.formConfig.htmlType||\"imageUpload\"==this.formConfig.htmlType||\"fileUpload\"==this.formConfig.htmlType?this.config=[]:this.$set(this.config,this.formConfig.columnName,(this.formConfig.columnValue?this.formConfig.columnValue:this.formConfig.defaultValue)||\"\"),this.formConfig.fkInfo&&(this.aliemg.table=this.formConfig.fkInfo.fkTableName,this.formConfig.fkInfo.value&&(this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=this.formConfig.fkInfo.value),this.listIndexfouFn())},handleChange:function(t,e){this.fileList=e.slice(-3)},getToken:function(){return Object(_[\"a\"])()},reseImage:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},reseImage1:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},handlePictureCardPreview:function(t){console.log(t),this.dialogImageUrl=t.url,this.dialogVisible=!0},handleDownload:function(t){console.log(t)},handleQuery:function(){this.$emit(\"btns\")},handleCheckedCitiesChange:function(t){console.log(this.config)}}},xt=wt,kt=Object(p[\"a\"])(xt,vt,yt,!1,null,null,null),Mt=kt.exports,Ct=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-col\",{attrs:{span:null!==t.ieug?t.ieug:8}},[i(\"el-form-item\",{staticStyle:{display:\"inline-block\"},attrs:{\"label-width\":\"120px\",label:t.formConfig.columnComment,prop:t.formConfig.columnName}},[\"input\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},on:{change:t.iChange},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"textarea\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{type:\"textarea\",placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},on:{change:t.iChange},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"select\"!=t.formConfig.htmlType||t.formConfig.fkInfo?t._e():i(\"el-select\",{attrs:{filterable:\"\",placeholder:\"请输入\"+t.formConfig.columnComment,disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(t){return i(\"el-option\",{key:t.dictValue,attrs:{label:t.dictLabel,value:t.dictValue}})})),1),\"select\"==t.formConfig.htmlType&&t.formConfig.fkInfo?i(\"el-select\",{attrs:{disabled:t.formConfig.disabshow,filterable:\"\",remote:\"\",\"remote-method\":t.remoteMethod,loading:t.loading,placeholder:\"请输入\"+t.formConfig.columnComment},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.filterList,(function(e){return i(\"el-option\",{key:e[t.formConfig.fkInfo.fkColumnName],attrs:{label:e[t.formConfig.fkInfo.dkColumnName],value:e[t.formConfig.fkInfo.fkColumnName]}})})),1):t._e(),\"checkbox\"==t.formConfig.htmlType?i(\"el-checkbox-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config,callback:function(e){t.config=e},expression:\"config\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-checkbox\",{key:e.dictLabel,attrs:{label:e.dictValue},on:{change:t.handleCheckedCitiesChange}},[t._v(\" \"+t._s(e.dictLabel)+\" \")])})),1):t._e(),\"radio\"==t.formConfig.htmlType?i(\"el-radio-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-radio\",{key:e.dictValue,attrs:{label:e.dictValue}},[t._v(t._s(e.dictLabel))])})),1):t._e(),\"datetime\"==t.formConfig.htmlType?i(\"el-date-picker\",{attrs:{disabled:t.formConfig.disabshow,type:\"date\",placeholder:\"请输入\"+t.formConfig.columnComment},on:{change:t.iChange},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-upload\",{attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"file-list\":t.config,\"list-type\":\"picture-card\",\"on-preview\":t.handlePictureCardPreview,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage}},[i(\"i\",{staticClass:\"el-icon-plus\"})]):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-dialog\",{attrs:{disabled:t.formConfig.disabshow,visible:t.dialogVisible},on:{\"update:visible\":function(e){t.dialogVisible=e}}},[i(\"img\",{attrs:{src:t.dialogImageUrl,alt:\"\"}})]):t._e(),\"fileUpload\"==t.formConfig.htmlType?i(\"el-upload\",{staticClass:\"upload-demo\",attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"on-change\":t.handleChange,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage,\"file-list\":t.config}},[i(\"el-button\",{attrs:{size:\"small\",type:\"primary\"}},[t._v(\"点击上传\")]),i(\"div\",{staticClass:\"el-upload__tip\",attrs:{slot:\"tip\"},slot:\"tip\"},[t._v(\"只能上传jpg/png文件,且不超过500kb\")])],1):t._e(),\"editor\"==t.formConfig.htmlType?i(\"editor\",{attrs:{disabled:t.formConfig.disabshow,\"min-height\":192},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e()],1)],1)},St=[],Nt=i(\"83d6\"),Pt={data:function(){return{fileList:[],defaultSettings:Nt,dialogImageUrl:\"\",process:\"/prod-api\",dialogVisible:!1,disabled:!1,loading:!1,filterList:[],config:{},aliemg:{table:\"\",orderBy:\"create_time desc\",pageNo:1,pageSize:10,fixedData:{condition:{}},ieug:8}}},components:{Editor:ut[\"a\"]},props:{queryData:{type:Object,default:function(t){return{showData:[]}}},formConfig:{type:Object,required:!0,default:{sysDictData:[]}},type:{type:Number,default:1}},created:function(){if(this.config={},this.type&&(-1==this.formConfig.tableid?(1==this.formConfig.readonly||\"0\"==this.formConfig.mask.slice(1,2)||1==this.formConfig.isonliy?this.formConfig.disabshow=!0:this.formConfig.disabshow=!1,null==this.formConfig.fkInfo&&(this.formConfig.fkInfo=!1)):(console.log(0),1==this.formConfig.readonly||\"0\"==this.formConfig.mask.slice(3,4)||1==this.formConfig.isonliy?this.formConfig.disabshow=!0:this.formConfig.disabshow=!1,null==this.formConfig.fkInfo&&(this.formConfig.fkInfo=!1))),null==this.formConfig.tableColumnuy?this.ieug=null:this.ieug=24/(this.formConfig.tableColumnuy-0),this.init(),this.formConfig.extendedAttributes){var t=JSON.parse(this.formConfig.extendedAttributes);this.extFn(t.col,t.comp)}},watch:{config:{handler:function(){this.$emit(\"modelFn\",this.formConfig.columnName,this.config[this.formConfig.columnName])},deep:!0},queryData:{handler:function(){if(this.formConfig.extendedAttributes){console.log(this.formConfig,222);var t=JSON.parse(this.formConfig.extendedAttributes);this.extFn(t.col,t.comp)}},deep:!0}},mounted:function(){console.log(this.formConfig)},methods:{iChange:function(t){this.formConfig.isUseExtend&&this.$emit(\"iChange\",this.formConfig.columnName,t)},extFn:function(t,e){var i=this.getDyn(t,this.queryData.showData,e);this.config[this.formConfig.columnName]=i},eval:function(t){var e=new Function(\"return \".concat(t))();return e},listIndexfouFn:function(){var t=this;Object(ct[\"p\"])(this.aliemg).then((function(e){e.data&&(t.filterList=e.data.rows),t.loading=!1}))},remoteMethod:function(t){\"\"!==t?(this.loading=!0,this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=t,this.listIndexfouFn()):this.filterList=[]},upImageFn:function(t,e){this.config.push(t.data)},init:function(){\"checkbox\"==this.formConfig.htmlType||\"imageUpload\"==this.formConfig.htmlType||\"fileUpload\"==this.formConfig.htmlType?this.config=[]:this.$set(this.config,this.formConfig.columnName,(this.formConfig.columnValue?this.formConfig.columnValue:this.formConfig.defaultValue)||\"\"),this.formConfig.fkInfo&&(this.aliemg.table=this.formConfig.fkInfo.fkTableName,this.formConfig.fkInfo.value&&(this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=this.formConfig.fkInfo.value),this.listIndexfouFn())},handleChange:function(t,e){this.fileList=e.slice(-3)},getToken:function(){return Object(_[\"a\"])()},reseImage:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},reseImage1:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},handlePictureCardPreview:function(t){console.log(t),this.dialogImageUrl=t.url,this.dialogVisible=!0},handleDownload:function(t){console.log(t)},handleQuery:function(){this.$emit(\"btns\")},handleCheckedCitiesChange:function(t){console.log(this.config)}}},Tt=Pt,Lt=Object(p[\"a\"])(Tt,Ct,St,!1,null,null,null),Ot=Lt.exports,Dt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",[i(\"el-form\",{ref:\"form\",staticClass:\"from_index\",attrs:{model:t.form,rules:t.rules,\"label-width\":\"160px\"}},[i(\"el-row\",t._l(t.formConfig.columns,(function(e,n){return i(\"el-col\",{key:n,attrs:{span:24}},[1==e.isEdit?i(\"el-form-item\",{staticStyle:{display:\"inline-block\"},attrs:{label:e.columnComment,prop:e.columnName}},[\"input\"==e.htmlType?i(\"el-input\",{attrs:{placeholder:\"请输入\"+e.columnComment,clearable:\"\"},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.submitForm(e)}},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}}):t._e(),\"textarea\"==e.htmlType?i(\"el-input\",{attrs:{type:\"textarea\",placeholder:\"请输入\"+e.columnComment,clearable:\"\"},on:{change:t.submitForm},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.submitForm(e)}},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}}):t._e(),\"select\"==e.htmlType?i(\"el-select\",{attrs:{filterable:\"\",placeholder:\"请输入\"+e.columnComment},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}},t._l(e.sysDictData,(function(e){return i(\"el-option\",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue},on:{change:t.submitForm}})})),1):t._e(),\"checkbox\"==e.htmlType?i(\"el-checkbox-group\",{model:{value:t.config,callback:function(e){t.config=e},expression:\"config\"}},t._l(e.sysDictData,(function(e){return i(\"el-checkbox\",{key:e.dictLabel,attrs:{label:e.dictValue},on:{change:t.submitForm}},[t._v(\" \"+t._s(e.dictLabel)+\" \")])})),1):t._e(),\"radio\"==e.htmlType?i(\"el-radio-group\",{model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}},t._l(e.sysDictData,(function(e){return i(\"el-radio\",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue},on:{change:t.submitForm}})})),1):t._e(),\"datetime\"==e.htmlType?i(\"el-date-picker\",{attrs:{type:\"date\",placeholder:\"请输入\"+e.columnComment},on:{change:t.submitForm},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}}):t._e(),\"imageUpload\"==e.htmlType?i(\"el-upload\",{attrs:{headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"list-type\":\"picture-card\",\"on-preview\":t.handlePictureCardPreview,\"on-remove\":t.handleRemove}},[i(\"i\",{staticClass:\"el-icon-plus\"})]):t._e(),\"imageUpload\"==e.htmlType?i(\"el-dialog\",{attrs:{visible:t.dialogVisible},on:{\"update:visible\":function(e){t.dialogVisible=e}}},[i(\"img\",{attrs:{width:\"100%\",src:t.dialogImageUrl,alt:\"\"}})]):t._e(),\"fileUpload\"==e.htmlType?i(\"el-upload\",{staticClass:\"upload-demo\",attrs:{headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"on-change\":t.handleChange,\"file-list\":t.fileList}},[i(\"el-button\",{attrs:{size:\"small\",type:\"primary\"}},[t._v(\"点击上传\")]),i(\"div\",{staticClass:\"el-upload__tip\",attrs:{slot:\"tip\"},slot:\"tip\"},[t._v(\"只能上传jpg/png文件,且不超过500kb\")])],1):t._e(),\"editor\"==e.htmlType?i(\"editor\",{attrs:{\"min-height\":192},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}}):t._e()],1):t._e()],1)})),1)],1),i(\"div\",{staticClass:\"dialog-footer\",attrs:{slot:\"footer\"},slot:\"footer\"},[i(\"el-button\",{attrs:{type:\"primary\"},on:{click:t.submitForm}},[t._v(\"确 定\")]),i(\"el-button\",{on:{click:t.cancel}},[t._v(\"取 消\")])],1)],1)},jt=[],At=i(\"83d6\"),Bt={data:function(){return{fileList:[],defaultSettings:At,dialogImageUrl:\"\",process:\"/prod-api\",dialogVisible:!1,disabled:!1,config:{},form:{},rules:{},open:!1}},components:{Editor:ut[\"a\"]},props:{formConfig:{},nummer:0},created:function(){this.init()},mounted:function(){},methods:{init:function(){console.log(this.config,99888),console.log(this.nummer)},handleChange:function(t,e){this.fileList=e.slice(-3)},getToken:function(){return Object(_[\"a\"])()},handleRemove:function(t,e){console.log(t,e)},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleDownload:function(t){console.log(t)},handleQuery:function(){this.$emit(\"btns\")},submitForm:function(t){var e=this;console.log(1243),console.log(this.config,t),this.form.fixedData=this.config,this.form.table=\"sys_memorandum\",this.form.objId=-1,this.$refs[\"form\"].validate((function(t){t&&Object(q[\"b\"])(e.form).then((function(t){e.msgSuccess(\"新增成功\"),e.cancel()}))}))},cancel:function(){this.$emit(\"cancel\",this.config)},handleCheckedCitiesChange:function(t){console.log(this.config)}}},zt=Bt,Ft=(i(\"e24c\"),i(\"4575\"),Object(p[\"a\"])(zt,Dt,jt,!1,null,\"415e8658\",null)),It=Ft.exports,Et=(i(\"bbb2\"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"heibox\",class:{hidden:!t.hidden.status},on:{click:function(e){t.hidden.status=!1}}},[i(\"div\",{staticClass:\"imgs\",on:{click:function(t){t.stopPropagation()}}},[i(\"img\",{staticClass:\"img\",attrs:{src:t.urls,alt:\"\"}})])])}),Rt=[],Vt={name:\"BigPicture\",props:{urls:{default:\"\",type:String},hidden:{type:Object,default:function(){return{status:\"\"}}}},methods:{}},_t=Vt,Ht=(i(\"469f\"),Object(p[\"a\"])(_t,Et,Rt,!1,null,\"b8cd9dd4\",null)),Yt=Ht.exports,qt=i(\"27d8\"),Gt=i.n(qt),Xt=i(\"4446\"),Ut=i.n(Xt);n[\"default\"].use(a.a),n[\"default\"].component(\"BigPicture\",Yt),n[\"default\"].prototype.getDicts=Y[\"d\"],n[\"default\"].prototype.getConfigKey=q[\"g\"],n[\"default\"].prototype.parseTime=G[\"c\"],n[\"default\"].prototype.resetForm=G[\"e\"],n[\"default\"].prototype.addDateRange=G[\"a\"],n[\"default\"].prototype.selectDictLabel=G[\"f\"],n[\"default\"].prototype.selectDictLabels=G[\"g\"],n[\"default\"].prototype.download=M[\"b\"],n[\"default\"].prototype.getDyn=S,n[\"default\"].prototype.handleTree=G[\"b\"],n[\"default\"].prototype.msgSuccess=function(t){this.$message({showClose:!0,message:t,type:\"success\"})},n[\"default\"].prototype.msgError=function(t){this.$message({showClose:!0,message:t,type:\"error\"})},n[\"default\"].prototype.msgInfo=function(t){this.$message.info(t)},n[\"default\"].use(Ut.a),n[\"default\"].component(\"Pagination\",et),n[\"default\"].component(\"RightToolbar\",at),n[\"default\"].component(\"DynamicForm\",mt),n[\"default\"].component(\"DynamicForms\",Mt),n[\"default\"].component(\"DynamicFormsteo\",Ot),n[\"default\"].component(\"MemoranDum\",It),n[\"default\"].use(k),n[\"default\"].use(h.a,{size:r.a.get(\"size\")||\"medium\"}),n[\"default\"].use(Gt.a),n[\"default\"].config.productionTip=!1,new n[\"default\"]({el:\"#app\",router:y[\"b\"],store:v[\"a\"],render:function(t){return t(m)}})},\"575e\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-online\",use:\"icon-online-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"57fa\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-eye\",use:\"icon-eye-usage\",viewBox:\"0 0 128 64\",content:''});s.a.add(a);e[\"default\"]=a},\"58f1\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"TodoProcess\"},[i(\"div\",{staticClass:\"btnArea\"},[i(\"el-button\",{attrs:{type:\"primary\",plain:\"\",icon:\"el-icon-search\",size:\"mini\"},on:{click:function(e){t.searchData.page=1,t.queryLists()}}},[t._v(\"查询\")]),i(\"el-button\",{attrs:{type:\"primary\",icon:\"el-icon-refresh-left\",size:\"mini\",ghost:\"\"},on:{click:function(e){return t.openModal(2)}}},[t._v(\"转派\")])],1),i(\"FormItemComponent\",{staticClass:\"form\",attrs:{formItemLists:t.formLists,buttonType:!1},on:{formChange:t.formChange}}),i(\"StandardTabletwo\",{staticClass:\"table tabgeu\",staticStyle:{height:\"400px\"},attrs:{currentPage:t.searchData.page,pageSize:t.searchData.pageSize,total:t.total,columns:t.columns,data:t.data,standardTableEvent:t.standardTableEvent}}),i(\"Modal\",{attrs:{title:t.modaltitle,mask:!0,\"mask-closable\":!1,width:852},on:{\"on-ok\":t.ok,\"on-cancel\":t.cancel},model:{value:t.openControl,callback:function(e){t.openControl=e},expression:\"openControl\"}},[i(\"div\",{staticClass:\"modalCotent\"},[i(\"mutipleSelectPop\",{ref:\"dialogtest\",attrs:{loading:t.loading,resultData:t.resultData,isUse:!1,isMutiple:!1,isCallInterface:t.openControl},on:{getResult:t.getResult}})],1)]),i(\"Modal\",{attrs:{title:\"流程详情\",width:861,closable:!0,mask:!0,\"footer-hide\":!0,\"mask-closable\":!1},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:\"modalShow\"}},[t.modalShow?i(\"FlowChartShow\",{attrs:{instanceId:t.instanceId}}):t._e()],1)],1)},o=[],r=(i(\"a9e3\"),i(\"a15b\"),i(\"d81d\"),i(\"159b\"),i(\"d3b7\"),i(\"ddfb\")),s=i(\"b895\"),a=i(\"a237\"),l=i(\"b0b2\"),h=i(\"6fb6\"),u=i(\"4360\"),c=i(\"ff02\"),f={name:\"TodoProcess\",components:{FormItemComponent:r[\"a\"],StandardTabletwo:a[\"a\"],mutipleSelectPop:l[\"a\"],FlowChartShow:h[\"a\"]},props:{falg:{type:Number,default:null},tabalive:{type:String,default:\"\"}},data:function(){var t=this;return{modaltype:0,openControl:!1,modaltitle:\"\",agree:\"\",ApprovalData:[],selectValue:\"\",formLists:[{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"工作流编号\",filed:\"instanceId\",props:{regx:/^[0-9]*$/},event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}},{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"查询索引\",filed:\"businessNumber\",event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}},{row:1,col:1,component:s[\"a\"],item:{type:\"select\",title:\"单据类型\",filed:\"businessType\",options:[{value:0,label:\"发送成功\"},{value:1,label:\"发送失败(待发送)\"},{value:2,label:\"消费成功\"},{value:3,label:\"消费失败(待消费)\"}]}},{row:1,col:1,component:s[\"a\"],item:{type:\"DatePicker\",title:\"开始时间\",filed:\"createTime\"}},{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"节点名称\",filed:\"nodeName\",event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}}],searchData:{page:1,pageSize:10,searchType:\"0,1\",excuStatus:0,userId:null,createTime:[]},total:0,columns:[{type:\"selection\",width:60,align:\"center\"},{title:\"工作流编号\",key:\"instanceId\"},{title:\"查询索引\",key:\"businessNumber\"},{title:\"单据类型\",key:\"businessName\"},{title:\"模板名称\",key:\"moduleName\"},{title:\"节点名称\",key:\"nodeName\"},{title:\"审批人\",key:\"approverValue\",render:function(t,e){return t(\"p\",{style:{maxWidth:\"160px\",overflow:\"hidden\",\"text-overflow\":\"ellipsis\",\"white-space\":\"nowrap\"}},e.row.approvers.join(\",\"))}},{title:\"发起人\",key:\"initiatorName\"},{title:\"开始时间\",key:\"createTime\"},{title:\"消耗时长\",key:\"durationTime\"},{title:\"流程状态\",key:\"processStatusName\"},{title:\"详情\",fixed:\"right\",render:function(e,i){return e(\"span\",{style:{color:\"rgba(16, 142, 233, 1)\",cursor:\"pointer\"},on:{click:function(){console.log(i.row.instanceId),t.modalShow=!0,t.instanceId=i.row.instanceId}}},\"流程进度\")}}],data:[],standardTableEvent:{\"on-change\":function(e){t.searchData.page=e,t.queryLists()},\"on-page-size-change\":function(e){t.searchData.page=1,t.searchData.pageSize=e},\"on-select\":function(e,i){var n=t;n.data.map((function(t){t.id===i.id&&(t._check=!0)}))},\"on-select-cancel\":function(e,i){var n=t;n.data.map((function(t){t.id===i.id&&(t._check=!1)}))},\"on-select-all\":function(e){var i=t;i.data.map((function(t){t._check=!0}))},\"on-select-all-cancel\":function(e){var i=t;i.data.map((function(t){t._check=!1}))}},loading:!1,resultData:{},open:!1,selectRow:{},obj:{},modalShow:!1,instanceId:null}},computed:{},watch:{tabalive:function(t,e){\"待办流程\"===t&&(this.getselectOption(),this.queryLists())}},methods:{getselectOption:function(){var t=this;Object(c[\"a\"])().then((function(e){0===e.resultCode&&t.formLists.forEach((function(t){\"businessType\"===t.item.filed&&(t.item.options=e.data.relations.map((function(t){return t.value=t.businesskey,t.label=t.businessName,t})))}))}))},queryLists:function(){var t=this;this.searchData.createTime&&this.searchData.createTime[0]&&this.searchData.createTime[1]?(this.searchData.startTime=new Date(this.searchData.createTime[0]).format(\"yyyy-MM-dd hh:mm\"),this.searchData.endTime=new Date(this.searchData.createTime[1]).format(\"yyyy-MM-dd hh:mm\"),console.log(this.searchData)):(this.searchData.startTime=\"\",this.searchData.endTime=\"\");var e=Object.assign({},this.searchData);delete e.createTime;Object(c[\"c\"])(e).then((function(e){0===e.resultCode?(console.log(1),t.total=e.total,t.data=e.data.records,console.log(e.data.records,23456)):t.$message({message:e.resultMsg,type:\"warning\"}),console.log(t.data,2345)}))},formChange:function(t){this.searchData=Object.assign({},this.searchData,t),\"[object Array]\"===Object.prototype.toString.call(this.searchData.businessType)&&0===this.searchData.businessType.length&&delete this.searchData.businessType},batchoperate:function(){var t=this,e=this,i={ids:\"\"};e.data.map((function(t){t._check&&(i.ids+=t.id+\",\")})),i.ids=i.ids.substring(0,i.ids.length-1),this.resultData.list.length>0?(i.delegateId=this.resultData.list[0].ID,Object(c[\"b\"])(i).then((function(e){var i=e;0===i.resultCode?(t.queryLists(),t.msgSuccess(i.resultMsg)):t.$message({message:i.resultMsg,type:\"warning\"})}))):this.$message({message:\"请选择转派人员\",type:\"warning\"})},getResult:function(t){this.resultData=Object.assign({},t)},ok:function(){this.batchoperate()},cancel:function(){this.resultData.list&&(this.resultData.list=[],this.resultData.total=0),this.openControl=!1},openModal:function(t){this.modaltype=t,this.modaltitle=2===t||3===t?\"选择转派人\":\"选择审批人\";var e=[];this.data.map((function(t){t._check&&e.push(t)})),e.length>0?(this.openControl=!0,this.resultData.list&&(this.resultData.list=[],this.resultData.total=0)):this.$message({message:\"请选择单据\",type:\"warning\"})},onRowClick:function(t,e,i){this.selectRow=Object.assign(this.selectRow,t)}},created:function(){this.falg&&(this.searchData.userId=u[\"a\"].getters.userId),this.getselectOption(),this.queryLists()},mounted:function(){console.log(this.searchData,8765)}},d=f,p=(i(\"bfe9\"),i(\"2877\")),g=Object(p[\"a\"])(d,n,o,!1,null,null,null);e[\"a\"]=g.exports},\"5aa7\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-clipboard\",use:\"icon-clipboard-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"5ad5\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-spot\",use:\"icon-spot-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"5c04\":function(t,e,i){},\"5d9e\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-question\",use:\"icon-question-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"5de0\":function(t,e,i){(function(e){var n=i(\"7037\").default;i(\"a4d3\"),i(\"e01a\"),i(\"d3b7\"),i(\"d28b\"),i(\"3ca3\"),i(\"ddb0\"),i(\"131a\"),i(\"e439\"),i(\"a9e3\"),i(\"130f\"),i(\"25f0\"),i(\"fb6a\"),i(\"a434\"),i(\"b0c0\"),i(\"498a\"),i(\"3410\"),i(\"a15b\"),i(\"466d\"),i(\"ac1f\"),i(\"dca8\"),i(\"d81d\"),i(\"4de4\"),i(\"e21d\"),i(\"1276\"),i(\"b680\"),i(\"5319\"),i(\"cb29\"),i(\"9911\"),i(\"159b\"),i(\"4d63\"),i(\"bf19\"),function(){var i;function o(t){var e=0;return function(){return ee&&(e=Math.max(0,n+e)),(null==i||i>n)&&(i=n),i=Number(i),0>i&&(i=Math.max(0,n+i)),e=Number(e||0);e=t.length?t.push(i):t.splice(e,0,i):k(\"Cannot insert an object into an HTMLCollection or NodeList: \"+i+\" at \"+e)}function D(t,e){Array.isArray(t)?e>=t.length?t.pop():t.splice(e,1):k(\"Cannot remove an object from an HTMLCollection or NodeList at \"+e)}function j(){var t=X.pop();return void 0===t?[]:t}function A(t){t.length=0,X.push(t)}function B(t){if(\"function\"===typeof t){if(t.className)return t.className;if(t.name)return t.name;var e=t.toString();if(e=e.substring(9,e.indexOf(\"(\")).trim(),\"\"!==e)return t._className=e}else if(P(t)&&t.constructor)return B(t.constructor);return n(t)}function z(t){var e=t;return P(t)&&(t.text?e=t.text:t.name?e=t.name:void 0!==t.key?e=t.key:void 0!==t.id?e=t.id:t.constructor===Object&&(t.Text?e=t.Text:t.Name?e=t.Name:void 0!==t.Key?e=t.Key:void 0!==t.Id?e=t.Id:void 0!==t.ID&&(e=t.ID))),void 0===e?\"undefined\":null===e?\"null\":e.toString()}function F(t,e){if(t.hasOwnProperty(e))return!0;for(t=Object.getPrototypeOf(t);t&&t!==Function;){if(t.hasOwnProperty(e))return!0;var i=t.bA;if(i&&i[e])return!0;t=Object.getPrototypeOf(t)}return!1}function I(t,e,i){Object.defineProperty(Ai.prototype,t,{get:e,set:i})}function E(){var t=U;if(0===t.length)for(var e=v.document.getElementsByTagName(\"canvas\"),i=e.length,n=0;ni;i++)e[\"0123456789abcdef\".charAt(i>>4)+\"0123456789abcdef\".charAt(15&i)]=String.fromCharCode(i);t.length%2&&(t=\"0\"+t),i=[];for(var n=0,o=0;oi;i++)e[i]=i;for(i=n=0;256>i;i++)n=(n+e[i]+119)%256,o=e[i],e[i]=e[n],e[n]=o;n=i=0;for(var r=\"\",s=0;sthis.key)return!1;t=t.j;var e=t.length,i=++this.Sa,n=this.We;if(null!==n)for(;ithis.key)return!1;var e=--this.Sa;return 0<=e?(this.key=e,this.value=t.j[e],!0):(this.xd(),!1)},it.prototype.dd=function(){return this.next()},it.prototype.first=function(){var t=this.pb;this.la=t.Ba;var e=t.j;return this.Sa=t=e.length-1,0<=t?(e=e[t],this.key=t,this.value=e):null},it.prototype.any=function(t){var e=this.pb;e.Qg=null,e=e.j;var i=e.length;for(this.Sa=i,--i;0<=i;i--)if(t(e[i]))return!0;return!1},it.prototype.all=function(t){var e=this.pb;e.Qg=null,e=e.j;var i=e.length;for(this.Sa=i,--i;0<=i;i--)if(!t(e[i]))return!1;return!0},it.prototype.each=function(t){var e=this.pb;e.Qg=null,e=e.j;var i=e.length;for(this.Sa=i,--i;0<=i;i--)t(e[i]);return this},it.prototype.map=function(t){var e=this.pb;e.Qg=null;var i=[];e=e.j;var n=e.length;for(this.Sa=n,--n;0<=n;n--)i.push(t(e[n]));return t=new nt,t.j=i,t.kb(),t.iterator},it.prototype.filter=function(t){var e=this.pb;e.Qg=null;var i=[];e=e.j;var n=e.length;for(this.Sa=n,--n;0<=n;n--){var o=e[n];t(o)&&i.push(o)}return t=new nt,t.j=i,t.kb(),t.iterator},it.prototype.xd=function(){this.key=-1,this.value=null,this.la=-1,this.pb.Qg=this},it.prototype.toString=function(){return\"ListIteratorBackwards(\"+this.Sa+\"/\"+this.pb.count+\")\"},p.Object.defineProperties(it.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.pb.j.length}}}),it.prototype.first=it.prototype.first,it.prototype.hasNext=it.prototype.dd,it.prototype.next=it.prototype.next,it.prototype.reset=it.prototype.reset,it.className=\"ListIteratorBackwards\",i=nt.prototype,i.kb=function(){var t=this.Ba;t++,999999999t||t>=e.length)&&C(t,\"0 <= i < length\",nt,\"elt:i\"),e[t]},i.get=function(t){return this.N(t)},i.gd=function(t,e){var i=this.j;(0>t||t>=i.length)&&C(t,\"0 <= i < length\",nt,\"setElt:i\"),this.v&&M(this,t),i[t]=e},i.set=function(t,e){this.gd(t,e)},i.first=function(){var t=this.j;return 0===t.length?null:t[0]},i.Tb=function(){var t=this.j,e=t.length;return 0t&&C(t,\">= 0\",nt,\"insertAt:i\"),this.v&&M(this,t);var i=this.j;t>=i.length?i.push(e):i.splice(t,0,e),this.kb()},i.remove=function(t){if(null===t)return!1;this.v&&M(this,t);var e=this.j;return t=e.indexOf(t),-1!==t&&(t===e.length-1?e.pop():e.splice(t,1),this.kb(),!0)},i.delete=function(t){return this.remove(t)},i.mb=function(t){var e=this.j;(0>t||t>=e.length)&&C(t,\"0 <= i < length\",nt,\"removeAt:i\"),this.v&&M(this,t),t===e.length-1?e.pop():e.splice(t,1),this.kb()},i.removeRange=function(t,e){var i=this.j,n=i.length;if(0>t)t=0;else if(t>=n)return this;if(0>e)return this;if(e>=n&&(e=n-1),t>e)return this;this.v&&M(this);for(var o=t,r=e+1;r=r)return this;if((0>e||e>=o-1)&&C(e,\"0 <= from < length\",nt,\"sortRange:from\"),2===r)return i=n[e],o=n[e+1],0=o)n.sort(t);else for(e=n.slice(0,i),e.sort(t),t=0;t=o)for(i=n.slice(e),i.sort(t),t=e;t=this.j.length)return Q;var t=this.Ja;return null!==t?(t.reset(),t):new et(this)}},iteratorBackwards:{get:function(){if(0>=this.j.length)return Q;var t=this.Qg;return null!==t?(t.reset(),t):new it(this)}}}),nt.prototype.reverse=nt.prototype.reverse,nt.prototype.sortRange=nt.prototype.Vi,nt.prototype.sort=nt.prototype.sort,nt.prototype.toSet=nt.prototype.Qv,nt.prototype.toArray=nt.prototype.Na,nt.prototype.removeRange=nt.prototype.removeRange,nt.prototype.removeAt=nt.prototype.mb,nt.prototype[\"delete\"]=nt.prototype.delete,nt.prototype.remove=nt.prototype.remove,nt.prototype.insertAt=nt.prototype.Ib,nt.prototype.pop=nt.prototype.pop,nt.prototype.last=nt.prototype.Tb,nt.prototype.first=nt.prototype.first,nt.prototype.set=nt.prototype.set,nt.prototype.setElt=nt.prototype.gd,nt.prototype.get=nt.prototype.get,nt.prototype.elt=nt.prototype.N,nt.prototype.indexOf=nt.prototype.indexOf,nt.prototype.has=nt.prototype.has,nt.prototype.contains=nt.prototype.contains,nt.prototype.clear=nt.prototype.clear,nt.prototype.addAll=nt.prototype.addAll,nt.prototype.push=nt.prototype.push,nt.prototype.add=nt.prototype.add,nt.prototype.thaw=nt.prototype.ha,nt.prototype.freeze=nt.prototype.freeze,nt.className=\"List\",ot.prototype.reset=function(){var t=this.eg;t.Ja=null,this.la=t.Ba,this.na=null},ot.prototype.next=function(){var t=this.eg;if(t.Ba!==this.la&&null===this.key)return!1;var e=this.na;return e=null===e?t.fa:e.oa,null!==e?(this.na=e,this.value=e.value,this.key=e.key,!0):(this.xd(),!1)},ot.prototype.dd=function(){return this.next()},ot.prototype.first=function(){var t=this.eg;if(this.la=t.Ba,t=t.fa,null!==t){this.na=t;var e=t.value;return this.key=t.key,this.value=e}return null},ot.prototype.any=function(t){var e=this.eg;for(this.na=e.Ja=null,e=e.fa;null!==e;){if(t(e.value))return!0;e=e.oa}return!1},ot.prototype.all=function(t){var e=this.eg;for(this.na=e.Ja=null,e=e.fa;null!==e;){if(!t(e.value))return!1;e=e.oa}return!0},ot.prototype.each=function(t){var e=this.eg;for(this.na=e.Ja=null,e=e.fa;null!==e;)t(e.value),e=e.oa;return this},ot.prototype.map=function(t){var e=this.eg;e.Ja=null;var i=new nt;for(e=e.fa;null!==e;)i.add(t(e.value)),e=e.oa;return i.iterator},ot.prototype.filter=function(t){var e=this.eg;e.Ja=null;var i=new nt;for(e=e.fa;null!==e;){var n=e.value;t(n)&&i.add(n),e=e.oa}return i.iterator},ot.prototype.xd=function(){this.value=this.key=null,this.la=-1,this.eg.Ja=this},ot.prototype.toString=function(){return null!==this.na?\"SetIterator@\"+this.na.value:\"SetIterator\"},p.Object.defineProperties(ot.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Cb}}}),ot.prototype.first=ot.prototype.first,ot.prototype.hasNext=ot.prototype.dd,ot.prototype.next=ot.prototype.next,ot.prototype.reset=ot.prototype.reset,ot.className=\"SetIterator\",i=rt.prototype,i.kb=function(){var t=this.Ba;t++,999999999=this.Cb)return Q;var t=this.Ja;return null!==t?(t.reset(),t):new ot(this)}}}),rt.prototype.toList=rt.prototype.Pv,rt.prototype.toArray=rt.prototype.Na,rt.prototype.clear=rt.prototype.clear,rt.prototype.retainAll=rt.prototype.Pz,rt.prototype.removeAll=rt.prototype.lq,rt.prototype[\"delete\"]=rt.prototype.delete,rt.prototype.remove=rt.prototype.remove,rt.prototype.first=rt.prototype.first,rt.prototype.containsAny=rt.prototype.wy,rt.prototype.containsAll=rt.prototype.vy,rt.prototype.has=rt.prototype.has,rt.prototype.contains=rt.prototype.contains,rt.prototype.addAll=rt.prototype.addAll,rt.prototype.add=rt.prototype.add,rt.prototype.thaw=rt.prototype.ha,rt.prototype.freeze=rt.prototype.freeze;var ht=1;function ut(t){this.ja=t,this.la=t.Ba,this.na=null}function ct(t){rt.call(this),st(this),this.v=!0,this.ja=t}function ft(t){this.ja=t,t.Re=null,this.la=t.Ba,this.na=null}function dt(t,e){this.key=t,this.value=e,this.wl=this.oa=null}function pt(t){this.ja=t,t.Ja=null,this.la=t.Ba,this.na=null}function gt(t){st(this),this.v=!1,this.Db={},this.Cb=0,this.Re=this.Ja=null,this.Ba=0,this.Se=this.fa=null,void 0!==t&&(\"function\"===typeof t||\"string\"===typeof t?N():this.addAll(t))}function mt(t,e){void 0===t?this.G=this.F=0:\"number\"===typeof t&&\"number\"===typeof e?(this.F=t,this.G=e):k(\"Invalid arguments to Point constructor: \"+t+\", \"+e),this.v=!1}function vt(t){if(\"string\"===typeof t){t=t.split(\" \");for(var e=0,i=0;\"\"===t[e];)e++;var n=t[e++];n&&(i=parseFloat(n));for(var o=0;\"\"===t[e];)e++;return(n=t[e++])&&(o=parseFloat(n)),new mt(i,o)}return new mt}function yt(t){return t.x.toString()+\" \"+t.y.toString()}function bt(t,e){if(0===t)return 0e?270:0;if(0===e)return 0t?i=0>e?i+180:180-i:0>e&&(i=360-i),i}function wt(t,e){return e.Ud(t),t}function xt(t,e,i,n,o,r){var s=o-i,a=r-n,l=s*s+a*a;i-=t,n-=e;var h=-i*s-n*a;return 0>=h||h>=l?(s=o-t,a=r-e,Math.min(i*i+n*n,s*s+a*a)):(t=s*n-a*i,t*t/l)}function kt(t,e,i,n){return t=i-t,e=n-e,t*t+e*e}function Mt(t,e,i,n){return t=i-t,e=n-e,0===t?0e?270:0:0===e?0t?n=0>e?n+180:180-n:0>e&&(n=360-n),n)}rt.className=\"Set\",rt.uniqueHash=st,rt.hashIdUnique=at,rt.hashId=lt,ut.prototype.reset=function(){this.la=this.ja.Ba,this.na=null},ut.prototype.next=function(){var t=this.ja;if(t.Ba!==this.la&&null===this.key)return!1;var e=this.na;return e=null===e?t.fa:e.oa,null!==e?(this.na=e,this.value=this.key=t=e.key,!0):(this.xd(),!1)},ut.prototype.dd=function(){return this.next()},ut.prototype.first=function(){var t=this.ja;return this.la=t.Ba,t=t.fa,null!==t?(this.na=t,this.value=this.key=t=t.key):null},ut.prototype.any=function(t){var e=this.ja;for(this.na=null,e=e.fa;null!==e;){if(t(e.key))return!0;e=e.oa}return!1},ut.prototype.all=function(t){var e=this.ja;for(this.na=null,e=e.fa;null!==e;){if(!t(e.key))return!1;e=e.oa}return!0},ut.prototype.each=function(t){var e=this.ja;for(this.na=null,e=e.fa;null!==e;)t(e.key),e=e.oa;return this},ut.prototype.map=function(t){var e=this.ja;this.na=null;var i=new nt;for(e=e.fa;null!==e;)i.add(t(e.key)),e=e.oa;return i.iterator},ut.prototype.filter=function(t){var e=this.ja;this.na=null;var i=new nt;for(e=e.fa;null!==e;){var n=e.key;t(n)&&i.add(n),e=e.oa}return i.iterator},ut.prototype.xd=function(){this.value=this.key=null,this.la=-1},ut.prototype.toString=function(){return null!==this.na?\"MapKeySetIterator@\"+this.na.value:\"MapKeySetIterator\"},p.Object.defineProperties(ut.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ja.Cb}}}),ut.prototype.first=ut.prototype.first,ut.prototype.hasNext=ut.prototype.dd,ut.prototype.next=ut.prototype.next,ut.prototype.reset=ut.prototype.reset,ut.className=\"MapKeySetIterator\",d(ct,rt),i=ct.prototype,i.freeze=function(){return this},i.ha=function(){return this},i.toString=function(){return\"MapKeySet(\"+this.ja.toString()+\")\"},i.add=function(){return k(\"This Set is read-only: \"+this.toString()),this},i.contains=function(t){return this.ja.contains(t)},i.has=function(t){return this.contains(t)},i.remove=function(){return k(\"This Set is read-only: \"+this.toString()),!1},i.delete=function(t){return this.remove(t)},i.clear=function(){k(\"This Set is read-only: \"+this.toString())},i.first=function(){var t=this.ja.fa;return null!==t?t.key:null},ct.prototype.any=function(t){for(var e=this.ja.fa;null!==e;){if(t(e.key))return!0;e=e.oa}return!1},ct.prototype.all=function(t){for(var e=this.ja.fa;null!==e;){if(!t(e.key))return!1;e=e.oa}return!0},ct.prototype.each=function(t){for(var e=this.ja.fa;null!==e;)t(e.key),e=e.oa;return this},ct.prototype.map=function(t){for(var e=new rt,i=this.ja.fa;null!==i;)e.add(t(i.key)),i=i.oa;return e},ct.prototype.filter=function(t){for(var e=new rt,i=this.ja.fa;null!==i;){var n=i.key;t(n)&&e.add(n),i=i.oa}return e},ct.prototype.copy=function(){return new ct(this.ja)},ct.prototype.Qv=function(){var t,e=new rt,i=this.ja.Db;for(t in i)e.add(i[t].key);return e},ct.prototype.Na=function(){var t,e=this.ja.Db,i=Array(this.ja.Cb),n=0;for(t in e)i[n]=e[t].key,n++;return i},ct.prototype.Pv=function(){var t,e=new nt,i=this.ja.Db;for(t in i)e.add(i[t].key);return e},p.Object.defineProperties(ct.prototype,{count:{get:function(){return this.ja.Cb}},size:{get:function(){return this.ja.Cb}},iterator:{get:function(){return 0>=this.ja.Cb?Q:new ut(this.ja)}}}),ct.prototype.toList=ct.prototype.Pv,ct.prototype.toArray=ct.prototype.Na,ct.prototype.toSet=ct.prototype.Qv,ct.prototype.first=ct.prototype.first,ct.prototype.clear=ct.prototype.clear,ct.prototype[\"delete\"]=ct.prototype.delete,ct.prototype.remove=ct.prototype.remove,ct.prototype.has=ct.prototype.has,ct.prototype.contains=ct.prototype.contains,ct.prototype.add=ct.prototype.add,ct.prototype.thaw=ct.prototype.ha,ct.prototype.freeze=ct.prototype.freeze,ct.className=\"MapKeySet\",ft.prototype.reset=function(){var t=this.ja;t.Re=null,this.la=t.Ba,this.na=null},ft.prototype.next=function(){var t=this.ja;if(t.Ba!==this.la&&null===this.key)return!1;var e=this.na;return e=null===e?t.fa:e.oa,null!==e?(this.na=e,this.value=e.value,this.key=e.key,!0):(this.xd(),!1)},ft.prototype.dd=function(){return this.next()},ft.prototype.first=function(){var t=this.ja;if(this.la=t.Ba,t=t.fa,null!==t){this.na=t;var e=t.value;return this.key=t.key,this.value=e}return null},ft.prototype.any=function(t){var e=this.ja;for(this.na=e.Re=null,e=e.fa;null!==e;){if(t(e.value))return!0;e=e.oa}return!1},ft.prototype.all=function(t){var e=this.ja;for(this.na=e.Re=null,e=e.fa;null!==e;){if(!t(e.value))return!1;e=e.oa}return!0},ft.prototype.each=function(t){var e=this.ja;for(this.na=e.Re=null,e=e.fa;null!==e;)t(e.value),e=e.oa;return this},ft.prototype.map=function(t){var e=this.ja;this.na=e.Re=null;var i=new nt;for(e=e.fa;null!==e;)i.add(t(e.value)),e=e.oa;return i.iterator},ft.prototype.filter=function(t){var e=this.ja;this.na=e.Re=null;var i=new nt;for(e=e.fa;null!==e;){var n=e.value;t(n)&&i.add(n),e=e.oa}return i.iterator},ft.prototype.xd=function(){this.value=this.key=null,this.la=-1,this.ja.Re=this},ft.prototype.toString=function(){return null!==this.na?\"MapValueSetIterator@\"+this.na.value:\"MapValueSetIterator\"},p.Object.defineProperties(ft.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ja.Cb}}}),ft.prototype.first=ft.prototype.first,ft.prototype.hasNext=ft.prototype.dd,ft.prototype.next=ft.prototype.next,ft.prototype.reset=ft.prototype.reset,ft.className=\"MapValueSetIterator\",dt.prototype.toString=function(){return\"{\"+this.key+\":\"+this.value+\"}\"},dt.className=\"KeyValuePair\",pt.prototype.reset=function(){var t=this.ja;t.Ja=null,this.la=t.Ba,this.na=null},pt.prototype.next=function(){var t=this.ja;if(t.Ba!==this.la&&null===this.key)return!1;var e=this.na;return e=null===e?t.fa:e.oa,null!==e?(this.na=e,this.key=e.key,this.value=e.value,!0):(this.xd(),!1)},pt.prototype.dd=function(){return this.next()},pt.prototype.first=function(){var t=this.ja;return this.la=t.Ba,t=t.fa,null!==t?(this.na=t,this.key=t.key,this.value=t.value,t):null},pt.prototype.any=function(t){var e=this.ja;for(this.na=e.Ja=null,e=e.fa;null!==e;){if(t(e))return!0;e=e.oa}return!1},pt.prototype.all=function(t){var e=this.ja;for(this.na=e.Ja=null,e=e.fa;null!==e;){if(!t(e))return!1;e=e.oa}return!0},pt.prototype.each=function(t){var e=this.ja;for(this.na=e.Ja=null,e=e.fa;null!==e;)t(e),e=e.oa;return this},pt.prototype.map=function(t){var e=this.ja;this.na=e.Ja=null;var i=new nt;for(e=e.fa;null!==e;)i.add(t(e)),e=e.oa;return i.iterator},pt.prototype.filter=function(t){var e=this.ja;this.na=e.Ja=null;var i=new nt;for(e=e.fa;null!==e;)t(e)&&i.add(e),e=e.oa;return i.iterator},pt.prototype.xd=function(){this.value=this.key=null,this.la=-1,this.ja.Ja=this},pt.prototype.toString=function(){return null!==this.na?\"MapIterator@\"+this.na:\"MapIterator\"},p.Object.defineProperties(pt.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ja.Cb}}}),pt.prototype.first=pt.prototype.first,pt.prototype.hasNext=pt.prototype.dd,pt.prototype.next=pt.prototype.next,pt.prototype.reset=pt.prototype.reset,pt.className=\"MapIterator\",i=gt.prototype,i.kb=function(){var t=this.Ba;t++,999999999=this.count)return Q;var t=this.Ja;return null!==t?(t.reset(),t):new pt(this)}},iteratorKeys:{get:function(){return 0>=this.count?Q:new ut(this)}},iteratorValues:{get:function(){if(0>=this.count)return Q;var t=this.Re;return null!==t?(t.reset(),t):new ft(this)}}}),gt.prototype.toKeySet=gt.prototype.Yd,gt.prototype.toArray=gt.prototype.Na,gt.prototype.clear=gt.prototype.clear,gt.prototype[\"delete\"]=gt.prototype.delete,gt.prototype.remove=gt.prototype.remove,gt.prototype.get=gt.prototype.get,gt.prototype.getValue=gt.prototype.J,gt.prototype.has=gt.prototype.has,gt.prototype.contains=gt.prototype.contains,gt.prototype.first=gt.prototype.first,gt.prototype.addAll=gt.prototype.addAll,gt.prototype.set=gt.prototype.set,gt.prototype.add=gt.prototype.add,gt.prototype.thaw=gt.prototype.ha,gt.prototype.freeze=gt.prototype.freeze,gt.className=\"Map\",mt.prototype.assign=function(t){return this.F=t.F,this.G=t.G,this},mt.prototype.h=function(t,e){return this.F=t,this.G=e,this},mt.prototype.tg=function(t,e){return this.F=t,this.G=e,this},mt.prototype.set=function(t){return this.F=t.F,this.G=t.G,this},mt.prototype.copy=function(){var t=new mt;return t.F=this.F,t.G=this.G,t},i=mt.prototype,i.ga=function(){return this.v=!0,Object.freeze(this),this},i.I=function(){return Object.isFrozen(this)?this:this.copy().freeze()},i.freeze=function(){return this.v=!0,this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,this},i.toString=function(){return\"Point(\"+this.x+\",\"+this.y+\")\"},i.A=function(t){return t instanceof mt&&(this.F===t.x&&this.G===t.y)},i.Di=function(t,e){return this.F===t&&this.G===e},i.Qa=function(t){return We.w(this.F,t.x)&&We.w(this.G,t.y)},i.add=function(t){return this.F+=t.x,this.G+=t.y,this},i.Xd=function(t){return this.F-=t.x,this.G-=t.y,this},i.offset=function(t,e){return this.F+=t,this.G+=e,this},mt.prototype.rotate=function(t){if(0===t)return this;var e=this.F,i=this.G;if(0===e&&0===i)return this;if(360<=t?t-=360:0>t&&(t+=360),90===t){t=0;var n=1}else 180===t?(t=-1,n=0):270===t?(t=0,n=-1):(n=t*Math.PI/180,t=Math.cos(n),n=Math.sin(n));return this.F=t*e-n*i,this.G=n*e+t*i,this},i=mt.prototype,i.scale=function(t,e){return this.F*=t,this.G*=e,this},i.Be=function(t){var e=t.x-this.F;return t=t.y-this.G,e*e+t*t},i.cd=function(t,e){return t-=this.F,e-=this.G,t*t+e*e},i.normalize=function(){var t=this.F,e=this.G,i=Math.sqrt(t*t+e*e);return 0t&&C(t,\">= 0\",It,\"width\"),this.$=t}},height:{get:function(){return this.Z},set:function(t){0>t&&C(t,\">= 0\",It,\"height\"),this.Z=t}}}),It.prototype.isReal=It.prototype.o,It.prototype.equalsApprox=It.prototype.Qa,It.prototype.equalTo=It.prototype.Di,It.prototype.equals=It.prototype.A,It.prototype.set=It.prototype.set,It.prototype.setTo=It.prototype.tg;var Vt=[];function _t(t,e,i,n){void 0===t?this.Z=this.$=this.G=this.F=0:t instanceof mt?(i=t.x,t=t.y,e instanceof mt?(n=e.x,e=e.y,this.F=Math.min(i,n),this.G=Math.min(t,e),this.$=Math.abs(i-n),this.Z=Math.abs(t-e)):e instanceof It?(this.F=i,this.G=t,this.$=e.$,this.Z=e.Z):k(\"Incorrect arguments supplied to Rect constructor\")):\"number\"===typeof t&&\"number\"===typeof e&&\"number\"===typeof i&&(0<=i||isNaN(i))&&\"number\"===typeof n&&(0<=n||isNaN(n))?(this.F=t,this.G=e,this.$=i,this.Z=n):k(\"Invalid arguments to Rect constructor: \"+t+\", \"+e+\", \"+i+\", \"+n),this.v=!1}function Ht(t,e,i){t.$=e,t.Z=i}function Yt(t){if(\"string\"===typeof t){t=t.split(\" \");for(var e=0,i=0;\"\"===t[e];)e++;var n=t[e++];n&&(i=parseFloat(n));for(var o=0;\"\"===t[e];)e++;(n=t[e++])&&(o=parseFloat(n));for(var r=0;\"\"===t[e];)e++;(n=t[e++])&&(r=parseFloat(n));for(var s=0;\"\"===t[e];)e++;return(n=t[e++])&&(s=parseFloat(n)),new _t(i,o,r,s)}return new _t}function qt(t){return t.x.toString()+\" \"+t.y.toString()+\" \"+t.width.toString()+\" \"+t.height.toString()}function Gt(t,e){return We.ca(t.F,e.x)&&We.ca(t.G,e.y)&&We.ca(t.$,e.width)&&We.ca(t.Z,e.height)}function Xt(t,e,i,n,o){var r=t.$;return i+o<=-r?(t.F+=r/2,t.$=0):(t.F-=o,t.$+=i+o),i=t.Z,e+n<=-i?(t.G+=i/2,t.Z=0):(t.G-=e,t.Z+=e+n),t}function Ut(t,e,i,n,o){var r=Math.max(t.F,e),s=Math.max(t.G,i);return e=Math.min(t.F+t.$,e+n),i=Math.min(t.G+t.Z,i+o),t.F=r,t.G=s,t.$=Math.max(0,e-r),t.Z=Math.max(0,i-s),t}function Kt(t,e,i){var n=t.$,o=t.F,r=e.x-i;return!(o>e.width+i+i+r||r>n+o)&&(n=t.Z,t=t.G,o=e.y-i,!(t>e.height+i+i+o||o>n+t))}function $t(t,e,i,n,o){var r=Math.min(t.F,e),s=Math.min(t.G,i);return e=Math.max(t.F+t.$,e+n),i=Math.max(t.G+t.Z,i+o),t.F=r,t.G=s,t.$=e-r,t.Z=i-s,t}function Wt(t,e,i,n,o,r,s,a){return void 0===s&&(s=0),void 0===a&&(a=0),t<=o&&o+s<=t+i&&e<=r&&r+a<=e+n}function Jt(t,e,i,n,o,r,s,a){return!(t>s+o||o>i+t)&&!(e>a+r||r>n+e)}It.className=\"Size\",It.parse=Et,It.stringify=Rt,It.ZeroSize=Ct=new It(0,0).ga(),It.OneSize=St=new It(1,1).ga(),It.SixSize=Nt=new It(6,6).ga(),It.EightSize=Pt=new It(8,8).ga(),It.TenSize=Tt=new It(10,10).ga(),It.InfiniteSize=Lt=new It(1/0,1/0).ga(),It.NoSize=Ot=new It(NaN,NaN).ga(),It.parse=Et,It.stringify=Rt,i=_t.prototype,i.assign=function(t){return this.F=t.F,this.G=t.G,this.$=t.$,this.Z=t.Z,this},i.h=function(t,e,i,n){return this.F=t,this.G=e,this.$=i,this.Z=n,this},i.tg=function(t,e,i,n){return this.F=t,this.G=e,this.$=i,this.Z=n,this},i.set=function(t){return this.F=t.F,this.G=t.G,this.$=t.$,this.Z=t.Z,this},i.jd=function(t){return this.F=t.x,this.G=t.y,this},i.Sz=function(t){return this.$=t.$,this.Z=t.Z,this},_t.prototype.copy=function(){var t=new _t;return t.F=this.F,t.G=this.G,t.$=this.$,t.Z=this.Z,t},i=_t.prototype,i.ga=function(){return this.v=!0,Object.freeze(this),this},i.I=function(){return Object.isFrozen(this)?this:this.copy().freeze()},i.freeze=function(){return this.v=!0,this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,this},i.toString=function(){return\"Rect(\"+this.x+\",\"+this.y+\",\"+this.width+\",\"+this.height+\")\"},i.A=function(t){return t instanceof _t&&(this.F===t.x&&this.G===t.y&&this.$===t.width&&this.Z===t.height)},i.Di=function(t,e,i,n){return this.F===t&&this.G===e&&this.$===i&&this.Z===n},i.Qa=function(t){return We.w(this.F,t.x)&&We.w(this.G,t.y)&&We.w(this.$,t.width)&&We.w(this.Z,t.height)},i.ea=function(t){return this.F<=t.x&&this.F+this.$>=t.x&&this.G<=t.y&&this.G+this.Z>=t.y},i.lf=function(t){return this.F<=t.x&&t.x+t.width<=this.F+this.$&&this.G<=t.y&&t.y+t.height<=this.G+this.Z},i.contains=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),this.F<=t&&t+i<=this.F+this.$&&this.G<=e&&e+n<=this.G+this.Z},i.reset=function(){this.Z=this.$=this.G=this.F=0},i.offset=function(t,e){return this.F+=t,this.G+=e,this},i.Uc=function(t,e){return Xt(this,e,t,e,t)},i.Lp=function(t){return Xt(this,t.top,t.right,t.bottom,t.left)},i.Ov=function(t){return Xt(this,-t.top,-t.right,-t.bottom,-t.left)},i.lz=function(t,e,i,n){return Xt(this,t,e,i,n)},i.pz=function(t){return Ut(this,t.x,t.y,t.width,t.height)},i.gv=function(t,e,i,n){return Ut(this,t,e,i,n)},i.Ic=function(t){return this.hv(t.x,t.y,t.width,t.height)},i.hv=function(t,e,i,n){var o=this.$,r=this.F;return!(1/0!==o&&1/0!==i&&(o+=r,i+=t,isNaN(i)||isNaN(o)||r>i||t>o))&&(t=this.Z,i=this.G,!(1/0!==t&&1/0!==n&&(t+=i,n+=e,isNaN(n)||isNaN(t)||i>n||e>t)))},i.Ie=function(t){return $t(this,t.x,t.y,0,0)},i.Jc=function(t){return $t(this,t.F,t.G,t.$,t.Z)},i.Vv=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),$t(this,t,e,i,n)},i.qk=function(t,e,i){return this.F=t-i.offsetX-i.x*this.$,this.G=e-i.offsetY-i.y*this.Z,this},i.o=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},i.rz=function(){return 0===this.width&&0===this.height},_t.alloc=function(){var t=te.pop();return void 0===t?new _t:t},_t.allocAt=function(t,e,i,n){var o=te.pop();return void 0===o?new _t(t,e,i,n):o.h(t,e,i,n)},_t.free=function(t){te.push(t)},p.Object.defineProperties(_t.prototype,{x:{get:function(){return this.F},set:function(t){this.F=t}},y:{get:function(){return this.G},set:function(t){this.G=t}},width:{get:function(){return this.$},set:function(t){0>t&&C(t,\">= 0\",_t,\"width\"),this.$=t}},height:{get:function(){return this.Z},set:function(t){0>t&&C(t,\">= 0\",_t,\"height\"),this.Z=t}},left:{get:function(){return this.F},set:function(t){this.F=t}},top:{get:function(){return this.G},set:function(t){this.G=t}},right:{get:function(){return this.F+this.$},set:function(t){this.F+=t-(this.F+this.$)}},bottom:{get:function(){return this.G+this.Z},set:function(t){this.G+=t-(this.G+this.Z)}},position:{get:function(){return new mt(this.F,this.G)},set:function(t){this.F=t.x,this.G=t.y}},size:{get:function(){return new It(this.$,this.Z)},set:function(t){this.$=t.width,this.Z=t.height}},center:{get:function(){return new mt(this.F+this.$/2,this.G+this.Z/2)},set:function(t){this.F=t.x-this.$/2,this.G=t.y-this.Z/2}},centerX:{get:function(){return this.F+this.$/2},set:function(t){this.F=t-this.$/2}},centerY:{get:function(){return this.G+this.Z/2},set:function(t){this.G=t-this.Z/2}}}),_t.prototype.isEmpty=_t.prototype.rz,_t.prototype.isReal=_t.prototype.o,_t.prototype.setSpot=_t.prototype.qk,_t.prototype.union=_t.prototype.Vv,_t.prototype.unionRect=_t.prototype.Jc,_t.prototype.unionPoint=_t.prototype.Ie,_t.prototype.intersects=_t.prototype.hv,_t.prototype.intersectsRect=_t.prototype.Ic,_t.prototype.intersect=_t.prototype.gv,_t.prototype.intersectRect=_t.prototype.pz,_t.prototype.grow=_t.prototype.lz,_t.prototype.subtractMargin=_t.prototype.Ov,_t.prototype.addMargin=_t.prototype.Lp,_t.prototype.inflate=_t.prototype.Uc,_t.prototype.offset=_t.prototype.offset,_t.prototype.contains=_t.prototype.contains,_t.prototype.containsRect=_t.prototype.lf,_t.prototype.containsPoint=_t.prototype.ea,_t.prototype.equalsApprox=_t.prototype.Qa,_t.prototype.equalTo=_t.prototype.Di,_t.prototype.equals=_t.prototype.A,_t.prototype.setSize=_t.prototype.Sz,_t.prototype.setPoint=_t.prototype.jd,_t.prototype.set=_t.prototype.set,_t.prototype.setTo=_t.prototype.tg;var Zt=null,Qt=null,te=[];function ee(t,e,i,n){void 0===t?this.le=this.ae=this.te=this.ve=0:void 0===e?this.left=this.bottom=this.right=this.top=t:void 0===i?(this.top=t,this.right=e,this.bottom=t,this.left=e):void 0!==n?(this.top=t,this.right=e,this.bottom=i,this.left=n):k(\"Invalid arguments to Margin constructor: \"+t+\", \"+e+\", \"+i+\", \"+n),this.v=!1}function ie(t){if(\"string\"===typeof t){t=t.split(\" \");for(var e=0,i=NaN;\"\"===t[e];)e++;var n=t[e++];if(n&&(i=parseFloat(n)),isNaN(i))return new ee;for(var o=NaN;\"\"===t[e];)e++;if((n=t[e++])&&(o=parseFloat(n)),isNaN(o))return new ee(i);for(var r=NaN;\"\"===t[e];)e++;if((n=t[e++])&&(r=parseFloat(n)),isNaN(r))return new ee(i,o);for(var s=NaN;\"\"===t[e];)e++;return(n=t[e++])&&(s=parseFloat(n)),isNaN(s)?new ee(i,o):new ee(i,o,r,s)}return new ee}function ne(t){return t.top.toString()+\" \"+t.right.toString()+\" \"+t.bottom.toString()+\" \"+t.left.toString()}_t.className=\"Rect\",_t.parse=Yt,_t.stringify=qt,_t.contains=Wt,_t.intersects=Jt,_t.ZeroRect=Zt=new _t(0,0,0,0).ga(),_t.NoRect=Qt=new _t(NaN,NaN,NaN,NaN).ga(),_t.parse=Yt,_t.stringify=qt,_t.contains=Wt,_t.intersects=Jt,ee.prototype.assign=function(t){return this.ve=t.ve,this.te=t.te,this.ae=t.ae,this.le=t.le,this},ee.prototype.tg=function(t,e,i,n){return this.ve=t,this.te=e,this.ae=i,this.le=n,this},ee.prototype.set=function(t){return this.ve=t.ve,this.te=t.te,this.ae=t.ae,this.le=t.le,this},ee.prototype.copy=function(){var t=new ee;return t.ve=this.ve,t.te=this.te,t.ae=this.ae,t.le=this.le,t},i=ee.prototype,i.ga=function(){return this.v=!0,Object.freeze(this),this},i.I=function(){return Object.isFrozen(this)?this:this.copy().freeze()},i.freeze=function(){return this.v=!0,this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,this},i.toString=function(){return\"Margin(\"+this.top+\",\"+this.right+\",\"+this.bottom+\",\"+this.left+\")\"},i.A=function(t){return t instanceof ee&&(this.ve===t.top&&this.te===t.right&&this.ae===t.bottom&&this.le===t.left)},i.Di=function(t,e,i,n){return this.ve===t&&this.te===e&&this.ae===i&&this.le===n},i.Qa=function(t){return We.w(this.ve,t.top)&&We.w(this.te,t.right)&&We.w(this.ae,t.bottom)&&We.w(this.le,t.left)},i.o=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ee.alloc=function(){var t=se.pop();return void 0===t?new ee:t},ee.free=function(t){se.push(t)},p.Object.defineProperties(ee.prototype,{top:{get:function(){return this.ve},set:function(t){this.ve=t}},right:{get:function(){return this.te},set:function(t){this.te=t}},bottom:{get:function(){return this.ae},set:function(t){this.ae=t}},left:{get:function(){return this.le},set:function(t){this.le=t}}}),ee.prototype.isReal=ee.prototype.o,ee.prototype.equalsApprox=ee.prototype.Qa,ee.prototype.equalTo=ee.prototype.Di,ee.prototype.equals=ee.prototype.A,ee.prototype.set=ee.prototype.set,ee.prototype.setTo=ee.prototype.tg;var oe=null,re=null,se=[];function ae(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}ee.className=\"Margin\",ee.parse=ie,ee.stringify=ne,ee.ZeroMargin=oe=new ee(0,0,0,0).ga(),ee.TwoMargin=re=new ee(2,2,2,2).ga(),ee.parse=ie,ee.stringify=ne,ae.prototype.set=function(t){return this.m11=t.m11,this.m12=t.m12,this.m21=t.m21,this.m22=t.m22,this.dx=t.dx,this.dy=t.dy,this},ae.prototype.copy=function(){var t=new ae;return t.m11=this.m11,t.m12=this.m12,t.m21=this.m21,t.m22=this.m22,t.dx=this.dx,t.dy=this.dy,t},i=ae.prototype,i.toString=function(){return\"Transform(\"+this.m11+\",\"+this.m12+\",\"+this.m21+\",\"+this.m22+\",\"+this.dx+\",\"+this.dy+\")\"},i.A=function(t){return t instanceof ae&&(this.m11===t.m11&&this.m12===t.m12&&this.m21===t.m21&&this.m22===t.m22&&this.dx===t.dx&&this.dy===t.dy)},i.ct=function(){return 0===this.dx&&0===this.dy&&1===this.m11&&0===this.m12&&0===this.m21&&1===this.m22},i.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},i.multiply=function(t){var e=this.m12*t.m11+this.m22*t.m12,i=this.m11*t.m21+this.m21*t.m22,n=this.m12*t.m21+this.m22*t.m22,o=this.m11*t.dx+this.m21*t.dy+this.dx,r=this.m12*t.dx+this.m22*t.dy+this.dy;return this.m11=this.m11*t.m11+this.m21*t.m12,this.m12=e,this.m21=i,this.m22=n,this.dx=o,this.dy=r,this},i.nv=function(t){var e=1/(t.m11*t.m22-t.m12*t.m21),i=t.m22*e,n=-t.m12*e,o=-t.m21*e,r=t.m11*e,s=e*(t.m21*t.dy-t.m22*t.dx);return t=e*(t.m12*t.dx-t.m11*t.dy),e=this.m11*i+this.m21*n,i=this.m12*i+this.m22*n,n=this.m11*o+this.m21*r,o=this.m12*o+this.m22*r,this.dx=this.m11*s+this.m21*t+this.dx,this.dy=this.m12*s+this.m22*t+this.dy,this.m11=e,this.m12=i,this.m21=n,this.m22=o,this},i.bt=function(){var t=1/(this.m11*this.m22-this.m12*this.m21),e=-this.m12*t,i=-this.m21*t,n=this.m11*t,o=t*(this.m21*this.dy-this.m22*this.dx),r=t*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*t,this.m12=e,this.m21=i,this.m22=n,this.dx=o,this.dy=r,this},ae.prototype.rotate=function(t,e,i){if(360<=t?t-=360:0>t&&(t+=360),0===t)return this;if(this.translate(e,i),90===t){t=0;var n=1}else 180===t?(t=-1,n=0):270===t?(t=0,n=-1):(n=t*Math.PI/180,t=Math.cos(n),n=Math.sin(n));var o=this.m12*t+this.m22*n,r=this.m11*-n+this.m21*t,s=this.m12*-n+this.m22*t;return this.m11=this.m11*t+this.m21*n,this.m12=o,this.m21=r,this.m22=s,this.translate(-e,-i),this},i=ae.prototype,i.translate=function(t,e){return this.dx+=this.m11*t+this.m21*e,this.dy+=this.m12*t+this.m22*e,this},i.scale=function(t,e){return void 0===e&&(e=t),this.m11*=t,this.m12*=t,this.m21*=e,this.m22*=e,this},i.ta=function(t){var e=t.x,i=t.y;return t.h(e*this.m11+i*this.m21+this.dx,e*this.m12+i*this.m22+this.dy)},i.Ud=function(t){var e=1/(this.m11*this.m22-this.m12*this.m21),i=t.x,n=t.y;return t.h(i*this.m22*e+n*-this.m21*e+e*(this.m21*this.dy-this.m22*this.dx),i*-this.m12*e+n*this.m11*e+e*(this.m12*this.dx-this.m11*this.dy))},i.Uv=function(t){var e=t.F,i=t.G,n=e+t.$,o=i+t.Z,r=this.m11,s=this.m12,a=this.m21,l=this.m22,h=this.dx,u=this.dy,c=e*r+i*a+h,f=e*s+i*l+u,d=n*r+i*a+h,p=n*s+i*l+u;return i=e*r+o*a+h,e=e*s+o*l+u,r=n*r+o*a+h,n=n*s+o*l+u,o=Math.min(c,d),c=Math.max(c,d),d=Math.min(f,p),f=Math.max(f,p),o=Math.min(o,i),c=Math.max(c,i),d=Math.min(d,e),f=Math.max(f,e),o=Math.min(o,r),c=Math.max(c,r),d=Math.min(d,n),f=Math.max(f,n),t.F=o,t.G=d,t.$=c-o,t.Z=f-d,t},ae.alloc=function(){var t=qe.pop();return void 0===t?new ae:t},ae.free=function(t){qe.push(t)},ae.prototype.transformRect=ae.prototype.Uv,ae.prototype.invertedTransformPoint=ae.prototype.Ud,ae.prototype.transformPoint=ae.prototype.ta,ae.prototype.scale=ae.prototype.scale,ae.prototype.translate=ae.prototype.translate,ae.prototype.rotate=ae.prototype.rotate,ae.prototype.invert=ae.prototype.bt,ae.prototype.multiplyInverted=ae.prototype.nv,ae.prototype.multiply=ae.prototype.multiply,ae.prototype.reset=ae.prototype.reset,ae.prototype.isIdentity=ae.prototype.ct,ae.prototype.equals=ae.prototype.A,ae.prototype.set=ae.prototype.set;var le,he,ue,ce,fe,de,pe,ge,me,ve,ye,be,we,xe,ke,Me,Ce,Se,Ne,Pe,Te,Le,Oe,De,je,Ae,Be,ze,Fe,Ie,Ee,Re,Ve,_e,He,Ye,qe=[];function Ge(t,e,i,n){void 0===t?this.Nd=this.Md=this.G=this.F=0:(void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x=t,this.y=e,this.offsetX=i,this.offsetY=n),this.v=!1}function Xe(t,e){return t.F=NaN,t.G=NaN,t.Md=e,t}function Ue(t){if(\"string\"===typeof t){if(t=t.trim(),\"None\"===t)return le;if(\"TopLeft\"===t)return he;if(\"Top\"===t||\"TopCenter\"===t||\"MiddleTop\"===t)return ue;if(\"TopRight\"===t)return ce;if(\"Left\"===t||\"LeftCenter\"===t||\"MiddleLeft\"===t)return fe;if(\"Center\"===t)return de;if(\"Right\"===t||\"RightCenter\"===t||\"MiddleRight\"===t)return pe;if(\"BottomLeft\"===t)return ge;if(\"Bottom\"===t||\"BottomCenter\"===t||\"MiddleBottom\"===t)return me;if(\"BottomRight\"===t)return ve;if(\"TopSide\"===t)return ye;if(\"LeftSide\"===t)return be;if(\"RightSide\"===t)return we;if(\"BottomSide\"===t)return xe;if(\"TopBottomSides\"===t)return ke;if(\"LeftRightSides\"===t)return Me;if(\"TopLeftSides\"===t)return Ce;if(\"TopRightSides\"===t)return Se;if(\"BottomLeftSides\"===t)return Ne;if(\"BottomRightSides\"===t)return Pe;if(\"NotTopSide\"===t)return Te;if(\"NotLeftSide\"===t)return Le;if(\"NotRightSide\"===t)return Oe;if(\"NotBottomSide\"===t)return De;if(\"AllSides\"===t)return je;if(\"Default\"===t)return Ae;t=t.split(\" \");for(var e=0,i=0;\"\"===t[e];)e++;var n=t[e++];void 0!==n&&0=t)return 0;var e=We.ew;if(null===e){e=[];for(var i=0;2e3>=i;i++)e[i]=Math.sqrt(i);We.ew=e}return 1>t?(i=1/t,2e3>=i?1/e[0|i]:Math.sqrt(t)):2e3>=t?e[0|t]:Math.sqrt(t)},w:function(t,e){return t-=e,.5>t&&-.5t&&-5e-8=o&&(o=1e-6),tu-h){if(!(t-i>o||i-t>o))return!0;if(r=(n-e)/(i-t)*(r-t)+e,r-o<=s&&s<=r+o)return!0}else{if(!(e-n>o||n-e>o))return!0;if(s=(i-t)/(n-e)*(s-e)+t,s-o<=r&&r<=s+o)return!0}return!1},Js:function(t,e,i,n,o,r,s,a,l,h,u,c){if(We.Ub(t,e,s,a,c,i,n)&&We.Ub(t,e,s,a,c,o,r))return We.Ub(t,e,s,a,c,h,u);var f=(t+i)/2,d=(e+n)/2,p=(i+o)/2,g=(n+r)/2;o=(o+s)/2,r=(r+a)/2,n=(f+p)/2,i=(d+g)/2,p=(p+o)/2,g=(g+r)/2;var m=(n+p)/2,v=(i+g)/2;return We.Js(t,e,f,d,n,i,m,v,l,h,u,c)||We.Js(m,v,p,g,o,r,s,a,l,h,u,c)},qy:function(t,e,i,n,o,r,s,a,l){var h=(i+o)/2,u=(n+r)/2;return l.h((((t+i)/2+h)/2+(h+(o+s)/2)/2)/2,(((e+n)/2+u)/2+(u+(r+a)/2)/2)/2),l},py:function(t,e,i,n,o,r,s,a){var l=(i+o)/2,h=(n+r)/2;return Mt(((t+i)/2+l)/2,((e+n)/2+h)/2,(l+(o+s)/2)/2,(h+(r+a)/2)/2)},Sl:function(t,e,i,n,o,r,s,a,l,h){if(We.Ub(t,e,s,a,l,i,n)&&We.Ub(t,e,s,a,l,o,r))$t(h,t,e,0,0),$t(h,s,a,0,0);else{var u=(t+i)/2,c=(e+n)/2,f=(i+o)/2,d=(n+r)/2;o=(o+s)/2,r=(r+a)/2,n=(u+f)/2,i=(c+d)/2,f=(f+o)/2,d=(d+r)/2;var p=(n+f)/2,g=(i+d)/2;We.Sl(t,e,u,c,n,i,p,g,l,h),We.Sl(p,g,f,d,o,r,s,a,l,h)}return h},ze:function(t,e,i,n,o,r,s,a,l,h){if(We.Ub(t,e,s,a,l,i,n)&&We.Ub(t,e,s,a,l,o,r))0===h.length&&(h.push(t),h.push(e)),h.push(s),h.push(a);else{var u=(t+i)/2,c=(e+n)/2,f=(i+o)/2,d=(n+r)/2;o=(o+s)/2,r=(r+a)/2,n=(u+f)/2,i=(c+d)/2,f=(f+o)/2,d=(d+r)/2;var p=(n+f)/2,g=(i+d)/2;We.ze(t,e,u,c,n,i,p,g,l,h),We.ze(p,g,f,d,o,r,s,a,l,h)}return h},uv:function(t,e,i,n,o,r,s,a,l,h){if(We.Ub(t,e,o,r,h,i,n))return We.Ub(t,e,o,r,h,a,l);var u=(t+i)/2,c=(e+n)/2;i=(i+o)/2,n=(n+r)/2;var f=(u+i)/2,d=(c+n)/2;return We.uv(t,e,u,c,f,d,s,a,l,h)||We.uv(f,d,i,n,o,r,s,a,l,h)},iA:function(t,e,i,n,o,r,s){return s.h(((t+i)/2+(i+o)/2)/2,((e+n)/2+(n+r)/2)/2),s},tv:function(t,e,i,n,o,r,s,a){if(We.Ub(t,e,o,r,s,i,n))$t(a,t,e,0,0),$t(a,o,r,0,0);else{var l=(t+i)/2,h=(e+n)/2;i=(i+o)/2,n=(n+r)/2;var u=(l+i)/2,c=(h+n)/2;We.tv(t,e,l,h,u,c,s,a),We.tv(u,c,i,n,o,r,s,a)}return a},jq:function(t,e,i,n,o,r,s,a){if(We.Ub(t,e,o,r,s,i,n))0===a.length&&(a.push(t),a.push(e)),a.push(o),a.push(r);else{var l=(t+i)/2,h=(e+n)/2;i=(i+o)/2,n=(n+r)/2;var u=(l+i)/2,c=(h+n)/2;We.jq(t,e,l,h,u,c,s,a),We.jq(u,c,i,n,o,r,s,a)}return a},Mp:function(t,e,i,n,o,r,s,a,l,h,u,c,f,d){if(We.Ub(t,e,s,a,f,i,n)&&We.Ub(t,e,s,a,f,o,r)){var p=(t-s)*(h-c)-(e-a)*(l-u);if(0===p)return!1;if(f=((t*a-e*s)*(l-u)-(t-s)*(l*c-h*u))/p,p=((t*a-e*s)*(h-c)-(e-a)*(l*c-h*u))/p,(l>u?l-u:u-l)<(h>c?h-c:c-h)){if(ea)return!1}else if(ts)return!1;return d.h(f,p),!0}p=(t+i)/2;var g=(e+n)/2;i=(i+o)/2,n=(n+r)/2,o=(o+s)/2,r=(r+a)/2;var m=(p+i)/2,v=(g+n)/2;i=(i+o)/2,n=(n+r)/2;var y=(m+i)/2,b=(v+n)/2,w=(u-l)*(u-l)+(c-h)*(c-h),x=!1;return We.Mp(t,e,p,g,m,v,y,b,l,h,u,c,f,d)&&(t=(d.x-l)*(d.x-l)+(d.y-h)*(d.y-h),t=u)return d;if((l>u?l-u:u-l)<(h>c?h-c:c-h)){if(ee)return d}else if(tt)return d;0f&&d--}else{p=(t+i)/2,g=(e+n)/2;var m=(i+o)/2,v=(n+r)/2;o=(o+s)/2,r=(r+a)/2,n=(p+m)/2,i=(g+v)/2,m=(m+o)/2,v=(v+r)/2;var y=(n+m)/2,b=(i+v)/2;d+=We.Np(t,e,p,g,n,i,y,b,l,h,u,c,f),d+=We.Np(y,b,m,v,o,r,s,a,l,h,u,c,f)}return d},Qi:function(t,e,i,n,o,r,s){return We.ca(t,i)?(ee?(s.h(t,e),!1):(s.h(t,r),!0)):We.ca(e,n)?(tt?(s.h(t,e),!1):(s.h(o,e),!0)):(o=((t-o)*(t-i)+(e-r)*(e-n))/((i-t)*(i-t)+(n-e)*(n-e)),-5e-6>o?(s.h(t,e),!1):1.000005e?(l.h(t,e),!1):(l.h(t,i),!0)):(s=(n-e)/(i-t),We.ca(a,s)?(We.Qi(t,e,i,n,o,r,l),!1):(o=(s*t-a*o+r-e)/(s-a),We.ca(s,0)?(tt?(l.h(t,e),!1):(l.h(o,e),!0)):We.Qi(t,e,i,n,o,s*(o-t)+e,l))))},fA:function(t,e,i,n,o){return We.Fe(i.x,i.y,n.x,n.y,t.x,t.y,e.x,e.y,o)},eA:function(t,e,i,n,o,r,s,a,l,h){function u(i,n){var o=(i-t)*(i-t)+(n-e)*(n-e);o(i>t?i-t:t-i)){if(f=1-(i-o)*(i-o)/(f*f),0>f)return l;f=Math.sqrt(f),n=-h*f+r,u(i,h*f+r),u(i,n)}else{if(i=(n-e)/(i-t),n=1/(f*f)+i*i/(h*h),a=2*i*(e-i*t)/(h*h)-2*i*r/(h*h)-2*o/(f*f),f=a*a-4*n*(2*i*t*r/(h*h)-2*e*r/(h*h)+r*r/(h*h)+o*o/(f*f)-1+(e-i*t)*(e-i*t)/(h*h)),0>f)return l;f=Math.sqrt(f),h=(-a+f)/(2*n),u(h,i*h-i*t+e),f=(-a-f)/(2*n),u(f,i*f-i*t+e)}return l},Tc:function(t,e,i,n,o,r,s,a,l){var h=1e21,u=t,c=e;if(We.Fe(t,e,t,n,o,r,s,a,l)){var f=(l.x-o)*(l.x-o)+(l.y-r)*(l.y-r);fh},dA:function(t,e,i,n,o,r,s,a,l){return i=t-i,s=o-s,0===i||0===s?0===i?(e=(r-a)/s,a=t,o=e*a+(r-e*o)):(r=(e-n)/i,a=o,o=r*a+(e-r*t)):(n=(e-n)/i,a=(r-a)/s,t=e-n*t,a=(r-a*o-t)/(n-a),o=n*a+t),l.h(a,o),l},$s:function(t,e,i){var n=e.x,o=e.y,r=i.x,s=i.y,a=t.left,l=t.right,h=t.top,u=t.bottom;return n===r?(o=h):o===s?(n=a):!!(t.ea(e)||t.ea(i)||We.Zs(a,h,l,h,n,o,r,s)||We.Zs(l,h,l,u,n,o,r,s)||We.Zs(l,u,a,u,n,o,r,s)||We.Zs(a,u,a,h,n,o,r,s))},Zs:function(t,e,i,n,o,r,s,a){return 0>=We.Ms(t,e,i,n,o,r)*We.Ms(t,e,i,n,s,a)&&0>=We.Ms(o,r,s,a,t,e)*We.Ms(o,r,s,a,i,n)},Ms:function(t,e,i,n,o,r){return i-=t,n-=e,t=o-t,e=r-e,r=t*n-e*i,0===r&&(r=t*i+e*n,0r&&(r=0))),0>r?-1:0t&&(t+=360),360<=t&&(t-=360),t},ax:function(t,e,i,n,o,r){var s=Math.PI;r||(n*=s/180,o*=s/180);var a=n>o?-1:1;r=[];var l=s/2,h=n;if(n=Math.min(2*s,Math.abs(o-n)),1e-5>n)return l=h+a*Math.min(n,l),a=t+i*Math.cos(h),h=e+i*Math.sin(h),t+=i*Math.cos(l),e+=i*Math.sin(l),i=(a+t)/2,l=(h+e)/2,r.push([a,h,i,l,i,l,t,e]),r;for(;1e-5i,r=0>n;if(th;++h){if(e=.5*(a+l),e===a||e===l)break;var u=t/(e+o),c=s/(e+r);if(u=u*u+c*c-1,0u))break;l=e}}i=o*i/(e+o)-i,n=r*n/(e+r)-n,i=Math.sqrt(i*i+n*n)}else i=Math.abs(n-e);else n=t*t-e*e,r=t*i,r=w-1||null!==l[g+1].match(/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/)}function n(){return g++,l[g]}function o(){var t=new mt(parseFloat(n()),parseFloat(n()));return m===m.toLowerCase()&&(t.x=b.x+t.x,t.y=b.y+t.y),t}function r(){return b=o()}function s(){return y=o()}function a(){var t=v.toLowerCase();return\"c\"!==t&&\"s\"!==t&&\"q\"!==t&&\"t\"!==t?b:new mt(2*b.x-y.x,2*b.y-y.y)}void 0===e&&(e=!1),t=t.replace(/,/gm,\" \"),t=t.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,\"$1 $2\"),t=t.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,\"$1 $2\"),t=t.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^\\s])/gm,\"$1 $2\"),t=t.replace(/([^\\s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,\"$1 $2\"),t=t.replace(/([0-9])([+\\-])/gm,\"$1 $2\"),t=t.replace(/([Aa](\\s+[0-9]+){3})\\s+([01])\\s*([01])/gm,\"$1 $3 $4 \"),t=t.replace(/[\\s\\r\\t\\n]+/gm,\" \"),t=t.replace(/^\\s+|\\s+$/g,\"\");var l=t.split(\" \");for(t=0;t=w-1);)if(v=m,m=n(),\"\"!==m)switch(m.toUpperCase()){case\"X\":f=!0,c=h=!1;break;case\"M\":for(d=r(),null===t.ec||!0===f?(tu(t,d.x,d.y,h,!c),f=!1):t.moveTo(d.x,d.y),u=b;!i();)d=r(),t.lineTo(d.x,d.y);break;case\"L\":for(;!i();)d=r(),t.lineTo(d.x,d.y);break;case\"H\":for(;!i();)b=new mt((m===m.toLowerCase()?b.x:0)+parseFloat(n()),b.y),t.lineTo(b.x,b.y);break;case\"V\":for(;!i();)b=new mt(b.x,(m===m.toLowerCase()?b.y:0)+parseFloat(n())),t.lineTo(b.x,b.y);break;case\"C\":for(;!i();){d=o(),p=s();var x=r();iu(t,d.x,d.y,p.x,p.y,x.x,x.y)}break;case\"S\":for(;!i();)d=a(),p=s(),x=r(),iu(t,d.x,d.y,p.x,p.y,x.x,x.y);break;case\"Q\":for(;!i();)d=s(),p=r(),nu(t,d.x,d.y,p.x,p.y);break;case\"T\":for(;!i();)y=d=a(),p=r(),nu(t,d.x,d.y,p.x,p.y);break;case\"B\":for(;!i();){d=parseFloat(n()),p=parseFloat(n()),x=parseFloat(n());var k=parseFloat(n()),M=parseFloat(n()),C=M,S=!1;i()||(C=parseFloat(n()),i()||(S=0!==parseFloat(n()))),m===m.toLowerCase()&&(x+=b.x,k+=b.y),t.arcTo(d,p,x,k,M,C,S)}break;case\"A\":for(;!i();)d=Math.abs(parseFloat(n())),p=Math.abs(parseFloat(n())),x=parseFloat(n()),k=!!parseFloat(n()),M=!!parseFloat(n()),C=r(),ou(t,d,p,x,k,M,C.x,C.y);break;case\"Z\":eu(t),b=u;break;case\"F\":for(d=\"\",p=1;l[g+p];)if(null!==l[g+p].match(/[Uu]/))p++;else{if(null!==l[g+p].match(/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/)){d=l[g+p];break}p++}d.match(/[Mm]/)?h=!0:0=t)return 0;if((o>s?o-s:s-o)<(r>a?r-a:a-r)){if(ra)return 0}else if(er)return 0}else if(os)return 0}else if(ho)return 0;return 0t?\"M\"+this.startX.toString()+\" \"+this.startY.toString()+\"L\"+this.endX.toString()+\" \"+this.endY.toString():\"M\"+this.startX.toFixed(t)+\" \"+this.startY.toFixed(t)+\"L\"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);case li:var e=new _t(this.startX,this.startY,0,0);return e.Vv(this.endX,this.endY,0,0),0>t?\"M\"+e.x.toString()+\" \"+e.y.toString()+\"H\"+e.right.toString()+\"V\"+e.bottom.toString()+\"H\"+e.left.toString()+\"z\":\"M\"+e.x.toFixed(t)+\" \"+e.y.toFixed(t)+\"H\"+e.right.toFixed(t)+\"V\"+e.bottom.toFixed(t)+\"H\"+e.left.toFixed(t)+\"z\";case hi:if(e=new _t(this.startX,this.startY,0,0),e.Vv(this.endX,this.endY,0,0),0>t)return t=e.left.toString()+\" \"+(e.y+e.height/2).toString(),\"M\"+t+\"A\"+(e.width/2).toString()+\" \"+(e.height/2).toString()+\" 0 0 1 \"+e.right.toString()+\" \"+(e.y+e.height/2).toString()+\"A\"+(e.width/2).toString()+\" \"+(e.height/2).toString()+\" 0 0 1 \"+t;var i=e.left.toFixed(t)+\" \"+(e.y+e.height/2).toFixed(t);return\"M\"+i+\"A\"+(e.width/2).toFixed(t)+\" \"+(e.height/2).toFixed(t)+\" 0 0 1 \"+e.right.toFixed(t)+\" \"+(e.y+e.height/2).toFixed(t)+\"A\"+(e.width/2).toFixed(t)+\" \"+(e.height/2).toFixed(t)+\" 0 0 1 \"+i;case ui:e=\"\",i=this.figures.j;for(var n=i.length,o=0;os&&(s+=360),p.startAngle+=s),0>t&&(p.startAngle=180-p.startAngle,p.sweepAngle=-p.sweepAngle),0>n&&(p.startAngle=-p.startAngle,p.sweepAngle=-p.sweepAngle),p.radiusX*=Math.sqrt(t*t+i*i),void 0!==p.radiusY&&(p.radiusY*=Math.sqrt(e*e+n*n));break;case wi:s=p.endX,a=p.endY,p.endX=s*t+a*i+o,p.endY=s*e+a*n+r,0!==e&&(s=180*Math.atan2(e,t)/Math.PI,0>s&&(s+=360),p.xAxisRotation+=s),0>t&&(p.xAxisRotation=180-p.xAxisRotation,p.isClockwiseArc=!p.isClockwiseArc),0>n&&(p.xAxisRotation=-p.xAxisRotation,p.isClockwiseArc=!p.isClockwiseArc),p.radiusX*=Math.sqrt(t*t+i*i),p.radiusY*=Math.sqrt(e*e+n*n);break;default:k(\"Unknown Segment type: \"+p.type)}}}}return this.ra=!0,this},i.ea=function(t,e,i,n){var o=t.x;t=t.y;for(var r,s,a,l,h,u=this.bounds.x-20,c=0,f=this.figures.j,d=f.length,p=0;pt?t=0:1=r)return n=(r-s)/u,i=i[a],o=i[2*t],a=i[2*t+1],e.h(o+(i[2*t+2]-o)*n,a+(i[2*t+3]-a)*n),e;s+=u}}return e.h(NaN,NaN),e},i.mx=function(t){if(this.type===ai){var e=this.startX,i=this.startY,n=this.endX,o=this.endY;if(e!==n||i!==o){var r=t.x;if(t=t.y,e===n){if(i=n?n===i?0:1:Math.abs(t-i)/(n-s)}return i===o?(e=n?n===e?0:1:Math.abs(r-e)/(n-s)):((r-e)*(r-e)+(t-i)*(t-i))/((n-e)*(n-e)+(o-i)*(o-i))}}else{if(this.type!==li){e=this.flattenedSegments,i=this.flattenedLengths,r=this.flattenedTotalLength,n=mt.alloc(),o=1/0,m=s=0,v=e.length;for(var a=y=0,l=0;lt?0:1t&&(t+=360),this.se=t,this.mi=0,this.ni=Math.max(n,0),this.Zg=Math.max(o,0),this.il=\"boolean\"===typeof s&&!!s,this.Ek=!!a):(this.se=n,this.mi=o,t===bi&&(r=Math.max(r,0)),this.ni=r,\"number\"===typeof s?(t===bi&&(s=Math.max(s,0)),this.Zg=s):this.Zg=0,this.Ek=this.il=!1),this.lj=!1,this.ra=!0,this.Ke=null}function di(t,e){if(null!==t.Ke&&!1===e.ra)return t.Ke;var i=t.radiusX,n=t.radiusY;if(void 0===n&&(n=i),0===i||0===n)return t.Ke=[],t.Ke;e=t.se;var o=t.mi,r=We.ax(0,0,i=d?s=Math.PI:1<=d&&(s=0),!l&&0s&&(s+=2*Math.PI),l=e>r?1:e/r,d=e>r?r/e:1,e=We.ax(0,0,e>r?e:r,u,u+s,!0),r=ae.alloc(),r.reset(),r.translate(i,n),r.rotate(t.se,0,0),r.scale(l,d),ei(e,r),ae.free(r),t.Ke=e,t.Ke}Je.className=\"Geometry\",Je.stringify=Qe,Je.fillPath=function(t){t=t.split(/[Xx]/);for(var e=t.length,i=\"\",n=0;nt?\"M\"+this.startX.toString()+\" \"+this.startY.toString():\"M\"+this.startX.toFixed(t)+\" \"+this.startY.toFixed(t),i=this.segments.j,n=i.length,o=0;ot?\"M\"+this.endX.toString()+\" \"+this.endY.toString():\"M\"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;case mi:t=0>t?\"L\"+this.endX.toString()+\" \"+this.endY.toString():\"L\"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;case vi:t=0>t?\"C\"+this.point1X.toString()+\" \"+this.point1Y.toString()+\" \"+this.point2X.toString()+\" \"+this.point2Y.toString()+\" \"+this.endX.toString()+\" \"+this.endY.toString():\"C\"+this.point1X.toFixed(t)+\" \"+this.point1Y.toFixed(t)+\" \"+this.point2X.toFixed(t)+\" \"+this.point2Y.toFixed(t)+\" \"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;case yi:t=0>t?\"Q\"+this.point1X.toString()+\" \"+this.point1Y.toString()+\" \"+this.endX.toString()+\" \"+this.endY.toString():\"Q\"+this.point1X.toFixed(t)+\" \"+this.point1Y.toFixed(t)+\" \"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;case bi:t=0>t?\"B\"+this.startAngle.toString()+\" \"+this.sweepAngle.toString()+\" \"+this.centerX.toString()+\" \"+this.centerY.toString()+\" \"+this.radiusX.toString()+\" \"+this.radiusY.toString():\"B\"+this.startAngle.toFixed(t)+\" \"+this.sweepAngle.toFixed(t)+\" \"+this.centerX.toFixed(t)+\" \"+this.centerY.toFixed(t)+\" \"+this.radiusX.toFixed(t)+\" \"+this.radiusY.toFixed(t);break;case wi:t=0>t?\"A\"+this.radiusX.toString()+\" \"+this.radiusY.toString()+\" \"+this.xAxisRotation.toString()+\" \"+(this.isLargeArc?1:0)+\" \"+(this.isClockwiseArc?1:0)+\" \"+this.endX.toString()+\" \"+this.endY.toString():\"A\"+this.radiusX.toFixed(t)+\" \"+this.radiusY.toFixed(t)+\" \"+this.xAxisRotation.toFixed(t)+\" \"+(this.isLargeArc?1:0)+\" \"+(this.isClockwiseArc?1:0)+\" \"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;default:t=this.type.toString()}return t+(this.lj?\"z\":\"\")},i.freeze=function(){return this.v=!0,this},i.ha=function(){return this.v=!1,this},i.close=function(){return this.lj=!0,this},p.Object.defineProperties(fi.prototype,{isClosed:{get:function(){return this.lj},set:function(t){this.lj!==t&&(this.lj=t,this.ra=!0)}},type:{get:function(){return this.va},set:function(t){this.v&&M(this,t),this.va=t,this.ra=!0}},endX:{get:function(){return this.mc},set:function(t){this.v&&M(this,t),this.mc=t,this.ra=!0}},endY:{get:function(){return this.Bc},set:function(t){this.v&&M(this,t),this.Bc=t,this.ra=!0}},point1X:{get:function(){return this.se},set:function(t){this.v&&M(this,t),this.se=t,this.ra=!0}},point1Y:{get:function(){return this.mi},set:function(t){this.v&&M(this,t),this.mi=t,this.ra=!0}},point2X:{get:function(){return this.ni},set:function(t){this.v&&M(this,t),this.ni=t,this.ra=!0}},point2Y:{get:function(){return this.Zg},set:function(t){this.v&&M(this,t),this.Zg=t,this.ra=!0}},centerX:{get:function(){return this.se},set:function(t){this.v&&M(this,t),this.se=t,this.ra=!0}},centerY:{get:function(){return this.mi},set:function(t){this.v&&M(this,t),this.mi=t,this.ra=!0}},radiusX:{get:function(){return this.ni},set:function(t){0>t&&C(t,\">= zero\",fi,\"radiusX\"),this.v&&M(this,t),this.ni=t,this.ra=!0}},radiusY:{get:function(){return this.Zg},set:function(t){0>t&&C(t,\">= zero\",fi,\"radiusY\"),this.v&&M(this,t),this.Zg=t,this.ra=!0}},startAngle:{get:function(){return this.mc},set:function(t){this.mc!==t&&(this.v&&M(this,t),t%=360,0>t&&(t+=360),this.mc=t,this.ra=!0)}},sweepAngle:{get:function(){return this.Bc},set:function(t){this.v&&M(this,t),360t&&(t=-360),this.Bc=t,this.ra=!0}},isClockwiseArc:{get:function(){return this.Ek},set:function(t){this.v&&M(this,t),this.Ek=t,this.ra=!0}},isLargeArc:{get:function(){return this.il},set:function(t){this.v&&M(this,t),this.il=t,this.ra=!0}},xAxisRotation:{get:function(){return this.se},set:function(t){t%=360,0>t&&(t+=360),this.v&&M(this,t),this.se=t,this.ra=!0}}}),fi.prototype.equalsApprox=fi.prototype.Qa;var gi=new K(fi,\"Move\",0),mi=new K(fi,\"Line\",1),vi=new K(fi,\"Bezier\",2),yi=new K(fi,\"QuadraticBezier\",3),bi=new K(fi,\"Arc\",4),wi=new K(fi,\"SvgArc\",4);function xi(){this.C=null,this.Cu=new mt(0,0).freeze(),this.Tt=new mt(0,0).freeze(),this.Jq=this.Rr=0,this.Kq=1,this.Gr=\"\",this.Es=this.ar=!1,this.$q=this.Mq=0,this.Ag=this.nr=this.Ar=!1,this.gr=null,this.Cs=0,this.Qd=this.Bs=null}function ki(){this.C=null,this.Ua=\"\",this.es=this.zs=null}function Mi(){this.Wm=Si,this.Dj=this.Qr=\"\",this.zo=this.Ao=this.Fo=this.Go=this.Eo=this.C=this.$b=null}fi.className=\"PathSegment\",fi.Move=gi,fi.Line=mi,fi.Bezier=vi,fi.QuadraticBezier=yi,fi.Arc=bi,fi.SvgArc=wi,xi.prototype.copy=function(){var t=new xi;return this.clone(t)},xi.prototype.clone=function(t){return t.C=this.C,t.Cu.assign(this.viewPoint),t.Tt.assign(this.documentPoint),t.Rr=this.Rr,t.Jq=this.Jq,t.Kq=this.Kq,t.Gr=this.Gr,t.ar=this.ar,t.Es=this.Es,t.Mq=this.Mq,t.$q=this.$q,t.Ar=this.Ar,t.nr=this.nr,t.Ag=this.Ag,t.gr=this.gr,t.Cs=this.Cs,t.Bs=this.Bs,t.Qd=this.Qd,t},xi.prototype.toString=function(){var t=\"^\";return 0!==this.modifiers&&(t+=\"M:\"+this.modifiers),0!==this.button&&(t+=\"B:\"+this.button),\"\"!==this.key&&(t+=\"K:\"+this.key),0!==this.clickCount&&(t+=\"C:\"+this.clickCount),0!==this.delta&&(t+=\"D:\"+this.delta),this.handled&&(t+=\"h\"),this.bubbles&&(t+=\"b\"),null!==this.documentPoint&&(t+=\"@\"+this.documentPoint.toString()),t},xi.prototype.Wp=function(t,e){var i=this.diagram;return null===i||or(i,this.event,t,e),e},xi.prototype.dz=function(t,e){var i=this.diagram;return null===i||(or(i,this.event,t,e),e.assign(i.yt(e))),e},p.Object.defineProperties(xi.prototype,{diagram:{get:function(){return this.C},set:function(t){this.C=t}},viewPoint:{get:function(){return this.Cu},set:function(t){this.Cu.assign(t)}},documentPoint:{get:function(){return this.Tt},set:function(t){this.Tt.assign(t)}},modifiers:{get:function(){return this.Rr},set:function(t){this.Rr=t}},button:{get:function(){return this.Jq},set:function(t){if(this.Jq=t,null===this.event)switch(t){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Kq},set:function(t){this.Kq=t}},key:{get:function(){return this.Gr},set:function(t){this.Gr=t}},down:{get:function(){return this.ar},set:function(t){this.ar=t}},up:{get:function(){return this.Es},set:function(t){this.Es=t}},clickCount:{get:function(){return this.Mq},set:function(t){this.Mq=t}},delta:{get:function(){return this.$q},set:function(t){this.$q=t}},isMultiTouch:{get:function(){return this.Ar},set:function(t){this.Ar=t}},handled:{get:function(){return this.nr},set:function(t){this.nr=t}},bubbles:{get:function(){return this.Ag},set:function(t){this.Ag=t}},event:{get:function(){return this.gr},set:function(t){this.gr=t}},isTouchEvent:{get:function(){var t=v.TouchEvent,e=this.event;return!!(t&&e instanceof t)||(t=v.PointerEvent)&&e instanceof t&&(\"touch\"===e.pointerType||\"pen\"===e.pointerType)}},timestamp:{get:function(){return this.Cs},set:function(t){this.Cs=t}},targetDiagram:{get:function(){return this.Bs},set:function(t){this.Bs=t}},targetObject:{get:function(){return this.Qd},set:function(t){this.Qd=t}},control:{get:function(){return 0!==(1&this.modifiers)},set:function(t){this.modifiers=t?1|this.modifiers:-2&this.modifiers}},shift:{get:function(){return 0!==(4&this.modifiers)},set:function(t){this.modifiers=t?4|this.modifiers:-5&this.modifiers}},alt:{get:function(){return 0!==(2&this.modifiers)},set:function(t){this.modifiers=t?2|this.modifiers:-3&this.modifiers}},meta:{get:function(){return 0!==(8&this.modifiers)},set:function(t){this.modifiers=t?8|this.modifiers:-9&this.modifiers}},left:{get:function(){var t=this.event;return null===t||\"mousedown\"!==t.type&&\"mouseup\"!==t.type&&\"pointerdown\"!==t.type&&\"pointerup\"!==t.type?0!==(1&this.buttons):0===this.button},set:function(t){this.buttons=t?1|this.buttons:-2&this.buttons}},right:{get:function(){var t=this.event;return null===t||\"mousedown\"!==t.type&&\"mouseup\"!==t.type&&\"pointerdown\"!==t.type&&\"pointerup\"!==t.type?0!==(2&this.buttons):2===this.button},set:function(t){this.buttons=t?2|this.buttons:-3&this.buttons}},middle:{get:function(){var t=this.event;return null===t||\"mousedown\"!==t.type&&\"mouseup\"!==t.type&&\"pointerdown\"!==t.type&&\"pointerup\"!==t.type?0!==(4&this.buttons):1===this.button},set:function(t){this.buttons=t?4|this.buttons:-5&this.buttons}}}),xi.prototype.getMultiTouchDocumentPoint=xi.prototype.dz,xi.prototype.getMultiTouchViewPoint=xi.prototype.Wp,xi.className=\"InputEvent\",ki.prototype.copy=function(){var t=new ki;return t.C=this.C,t.Ua=this.Ua,t.zs=this.zs,t.es=this.es,t},ki.prototype.toString=function(){var t=\"*\"+this.name;return null!==this.subject&&(t+=\":\"+this.subject.toString()),null!==this.parameter&&(t+=\"(\"+this.parameter.toString()+\")\"),t},p.Object.defineProperties(ki.prototype,{diagram:{get:function(){return this.C},set:function(t){this.C=t}},name:{get:function(){return this.Ua},set:function(t){this.Ua=t}},subject:{get:function(){return this.zs},set:function(t){this.zs=t}},parameter:{get:function(){return this.es},set:function(t){this.es=t}}}),ki.className=\"DiagramEvent\",Mi.prototype.clear=function(){this.zo=this.Ao=this.Fo=this.Go=this.Eo=this.C=this.$b=null},Mi.prototype.copy=function(){var t=new Mi;t.Wm=this.Wm,t.Qr=this.Qr,t.Dj=this.Dj,t.$b=this.$b,t.C=this.C,t.Eo=this.Eo;var e=this.Go;return t.Go=P(e)&&\"function\"===typeof e.I?e.I():e,e=this.Fo,t.Fo=P(e)&&\"function\"===typeof e.I?e.I():e,e=this.Ao,t.Ao=P(e)&&\"function\"===typeof e.I?e.I():e,e=this.zo,t.zo=P(e)&&\"function\"===typeof e.I?e.I():e,t},Mi.prototype.fb=function(t){t.classType===Mi&&(this.change=t)},Mi.prototype.toString=function(){var t=\"\";return t=this.change===Ci?t+\"* \":this.change===Si?t+(null!==this.model?\"!m\":\"!d\"):t+(null!==this.model?\"!m\":\"!d\")+this.change,this.propertyName&&\"string\"===typeof this.propertyName&&(t+=\" \"+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(t+=\" \"+this.modelChange),t+=\": \",this.change===Ci?null!==this.oldValue&&(t+=\" \"+this.oldValue):(null!==this.object&&(t+=z(this.object)),null!==this.oldValue&&(t+=\" old: \"+z(this.oldValue)),null!==this.oldParam&&(t+=\" \"+this.oldParam),null!==this.newValue&&(t+=\" new: \"+z(this.newValue)),null!==this.newParam&&(t+=\" \"+this.newParam)),t},Mi.prototype.J=function(t){return t?this.oldValue:this.newValue},Mi.prototype.fz=function(t){return t?this.oldParam:this.newParam},Mi.prototype.canUndo=function(){return null!==this.model||null!==this.diagram},Mi.prototype.undo=function(){this.canUndo()&&(null!==this.model?this.model.Rj(this,!0):null!==this.diagram&&this.diagram.Rj(this,!0))},Mi.prototype.canRedo=function(){return null!==this.model||null!==this.diagram},Mi.prototype.redo=function(){this.canRedo()&&(null!==this.model?this.model.Rj(this,!1):null!==this.diagram&&this.diagram.Rj(this,!1))},p.Object.defineProperties(Mi.prototype,{model:{get:function(){return this.$b},set:function(t){this.$b=t}},diagram:{get:function(){return this.C},set:function(t){this.C=t}},change:{get:function(){return this.Wm},set:function(t){this.Wm=t}},modelChange:{get:function(){return this.Qr},set:function(t){this.Qr=t}},propertyName:{get:function(){return this.Dj},set:function(t){this.Dj=t}},isTransactionFinished:{get:function(){return this.Wm===Ci&&(\"CommittedTransaction\"===this.Dj||\"FinishedUndo\"===this.Dj||\"FinishedRedo\"===this.Dj)}},object:{get:function(){return this.Eo},set:function(t){this.Eo=t}},oldValue:{get:function(){return this.Go},set:function(t){this.Go=t}},oldParam:{get:function(){return this.Fo},set:function(t){this.Fo=t}},newValue:{get:function(){return this.Ao},set:function(t){this.Ao=t}},newParam:{get:function(){return this.zo},set:function(t){this.zo=t}}}),Mi.prototype.redo=Mi.prototype.redo,Mi.prototype.canRedo=Mi.prototype.canRedo,Mi.prototype.undo=Mi.prototype.undo,Mi.prototype.canUndo=Mi.prototype.canUndo,Mi.prototype.getParam=Mi.prototype.fz,Mi.prototype.getValue=Mi.prototype.J,Mi.prototype.clear=Mi.prototype.clear;var Ci=new K(Mi,\"Transaction\",-1),Si=new K(Mi,\"Property\",0),Ni=new K(Mi,\"Insert\",1),Pi=new K(Mi,\"Remove\",2);function Ti(){this.u=(new nt).freeze(),this.Ua=\"\",this.l=!1}function Li(){this.ju=new rt,this.Dc=!1,this.K=(new nt).freeze(),this.fe=-1,this.u=999,this.ie=!1,this.Yq=null,this.yi=0,this.l=!1,this.pe=(new nt).freeze(),this.sl=new nt,this.$t=!0,this.du=!1}function Oi(t,e,i){if(t.isUndoingRedoing)return!1;t.checksTransactionLevel&&1>t.transactionLevel&&S(\"Ending transaction without having started a transaction: \"+i);var n=1===t.transactionLevel;n&&e&&t.yb(\"CommittingTransaction\",i,t.currentTransaction);var o=0;if(0t.historyIndex;o--)r=n.N(o),null!==r&&r.clear(),n.mb(o),t.du=!0;o=t.maxHistoryLength,0<=o&&(0===o?n.clear():n.count>=o&&(r=n.N(0),null!==r&&r.clear(),n.mb(0),t.fe--)),0!==o&&(n.add(e),t.fe++),n.freeze(),r=e}t.yb(\"CommittedTransaction\",i,r)}else{t.ie=!0;try{t.isEnabled&&null!==r&&(r.isComplete=!0,r.undo())}finally{t.yb(\"RolledBackTransaction\",i,r),t.ie=!1}null!==r&&r.clear()}return t.Yq=null,!0}if(t.isEnabled&&!e&&null!==r){for(t=o,i=r.changes,e=i.count-1;e>=t;e--)n=i.N(e),null!==n&&n.undo(),i.ha(),i.mb(e);i.freeze()}return!1}function Di(){st(this),this.C=hs,this.Ua=\"\",this.Dc=!0,this.Vb=!1,this.dw=null,this.ey=new xi,this.Hs=-1}function ji(t,e,i){if(e.handled=!1,null===t||t.rg()){var n=0;e.left?n=1===e.clickCount?1:2===e.clickCount?2:1:e.right&&1===e.clickCount&&(n=3);var o=\"ObjectSingleClicked\";if(null!==t){switch(n){case 1:o=\"ObjectSingleClicked\";break;case 2:o=\"ObjectDoubleClicked\";break;case 3:o=\"ObjectContextClicked\"}0!==n&&i.aa(o,t)}else{switch(n){case 1:o=\"BackgroundSingleClicked\";break;case 2:o=\"BackgroundDoubleClicked\";break;case 3:o=\"BackgroundContextClicked\"}0!==n&&i.aa(o)}if(null!==t)for(;null!==t;){switch(i=null,n){case 1:i=t.click;break;case 2:i=t.doubleClick?t.doubleClick:t.click;break;case 3:i=t.contextClick}if(null!==i&&(i(e,t),e.handled))break;t=t.panel}else{switch(t=null,n){case 1:t=i.click;break;case 2:t=i.doubleClick?i.doubleClick:i.click;break;case 3:t=i.contextClick}null!==t&&t(e)}}}function Ai(){Di.call(this),this.name=\"ToolManager\",this.Kc=new nt,this.Vc=new nt,this.wg=new nt,this.ba=this.La=850,this.u=new It(2,2).ga(),this.Wb=5e3,this.Ma=Fi,this.K=Ri,this.Xq=this.l=null,this.Kj=-1}function Bi(t,e){t.standardMouseOver(),t.isBeyondDragSize()&&t.standardWaitAfter(t.isActive?t.holdDelay:t.hoverDelay,e.lastInput)}function zi(t,e,i,n){null!==i&&(i.name=e,i.hb(t.diagram)),t.findTool(e)?t.replaceTool(e,i):null!==i&&n.add(i)}Mi.className=\"ChangedEvent\",Mi.Transaction=Ci,Mi.Property=Si,Mi.Insert=Ni,Mi.Remove=Pi,Ti.prototype.toString=function(t){var e=\"Transaction: \"+this.name+\" \"+this.changes.count.toString()+(this.isComplete?\"\":\", incomplete\");if(void 0!==t&&0=this.transactionLevel&&!this.$t&&(t=t.diagram,null!==t&&!1===t.Oi||S(\"Change not within a transaction: \"+i.toString()))}},Li.prototype.skipsEvent=function(t){if(null===t||0>t.change.value)return!0;if(t=t.object,void 0!==t.layer){if(t=t.layer,null!==t&&t.isTemporary)return!0}else if(t.isTemporary)return!0;return!1},p.Object.defineProperties(Li.prototype,{models:{get:function(){return this.ju.iterator}},isEnabled:{get:function(){return this.Dc},set:function(t){this.Dc=t}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.N(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndexo&&(o=-3),0s&&(s=-3)),void 0===a||void 0===o||void 0===s||0===o&&0===s||e.shift)!e.shift&&t.allowVerticalScroll?(r=3*r*t.scrollVerticalLineChange,0o||Math.abs(e.y-t.y)>n},p.Object.defineProperties(Di.prototype,{diagram:{get:function(){return this.C},set:function(t){t instanceof Do&&(this.C=t)}},name:{get:function(){return this.Ua},set:function(t){this.Ua=t}},isEnabled:{get:function(){return this.Dc},set:function(t){this.Dc=t}},isActive:{get:function(){return this.Vb},set:function(t){this.Vb=t}},transactionResult:{get:function(){return this.dw},set:function(t){this.dw=t}}}),Di.prototype.stopTransaction=Di.prototype.vg,Di.prototype.startTransaction=Di.prototype.Aa,Di.className=\"Tool\",d(Ai,Di),Ai.prototype.initializeStandardTools=function(){},Ai.prototype.updateAdornments=function(t){var e=this.currentToolTip;if(e instanceof ju&&this.Xq===t){var i=e.adornedObject;(null!==t?i.part===t:null===i)?this.showToolTip(e,i):this.hideToolTip()}},Ai.prototype.doMouseDown=function(){var t=this.diagram,e=t.lastInput;if(e.isTouchEvent&&this.gestureBehavior===Vi&&(e.bubbles=!1),e.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===_i)return void(e.bubbles=!0);if(this.gestureBehavior===Vi)return;if(t.currentTool.canStartMultiTouch())return void t.currentTool.standardPinchZoomStart()}for(var i=this.mouseDownTools.length,n=0;no.right&&(i.x-=n.width+5/e.scale),i.xo.bottom?i.y-(n.height+5/e.scale):i.y+20/e.scale,i.yo&&(o=s),a>r&&(r=a))}}1/0===i?e.h(0,0,0,0):e.h(i,n,o-i,r-n)}function Ui(t,e){if(null===t.copiedParts){var i=t.diagram;if((!e||!i.isReadOnly&&!i.isModelReadOnly)&&null!==t.draggedParts){var n=i.undoManager;for(n.isEnabled&&n.isInTransaction?null!==n.currentTransaction&&0i.pointsCount)){var n=t.diagram;if(!n.isReadOnly){var o=t.bg;if(null!==o){var r=null,s=null;null===i.fromNode&&(r=nn(t,i.i(0),!1),null!==r&&(s=r.part));var a=null,l=null;null===i.toNode&&(a=nn(t,i.i(i.pointsCount-1),!0),null!==a&&(l=a.part)),o.isValidLink(s,r,l,a)?e?(i.defaultFromPoint=i.i(0),i.defaultToPoint=i.i(i.pointsCount-1),i.suspendsRouting=!1,i.fromNode=s,null!==r&&(i.fromPortId=r.portId),i.toNode=l,null!==a&&(i.toPortId=a.portId),i.fromPort!==n.vx&&n.aa(\"LinkRelinked\",i,n.vx),i.toPort!==n.wx&&n.aa(\"LinkRelinked\",i,n.wx)):kn(o,s,r,l,a):kn(o,null,null,null,null)}}}}function rn(t,e){var i=t.diagram;t.dragsLink&&on(t,!0),qi(t);var n=Uo(i,e,null,(function(e){return!Zi(t,e)})),o=i.lastInput;if(o.targetObject=n,null!==n){o.handled=!1;for(var r=n;null!==r;){var s=r.mouseDrop;if(null!==s&&(s(o,r),o.handled))break;sn(t,o,r),r=en(r)}}else r=i.mouseDrop,null!==r&&r(o);if(t.isActive||null!==un){for(o=(t.copiedParts||t.draggedParts).iterator;o.next();)r=o.key,r instanceof Au&&r.linksConnected.each((function(t){t.suspendsRouting=!1}));if(t.doDropOnto(e,n),t.isActive||null!==un){for(e=_t.alloc(),n=i.selection.iterator;n.next();)o=n.value,o instanceof Au&&an(t,i,o,e);_t.free(e)}}}function sn(t,e,i){t=t.diagram,i instanceof lu&&null===i.containingGroup&&!(i instanceof Ju)&&t.handlesDragDropForTopLevelParts&&(i=t.mouseDrop,null!==i&&i(e))}function an(t,e,i,n){var o=!1;for(i.getAvoidableRect(n),e.viewportBounds.lf(n)&&(o=!0),e=e.links,t=t.copiedParts||t.draggedParts;e.next();){var r=e.value;o&&!Cu(r)||t.contains(r)&&t.contains(i)||!r.Vd(i)&&r.isAvoiding&&Kt(r.actualBounds,n,0)&&r.Ra()}}function ln(t,e,i,n){if(null===t.copiedParts){var o=t.diagram;if(!o.isReadOnly&&!o.isModelReadOnly){o.skipsUndoManager=!i,o.partManager.addsToTemporaryLayer=!i,t.startPoint=n.documentPoint,i=o.Xj(e,o,!0);var r=_t.alloc();Xi(e,r),n=r.x+r.width/2,o=r.y+r.height/2,_t.free(r),r=t.xs;var s=new gt,a=mt.alloc();for(e=e.iterator;e.next();){var l=e.value,h=i.J(l);l.Lb()&&l.canCopy()?(l=l.location,a.h(r.x-(n-l.x),r.y-(o-l.y)),h.location=a,h.ac(),s.add(h,t.pd(a))):h instanceof nc&&l.canCopy()&&(sc(h,r.x-n,r.y-o),s.add(h,t.pd()))}mt.free(a),t.copiedParts=s,Yi(t,s.Yd()),null!==t.draggedLink&&(i=t.draggedLink,n=i.routeBounds,sc(i,t.startPoint.x-(n.x+n.width/2),t.startPoint.y-(n.y+n.height/2)))}}}Ai.className=\"ToolManager\",Ai.WheelScroll=Fi,Ai.WheelZoom=Ii,Ai.WheelNone=Ei,Ai.GestureZoom=Ri,Ai.GestureCancel=Vi,Ai.GestureNone=_i,d(Hi,Di),Hi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t.isReadOnly&&!t.allowDragOut||!t.allowMove&&!t.allowCopy&&!t.allowDragOut||!t.allowSelect)return!1;var e=t.lastInput;return!(!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.isTouchEvent&&e.timestamp-t.firstInput.timestamp=n&&(n=.1);var o=this,r=e.ng(i,n,(function(e){return o.findValidLinkablePort(e,t)}),null,!0);for(n=1/0,e=null,r=r.iterator;r.next();){var s=r.value,a=s.part;if(a instanceof Au){var l=s.ma(de,mt.alloc()),h=i.x-l.x,u=i.y-l.y;mt.free(l),l=h*h+u*u,li){if(null!==this.originalLink&&t===this.originalFromNode&&e===this.originalFromPort)return!0;if(e=e.portId,null===e&&(e=\"\"),t.Sp(e).count>=i)return!1}return!0},fn.prototype.isValidTo=function(t,e){if(null===t||null===e)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(null!==t.layer&&!t.layer.allowLink||!0!==e.toLinkable))return!1;var i=e.toMaxLinks;if(1/0>i){if(null!==this.originalLink&&t===this.originalToNode&&e===this.originalToPort)return!0;if(e=e.portId,null===e&&(e=\"\"),t.sd(e).count>=i)return!1}return!0},fn.prototype.isInSameNode=function(t,e){return null!==t&&null!==e&&(t===e||(t=t.part,e=e.part,null!==t&&t===e))},fn.prototype.isLinked=function(t,e){if(null===t||null===e)return!1;var i=t.part;if(!(i instanceof Au))return!1;t=t.portId,null===t&&(t=\"\");var n=e.part;if(!(n instanceof Au))return!1;for(e=e.portId,null===e&&(e=\"\"),e=n.sd(e);e.next();)if(n=e.value,n.fromNode===i&&n.fromPortId===t)return!0;return!1},fn.prototype.isValidLink=function(t,e,i,n){if(!this.isValidFrom(t,e)||!this.isValidTo(i,n)||!(null===e||null===n||(e.fromLinkableSelfNode&&n.toLinkableSelfNode||!this.isInSameNode(e,n))&&(e.fromLinkableDuplicates&&n.toLinkableDuplicates||!this.isLinked(e,n)))||null!==this.originalLink&&(null!==t&&this.isLabelDependentOnLink(t,this.originalLink)||null!==i&&this.isLabelDependentOnLink(i,this.originalLink))||null!==t&&null!==i&&(null===t.data&&null!==i.data||null!==t.data&&null===i.data)||!this.isValidCycle(t,i,this.originalLink))return!1;if(null!==t){var o=t.linkValidation;if(null!==o&&!o(t,e,i,n,this.originalLink))return!1}return!(null!==i&&(o=i.linkValidation,null!==o&&!o(t,e,i,n,this.originalLink)))&&(o=this.linkValidation,null===o||o(t,e,i,n,this.originalLink))},fn.prototype.isLabelDependentOnLink=function(t,e){if(null===t)return!1;var i=t.labeledLink;if(null===i)return!1;if(i===e)return!0;var n=new rt;return n.add(t),dn(this,i,e,n)},fn.prototype.isValidCycle=function(t,e,i){if(void 0===i&&(i=null),null===t||null===e)return this.isUnconnectedLinkValid;var n=this.diagram.validCycle;if(n!==bs){if(n===Ms){if(n=i||this.temporaryLink,null!==n&&!n.isTreeLink)return!0;for(n=e.linksConnected;n.next();){var o=n.value;if(o!==i&&o.isTreeLink&&o.toNode===e)return!1}return!pn(this,t,e,i,!0)}if(n===Cs){if(n=i||this.temporaryLink,null!==n&&!n.isTreeLink)return!0;for(n=t.linksConnected;n.next();)if(o=n.value,o!==i&&o.isTreeLink&&o.fromNode===t)return!1;return!pn(this,t,e,i,!0)}if(n===ws)return t===e?t=!0:(n=new rt,n.add(e),t=gn(this,n,t,e,i)),!t;if(n===xs)return!pn(this,t,e,i,!1);if(n===ks)return t===e?t=!0:(n=new rt,n.add(e),t=mn(this,n,t,e,i)),!t}return!0},p.Object.defineProperties(fn.prototype,{portGravity:{get:function(){return this.wg},set:function(t){0<=t&&(this.wg=t)}},isUnconnectedLinkValid:{get:function(){return this.ba},set:function(t){this.ba=t}},temporaryLink:{get:function(){return this.Gm},set:function(t){this.Gm=t}},temporaryFromNode:{get:function(){return this.Em},set:function(t){this.Em=t}},temporaryFromPort:{get:function(){return this.Fm},set:function(t){this.Fm=t}},temporaryToNode:{get:function(){return this.wq},set:function(t){this.wq=t}},temporaryToPort:{get:function(){return this.cw},set:function(t){this.cw=t}},originalLink:{get:function(){return this.Wb},set:function(t){this.Wb=t}},originalFromNode:{get:function(){return this.La},set:function(t){this.La=t}},originalFromPort:{get:function(){return this.Ma},set:function(t){this.Ma=t}},originalToNode:{get:function(){return this.Kc},set:function(t){this.Kc=t}},originalToPort:{get:function(){return this.Vc},set:function(t){this.Vc=t}},isForwards:{get:function(){return this.K},set:function(t){this.K=t}},validPortsCache:{get:function(){return this.Sx}},targetPort:{get:function(){return this.Dm},set:function(t){this.Dm=t}},linkValidation:{get:function(){return this.ii},set:function(t){this.ii=t}},portTargeted:{get:function(){return this.Cm},set:function(t){this.Cm=t}}}),fn.className=\"LinkingBaseTool\",d(vn,fn),vn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowLink||!t.model.dt()||!t.lastInput.left||t.currentTool!==this&&!this.isBeyondDragSize())&&null!==this.findLinkablePort()},vn.prototype.findLinkablePort=function(){var t=this.diagram,e=this.startObject;if(null===e&&(e=t.Sb(t.firstInput.documentPoint,null,null)),null===e||!(e.part instanceof Au))return null;if(t=this.direction,t===yn||t===bn){var i=this.findValidLinkablePort(e,!1);if(null!==i)return this.isForwards=!0,i}return t!==yn&&t!==wn||(e=this.findValidLinkablePort(e,!0),null===e)?null:(this.isForwards=!1,e)},vn.prototype.doActivate=function(){var t=this.diagram,e=this.findLinkablePort();null!==e&&(this.Aa(this.name),t.isMouseCaptured=!0,t.currentCursor=\"pointer\",this.isForwards?(null===this.temporaryToNode||this.temporaryToNode.location.o()||(this.temporaryToNode.location=t.lastInput.documentPoint),this.originalFromPort=e,e=this.originalFromPort.part,e instanceof Au&&(this.originalFromNode=e),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(null===this.temporaryFromNode||this.temporaryFromNode.location.o()||(this.temporaryFromNode.location=t.lastInput.documentPoint),this.originalToPort=e,e=this.originalToPort.part,e instanceof Au&&(this.originalToNode=e),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),t.add(this.temporaryFromNode),t.add(this.temporaryToNode),null!==this.temporaryLink&&(null!==this.temporaryFromNode&&(this.temporaryLink.fromNode=this.temporaryFromNode),null!==this.temporaryToNode&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.Ra(),t.add(this.temporaryLink)),this.isActive=!0)},vn.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;t.remove(this.temporaryLink),t.remove(this.temporaryFromNode),t.remove(this.temporaryToNode),t.isMouseCaptured=!1,t.currentCursor=\"\",this.vg()},vn.prototype.doStop=function(){fn.prototype.doStop.call(this),this.startObject=null},vn.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram,e=this.transactionResult=null,i=null,n=null,o=null,r=this.targetPort=this.findTargetPort(this.isForwards);if(null!==r){var s=r.part;s instanceof Au&&(this.isForwards?(null!==this.originalFromNode&&(e=this.originalFromNode,i=this.originalFromPort),n=s,o=r):(e=s,i=r,null!==this.originalToNode&&(n=this.originalToNode,o=this.originalToPort)))}else this.isForwards?null!==this.originalFromNode&&this.isUnconnectedLinkValid&&(e=this.originalFromNode,i=this.originalFromPort):null!==this.originalToNode&&this.isUnconnectedLinkValid&&(n=this.originalToNode,o=this.originalToPort);null!==e||null!==n?(s=this.insertLink(e,i,n,o),null!==s?(null===r&&(this.isForwards?s.defaultToPoint=t.lastInput.documentPoint:s.defaultFromPoint=t.lastInput.documentPoint),t.allowSelect&&t.select(s),this.transactionResult=this.name,t.aa(\"LinkDrawn\",s)):(t.model.Lu(),this.doNoLink(e,i,n,o))):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}this.stopTool()},vn.prototype.isNewTreeLink=function(){var t=this.archetypeLinkData;if(null===t)return!0;if(t instanceof nc)return t.isTreeLink;var e=this.diagram;return null===e||(t=e.partManager.getLinkCategoryForData(t),e=e.partManager.findLinkTemplateForCategory(t),null===e||e.isTreeLink)},vn.prototype.insertLink=function(t,e,i,n){return this.diagram.partManager.insertLink(t,e,i,n)},vn.prototype.doNoLink=function(){},p.Object.defineProperties(vn.prototype,{archetypeLinkData:{get:function(){return this.u},set:function(t){this.u=t}},archetypeLabelNodeData:{get:function(){return this.l},set:function(t){this.l=t}},direction:{get:function(){return this.L},set:function(t){this.L=t}},startObject:{get:function(){return this.Ch},set:function(t){this.Ch=t}}});var yn=new K(vn,\"Either\",0),bn=new K(vn,\"ForwardsOnly\",0),wn=new K(vn,\"BackwardsOnly\",0);function xn(){fn.call(this),this.name=\"Relinking\";var t=new sh;t.figure=\"Diamond\",t.desiredSize=Pt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",t.cursor=\"pointer\",t.segmentIndex=0,this.u=t,t=new sh,t.figure=\"Diamond\",t.desiredSize=Pt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",t.cursor=\"pointer\",t.segmentIndex=-1,this.Ch=t,this.l=null,this.Hw=new _t}function kn(t,e,i,n,o){null!==e?(t.copyPortProperties(e,i,t.temporaryFromNode,t.temporaryFromPort,!1),t.diagram.add(t.temporaryFromNode)):t.diagram.remove(t.temporaryFromNode),null!==n?(t.copyPortProperties(n,o,t.temporaryToNode,t.temporaryToPort,!0),t.diagram.add(t.temporaryToNode)):t.diagram.remove(t.temporaryToNode)}function Mn(){Di.call(this),this.name=\"LinkReshaping\";var t=new sh;t.figure=\"Rectangle\",t.desiredSize=Nt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",this.u=t,t=new sh,t.figure=\"Diamond\",t.desiredSize=Pt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",t.cursor=\"move\",this.K=t,this.ba=3,this.Ht=this.l=null,this.ul=new mt,this.ds=new nt}function Cn(t,e,i,n,o,r){return r?Math.abs(e.y-i.y)e.firstPickIndex+1&&i=i.x)e=0>=i.y?e+225:1<=i.y?e+135:e+180;else if(1<=i.x)0>=i.y?e+=315:1<=i.y&&(e+=45);else if(0>=i.y)e+=270;else{if(!(1<=i.y))break t;e+=90}0>e?e+=360:360<=e&&(e-=360),t.cursor=22.5>e?\"e-resize\":67.5>e?\"se-resize\":112.5>e?\"s-resize\":157.5>e?\"sw-resize\":202.5>e?\"w-resize\":247.5>e?\"nw-resize\":292.5>e?\"n-resize\":337.5>e?\"ne-resize\":\"e-resize\"}else if(t instanceof Nl)for(t=t.elements;t.next();)this.updateResizeHandles(t.value,e)},Ln.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||!t.allowResize||!t.lastInput.left)&&null!==this.findToolHandleAt(t.firstInput.documentPoint,this.name)},Ln.prototype.doActivate=function(){var t=this.diagram;null===this.handle&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),null!==this.handle&&(this.adornedObject=this.handle.part.adornedObject,null!==this.adornedObject&&(this.ul.set(this.adornedObject.ma(this.handle.alignment.rv())),this.Io.set(this.adornedObject.part.location),this.Gw.set(this.adornedObject.desiredSize),this.Wt=this.computeCellSize(),this.Yt=this.computeMinSize(),this.Xt=this.computeMaxSize(),t.isMouseCaptured=!0,this.Dw=t.animationManager.isEnabled,t.animationManager.isEnabled=!1,this.Aa(this.name),this.isActive=!0))},Ln.prototype.doDeactivate=function(){var t=this.diagram;this.vg(),this.$d=this.handle=null,this.isActive=t.isMouseCaptured=!1,t.animationManager.isEnabled=this.Dw},Ln.prototype.doCancel=function(){null!==this.adornedObject&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ln.prototype.doMouseMove=function(){var t=this.diagram;if(this.isActive){var e=this.Yt,i=this.Xt,n=this.Wt,o=this.adornedObject.Ws(t.lastInput.documentPoint,mt.alloc()),r=this.computeReshape();e=this.computeResize(o,this.handle.alignment,e,i,n,r),this.resize(e),t.fd(),mt.free(o)}},Ln.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){var e=this.Yt,i=this.Xt,n=this.Wt,o=this.adornedObject.Ws(t.lastInput.documentPoint,mt.alloc()),r=this.computeReshape();e=this.computeResize(o,this.handle.alignment,e,i,n,r),this.resize(e),mt.free(o),t.Xa(),this.transactionResult=this.name,t.aa(\"PartResized\",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ln.prototype.resize=function(t){var e=this.diagram,i=this.adornedObject,n=i.part;i.desiredSize=t.size,n.ac(),t=this.adornedObject.ma(this.handle.alignment.rv()),n instanceof Ju?(i=new nt,i.add(n),e.moveParts(i,this.ul.copy().Xd(t),!0)):n.location=n.location.copy().Xd(t).add(this.ul)},Ln.prototype.computeResize=function(t,e,i,n,o,r){e.jc()&&(e=de);var s=this.adornedObject.naturalBounds,a=s.x,l=s.y,h=s.x+s.width,u=s.y+s.height,c=1;if(!r){c=s.width;var f=s.height;0>=c&&(c=1),0>=f&&(f=1),c=f/c}return f=mt.alloc(),We.Tp(t.x,t.y,a,l,o.width,o.height,f),t=s.copy(),0>=e.x?0>=e.y?(t.x=Math.max(f.x,h-n.width),t.x=Math.min(t.x,h-i.width),t.width=Math.max(h-t.x,i.width),t.y=Math.max(f.y,u-n.height),t.y=Math.min(t.y,u-i.height),t.height=Math.max(u-t.y,i.height),r||(1<=t.height/t.width?(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c):(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width),t.x=h-t.width,t.y=u-t.height)):1<=e.y?(t.x=Math.max(f.x,h-n.width),t.x=Math.min(t.x,h-i.width),t.width=Math.max(h-t.x,i.width),t.height=Math.max(Math.min(f.y-l,n.height),i.height),r||(1<=t.height/t.width?(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c):(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width),t.x=h-t.width)):(t.x=Math.max(f.x,h-n.width),t.x=Math.min(t.x,h-i.width),t.width=h-t.x,r||(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c,t.y=l+.5*(u-l-t.height))):1<=e.x?0>=e.y?(t.width=Math.max(Math.min(f.x-a,n.width),i.width),t.y=Math.max(f.y,u-n.height),t.y=Math.min(t.y,u-i.height),t.height=Math.max(u-t.y,i.height),r||(1<=t.height/t.width?(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c):(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width),t.y=u-t.height)):1<=e.y?(t.width=Math.max(Math.min(f.x-a,n.width),i.width),t.height=Math.max(Math.min(f.y-l,n.height),i.height),r||(1<=t.height/t.width?(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c):(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width))):(t.width=Math.max(Math.min(f.x-a,n.width),i.width),r||(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c,t.y=l+.5*(u-l-t.height))):0>=e.y?(t.y=Math.max(f.y,u-n.height),t.y=Math.min(t.y,u-i.height),t.height=u-t.y,r||(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width,t.x=a+.5*(h-a-t.width))):1<=e.y&&(t.height=Math.max(Math.min(f.y-l,n.height),i.height),r||(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width,t.x=a+.5*(h-a-t.width))),mt.free(f),t},Ln.prototype.computeReshape=function(){var t=ts;return this.adornedObject instanceof sh&&(t=lh(this.adornedObject)),!(t===es||this.diagram.lastInput.shift)},Ln.prototype.computeMinSize=function(){var t=this.adornedObject.minSize.copy(),e=this.minSize;return!isNaN(e.width)&&e.width>t.width&&(t.width=e.width),!isNaN(e.height)&&e.height>t.height&&(t.height=e.height),t},Ln.prototype.computeMaxSize=function(){var t=this.adornedObject.maxSize.copy(),e=this.maxSize;return!isNaN(e.width)&&e.widthi?i+=360:360<=i&&(i-=360),i=Math.round(45*Math.round(i/45));var n=this.handleDistance;return 0===i?e.x=t.naturalBounds.width+n:45===i?(e.x=t.naturalBounds.width+n,e.y=t.naturalBounds.height+n):90===i?e.y=t.naturalBounds.height+n:135===i?(e.x=-n,e.y=t.naturalBounds.height+n):180===i?e.x=-n:225===i?(e.x=-n,e.y=-n):270===i?e.y=-n:315===i&&(e.x=t.naturalBounds.width+n,e.y=-n),t.ma(e)},On.prototype.doDeactivate=function(){var t=this.diagram;this.vg(),this.$d=this.handle=null,this.qu=new mt(NaN,NaN),this.isActive=t.isMouseCaptured=!1},On.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},On.prototype.doMouseMove=function(){var t=this.diagram;this.isActive&&(t=this.computeRotate(t.lastInput.documentPoint),this.rotate(t))},On.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){t.delaysLayout=!1;var e=this.computeRotate(t.lastInput.documentPoint);this.rotate(e),t.Xa(),this.transactionResult=this.name,t.aa(\"PartRotated\",this.adornedObject,this.originalAngle)}this.stopTool()},On.prototype.rotate=function(t){var e=this.adornedObject;if(null!==e){e.angle=t,e=e.part,e.ac();var i=e.locationObject,n=e.rotateObject;(i===n||i.qg(n))&&(i=this.Io.copy(),e.location=i.Xd(this.rotationPoint).rotate(t-this.originalAngle).add(this.rotationPoint))}},On.prototype.computeRotate=function(t){t=this.rotationPoint.Wa(t)-this.handleAngle;var e=this.adornedObject.panel;null!==e&&(t-=e.Ji()),360<=t?t-=360:0>t&&(t+=360),e=Math.min(Math.abs(this.snapAngleMultiple),180);var i=Math.min(Math.abs(this.snapAngleEpsilon),e/2);return!this.diagram.lastInput.shift&&0e-i&&(t=(Math.floor(t/e)+1)*e)),360<=t?t-=360:0>t&&(t+=360),t},p.Object.defineProperties(On.prototype,{handleArchetype:{get:function(){return this.u},set:function(t){this.u=t}},handle:{get:function(){return this.l},set:function(t){if(null!==t&&!(t.part instanceof ju))throw Error(\"new handle is not in an Adornment: \"+t);this.l=t}},adornedObject:{get:function(){return this.$d},set:function(t){if(null!==t&&t.part instanceof ju)throw Error(\"new handle must not be in an Adornment: \"+t);this.$d=t}},snapAngleMultiple:{get:function(){return this.Ma},set:function(t){this.Ma=t}},snapAngleEpsilon:{get:function(){return this.La},set:function(t){this.La=t}},originalAngle:{get:function(){return this.Fw}},rotationPoint:{get:function(){return this.qu}},handleAngle:{get:function(){return this.K},set:function(t){this.K=t}},handleDistance:{get:function(){return this.ba},set:function(t){this.ba=t}}}),On.className=\"RotatingTool\",I(\"rotatingTool\",(function(){return this.findTool(\"Rotating\")}),(function(t){zi(this,\"Rotating\",t,this.mouseDownTools)})),d(Dn,Di),Dn.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Dn.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Dn.className=\"ClickSelectingTool\",d(jn,Di),jn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram,e=t.lastInput,i=t.Sb(e.documentPoint,(function(t){for(;null!==t.panel&&!t.isActionable;)t=t.panel;return t}));return null!==i&&(!!i.isActionable&&(this.uk=i,t.Jk=t.Sb(e.documentPoint,null,null),!0))},jn.prototype.doMouseDown=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.uk;null!==e&&(t.targetObject=e,null!==e.actionDown&&e.actionDown(t,e))}else this.canStart()&&this.doActivate()},jn.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.uk;null!==e&&(t.targetObject=e,null!==e.actionMove&&e.actionMove(t,e))}},jn.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.uk;if(null===e)return;t.targetObject=e,null!==e.actionUp&&e.actionUp(t,e),this.standardMouseClick((function(t){for(;null!==t.panel&&(!t.isActionable||t!==e);)t=t.panel;return t}),(function(t){return t===e}))}this.stopTool()},jn.prototype.doCancel=function(){var t=this.diagram.lastInput,e=this.uk;null!==e&&(t.targetObject=e,null!==e.actionCancel&&e.actionCancel(t,e),this.stopTool())},jn.prototype.doStop=function(){this.uk=null},jn.className=\"ActionTool\",d(An,Di),An.prototype.canStart=function(){if(!this.isEnabled||null===this.archetypeNodeData)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(1===t.lastInput.clickCount&&(this.xw=t.lastInput.viewPoint.copy()),2!==t.lastInput.clickCount||this.isBeyondDragSize(this.xw))return!1}else if(1!==t.lastInput.clickCount)return!1;return t.currentTool===this||null===t.$l(t.lastInput.documentPoint,!0)},An.prototype.doMouseUp=function(){var t=this.diagram;this.isActive&&this.insertPart(t.lastInput.documentPoint),this.stopTool()},An.prototype.insertPart=function(t){var e=this.diagram,i=this.archetypeNodeData;if(null===i)return null;this.Aa(this.name);var n=null;return i instanceof lu?i.Lb()&&(ql(i),n=i.copy(),null!==n&&e.add(n)):null!==i&&(i=e.model.copyNodeData(i),P(i)&&(e.model.hf(i),n=e.vc(i))),null!==n&&(i=mt.allocAt(t.x,t.y),this.isGridSnapEnabled&&Mr(this.diagram,n,t,i),n.location=i,e.allowSelect&&e.select(n),mt.free(i)),e.Xa(),this.transactionResult=this.name,e.aa(\"PartCreated\",n),this.vg(),n},p.Object.defineProperties(An.prototype,{archetypeNodeData:{get:function(){return this.$i},set:function(t){this.$i=t}},isDoubleClick:{get:function(){return this.u},set:function(t){this.u=t}},isGridSnapEnabled:{get:function(){return this.l},set:function(t){this.l=t}}}),An.className=\"ClickCreatingTool\",d(Bn,Di),Bn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(!t.allowSelect)return!1;var e=t.lastInput;return!(!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.timestamp-t.firstInput.timestampo.right&&(i.x-=n.width+5/e.scale),i.xo.bottom&&(i.y-=n.height+5/e.scale),i.yt.lastInput.clickCount))},Kn.prototype.doStart=function(){this.isActive||null===this.textBlock||this.doActivate()},Kn.prototype.doActivate=function(){if(!this.isActive){var t=this.diagram;if(null!==t){var e=this.textBlock;if(null===e&&(e=t.Sb(t.lastInput.documentPoint)),null!==e&&e instanceof mh&&(this.textBlock=e,null!==e.part)){this.isActive=!0,this.la=ro;var i=this.defaultTextEditor;null!==e.textEditor&&(i=e.textEditor),this.kh=this.textBlock.copy();var n=new _t(this.textBlock.ma(he),this.textBlock.ma(ve));t.Fv(n),i.show(e,t,this),this.currentTextEditor=i}}}},Kn.prototype.doCancel=function(){this.stopTool()},Kn.prototype.doMouseUp=function(){!this.isActive&&this.canStart()&&this.doActivate()},Kn.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Zn)},Kn.prototype.acceptText=function(t){switch(t){case Zn:this.la===ho?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():this.la!==ro&&this.la!==lo&&this.la!==so||(this.la=ao,Wn(this));break;case Jn:case to:case Qn:to===t&&!0===this.textBlock.isMultiline||this.la!==ro&&this.la!==lo&&this.la!==so||(this.la=ao,Wn(this))}},Kn.prototype.doDeactivate=function(){var t=this.diagram;null!==t&&(this.la=oo,this.textBlock=null,null!==this.currentTextEditor&&this.currentTextEditor.hide(t,this),this.isActive=!1)},Kn.prototype.isValidText=function(t,e,i){var n=this.textValidation;return!(null!==n&&!n(t,e,i))&&(n=t.textValidation,!(null!==n&&!n(t,e,i)))},Kn.prototype.ux=function(t){var e=this.kh;return e.text=t,e.measure(this.textBlock.jl,1/0),e},p.Object.defineProperties(Kn.prototype,{textBlock:{get:function(){return this.Ma},set:function(t){this.Ma=t}},currentTextEditor:{get:function(){return this.u},set:function(t){this.u=t}},defaultTextEditor:{get:function(){return this.l},set:function(t){this.l=t}},starting:{get:function(){return this.La},set:function(t){this.La=t}},textValidation:{get:function(){return this.vi},set:function(t){this.vi=t}},minimumEditorScale:{get:function(){return this.K},set:function(t){this.K=t}},selectsTextOnActivate:{get:function(){return this.ba},set:function(t){this.ba=t}},state:{get:function(){return this.la},set:function(t){this.la!==t&&(this.la=t)}}}),Kn.prototype.measureTemporaryTextBlock=Kn.prototype.ux;var Jn=new K(Kn,\"LostFocus\",0),Zn=new K(Kn,\"MouseDown\",1),Qn=new K(Kn,\"Tab\",2),to=new K(Kn,\"Enter\",3),eo=new K(Kn,\"SingleClick\",0),io=new K(Kn,\"SingleClickSelected\",1),no=new K(Kn,\"DoubleClick\",2),oo=new K(Kn,\"StateNone\",0),ro=new K(Kn,\"StateActive\",1),so=new K(Kn,\"StateEditing\",2),ao=new K(Kn,\"StateValidating\",3),lo=new K(Kn,\"StateInvalid\",4),ho=new K(Kn,\"StateValidated\",5);function uo(){So||(Mo(),So=!0),this.pw=co,this.C=hs,this.rn=this.sn=null,this.Zi=this.tn=this.un=0,this.Ak=this.Yg=this.rb=this.Dr=this.Kf=!1,this.Pg=this.Dc=!0,this.Uq=this.Tq=this.ow=null,this.nw=0,this.Wq=new gt,this.Vt=600,this.Wx=new mt(0,0),this.lw=this.kw=this.Mw=!1,this.zk=new rt,this.xj=new gt,this.Uk=new gt,this.$r=new rt,this.Vq=null}function co(t,e,i,n){return t/=n/2,1>t?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e}function fo(t){if(t.Dc&&(t.zk.clear(),t.rb))if(t.Ak){if(0===t.Zi){var e=+new Date;t.Zi=e,v.requestAnimationFrame((function(){if(!1!==t.rb&&!t.Kf&&t.Zi===e){var i=t.C;i.De(\"temporaryPixelRatio\")&&Fo(i),Eo(i),t.rb=!1,t.Yg=!1,i.aa(\"AnimationStarting\"),mo(t,e)}}))}}else t.rb=!1,t.Yg=!1}function po(t){return t instanceof mt||t instanceof It?t.copy():t}function go(t,e){return!!t.Kf&&(t=t.xj.J(e),null!==t&&t.pt)}function mo(t,e){function i(){if(!1!==o.Kf&&o.Zi===e){var t=+new Date,r=t>p?h:t-d;vo(o),bo(o,n,f,s,r,h),o.Tq&&o.Tq(),ar(n),yo(o),t>p?wo(o):v.requestAnimationFrame(i)}}var n=t.C;if(null!==n){var o=t,r=t.Vq||{},s=r.cA||t.pw,a=r.gA||null,l=r.hA||null,h=r.duration||t.Vt,u=t.Wx;for(r=t.xj.iterator;r.next();){var c=r.value.start.position;c instanceof mt&&(c.o()||c.assign(u))}t.ow=s,t.Tq=a,t.Uq=l,t.nw=h,t.Wq=t.xj;var f=t.Wq;for(r=f.iterator;r.next();)a=r.value.end,a[\"position:placeholder\"]&&(l=r.key.findVisibleNode(),l instanceof Ju&&null!==l.placeholder&&(u=l.placeholder,l=u.ma(he),u=u.padding,l.x+=u.left,l.y+=u.top,a[\"position:placeholder\"]=l));t.Kf=!0,vo(t),bo(t,n,f,s,0,h),ar(t.C,!0),yo(t);var d=+new Date,p=d+h;o.Zi===e&&v.requestAnimationFrame((function(){i()}))}}function vo(t){if(!t.Dr){var e=t.C;t.Mw=e.skipsUndoManager,t.kw=e.skipsModelSourceBindings,t.lw=e.Ui,e.skipsUndoManager=!0,e.skipsModelSourceBindings=!0,e.Ui=!0,t.Dr=!0}}function yo(t){var e=t.C;e.skipsUndoManager=t.Mw,e.skipsModelSourceBindings=t.kw,e.Ui=t.lw,t.Dr=!1}function bo(t,e,i,n,o,r){for(i=i.iterator;i.next();){var s=i.key,a=i.value,l=a.start,h=a.end,u=Co;for(c in h)\"position\"===c&&(h[\"position:placeholder\"]||h[\"position:node\"])||null===u.get(c)||u.get(c)(s,l[c],h[c],n,o,r,a)}n=e.jv,e.jv=!0;var c=t.pw;0!==t.un&&0!==t.tn&&(i=t.un,e.Ca=c(o,i,t.tn-i,r)),null!==t.sn&&null!==t.rn&&(i=t.sn,t=t.rn,e.sa=new mt(c(o,i.x,t.x-i.x,r),c(o,i.y,t.y-i.y,r))),e.jv=n}function wo(t){t.Kf=!1,t.Ak=!1,vo(t);for(var e=t.C,i=t.ow,n=t.nw,o=t.Wq,r=t.Uk.iterator;r.next();)e.remove(r.value);for(r=t.$r.iterator;r.next();)r.value.s();for(o=o.iterator,r=Co;o.next();){var s,a=o.key,l=o.value,h=l.start,u=l.end,c=l.Uu;for(s in u)if(null!==r.get(s)){var f=s;!l.Pu||\"position:node\"!==f&&\"position:placeholder\"!==f||(f=\"position\"),r.get(f)(a,h[s],void 0!==c[s]?c[s]:l.Pu?h[s]:u[s],i,n,n)}l.Pu&&void 0!==c.location&&a instanceof lu&&(a.location=c.location),l.pt&&a instanceof lu&&a.Mb(!1)}for(i=t.C.links;i.next();)n=i.value,null!==n.bh&&(n.points=n.bh,n.bh=null);e.gt.clear(),Io(e,!1),e.Xa(),e.R(),e.fd(),rr(e),yo(t),t.Uq&&t.Uq(),t.Zi=0,t.Wq.clear(),t.Uq=null,t.Tq=null,t.sn=null,t.rn=null,t.un=0,t.tn=0,t.xj.clear(),0t&&C(t,\">= 1\",uo,\"duration\"),this.Vt=t}},isAnimating:{get:function(){return this.Kf}},isTicking:{get:function(){return this.Dr}},isInitial:{get:function(){return this.Pg},set:function(t){this.Pg=t}}}),uo.prototype.stopAnimation=uo.prototype.vd,uo.prototype.addToAnimation=uo.prototype.ye,uo.prototype.prepareAnimation=uo.prototype.zx,uo.prototype.prepareAutomaticAnimation=uo.prototype.Ri;var Co=null,So=!1;function No(t,e,i){this.start=t,this.end=e,this.Uu={},this.Pu=i,this.pt=!1}function Po(){st(this),this.C=null,this.Fa=new nt,this.Ua=\"\",this.lb=1,this.u=!1,this.Bj=this.K=this.Nh=this.Mh=this.Lh=this.Kh=this.Ih=this.Jh=this.Hh=this.Ph=this.Gh=this.Oh=this.Fh=this.Eh=!0,this.l=!1,this.Jo=[]}function To(t,e){var i=e.actualBounds,n=e.naturalBounds;if(0!==i.width&&0!==i.height&&!isNaN(i.x)&&!isNaN(i.y)&&e.isVisible()){var o=e.transform;null!==e.areaBackground&&(ia(e,t,e.areaBackground,!0,!0,n,i),t.fillRect(i.x,i.y,i.width,i.height)),null===e.areaBackground&&null===e.background&&(ia(e,t,\"rgba(0,0,0,0.4)\",!0,!1,n,i),t.fillRect(i.x,i.y,i.width,i.height)),null!==e.background&&(t.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),ia(e,t,e.background,!0,!1,n,i),t.fillRect(0,0,n.width,n.height),o.ct()||(e=1/(o.m11*o.m22-o.m12*o.m21),t.transform(o.m22*e,-o.m12*e,-o.m21*e,o.m11*e,e*(o.m21*o.dy-o.m22*o.dx),e*(o.m12*o.dx-o.m11*o.dy))))}}function Lo(t,e,i){if(e=Oo(t,e,i),i instanceof Ju&&null!==i&&isNaN(i.zOrder)){if(0!==i.memberParts.count){for(var n=-1,o=t.Fa.j,r=o.length,s=0;sn&&a.containingGroup===i&&(n=s,0<=e))break}!(0>n)&&n=o)return e;if(0>e&&(e=t.indexOf(i)),0>e)return-1;for(var r=e-1,s=NaN;0<=r;){if(s=t.N(r).zOrder,!isNaN(s))break;r--}for(var a=e+1,l=NaN;an)for(;;){if(-1===r||s<=n){if(r++,r===e)break;return t.mb(e),t.Ib(r,i),r}for(s=NaN;0<=--r&&(s=t.N(r).zOrder,isNaN(s)););}else if(!isNaN(l)&&l=n){if(a--,a===e)break;return t.mb(e),t.Ib(a,i),a}for(l=NaN;++ai&&(e=i),et.maxScale&&(e=t.maxScale),e):e===ys?(e=l>a?(s-t.Gb)/n:(r-t.Gb)/o,e>i&&(e=i),et.maxScale&&(e=t.maxScale),e):t.scale}function Xo(t,e,i,n,o,r){t.sa.ha();var s=t.sa,a=s.x,l=s.y;(r||t.scrollMode===Ss)&&(o.gb()&&(i>e.width&&(a=e.x+(o.x*e.width+o.offsetX)-(o.x*i-o.offsetX)),n>e.height&&(l=e.y+(o.y*e.height+o.offsetY)-(o.y*n-o.offsetY))),o=t.ri,r=i-e.width,ie.left?a=e.left:ae.top?l=e.top:le.targetTouches.length)return;e=e.targetTouches[i]}else{if(null===t.vl[0])return;e=t.vl[i]}i=t.Da,null!==i&&(i=i.getBoundingClientRect(),n.h(e.clientX-t.xa/i.width*i.left,e.clientY-t.wa/i.height*i.top))}function rr(t){t.Zb||hr(t),t.Og&&Ir(t,t.computeBounds())}function sr(t,e){t.animationManager.isAnimating||t.ob||!t.kj||yr(t)||(e&&hr(t),qo(t,!1))}function ar(t,e){if(!t.Zb&&(t.qd=!1,null!==t.Ia||t.Ep.o())){t.Zb=!0;var i=t.animationManager,n=t.mu;if(!i.isTicking&&0!==n.length){for(var o=n.j,r=o.length,s=0;se;e++){var i=t.Dd.iterator;if(null===i||0===t.Dd.count)break;t.Dd=new rt,t.Yv(i,t.Dd)}t.nodes.each((function(t){t instanceof Ju&&0!==(65536&t.S)!==!1&&(t.S=65536^t.S)}))}}function ur(t,e){for(var i=j(),n=j(),o=e.memberParts;o.next();){var r=o.value;r.isVisible()&&(r instanceof Ju?(pa(r)||ma(r)||xu(r))&&ur(t,r):r instanceof nc?r.fromNode===e||r.toNode===e?n.push(r):i.push(r):(r.measure(1/0,1/0),r.arrange()))}for(t=i.length,o=0;oh&&(c=g.left,f=g.right),u.height>i&&(d=g.top,p=g.bottom)):(c=g.left,f=g.right,d=g.top,p=g.bottom),g=u.width+c+f;var m=u.height+d+p;c=u.x-c;var v=r.x;f=u.right+f;var y=r.right+a;d=u.y-d;var b=r.y;p=u.bottom+p;var w=r.bottom+l,x=\"1px\",k=\"1px\";u=t.scale;var M=!(gy+1&&(x=Math.max((f-y)*u+t.xa,x)),h+a+1w+1&&(k=Math.max((p-w)*u+t.wa,k)),i+l+1y+1&&(a=Math.max((f-y)*u+t.xa,a)),h+1w+1&&(l=Math.max((p-w)*u+a,l)),i+1y+1&&(l=t.position.x*u)),t.Tn)switch(t.ru){case\"negative\":l=-(e.scrollWidth-l-e.clientWidth);break;case\"reverse\":l=e.scrollWidth-l-e.clientWidth}return e.scrollLeft=l,t.hasVerticalScrollbar&&t.allowVerticalScroll&&(i+1w+1&&(e.scrollTop=t.position.y*u)),h=t.xa,i=t.wa,e.style.width=h+(t.Zh?t.Gb:0)+\"px\",e.style.height=i+(t.Ng?t.Gb:0)+\"px\",n===h&&o===i&&!t.animationManager.rb||(t.iq(r,t.viewportBounds,u,s),!1)}function br(t,e,i){var n=e.layer;if(null!==n&&n.diagram===t){e.isSelected=!1,e.isHighlighted=!1;var o=t.animationManager;o.Yg&&e.Lb()&&o.animationReasons.contains(\"Remove\")&&(o.ye(e,\"scale\",e.scale,.01,!1),o.ye(e,\"angle\",e.angle,180,!1)),e.B(2),i&&e.Yj(),i=n.xc(-1,e,!1),0<=i&&t.ab(Pi,\"parts\",n,e,null,i,null),t=e.layerChanged,null!==t&&t(e,n,null)}}function wr(t,e,i,n,o){if(void 0===o&&(o=kr(t)),!e.contains(i)&&(!n||i.canMove()||i.canCopy()))if(i instanceof Au){if(e.add(i,t.pd(o,i,i.location)),i instanceof Ju)for(var r=i.memberParts;r.next();)wr(t,e,r.value,n,o);for(r=i.linksConnected;r.next();){var s=r.value;if(!e.contains(s)){var a=s.fromNode,l=s.toNode;null!==a&&e.contains(a)&&null!==l&&e.contains(l)&&wr(t,e,s,n,o)}}if(o.dragsTree)for(i=i.$u();i.next();)wr(t,e,i.value,n,o)}else if(i instanceof nc)for(e.add(i,t.pd(o,i)),i=i.labelNodes;i.next();)wr(t,e,i.value,n,o);else i instanceof ju||e.add(i,t.pd(o,i,i.location))}function xr(t,e,i,n,o){if(null!==e&&0!==e.count){var r=mt.alloc(),s=mt.alloc();s.assign(i),isNaN(s.x)&&(s.x=0),isNaN(s.y)&&(s.y=0),(i=t.vp)||Cr(t,e);for(var a=j(),l=j(),h=e.iterator,u=mt.alloc();h.next();){var c=h.key,f=h.value;if(c.Lb()){var d=Nr(t,c,e);null!==d?a.push(new Es(c,f,d)):o&&!c.canMove()||(d=f.point,r.assign(d),t.computeMove(c,r.add(s),n,u),c.location=u,void 0===f.shifted&&(f.shifted=new mt),f.shifted.assign(u.Xd(d)))}else h.key instanceof nc&&l.push(h.na)}for(mt.free(u),o=a.length,h=0;ht.maxScale&&(i=t.maxScale),r=mt.allocAt(t.sa.x+a/e-a/i,t.sa.y+l/e-l/i),t.position=r,mt.free(r),t.Ca=i,t.iq(o,t.viewportBounds,e,!1),t.ob=!1,qo(t,!1),ko(n,e,t.Ca),t.R(),pr(t)}}function Lr(t,e){void 0===e&&(e=null);var i=t.Eb;if(null!==i&&i.visible){for(var n=It.alloc(),o=1,r=1,s=i.Y.j,a=s.length,l=0;lu||(Dl(h.figure)?r=r*u/We.lx(r,u):o=o*u/We.lx(o,u))}if(s=i.gridCellSize,n.h(r*s.width,o*s.height),null!==e)o=e.width,r=e.height,t=e.x,s=e.y;else{if(e=_t.alloc(),t=t.viewportBounds,e.h(t.x,t.y,t.width,t.height),!e.o())return void _t.free(e);o=e.width,r=e.height,t=e.x,s=e.y,_t.free(e)}i.width=o+2*n.width,i.height=r+2*n.height,e=mt.alloc(),We.Tp(t,s,0,0,n.width,n.height,e),e.offset(-n.width,-n.height),It.free(n),i.part.location=e,mt.free(e)}}function Or(t){if(t=t.selection,0=n&&!r.isAnimating&&!r.rb&&(e||r.Ri(\"Layout\")),t.zg=!1;for(var s=t.xi.iterator;s.next();)_r(t,s.value,e,n);o.isValidLayout||(!e||o.isRealtime||null===o.isRealtime||0===n?(o.doLayout(t),hr(t),o.isValidLayout=!0):t.zg=!0)}finally{0===n&&t.Za(\"Layout\"),t.zg=!o.isValidLayout,t.da=i}}}function _r(t,e,i,n){if(null!==e){for(var o=e.rl.iterator;o.next();)_r(t,o.value,i,n);o=e.layout,null===o||o.isValidLayout||(!i||o.isRealtime||0===n?(e.mk=!e.location.o(),o.doLayout(e),e.B(32),ur(t,e),o.isValidLayout=!0):t.zg=!0)}}function Hr(t){function e(t){var e=t.toLowerCase(),o=new nt;i.add(t,o),i.add(e,o),n.add(t,t),n.add(e,t)}var i=new gt,n=new gt;e(\"AnimationStarting\"),e(\"AnimationFinished\"),e(\"BackgroundSingleClicked\"),e(\"BackgroundDoubleClicked\"),e(\"BackgroundContextClicked\"),e(\"ClipboardChanged\"),e(\"ClipboardPasted\"),e(\"DocumentBoundsChanged\"),e(\"ExternalObjectsDropped\"),e(\"GainedFocus\"),e(\"InitialLayoutCompleted\"),e(\"LayoutCompleted\"),e(\"LinkDrawn\"),e(\"LinkRelinked\"),e(\"LinkReshaped\"),e(\"LostFocus\"),e(\"Modified\"),e(\"ObjectSingleClicked\"),e(\"ObjectDoubleClicked\"),e(\"ObjectContextClicked\"),e(\"PartCreated\"),e(\"PartResized\"),e(\"PartRotated\"),e(\"SelectionMoved\"),e(\"SelectionCopied\"),e(\"SelectionDeleting\"),e(\"SelectionDeleted\"),e(\"SelectionGrouped\"),e(\"SelectionUngrouped\"),e(\"ChangingSelection\"),e(\"ChangedSelection\"),e(\"SubGraphCollapsed\"),e(\"SubGraphExpanded\"),e(\"TextEdited\"),e(\"TreeCollapsed\"),e(\"TreeExpanded\"),e(\"ViewportBoundsChanged\"),e(\"InvalidateDraw\"),t.St=i,t.Rt=n}function Yr(t,e){var i=t.Rt.J(e);return null!==i?i:t.Rt.J(e.toLowerCase())}function qr(t,e){var i=t.St.J(e);return null!==i?i:(i=t.St.J(e.toLowerCase()),null!==i?i:(k(\"Unknown DiagramEvent name: \"+e),null))}function Gr(t){if(t.animationManager.isAnimating)return!1;var e=t.currentTool;return e!==t.toolManager.findTool(\"Dragging\")||(!t.vp||e.isComplexRoutingRealtime)}function Xr(t,e,i,n){if(null===t.Ob&&(t.Ob=new qc),t.Ob.at||t.Ob.group!==i||t.Ob.Mx!==n){if(null===i){e=t.computeOccupiedArea(),e.Uc(100,100),t.Ob.initialize(e),e=_t.alloc();for(var o=t.nodes;o.next();){var r=o.value,s=r.layer;null!==s&&s.visible&&!s.isTemporary&&Ur(t,r,n,e)}_t.free(e)}else{for(0=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return i;var o=t.viewportBounds,r=t.scale;o=_t.allocAt(0,0,o.width*r,o.height*r);var s=mt.allocAt(0,0);if(e.x>=o.x&&e.xo.x+o.width-n.right&&(a=Math.max(t.scrollHorizontalLineChange,1),a|=0,s.x+=a,e.x>o.x+o.width-n.right/2&&(s.x+=a),e.x>o.x+o.width-n.right/4&&(s.x+=4*a));return e.y>=o.y&&e.yo.y+o.height-n.bottom&&(t=Math.max(t.scrollVerticalLineChange,1),t|=0,s.y+=t,e.y>o.y+o.height-n.bottom/2&&(s.y+=t),e.y>o.y+o.height-n.bottom/4&&(s.y+=4*t)),s.Qa(Dt)||(i=new mt(i.x+s.x/r,i.y+s.y/r)),_t.free(o),mt.free(s),i}function Jr(t,e,i){function n(){var t=+new Date;for(r=!0,s.reset();s.next();)if(!s.value[0].nl){r=!1;break}r||t-h>l?e(i,o,a):v.requestAnimationFrame(n)}for(var o=i.callback,r=!0,s=t.Cj.iterator;s.next();)if(!s.value[0].nl){r=!1;break}if(\"function\"!==typeof o||r)return e(i,o,t);var a=t,l=i.callbackTimeout||300,h=+new Date;return v.requestAnimationFrame((function(){n()})),null}function Zr(t,e,i,o){if(t.animationManager.vd(),t.fd(),null===t.Da)return null;\"object\"!==n(e)&&k(\"properties argument must be an Object.\");var r=e.size||null,s=e.scale||null;void 0!==e.scale&&isNaN(e.scale)&&(s=\"NaN\");var a=e.maxSize;void 0===e.maxSize&&(a=\"SVG\"===i?new It(1/0,1/0):new It(2e3,2e3));var l=e.position||null,h=e.parts||null,u=void 0===e.padding?1:e.padding,c=e.background||null,f=e.omitTemporary;void 0===f&&(f=!0);var d=e.document||document,p=e.elementFinished||null,g=e.showTemporary;void 0===g&&(g=!f),e=e.showGrid,void 0===e&&(e=g),null!==r&&isNaN(r.width)&&isNaN(r.height)&&(r=null),\"number\"===typeof u?u=new ee(u):u instanceof ee||k(\"MakeImage padding must be a Margin or a number.\"),u.left=Math.max(u.left,0),u.right=Math.max(u.right,0),u.top=Math.max(u.top,0),u.bottom=Math.max(u.bottom,0),t.Yc.Rc(!0),f=new za(null,d);var m=f.context;if(!(r||s||h||l))return f.width=t.xa+Math.ceil(u.left+u.right),f.height=t.wa+Math.ceil(u.top+u.bottom),\"SVG\"===i?null===o?null:(o.resize(f.width,f.height,f.width,f.height),o.ownerDocument=d,o.Qp=p,cr(t,o.context,u,new It(f.width,f.height),t.Ca,t.sa,h,c,g,e),o.context):(t.xn=!1,cr(t,m,u,new It(f.width,f.height),t.Ca,t.sa,h,c,g,e),t.xn=!0,f.context);var v=t.Zq,y=t.documentBounds.copy();if(y.Ov(t.eb),g)for(var b=t.Pa.j,w=b.length,x=0;xv?(s=v,r=y.width,y=y.height):(r=a.width,y=a.height)):(r=y.width*s,y=y.height*s):(s=v,r=y.width,y=y.height),null!==u?(r+=l,y+=P):u=new ee(0),null!==a&&(v=a.width,a=a.height,isNaN(v)&&(v=2e3),isNaN(a)&&(a=2e3),isFinite(v)&&(r=Math.min(r,v)),isFinite(a)&&(y=Math.min(y,a))),f.width=Math.ceil(r),f.height=Math.ceil(y),\"SVG\"===i?null===o?null:(o.resize(f.width,f.height,f.width,f.height),o.ownerDocument=d,o.Qp=p,cr(t,o.context,u,new It(Math.ceil(r),Math.ceil(y)),s,b,h,c,g,e),o.context):(t.xn=!1,cr(t,m,u,new It(Math.ceil(r),Math.ceil(y)),s,b,h,c,g,e),t.xn=!0,f.context)}uo.className=\"AnimationManager\",No.className=\"AnimationStates\",i=Po.prototype,i.hb=function(t){this.C=t},i.toString=function(t){void 0===t&&(t=0);var e='Layer \"'+this.name+'\"';if(0>=t)return e;for(var i=0,n=0,o=0,r=0,s=0,a=this.Fa.iterator;a.next();){var l=a.value;l instanceof Ju?o++:l instanceof Au?n++:l instanceof nc?r++:l instanceof ju?s++:i++}if(a=\"\",0=n.count)t=n.count;else if(n.N(t)===e)return-1;return n.Ib(t,e),e.Yp(i),n=this.diagram,null!==n&&(i?n.R():n.Ni(e)),Lo(this,t,e),t},i.xc=function(t,e,i){if(!i&&e.layer!==this&&null!==e.layer)return e.layer.xc(t,e,i);var n=this.Fa;if(0>t||t>=n.length){if(t=n.indexOf(e),0>t)return-1}else if(n.N(t)!==e&&(t=n.indexOf(e),0>t))return-1;return e.Zp(i),n.mb(t),n=this.diagram,null!==n&&(i?n.R():n.xc(e)),e.fi=null,t},i.clear=function(){for(var t=this.Fa.Na(),e=t.length,i=0;it||1=t)return e;for(var i=this.Pa.iterator;i.next();)e+=\"\\n \"+i.value.toString(t-1);return e},Do.prototype.addEventListener=function(t,e,i,n){t.addEventListener(e,i,n)},Do.prototype.removeEventListener=function(t,e,i,n){t.removeEventListener(e,i,n)},Do.prototype.computePixelRatio=function(){return null!==this.jh?this.jh:v.devicePixelRatio||1},Do.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Do.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Do.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Do.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Do.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Do.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Do.prototype.doFocus=function(){this.focus()},Do.prototype.focus=function(){if(this.Da)if(this.scrollsPageOnFocus)this.Da.focus();else{var t=v.scrollX||v.pageXOffset,e=v.scrollY||v.pageYOffset;this.Da.focus(),v.scrollTo(t,e)}},Do.prototype.ty=function(){this.C.aa(\"GainedFocus\")},Do.prototype.sy=function(){this.C.aa(\"LostFocus\")},Do.prototype.bx=function(t){if(null!==this.Da){this.ns=!0;var e=this.documentBounds,i=this.viewportBounds,n=this.ri,o=e.x-n.left,r=e.y-n.top,s=e.width+n.left+n.right,a=e.height+n.top+n.bottom,l=e.right+n.right;n=e.bottom+n.bottom;var h=i.x;e=i.y;var u=i.width,c=i.height,f=i.right,d=i.bottom;i=this.scale;var p=t.scrollLeft;if(this.Tn)switch(this.ru){case\"negative\":p=p+t.scrollWidth-t.clientWidth;break;case\"reverse\":p=t.scrollWidth-p-t.clientWidth}var g=p;uf&&(this.position=p.h(-(this.ps.scrollWidth-this.xa)+g-this.xa/i+l,this.position.y))),t.Zx&&this.allowVerticalScroll&&(rd&&(this.position=p.h(this.position.x,-(this.ps.scrollHeight-this.wa)+t.scrollTop-this.wa/i+n))),mt.free(p),gr(this),this.kj=this.ns=!1,e=this.documentBounds,i=this.viewportBounds,l=e.right,f=i.right,n=e.bottom,d=i.bottom,o=e.x,h=i.x,r=e.y,e=i.y,u>=s&&o>=h&&l<=f&&(this.fp.style.width=\"1px\"),c>=a&&r>=e&&n<=d&&(this.fp.style.height=\"1px\"))}},Do.prototype.computeBounds=function(){return 0o/i?(r-(this.Ng?this.Gb:0))/n:(o-(this.Zh?this.Gb:0))/i:Math.min(r/n,o/i)}this.scale=o,this.position=new mt(t.x,t.y)}},i.my=function(t,e){this.Og&&Ir(this,this.computeBounds());var i=this.documentBounds,n=this.viewportBounds;this.position=new mt(i.x+(t.x*i.width+t.offsetX)-(e.x*n.width-e.offsetX),i.y+(t.y*i.height+t.offsetY)-(e.y*n.height-e.offsetY))},i.$l=function(t,e){if(void 0===e&&(e=!0),e){if(t=Uo(this,t,(function(t){return t.part}),(function(t){return t.canSelect()})),t instanceof lu)return t}else if(t=Uo(this,t,(function(t){return t.part})),t instanceof lu)return t;return null},i.Sb=function(t,e,i){void 0===e&&(e=null),void 0===i&&(i=null),hr(this);for(var n=this.Pa.iteratorBackwards;n.next();){var o=n.value;if(o.visible&&(o=o.Sb(t,e,i),null!==o))return o}return null},i.Py=function(t,e,i){return void 0===e&&(e=!0),Ko(this,t,(function(t){return t.part}),e?function(t){return t instanceof lu&&t.canSelect()}:null,i)},i.Fi=function(t,e,i,n){void 0===e&&(e=null),void 0===i&&(i=null),n instanceof nt||n instanceof rt||(n=new rt),hr(this);for(var o=this.Pa.iteratorBackwards;o.next();){var r=o.value;r.visible&&r.Fi(t,e,i,n)}return n},i.kx=function(t,e,i,n){return void 0===e&&(e=!1),void 0===i&&(i=!0),$o(this,t,(function(t){return t instanceof lu&&(!i||t.canSelect())}),e,n)},i.mg=function(t,e,i,n,o){void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n=!1),o instanceof nt||o instanceof rt||(o=new rt),hr(this);for(var r=this.Pa.iteratorBackwards;r.next();){var s=r.value;s.visible&&s.mg(t,e,i,n,o)}return o},i.Qy=function(t,e,i,n,o){return void 0===i&&(i=!0),void 0===n&&(n=!0),Wo(this,t,e,(function(t){return t instanceof lu&&(!n||t.canSelect())}),i,o)},i.ng=function(t,e,i,n,o,r){void 0===i&&(i=null),void 0===n&&(n=null),void 0===o&&(o=!0),!1!==o&&!0!==o&&((o instanceof nt||o instanceof rt)&&(r=o),o=!0),r instanceof nt||r instanceof rt||(r=new rt),hr(this);for(var s=this.Pa.iteratorBackwards;s.next();){var a=s.value;a.visible&&a.ng(t,e,i,n,o,r)}return r},Do.prototype.acceptEvent=function(t){return Jo(this,t,t instanceof MouseEvent)},Do.prototype.vz=function(t){var e=this.C;if(!this.C.isEnabled)return!1;var i=Jo(e,t,!1);switch(i.key=String.fromCharCode(t.which),i.down=!0,t.which){case 8:i.key=\"Backspace\";break;case 33:i.key=\"PageUp\";break;case 34:i.key=\"PageDown\";break;case 35:i.key=\"End\";break;case 36:i.key=\"Home\";break;case 37:i.key=\"Left\";break;case 38:i.key=\"Up\";break;case 39:i.key=\"Right\";break;case 40:i.key=\"Down\";break;case 45:i.key=\"Insert\";break;case 46:i.key=\"Del\";break;case 48:i.key=\"0\";break;case 187:case 61:case 107:i.key=\"Add\";break;case 189:case 173:case 109:i.key=\"Subtract\";break;case 27:i.key=\"Esc\"}return e.doKeyDown(),ir(i,t)},Do.prototype.wz=function(t){var e=this.C;if(!e.isEnabled)return!1;var i=Jo(e,t,!1);switch(i.key=String.fromCharCode(t.which),i.up=!0,t.which){case 8:i.key=\"Backspace\";break;case 33:i.key=\"PageUp\";break;case 34:i.key=\"PageDown\";break;case 35:i.key=\"End\";break;case 36:i.key=\"Home\";break;case 37:i.key=\"Left\";break;case 38:i.key=\"Up\";break;case 39:i.key=\"Right\";break;case 40:i.key=\"Down\";break;case 45:i.key=\"Insert\";break;case 46:i.key=\"Del\"}return e.doKeyUp(),ir(i,t)},Do.prototype.Fy=function(t){var e=this.C;if(!e.isEnabled)return!1;var i=Jo(e,t,!0);return null!==e.mouseEnter&&e.mouseEnter(i),ir(i,t)},Do.prototype.Gy=function(t){var e=this.C;if(!e.isEnabled)return!1;var i=Jo(e,t,!0);return null!==e.mouseLeave&&e.mouseLeave(i),ir(i,t)},Do.prototype.getMouse=function(t){var e=this.Da;if(null===e)return new mt(0,0);var i=e.getBoundingClientRect();return e=t.clientX-this.xa/i.width*i.left,t=t.clientY-this.wa/i.height*i.top,null!==this.tb?wt(new mt(e,t),this.tb):new mt(e,t)},i=Do.prototype,i.Xa=function(){this.Og||(this.Og=!0,this.cc(!0))},i.sf=function(){this.ob||this.Zb||(this.R(),pr(this),gr(this),this.Xa(),this.fd())},i.uz=function(){return this.qd},i.Ay=function(t){void 0===t&&(t=null);var e=this.animationManager,i=e.isEnabled;e.vd(),e.isEnabled=!1,ar(this),this.ge=!1,e.isEnabled=i,null!==t&&w(t,1)},i.cc=function(t){if(void 0===t&&(t=!1),!0!==this.qd&&!(this.ob||!1===t&&this.Zb)){this.qd=!0;var e=this;v.requestAnimationFrame((function(){e.qd&&e.fd()}))}},i.fd=function(){this.Xk&&!this.qd||(this.Xk&&(this.Xk=!1),ar(this))},i.Yv=function(t,e){for(t.reset();t.next();){var i=t.value;!i.Lb()||i instanceof Ju||(i.Pi()?(i.measure(1/0,1/0),i.arrange()):e.add(i))}for(t.reset();t.next();)i=t.value,i instanceof Ju&&i.isVisible()&&ur(this,i);for(t.reset();t.next();)i=t.value,i instanceof nc&&i.isVisible()&&(i.Pi()?(i.measure(1/0,1/0),i.arrange()):e.add(i));for(t.reset();t.next();)i=t.value,i instanceof ju&&i.isVisible()&&(i.Pi()?(i.measure(1/0,1/0),i.arrange()):e.add(i))},i.hd=function(t,e,i,n){if(this.bi||this.animationManager.isAnimating)for(var o=0;on&&this.Xa()},i.hy=function(t,e){Pr(this,t,e),t.hb(this);var i=this.Pa,n=i.indexOf(t);0<=n&&(i.remove(t),null!==this.$b&&this.ab(Pi,\"layers\",this,t,null,n,null));var o,r=i.count;for(o=0;on&&this.Xa()},i.Lz=function(t){if(t.diagram!==this&&k(\"Cannot remove a Layer from another Diagram: \"+t+\" of \"+t.diagram),\"\"!==t.name){var e=this.Pa,i=e.indexOf(t);if(e.remove(t)){for(e=t.Fa.copy().iterator;e.next();){var n=e.value,o=n.layerName;o!==t.name?n.layerName=o:n.layerName=\"\"}null!==this.$b&&this.ab(Pi,\"layers\",this,t,null,i,null),this.R(),this.Xa()}}},i.Zl=function(t){for(var e=this.layers;e.next();){var i=e.value;if(i.name===t)return i}return null},i.Tw=function(t){null===this.ne&&(this.ne=new nt),this.ne.add(t),this.model.rh(t)},i.Nz=function(t){null!==this.ne&&(this.ne.remove(t),0===this.ne.count&&(this.ne=null)),this.model.pk(t)},i.rh=function(t){null===this.zf&&(this.zf=new nt),this.zf.add(t)},i.pk=function(t){null!==this.zf&&(this.zf.remove(t),0===this.zf.count&&(this.zf=null))},i.Ks=function(t){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.fv(t),t.change!==Ci&&(this.isModified=!0),null!==this.zf)for(var e=this.zf,i=e.length,n=0;nf.Fa.indexOf(p)&&f.Ni(d,p,g):(p.isSelected=!1,p.isHighlighted=!1,p.Jb(),f.xc(g?d:-1,p,g)))}else f instanceof Do?\"number\"===typeof d&&p instanceof Po&&(e?(p.hb(this),this.Pa.Ib(d,p)):this.Pa.mb(d)):k(\"unknown ChangedEvent.Remove object: \"+t.toString());this.isModified=!0}else n!==Ci&&k(\"unknown ChangedEvent: \"+t.toString())}finally{this.skipsModelSourceBindings=i}}},i.Aa=function(t){return this.undoManager.Aa(t)},i.Za=function(t){return this.undoManager.Za(t)},i.uf=function(){return this.undoManager.uf()},Do.prototype.commit=function(t,e){void 0===e&&(e=\"\");var i=this.skipsUndoManager;null===e&&(this.skipsUndoManager=!0,e=\"\"),this.undoManager.Aa(e);var n=!1;try{t(this),n=!0}finally{n?this.undoManager.Za(e):this.undoManager.uf(),this.skipsUndoManager=i}},Do.prototype.updateAllTargetBindings=function(t){this.partManager.updateAllTargetBindings(t)},i=Do.prototype,i.tq=function(){this.partManager.tq()},i.iq=function(t,e,i,n){if(!t.A(e)){void 0===n&&(n=!1),n||pr(this),gr(this);var o=this.layout;null===o||!o.isViewportSized||this.autoScale!==ms||n||t.width===e.width&&t.height===e.height||o.B(),o=this.currentTool,!0===this.he&&o instanceof Ai&&(this.lastInput.documentPoint=this.yt(this.lastInput.viewPoint),Bi(o,this)),this.ob||this.ox(t,e),Lr(this),this.we.scale=i,this.we.position.x=t.x,this.we.position.y=t.y,this.we.bounds.assign(t),this.we.qx=n,this.aa(\"ViewportBoundsChanged\",this.we,t),this.isVirtualized&&this.links.each((function(t){t.isAvoiding&&t.actualBounds.Ic(e)&&t.Ra()}))}},i.Ls=function(){var t=0t&&C(t,\">= 0\",Do,\"scrollHorizontalLineChange\"),this.os=t,this.g(\"scrollHorizontalLineChange\",e,t))}},scrollVerticalLineChange:{get:function(){return this.qs},set:function(t){var e=this.qs;e!==t&&(0>t&&C(t,\">= 0\",Do,\"scrollVerticalLineChange\"),this.qs=t,this.g(\"scrollVerticalLineChange\",e,t))}},lastInput:{get:function(){return this.qj},set:function(t){this.qj=t}},firstInput:{get:function(){return this.Xh},set:function(t){this.Xh=t}},currentCursor:{get:function(){return this.Sq},set:function(t){if(\"\"===t&&(t=this.qn),this.Sq!==t){var e=this.Da,i=this.Ia;if(null!==e){this.Sq=t;var n=e.style.cursor;e.style.cursor=t,i.style.cursor=t,e.style.cursor===n&&(e.style.cursor=\"-webkit-\"+t,i.style.cursor=\"-webkit-\"+t,e.style.cursor===n&&(e.style.cursor=\"-moz-\"+t,i.style.cursor=\"-moz-\"+t,e.style.cursor===n&&(e.style.cursor=t,i.style.cursor=t)))}}}},defaultCursor:{get:function(){return this.qn},set:function(t){\"\"===t&&(t=\"auto\");var e=this.qn;e!==t&&(this.qn=t,this.g(\"defaultCursor\",e,t))}},click:{get:function(){return this.Af},set:function(t){var e=this.Af;e!==t&&(this.Af=t,this.g(\"click\",e,t))}},doubleClick:{get:function(){return this.Ff},set:function(t){var e=this.Ff;e!==t&&(this.Ff=t,this.g(\"doubleClick\",e,t))}},contextClick:{get:function(){return this.Bf},set:function(t){var e=this.Bf;e!==t&&(this.Bf=t,this.g(\"contextClick\",e,t))}},mouseOver:{get:function(){return this.Wf},set:function(t){var e=this.Wf;e!==t&&(this.Wf=t,this.g(\"mouseOver\",e,t))}},mouseHover:{get:function(){return this.Uf},set:function(t){var e=this.Uf;e!==t&&(this.Uf=t,this.g(\"mouseHover\",e,t))}},mouseHold:{get:function(){return this.Tf},set:function(t){var e=this.Tf;e!==t&&(this.Tf=t,this.g(\"mouseHold\",e,t))}},mouseDragOver:{get:function(){return this.Sr},set:function(t){var e=this.Sr;e!==t&&(this.Sr=t,this.g(\"mouseDragOver\",e,t))}},mouseDrop:{get:function(){return this.Rf},set:function(t){var e=this.Rf;e!==t&&(this.Rf=t,this.g(\"mouseDrop\",e,t))}},handlesDragDropForTopLevelParts:{get:function(){return this.pr},set:function(t){var e=this.pr;e!==t&&(this.pr=t,this.g(\"handlesDragDropForTopLevelParts\",e,t))}},mouseEnter:{get:function(){return this.Sf},set:function(t){var e=this.Sf;e!==t&&(this.Sf=t,this.g(\"mouseEnter\",e,t))}},mouseLeave:{get:function(){return this.Vf},set:function(t){var e=this.Vf;e!==t&&(this.Vf=t,this.g(\"mouseLeave\",e,t))}},toolTip:{get:function(){return this.gg},set:function(t){var e=this.gg;e!==t&&(this.gg=t,this.g(\"toolTip\",e,t))}},contextMenu:{get:function(){return this.Cf},set:function(t){var e=this.Cf;e!==t&&(this.Cf=t,this.g(\"contextMenu\",e,t))}},commandHandler:{get:function(){return this.K},set:function(t){this.K!==t&&(this.K=t,t.hb(this))}},toolManager:{get:function(){return this.Vb},set:function(t){this.Vb!==t&&(this.Vb=t,t.hb(this))}},defaultTool:{get:function(){return this.La},set:function(t){var e=this.La;e!==t&&(this.La=t,t.hb(this),this.currentTool===e&&(this.currentTool=t))}},currentTool:{get:function(){return this.ba},set:function(t){var e=this.ba;null!==e&&(e.isActive&&e.doDeactivate(),e.cancelWaitAfter(),e.doStop()),null===t&&(t=this.defaultTool),null!==t&&(this.ba=t,t.hb(this),t.doStart())}},selection:{get:function(){return this.ts}},maxSelectionCount:{get:function(){return this.Or},set:function(t){var e=this.Or;if(e!==t)if(0<=t&&!isNaN(t)){if(this.Or=t,this.g(\"maxSelectionCount\",e,t),!this.undoManager.isUndoingRedoing&&(t=this.selection.count-t,0= 0\",Do,\"maxSelectionCount\")}},nodeSelectionAdornmentTemplate:{get:function(){return this.Yr},set:function(t){var e=this.Yr;e!==t&&(this.Yr=t,this.g(\"nodeSelectionAdornmentTemplate\",e,t))}},groupSelectionAdornmentTemplate:{get:function(){return this.mr},set:function(t){var e=this.mr;e!==t&&(this.mr=t,this.g(\"groupSelectionAdornmentTemplate\",e,t))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kr},set:function(t){var e=this.Kr;e!==t&&(this.Kr=t,this.g(\"linkSelectionAdornmentTemplate\",e,t))}},highlighteds:{get:function(){return this.sr}},isModified:{get:function(){var t=this.undoManager;return t.isEnabled?null!==t.currentTransaction||this.u&&this.fe!==t.historyIndex:this.u},set:function(t){if(this.u!==t){this.u=t;var e=this.undoManager;!t&&e.isEnabled&&(this.fe=e.historyIndex),t||Dr(this)}}},model:{get:function(){return this.$b},set:function(t){var e=this.$b;if(e!==t){this.currentTool.doCancel(),null!==e&&e.undoManager!==t.undoManager&&e.undoManager.isInTransaction&&k(\"Do not replace a Diagram.model while a transaction is in progress.\"),jo(this,!0),this.ge=!1,this.Xk=!0,this.fe=-2,this.qd=!1;var i=this.Zb;this.Zb=!0,this.animationManager.Ri(\"Model\"),null!==e&&(null!==this.ne&&this.ne.each((function(t){e.pk(t)})),e.pk(this.Cm)),this.$b=t,this.partManager=jr(this.$b.constructor.type),t.rh(this.wg),this.partManager.addAllModeledParts(),t.pk(this.wg),t.rh(this.Cm),null!==this.ne&&this.ne.each((function(e){t.rh(e)})),this.Zb=i,this.ob||this.R(),null!==e&&t.undoManager.copyProperties(e.undoManager)}}},da:{get:function(){return this.Vc},set:function(t){this.Vc=t}},gt:{get:function(){return this.wq}},skipsModelSourceBindings:{get:function(){return this.Ch},set:function(t){this.Ch=t}},Ui:{get:function(){return this.wu},set:function(t){this.wu=t}},nodeTemplate:{get:function(){return this.Xf.J(\"\")},set:function(t){var e=this.Xf.J(\"\");e!==t&&(this.Xf.add(\"\",t),this.g(\"nodeTemplate\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},nodeTemplateMap:{get:function(){return this.Xf},set:function(t){var e=this.Xf;e!==t&&(this.Xf=t,this.g(\"nodeTemplateMap\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},groupTemplate:{get:function(){return this.Yh.J(\"\")},set:function(t){var e=this.Yh.J(\"\");e!==t&&(this.Yh.add(\"\",t),this.g(\"groupTemplate\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},groupTemplateMap:{get:function(){return this.Yh},set:function(t){var e=this.Yh;e!==t&&(this.Yh=t,this.g(\"groupTemplateMap\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},linkTemplate:{get:function(){return this.Sg.J(\"\")},set:function(t){var e=this.Sg.J(\"\");e!==t&&(this.Sg.add(\"\",t),this.g(\"linkTemplate\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},linkTemplateMap:{get:function(){return this.Sg},set:function(t){var e=this.Sg;e!==t&&(this.Sg=t,this.g(\"linkTemplateMap\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},isMouseOverDiagram:{get:function(){return this.he},set:function(t){this.he=t}},isMouseCaptured:{get:function(){return this.Kc},set:function(t){var e=this.Da;null!==e&&(e=e.Ga,e instanceof SVGElement||(t?(this.lastInput.bubbles=!1,this.Gq?(this.removeEventListener(e,\"pointermove\",this.jm,!1),this.removeEventListener(e,\"pointerdown\",this.im,!1),this.removeEventListener(e,\"pointerup\",this.lm,!1),this.removeEventListener(e,\"pointerout\",this.km,!1),this.addEventListener(v,\"pointermove\",this.jm,!0),this.addEventListener(v,\"pointerdown\",this.im,!0),this.addEventListener(v,\"pointerup\",this.lm,!0),this.addEventListener(v,\"pointerout\",this.km,!0)):(this.removeEventListener(e,\"mousemove\",this.ik,!1),this.removeEventListener(e,\"mousedown\",this.hk,!1),this.removeEventListener(e,\"mouseup\",this.kk,!1),this.removeEventListener(e,\"mouseout\",this.jk,!1),this.addEventListener(v,\"mousemove\",this.ik,!0),this.addEventListener(v,\"mousedown\",this.hk,!0),this.addEventListener(v,\"mouseup\",this.kk,!0),this.addEventListener(v,\"mouseout\",this.jk,!0)),this.removeEventListener(e,\"wheel\",this.lk,!1),this.addEventListener(v,\"wheel\",this.lk,!0),this.addEventListener(v,\"selectstart\",this.preventDefault,!1)):(this.Gq?(this.removeEventListener(v,\"pointermove\",this.jm,!0),this.removeEventListener(v,\"pointerdown\",this.im,!0),this.removeEventListener(v,\"pointerup\",this.lm,!0),this.removeEventListener(v,\"pointerout\",this.km,!0),this.addEventListener(e,\"pointermove\",this.jm,!1),this.addEventListener(e,\"pointerdown\",this.im,!1),this.addEventListener(e,\"pointerup\",this.lm,!1),this.addEventListener(e,\"pointerout\",this.km,!1)):(this.removeEventListener(v,\"mousemove\",this.ik,!0),this.removeEventListener(v,\"mousedown\",this.hk,!0),this.removeEventListener(v,\"mouseup\",this.kk,!0),this.removeEventListener(v,\"mouseout\",this.jk,!0),this.addEventListener(e,\"mousemove\",this.ik,!1),this.addEventListener(e,\"mousedown\",this.hk,!1),this.addEventListener(e,\"mouseup\",this.kk,!1),this.addEventListener(e,\"mouseout\",this.jk,!1)),this.removeEventListener(v,\"wheel\",this.lk,!0),this.removeEventListener(v,\"selectstart\",this.preventDefault,!1),this.addEventListener(e,\"wheel\",this.lk,!1)),this.Kc=t))}},position:{get:function(){return this.sa},set:function(t){var e=mt.alloc().assign(this.sa);if(!e.A(t)){var i=this.viewportBounds.copy();this.sa.assign(t),this.ob||null===this.Da&&!this.Ep.o()||(this.ob=!0,t=this.scale,Xo(this,this.vn,this.xa/t,this.wa/t,this.cj,!1),this.ob=!1),xo(this.animationManager,e,this.sa),this.ob||this.iq(i,this.viewportBounds,this.Ca,!1)}mt.free(e)}},initialPosition:{get:function(){return this.ur},set:function(t){this.ur.A(t)||(this.ur=t.I())}},initialScale:{get:function(){return this.vr},set:function(t){this.vr!==t&&(this.vr=t)}},grid:{get:function(){return null===this.Eb&&Vo(this),this.Eb},set:function(t){var e=this.Eb;if(e!==t){null===e&&(Vo(this),e=this.Eb),t.type!==Nl.Grid&&k(\"Diagram.grid must be a Panel of type Panel.Grid\");var i=e.panel;null!==i&&i.remove(e),this.Eb=t,t.name=\"GRID\",null!==i&&i.add(t),Lr(this),this.R(),this.g(\"grid\",e,t)}}},viewportBounds:{get:function(){var t=this.Nw,e=this.sa,i=this.Ca;return null===this.Da?(this.Ep.o()&&t.h(e.x,e.y,this.xa/i,this.wa/i),t):(t.h(e.x,e.y,Math.max(this.xa,0)/i,Math.max(this.wa,0)/i),t)}},viewSize:{get:function(){return this.Ep},set:function(t){var e=this.viewSize;e.A(t)||(this.Ep=t=t.I(),this.xa=t.width,this.wa=t.height,this.Xa(),this.g(\"viewSize\",e,t))}},fixedBounds:{get:function(){return this.jr},set:function(t){var e=this.jr;e.A(t)||(-1/0!==t.width&&1/0!==t.height&&-1/0!==t.height||k(\"fixedBounds width/height must not be Infinity\"),this.jr=t=t.I(),this.Xa(),this.g(\"fixedBounds\",e,t))}},scrollMargin:{get:function(){return this.ri},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.ri;e.A(t)||(this.ri=t=t.I(),this.g(\"scrollMargin\",e,t),this.sf())}},scrollMode:{get:function(){return this.Gj},set:function(t){var e=this.Gj;e!==t&&(this.Gj=t,t===Ss&&qo(this,!1),this.g(\"scrollMode\",e,t),this.sf())}},scrollsPageOnFocus:{get:function(){return this.rs},set:function(t){var e=this.rs;e!==t&&(this.rs=t,this.g(\"scrollsPageOnFocus\",e,t))}},positionComputation:{get:function(){return this.hs},set:function(t){var e=this.hs;e!==t&&(this.hs=t,qo(this,!1),this.g(\"positionComputation\",e,t))}},scaleComputation:{get:function(){return this.ms},set:function(t){var e=this.ms;e!==t&&(this.ms=t,Tr(this,this.scale,this.scale),this.g(\"scaleComputation\",e,t))}},documentBounds:{get:function(){return this.vn}},isVirtualized:{get:function(){return this.Fr},set:function(t){var e=this.Fr;e!==t&&(this.Fr=t,this.g(\"isVirtualized\",e,t))}},scale:{get:function(){return this.Ca},set:function(t){var e=this.Ca;e!==t&&Tr(this,e,t)}},defaultScale:{get:function(){return this.Zq},set:function(t){this.Zq=t}},autoScale:{get:function(){return this.aj},set:function(t){var e=this.aj;e!==t&&(this.aj=t,this.g(\"autoScale\",e,t),t!==ms&&qo(this,!1))}},initialAutoScale:{get:function(){return this.ai},set:function(t){var e=this.ai;e!==t&&(this.ai=t,this.g(\"initialAutoScale\",e,t))}},initialViewportSpot:{get:function(){return this.wr},set:function(t){var e=this.wr;e!==t&&(t.gb()||k(\"initialViewportSpot must be a specific Spot: \"+t),this.wr=t,this.g(\"initialViewportSpot\",e,t))}},initialDocumentSpot:{get:function(){return this.tr},set:function(t){var e=this.tr;e!==t&&(t.gb()||k(\"initialViewportSpot must be a specific Spot: \"+t),this.tr=t,this.g(\"initialDocumentSpot\",e,t))}},minScale:{get:function(){return this.Pr},set:function(t){var e=this.Pr;e!==t&&(0this.scale&&(this.scale=t)):C(t,\"> 0\",Do,\"minScale\"))}},maxScale:{get:function(){return this.Nr},set:function(t){var e=this.Nr;e!==t&&(0 0\",Do,\"maxScale\"))}},zoomPoint:{get:function(){return this.Is},set:function(t){this.Is.A(t)||(this.Is=t=t.I())}},contentAlignment:{get:function(){return this.cj},set:function(t){var e=this.cj;e.A(t)||(this.cj=t=t.I(),this.g(\"contentAlignment\",e,t),qo(this,!1))}},initialContentAlignment:{get:function(){return this.On},set:function(t){var e=this.On;e.A(t)||(this.On=t=t.I(),this.g(\"initialContentAlignment\",e,t))}},padding:{get:function(){return this.eb},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.eb;e.A(t)||(this.eb=t=t.I(),this.Xa(),this.g(\"padding\",e,t))}},partManager:{get:function(){return this.Ma},set:function(t){var e=this.Ma;e!==t&&(null!==t.diagram&&k(\"Cannot share PartManagers between Diagrams: \"+t.toString()),null!==e&&e.hb(null),this.Ma=t,t.hb(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.gc},set:function(t){var e=this.gc;e!==t&&(this.gc=t,t.diagram=this,t.group=null,this.zg=!0,this.g(\"layout\",e,t),this.cc())}},isTreePathToChildren:{get:function(){return this.Er},set:function(t){var e=this.Er;if(e!==t&&(this.Er=t,this.g(\"isTreePathToChildren\",e,t),!this.undoManager.isUndoingRedoing))for(t=this.nodes;t.next();)Vu(t.value)}},treeCollapsePolicy:{get:function(){return this.Ds},set:function(t){var e=this.Ds;e!==t&&(t!==Ps&&t!==Ts&&t!==Ls&&k(\"Unknown Diagram.treeCollapsePolicy: \"+t),this.Ds=t,this.g(\"treeCollapsePolicy\",e,t))}},Ee:{get:function(){return this.Wb},set:function(t){this.Wb=t}},autoScrollInterval:{get:function(){return this.Tm},set:function(t){var e=this.Tm;e!==t&&(this.Tm=t,this.g(\"autoScrollInterval\",e,t))}},autoScrollRegion:{get:function(){return this.Um},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.Um;e.A(t)||(this.Um=t=t.I(),this.Xa(),this.g(\"autoScrollRegion\",e,t))}}}),p.Object.defineProperties(Do,{licenseKey:{get:function(){return Os.Tb()},set:function(t){Os.add(t)}},version:{get:function(){return Ds}}}),Do.prototype.makeImageData=Do.prototype.sx,Do.prototype.makeImage=Do.prototype.Az,Do.prototype.addRenderer=Do.prototype.ly,Do.prototype.makeSVG=Do.prototype.mv,Do.prototype.makeSvg=Do.prototype.it,Do.prototype.stopAutoScroll=Do.prototype.vf,Do.prototype.doAutoScroll=Do.prototype.Os,Do.prototype.isUnoccupied=Do.prototype.ek,Do.prototype.raiseDiagramEvent=Do.prototype.aa,Do.prototype.removeDiagramListener=Do.prototype.mm,Do.prototype.addDiagramListener=Do.prototype.Nj,Do.prototype.findTreeRoots=Do.prototype.$y,Do.prototype.layoutDiagram=Do.prototype.yz,Do.prototype.findTopLevelGroups=Do.prototype.Ty,Do.prototype.findTopLevelNodesAndLinks=Do.prototype.Uy,Do.prototype.findLinksByExample=Do.prototype.Rs,Do.prototype.findNodesByExample=Do.prototype.Ss,Do.prototype.findLinkForData=Do.prototype.uc,Do.prototype.findNodeForData=Do.prototype.Ei,Do.prototype.findPartForData=Do.prototype.vc,Do.prototype.findNodeForKey=Do.prototype.Hb,Do.prototype.findPartForKey=Do.prototype.findPartForKey,Do.prototype.rebuildParts=Do.prototype.ud,Do.prototype.transformViewToDoc=Do.prototype.yt,Do.prototype.transformRectDocToView=Do.prototype.Yz,Do.prototype.transformDocToView=Do.prototype.xt,Do.prototype.centerRect=Do.prototype.Ju,Do.prototype.scrollToRect=Do.prototype.Fv,Do.prototype.scroll=Do.prototype.scroll,Do.prototype.highlightCollection=Do.prototype.nz,Do.prototype.highlight=Do.prototype.mz,Do.prototype.clearHighlighteds=Do.prototype.Ww,Do.prototype.selectCollection=Do.prototype.Gv,Do.prototype.select=Do.prototype.select,Do.prototype.clearSelection=Do.prototype.Ls,Do.prototype.updateAllRelationshipsFromData=Do.prototype.tq,Do.prototype.updateAllTargetBindings=Do.prototype.updateAllTargetBindings,Do.prototype.commit=Do.prototype.commit,Do.prototype.rollbackTransaction=Do.prototype.uf,Do.prototype.commitTransaction=Do.prototype.Za,Do.prototype.startTransaction=Do.prototype.Aa,Do.prototype.raiseChanged=Do.prototype.g,Do.prototype.raiseChangedEvent=Do.prototype.ab,Do.prototype.removeChangedListener=Do.prototype.pk,Do.prototype.addChangedListener=Do.prototype.rh,Do.prototype.removeModelChangedListener=Do.prototype.Nz,Do.prototype.addModelChangedListener=Do.prototype.Tw,Do.prototype.findLayer=Do.prototype.Zl,Do.prototype.removeLayer=Do.prototype.Lz,Do.prototype.addLayerAfter=Do.prototype.hy,Do.prototype.addLayerBefore=Do.prototype.Rw,Do.prototype.addLayer=Do.prototype.Ql,Do.prototype.moveParts=Do.prototype.moveParts,Do.prototype.copyParts=Do.prototype.Xj,Do.prototype.removeParts=Do.prototype.rt,Do.prototype.remove=Do.prototype.remove,Do.prototype.add=Do.prototype.add,Do.prototype.clearDelayedGeometries=Do.prototype.Ku,Do.prototype.setProperties=Do.prototype.Mv,Do.prototype.resetInputOptions=Do.prototype.Cv,Do.prototype.setInputOption=Do.prototype.Rz,Do.prototype.getInputOption=Do.prototype.bm,Do.prototype.resetRenderingHints=Do.prototype.Dv,Do.prototype.setRenderingHint=Do.prototype.Jx,Do.prototype.getRenderingHint=Do.prototype.De,Do.prototype.maybeUpdate=Do.prototype.fd,Do.prototype.requestUpdate=Do.prototype.cc,Do.prototype.delayInitialization=Do.prototype.Ay,Do.prototype.isUpdateRequested=Do.prototype.uz,Do.prototype.redraw=Do.prototype.sf,Do.prototype.invalidateDocumentBounds=Do.prototype.Xa,Do.prototype.findObjectsNear=Do.prototype.ng,Do.prototype.findPartsNear=Do.prototype.Qy,Do.prototype.findObjectsIn=Do.prototype.mg,Do.prototype.findPartsIn=Do.prototype.kx,Do.prototype.findObjectsAt=Do.prototype.Fi,Do.prototype.findPartsAt=Do.prototype.Py,Do.prototype.findObjectAt=Do.prototype.Sb,Do.prototype.findPartAt=Do.prototype.$l,Do.prototype.alignDocument=Do.prototype.my,Do.prototype.zoomToRect=Do.prototype.aA,Do.prototype.zoomToFit=Do.prototype.zoomToFit,Do.prototype.diagramScroll=Do.prototype.bx,Do.prototype.focus=Do.prototype.focus,Do.prototype.reset=Do.prototype.reset,Do.useDOM=function(t){ds=!!t&&void 0!==v.document},Do.isUsingDOM=function(){return ds};var Qr,ts,es,is,ns,os,rs,ss,as,ls,hs=null,us=new gt,cs=null,fs=null,ds=void 0!==v.document,ps=null,gs=\"\",ms=new K(Do,\"None\",0),vs=new K(Do,\"Uniform\",1),ys=new K(Do,\"UniformToFill\",2),bs=new K(Do,\"CycleAll\",10),ws=new K(Do,\"CycleNotDirected\",11),xs=new K(Do,\"CycleNotDirectedFast\",12),ks=new K(Do,\"CycleNotUndirected\",13),Ms=new K(Do,\"CycleDestinationTree\",14),Cs=new K(Do,\"CycleSourceTree\",15),Ss=new K(Do,\"DocumentScroll\",1),Ns=new K(Do,\"InfiniteScroll\",2),Ps=new K(Do,\"TreeParentCollapsed\",21),Ts=new K(Do,\"AllParentsCollapsed\",22),Ls=new K(Do,\"AnyParentsCollapsed\",23),Os=new nt,Ds=\"2.0.9\",js=!1;function As(){if(ds){var t=v.document.createElement(\"canvas\"),e=t.getContext(\"2d\"),i=R(\"7ca11abfd022028846\");e[i]=R(\"398c3597c01238\");for(var n=[\"5da73c80a36455d4038e4972187c3cae51fd22\",y.Dx+\"4ae6247590da4bb21c324ba3a84e385776\",ae.xF+\"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387\",We.za],o=1;5>o;o++)e[R(\"7ca11abfd7330390\")](R(n[o-1]),10,15*o);for(e[i]=R(\"39f046ebb36e4b\"),i=1;5>i;i++)e[R(\"7ca11abfd7330390\")](R(n[i-1]),10,15*i);t}}function Bs(){this.$x=null,this.l=\"zz@orderNum\",\"63ad05bbe23a1786468a4c741b6d2\"===this._tk?this.Ne=this.l=!0:this.Ne=null}function zs(t,e){if(e.Yc.setTransform(e.Nb,0,0,e.Nb,0,0),null===t.Ne){e=\"f\";var i=v[R(\"76a715b2f73f148a\")][R(\"72ba13b5\")];if(t.Ne=!0,ds){var n=Do[R(\"76a115b6ed251eaf4692\")];if(n)for(var o=Os.iterator;o.next();){if(n=o.value,n=R(n).split(R(\"39e9\")),6>n.length)break;var r=R(n[1]).split(\".\");if(\"7da71ca0\"!==n[4])break;var s=R(y[R(\"6cae19\")]).split(\".\");if(r[0]>s[0]||r[0]===s[0]&&r[1]>=s[1]){for(r=i[R(\"76ad18b4f73e\")],s=i[R(\"73a612b6fb191d\")](R(\"35e7\"))+2;sr&&R(n[2])!==R(\"7da71ca0ad381e90\")&&(r=e[R(\"73a612b6fb191d\")](R(\"76a715b2ef3e149757\"))),0>r&&(r=e[R(\"73a612b6fb191d\")](R(\"76a715b2ef3e149757\"))),t.Ne=!(0<=r&&ra.length;)a+=\"9\";if(a=a.substr(a.length-4),n=\"\",n+=[\"gsh\",\"gsf\"][parseInt(a.substr(0,1),10)%2],n+=[\"Header\",\"Background\",\"Display\",\"Feedback\"][parseInt(a.substr(0,1),10)%4],s[R(\"79a417a0f0181a8946\")]=n,v.document[R(\"78a712aa\")]){if(v.document[R(\"78a712aa\")][R(\"7bb806b6ed32388c4a875b\")](s),a=v.getComputedStyle(s).getPropertyValue(R(\"78a704b7e62456904c9b12701b6532a8\")),v.document[R(\"78a712aa\")][R(\"68ad1bbcf533388c4a875b\")](s),!a)break;if(-1!==a.indexOf(parseInt(r[1]+r[2],16))&&-1!==a.indexOf(parseInt(r[3]+r[4],16))){t.Ne=!1;break}if(V||_||H||Y)for(n=\".\"+n,r=0;rMath.abs(e.deltaY)?-n:-o):void 0!==e.wheelDeltaX?(0!==e.wheelDeltaX&&(n=0Math.abs(e.wheelDeltaY)?-n:-o):void 0!==e.wheelDelta&&0!==e.wheelDelta&&(i.delta=0o||Math.abs(n.y-e.screenY)>o)?t.Fd++:t.Fd=1,i.clickCount=t.Fd,t.kl=e.timeStamp,t.Hr.tg(e.screenX,e.screenY),t.doMouseDown(),1===e.button?e.preventDefault():ir(i,e)}},t.jm=function(e){if(t.isEnabled){t.he=!0;var i=t.vl;if(null!==i[0]&&i[0].pointerId===e.pointerId)i[0]=e;else{if(null!==i[1]&&i[1].pointerId===e.pointerId)return void(i[1]=e);if(null!==i[0])return;i[0]=e}i[0].pointerId===e.pointerId&&(i=tr(t,e,e,null!==i[1]),t.doMouseMove(),ir(i,e))}},t.lm=function(e){if(t.isEnabled){t.he=!0;var i=\"touch\"===e.pointerType||\"pen\"===e.pointerType,n=t.nu;if(i&&t.Ml)delete n[e.pointerId],e.preventDefault();else if(n=t.vl,null!==n[0]&&n[0].pointerId===e.pointerId){n[0]=null,n=er(t,e,!1,!0,!0,!1);var o=v.document.elementFromPoint(e.clientX,e.clientY);null!==o&&o.C instanceof Do&&o.C!==t&&nr(o.C,e,n),nr(t,e,n),n.clickCount=t.Fd,null===o?n.targetDiagram=Zo(e):o.C?n.targetDiagram=o.C:n.targetDiagram=null,n.targetObject=null,t.doMouseUp(),ir(n,e),i&&(t.Qe=!1)}else null!==n[1]&&n[1].pointerId===e.pointerId&&(n[1]=null)}},t.km=function(e){if(t.isEnabled){t.he=!1;var i=t.nu;i[e.pointerId]&&delete i[e.pointerId],i=t.vl,null!==i[0]&&i[0].pointerId===e.pointerId&&(i[0]=null),null!==i[1]&&i[1].pointerId===e.pointerId&&(i[1]=null),\"touch\"!==e.pointerType&&\"pen\"!==e.pointerType&&(e=t.currentTool,e.cancelWaitAfter(),e.standardMouseOver())}},e.Rc(!0),zo(t)}}function Is(t){this.l=void 0===t?new mt:t,this.u=new mt}function Es(t,e,i){this.node=t,this.info=e,this.ev=i}function Rs(){this.reset()}function Vs(t){1n||r>o)&&(ga(t,!0),t.measure(i>n?n:i,r>o?o:r,0,0));break;case Qr:ga(t,!0),t.measure(n,o,0,0);break;case ns:ga(t,!0),t.measure(n,r,0,0);break;case os:ga(t,!0),t.measure(i,o,0,0)}}}function ea(t,e,i){var n=t.vb,o=t.qc;null!==t.dc&&(ia(t,e,t.dc,!0,!0,o,n),t.dc instanceof Ra&&t.dc.type===Qa?(e.beginPath(),e.rect(n.x,n.y,n.width,n.height),e.Td(t.dc)):e.fillRect(n.x,n.y,n.width,n.height)),null!==t.ib&&(ia(t,e,t.ib,!0,!1,o,n),t.ib instanceof Ra&&t.ib.type===Qa?(e.beginPath(),e.rect(n.x,n.y,n.width,n.height),e.Td(t.ib)):e.fillRect(n.x,n.y,n.width,n.height)),t.Ci(e,i)}function ia(t,e,i,n,o,r,s){if(null!==i){var a=1,l=1;if(\"string\"===typeof i)n?e.fillStyle=i:e.strokeStyle=i;else if(i.type===Ja)n?e.fillStyle=i.color:e.strokeStyle=i.color;else{if(a=r.width,l=r.height,o&&(a=s.width,l=s.height),(r=e instanceof Fa)&&i.ce&&(i.type===tl||i.Gk===a&&i.Lt===l))var h=i.ce;else{var u=0,c=0,f=0,d=0,p=0,g=0;if(g=p=0,o&&(p=s.x,g=s.y),u=i.start.x*a+i.start.offsetX,c=i.start.y*l+i.start.offsetY,f=i.end.x*a+i.end.offsetX,d=i.end.y*l+i.end.offsetY,u+=p,f+=p,c+=g,d+=g,i.type===Za)h=e.createLinearGradient(u,c,f,d);else if(i.type===Qa)g=isNaN(i.endRadius)?Math.max(a,l)/2:i.endRadius,isNaN(i.startRadius)?(p=0,g=Math.max(a,l)/2):p=i.startRadius,h=e.createRadialGradient(u,c,p,f,d,g);else if(i.type===tl)try{h=e.createPattern(i.pattern,\"repeat\")}catch(v){h=null}if(i.type!==tl&&(o=i.colorStops,null!==o))for(o=o.iterator;o.next();)h.addColorStop(o.key,o.value);if(r&&(i.ce=h,null!==h&&(i.Gk=a,i.Lt=l),null===h&&i.type===tl&&-1!==i.Gk)){i.Gk=-1;var m=t.diagram;null!==m&&-1===i.Gk&&w((function(){m.sf()}),600)}}n?e.fillStyle=h:e.strokeStyle=h}}}function na(t){if(0!==(2048&t.H)===!0){var e=t.tb;if(e.reset(),!t.vb.o()||!t.pc.o())return void fa(t,!1);if(e.translate(t.vb.x-t.pc.x,t.vb.y-t.pc.y),1!==t.scale||0!==t.angle){var i=t.naturalBounds;oa(t,e,i.x,i.y,i.width,i.height)}fa(t,!1),da(t,!0)}0!==(4096&t.H)===!0&&(e=t.panel,null===e?(t.Dh.set(t.tb),t.Sk=t.scale,da(t,!1)):null!==e.rd&&(i=t.Dh,i.reset(),e.Zd()?i.multiply(e.Dh):null!==e.panel&&i.multiply(e.panel.Dh),i.multiply(t.tb),t.Sk=t.scale*e.Sk,da(t,!1)))}function oa(t,e,i,n,o,r){if(1!==t.scale&&e.scale(t.scale),0!==t.angle){var s=de;t.sg()&&t.locationSpot.gb()&&(s=t.locationSpot);var a=mt.alloc();if(t instanceof lu&&t.locationObject!==t)for(i=t.locationObject,n=i.naturalBounds,a.qk(n.x,n.y,n.width,n.height,s),i.Nf.ta(a),a.offset(-i.measuredBounds.x,-i.measuredBounds.y),s=i.panel;null!==s&&s!==t;)s.Nf.ta(a),a.offset(-s.measuredBounds.x,-s.measuredBounds.y),s=s.panel;else a.qk(i,n,o,r,s);e.rotate(t.angle,a.x,a.y),mt.free(a)}}function ra(t){if(!1===ma(t)){var e=t.panel;null!==e?e.s():t.sg()&&(e=t.diagram,null!==e&&(e.Dd.add(t),t instanceof Au&&t.ed(),e.cc())),va(t,!0)}}function sa(t,e){var i=t.stretch,n=t.panel;return null!==n&&n.type===Nl.Table?aa(t,n.getRowDefinition(t.row),n.getColumnDefinition(t.column),e):null!==n&&n.type===Nl.Auto&&n.zb()===t?la(t,Qr,e):i===is?null!==n?n.type===Nl.Spot&&n.zb()===t?la(t,Qr,e):(i=n.defaultStretch,la(t,i===is?ts:i,e)):la(t,ts,e):la(t,i,e)}function aa(t,e,i,n){var o=t.stretch;if(o!==is)return la(t,o,n);var r=o=null;switch(e.stretch){case os:r=!0;break;case Qr:r=!0}switch(i.stretch){case ns:o=!0;break;case Qr:o=!0}return e=t.panel.defaultStretch,null===o&&(o=e===ns||e===Qr),null===r&&(r=e===os||e===Qr),la(t,!0===o&&!0===r?Qr:!0===o?ns:!0===r?os:ts,n)}function la(t,e,i){if(i)return e;if(e===ts)return ts;if(i=t.desiredSize,i.o())return ts;if(t=t.angle,!isNaN(i.width))if(90!==t&&270!==t){if(e===ns)return ts;if(e===Qr)return os}else{if(e===os)return ts;if(e===Qr)return ns}if(!isNaN(i.height))if(90!==t&&270!==t){if(e===os)return ts;if(e===Qr)return ns}else{if(e===ns)return ts;if(e===Qr)return os}return e}function ha(t,e){t.H=e?512|t.H:-513&t.H}function ua(t){return 0!==(1024&t.H)}function ca(t,e){t.H=e?1024|t.H:-1025&t.H}function fa(t,e){t.H=e?2048|t.H:-2049&t.H}function da(t,e){t.H=e?4096|t.H:-4097&t.H}function pa(t){return 0!==(8192&t.H)}function ga(t,e){t.H=e?8192|t.H:-8193&t.H}function ma(t){return 0!==(16384&t.H)}function va(t,e){t.H=e?16384|t.H:-16385&t.H}function ya(t){var e=t.part;if(e instanceof Au&&(null!==t.portId||t===e.port)){var i=e.diagram;null===i||i.undoManager.isUndoingRedoing||Fu(e,t)}}function ba(t){var e=t.diagram;null===e||e.undoManager.isUndoingRedoing||(t instanceof Nl?t instanceof Au?t.ed():t.ym(t,(function(t){ya(t)})):ya(t))}function wa(t,e){for(var i=1;ir)&&k(\"Must specify non-negative integer row for RowColumnDefinition \"+e+\", not: \"+r),t.isRow=!0,t.index=r):void 0!==e.column&&(r=e.column,(void 0===r||null===r||1/0===r||isNaN(r)||0>r)&&k(\"Must specify non-negative integer column for RowColumnDefinition \"+e+\", not: \"+r),t.isRow=!1,t.index=r),r=new J,e)\"row\"!==i&&\"column\"!==i&&(r[i]=e[i]);dr(t,r)}else dr(t,e);else k('Unknown initializer \"'+e+'\" for object being constructed by GraphObject.make: '+t)}function ka(t,e){Ca.add(t,e)}function Ma(t,e,i){void 0===i&&(i=null);var n=t[1];if(\"function\"===typeof i?i(n):\"string\"===typeof n)return t.splice(1,1),n;if(void 0===e)throw Error(\"no \"+(\"function\"===typeof i?\"satisfactory\":\"string\")+\" argument for GraphObject builder \"+t[0]);return e}Do.className=\"Diagram\",Do.fromDiv=function(t){var e=t;return\"string\"===typeof t&&(e=v.document.getElementById(t)),e instanceof HTMLDivElement&&e.C instanceof Do?e.C:null},Do.inherit=function(t,e){function i(){}if(Object.getPrototypeOf(t).prototype)throw Error(\"Used go.Diagram.inherit defining already defined class \\n\"+t);i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t},Do.None=ms,Do.Uniform=vs,Do.UniformToFill=ys,Do.CycleAll=bs,Do.CycleNotDirected=ws,Do.CycleNotDirectedFast=xs,Do.CycleNotUndirected=ks,Do.CycleDestinationTree=Ms,Do.CycleSourceTree=Cs,Do.DocumentScroll=Ss,Do.InfiniteScroll=Ns,Do.TreeParentCollapsed=Ps,Do.AllParentsCollapsed=Ts,Do.AnyParentsCollapsed=Ls,Bs.className=\"DiagramHelper\",p.Object.defineProperties(Is.prototype,{point:{get:function(){return this.l},set:function(t){this.l=t}},shifted:{get:function(){return this.u},set:function(t){this.u=t}}}),Is.className=\"DraggingInfo\",Es.className=\"DraggingNodeInfoPair\",Rs.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new It(NaN,NaN).freeze(),this.gridSnapCellSpot=he,this.gridSnapOrigin=new mt(NaN,NaN).freeze(),this.kz=this.dragsTree=this.dragsLink=!1},d(Vs,Do),Vs.className=\"Palette\",d(_s,Do),_s.prototype.computePixelRatio=function(){return 1},_s.prototype.hc=function(){if(null===this.Ia&&k(\"No div specified\"),null===this.Da&&k(\"No canvas specified\"),!(this.Da instanceof Ta)&&(hu(this.box),this.nc)){var t=this.Yf;if(null!==t&&!t.animationManager.isAnimating){mr(this);var e=t.grid;null===e||!e.visible||isNaN(e.width)||isNaN(e.height)||(e=_t.alloc().assign(this.viewportBounds).Jc(t.viewportBounds),Lr(t,e),_t.free(e),hr(t));var i=this.Da;e=this.Yc;var n=this.yu,o=this.ay;n.width=i.width,n.height=i.height,e.Rc(!0),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,i.width,i.height),n=this.tb,n.reset(),1!==this.scale&&n.scale(this.scale),0===this.position.x&&0===this.position.y||n.translate(-this.position.x,-this.position.y),e.scale(this.Nb,this.Nb),e.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),n=this.dr;var r=this.viewportBounds;t=t.Pa.j;for(var s=t.length,a=0;ae.maxScale||(e.scale=t))},Gs.prototype.canDecreaseZoom=function(t){void 0===t&&(t=1/this.zoomFactor);var e=this.diagram;return e.autoScale===ms&&(t=e.scale*t,!(te.maxScale)&&e.allowZoom)},Gs.prototype.increaseZoom=function(t){void 0===t&&(t=this.zoomFactor);var e=this.diagram;e.autoScale===ms&&(t=e.scale*t,te.maxScale||(e.scale=t))},Gs.prototype.canIncreaseZoom=function(t){void 0===t&&(t=this.zoomFactor);var e=this.diagram;return e.autoScale===ms&&(t=e.scale*t,!(te.maxScale)&&e.allowZoom)},Gs.prototype.resetZoom=function(t){void 0===t&&(t=this.defaultScale);var e=this.diagram;te.maxScale||(e.scale=t)},Gs.prototype.canResetZoom=function(t){void 0===t&&(t=this.defaultScale);var e=this.diagram;return!(te.maxScale)&&e.allowZoom},Gs.prototype.zoomToFit=function(){var t=this.diagram,e=t.scale,i=t.position;e===this.Eu&&!isNaN(this.eu)&&t.documentBounds.A(this.Du)?(t.scale=this.eu,t.position=this.Aw,this.Eu=NaN,this.Du=Zt):(this.eu=e,this.Aw=i.copy(),t.zoomToFit(),this.Eu=t.scale,this.Du=t.documentBounds.copy())},Gs.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Gs.prototype.scrollToPart=function(t){void 0===t&&(t=null);var e=this.diagram;if(null===t){try{null!==this.cg&&(this.cg.next()?t=this.cg.value:this.cg=null)}catch(l){this.cg=null}null===t&&(0t&&(t+=360)),t},i.Ce=function(){if(0!==(4096&this.H)===!1)return this.Sk;var t=this.Ca;return null!==this.panel?t*this.panel.Ce():t},i.Ws=function(t,e){return void 0===e&&(e=new mt),e.assign(t),this.rd.Ud(e),e},i.Tc=function(t,e,i){return this.bk(t.x,t.y,e.x,e.y,i)},i.bk=function(t,e,i,n,o){var r=this.transform,s=1/(r.m11*r.m22-r.m12*r.m21),a=r.m22*s,l=-r.m12*s,h=-r.m21*s,u=r.m11*s,c=s*(r.m21*r.dy-r.m22*r.dx),f=s*(r.m12*r.dx-r.m11*r.dy);return null!==this.areaBackground?(r=this.actualBounds,We.Tc(r.left,r.top,r.right,r.bottom,t,e,i,n,o)):(s=t*a+e*h+c,t=t*l+e*u+f,e=i*a+n*h+c,i=i*l+n*u+f,o.h(0,0),n=this.naturalBounds,i=We.Tc(0,0,n.width,n.height,s,t,e,i,o),o.transform(r),i)},Ks.prototype.measure=function(t,e,i,n){if(!1!==pa(this)){var o=this.Tg,r=o.right+o.left;o=o.top+o.bottom,t=Math.max(t-r,0),e=Math.max(e-o,0),i=Math.max((i||0)-r,0),n=Math.max((n||0)-o,0),r=this.angle,o=this.desiredSize;var s=0;this instanceof sh&&(s=this.strokeWidth),90===r||270===r?(t=isFinite(o.height)?o.height+s:t,e=isFinite(o.width)?o.width+s:e):(t=isFinite(o.width)?o.width+s:t,e=isFinite(o.height)?o.height+s:e),o=i||0,s=n||0;var a=this instanceof Nl;switch(sa(this,!0)){case ts:s=o=0,a&&(e=t=1/0);break;case Qr:isFinite(t)&&t>i&&(o=t),isFinite(e)&&e>n&&(s=e);break;case ns:isFinite(t)&&t>i&&(o=t),s=0,a&&(e=1/0);break;case os:isFinite(e)&&e>n&&(s=e),o=0,a&&(t=1/0)}a=this.maxSize;var l=this.minSize;o>a.width&&l.widtha.height&&l.heightt.height||this.metrics.maxLineWidth>t.width))&&(i=!0)),this.H=i?256|this.H:-257&this.H,this.vb.o()||k(\"Non-real actualBounds has been set. Object \"+this+\", actualBounds: \"+this.vb.toString()),this.lt(r,this.vb),va(this,!1),_t.free(r)},i=Ks.prototype,i.th=function(){},i.lt=function(t,e){var i=this.part;null!==i&&null!==i.diagram&&(i.selectionObject!==this&&i.resizeObject!==this&&i.rotateObject!==this||Mu(i,!0),this.R(),Gt(t,e)||(i.yh(),this.Do(i)))},i.Do=function(t){null!==this.portId&&(Mu(t,!0),t instanceof Au&&Fu(t,this))},i.hc=function(t,e){if(this.visible){var i=this instanceof Nl&&(this.type===Nl.TableRow||this.type===Nl.TableColumn),n=this.vb;if(i||0!==n.width&&0!==n.height&&!isNaN(n.x)&&!isNaN(n.y)){var o=this.opacity;if(0!==o){var r=1;if(1!==o&&(r=t.globalAlpha,t.globalAlpha=r*o),!this.gx(t,e))if(i)ea(this,t,e);else{this instanceof nc&&this.gk(!1),i=this.transform;var s=this.panel;0!==(4096&this.H)===!0&&na(this);var a=this.part,l=!1,h=0;if(a&&e.De(\"drawShadows\")&&(l=a.isShadowed)){var u=a.si;h=Math.max(u.y,u.x)*e.scale*e.Nb}if(!(u=e.mj)){var c=this.naturalBounds;u=this.Dh;var f,d=u.m11,p=u.m21,g=u.dx,m=u.m12,v=u.m22,y=u.dy,b=f=0;u=f*d+b*p+g;var w=f*m+b*v+y;f=c.width+h,b=0;var x=f*d+b*p+g;f=f*m+b*v+y,u=Math.min(u,x),w=Math.min(w,f);var k=Math.max(u,x)-u,M=Math.max(w,f)-w;f=c.width+h,b=c.height+h,x=f*d+b*p+g,f=f*m+b*v+y,u=Math.min(u,x),w=Math.min(w,f),k=Math.max(u+k,x)-u,M=Math.max(w+M,f)-w,f=0,b=c.height+h,x=f*d+b*p+g,f=f*m+b*v+y,u=Math.min(u,x),w=Math.min(w,f),k=Math.max(u+k,x)-u,M=Math.max(w+M,f)-w,h=e.viewportBounds,c=h.x,d=h.y,u=!(u>h.$+c||c>k+u||w>h.Z+d||d>M+w)}if(u){if(u=0!==(256&this.H),t.clipInsteadOfFill&&(u=!1),this instanceof mh&&(t.font=this.font),u){if(w=s.Zd()?s.naturalBounds:s.actualBounds,null!==this.kd?(c=this.kd,k=c.x,M=c.y,h=c.width,c=c.height):(k=Math.max(n.x,w.x),M=Math.max(n.y,w.y),h=Math.min(n.right,w.right)-k,c=Math.min(n.bottom,w.bottom)-M),k>n.width+n.x||n.x>w.width+w.x)return void(1!==o&&(t.globalAlpha=r));t.save(),t.beginPath(),t.rect(k,M,h,c),t.clip()}if(this.sg()){if(!a.isVisible())return void(1!==o&&(t.globalAlpha=r));l&&(w=a.si,t.Nv(w.x*e.scale*e.Nb,w.y*e.scale*e.Nb,a.Od),Ba(t),t.shadowColor=a.Ij)}!0===this.shadowVisible?Ba(t):!1===this.shadowVisible&&Aa(t),a=this.naturalBounds,null!==this.dc&&(ia(this,t,this.dc,!0,!0,a,n),this.dc instanceof Ra&&this.dc.type===Qa?(t.beginPath(),t.rect(n.x,n.y,n.width,n.height),t.Td(this.dc)):t.fillRect(n.x,n.y,n.width,n.height)),t.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),l&&(null!==s&&0!==(512&s.H)||null!==s&&(s.type===Nl.Auto||s.type===Nl.Spot)&&s.zb()!==this)&&null===this.shadowVisible&&Aa(t),null!==this.ib&&(h=this.naturalBounds,k=w=0,M=h.width,h=h.height,c=0,this instanceof sh&&(h=this.qa.bounds,w=h.x,k=h.y,M=h.width,h=h.height,c=this.strokeWidth),ia(this,t,this.ib,!0,!1,a,n),this.ib instanceof Ra&&this.ib.type===Qa?(t.beginPath(),t.rect(w-c/2,k-c/2,M+c,h+c),t.Td(this.ib)):t.fillRect(w-c/2,k-c/2,M+c,h+c)),l&&(null!==this.ib||null!==this.dc||null!==s&&0!==(512&s.H)||null!==s&&(s.type===Nl.Auto||s.type===Nl.Spot)&&s.zb()!==this)?(ha(this,!0),null===this.shadowVisible&&Aa(t)):ha(this,!1),this.Ci(t,e),l&&0!==(512&this.H)===!0&&Ba(t),this.sg()&&l&&Aa(t),u?(t.restore(),this instanceof Nl?t.Rc(!0):t.Rc(!1)):i.ct()||(e=1/(i.m11*i.m22-i.m12*i.m21),t.transform(i.m22*e,-i.m12*e,-i.m21*e,i.m11*e,e*(i.m21*i.dy-i.m22*i.dx),e*(i.m12*i.dx-i.m11*i.dy)))}}1!==o&&(t.globalAlpha=r)}}}},i.gx=function(){return!1},i.Ci=function(){},i.qg=function(t){if(t instanceof Nl)t:{if(this!==t&&null!==t)for(var e=this.panel;null!==e;){if(e===t){t=!0;break t}e=e.panel}t=!1}else t=!1;return t},i.rf=function(){if(!this.visible)return!1;var t=this.panel;return null===t||t.rf()},i.rg=function(){for(var t=this instanceof Nl?this:this.panel;null!==t&&t.isEnabled;)t=t.panel;return null===t},i.s=function(t){if(void 0===t&&(t=!1),!0!==pa(this)){ga(this,!0),va(this,!0);var e=this.panel;null===e||t||e.s()}},i.dm=function(){!0!==pa(this)&&(ga(this,!0),va(this,!0))},i.fl=function(){0!==(2048&this.H)===!1&&(fa(this,!0),da(this,!0))},i.iv=function(){da(this,!0)},i.R=function(){var t=this.part;null!==t&&t.R()},i.Si=function(t){this.ag=t},i.Lv=function(){},i.Kv=function(t){return this.sa=t,ra(this),!0},i.wt=function(t,e){this.sa.h(t,e),this.fl()},i.bind=function(t){t.Qd=this;var e=this.Gi();null!==e&&Yl(e)&&k(\"Cannot add a Binding to a template that has already been copied: \"+t),null===this.bb&&(this.bb=new nt),this.bb.add(t)},i.Gi=function(){for(var t=this instanceof Nl?this:this.panel;null!==t;){if(null!==t.Qh)return t;t=t.panel}return null},i.Mv=function(t){dr(this,t)},p.Object.defineProperties(Ks.prototype,{shadowVisible:{get:function(){return this.Cl},set:function(t){var e=this.Cl;e!==t&&(this.Cl=t,this.R(),this.g(\"shadowVisible\",e,t))}},enabledChanged:{get:function(){return null!==this.O?this.O.Bn:null},set:function(t){$s(this);var e=this.O.Bn;e!==t&&(this.O.Bn=t,this.g(\"enabledChanged\",e,t))}},segmentOrientation:{get:function(){return this.Al},set:function(t){var e=this.Al;e!==t&&(this.Al=t,this.s(),this.g(\"segmentOrientation\",e,t),t===Tc&&(this.angle=0))}},segmentIndex:{get:function(){return this.gp},set:function(t){t=Math.round(t);var e=this.gp;e!==t&&(this.gp=t,this.s(),this.g(\"segmentIndex\",e,t))}},segmentFraction:{get:function(){return this.yl},set:function(t){isNaN(t)||0>t?t=0:1t||1=t&&k(\"GraphObject.scale for \"+this+\" must be greater than zero, not: \"+t),this.Ca=t,this.s(),this.g(\"scale\",e,t))}},angle:{get:function(){return this.zc},set:function(t){var e=this.zc;e!==t&&(t%=360,0>t&&(t+=360),e!==t&&(this.zc=t,ba(this),this.s(),this.g(\"angle\",e,t)))}},desiredSize:{get:function(){return this.Nc},set:function(t){var e=t.width,i=t.height,n=this.Nc,o=n.width,r=n.height;(o===e||isNaN(o)&&isNaN(e))&&(r===i||isNaN(r)&&isNaN(i))||(this.Nc=t=t.I(),this.s(),this instanceof sh&&this.bc(),this.g(\"desiredSize\",n,t),ua(this)&&(t=this.part,null!==t&&(Ws(this,t,\"width\"),Ws(this,t,\"height\"))))}},width:{get:function(){return this.Nc.width},set:function(t){var e=this.Nc.width;e===t||isNaN(e)&&isNaN(t)||(e=this.Nc,this.Nc=t=new It(t,this.Nc.height).freeze(),this.s(),this instanceof sh&&this.bc(),this.g(\"desiredSize\",e,t),ua(this)&&(t=this.part,null!==t&&Ws(this,t,\"width\")))}},height:{get:function(){return this.Nc.height},set:function(t){var e=this.Nc.height;e===t||isNaN(e)&&isNaN(t)||(e=this.Nc,this.Nc=t=new It(this.Nc.width,t).freeze(),this.s(),this instanceof sh&&this.bc(),this.g(\"desiredSize\",e,t),ua(this)&&(t=this.part,null!==t&&Ws(this,t,\"height\")))}},minSize:{get:function(){return this.Qf},set:function(t){var e=this.Qf;e.A(t)||(t=t.copy(),isNaN(t.width)&&(t.width=0),isNaN(t.height)&&(t.height=0),t.freeze(),this.Qf=t,this.s(),this.g(\"minSize\",e,t))}},maxSize:{get:function(){return this.Pf},set:function(t){var e=this.Pf;e.A(t)||(t=t.copy(),isNaN(t.width)&&(t.width=1/0),isNaN(t.height)&&(t.height=1/0),t.freeze(),this.Pf=t,this.s(),this.g(\"maxSize\",e,t))}},measuredBounds:{get:function(){return this.pc}},naturalBounds:{get:function(){return this.qc}},margin:{get:function(){return this.Tg},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.Tg;e.A(t)||(this.Tg=t=t.I(),this.s(),this.g(\"margin\",e,t))}},transform:{get:function(){return 0!==(2048&this.H)===!0&&na(this),this.tb}},rd:{get:function(){return 0!==(4096&this.H)===!0&&na(this),this.Dh}},animations:{get:function(){return this.Pm},set:function(t){var e=this.Pm;e!==t&&(this.Pm=t,this.g(\"animations\",e,t))}},alignment:{get:function(){return this.wb},set:function(t){var e=this.wb;e.A(t)||(t.jc()&&!t.Kb()&&k(\"GraphObject.alignment for \"+this+\" must be a real Spot or Spot.Default, not: \"+t),this.wb=t=t.I(),ra(this),this.g(\"alignment\",e,t))}},column:{get:function(){return this.Cg},set:function(t){t=Math.round(t);var e=this.Cg;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"column\"),this.Cg=t,this.s(),this.g(\"column\",e,t))}},columnSpan:{get:function(){return this.Zm},set:function(t){t=Math.round(t);var e=this.Zm;e!==t&&(1>t&&C(t,\">= 1\",Ks,\"columnSpan\"),this.Zm=t,this.s(),this.g(\"columnSpan\",e,t))}},row:{get:function(){return this.ap},set:function(t){t=Math.round(t);var e=this.ap;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"row\"),this.ap=t,this.s(),this.g(\"row\",e,t))}},rowSpan:{get:function(){return this.bp},set:function(t){t=Math.round(t);var e=this.bp;e!==t&&(1>t&&C(t,\">= 1\",Ks,\"rowSpan\"),this.bp=t,this.s(),this.g(\"rowSpan\",e,t))}},spanAllocation:{get:function(){return this.rp},set:function(t){var e=this.rp;e!==t&&(this.rp=t,this.s(),this.g(\"spanAllocation\",e,t))}},alignmentFocus:{get:function(){return this.wk},set:function(t){var e=this.wk;e.A(t)||(this.wk=t=t.I(),this.s(),this.g(\"alignmentFocus\",e,t))}},portId:{get:function(){return this.Oo},set:function(t){var e=this.Oo;if(e!==t){var i=this.part;null===i||i instanceof Au||(k(\"Cannot set portID on a Link: \"+t),i=null),null!==e&&null!==i&&Yu(i,this),this.Oo=t,null!==t&&null!==i&&(i.xh=!0,Hu(i,this)),this.g(\"portId\",e,t)}}},toSpot:{get:function(){return null!==this.P?this.P.nh:le},set:function(t){this.Hc();var e=this.P.nh;e.A(t)||(t=t.I(),this.P.nh=t,this.g(\"toSpot\",e,t),ya(this))}},toEndSegmentLength:{get:function(){return null!==this.P?this.P.lh:10},set:function(t){this.Hc();var e=this.P.lh;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"toEndSegmentLength\"),this.P.lh=t,this.g(\"toEndSegmentLength\",e,t),ya(this))}},toShortLength:{get:function(){return null!==this.P?this.P.mh:0},set:function(t){this.Hc();var e=this.P.mh;e!==t&&(this.P.mh=t,this.g(\"toShortLength\",e,t),ya(this))}},toLinkable:{get:function(){return null!==this.P?this.P.zp:null},set:function(t){this.Hc();var e=this.P.zp;e!==t&&(this.P.zp=t,this.g(\"toLinkable\",e,t))}},toMaxLinks:{get:function(){return null!==this.P?this.P.Ap:1/0},set:function(t){this.Hc();var e=this.P.Ap;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"toMaxLinks\"),this.P.Ap=t,this.g(\"toMaxLinks\",e,t))}},fromSpot:{get:function(){return null!==this.P?this.P.Lg:le},set:function(t){this.Hc();var e=this.P.Lg;e.A(t)||(t=t.I(),this.P.Lg=t,this.g(\"fromSpot\",e,t),ya(this))}},fromEndSegmentLength:{get:function(){return null!==this.P?this.P.Jg:10},set:function(t){this.Hc();var e=this.P.Jg;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"fromEndSegmentLength\"),this.P.Jg=t,this.g(\"fromEndSegmentLength\",e,t),ya(this))}},fromShortLength:{get:function(){return null!==this.P?this.P.Kg:0},set:function(t){this.Hc();var e=this.P.Kg;e!==t&&(this.P.Kg=t,this.g(\"fromShortLength\",e,t),ya(this))}},fromLinkable:{get:function(){return null!==this.P?this.P.Dn:null},set:function(t){this.Hc();var e=this.P.Dn;e!==t&&(this.P.Dn=t,this.g(\"fromLinkable\",e,t))}},fromMaxLinks:{get:function(){return null!==this.P?this.P.En:1/0},set:function(t){this.Hc();var e=this.P.En;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"fromMaxLinks\"),this.P.En=t,this.g(\"fromMaxLinks\",e,t))}},cursor:{get:function(){return this.jn},set:function(t){var e=this.jn;e!==t&&(this.jn=t,this.g(\"cursor\",e,t))}},click:{get:function(){return null!==this.O?this.O.Af:null},set:function(t){$s(this);var e=this.O.Af;e!==t&&(this.O.Af=t,this.g(\"click\",e,t))}},doubleClick:{get:function(){return null!==this.O?this.O.Ff:null},set:function(t){$s(this);var e=this.O.Ff;e!==t&&(this.O.Ff=t,this.g(\"doubleClick\",e,t))}},contextClick:{get:function(){return null!==this.O?this.O.Bf:null},set:function(t){$s(this);var e=this.O.Bf;e!==t&&(this.O.Bf=t,this.g(\"contextClick\",e,t))}},mouseEnter:{get:function(){return null!==this.O?this.O.Sf:null},set:function(t){$s(this);var e=this.O.Sf;e!==t&&(this.O.Sf=t,this.g(\"mouseEnter\",e,t))}},mouseLeave:{get:function(){return null!==this.O?this.O.Vf:null},set:function(t){$s(this);var e=this.O.Vf;e!==t&&(this.O.Vf=t,this.g(\"mouseLeave\",e,t))}},mouseOver:{get:function(){return null!==this.O?this.O.Wf:null},set:function(t){$s(this);var e=this.O.Wf;e!==t&&(this.O.Wf=t,this.g(\"mouseOver\",e,t))}},mouseHover:{get:function(){return null!==this.O?this.O.Uf:null},set:function(t){$s(this);var e=this.O.Uf;e!==t&&(this.O.Uf=t,this.g(\"mouseHover\",e,t))}},mouseHold:{get:function(){return null!==this.O?this.O.Tf:null},set:function(t){$s(this);var e=this.O.Tf;e!==t&&(this.O.Tf=t,this.g(\"mouseHold\",e,t))}},mouseDragEnter:{get:function(){return null!==this.O?this.O.to:null},set:function(t){$s(this);var e=this.O.to;e!==t&&(this.O.to=t,this.g(\"mouseDragEnter\",e,t))}},mouseDragLeave:{get:function(){return null!==this.O?this.O.uo:null},set:function(t){$s(this);var e=this.O.uo;e!==t&&(this.O.uo=t,this.g(\"mouseDragLeave\",e,t))}},mouseDrop:{get:function(){return null!==this.O?this.O.Rf:null},set:function(t){$s(this);var e=this.O.Rf;e!==t&&(this.O.Rf=t,this.g(\"mouseDrop\",e,t))}},actionDown:{get:function(){return null!==this.O?this.O.Im:null},set:function(t){$s(this);var e=this.O.Im;e!==t&&(this.O.Im=t,this.g(\"actionDown\",e,t))}},actionMove:{get:function(){return null!==this.O?this.O.Jm:null},set:function(t){$s(this);var e=this.O.Jm;e!==t&&(this.O.Jm=t,this.g(\"actionMove\",e,t))}},actionUp:{get:function(){return null!==this.O?this.O.Km:null},set:function(t){$s(this);var e=this.O.Km;e!==t&&(this.O.Km=t,this.g(\"actionUp\",e,t))}},actionCancel:{get:function(){return null!==this.O?this.O.Hm:null},set:function(t){$s(this);var e=this.O.Hm;e!==t&&(this.O.Hm=t,this.g(\"actionCancel\",e,t))}},toolTip:{get:function(){return null!==this.O?this.O.gg:null},set:function(t){$s(this);var e=this.O.gg;e!==t&&(this.O.gg=t,this.g(\"toolTip\",e,t))}},contextMenu:{get:function(){return null!==this.O?this.O.Cf:null},set:function(t){$s(this);var e=this.O.Cf;e!==t&&(this.O.Cf=t,this.g(\"contextMenu\",e,t))}}}),Ks.prototype.setProperties=Ks.prototype.Mv,Ks.prototype.findTemplateBinder=Ks.prototype.Gi,Ks.prototype.bind=Ks.prototype.bind,Ks.prototype.isEnabledObject=Ks.prototype.rg,Ks.prototype.isVisibleObject=Ks.prototype.rf,Ks.prototype.isContainedBy=Ks.prototype.qg,Ks.prototype.getNearestIntersectionPoint=Ks.prototype.Tc,Ks.prototype.getLocalPoint=Ks.prototype.Ws,Ks.prototype.getDocumentScale=Ks.prototype.Ce,Ks.prototype.getDocumentAngle=Ks.prototype.Ji,Ks.prototype.getDocumentBounds=Ks.prototype.Vp,Ks.prototype.getDocumentPoint=Ks.prototype.ma,Ks.prototype.intersectsRect=Ks.prototype.Ic,Ks.prototype.containedInRect=Ks.prototype.uh,Ks.prototype.containsRect=Ks.prototype.lf,Ks.prototype.containsPoint=Ks.prototype.ea,Ks.prototype.raiseChanged=Ks.prototype.g,Ks.prototype.raiseChangedEvent=Ks.prototype.ab,Ks.prototype.addCopyProperty=Ks.prototype.Qw;var Ca=null;function Sa(){this.Bn=this.Cf=this.gg=this.Hm=this.Km=this.Jm=this.Im=this.Rf=this.uo=this.to=this.Tf=this.Uf=this.Wf=this.Vf=this.Sf=this.Bf=this.Ff=this.Af=null}function Na(){this.Oa=[1,0,0,1,0,0]}function Pa(t){this.type=t,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.Yw=[],this.pattern=null}function Ta(t,e){this.ownerDocument=t=void 0===e?v.document:e,this.Fz=\"http://www.w3.org/2000/svg\",void 0!==t&&(this.Ga=this.ub(\"svg\",{width:\"1px\",height:\"1px\",viewBox:\"0 0 1 1\"}),this.Ga.setAttributeNS(\"http://www.w3.org/2000/xmlns/\",\"xmlns\",\"http://www.w3.org/2000/svg\"),this.Ga.setAttributeNS(\"http://www.w3.org/2000/xmlns/\",\"xmlns:xlink\",\"http://www.w3.org/1999/xlink\")),this.Qp=null,this.context=new La(this)}function La(t){this.rk=t,this.svg=t.Ga,this.stack=[],this.wc=[],this.fillStyle=\"#000000\",this.font=\"10px sans-serif\",this.globalAlpha=1,this.lineCap=\"butt\",this.lineDashOffset=0,this.lineJoin=\"miter\",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor=\"rgba(0, 0, 0, 0)\",this.shadowOffsetY=this.shadowOffsetX=0,this.strokeStyle=\"#000000\",this.textAlign=\"start\",this.clipInsteadOfFill=!1,this.Od=this.np=this.mp=0,this.aq=null,this.path=[],this.cu=!1,this.gh=null,this.hh=0,this.Sd=new Na,ja(this,1,0,0,1,0,0);var e=ht++,i=this.ub(\"clipPath\",{id:\"mainClip\"+e});i.appendChild(this.ub(\"rect\",{x:0,y:0,width:t.width,height:t.height})),this.gu=i,this.rk.Ga.appendChild(i),this.wc[0].setAttributeNS(null,\"clip-path\",\"url(#mainClip\"+e+\")\"),this.Hz={}}function Oa(t,e,i,n,o){1!==t.globalAlpha&&(i.opacity=t.globalAlpha),\"fill\"===e?(t.fillStyle instanceof Pa?i.fill=Da(t,t.fillStyle):(/^rgba\\(/.test(t.fillStyle)&&(e=/^\\s*rgba\\s*\\(([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\)\\s*$/i.exec(t.fillStyle),i.fill=\"rgb(\"+e[1]+\",\"+e[2]+\",\"+e[3]+\")\",i[\"fill-opacity\"]=e[4]),i.fill=t.fillStyle),i.stroke=\"none\"):\"stroke\"===e&&(i.fill=\"none\",t.strokeStyle instanceof Pa?i.stroke=Da(t,t.strokeStyle):(/^rgba\\(/.test(t.strokeStyle)&&(e=/^\\s*rgba\\s*\\(([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\)\\s*$/i.exec(t.strokeStyle),i.stroke=\"rgb(\"+e[1]+\",\"+e[2]+\",\"+e[3]+\")\",i[\"stroke-opacity\"]=e[4]),i.stroke=t.strokeStyle),i[\"stroke-width\"]=t.lineWidth,i[\"stroke-linecap\"]=t.lineCap,i[\"stroke-linejoin\"]=t.lineJoin,i[\"stroke-miterlimit\"]=t.miterLimit),t=n.Oa,t=\"matrix(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\")\",void 0!==o&&(t+=o),i.transform=t}function Da(t,e){var i=\"GRAD\"+ht++;if(\"linear\"===e.type)var n=t.ub(\"linearGradient\",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,id:i,gradientUnits:\"userSpaceOnUse\"});else{if(\"radial\"!==e.type)throw Error(\"invalid gradient\");n=t.ub(\"radialGradient\",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,r1:e.r1,r2:e.r2,id:i})}var o=e.Yw;e=o.length;for(var r=[],s=0;se.offset?1:-1})),o=0;on&&(n=n%l+l),n>h?(this.path.push([\"A\",i,i,0,1,p,t-u,e-c]),this.path.push([\"A\",i,i,0,1,p,f,d])):1e-6=Math.PI),p,t+i*Math.cos(o),e+i*Math.sin(o)])},i.beginPath=function(){this.path=[]},i.bezierCurveTo=function(t,e,i,n,o,r){this.path.push([\"C\",t,e,i,n,o,r])},i.clearRect=function(){},i.clip=function(){this.addPath(\"clipPath\",this.path,this.Sd),this.addPath(\"clipPath\",this.path,new Na)},i.closePath=function(){this.path.push([\"z\"])},i.createLinearGradient=function(t,e,i,n){var o=new Pa(\"linear\");return o.x1=t,o.y1=e,o.x2=i,o.y2=n,o},i.createPattern=function(t){var e=\"\";t instanceof HTMLCanvasElement&&(e=t.toDataURL()),t instanceof HTMLImageElement&&(e=t.src);var i=this.Hz;if(i[e])return\"url(#\"+i[e]+\")\";var n=\"PATTERN\"+ht++,o={x:0,y:0,width:t.width,height:t.height,href:e};return t=this.ub(\"pattern\",{width:t.width,height:t.height,id:n,patternUnits:\"userSpaceOnUse\"}),t.appendChild(this.ub(\"image\",o)),this.svg.appendChild(t),i[e]=n,\"url(#\"+n+\")\"},i.createRadialGradient=function(t,e,i,n,o,r){var s=new Pa(\"radial\");return s.x1=t,s.y1=e,s.r1=i,s.x2=n,s.y2=o,s.r2=r,s},i.drawImage=function(t,e,i,n,o,r,s,a,l){var h=\"\";t instanceof HTMLCanvasElement&&(h=t.toDataURL()),t instanceof HTMLImageElement&&(h=t.src);var u=t instanceof HTMLImageElement?t.naturalWidth:t.width,c=t instanceof HTMLImageElement?t.naturalHeight:t.height;void 0===n&&(r=e,s=i,a=n=u,l=o=c),n=n||0,o=o||0,r=r||0,s=s||0,a=a||0,l=l||0,h={x:0,y:0,width:u||n,height:c||o,href:h,preserveAspectRatio:\"xMidYMid slice\"},We.ca(n,a)&&We.ca(o,l)||(h.preserveAspectRatio=\"none\"),t=\"\",a/=n,l/=o,0===r&&0===s||(t+=\" translate(\"+r+\", \"+s+\")\"),1===a&&1===l||(t+=\" scale(\"+a+\", \"+l+\")\"),0===e&&0===i||(t+=\" translate(\"+-e+\", \"+-i+\")\"),0===e&&0===i&&n===u&&o===c||(r=\"CLIP\"+ht++,s=this.ub(\"clipPath\",{id:r}),s.appendChild(this.ub(\"rect\",{x:e,y:i,width:n,height:o})),this.svg.appendChild(s),h[\"clip-path\"]=\"url(#\"+r+\")\"),Oa(this,\"image\",h,this.Sd,t),this.addElement(\"image\",h)},i.fill=function(){this.addPath(\"fill\",this.path,this.Sd)},i.Td=function(){this.clipInsteadOfFill?this.clip():this.fill()},i.fillRect=function(t,e,i,n){t=[t,e,i,n],t={x:t[0],y:t[1],width:t[2],height:t[3]},Oa(this,\"fill\",t,this.Sd),this.addElement(\"rect\",t)},i.fillText=function(t,e,i){t=[t,e,i],e=this.textAlign,\"left\"===e?e=\"start\":\"right\"===e?e=\"end\":\"center\"===e&&(e=\"middle\"),e={x:t[1],y:t[2],style:\"font: \"+this.font,\"text-anchor\":e},Oa(this,\"fill\",e,this.Sd),this.addElement(\"text\",e,t[0])},i.lineTo=function(t,e){this.path.push([\"L\",t,e])},i.moveTo=function(t,e){this.path.push([\"M\",t,e])},i.quadraticCurveTo=function(t,e,i,n){this.path.push([\"Q\",t,e,i,n])},i.rect=function(t,e,i,n){this.path.push([\"M\",t,e],[\"L\",t+i,e],[\"L\",t+i,e+n],[\"L\",t,e+n],[\"z\"])},i.restore=function(){this.Sd=this.stack.pop(),this.path=this.stack.pop();var t=this.stack.pop();this.fillStyle=t.fillStyle,this.font=t.font,this.globalAlpha=t.globalAlpha,this.lineCap=t.lineCap,this.lineDashOffset=t.lineDashOffset,this.lineJoin=t.lineJoin,this.lineWidth=t.lineWidth,this.miterLimit=t.miterLimit,this.shadowBlur=t.shadowBlur,this.shadowColor=t.shadowColor,this.shadowOffsetX=t.shadowOffsetX,this.shadowOffsetY=t.shadowOffsetY,this.strokeStyle=t.strokeStyle,this.textAlign=t.textAlign},i.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign});for(var t=[],e=0;eo.width+o.x||o.x>l.width+l.x||c>o.height+o.y||o.y>l.height+l.y)return!0;l=!0,ja(t,1,0,0,1,0,0),t.save(),t.beginPath(),t.rect(u,c,f,h),t.clip()}if(this.sg()&&!this.isVisible())return!0;if(t.Sd.Oa=[1,0,0,1,0,0],this instanceof mh&&1e?(this.scale(e/t,1),this.translate((t-e)/2,0)):e>t&&(this.scale(1,t/e),this.translate(0,(e-t)/2)),this.Ym?this.clip():this.fill(),t>e?(this.translate(-(t-e)/2,0),this.scale(1/(e/t),1)):e>t&&(this.translate(0,-(e-t)/2),this.scale(1,1/(t/e)))}else this.Ym?this.clip():this.fill()},i.Wi=function(){this.Ym||this.stroke()},i.Nv=function(t,e,i){this.mp=t,this.np=e,this.Od=i},i.Ps=function(t,e){var i=this.W;void 0!==i.setLineDash&&(i.setLineDash(t),i.lineDashOffset=e)},i.Ns=function(){var t=this.W;void 0!==t.setLineDash&&(t.setLineDash(Ia),t.lineDashOffset=0)},i.Rc=function(t){t&&(this.Jt=\"\"),this.It=this.Kt=\"\"},p.Object.defineProperties(Fa.prototype,{fillStyle:{get:function(){return this.W.fillStyle},set:function(t){this.It!==t&&(this.It=this.W.fillStyle=t)}},font:{get:function(){return this.W.font},set:function(t){this.Jt!==t&&(this.Jt=this.W.font=t)}},globalAlpha:{get:function(){return this.W.globalAlpha},set:function(t){this.W.globalAlpha=t}},lineCap:{get:function(){return this.W.lineCap},set:function(t){this.W.lineCap=t}},lineDashOffset:{get:function(){return this.W.lineDashOffset},set:function(t){this.W.lineDashOffset=t}},lineJoin:{get:function(){return this.W.lineJoin},set:function(t){this.W.lineJoin=t}},lineWidth:{get:function(){return this.W.lineWidth},set:function(t){this.W.lineWidth=t}},miterLimit:{get:function(){return this.W.miterLimit},set:function(t){this.W.miterLimit=t}},shadowBlur:{get:function(){return this.W.shadowBlur},set:function(t){this.W.shadowBlur=t}},shadowColor:{get:function(){return this.W.shadowColor},set:function(t){this.W.shadowColor=t}},shadowOffsetX:{get:function(){return this.W.shadowOffsetX},set:function(t){this.W.shadowOffsetX=t}},shadowOffsetY:{get:function(){return this.W.shadowOffsetY},set:function(t){this.W.shadowOffsetY=t}},strokeStyle:{get:function(){return this.W.strokeStyle},set:function(t){this.Kt!==t&&(this.Kt=this.W.strokeStyle=t)}},textAlign:{get:function(){return this.W.textAlign},set:function(t){this.W.textAlign=t}},imageSmoothingEnabled:{get:function(){return this.W.imageSmoothingEnabled},set:function(t){this.W.imageSmoothingEnabled=t}},clipInsteadOfFill:{get:function(){return this.Ym},set:function(t){this.Ym=t}}});var Ia=Object.freeze([]);function Ea(){this.ba=this.u=this.K=this.l=0}function Ra(t){cl||(Wa(),cl=!0),st(this),this.v=!1,void 0===t?(this.va=Ja,this.Fk=\"black\"):\"string\"===typeof t?(this.va=Ja,this.Fk=t):(this.va=t,this.Fk=\"black\"),t=this.va,t===Za?(this.Gl=ue,this.Tk=me):this.Tk=this.Gl=t===Qa?de:le,this.ys=0,this.fr=NaN,this.ce=this.fs=this.be=null,this.Lt=this.Gk=0}function Va(t,e,i){return e=void 0===e||\"number\"!==typeof e?.2:e,i=void 0===i?el:i,Ga(t),qa(e,i)}function _a(t,e,i){return e=void 0===e||\"number\"!==typeof e?.2:e,i=void 0===i?el:i,Ga(t),qa(-e,i)}function Ha(t,e,i){Ga(t),t=al.l;var n=al.K,o=al.u,r=al.ba;return Ga(e),void 0===i&&(i=.5),\"rgba(\"+Math.round((al.l-t)*i+t)+\", \"+Math.round((al.K-n)*i+n)+\", \"+Math.round((al.u-o)*i+o)+\", \"+Math.round((al.ba-r)*i+r)+\")\"}function Ya(t){return null===t?null:t instanceof Ra?t.px():(Ga(t),128>(299*al.l+587*al.K+114*al.u)/1e3)}function qa(t,e){switch(e){case el:var i=100*Xa(al.l);e=100*Xa(al.K);var n=100*Xa(al.u);return hl.l=.4124564*i+.3575761*e+.1804375*n,hl.K=.2126729*i+.7151522*e+.072175*n,hl.u=.0193339*i+.119192*e+.9503041*n,hl.ba=al.ba,i=Ka(hl.l/rl[0]),e=Ka(hl.K/rl[1]),n=Ka(hl.u/rl[2]),ul.l=116*e-16,ul.K=500*(i-e),ul.u=200*(e-n),ul.ba=hl.ba,ul.l=Math.min(100,Math.max(0,ul.l+100*t)),t=(ul.l+16)/116,i=t-ul.u/200,hl.l=rl[0]*$a(ul.K/500+t),hl.K=rl[1]*(ul.l>ol*nl?Math.pow(t,3):ul.l/ol),hl.u=rl[2]*$a(i),hl.ba=ul.ba,t=-.969266*hl.l+1.8760108*hl.K+.041556*hl.u,i=.0556434*hl.l+-.2040259*hl.K+1.0572252*hl.u,al.l=255*Ua((3.2404542*hl.l+-1.5371385*hl.K+-.4985314*hl.u)/100),al.K=255*Ua(t/100),al.u=255*Ua(i/100),al.ba=hl.ba,al.l=Math.round(al.l),255al.l&&(al.l=0),al.K=Math.round(al.K),255al.K&&(al.K=0),al.u=Math.round(al.u),255al.u&&(al.u=0),\"rgba(\"+al.l+\", \"+al.K+\", \"+al.u+\", \"+al.ba+\")\";case il:e=al.l/255,n=al.K/255;var o=al.u/255,r=Math.max(e,n,o),s=Math.min(e,n,o),a=r-s;if(s=(r+s)/2,0===a)i=e=0;else{switch(r){case e:i=(n-o)/a%6;break;case n:i=(o-e)/a+2;break;case o:i=(e-n)/a+4}i*=60,0>i&&(i+=360),e=a/(1-Math.abs(2*s-1))}return ll.l=Math.round(i),ll.K=Math.round(100*e),ll.u=Math.round(100*s),ll.ba=al.ba,ll.u=Math.min(100,Math.max(0,ll.u+100*t)),\"hsla(\"+ll.l+\", \"+ll.K+\"%, \"+ll.u+\"%, \"+ll.ba+\")\";default:return k(\"Unknown color space: \"+e),\"rgba(0, 0, 0, 1)\"}}function Ga(t){cl||(Wa(),cl=!0);var e=sl;if(null!==e){e.clearRect(0,0,1,1),e.fillStyle=\"#000000\";var i=e.fillStyle;e.fillStyle=t,e.fillStyle!==i?(e.fillRect(0,0,1,1),t=e.getImageData(0,0,1,1).data,al.l=t[0],al.K=t[1],al.u=t[2],al.ba=t[3]/255):(e.fillStyle=\"#FFFFFF\",e.fillStyle=t,al.l=0,al.K=0,al.u=0,al.ba=1)}}function Xa(t){return t/=255,.04045>=t?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ua(t){return.0031308>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function Ka(t){return t>nl?Math.pow(t,1/3):(ol*t+16)/116}function $a(t){var e=t*t*t;return e>nl?e:(116*t-16)/ol}function Wa(){sl=ds?new za(null).context:null}Fa.className=\"CanvasSurfaceContext\",Ea.className=\"ColorNumbers\",Ra.prototype.copy=function(){var t=new Ra;return t.va=this.va,t.Fk=this.Fk,t.Gl=this.Gl.I(),t.Tk=this.Tk.I(),t.ys=this.ys,t.fr=this.fr,null!==this.be&&(t.be=this.be.copy()),t.fs=this.fs,t},i=Ra.prototype,i.freeze=function(){return this.v=!0,null!==this.be&&this.be.freeze(),this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,null!==this.be&&this.be.ha(),this},i.fb=function(t){t.classType===Ra&&(this.type=t)},i.toString=function(){var t=\"Brush(\";if(this.type===Ja)t+=this.color;else if(t=this.type===Za?t+\"Linear \":this.type===Qa?t+\"Radial \":this.type===tl?t+\"Pattern \":t+\"(unknown) \",t+=this.start+\" \"+this.end,null!==this.colorStops)for(var e=this.colorStops.iterator;e.next();)t+=\" \"+e.key+\":\"+e.value;return t+\")\"},i.addColorStop=function(t,e){return this.v&&M(this),(\"number\"!==typeof t||!isFinite(t)||1t)&&C(t,\"0 <= loc <= 1\",Ra,\"addColorStop:loc\"),null===this.be&&(this.be=new gt),this.be.add(t,e),this.va===Ja&&(this.type=Za),this.ce=null,this},i.zz=function(t,e){if(this.v&&M(this),t=void 0===t||\"number\"!==typeof t?.2:t,e=void 0===e?el:e,this.type===Ja)Ga(this.color),this.color=qa(t,e);else if((this.type===Za||this.type===Qa)&&null!==this.colorStops)for(var i=this.colorStops.iterator;i.next();)Ga(i.value),this.addColorStop(i.key,qa(t,e));return this},i.zy=function(t,e){if(this.v&&M(this),t=void 0===t||\"number\"!==typeof t?.2:t,e=void 0===e?el:e,this.type===Ja)Ga(this.color),this.color=qa(-t,e);else if((this.type===Za||this.type===Qa)&&null!==this.colorStops)for(var i=this.colorStops.iterator;i.next();)Ga(i.value),this.addColorStop(i.key,qa(-t,e));return this},i.px=function(){if(this.type===Ja)return Ya(this.color);if((this.type===Za||this.type===Qa)&&null!==this.colorStops){var t=this.colorStops;if(this.type===Qa)return Ya(t.first().value);if(null!==t.get(.5))return Ya(t.get(.5));if(2===t.count)return t=t.Na(),Ya(Ha(t[0].value,t[1].value));for(var e=t.iterator,i=-1,n=-1,o=1,r=1;e.next();){var s=e.key,a=Math.abs(.5-e.key);o>r&&a=o&&an&&(i=[n,n=i][0]),e=n-i,Ya(Ha(t.get(i),t.get(n),1-o/e))}return!1},p.Object.defineProperties(Ra.prototype,{type:{get:function(){return this.va},set:function(t){this.v&&M(this,t),this.va=t,this.start.jc()&&(t===Za?this.start=ue:t===Qa&&(this.start=de)),this.end.jc()&&(t===Za?this.end=me:t===Qa&&(this.end=de)),this.ce=null}},color:{get:function(){return this.Fk},set:function(t){this.v&&M(this,t),this.Fk=t,this.ce=null}},start:{get:function(){return this.Gl},set:function(t){this.v&&M(this,t),this.Gl=t.I(),this.ce=null}},end:{get:function(){return this.Tk},set:function(t){this.v&&M(this,t),this.Tk=t.I(),this.ce=null}},startRadius:{get:function(){return this.ys},set:function(t){this.v&&M(this,t),0>t&&C(t,\">= zero\",Ra,\"startRadius\"),this.ys=t,this.ce=null}},endRadius:{get:function(){return this.fr},set:function(t){this.v&&M(this,t),0>t&&C(t,\">= zero\",Ra,\"endRadius\"),this.fr=t,this.ce=null}},colorStops:{get:function(){return this.be},set:function(t){this.v&&M(this,t),this.be=t,this.ce=null}},pattern:{get:function(){return this.fs},set:function(t){this.v&&M(this,t),this.fs=t,this.ce=null}}}),Ra.prototype.isDark=Ra.prototype.px,Ra.prototype.darkenBy=Ra.prototype.zy,Ra.prototype.lightenBy=Ra.prototype.zz,Ra.prototype.addColorStop=Ra.prototype.addColorStop;var Ja,Za,Qa,tl,el,il,nl=216/24389,ol=24389/27,rl=[95.047,100,108.883],sl=null,al=new Ea,ll=new Ea,hl=new Ea,ul=new Ea,cl=!1;function fl(){this.name=\"Base\"}function dl(){this.name=\"Base\",this.name=\"Position\"}function pl(){this.name=\"Base\",this.name=\"Horizontal\"}function gl(){this.name=\"Base\",this.name=\"Vertical\"}function ml(){this.name=\"Base\",this.name=\"Spot\"}function vl(){this.name=\"Base\",this.name=\"Auto\"}function yl(){this.name=\"Base\",this.name=\"Table\"}function bl(){this.name=\"Base\",this.name=\"TableRow\"}function wl(){this.name=\"Base\",this.name=\"TableColumn\"}function xl(){this.name=\"Base\",this.name=\"Viewbox\"}function kl(){this.name=\"Base\",this.name=\"Grid\"}function Ml(){this.name=\"Base\",this.name=\"Link\"}function Cl(t,e,i,n){if(!1!==pa(n)){var o=n.strokeWidth;0===o&&t instanceof ju&&t.type===Nl.Link&&t.adornedObject instanceof sh&&(o=t.adornedObject.strokeWidth),o*=n.Ca,t instanceof nc&&null!==t.qa?(t=t.qa.bounds,Zs(n,t.x-o/2,t.y-o/2,t.width+o,t.height+o)):t instanceof ju&&null!==t.adornedPart.qa?(t=t.adornedPart.qa.bounds,Zs(n,t.x-o/2,t.y-o/2,t.width+o,t.height+o)):Zs(n,-o/2,-o/2,e+o,i+o),ga(n,!1)}}function Sl(){this.name=\"Base\",this.name=\"Graduated\"}function Nl(t){Ks.call(this),this.va=void 0===t?Nl.Position:t,null===this.va&&k(\"Panel type not specified or PanelLayout not loaded: \"+t),this.Y=new nt,this.eb=oe,this.va===Nl.Grid&&(this.isAtomic=!0),this.nn=Ae,this.Df=is,this.va===Nl.Table&&Pl(this),this.Fp=es,this.Ln=Tt,this.Mn=Dt,this.In=0,this.Hn=100,this.Kn=10,this.Jn=0,this.Qh=this.jb=this.Mg=this.hj=this.jj=null,this.Zn=NaN,this.je=this.ei=null,this.gl=\"category\",this.Ed=null,this.hg=new _t(NaN,NaN,NaN,NaN),this.kh=this.cp=this.ti=null,this.yg=\"\"}function Pl(t){t.dj=oe,t.Gg=1,t.Vh=null,t.Uh=null,t.Fg=1,t.Eg=null,t.Th=null,t.sb=[],t.nb=[],t.Fj=rh,t.bj=rh,t.wi=0,t.gi=0}function Tl(t,e,i,n){for(var o=n.length,r=t.actualBounds,s=t.naturalBounds,a=!0,l=0;lr.height)continue}else if(h.position>r.width)continue;var u=h.separatorStrokeWidth;isNaN(u)&&(u=i?t.Gg:t.Fg);var c=h.separatorStroke;if(null===c&&(c=i?t.Vh:t.Eg),0!==u&&null!==c){ia(t,e,c,!1,!1,s,r),c=!1;var f=h.separatorDashArray;null===f&&(f=i?t.Uh:t.Th),null!==f&&(c=!0,e.Ps(f,0)),e.beginPath(),f=h.position+u,i?f>r.height&&(u-=f-r.height):f>r.width&&(u-=f-r.width),h=h.position+u/2,e.lineWidth=u,u=t.eb,i?(h+=u.top,f=r.width-u.right,e.moveTo(u.left,h),e.lineTo(f,h)):(h+=u.left,f=r.height-u.bottom,e.moveTo(h,u.top),e.lineTo(h,f)),e.stroke(),c&&e.Ns()}}}}function Ll(t,e,i,n,o){for(var r=n.length,s=t.actualBounds,a=t.naturalBounds,l=0;lu)){var c=h.tc(),f=h.separatorStrokeWidth;isNaN(f)&&(f=i?t.Gg:t.Fg);var d=h.separatorStroke;null===d&&(d=i?t.Vh:t.Eg),null===d&&(f=0),c-=f,f=h.position+f,c+=h.actual,f+c>u&&(c=u-f),0>=c||(u=t.eb,ia(t,e,h.background,!0,!1,a,s),i?e.fillRect(u.left,f+u.top,s.width-(u.left+u.right),c):e.fillRect(f+u.left,u.top,c,s.height-(u.top+u.bottom)))}}}}function Ol(t,e,i){if(0!==t%e)return!1;e=i.length;for(var n=0;nl.width||a.y>l.height||0>a.x+a.width||0>a.y+a.height||(s instanceof Nl&&Rl(s,e,i,n),null!==e&&(s=e(s)),null===s||null!==i&&!i(s)||n.add(s))}}}function Vl(t){var e=null;return t instanceof sh&&(e=t.spot1,e===Ae&&(e=null),t=t.geometry,null!==t&&null===e&&(e=t.spot1)),null===e&&(e=he),e}function _l(t){var e=null;return t instanceof sh&&(e=t.spot2,e===Ae&&(e=null),t=t.geometry,null!==t&&null===e&&(e=t.spot2)),null===e&&(e=ve),e}function Hl(t,e){t.H=e?16777216|t.H:-16777217&t.H}function Yl(t){return t=t.Qh,null!==t&&t.v}function ql(t){var e=t.Qh;if(null===e)null!==t.data&&k(\"Template cannot have .data be non-null: \"+t),t.Qh=e=new nt;else if(e.v)return;var i=new nt;Hl(t,!1),t.ym(t,(function(t,n){var o=n.bb;if(null!==o)for(ca(n,!1),o=o.iterator;o.next();){var r=o.value;r.mode===wd&&ca(n,!0);var s=r.sourceName;null!==s&&(\"/\"===s&&Hl(t,!0),s=yd(r,t,n),null!==s&&(i.add(s),null===s.Fl&&(s.Fl=new nt),s.Fl.add(r))),e.add(r)}if(n instanceof Nl&&n.type===Nl.Table){if(0i)){var o=$l(t,e),r=t.itemTemplateMap,s=null;null!==r&&(s=r.J(o)),null===s&&(Zl||(Zl=!0,S('No item template Panel found for category \"'+o+'\" on '+t),S(\" Using default item template.\"),o=new Nl,r=new mh,r.bind(new vd(\"text\",\"\",z)),o.add(r),Ql=o),s=Ql),o=s,null!==o&&(ql(o),o=o.copy(),0!==(16777216&o.H)&&(r=t.Gi(),null!==r&&Hl(r,!0)),\"object\"===n(e)&&(null===t.Ed&&(t.Ed=new gt),t.Ed.add(e,o)),r=i+Xl(t),t.Ib(r,o),o.jb=e,Kl(t,r,i),o.jb=null,o.data=e)}}function Kl(t,e,i){for(t=t.Y;ee.length&&(e=\"0\"+e),2>n.length&&(n=\"0\"+n),2>t.length&&(t=\"0\"+t),\"#\"+e+n+t},Ra.isValidColor=function(t){if(\"black\"===t)return!0;if(\"\"===t)return!1;cl||(Wa(),cl=!0);var e=sl;if(null===e)return!0;e.fillStyle=\"#000000\";var i=e.fillStyle;return e.fillStyle=t,e.fillStyle!==i||(e.fillStyle=\"#FFFFFF\",i=e.fillStyle,e.fillStyle=t,e.fillStyle!==i)},Ra.lighten=function(t){return Va(t)},Ra.lightenBy=Va,Ra.darken=function(t){return _a(t)},Ra.darkenBy=_a,Ra.mix=Ha,Ra.isDark=Ya,fl.prototype.measure=function(){},fl.prototype.Cz=function(t,e,i,n,o){t.measure(e,i,n,o)},fl.prototype.arrange=function(){},fl.prototype.oy=function(t,e,i,n,o,r){t.arrange(e,i,n,o,r)},p.Object.defineProperties(fl.prototype,{classType:{get:function(){return Nl}}}),fl.prototype.arrangeElement=fl.prototype.oy,fl.prototype.measureElement=fl.prototype.Cz,fl.className=\"PanelLayout\",d(dl,fl),dl.prototype.measure=function(t,e,i,n,o,r,s){var a=n.length;t=jl(t);for(var l=0;lN&&(E=Math.max(N-rt,0));var st=0===L.actual;L.actual=L.actual+E,N=Math.max(N-(E+(st?rt:0)),0)}if(1===U.columnSpan&&(Z===ts||Z===os)){L=t.getColumnDefinition(H);var at=L.tc();E=Math.max(nt-L.actual,0),E+at>S&&(E=Math.max(S-at,0));var lt=0===L.actual;L.actual=L.actual+E,S=Math.max(S-(E+(lt?at:0)),0)}K&&U.dm()}}}}}A(w);var ht=0,ut=0;a=t.columnCount;for(var ct=0;ct=t.rowCount);te++)L=t.getRowDefinition(Jt.row+te),E=0,E=Z===Qr||Z===os?Math.max(L.minimum,0===qt[Jt.row+te]?L.maximum:Math.min(qt[Jt.row+te],L.maximum)):Math.max(L.minimum,isNaN(L.Pc)?L.maximum:Math.min(L.Pc,L.maximum)),Yt.height+=E;for(var ee=1;ee=t.columnCount);ee++)L=t.getColumnDefinition(Jt.column+ee),E=0,E=Z===Qr||Z===ns?Math.max(L.minimum,0===Gt[Jt.column+ee]?L.maximum:Math.min(Gt[Jt.column+ee],L.maximum)):Math.max(L.minimum,isNaN(L.Pc)?L.maximum:Math.min(L.Pc,L.maximum)),Yt.width+=E;Tt.width+=Yt.width,Tt.height+=Yt.height;var ie=Jt.margin,ne=ie.right+ie.left,oe=ie.top+ie.bottom;Jt.measure(Tt.width,Tt.height,r,s);for(var re=Jt.measuredBounds,se=Math.max(re.width+ne,0),ae=Math.max(re.height+oe,0),le=0,he=0;he=t.rowCount);he++)L=t.getRowDefinition(Jt.row+he),le+=L.total||0;if(le=ue)&&!(Jt.row+de>=t.rowCount);de++){L=t.getRowDefinition(Jt.row+de);var pe=L.ka||0,ge=fe(Jt,L,ce);L.actual=Math.min(L.maximum,pe+ge),L.ka!==pe&&(ue-=L.ka-pe)}for(;0me&&(L.actual=Math.min(L.maximum,me+ue),L.ka!==me&&(ue-=L.ka-me)),0===L.index)break;L=t.getRowDefinition(L.index-1)}}for(var ve=0,ye=0;ye=t.columnCount);ye++)L=t.getColumnDefinition(Jt.column+ye),ve+=L.total||0;if(ve=be)&&!(Jt.column+ke>=t.columnCount);ke++){L=t.getColumnDefinition(Jt.column+ke);var Me=L.ka||0,Ce=xe(Jt,L,we);L.actual=Math.min(L.maximum,Me+Ce),L.ka!==Me&&(be-=L.ka-Me)}for(;0Se&&(L.actual=Math.min(L.maximum,Se+be),L.ka!==Se&&(be-=L.ka-Se)),0===L.index)break;L=t.getColumnDefinition(L.index-1)}}}}A(x),It.free(Yt),It.free(Tt),void 0!==qt&&A(qt),void 0!==Gt&&A(Gt);var Ne=0,Pe=0,Te=t.desiredSize,Le=t.maxSize;Z=sa(t,!0);var Oe=ut=ht=0,De=0;a=t.columnCount;for(var je=0;je=t.rowCount);C++)M=t.getRowDefinition(p+C),d.height+=M.total;for(C=1;C=t.columnCount);C++)M=t.getColumnDefinition(m+C),d.width+=M.total;var S=v.ka+d.width,N=g.ka+d.height;C=s,M=a;var P=S,T=N,L=s,O=a,D=S,j=N;s+S>i.width&&(D=Math.max(i.width-s,0)),a+N>i.height&&(j=Math.max(i.height-a,0));var A=x.alignment;if(A.Kb()){A=t.defaultAlignment,A.gb()||(A=de);var B=A.x,z=A.y,F=A.offsetX;A=A.offsetY;var I=v.alignment,E=g.alignment;I.gb()&&(B=I.x,F=I.offsetX),E.gb()&&(z=E.y,A=E.offsetY)}else B=A.x,z=A.y,F=A.offsetX,A=A.offsetY;(isNaN(B)||isNaN(z))&&(z=B=.5,A=F=0),I=k.width,E=k.height;var R=x.margin,V=R.left+R.right,_=R.top+R.bottom,H=aa(x,g,v,!1);!isNaN(x.desiredSize.width)||H!==Qr&&H!==ns||(I=Math.max(S-V,0)),!isNaN(x.desiredSize.height)||H!==Qr&&H!==os||(E=Math.max(N-_,0)),S=x.maxSize,N=x.minSize,I=Math.min(S.width,I),E=Math.min(S.height,E),I=Math.max(N.width,I),E=Math.max(N.height,E),S=E+_,C+=P*B-(I+V)*B+F+R.left,M+=T*z-S*z+A+R.top,x.visible&&(Wt(L,O,D,j,C,M,k.width,k.height)?x.arrange(C,M,I,E):x.arrange(C,M,I,E,new _t(L,O,D,j)))}else x.fl(),x.actualBounds.ha(),P=x.actualBounds,C=_t.allocAt(P.x,P.y,P.width,P.height),P.x=M.type===Nl.TableRow?r:s,P.y=M.type===Nl.TableColumn?o:a,P.width=k.width,P.height=k.height,x.actualBounds.freeze(),va(x,!1),Gt(C,P)||(k=x.part,null!==k&&(k.yh(),x.Do(k))),_t.free(C)}}}for(It.free(d),t=0;tr)v.measure(1/0,1/0,0,0),y=v.measuredBounds,e.Jc(y),t.l.push(y);else{var b=v.segmentIndex;y=v.segmentFraction;var w=v.alignmentFocus;w.jc()&&(w=de);var x=v.segmentOrientation,k=v.segmentOffset;if(b<-r||b>=r){y=l.midPoint;var M=l.midAngle;if(x!==Tc){var C=l.computeAngle(v,x,M);v.zc=C}C=y.x-u.x;var S=y.y-u.y}else{if(C=0,0<=b){S=c.N(b);var N=bT+10?0<=b?M.Wa(S):S.Wa(M):T>P+10?0<=b?N.Wa(C):C.Wa(N):0<=b?M.Wa(C):C.Wa(M)}else M=0<=b?S.Wa(N):N.Wa(S);x!==Tc&&(C=l.computeAngle(v,x,M),v.zc=C),C=S.x+(N.x-S.x)*y-u.x,S=S.y+(N.y-S.y)*y-u.y}v.measure(1/0,1/0,0,0),y=v.measuredBounds,T=v.naturalBounds,P=0,v instanceof sh&&(P=v.strokeWidth),N=T.width+P,T=T.height+P,a.reset(),a.translate(-y.x,-y.y),a.scale(v.scale,v.scale),a.rotate(x===Tc?v.angle:M,N/2,T/2),x!==Fc&&x!==Vc||a.rotate(90,N/2,T/2),x!==Ic&&x!==_c||a.rotate(-90,N/2,T/2),x===Hc&&(45M||225M)&&a.rotate(-M,N/2,T/2),x=new _t(0,0,N,T),p.Ti(x,w),a.ta(p),w=-p.x+P/2*v.scale,v=-p.y+P/2*v.scale,g.assign(k),isNaN(g.x)&&(g.x=0<=b?N/2+3:-(N/2+3)),isNaN(g.y)&&(g.y=-(T/2+3)),g.rotate(M),C+=g.x,S+=g.y,x.set(y),x.h(C+w,S+v,y.width,y.height),t.l.push(x),e.Jc(x)}}if(null!==s)for(n=s.labelNodes;n.next();)n.value.measure(1/0,1/0);t.hg=e,t=t.location,t.h(t.x+e.x,t.y+e.y),Ht(o,e.width||0,e.height||0),ae.free(a),mt.free(p),mt.free(g)}}}},Ml.prototype.arrange=function(t,e){var i=e.length;if(t instanceof ju||t instanceof nc){var n=null,o=null,r=null;t instanceof nc&&(o=n=t),t instanceof ju&&(r=t,n=r.adornedPart);var s=t instanceof ju?null:n.path;if(0!==t.l.length){var a=t.l,l=0;if(null!==s&&l=i){var p=c.midPoint;u=c.midAngle,d!==Tc&&(c=c.computeAngle(s,d,u),s.angle=c),c=p.x;var g=p.y}else{var m=0;if(0<=a?(g=e.j[a],p=ay+10?0<=a?u.Wa(g):g.Wa(u):y>v+10?0<=a?p.Wa(m):m.Wa(p):0<=a?u.Wa(m):m.Wa(u)}else u=0<=a?g.Wa(p):p.Wa(g);d!==Tc&&(c=c.computeAngle(s,d,u),s.angle=c),c=g.x+(p.x-g.x)*f,g=g.y+(p.y-g.y)*f}h.et()?s.location=new mt(c,g):(h.jc()&&(h=de),p=ae.alloc(),p.reset(),p.scale(s.scale,s.scale),p.rotate(s.angle,0,0),f=s.naturalBounds,f=_t.allocAt(0,0,f.width,f.height),d=mt.alloc(),d.Ti(f,h),p.ta(d),h=-d.x,m=-d.y,l=l.copy(),isNaN(l.x)&&(l.x=0<=a?d.x+3:-(d.x+3)),isNaN(l.y)&&(l.y=-(d.y+3)),l.rotate(u),c+=l.x,g+=l.y,p.Uv(f),h+=f.x,m+=f.y,a=mt.allocAt(c+h,g+m),s.move(a),mt.free(a),mt.free(d),_t.free(f),ae.free(p))}null!==r?r.gk(!1):null!==o&&o.gk(!1)}},d(Sl,fl),Sl.prototype.measure=function(t,e,i,n,o,r,s){var a=t.zb();t.hj=[];var l=a.margin,h=l.right+l.left,u=l.top+l.bottom;a.measure(e,i,r,s);var c=a.measuredBounds,f=new _t(-l.left,-l.top,Math.max(c.width+h,0),Math.max(c.height+u,0));t.hj.push(f),o.assign(f);for(var d=a.geometry,p=a.strokeWidth,g=d.flattenedSegments,m=d.flattenedLengths,v=d.flattenedTotalLength,y=g.length,b=0,w=0,x=j(),k=0;kL&&(L+=360),C.push(L)}b=P,w=T}x.push(C)}if(null===t.Mg){for(var O=[],D=t.Y.j,B=D.length,z=0;zE&&I.push(_)}}}t.Mg=O}var H=t.Mg,Y=t.Y.j,q=Y.length,G=0,X=0,U=v;t.jj=[];for(var K,$=0;$Z*J*v/t.graduatedRange)){var Q=m[0][0],tt=0,et=0;X=v*W.graduatedStart-1e-4,U=v*W.graduatedEnd+1e-4;var it=Z*J,nt=t.graduatedTickBase;if(ntt.graduatedMin+it&&(nt-=Math.floor((nt-t.graduatedMin)/it)*it);for(var rt=H[$];nt<=t.graduatedMax;){t:{for(var st=rt.length,at=0;atv&&(G=v),X<=G&&G<=U)){for(var ht=x[tt][et],ut=m[tt][et];ttQ&&etpt?0qt;qt++){switch(qt){case 0:At.h(Bt,zt);break;case 1:At.h(Bt+Ot,zt);break;case 2:At.h(Bt,zt+Dt);break;case 3:At.h(Bt+Ot,zt+Dt)}At.rotate(Yt+Mt.angle),At.offset(Vt,Ht),0===Et&&0===qt?Ft.h(At.x,At.y,0,0):Ft.Ie(At),At.offset(-Vt,-Ht),At.rotate(-Yt-Mt.angle)}mt.free(At),St.hj.push(Ft),$t(Nt,Ft.x,Ft.y,Ft.width,Ft.height)}else if(Mt instanceof mh){var Gt=t,Xt=o;null===Gt.kh&&(Gt.kh=new mh);var Ut=Gt.kh;vh(Ut,Mt);var Kt=Mt.alignmentFocus;Kt.jc()&&(Kt=ue);for(var Wt=Mt.segmentOrientation,Jt=Mt.segmentOffset,Zt=null,Qt=0,te=0,ee=0,ie=0,ne=Ct.length,oe=0;oeee||225ee)&&fe.rotate(-ee,he/2,ce/2);var de=_t.allocAt(0,0,he,ce),pe=mt.alloc();pe.Ti(de,Kt),fe.ta(pe);var ge=-pe.x,me=-pe.y,ve=mt.alloc();ve.assign(Jt),isNaN(ve.x)&&(ve.x=he/2+3),isNaN(ve.y)&&(ve.y=-(ce/2+3)),ve.rotate(ee),Qt+=ve.x+ge,te+=ve.y+me;var ye=new _t(Qt,te,se.width,se.height),be=new _t(se.x,se.y,se.width,se.height),we=new _t(le.x,le.y,le.width,le.height),xe=new Hh;xe.Vl(Ut.metrics),re.push(ie),re.push(Ut.lineCount),re.push(xe),re.push(ye),re.push(be),re.push(we),0===oe?Zt=ye.copy():Zt.Jc(ye),mt.free(ve),mt.free(pe),_t.free(de),ae.free(fe)}Gt.hj.push(Zt),$t(Xt,Zt.x,Zt.y,Zt.width,Zt.height)}ga(Mt,!1)}}},Sl.prototype.arrange=function(t,e,i){if(null!==t.hj){var n=t.zb(),o=t.jj,r=t.hj,s=0,a=r[s];s++,n.arrange(a.x-i.x,a.y-i.y,a.width,a.height);for(var l=e.length,h=0;h=e&&(e=1);var i=this.gridCellSize,n=i.width;i=i.height;var o=this.naturalBounds,r=this.actualBounds,s=o.width,a=o.height,l=Math.ceil(s/n),h=Math.ceil(a/i),u=this.gridOrigin;t.save(),t.beginPath(),t.rect(0,0,s,a),t.clip();for(var c=[],f=this.Y.j,d=f.length,p=0;pn*m*e))){if(g=b.opacity,v=1,1!==g){if(0===g)continue;v=t.globalAlpha,t.globalAlpha=v*g}y=c[p];var w=!1,x=b.strokeDashArray;if(null!==x&&(w=!0,t.Ps(x,b.strokeDashOffset)),\"LineV\"===b.figure&&null!==b.stroke){for(t.lineWidth=b.strokeWidth,ia(this,t,b.stroke,!1,!1,o,r),t.beginPath(),x=b=Math.floor(-u.x/n);x<=b+l;x++){var k=x*n+u.x;0<=k&&k<=s&&Ol(x,m,y)&&(t.moveTo(k,0),t.lineTo(k,a))}t.stroke()}else if(\"LineH\"===b.figure&&null!==b.stroke){for(t.lineWidth=b.strokeWidth,ia(this,t,b.stroke,!1,!1,o,r),t.beginPath(),x=b=Math.floor(-u.y/i);x<=b+h;x++)k=x*i+u.y,0<=k&&k<=a&&Ol(x,m,y)&&(t.moveTo(0,k),t.lineTo(s,k));t.stroke()}else if(\"BarV\"===b.figure&&null!==b.fill)for(ia(this,t,b.fill,!0,!1,o,r),b=b.width,isNaN(b)&&(b=n),k=x=Math.floor(-u.x/n);k<=x+l;k++){var M=k*n+u.x;0<=M&&M<=s&&Ol(k,m,y)&&t.fillRect(M,0,b,a)}else if(\"BarH\"===b.figure&&null!==b.fill)for(ia(this,t,b.fill,!0,!1,o,r),b=b.height,isNaN(b)&&(b=i),k=x=Math.floor(-u.y/i);k<=x+h;k++)M=k*i+u.y,0<=M&&M<=a&&Ol(k,m,y)&&t.fillRect(0,M,s,b);w&&t.Ns(),1!==g&&(t.globalAlpha=v)}}t.restore(),t.Rc(!1)}else if(this.va===Nl.Graduated){for(n=e.mj,e.mj=!0,o=this.naturalBounds,i=o.width,o=o.height,t.save(),t.beginPath(),t.rect(-1,-1,i+1,o+1),t.clip(),i=this.zb(),i.hc(t,e),o=this.Ce()*e.scale,0>=o&&(o=1),r=i.actualBounds,s=this.Y.j,a=this.jj,l=s.length,h=0;hthis.graduatedTickUnit*f.interval*o))for(d=f.measuredBounds,p=f.strokeWidth*f.scale,m=f.alignmentFocus,m.jc()&&(m=ue),g=0;gn&&o.set(p),mt.free(p)),mt.free(u),r&&o.transform(s),h},i.s=function(t){Ks.prototype.s.call(this,t),t=null,this.va!==Nl.Auto&&this.va!==Nl.Link||(t=this.zb());for(var e=this.Y.j,i=e.length,n=0;ni||r>n)&&(this.s(),this.measure(e>i?i:e,r>n?n:r,0,0));break;case Qr:this.s(!0),this.measure(i+a,n+s,0,0);break;case ns:this.s(!0),this.measure(i+a,r+s,0,0);break;case os:this.s(!0),this.measure(e+a,n+s,0,0)}}this.va.arrange(this,o,this.hg)}},i.vh=function(t){var e=this.naturalBounds,i=jl(this);if(Wt(0,0,e.width,e.height,t.x,t.y)){e=this.Y.j;for(var n=e.length,o=mt.allocAt(0,0);n--;){var r=e[n];if((r.visible||r===i)&&(wt(o.set(t),r.transform),r.ea(o)))return mt.free(o),!0}return mt.free(o),null!==this.ib||null!==this.dc}return!1},i.Qs=function(t){if(this.Dk===t)return this;for(var e=this.Y.j,i=e.length,n=0;nf.width||c.y>f.height||0>c.x+c.width||0>c.y+c.height||(c=u,u=u instanceof Nl?u:null,f=ae.alloc(),f.set(s),(null!==u?u.mg(t,e,i,n,o,f):Qs(c,t,n,f))&&(null!==e&&(c=e(c)),null===c||null!==i&&!i(c)||o.add(c)),ae.free(f))}}return void 0===r&&ae.free(s),n}return void 0===r&&ae.free(s),!1},i.ng=function(t,e,i,n,o,r){if(!1===this.pickable)return!1;void 0===i&&(i=null),void 0===n&&(n=null);var s=this.naturalBounds,a=this.Zd(),l=a?t:wt(mt.allocAt(t.x,t.y),this.transform),h=a?e:wt(mt.allocAt(e.x,e.y),this.transform),u=l.Be(h),c=0m.width||g.y>m.height||0>g.x+g.width||0>g.y+g.height)||(p.Zd()?(g=p.transform,wt(l.set(t),g),wt(h.set(e),g)):(l.set(t),h.set(e)),g=p,p=p instanceof Nl?p:null,(null!==p?p.ng(l,h,i,n,o,r):g.jx(l,h,o))&&(null!==i&&(g=i(g)),null===g||null!==n&&!n(g)||r.add(g)))}}mt.free(l),mt.free(h)}return o?c:s}return!1},i.add=function(t){this.Ib(this.Y.count,t)},i.N=function(t){return this.Y.N(t)},i.Ib=function(t,e){e instanceof lu&&k(\"Cannot add a Part to a Panel: \"+e+\"; use a Panel instead\"),(this===e||this.qg(e))&&(this===e&&k(\"Cannot make a Panel contain itself: \"+this.toString()),k(\"Cannot make a Panel indirectly contain itself: \"+this.toString()+\" already contains \"+e.toString()));var i=e.panel;if(null!==i&&i!==this&&k(\"Cannot add a GraphObject that already belongs to another Panel to this Panel: \"+e.toString()+\", already contained by \"+i.toString()+\", cannot be shared by this Panel: \"+this.toString()),this.va!==Nl.Grid||e instanceof sh||k(\"Can only add Shapes to a Grid Panel, not: \"+e),this.va!==Nl.Graduated||e instanceof sh||e instanceof mh||k(\"Can only add Shapes or TextBlocks to a Graduated Panel, not: \"+e),e.Si(this),e.Aj=null,null!==this.itemArray){var o=e.data;null!==o&&\"object\"===n(o)&&(null===this.Ed&&(this.Ed=new gt),this.Ed.add(o,e))}var r=this.Y;if(o=-1,i===this){for(var s=-1,a=this.Y.j,l=a.length,h=0;h=r.count&&t>=r.count)return;r.mb(s),o=s}else k(\"element \"+e.toString()+\" has panel \"+i.toString()+\" but is not contained by it.\")}(0>t||t>r.count)&&(t=r.count),r.Ib(t,e),(0===t||e.isPanelMain)&&(this.ti=null),pa(this)||this.s(),e.s(!1),(null!==e.portId||e instanceof Nl&&!0===e.xh)&&(this.xh=!0),this.Mg=null,i=this.part,null!==i&&(i.vj=null,i.Ug=NaN,this.xh&&i instanceof Au&&(i.xh=!0),i.xh&&i instanceof Au&&(i.rc=null),r=this.diagram,null!==r&&r.undoManager.isUndoingRedoing||(-1!==o&&i.ab(Pi,\"elements\",this,e,null,o,null),i.ab(Ni,\"elements\",this,null,e,null,t),this.rg()||Wl(this,e,!1)))},i.remove=function(t){for(var e=this.Y.j,i=e.length,n=-1,o=0;ot&&C(t,\">= 0\",Nl,\"getRowDefinition:idx\"),t=Math.round(t);var e=this.sb;if(void 0===e)return null;if(void 0===e[t]){var i=new eh;i.Si(this),i.isRow=!0,i.index=t,e[t]=i}return e[t]},Nl.prototype.Av=function(t){0>t&&C(t,\">= 0\",Nl,\"removeRowDefinition:idx\"),t=Math.round(t);var e=this.sb;void 0!==e&&(this.ab(Pi,\"coldefs\",this,e[t],null,t,null),e[t]&&delete e[t],this.s())},Nl.prototype.getColumnDefinition=function(t){0>t&&C(t,\">= 0\",Nl,\"getColumnDefinition:idx\"),t=Math.round(t);var e=this.nb;if(void 0===e)return null;if(void 0===e[t]){var i=new eh;i.Si(this),i.isRow=!1,i.index=t,e[t]=i}return e[t]},i=Nl.prototype,i.yv=function(t){0>t&&C(t,\">= 0\",Nl,\"removeColumnDefinition:idx\"),t=Math.round(t);var e=this.nb;void 0!==e&&(this.ab(Pi,\"coldefs\",this,e[t],null,t,null),e[t]&&delete e[t],this.s())},i.Ry=function(t){if(0>t||this.type!==Nl.Table)return-1;for(var e=0,i=this.sb,n=i.length,o=this.wi;ot||this.type!==Nl.Table)return-1;for(var e=0,i=this.nb,n=i.length,o=this.gi;ot;)this.xc(this.Y.length-1,!1);if(t=this.itemArray,null!==t)for(var e=t.length,i=0;it&&C(t,\">= 0\",Nl,\"padding\"),t=new ee(t)):(0>t.left&&C(t.left,\">= 0\",Nl,\"padding:value.left\"),0>t.right&&C(t.right,\">= 0\",Nl,\"padding:value.right\"),0>t.top&&C(t.top,\">= 0\",Nl,\"padding:value.top\"),0>t.bottom&&C(t.bottom,\">= 0\",Nl,\"padding:value.bottom\"));var e=this.eb;e.A(t)||(this.eb=t=t.I(),this.s(),this.g(\"padding\",e,t))}},defaultAlignment:{get:function(){return this.nn},set:function(t){var e=this.nn;e.A(t)||(this.nn=t=t.I(),this.s(),this.g(\"defaultAlignment\",e,t))}},defaultStretch:{get:function(){return this.Df},set:function(t){var e=this.Df;e!==t&&(this.Df=t,this.s(),this.g(\"defaultStretch\",e,t))}},defaultSeparatorPadding:{get:function(){return void 0===this.dj?oe:this.dj},set:function(t){if(void 0!==this.dj){\"number\"===typeof t&&(t=new ee(t));var e=this.dj;e.A(t)||(this.dj=t=t.I(),this.s(),this.g(\"defaultSeparatorPadding\",e,t))}}},defaultRowSeparatorStroke:{get:function(){return void 0===this.Vh?null:this.Vh},set:function(t){var e=this.Vh;e!==t&&(null===t||\"string\"===typeof t||t instanceof Ra)&&(t instanceof Ra&&t.freeze(),this.Vh=t,this.R(),this.g(\"defaultRowSeparatorStroke\",e,t))}},defaultRowSeparatorStrokeWidth:{get:function(){return void 0===this.Gg?1:this.Gg},set:function(t){if(void 0!==this.Gg){var e=this.Gg;e!==t&&isFinite(t)&&0<=t&&(this.Gg=t,this.s(),this.g(\"defaultRowSeparatorStrokeWidth\",e,t))}}},defaultRowSeparatorDashArray:{get:function(){return void 0===this.Uh?null:this.Uh},set:function(t){if(void 0!==this.Uh){var e=this.Uh;if(e!==t){if(null!==t){for(var i=t.length,n=0,o=0;ot)&&k(\"Panel.topIndex must be greater than zero and a real number, not: \"+t),this.wi=t,this.s(),this.g(\"topIndex\",e,t))}}},leftIndex:{get:function(){return void 0===this.gi?0:this.gi},set:function(t){if(void 0!==this.gi){var e=this.gi;e!==t&&((!isFinite(t)||0>t)&&k(\"Panel.leftIndex must be greater than zero and a real number, not: \"+t),this.gi=t,this.s(),this.g(\"leftIndex\",e,t))}}},data:{get:function(){return this.jb},set:function(t){var e=this.jb;if(e!==t){var i=this instanceof lu&&!(this instanceof ju);ql(this),this.jb=t;var n=this.diagram;null!==n&&(i?(i=n.partManager,this instanceof nc?(null!==e&&i.Dg.remove(e),null!==t&&i.Dg.add(t,this)):this instanceof lu&&(null!==e&&i.Me.remove(e),null!==t&&i.Me.add(t,this))):(i=this.panel,null!==i&&null!==i.Ed&&(null!==e&&i.Ed.remove(e),null!==t&&i.Ed.add(t,this)))),this.g(\"data\",e,t),null!==n&&n.undoManager.isUndoingRedoing||null!==t&&this.Ea()}}},itemIndex:{get:function(){return this.Zn},set:function(t){var e=this.Zn;e!==t&&(this.Zn=t,this.g(\"itemIndex\",e,t))}},itemArray:{get:function(){return this.ei},set:function(t){var e=this.ei;if(e!==t||null!==t&&Gl(this,t)){var i=this.diagram;e!==t&&(null!==i&&null!==e&&Ff(i.partManager,this),this.ei=t,null!==i&&null!==t&&zf(i.partManager,this)),this.g(\"itemArray\",e,t),null!==i&&i.undoManager.isUndoingRedoing||this.nt()}}},itemTemplate:{get:function(){return null===this.je?null:this.je.J(\"\")},set:function(t){if(null===this.je){if(null===t)return;this.je=new gt}var e=this.je.J(\"\");e!==t&&((t instanceof lu||t.isPanelMain)&&k(\"Panel.itemTemplate must not be a Part or be Panel.isPanelMain: \"+t),this.je.add(\"\",t),this.g(\"itemTemplate\",e,t),t=this.diagram,null!==t&&t.undoManager.isUndoingRedoing||this.nt())}},itemTemplateMap:{get:function(){return this.je},set:function(t){var e=this.je;if(e!==t){for(var i=t.iterator;i.next(););this.je=t,this.g(\"itemTemplateMap\",e,t),t=this.diagram,null!==t&&t.undoManager.isUndoingRedoing||this.nt()}}},itemCategoryProperty:{get:function(){return this.gl},set:function(t){var e=this.gl;e!==t&&(this.gl=t,this.g(\"itemCategoryProperty\",e,t))}},isAtomic:{get:function(){return 0!==(1048576&this.H)},set:function(t){var e=0!==(1048576&this.H);e!==t&&(this.H^=1048576,this.g(\"isAtomic\",e,t))}},isClipping:{get:function(){return 0!==(2097152&this.H)},set:function(t){var e=0!==(2097152&this.H);e!==t&&(this.H^=2097152,this.s(),this.g(\"isClipping\",e,t))}},isOpposite:{get:function(){return 0!==(33554432&this.H)},set:function(t){var e=0!==(33554432&this.H);e!==t&&(this.H^=33554432,this.s(),this.g(\"isOpposite\",e,t))}},isEnabled:{get:function(){return 0!==(4194304&this.H)},set:function(t){var e=0!==(4194304&this.H);if(e!==t){var i=null===this.panel||this.panel.rg();this.H^=4194304,this.g(\"isEnabled\",e,t),e=this.diagram,null!==e&&e.undoManager.isUndoingRedoing||i&&Wl(this,this,t)}}},alignmentFocusName:{get:function(){return this.yg},set:function(t){var e=this.yg;e!==t&&(this.yg=t,this.s(),this.g(\"alignmentFocusName\",e,t))}}}),p.Object.defineProperties(Nl,{Position:{get:function(){return th.J(\"Position\")}},Horizontal:{get:function(){return th.J(\"Horizontal\")}},Vertical:{get:function(){return th.J(\"Vertical\")}},Spot:{get:function(){return th.J(\"Spot\")}},Auto:{get:function(){return th.J(\"Auto\")}},Table:{get:function(){return th.J(\"Table\")}},Viewbox:{get:function(){return th.J(\"Viewbox\")}},TableRow:{get:function(){return th.J(\"TableRow\")}},TableColumn:{get:function(){return th.J(\"TableColumn\")}},Link:{get:function(){return th.J(\"Link\")}},Grid:{get:function(){return th.J(\"Grid\")}},Graduated:{get:function(){return th.J(\"Graduated\")}}}),Nl.prototype.findItemPanelForData=Nl.prototype.ix,Nl.prototype.rebuildItemElements=Nl.prototype.nt,Nl.prototype.updateTargetBindings=Nl.prototype.Ea,Nl.prototype.copyTemplate=Nl.prototype.xy,Nl.prototype.graduatedValueForPoint=Nl.prototype.jz,Nl.prototype.graduatedPointForValue=Nl.prototype.iz,Nl.prototype.findColumnForLocalX=Nl.prototype.Jy,Nl.prototype.findRowForLocalY=Nl.prototype.Ry,Nl.prototype.removeColumnDefinition=Nl.prototype.yv,Nl.prototype.removeRowDefinition=Nl.prototype.Av,Nl.prototype.removeAt=Nl.prototype.mb,Nl.prototype.remove=Nl.prototype.remove,Nl.prototype.insertAt=Nl.prototype.Ib,Nl.prototype.elt=Nl.prototype.N,Nl.prototype.add=Nl.prototype.add,Nl.prototype.findObject=Nl.prototype.$a,Nl.prototype.findInVisualTree=Nl.prototype.Yl,Nl.prototype.walkVisualTreeFrom=Nl.prototype.ym,Nl.prototype.findMainElement=Nl.prototype.zb;var Zl=!1,Ql=null,th=new gt;function eh(){st(this),this.ag=null,this.Br=!0,this.Sa=0,this.Pc=NaN,this.Wg=0,this.Vg=1/0,this.wb=Ae,this.sa=this.ka=0,this.bb=null,this.op=nh,this.ue=is,this.kp=this.dg=null,this.lp=NaN,this.ib=this.Hj=null,this.hn=!1}function ih(t){if(t.sizing===nh){var e=t.ag;return t.isRow?e.rowSizing:e.columnSizing}return t.sizing}Nl.className=\"Panel\",Nl.definePanelLayout=Jl,Jl(\"Position\",new dl),Jl(\"Vertical\",new gl),Jl(\"Auto\",new vl),Jl(\"Link\",new Ml),Jl(\"Grid\",new kl),eh.prototype.copy=function(){var t=new eh;return t.Br=this.Br,t.Sa=this.Sa,t.Pc=this.Pc,t.Wg=this.Wg,t.Vg=this.Vg,t.wb=this.wb,t.ka=this.ka,t.sa=this.sa,t.ue=this.ue,t.op=this.op,null===this.dg?t.dg=null:t.dg=this.dg.I(),t.kp=this.kp,t.lp=this.lp,t.Hj=null,null!==this.Hj&&(t.separatorDashArray=L(this.separatorDashArray)),t.ib=this.ib,t.hn=this.hn,t.bb=this.bb,t},i=eh.prototype,i.Vl=function(t){t.isRow?this.height=t.height:this.width=t.width,this.minimum=t.minimum,this.maximum=t.maximum,this.alignment=t.alignment,this.stretch=t.stretch,this.sizing=t.sizing,this.dg=null===t.separatorPadding?null:t.separatorPadding.I(),this.separatorStroke=t.separatorStroke,this.separatorStrokeWidth=t.separatorStrokeWidth,this.Hj=null,t.separatorDashArray&&(this.Hj=L(t.separatorDashArray)),this.background=t.background,this.coversSeparators=t.coversSeparators,this.bb=t.bb},i.fb=function(t){t.classType===eh&&(this.sizing=t)},i.toString=function(){return\"RowColumnDefinition \"+(this.isRow?\"(Row \":\"(Column \")+this.index+\") #\"+lt(this)},i.Si=function(t){this.ag=t},i.Nu=function(){var t=0,e=0,i=this.ag,n=this.isRow;if(null!==i&&i.type===Nl.Table)for(var o=n?i.sb.length:i.nb.length,r=0;rt&&C(t,\">= 0\",eh,\"height\"),this.Pc=t,this.actual=this.ka,null!==this.panel&&this.panel.s(),this.yb(\"height\",e,t))}},width:{get:function(){return this.Pc},set:function(t){var e=this.Pc;e!==t&&(0>t&&C(t,\">= 0\",eh,\"width\"),this.Pc=t,this.actual=this.ka,null!==this.panel&&this.panel.s(),this.yb(\"width\",e,t))}},minimum:{get:function(){return this.Wg},set:function(t){var e=this.Wg;e!==t&&((0>t||!isFinite(t))&&C(t,\">= 0\",eh,\"minimum\"),this.Wg=t,this.actual=this.ka,null!==this.panel&&this.panel.s(),this.yb(\"minimum\",e,t))}},maximum:{get:function(){return this.Vg},set:function(t){var e=this.Vg;e!==t&&(0>t&&C(t,\">= 0\",eh,\"maximum\"),this.Vg=t,this.actual=this.ka,null!==this.panel&&this.panel.s(),this.yb(\"maximum\",e,t))}},alignment:{get:function(){return this.wb},set:function(t){var e=this.wb;e.A(t)||(this.wb=t.I(),null!==this.panel&&this.panel.s(),this.yb(\"alignment\",e,t))}},stretch:{get:function(){return this.ue},set:function(t){var e=this.ue;e!==t&&(this.ue=t,null!==this.panel&&this.panel.s(),this.yb(\"stretch\",e,t))}},separatorPadding:{get:function(){return this.dg},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.dg;null!==t&&null!==e&&e.A(t)||(null!==t&&(t=t.I()),this.dg=t,null!==this.panel&&this.panel.s(),this.yb(\"separatorPadding\",e,t))}},separatorStroke:{get:function(){return this.kp},set:function(t){var e=this.kp;e!==t&&(null===t||\"string\"===typeof t||t instanceof Ra)&&(t instanceof Ra&&t.freeze(),this.kp=t,null!==this.panel&&this.panel.s(),this.yb(\"separatorStroke\",e,t))}},separatorStrokeWidth:{get:function(){return this.lp},set:function(t){var e=this.lp;e!==t&&(this.lp=t,null!==this.panel&&this.panel.s(),this.yb(\"separatorStrokeWidth\",e,t))}},separatorDashArray:{get:function(){return this.Hj},set:function(t){var e=this.Hj;if(e!==t){if(null!==t){for(var i=t.length,n=0,o=0;oo)){var r=n.measuredBounds,s=Math.max(1,r.width);r=r.height;for(var a,l,h,u,c,f,d=i[0],p=i[1],g=0,m=j(),v=2;vh&&(h=1),o=i=h,a=s/2,l=0!==a,v=0,f=m[v],h=f[0],c=f[1],u=f[2],f=f[3];for(var y=0;.1<=g;){if(0===y&&(l?(o=i,o-=a,g-=a,l=!1):o=i,0===o&&(o=1)),o>g)return void A(m);o>f?(y=o-f,o=f):y=0;var b=Math.sqrt(o*o/(1+u*u));if(0>h&&(b=-b),d+=b,p+=u*b,t.translate(d,p),t.rotate(c),t.translate(-s/2,-r/2),0===y&&n.Ci(t,e),t.translate(s/2,r/2),t.rotate(-c),t.translate(-d,-p),g-=o,f-=o,0!==y){if(v++,v===m.length)return void A(m);f=m[v],h=f[0],c=f[1],u=f[2],f=f[3],o=y}}A(m)}}function lh(t){var e=t.geometryStretch;return null!==t.Pd?e===is?Qr:e:e===is?gh[t.figure].defaultStretch:e}function hh(t,e,i,n,o){return t=i.x-t,e=i.y-e,e=t*t+e*e,ei?t-i:i-t)<(e>n?e-n:n-e)?(t=et||We.ca(l.y,t))&&(l.ye||We.ca(l.x,e))&&(l.x=t&&n<=e):(t=n&&i<=t)}function fh(t){var e=t.diagram;null!==e&&e.undoManager.isUndoingRedoing||(t.segmentOrientation=zc,\"None\"!==t.Pl?(t.segmentIndex=-1,t.alignmentFocus=Ve):\"None\"!==t.Yk&&(t.segmentIndex=0,t.alignmentFocus=new Ge(1-Ve.x,Ve.y)))}function dh(t){var e=ph[t];if(void 0===e){var i=t.toLowerCase();if(\"none\"===i)return\"None\";if(e=ph[i],void 0===e){var n,o=null;for(n in We.Bm)if(n.toLowerCase()===i){o=n;break}if(null!==o)return t=ti(We.Bm[o],!1),ph[o]=t,i!==o&&(ph[i]=o),o}}return\"string\"===typeof e?e:e instanceof Je?t:null}eh.className=\"RowColumnDefinition\",eh.Default=nh,eh.None=oh,eh.ProportionalExtra=rh,d(sh,Ks),sh.prototype.cloneProtected=function(t){Ks.prototype.cloneProtected.call(this,t),t.qa=this.qa,t.Vk=this.Vk,t.Gn=this.Gn,t.Pd=this.Pd,t.Wk=this.Wk,t.Gc=this.Gc,t.ih=this.ih,t.Il=this.Il,t.Jl=this.Jl,t.Jj=this.Jj,null!==this.gh&&(t.gh=L(this.gh)),t.hh=this.hh,t.bf=this.bf.I(),t.cf=this.cf.I(),t.Ko=this.Ko,t.Lo=this.Lo,t.Rn=this.Rn,t.No=this.No,t.Pl=this.Pl,t.Yk=this.Yk,t.Cd=this.Cd,t.Bd=this.Bd,t.zd=this.zd,t.Ad=this.Ad},i=sh.prototype,i.fb=function(t){t===ts||t===es||t===rs||t===is?this.geometryStretch=t:Ks.prototype.fb.call(this,t)},i.toString=function(){return\"Shape(\"+(\"None\"!==this.figure?this.figure:\"None\"!==this.toArrow?this.toArrow:this.fromArrow)+\")#\"+lt(this)},i.Ci=function(t,e){var i=this.Gc,n=this.Wk;if(null!==i||null!==n){var o=this.actualBounds,r=this.naturalBounds;null!==n&&ia(this,t,n,!0,!1,r,o),null!==i&&ia(this,t,i,!1,!1,r,o),o=this.part,r=this.ih,0===r&&null!==o&&(r=o instanceof ju&&o.type===Nl.Link&&\"Selection\"===o.category&&o.adornedObject instanceof sh&&o.adornedPart.zb()===o.adornedObject?o.adornedObject.strokeWidth:0),t.lineWidth=r,t.lineJoin=this.Jl,t.lineCap=this.Il,t.miterLimit=this.Jj;var s=!1;o&&e.De(\"drawShadows\")&&(s=o.isShadowed);var a=!0;null!==i&&null===n&&(a=!1),o=!1;var l=this.strokeDashArray;null!==l&&(o=!0,t.Ps(l,this.hh));var h=this.qa;if(null!==h){if(h.type===ai)t.beginPath(),t.moveTo(h.startX,h.startY),t.lineTo(h.endX,h.endY),null!==n&&t.Td(n),0!==r&&null!==i&&t.Wi();else if(h.type===li){var u=h.startX,c=h.startY,f=h.endX,d=h.endY;l=Math.min(u,f),h=Math.min(c,d),u=Math.abs(f-u),c=Math.abs(d-c),null!==n&&(t.beginPath(),t.rect(l,h,u,c),t.Td(n)),null!==i&&(f=n=i=0,a&&s&&(i=t.shadowOffsetX,n=t.shadowOffsetY,f=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0),0!==r&&(t.beginPath(),t.rect(l,h,u,c),t.Wi()),a&&s&&(t.shadowOffsetX=i,t.shadowOffsetY=n,t.shadowBlur=f))}else if(h.type===hi)c=h.startX,l=h.startY,f=h.endX,d=h.endY,h=Math.abs(f-c)/2,u=Math.abs(d-l)/2,c=Math.min(c,f)+h,l=Math.min(l,d)+u,t.beginPath(),t.moveTo(c,l-u),t.bezierCurveTo(c+We.xg*h,l-u,c+h,l-We.xg*u,c+h,l),t.bezierCurveTo(c+h,l+We.xg*u,c+We.xg*h,l+u,c,l+u),t.bezierCurveTo(c-We.xg*h,l+u,c-h,l+We.xg*u,c-h,l),t.bezierCurveTo(c-h,l-We.xg*u,c-We.xg*h,l-u,c,l-u),t.closePath(),null!==n&&t.Td(n),0!==r&&null!==i&&(a&&s?(r=t.shadowOffsetX,s=t.shadowOffsetY,i=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0,t.Wi(),t.shadowOffsetX=r,t.shadowOffsetY=s,t.shadowBlur=i):t.Wi());else if(h.type===ui)for(l=h.figures,h=l.length,u=0;um.sweepAngle,null!==p?p.endX:c.startX,null!==p?p.endY:c.startY)}else if(p=di(m,c),v=p.length,0===v)t.lineTo(m.centerX,m.centerY);else for(var y=0;y(i.startX-i.endX)*(t.x-i.endX)+(i.startY-i.endY)*(t.y-i.endY)||0>n)&&(_t.free(r),We.Ub(i.startX,i.startY,i.endX,i.endY,o,t.x,t.y)));if(i.type===li){e=i.startX;var s=i.startY,a=i.endX;if(i=i.endY,r.x=Math.min(e,a),r.y=Math.min(s,i),r.width=Math.abs(a-e),r.height=Math.abs(i-s),null===this.fill){if(r.Uc(-n,-n),r.ea(t))return _t.free(r),!1;r.Uc(n,n)}return null!==this.stroke&&r.Uc(o,o),t=r.ea(t),_t.free(r),t}if(i.type===hi){s=i.startX,o=i.startY,a=i.endX;var l=i.endY;if(i=Math.min(s,a),e=Math.min(o,l),s=Math.abs(a-s)/2,o=Math.abs(l-o)/2,i=t.x-(i+s),e=t.y-(e+o),null===this.fill){if(s-=n,o-=n,0>=s||0>=o||1>=i*i/(s*s)+e*e/(o*o))return _t.free(r),!1;s+=n,o+=n}return null!==this.stroke&&(s+=n,o+=n),_t.free(r),!(0>=s||0>=o)&&1>=i*i/(s*s)+e*e/(o*o)}return i.type===ui?(_t.free(r),null===this.fill?oi(i,t.x,t.y,o):i.ea(t,o,1=this.strokeWidth)u=We.Fe(h.startX,h.startY,h.endX,h.endY,r,s,a,l,o);else{if(h.startX===h.endX?(n=c,u=0):(e=(h.endY-h.startY)/(h.endX-h.startX),u=c/Math.sqrt(1+e*e),n=u*e),e=j(),t=new mt,We.Fe(h.startX+n,h.startY+u,h.endX+n,h.endY+u,r,s,a,l,t)&&e.push(t),t=new mt,We.Fe(h.startX-n,h.startY-u,h.endX-n,h.endY-u,r,s,a,l,t)&&e.push(t),t=new mt,We.Fe(h.startX+n,h.startY+u,h.startX-n,h.startY-u,r,s,a,l,t)&&e.push(t),t=new mt,We.Fe(h.endX+n,h.endY+u,h.endX-n,h.endY-u,r,s,a,l,t)&&e.push(t),a=e.length,0===a)return A(e),!1;for(u=!0,l=1/0,n=0;nMath.abs(i)){if(l=s-u-i*(r-n),0>t*t*i*i+h*h-l*l){o.x=NaN,o.y=NaN,u=!1;break t}c=Math.sqrt(t*t*i*i+h*h-l*l),a=(-t*t*i*l+t*h*c)/(h*h+t*t*i*i)+n,t=(-t*t*i*l-t*h*c)/(h*h+t*t*i*i)+n,h=i*(a-n)+l+u,l=i*(t-n)+l+u,Math.abs((r-a)*(r-a))+Math.abs((s-h)*(s-h))a){o.x=NaN,o.y=NaN,u=!1;break t}l=Math.sqrt(a),a=u+l,l=u-l,Math.abs(a-s)o)return!0;return!1}if(i&&null!==this.fill&&this.vh(t,!0))return!0;var o=t.Be(e),r=o;if(1.5=o||kt(e,r,0,-c)>=o||kt(e,r,0,c)>=o||kt(e,r,u,0)>=o);if(t=We.Dy(u,c,e,r),t*t<=o)return!0}else if(e.type===ui){if(h=e.bounds,r=h.x,a=h.y,l=h.x+h.width,h=h.y+h.height,t.x>l&&t.xh&&t.yo&&xt(t.x,t.y,r,a,l,a)>o&&xt(t.x,t.y,l,h,r,h)>o&&xt(t.x,t.y,l,h,l,a)>o)return!1;if(r=Math.sqrt(o),!i){for(i=e.figures,e=0;eo)return!1;for(a=r.segments.j,l=a.length,h=0;ho)return!1;break;case vi:var f=j();if(We.ze(s,u,c.point1X,c.point1Y,c.point2X,c.point2Y,c.endX,c.endY,.8,f),s=n(f,t),A(f),s)return!1;if(s=c.endX,u=c.endY,t.cd(s,u)>o)return!1;break;case yi:if(f=j(),We.jq(s,u,c.point1X,c.point1Y,c.endX,c.endY,.8,f),s=n(f,t),A(f),s)return!1;if(s=c.endX,u=c.endY,t.cd(s,u)>o)return!1;break;case bi:case wi:f=c.type===bi?di(c,r):pi(c,r,s,u);var d=f.length;if(0===d){if(s=c.centerX,u=c.centerY,t.cd(s,u)>o)return!1;break}c=null;for(var p=j(),g=0;g= 0\",sh,\"strokeWidth:value\")}},strokeCap:{get:function(){return this.Il},set:function(t){var e=this.Il;e!==t&&(\"string\"!==typeof t||\"butt\"!==t&&\"round\"!==t&&\"square\"!==t?C(t,'\"butt\", \"round\", or \"square\"',sh,\"strokeCap\"):(this.Il=t,this.R(),this.g(\"strokeCap\",e,t)))}},strokeJoin:{get:function(){return this.Jl},set:function(t){var e=this.Jl;e!==t&&(\"string\"!==typeof t||\"miter\"!==t&&\"bevel\"!==t&&\"round\"!==t?C(t,'\"miter\", \"bevel\", or \"round\"',sh,\"strokeJoin\"):(this.Jl=t,this.R(),this.g(\"strokeJoin\",e,t)))}},strokeMiterLimit:{get:function(){return this.Jj},set:function(t){var e=this.Jj;if(e!==t&&1<=t){this.Jj=t,this.R();var i=this.part;null!==i&&(i.Ug=NaN),this.g(\"strokeMiterLimit\",e,t)}}},strokeDashArray:{get:function(){return this.gh},set:function(t){var e=this.gh;if(e!==t){if(null!==t){for(var i=t.length,n=0,o=0;ot?t=0:1t?t=0:1=t.me)null!==o&&o.h(0,a);else{var h=e;if(t.jg===Ph)if(i.ig=1,s=wh(e),0===l||s<=n)i.Ec=Math.max(i.Ec,s),i.Wc.push(i.Ec),i.Ac.push(e),null!==o&&o.h(s,a);else{for(r=bh(t,h),h=h.substr(r.length),e=bh(t,h),s=wh(r+e);0n&&1n;){var c=1;for(s=wh(u.substr(0,c)),e=0;s<=n;)c++,e=s,s=wh(u.substr(0,c));if(1===c?(i.Wc[t.oc+l]=s,r=Math.max(r,s)):(i.Wc[t.oc+l]=e,r=Math.max(r,e)),c--,1>c&&(c=1),i.Ac[t.oc+l]=u.substr(0,c),l++,u=u.substr(c),t.oc+l>t.me)break}for(e=bh(t,h),s=wh(u+e);0t.me))break}i.ig=Math.min(t.me,l),i.Ec=Math.max(i.Ec,r),null!==o&&o.h(i.Ec,a*i.ig)}}}function bh(t,e){if(t.jg===Oh)return e.substr(0,1);t=e.length;for(var i=0,n=Ah;i=t?e:e.substr(0,i)}function wh(t){return null===Vh?8*t.length:Vh.measureText(t).width}function xh(t){if(null!==t.nd.Hf)return t.nd.Hf;var e=t.ee;if(null===Vh){var i=16;return t.nd.Hf=i}return void 0!==Bh[e]&&5e3>zh?i=Bh[e]:(i=1.3*Vh.measureText(\"M\").width,Bh[e]=i,zh++),t.nd.Hf=i}function kh(t){if(null===Vh)return 6;if(void 0!==Fh[t]&&5e3>Ih)var e=Fh[t];else e=Vh.measureText(Eh).width,Fh[t]=e,Ih++;return e}function Mh(t,e,i){var n=t.Pb.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\"),o=t.$e+t.af;if(o=Math.max(0,xh(t)+o),0===n.length)return i.Ec=0,t.oc=1,o;if(!t.isMultiline){var r=n.indexOf(\"\\n\",0);0<=r&&(n=n.substr(0,r))}r=0;for(var s,a=t.oc=0,l=!1;!l;){if(s=n.indexOf(\"\\n\",a),-1===s&&(s=n.length,l=!0),a<=s){if(a=n.substr(a,s-a),t.jg!==Ph){i.ig=0;var h=It.alloc();yh(t,a,i,e,h),r+=h.height,It.free(h),t.oc+=i.ig}else yh(t,a,i,e,null),r+=o,t.oc++;t.oc===t.me&&(l=!0)}a=s+1}return t.Mr=r}function Ch(){Ah=/[ \\u200b\\u00ad]/,Bh=new J,Fh=new J,Vh=ds?new za(null).context:null}sh.className=\"Shape\",sh.getFigureGenerators=function(){var t,e=new gt;for(t in We.Je)t!==t.toLowerCase()&&e.add(t,We.Je[t]);return e.freeze(),e},sh.defineFigureGenerator=function(t,e){var i=t.toLowerCase(),n=We.Je;n[t]=e,n[i]=t},sh.getArrowheadGeometries=function(){var t=new gt;for(n in We.Bm)if(void 0===ph[n]){var e=ti(We.Bm[n],!1);ph[n]=e,e=n.toLowerCase(),e!==n&&(ph[e]=n)}for(var i in ph)if(i!==i.toLowerCase()){var n=ph[i];n instanceof Je&&t.add(i,n)}return t.freeze(),t},sh.defineArrowheadGeometry=function(t,e){var i=null;i=\"string\"===typeof e?ti(e,!1):e,e=t.toLowerCase(),\"none\"!==e&&t!==e||k(\"Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: \"+t);var n=ph;n[t]=i,n[e]=t},d(mh,Ks),mh.prototype.cloneProtected=function(t){Ks.prototype.cloneProtected.call(this,t),t.Pb=this.Pb,t.Gc=this.Gc,t.ee=this.ee,t.ui=this.ui,t.yd=this.yd,t.zi=this.zi,t.nj=this.nj,t.di=this.di,t.ci=this.ci,t.Zf=this.Zf,t.jg=this.jg,t.oc=this.oc,t.Mr=this.Mr,t.iu=this.iu,t.hu=this.hu,t.nd.Vl(this.nd),t.An=this.An,t.yp=this.yp,t.vi=this.vi,t.xp=this.xp,t.Xm=this.Xm,t.Cc=this.Cc,t.$e=this.$e,t.af=this.af,t.me=this.me,t.jl=this.jl,t.Cd=this.Cd,t.Bd=this.Bd,t.zd=this.zd,t.ij=this.ij,t.Ad=this.Ad},i=mh.prototype,i.fb=function(t){t.classType===mh?this.wrap=t:Ks.prototype.fb.call(this,t)},i.toString=function(){return 22f*u*u&&(i=!0),e.Yc!==t&&(i=!1),!1===e.De(\"textGreeking\")&&(i=!1),e=this.$e,f=this.af,this.flip){case as:t.translate(o,0),t.scale(-1,1);break;case ss:t.translate(0,r),t.scale(1,-1);break;case ls:t.translate(o,r),t.scale(-1,-1)}u=this.oc,c=(e+s+f)*u,r>c&&(n=this.zi,n=n.y*r-n.y*c+n.offsetY),c=this.nd;for(var d=0;do&&(p=o),n+=e;var g=c.Ac[d],m=t,v=n,y=a,b=0;if(i)\"left\"===y?b=0:\"right\"===y?b=o-p:\"center\"===y&&(b=(o-p)/2),m.fillRect(0+b,v+.25*s,p,1);else{\"left\"===y?b=0:\"right\"===y?b=o:\"center\"===y&&(b=o/2);var w=null!==Sh?Sh(this,s):.75*s;m.fillText(g,0+b,v+w),g=s/20|0,0===g&&(g=1),\"right\"===y?b-=p:\"center\"===y&&(b-=p/2),l&&(y=null!==Nh?Nh(this,s):.8*s,m.beginPath(),m.lineWidth=g,m.moveTo(0+b,v+y),m.lineTo(0+b+p,v+y),m.stroke()),h&&(m.beginPath(),m.lineWidth=g,v=v+s-s/2.2|0,0!==g%2&&(v+=.5),m.moveTo(0+b,v),m.lineTo(0+b+p,v),m.stroke())}n+=s+f}switch(this.flip){case as:t.scale(-1,1),t.translate(-o,0);break;case ss:t.scale(1,-1),t.translate(0,-r);break;case ls:t.scale(-1,-1),t.translate(-o,-r)}}},i.hm=function(t,e,i,n){this.jl=t;var o,r=this.ee;if(null!==Vh&&Rh!==r&&(Rh=Vh.font=r),r=this.nd,r.reset(),isNaN(this.desiredSize.width)){var s=this.Pb.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\");if(0===s.length)s=0;else if(this.isMultiline){for(var a=o=0,l=!1;!l;){var h=s.indexOf(\"\\n\",a);-1===h&&(h=s.length,l=!0),o=Math.max(o,wh(s.substr(a,h-a).trim())),a=h+1}s=o}else o=s.indexOf(\"\\n\",0),0<=o&&(s=s.substr(0,o)),s=wh(s);s=Math.min(s,t/this.scale),s=Math.max(8,s)}else s=this.desiredSize.width;if(null!==this.panel&&(s=Math.min(s,this.panel.maxSize.width)),o=Mh(this,s,r),o=isNaN(this.desiredSize.height)?Math.min(o,e/this.scale):this.desiredSize.height,a=o,0!==r.Ec&&1!==r.Ac.length&&this.Zf===jh&&(e=this.ee,e=this.Zf===jh?kh(e):0,l=this.$e+this.af,l=Math.max(0,xh(this)+l),a=Math.min(this.maxLines-1,Math.max(Math.floor(a/l+.01)-1,0)),!(a+1>=r.Ac.length))){for(l=r.Ac[a],e=Math.max(1,t-e);wh(l)>e&&1t?t=0:1t?t=0:1=t&&C(t,\"> 0\",mh,\"maxLines\"),this.me=t,this.g(\"maxLines\",e,t),this.s())}},metrics:{get:function(){return this.nd}},choices:{get:function(){return this.Xm},set:function(t){var e=this.Xm;e!==t&&(this.Xm=t,this.g(\"choices\",e,t))}}});var Sh=null,Nh=null,Ph=new K(mh,\"None\",0),Th=new K(mh,\"WrapFit\",1),Lh=new K(mh,\"WrapDesiredSize\",2),Oh=new K(mh,\"WrapBreakAll\",3),Dh=new K(mh,\"OverflowClip\",0),jh=new K(mh,\"OverflowEllipsis\",1),Ah=null,Bh=null,zh=0,Fh=null,Ih=0,Eh=\"...\",Rh=\"\",Vh=null,_h=!1;function Hh(){this.Ec=this.ig=0,this.Wc=[],this.Ac=[],this.Hf=null}function Yh(){Ks.call(this),this.Ig=null,this.qp=\"\",this.fh=Qt,this.al=Qr,this.df=this.Cc=null,this.$k=de,this.yd=ts,this.Ll=null,this.bu=!1,this.ir=!0,this.nl=!1,this.Dl=null}function qh(t){void 0===t&&(t=\"\"),\"\"!==t?Uh[t]&&(delete Uh[t],Kh--):(Uh=new J,Kh=0)}function Gh(t,e){t.zr=!0,t.Zk=!1;for(var i,n=E(),o=n.length,r=0;r=n.width&&(o=o+d.offsetX+(u*d.x-n.width*d.x)),c>=n.height&&(r=r+d.offsetY+(c*d.y-n.height*d.y)),a=Math.min(n.width,u),s=Math.min(n.height,c);break;case Qr:u=n.width,c=n.height;break;case es:case rs:f===es?(f=Math.min(n.height/c,n.width/u),u*=f,c*=f):f===rs&&(f=Math.max(n.height/c,n.width/u),u*=f,c*=f,u>=n.width&&(o=(o+d.offsetX+(u*d.x-n.width*d.x)/u)*a),c>=n.height&&(r=(r+d.offsetY+(c*d.y-n.height*d.y)/c)*s),a*=1/(u/n.width),s*=1/(c/n.height),u=n.width,c=n.height)}f=this.Ce()*e.scale;var p=a*s/(u*f*c*f),g=i.__goCache;f=null;var m=$h;if(i.zr&&void 0!==g&&p>m*m)for(null===g.Bi&&(Jh(g,4,l,h,i),Jh(g,16,l,h,i)),l=g.Bi,h=l.length,f=l[0],m=0;m=n)&&(n=5),n=Math.min(n,e/3),n=Math.min(n,i/3),t=n*We.xg,e=(new Je).add(new ci(n,0,!0).add(new fi(mi,e-n,0)).add(new fi(vi,e,n,e-t,0,e,t)).add(new fi(mi,e,i-n)).add(new fi(vi,e-n,i,e,i-t,e-t,i)).add(new fi(mi,n,i)).add(new fi(vi,0,i-n,t,i,0,i-t)).add(new fi(mi,0,n)).add(new fi(vi,n,0,0,t,t,0).close())),1o.x&&t.y>o.y&&t.righto.x&&e.y>o.y&&e.right=i.maxSelectionCount)){this.D^=4096;var n=!1;if(null!==i){n=i.skipsUndoManager,i.skipsUndoManager=!0;var o=i.selection;o.ha(),t?o.add(this):o.remove(this),o.freeze()}this.g(\"isSelected\",e,t),this.Jb(),t=this.selectionChanged,null!==t&&t(this),null!==i&&(i.cc(),i.skipsUndoManager=n)}}}},isHighlighted:{get:function(){return 0!==(524288&this.D)},set:function(t){var e=0!==(524288&this.D);if(e!==t){this.D^=524288;var i=this.diagram;null!==i&&(i=i.highlighteds,i.ha(),t?i.add(this):i.remove(this),i.freeze()),this.g(\"isHighlighted\",e,t),this.R(),t=this.highlightedChanged,null!==t&&t(this)}}},isShadowed:{get:function(){return 0!==(8192&this.D)},set:function(t){var e=0!==(8192&this.D);e!==t&&(this.D^=8192,this.g(\"isShadowed\",e,t),this.R())}},isAnimated:{get:function(){return 0!==(262144&this.D)},set:function(t){var e=0!==(262144&this.D);e!==t&&(this.D^=262144,this.g(\"isAnimated\",e,t))}},highlightedChanged:{get:function(){return this.Nn},set:function(t){var e=this.Nn;e!==t&&(this.Nn=t,this.g(\"highlightedChanged\",e,t))}},selectionObjectName:{get:function(){return this.jp},set:function(t){var e=this.jp;e!==t&&(this.jp=t,this.dh=null,this.g(\"selectionObjectName\",e,t))}},selectionAdornmentTemplate:{get:function(){return this.hp},set:function(t){var e=this.hp;e!==t&&(this.hp=t,this.g(\"selectionAdornmentTemplate\",e,t))}},selectionObject:{get:function(){if(null===this.dh){var t=this.selectionObjectName;null!==t&&\"\"!==t?(t=this.$a(t),this.dh=null!==t?t:this):this instanceof nc?(t=this.path,this.dh=null!==t?t:this):this.dh=this}return this.dh}},selectionChanged:{get:function(){return this.ip},set:function(t){var e=this.ip;e!==t&&(this.ip=t,this.g(\"selectionChanged\",e,t))}},resizeAdornmentTemplate:{get:function(){return this.To},set:function(t){var e=this.To;e!==t&&(this.To=t,this.g(\"resizeAdornmentTemplate\",e,t))}},resizeObjectName:{get:function(){return this.Vo},set:function(t){var e=this.Vo;e!==t&&(this.Vo=t,this.g(\"resizeObjectName\",e,t))}},resizeObject:{get:function(){var t=this.resizeObjectName;return\"\"!==t&&(t=this.$a(t),null!==t)?t:this}},resizeCellSize:{get:function(){return this.Uo},set:function(t){var e=this.Uo;e.A(t)||(this.Uo=t=t.I(),this.g(\"resizeCellSize\",e,t))}},rotateAdornmentTemplate:{get:function(){return this.Wo},set:function(t){var e=this.Wo;e!==t&&(this.Wo=t,this.g(\"rotateAdornmentTemplate\",e,t))}},rotateObjectName:{get:function(){return this.Xo},set:function(t){var e=this.Xo;e!==t&&(this.Xo=t,this.g(\"rotateObjectName\",e,t))}},rotateObject:{get:function(){var t=this.rotateObjectName;return\"\"!==t&&(t=this.$a(t),null!==t)?t:this}},rotationSpot:{get:function(){return this.Yo},set:function(t){var e=this.Yo;e.A(t)||(this.Yo=t=t.I(),this.g(\"rotationSpot\",e,t))}},text:{get:function(){return this.Pb},set:function(t){var e=this.Pb;e!==t&&(this.Pb=t,this.g(\"text\",e,t))}},containingGroup:{get:function(){return this.Rh},set:function(t){if(this.Lb()){var e=this.Rh;if(e!==t){null===t||this!==t&&!t.Vd(this)||(this===t&&k(\"Cannot make a Group a member of itself: \"+this.toString()),k(\"Cannot make a Group indirectly contain itself: \"+this.toString()+\" already contains \"+t.toString())),this.B(2);var i=this.diagram;if(null!==e?Qu(e,this):this instanceof Ju&&null!==i&&i.xi.remove(this),this.Rh=t,null!==t?Zu(t,this):this instanceof Ju&&null!==i&&i.xi.add(this),this.B(1),null!==i){var n=this.data,o=i.model;if(null!==n&&o.dk()){var r=o.pa(null!==t?t.data:null);o.ut(n,r)}}if(n=this.containingGroupChanged,null!==n&&(o=!0,null!==i&&(o=i.da,i.da=!0),n(this,e,t),null!==i&&(i.da=o)),this instanceof Ju)for(i=new rt,Ou(i,this,!0,0,!0),i=i.iterator;i.next();)if(n=i.value,n instanceof Au)for(n=n.linksConnected;n.next();)oc(n.value);if(this instanceof Au){for(i=this.linksConnected;i.next();)oc(i.value);i=this.labeledLink,null!==i&&oc(i)}this.g(\"containingGroup\",e,t),null!==t&&(e=t.layer,null!==e&&Lo(e,-1,t))}}else k(\"cannot set the Part.containingGroup of a Link or Adornment\")}},containingGroupChanged:{get:function(){return this.$m},set:function(t){var e=this.$m;e!==t&&(this.$m=t,this.g(\"containingGroupChanged\",e,t))}},isTopLevel:{get:function(){return!(null!==this.containingGroup||this instanceof Au&&null!==this.labeledLink)}},layoutConditions:{get:function(){return this.bo},set:function(t){var e=this.bo;e!==t&&(this.bo=t,this.g(\"layoutConditions\",e,t))}},dragComputation:{get:function(){return this.wn},set:function(t){var e=this.wn;e!==t&&(this.wn=t,this.g(\"dragComputation\",e,t))}},shadowOffset:{get:function(){return this.si},set:function(t){var e=this.si;e.A(t)||(this.si=t=t.I(),this.R(),this.g(\"shadowOffset\",e,t))}},shadowColor:{get:function(){return this.Ij},set:function(t){var e=this.Ij;e!==t&&(this.Ij=t,this.R(),this.g(\"shadowColor\",e,t))}},shadowBlur:{get:function(){return this.Od},set:function(t){var e=this.Od;e!==t&&(this.Od=t,this.R(),this.g(\"shadowBlur\",e,t))}}}),lu.prototype.invalidateLayout=lu.prototype.B,lu.prototype.findCommonContainingGroup=lu.prototype.hx,lu.prototype.isMemberOf=lu.prototype.Vd,lu.prototype.findTopLevelPart=lu.prototype.Vy,lu.prototype.findSubGraphLevel=lu.prototype.Sy,lu.prototype.ensureBounds=lu.prototype.ac,lu.prototype.getDocumentBounds=lu.prototype.Vp,lu.prototype.getRelativePoint=lu.prototype.nf,lu.prototype.findObject=lu.prototype.$a,lu.prototype.moveTo=lu.prototype.moveTo,lu.prototype.invalidateAdornments=lu.prototype.Jb,lu.prototype.clearAdornments=lu.prototype.Sj,lu.prototype.removeAdornment=lu.prototype.tf,lu.prototype.addAdornment=lu.prototype.qh,lu.prototype.findAdornment=lu.prototype.$j,lu.prototype.updateTargetBindings=lu.prototype.Ea;var Du=!1;function ju(t){lu.call(this,t),this.D&=-257,this.Rg=\"Adornment\",this.$d=null,this.Ew=0,this.Pw=!1,this.l=[],this.Va=null}function Au(t){lu.call(this,t),this.S=13,this.Ya=new nt,this.Cp=this.hl=this.ii=this.eo=this.co=null,this.Ck=re,this.rc=this.Le=null,this.Qo=$u,this.oh=!1}function Bu(t,e){null!==e&&(null===t.Le&&(t.Le=new rt),t.Le.add(e))}function zu(t,e,i,n){if(null===e||null===t.Le)return null;for(var o=t.Le.iterator;o.next();){var r=o.value;if(r.jt===t&&r.ov===e&&r.xx===i&&r.yx===n||r.jt===e&&r.ov===t&&r.xx===n&&r.yx===i)return r}return null}function Fu(t,e){for(var i=t.linksConnected;i.next();){var n=i.value;n.fromPort!==e&&n.toPort!==e||(Iu(t,n.fromPort),Iu(t,n.toPort),n.Ra())}}function Iu(t,e){null!==e&&(e=e.Po,null!==e&&e.cm(),t=t.containingGroup,null===t||t.isSubGraphExpanded||Iu(t,t.port))}function Eu(t,e,i){Iu(t,i);var n=t.Ya.contains(e);if(n||t.Ya.add(e),!n||e.fromNode===e.toNode){var o=t.linkConnected;if(null!==o){var r=!0,s=t.diagram;null!==s&&(r=s.da,s.da=!0),o(t,e,i),null!==s&&(s.da=r)}}!n&&e.isTreeLink&&(i=e.fromNode,e=e.toNode,null!==i&&null!==e&&i!==e&&(n=!0,t=t.diagram,null!==t&&(n=t.isTreePathToChildren),o=n?e:i,r=n?i:e,o.oh||(o.oh=r),!r.isTreeLeaf||null!==t&&t.undoManager.isUndoingRedoing||(n?i===r&&(r.isTreeLeaf=!1):e===r&&(r.isTreeLeaf=!1))))}function Ru(t,e,i){Iu(t,i);var n=t.Ya.remove(e),o=null;if(n||e.toNode===e.fromNode){var r=t.linkDisconnected;if(o=t.diagram,null!==r){var s=!0;null!==o&&(s=o.da,o.da=!0),r(t,e,i),null!==o&&(o.da=s)}}n&&e.isTreeLink&&(i=!0,null!==o&&(i=o.isTreePathToChildren),t=i?e.toNode:e.fromNode,e=i?e.fromNode:e.toNode,null!==t&&(t.oh=!1),null===e||e.isTreeLeaf||(0===e.Ya.count?(e.oh=null,null!==o&&o.undoManager.isUndoingRedoing||(e.isTreeLeaf=!0)):Vu(e)))}function Vu(t){if(t.oh=!1,0!==t.Ya.count){var e=!0,i=t.diagram;if(null===i||!i.undoManager.isUndoingRedoing){for(null!==i&&(e=i.isTreePathToChildren),i=t.Ya.iterator;i.next();){var n=i.value;if(n.isTreeLink)if(e){if(n.fromNode===t)return void(t.isTreeLeaf=!1)}else if(n.toNode===t)return void(t.isTreeLeaf=!1)}t.isTreeLeaf=!0}}}function _u(t){null===t.rc?t.rc=new gt:t.rc.clear(),t.ym(t,(function(t,e){Hu(t,e)})),0===t.rc.count&&t.rc.add(\"\",t)}function Hu(t,e){var i=e.portId;null!==i&&null!==t.rc&&t.rc.add(i,e)}function Yu(t,e,i){var n=e.portId;if(null!==n&&(null!==t.rc&&t.rc.remove(n),e=t.diagram,null!==e&&i)){for(i=null,t=t.Wu(n);t.next();)n=t.value,null===i&&(i=j()),i.push(n);if(null!==i){for(t=0;tt&&(t=1);var e=this.diagram;if(null!==e&&!e.Ee){e.Ee=!0;var i=new rt;i.add(this),Gu(this,i,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===Ps),e.Ee=!1}},Au.prototype.expandTree=function(t){void 0===t&&(t=2),2>t&&(t=2);var e=this.diagram;if(null!==e&&!e.Ee){e.Ee=!0;var i=new rt;i.add(this),Uu(this,i,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===Ps),e.Ee=!1}},p.Object.defineProperties(Au.prototype,{portSpreading:{get:function(){return this.Qo},set:function(t){var e=this.Qo;e!==t&&(this.Qo=t,this.g(\"portSpreading\",e,t),t=this.diagram,null!==t&&t.undoManager.isUndoingRedoing||this.ed())}},avoidable:{get:function(){return 0!==(8&this.S)},set:function(t){var e=0!==(8&this.S);if(e!==t){this.S^=8;var i=this.diagram;null!==i&&Kr(i,this),this.g(\"avoidable\",e,t)}}},avoidableMargin:{get:function(){return this.Ck},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.Ck;if(!e.A(t)){this.Ck=t=t.I();var i=this.diagram;null!==i&&Kr(i,this),this.g(\"avoidableMargin\",e,t)}}},linksConnected:{get:function(){return this.Ya.iterator}},linkConnected:{get:function(){return this.co},set:function(t){var e=this.co;e!==t&&(this.co=t,this.g(\"linkConnected\",e,t))}},linkDisconnected:{get:function(){return this.eo},set:function(t){var e=this.eo;e!==t&&(this.eo=t,this.g(\"linkDisconnected\",e,t))}},linkValidation:{get:function(){return this.ii},set:function(t){var e=this.ii;e!==t&&(this.ii=t,this.g(\"linkValidation\",e,t))}},isLinkLabel:{get:function(){return null!==this.hl}},labeledLink:{get:function(){return this.hl},set:function(t){var e=this.hl;if(e!==t){var i=this.diagram,n=this.data;if(null!==e){if(null!==e.$c&&(e.$c.remove(this),e.s()),null!==i&&null!==n&&!i.undoManager.isUndoingRedoing){var o=e.data,r=i.model;if(null!==o&&r.em()){var s=r.pa(n);void 0!==s&&r.Ax(o,s)}}this.containingGroup=null}this.hl=t,null!==t&&(rc(t,this),null===i||null===n||i.undoManager.isUndoingRedoing||(o=t.data,i=i.model,null!==o&&i.em()&&(n=i.pa(n),void 0!==n&&i.Gu(o,n))),this.containingGroup=t.containingGroup),ra(this),this.g(\"labeledLink\",e,t)}}},port:{get:function(){return this.Ts(\"\")}},ports:{get:function(){return null===this.rc&&_u(this),this.rc.iteratorValues}},isTreeExpanded:{get:function(){return 0!==(1&this.S)},set:function(t){var e=0!==(1&this.S);if(e!==t){this.S^=1;var i=this.diagram;if(this.g(\"isTreeExpanded\",e,t),e=this.treeExpandedChanged,null!==e){var n=!0;null!==i&&(n=i.da,i.da=!0),e(this),null!==i&&(i.da=n)}null!==i&&i.undoManager.isUndoingRedoing?this.Mb(t):t?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return 0!==(2&this.S)},set:function(t){var e=0!==(2&this.S);e!==t&&(this.S^=2,this.g(\"wasTreeExpanded\",e,t))}},treeExpandedChanged:{get:function(){return this.Cp},set:function(t){var e=this.Cp;e!==t&&(this.Cp=t,this.g(\"treeExpandedChanged\",e,t))}},isTreeLeaf:{get:function(){return 0!==(4&this.S)},set:function(t){var e=0!==(4&this.S);e!==t&&(this.S^=4,this.g(\"isTreeLeaf\",e,t))}}}),Au.prototype.expandTree=Au.prototype.expandTree,Au.prototype.collapseTree=Au.prototype.collapseTree,Au.prototype.findTreeParts=Au.prototype.Yy,Au.prototype.findTreeChildrenNodes=Au.prototype.$u,Au.prototype.findTreeChildrenLinks=Au.prototype.Up,Au.prototype.findTreeLevel=Au.prototype.Wy,Au.prototype.findTreeParentChain=Au.prototype.Xy,Au.prototype.findTreeParentNode=Au.prototype.og,Au.prototype.findTreeParentLink=Au.prototype.Hi,Au.prototype.findCommonTreeParent=Au.prototype.Ky,Au.prototype.findTreeRoot=Au.prototype.Zy,Au.prototype.isInTreeOf=Au.prototype.sz,Au.prototype.findPort=Au.prototype.Ts,Au.prototype.findLinksTo=Au.prototype.Oy,Au.prototype.findLinksBetween=Au.prototype.Ny,Au.prototype.findNodesInto=Au.prototype.Yu,Au.prototype.findNodesOutOf=Au.prototype.Zu,Au.prototype.findNodesConnected=Au.prototype.Xu,Au.prototype.findLinksInto=Au.prototype.sd,Au.prototype.findLinksOutOf=Au.prototype.Sp,Au.prototype.findLinksConnected=Au.prototype.Wu,Au.prototype.invalidateConnectedLinks=Au.prototype.ed,Au.prototype.invalidateLinkBundle=Au.prototype.qz;var Ku=new K(Au,\"SpreadingNone\",10),$u=new K(Au,\"SpreadingEvenly\",11),Wu=new K(Au,\"SpreadingPacked\",12);function Ju(t){Au.call(this,t),this.S|=4608,this.oo=new rt,this.rl=new rt,this.Va=this.tp=this.ji=this.po=this.no=null,this.gc=new hf,this.gc.group=this}function Zu(t,e){if(t.oo.add(e)){e instanceof Ju&&t.rl.add(e);var i=t.memberAdded;if(null!==i){var n=!0,o=t.diagram;null!==o&&(n=o.da,o.da=!0),i(t,e),null!==o&&(o.da=n)}t.isVisible()&&t.isSubGraphExpanded||e.Mb(!1)}e instanceof nc&&!t.computesBoundsIncludingLinks||(e=t.Va,null===e&&(e=t),e.s())}function Qu(t,e){if(t.oo.remove(e)){e instanceof Ju&&t.rl.remove(e);var i=t.memberRemoved;if(null!==i){var n=!0,o=t.diagram;null!==o&&(n=o.da,o.da=!0),i(t,e),null!==o&&(o.da=n)}t.isVisible()&&t.isSubGraphExpanded||e.Mb(!0)}e instanceof nc&&!t.computesBoundsIncludingLinks||(e=t.Va,null===e&&(e=t),e.s())}function tc(t,e,i,n){for(var o=t.memberParts;o.next();){var r=o.value;if(r.Mb(!1),r instanceof Ju&&r.isSubGraphExpanded&&(r.wasSubGraphExpanded=r.isSubGraphExpanded,tc(r,e,i,n)),r instanceof Au)r.ed(e),i.Jp(r,n);else if(r instanceof nc)for(r=r.labelNodes;r.next();)r.value.ed(e)}t.isSubGraphExpanded=!1}function ec(t,e,i,n){for(var o=t.memberParts;o.next();){var r=o.value;if(r.Mb(!0),r instanceof Ju&&r.wasSubGraphExpanded&&(r.wasSubGraphExpanded=!1,ec(r,e,i,n)),r instanceof Au)r.ed(e),i.Kp(r,n);else if(r instanceof nc)for(r=r.labelNodes;r.next();)r.value.ed(e)}t.isSubGraphExpanded=!0}function ic(){Ks.call(this),this.eb=oe,this.ep=new _t(NaN,NaN,NaN,NaN)}function nc(){lu.call(this,Nl.Link),this.Ta=8,this.Oe=null,this.Pe=\"\",this.ef=this.Fn=null,this.ff=\"\",this.Bp=null,this.Lm=Tc,this.gn=0,this.kn=Tc,this.ln=NaN,this.Ej=Cc,this.pp=.5,this.$c=null,this.xb=(new nt).freeze(),this.bh=this.Xg=null,this.xl=new _t,this.qa=new Je,this.Qn=!0,this.K=this.u=this.xf=this.Gf=null,this.l=[],this.zu=new mt,this.kr=this.Lw=this.Kw=null,this.au=NaN,this.P=null}function oc(t){var e=t.fromNode,i=t.toNode,n=null;if(n=null!==e?null!==i?e.hx(i):e.containingGroup:null!==i?i.containingGroup:null,e=n,i=t.Rh,i!==e){null!==i&&Qu(i,t),t.Rh=e,null!==e&&Zu(e,t);var o=t.containingGroupChanged;if(null!==o){var r=!0,s=t.diagram;null!==s&&(r=s.da,s.da=!0),o(t,i,e),null!==s&&(s.da=r)}!t.Lc||t.Kw!==i&&t.Lw!==i||t.Ra()}if(t.isLabeledLink)for(t=t.labelNodes;t.next();)t.value.containingGroup=n}function rc(t,e){null===t.$c&&(t.$c=new rt),t.$c.add(e),t.s()}function sc(t,e,i){if(0!==e||0!==i){for(var n=t.Lc,o=new nt,r=t.xb.iterator;r.next();){var s=r.value;o.add(new mt(s.x+e,s.y+i).freeze())}o.freeze(),r=t.xb,t.xb=o,isNaN(e)||isNaN(i)||t.diagram.animationManager.rb?t.s():(t.Of.h(t.Of.x+e,t.Of.y+i),t.sa.h(t.sa.x+e,t.sa.y+i),ra(t)),n&&ac(t),e=t.diagram,null!==e&&e.animationManager.rb&&(t.bh=o),t.g(\"points\",r,o)}}function ac(t){0===t.xb.count?t.Lc=!1:(t.Lc=!0,t.kr=null,t.au=NaN,t.defaultFromPoint=t.i(0),t.defaultToPoint=t.i(t.pointsCount-1),wc(t,!1))}function lc(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?(e.x>=t.x?e.x=t.x+9e9:e.x=t.x-9e9,e.y=t.y):(e.y>=t.y?e.y=t.y+9e9:e.y=t.y-9e9,e.x=t.x),e}function hc(t,e){var i=e.Po;return null===i&&(i=new of,i.port=e,i.node=e.part,e.Po=i),sf(i,t)}function uc(t){return t===le||.5===t.x&&.5===t.y}function cc(t){if(null===t.diagram||!t.isAvoiding||!Gr(t.diagram))return!1;var e=t.points.j,i=e.length;if(4>i)return!1;t=Xr(t.diagram,!0,t.containingGroup,null);for(var n=1;ntf&&Xc(e,h,u)===l-1;)i=h,n=u,0===o?h+=s:90===o?u+=a:180===o?h-=s:u-=a,--l;r?l>tf&&(180===o||0===o?i=Math.floor(i/s)*s+s/2:90!==o&&270!==o||(n=Math.floor(n/a)*a+a/2)):(i=Math.floor(i/s)*s+s/2,n=Math.floor(n/a)*a+a/2),l>tf&&(r=o,h=i,u=n,0===o?(r=90,u+=a):90===o?(r=180,h-=s):180===o?(r=270,u-=a):270===o&&(r=0,h+=s),Xc(e,h,u)===l-1?fc(t,e,h,u,r,!1):(h=i,u=n,0===o?(r=270,u-=a):90===o?(r=0,h+=s):180===o?(r=90,u+=a):270===o&&(r=180,h-=s),Xc(e,h,u)===l-1&&fc(t,e,h,u,r,!1))),t.jf(i,n)}function dc(t,e,i,n){return t=i-t,isNaN(t)||1/0===t||-1/0===t?NaN:(0>t&&(t=-t),e=n-e,isNaN(e)||1/0===e||-1/0===e?NaN:(0>e&&(e=-e),We.ca(t,0)?e:We.ca(e,0)?t:Math.sqrt(t*t+e*e)))}function pc(t,e,i,n){var o=t.pointsCount;if(2>o)return e;if(i){var r=t.i(1);if(i=r.x-n.x,r=r.y-n.y,n=dc(e.x,e.y,i,r),0===n)return e;o=2===o?.5*n:n,t=t.computeShortLength(!0),t>o&&(t=o),o=t*(r-e.y)/n,e.x+=t*(i-e.x)/n,e.y+=o}else{if(r=t.i(o-2),i=r.x-n.x,r=r.y-n.y,n=dc(e.x,e.y,i,r),0===n)return e;o=2===o?.5*n:n,t=t.computeShortLength(!1),t>o&&(t=o),o=t*(e.y-r)/n,e.x-=t*(e.x-i)/n,e.y-=o}return e}function gc(t,e,i,n){for(var o=t.pointsCount,r=e;We.ca(e.x,r.x)&&We.ca(e.y,r.y);){if(i>=o)return o-1;r=t.i(i++)}if(!We.ca(e.x,r.x)&&!We.ca(e.y,r.y))return i-1;for(var s=r;We.ca(e.x,r.x)&&We.ca(r.x,s.x)&&(!n||(e.y>=r.y?r.y>=s.y:r.y<=s.y))||We.ca(e.y,r.y)&&We.ca(r.y,s.y)&&(!n||(e.x>=r.x?r.x>=s.x:r.x<=s.x));){if(i>=o)return o-1;s=t.i(i++)}return i-2}function mc(t,e,i,n,o,r,s){if(!s&&bc(t)){s=[];var a=0;if(t.isVisible()&&(a=vc(t,o,r,s)),0h-10))break;a--,h=Math.max(l-5,r.x)}l=r.y-10+n,h+=i,c=r.y+n,t.curve===Oc?tu(e,h,c,!1):iu(e,u,l,h,l,h,c)}else if(We.w(o.x,r.x))if(o.yl-10))break;a--,l=Math.max(h-5,r.y)}h=r.x-10+i,c=r.x+i,l+=n,t.curve===Oc?tu(e,c,l,!1):iu(e,h,u,h,l,c,l)}}e.lineTo(r.x+i,r.y+n)}function vc(t,e,i,n){var o=t.diagram;if(null===o||e.A(i))return 0;for(o=o.layers;o.next();){var r=o.value;if(null!==r&&r.visible){r=r.Fa.j;for(var s=r.length,a=0;as.x&&u.x>=h.x||h.xs.y&&u.y>=h.y||h.ys&&Math.min(p,g)u&&!We.w(p,g)){a.x=u,a.y=s,u=!0;break t}}else if(We.w(c,d)&&We.w(p,g)&&Math.min(u,f)p&&Math.min(s,m)c&&!We.w(s,m)){a.x=p,a.y=c,u=!0;break t}a.x=0,a.y=0,u=!1}u&&(o?i.push(a.x):i.push(a.y)),s=h}mt.free(a)}function bc(t){return t=t.curve,t===Dc||t===Oc}function wc(t,e){(e||bc(t))&&(e=t.diagram,null===e||e.Ui||e.Wh.contains(t)||0===t.xl.width&&0===t.xl.height||e.Wh.add(t,t.xl))}function xc(t,e,i){if(null!==e&&null!==e.qa&&bc(e)){var n=e.routeBounds;n.o()&&(t.routeBounds.Ic(n)||i.Ic(n))&&(t.usesSamePort(e)||e.bc())}}function kc(t){var e=t.Oe;if(null!==e){var i=t.ef;if(null!==i){for(var n=t.Pe,o=t.ff,r=t=null,s=e.Ya.j,a=s.length,l=0;lo&&(o=a.right),a.bottom>r&&(r=a.bottom)}}return isFinite(i)&&isFinite(n)?t.h(i,n,o-i,r-n):(e=e.location,t.h(e.x,e.y,0,0)),t},p.Object.defineProperties(ic.prototype,{padding:{get:function(){return this.eb},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.eb;e.A(t)||(this.eb=t=t.I(),this.g(\"padding\",e,t))}}}),ic.className=\"Placeholder\",d(nc,lu),nc.prototype.cloneProtected=function(t){lu.prototype.cloneProtected.call(this,t),t.Ta=-113&this.Ta,t.Pe=this.Pe,t.Fn=this.Fn,t.ff=this.ff,t.Bp=this.Bp,t.Lm=this.Lm,t.gn=this.gn,t.kn=this.kn,t.ln=this.ln,t.Ej=this.Ej,t.pp=this.pp,null!==this.P&&(t.P=this.P.copy())},i=nc.prototype,i.mf=function(t){lu.prototype.mf.call(this,t),this.Pe=t.Pe,this.ff=t.ff,t.Xg=null,t.Ra(),t.xf=this.xf;var e=t.fromPort;null!==e&&Iu(t.fromNode,e),e=t.toPort,null!==e&&Iu(t.toNode,e)},i.fb=function(t){t.classType===nc?2===(2&t.value)?this.routing=t:t===Lc||t===Oc||t===Dc?this.curve=t:t===jc||t===Ac||t===Bc?this.adjusting=t:t!==Cc&&t!==Tc&&k(\"Unknown Link enum value for a Link property: \"+t):lu.prototype.fb.call(this,t)},i.Hc=function(){null===this.P&&(this.P=new lf)},i.Pi=function(){var t=this.fromNode;if(null!==t){var e=t.findVisibleNode();if(null!==e&&(t=e),ma(t)||xu(t))return!1}return t=this.toNode,null===t||(e=t.findVisibleNode(),null!==e&&(t=e),!ma(t)&&!xu(t))},i.Kv=function(){return!1},i.Lv=function(){},i.Lb=function(){return!1},nc.prototype.computeAngle=function(t,e,i){return nc.computeAngle(e,i)},nc.computeAngle=function(t,e){switch(t){default:case Tc:t=0;break;case zc:t=e;break;case Fc:t=e+90;break;case Ic:t=e-90;break;case Ec:t=e+180;break;case Rc:t=We.gq(e),90t&&(t-=180);break;case Vc:t=We.gq(e+90),90t&&(t-=180);break;case _c:t=We.gq(e-90),90t&&(t-=180);break;case Hc:if(t=We.gq(e),45t||225t)return 0;90t&&(t-=180)}return We.gq(t)},i=nc.prototype,i.yh=function(){var t=this.containingGroup;null!==t&&this.fromNode!==t&&this.toNode!==t&&t.computesBoundsIncludingLinks&&lu.prototype.yh.call(this)},i.Xs=function(t){var e=this.fromNode;return t===e?this.toNode:e},i.ez=function(t){var e=this.fromPort;return t===e?this.toPort:e},i.Yp=function(t){if(lu.prototype.Yp.call(this,t),bc(this)&&this.$p(this.actualBounds),!t){t=this.Oe;var e=null;null!==t&&(e=this.fromPort,Eu(t,this,e));var i=this.ef;if(null!==i){var n=this.toPort;i===t&&n===e||Eu(i,this,n)}kc(this)}},i.Zp=function(t){if(lu.prototype.Zp.call(this,t),bc(this)&&this.$p(this.actualBounds),!t){t=this.Oe;var e=null;null!==t&&(e=this.fromPort,Ru(t,this,e));var i=this.ef;if(null!==i){var n=this.toPort;i===t&&n===e||Ru(i,this,n)}Mc(this)}},i.Yj=function(){if(this.Lc=!0,null!==this.$c){var t=this.diagram;if(null!==t)for(var e=this.$c.copy().iterator;e.next();)t.remove(e.value)}null!==this.data&&(t=this.diagram,null!==t&&t.partManager.removeDataForLink(this))},nc.prototype.updateRelationshipsFromData=function(){if(null!==this.data){var t=this.diagram;null!==t&&t.partManager.updateRelationshipsFromData(this)}},nc.prototype.move=function(t,e){var i=e?this.location:this.position,n=i.x;isNaN(n)&&(n=0);var o=i.y;for(isNaN(o)&&(o=0),n=t.x-n,o=t.y-o,!0===e?lu.prototype.move.call(this,t,!1):(t=mt.allocAt(i.x+n,i.y+o),lu.prototype.move.call(this,t,!1),mt.free(t)),sc(this,n,o),t=this.labelNodes;t.next();)e=t.value,i=e.position,e.moveTo(i.x+n,i.y+o)},nc.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var t=this.layer;return null===t||!!t.allowRelink&&(t=t.diagram,!(null!==t&&!t.allowRelink))},nc.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var t=this.layer;return null===t||!!t.allowRelink&&(t=t.diagram,!(null!==t&&!t.allowRelink))},nc.prototype.computeMidPoint=function(t){var e=this.pointsCount;if(0===e)return t.assign(zt),t;if(1===e)return t.assign(this.i(0)),t;if(2===e){var i=this.i(0),n=this.i(1);return t.h((i.x+n.x)/2,(i.y+n.y)/2),t}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Lc))return this.qa.cv(.5,t),t.add(this.i(0)),i=this.qa.figures.first(),t.offset(-i.startX,-i.startY),t;if(this.computeCurve()===Lc){if(3===e)return this.i(1);if(n=(e-1)/3|0,i=3*(n/2|0),1===n%2){n=this.i(i);var o=this.i(i+1),r=this.i(i+2);i=this.i(i+3),We.qy(n.x,n.y,o.x,o.y,r.x,r.y,i.x,i.y,t)}else t.assign(this.i(i));return t}var s=this.flattenedLengths;for(i=this.flattenedTotalLength,o=r=n=0;ni/2)break;n+=o,r++}return e=this.i(r),r=this.i(r+1),1>Math.abs(e.x-r.x)?e.y>r.y?t.h(e.x,e.y-(i/2-n)):t.h(e.x,e.y+(i/2-n)):1>Math.abs(e.y-r.y)?e.x>r.x?t.h(e.x-(i/2-n),e.y):t.h(e.x+(i/2-n),e.y):(i=(i/2-n)/o,t.h(e.x+i*(r.x-e.x),e.y+i*(r.y-e.y))),t},nc.prototype.computeMidAngle=function(){var t=this.pointsCount;if(2>t)return NaN;if(2===t)return this.i(0).Wa(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Lc)){t:{t=this.qa;var e=.5;if(0>e?e=0:1=e){e=i[s],i=e[2*t],n=e[2*t+1],o=e[2*t+2],t=e[2*t+3],t=1>Math.abs(o-i)&&1>Math.abs(t-n)?0:1>Math.abs(o-i)?0<=t-n?90:270:1>Math.abs(t-n)?0<=o-i?0:180:180*Math.atan2(t-n,o-i)/Math.PI;break t}r+=h}}t=NaN}}return t}if(this.computeCurve()===Lc&&4<=t){if(n=(t-1)/3|0,i=3*(n/2|0),1===n%2)return i=Math.floor(i),t=this.i(i),n=this.i(i+1),o=this.i(i+2),i=this.i(i+3),We.py(t.x,t.y,n.x,n.y,o.x,o.y,i.x,i.y);if(0o/2)break;e+=r,i++}if(n=this.i(i),o=this.i(i+1),1>Math.abs(n.x-o.x)&&1>Math.abs(n.y-o.y)){if(0Math.abs(n.x-o.x))return n.y>o.y?270:90;if(1>Math.abs(n.y-o.y))return n.x>o.x?180:0}return n.Wa(o)},i=nc.prototype,i.i=function(t){return this.xb.j[t]},i.jd=function(t,e){this.xb.gd(t,e)},i.M=function(t,e,i){this.xb.gd(t,new mt(e,i))},i.oz=function(t,e){this.xb.Ib(t,e)},i.m=function(t,e,i){this.xb.Ib(t,new mt(e,i))},i.xe=function(t){this.xb.add(t)},i.jf=function(t,e){this.xb.add(new mt(t,e))},i.zv=function(t){this.xb.mb(t)},i.Tj=function(){this.xb.clear()},i.Bh=function(){null===this.Xg&&(this.Xg=this.xb,this.xb=this.xb.copy())},i.kf=function(){if(null!==this.Xg){for(var t=this.Xg,e=this.xb,i=1/0,n=1/0,o=t.j,r=o.length,s=0;sh&&(c=-c),g=(0>l?-1:1)*c+d,m=u*(g-d)+p),d=s.x+2*a/3,p=s.y+2*l/3;var v=d,y=p;We.w(l,0)?y=0l?-1:1)*c+d,y=u*(v-d)+p),this.Tj(),this.xe(s),this.jf(g,m),this.jf(v,y),this.xe(f),this.jd(0,this.getLinkPoint(e,i,n,!0,!1,o,r)),this.jd(3,this.getLinkPoint(o,r,t,!1,!1,e,i))}else n=this.getLinkPoint(e,i,n,!0,!1,o,r),t=this.getLinkPoint(o,r,t,!1,!1,e,i),this.hasCurviness()?(f=t.x-n.x,o=t.y-n.y,r=this.computeCurviness(),e=n.x+f/2,i=n.y+o/2,s=e,a=i,We.w(o,0)?a=0r&&(s=-s),s=(0>o?-1:1)*s+e,a=f*(s-e)+i),this.xe(n),this.jf(s,a)):this.xe(n),this.xe(t)}else{c=this.isAvoiding,f&&(u&&c||h)&&this.Tj();var b=h?this.computeCurviness():0;c=this.getLinkPoint(e,i,n,!0,u,o,r),d=g=p=0,(u||!a||h)&&(m=this.computeEndSegmentLength(e,i,n,!0),d=this.getLinkDirection(e,i,c,n,!0,u,o,r),h&&(a||n.A(t)||!u&&1===n.x+t.x&&1===n.y+t.y)&&(d-=u?90:30,0>b&&(d-=180)),0>d?d+=360:360<=d&&(d-=360),h&&(m+=Math.abs(b)*(u?1:2)),0===d?p=m:90===d?g=m:180===d?p=-m:270===d?g=-m:(p=m*Math.cos(d*Math.PI/180),g=m*Math.sin(d*Math.PI/180)),n.jc()&&h&&(m=i.ma(de,mt.alloc()),v=mt.allocAt(m.x+1e3*p,m.y+1e3*g),this.getLinkPointFromPoint(e,i,m,v,!0,c),mt.free(m),mt.free(v))),m=this.getLinkPoint(o,r,t,!1,u,e,i);var w=y=v=0;if(u||!l||h){var x=this.computeEndSegmentLength(o,r,t,!1);w=this.getLinkDirection(o,r,m,t,!1,u,e,i),h&&(l||n.A(t)||!u&&1===n.x+t.x&&1===n.y+t.y)&&(w+=u?0:30,0>b&&(w+=180)),0>w?w+=360:360<=w&&(w-=360),h&&(x+=Math.abs(b)*(u?1:2)),0===w?v=x:90===w?y=x:180===w?v=-x:270===w?y=-x:(v=x*Math.cos(w*Math.PI/180),y=x*Math.sin(w*Math.PI/180)),t.jc()&&h&&(t=r.ma(de,mt.alloc()),n=mt.allocAt(t.x+1e3*v,t.y+1e3*y),this.getLinkPointFromPoint(o,r,t,n,!1,m),mt.free(t),mt.free(n))}t=c,(u||!a||h)&&(t=new mt(c.x+p,c.y+g)),n=m,(u||!l||h)&&(n=new mt(m.x+v,m.y+y)),!f&&!u&&a&&3=u.y&&t.y<=u.y+u.height?a.y=t.y:(i.pf(ye)||i.pf(xe))&&t.x>=u.x&&t.x<=u.x+u.width&&(a.x=t.x),mt.free(l),mt.free(h)}}return a}}return i=e.ma(.5===i.x&&.5===i.y?i:de,mt.alloc()),this.pointsCount>(o?6:2)?(s=n?this.i(1):this.i(this.pointsCount-2),o&&(s=lc(i,s.copy()))):(l=this.computeSpot(!n,s),r=mt.alloc(),s=s.ma(.5===l.x&&.5===l.y?l:de,r),o&&(s=lc(i,s)),mt.free(r)),this.getLinkPointFromPoint(t,e,i,s,n,a),mt.free(i),a},nc.prototype.getLinkDirection=function(t,e,i,n,o,r,s,a){t:if(n.gb())var l=n.x>n.y?n.x>1-n.y?0:n.x<1-n.y?270:315:n.x1-n.y?90:n.x<1-n.y?180:135:.5>n.x?225:.5(r?6:2)?(a=o?this.i(1):this.i(this.pointsCount-2),a=r?lc(l,a.copy()):i):(i=mt.alloc(),a=a.ma(de,i),mt.free(i)),i=Math.abs(a.x-l.x)>Math.abs(a.y-l.y)?a.x>=l.x?0:180:a.y>=l.y?90:270,mt.free(l),l=i}return n.jc()&&s.Vd(t)&&(l+=180,360<=l&&(l-=360)),uc(n)?l:(t=e.Ji(),0===t||(45<=t&&135>t?l+=90:135<=t&&225>t?l+=180:225<=t&&315>t&&(l+=270),360<=l&&(l-=360)),l)},nc.prototype.computeEndSegmentLength=function(t,e,i,n){return null!==e&&i.qf()&&(t=hc(this,e),null!==t)?t.Tu:(t=n?this.fromEndSegmentLength:this.toEndSegmentLength,null!==e&&isNaN(t)&&(t=n?e.fromEndSegmentLength:e.toEndSegmentLength),isNaN(t)&&(t=10),t)},nc.prototype.computeSpot=function(t,e){return void 0===e&&(e=null),t?(t=e||this.fromPort,null===t?t=de:(e=this.fromSpot,e.Kb()&&(e=t.fromSpot),t=e===Ae?le:e)):(t=e||this.toPort,null===t?t=de:(e=this.toSpot,e.Kb()&&(e=t.toSpot),t=e===Ae?le:e)),t},nc.prototype.computeOtherPoint=function(t,e){return t=e.ma(de),e=e.Po,e=null!==e?sf(e,this):null,null!==e&&(t=e.cq),t},nc.prototype.computeShortLength=function(t){if(t){if(t=this.fromShortLength,isNaN(t)){var e=this.fromPort;null!==e&&(t=e.fromShortLength)}return isNaN(t)?0:t}return t=this.toShortLength,isNaN(t)&&(e=this.toPort,null!==e&&(t=e.toShortLength)),isNaN(t)?0:t},nc.prototype.mg=function(t,e,i,n,o,r){if(!1===this.pickable)return!1;void 0===e&&(e=null),void 0===i&&(i=null);var s=r;if(void 0===r&&(s=ae.alloc(),s.reset()),s.multiply(this.transform),this.uh(t,s))return Rl(this,e,i,o),void 0===r&&ae.free(s),!0;if(this.Ic(t,s)){var a=!1;if(!this.isAtomic)for(var l=this.Y.j,h=l.length;h--;){var u=l[h];if(u.visible||u===this.locationObject){var c=u.actualBounds,f=this.naturalBounds;if(!(c.x>f.width||c.y>f.height||0>c.x+c.width||0>c.y+c.height)){if(c=ae.alloc(),c.set(s),u instanceof Nl)a=u.mg(t,e,i,n,o,c);else if(this.path===u){if(u instanceof sh)if(a=t,f=n,!1===u.pickable)a=!1;else if(c.multiply(u.transform),f)t:{var d=a,p=c;if(u.uh(d,p))a=!0;else{if(void 0===p&&(p=u.transform,d.lf(u.actualBounds))){a=!0;break t}a=d.left,f=d.right;var g=d.top;d=d.bottom;var m=mt.alloc(),v=mt.alloc(),y=mt.alloc(),b=ae.alloc();b.set(p),b.nv(u.transform),b.bt(),v.x=f,v.y=g,v.transform(b),m.x=a,m.y=g,m.transform(b),p=!1,ch(u,m,v,y)?p=!0:(m.x=f,m.y=d,m.transform(b),ch(u,m,v,y)?p=!0:(v.x=a,v.y=d,v.transform(b),ch(u,m,v,y)?p=!0:(m.x=a,m.y=g,m.transform(b),ch(u,m,v,y)&&(p=!0)))),ae.free(b),mt.free(m),mt.free(v),mt.free(y),a=p}}else a=u.uh(a,c)}else a=Qs(u,t,n,c);a&&(f=u,null!==e&&(f=e(u)),f&&(null===i||i(f))&&o.add(f)),ae.free(c)}}}return void 0===r&&ae.free(s),a||null!==this.background||null!==this.areaBackground}return void 0===r&&ae.free(s),!1},nc.prototype.computeCurve=function(){if(null===this.Gf){var t=this.fromPort,e=this.isOrthogonal;this.Gf=null!==t&&t===this.toPort&&!e}return this.Gf?Lc:this.curve},nc.prototype.computeCorner=function(){if(this.curve===Lc)return 0;var t=this.corner;return(isNaN(t)||0>t)&&(t=10),t},nc.prototype.findMidLabel=function(){for(var t=this.path,e=this.Y.j,i=e.length,n=0;nl?-Math.PI/2:Math.PI/2;else u=Math.atan(l/Math.abs(a)),0>a&&(u=Math.PI-u);s=e.x;var c=e.y;a=n.x-s;var f=n.y-c;for(l=Math.sqrt(a*a+f*f),We.ca(a,0)?f=0>f?-Math.PI/2:Math.PI/2:(f=Math.atan(f/Math.abs(a)),0>a&&(f=Math.PI-f)),h=l/h,u=f-u,this.jd(t,e),t+=1;tl?-Math.PI/2:Math.PI/2:(l=Math.atan(l/Math.abs(a)),0>a&&(l=Math.PI-l)),a=l+u,e*=h,this.M(t,s+e*Math.cos(a),c+e*Math.sin(a)));this.jd(i,n)}}return!0;case Bc:if(r=this.i(t),c=this.i(i),!r.Qa(e)||!c.Qa(n)){o=r.x,r=r.y,s=c.x,c=c.y,h=(s-o)*(s-o)+(c-r)*(c-r),a=e.x,u=e.y,l=n.x,f=n.y;var d=1;if(0!==l-a){var p=(f-u)/(l-a);d=Math.sqrt(1+1/(p*p))}else p=9e9;for(this.jd(t,e),t+=1;te?0:45<=e&&135>e?90:135<=e&&225>e?180:270,n=-45<=n&&45>n?0:45<=n&&135>n?90:135<=n&&225>n?180:270;var s=o.actualBounds.copy(),a=r.actualBounds.copy();if(s.o()&&a.o()){if(s.Uc(8,8),a.Uc(8,8),s.Ie(t),a.Ie(i),0===e)if(i.x>t.x||270===n&&i.yt.x||90===n&&i.y>t.y&&a.right>t.x){var l=new mt(i.x,t.y),h=new mt(i.x,(t.y+i.y)/2);180===n?(l.x=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1),h.x=l.x,h.y=i.y):270===n&&i.yt.y?(l.x=t.xa.bottom)?this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1):a.right,h.x=l.x,h.y=i.y):0===n&&t.xa.top&&t.ys.bottom)&&(180===n&&(a.ea(t)||s.ea(i))?l.y=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0):i.yt.y&&(180===n||270===n)&&(l.y=this.computeMidOrthoPosition(t.x,s.bottom,i.x,Math.min(i.y,a.top),!0)),h.x=i.x,h.y=l.y),l.y>s.top&&l.y=s.left&&i.x<=t.x||t.x<=a.right&&t.x>=i.x?90!==n&&270!==n||(l=new mt(Math.max((t.x+i.x)/2,t.x),t.y),h=new mt(l.x,i.y)):(l.y=270===n||(0===n||180===n)&&i.yt.y&&a.leftt.y?(l.x=t.x>a.right?this.computeMidOrthoPosition(t.x,t.y,a.right,i.y,!1):t.x>a.left&&(270===n&&t.ya.bottom)?this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1):a.left,h.x=l.x,h.y=i.y):180===n&&t.x>a.right&&t.y>a.top&&t.ys.bottom)&&(0===n&&(a.ea(t)||s.ea(i))?l.y=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0):i.yt.y&&(0===n||270===n)&&(l.y=this.computeMidOrthoPosition(t.x,s.bottom,i.x,Math.min(i.y,a.top),!0)),h.x=i.x,h.y=l.y),l.y>s.top&&l.y=t.x||t.x>=a.left&&t.x<=i.x?90!==n&&270!==n||(l=new mt(Math.min((t.x+i.x)/2,t.x),t.y),h=new mt(l.x,i.y)):(l.y=270===n||(0===n||180===n)&&i.yt.y||180===n&&i.xt.y||0===n&&i.x>t.x&&a.bottom>t.y?(l=new mt(t.x,i.y),h=new mt((t.x+i.x)/2,i.y),270===n?(l.y=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0),h.x=i.x,h.y=l.y):180===n&&i.xt.x?(l.y=t.ya.right)?this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0):a.bottom,h.x=i.x,h.y=l.y):90===n&&t.ya.left&&t.xs.right)&&(270===n&&(a.ea(t)||s.ea(i))?l.x=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1):i.xt.x&&(270===n||180===n)&&(l.x=this.computeMidOrthoPosition(s.right,t.y,Math.min(i.x,a.left),i.y,!1)),h.x=l.x,h.y=i.y),l.x>s.left&&l.x=s.top&&i.y<=t.y||t.y<=a.bottom&&t.y>=i.y?0!==n&&180!==n||(l=new mt(t.x,Math.max((t.y+i.y)/2,t.y)),h=new mt(i.x,l.y)):(l.x=180===n||(90===n||270===n)&&i.xt.x&&a.top=t.x?(l.y=t.y>a.bottom?this.computeMidOrthoPosition(t.x,t.y,i.x,a.bottom,!0):t.y>a.top&&(180===n&&t.xa.right)?this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0):a.top,h.x=i.x,h.y=l.y):270===n&&t.y>a.bottom&&t.x>a.left&&t.xs.right)&&(90===n&&(a.ea(t)||s.ea(i))?l.x=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1):i.xt.x&&(90===n||180===n)&&(l.x=this.computeMidOrthoPosition(s.right,t.y,Math.min(i.x,a.left),i.y,!1)),h.x=l.x,h.y=i.y),l.x>s.left&&l.x=t.y||t.y>=a.top&&t.y<=i.y?0!==n&&180!==n||(l=new mt(t.x,Math.min((t.y+i.y)/2,t.y)),h=new mt(i.x,l.y)):(l.x=180===n||(90===n||270===n)&&i.x=ef&&(Kc(p),a=p.xz,s.Uc(p.Ul*a,p.Tl*a),Zc(p,t,e,f,n,s),a=Xc(p,f.x,f.y)),!p.abort&&a>=ef&&p.Zz&&(Kc(p),Zc(p,t,e,f,n,p.bounds),a=Xc(p,f.x,f.y)),!p.abort&&athis.pointsCount?(0===e||180===e?(s.x=t.x,s.y=f.y):(s.x=f.x,s.y=t.y),this.M(2,s.x,s.y),this.m(3,s.x,s.y)):(f=this.i(3),0===e||180===e?We.w(s.x,f.x)?(s=0===e?Math.max(s.x,t.x):Math.min(s.x,t.x),this.M(2,s,t.y),this.M(3,s,f.y)):We.w(s.y,f.y)?(Math.abs(t.y-s.y)<=p.Tl/2&&(this.M(2,s.x,t.y),this.M(3,f.x,t.y)),this.m(2,s.x,t.y)):this.M(2,t.x,s.y):90!==e&&270!==e||(We.w(s.y,f.y)?(s=90===e?Math.max(s.y,t.y):Math.min(s.y,t.y),this.M(2,t.x,s),this.M(3,f.x,s)):We.w(s.x,f.x)?(Math.abs(t.x-s.x)<=p.Ul/2&&(this.M(2,t.x,s.y),this.M(3,t.x,f.y)),this.m(2,t.x,s.y)):this.M(2,s.x,t.y))),null!==i&&(t=this.i(1),f=this.i(2),t.x!==f.x&&t.y!==f.y?0===e||180===e?this.m(2,t.x,f.y):this.m(2,f.x,t.y):0===e||180===e?this.m(2,o.x,i.y):this.m(2,i.x,o.y)),null!==g&&(0===n||180===n?this.jf(r.x,g.y):this.jf(g.x,r.y)),e=!0):e=!1}}}else e=!1;e||(this.xe(l),this.xe(h))}},nc.prototype.computeMidOrthoPosition=function(t,e,i,n,o){var r=0;return this.hasCurviness()&&(r=this.computeCurviness()),o?(e+n)/2+r:(t+i)/2+r},nc.prototype.Iy=function(t){var e=t.x;t=t.y;for(var i=this.i(0),n=this.i(1),o=xt(e,t,i.x,i.y,n.x,n.y),r=0,s=1;se)return t.type=ai,this.Qn=!1,t;var i=!1,n=this.diagram;null!==n&&bc(this)&&n.Wh.contains(this)&&(0!==this.xl.width||0!==this.xl.height)&&(i=!0);var o=this.i(0).copy(),r=o.copy();n=this.xb.j;var s=this.computeCurve();if(s===Lc&&3<=e&&!We.ca(this.smoothness,0))if(3===e){var a=this.i(1);n=Math.min(o.x,a.x);var l=Math.min(o.y,a.y);a=this.i(2),n=Math.min(n,a.x),l=Math.min(l,a.y)}else{if(this.isOrthogonal)for(l=0;l=e&&(n=e-1),l=this.i(n),r.x=Math.min(l.x,r.x),r.y=Math.min(l.y,r.y);n=r.x,l=r.y}else{for(l=0;lm?p>d?(s.x=v-b,s.y=d-b,e.x=v+g,e.y=d+g):(s.x=v-b,s.y=d+b,e.x=v+g,e.y=d-g):p>d?(s.x=v+b,s.y=d-b,e.x=v-g,e.y=d+g):(s.x=v+b,s.y=d+b,e.x=v-g,e.y=d-g)),We.ca(m,v)&&We.ca(d,p)&&(d>f?(y>v?(s.x=v-b,s.y=d-b,e.x=v+g):(s.x=v+b,s.y=d-b,e.x=v-g),e.y=d+g):(y>v?(s.x=v-b,s.y=d+b,e.x=v+g):(s.x=v+b,s.y=d+b,e.x=v-g),e.y=d-g)),(We.ca(m,v)&&We.ca(v,y)||We.ca(f,d)&&We.ca(d,p))&&(m=.5*(m+y),f=.5*(f+p),s.x=m,s.y=f,e.x=m,e.y=f),(1===c||2===c&&We.ca(i.x,this.i(0).x)&&We.ca(i.y,this.i(0).y))&&(o.x=.5*(i.x+h.x),o.y=.5*(i.y+h.y)),iu(a,o.x-n,o.y-l,s.x-n,s.y-l,h.x-n,h.y-l),r.set(s),o.set(e),i=h}}r=i.x,i=i.y,o=this.i(this.pointsCount-1),0!==this.computeShortLength(!1)&&(o=pc(this,o.copy(),!1,Dt)),r=.5*(r+o.x),i=.5*(i+o.y),iu(a,e.x-n,e.y-l,r-n,i-l,o.x-n,o.y-l)}else for(i=3;i=e&&(i=e-1),o=this.i(i-1),s=this.i(i),i===e-1&&0!==this.computeShortLength(!1)&&(s=pc(this,s.copy(),!1,Dt)),iu(a,r.x-n,r.y-l,o.x-n,o.y-l,s.x-n,s.y-l);else{for(r=mt.alloc(),r.assign(this.i(0)),s=1,o=0;s=e-1){if(r.A(u)){if(0===o)for(s=1;sr.x?u.x-f:u.x+f,p=c.y>u.y?u.y+g:u.y-g,mc(this,a,s,h,r,new mt(v,d),m),nu(a,u.x+s,u.y+h,y+s,p+h),r.h(y,p))):We.w(r.x,u.x)&&We.w(u.y,c.y)?(f=this.computeCorner(),f=Math.min(f,Math.abs(u.y-r.y)/2),f=g=Math.min(f,Math.abs(c.x-u.x)/2),We.w(g,0)?(mc(this,a,s,h,r,u,m),r.assign(u)):(v=u.x,d=u.y,y=v,p=d,d=u.y>r.y?u.y-f:u.y+f,y=c.x>u.x?u.x+g:u.x-g,mc(this,a,s,h,r,new mt(v,d),m),nu(a,u.x+s,u.y+h,y+s,p+h),r.h(y,p))):(mc(this,a,s,h,r,u,m),r.assign(u)),s=o}mt.free(r)}su=a}else a=this.i(1).copy(),a.x-=n,a.y-=l,0!==this.computeShortLength(!0)&&(o=pc(this,o,!0,r)),0!==this.computeShortLength(!1)&&(a=pc(this,a,!1,r)),t.type=ai,t.startX=o.x,t.startY=o.y,t.endX=a.x,t.endY=a.y;return this.Qn=!1,t},nc.prototype.$p=function(t){var e=this.layer;if(null!==e&&e.visible&&!e.isTemporary){var i=e.diagram;if(null!==i&&!i.animationManager.isAnimating){var n=!1;for(i=i.layers;i.next();){var o=i.value;if(o.visible)if(o===e){n=!0;var r=!1;o=o.Fa.j;for(var s=o.length,a=0;at&&C(t,\">= 0\",nc,\"fromEndSegmentLength\"),this.P.Jg=t,this.g(\"fromEndSegmentLength\",e,t),this.Ra())}},fromShortLength:{get:function(){return null!==this.P?this.P.Kg:NaN},set:function(t){this.Hc();var e=this.P.Kg;e!==t&&(this.P.Kg=t,this.g(\"fromShortLength\",e,t),this.Ra(),this.bc())}},toSpot:{get:function(){return null!==this.P?this.P.nh:Ae},set:function(t){this.Hc();var e=this.P.nh;e.A(t)||(t=t.I(),this.P.nh=t,this.g(\"toSpot\",e,t),this.Ra())}},toEndSegmentLength:{get:function(){return null!==this.P?this.P.lh:NaN},set:function(t){this.Hc();var e=this.P.lh;e!==t&&(0>t&&C(t,\">= 0\",nc,\"toEndSegmentLength\"),this.P.lh=t,this.g(\"toEndSegmentLength\",e,t),this.Ra())}},toShortLength:{get:function(){return null!==this.P?this.P.mh:NaN},set:function(t){this.Hc();var e=this.P.mh;e!==t&&(this.P.mh=t,this.g(\"toShortLength\",e,t),this.Ra(),this.bc())}},isLabeledLink:{get:function(){return null!==this.$c&&0=n&&(r=n-1);var a=this.i(r-1),l=this.i(r);We.Sl(o.x,o.y,s.x,s.y,a.x,a.y,l.x,l.y,.5,t),e=Math.min(l.x,e),i=Math.min(l.y,i),o=l}else for(o=this.i(0),r=this.i(1),e=Math.min(o.x,r.x),i=Math.min(o.y,r.y),t.h(o.x,o.y,0,0),t.Ie(r),o=2;on&&(n=-n)):We.ca(n.y,o.y)?(n=o.x-n.x,0>n&&(n=-n)):n=Math.sqrt(n.Be(o)),t.push(n)}}return this.kr}},flattenedTotalLength:{get:function(){var t=this.au;if(isNaN(t)){for(var e=this.flattenedLengths,i=e.length,n=t=0;n=this.pointsCount?0:this.isOrthogonal||!uc(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var t=this.pointsCount;return 0===t?0:2>=t?t-1:this.isOrthogonal||!uc(this.computeSpot(!1))?t-2:t-1}},adjusting:{get:function(){return this.Lm},set:function(t){var e=this.Lm;e!==t&&(this.Lm=t,this.g(\"adjusting\",e,t))}},corner:{get:function(){return this.gn},set:function(t){var e=this.gn;e!==t&&(this.gn=t,this.bc(),this.g(\"corner\",e,t))}},curve:{get:function(){return this.kn},set:function(t){var e=this.kn;e!==t&&(this.kn=t,this.Ra(),this.bc(),wc(this,e===Oc||e===Dc||t===Oc||t===Dc),this.g(\"curve\",e,t))}},curviness:{get:function(){return this.ln},set:function(t){var e=this.ln;e!==t&&(this.ln=t,this.Ra(),this.bc(),this.g(\"curviness\",e,t))}},routing:{get:function(){return this.Ej},set:function(t){var e=this.Ej;e!==t&&(this.Ej=t,this.Gf=null,this.Ra(),wc(this,2===(2&e.value)||2===(2&t.value)),this.g(\"routing\",e,t))}},smoothness:{get:function(){return this.pp},set:function(t){var e=this.pp;e!==t&&(this.pp=t,this.bc(),this.g(\"smoothness\",e,t))}},key:{get:function(){var t=this.diagram;if(null!==t&&t.model.em())return t.model.ic(this.data)}}}),nc.prototype.invalidateOtherJumpOvers=nc.prototype.$p,nc.prototype.findClosestSegment=nc.prototype.Iy,nc.prototype.updateRoute=nc.prototype.Yi,nc.prototype.invalidateRoute=nc.prototype.Ra,nc.prototype.rollbackRoute=nc.prototype.Cx,nc.prototype.commitRoute=nc.prototype.kf,nc.prototype.startRoute=nc.prototype.Bh,nc.prototype.clearPoints=nc.prototype.Tj,nc.prototype.removePoint=nc.prototype.zv,nc.prototype.addPointAt=nc.prototype.jf,nc.prototype.addPoint=nc.prototype.xe,nc.prototype.insertPointAt=nc.prototype.m,nc.prototype.insertPoint=nc.prototype.oz,nc.prototype.setPointAt=nc.prototype.M,nc.prototype.setPoint=nc.prototype.jd,nc.prototype.getPoint=nc.prototype.i,nc.prototype.getOtherPort=nc.prototype.ez,nc.prototype.getOtherNode=nc.prototype.Xs;var Cc=new K(nc,\"Normal\",1),Sc=new K(nc,\"Orthogonal\",2),Nc=new K(nc,\"AvoidsNodes\",6),Pc=new K(nc,\"AvoidsNodesStraight\",7),Tc=new K(nc,\"None\",0),Lc=new K(nc,\"Bezier\",9),Oc=new K(nc,\"JumpGap\",10),Dc=new K(nc,\"JumpOver\",11),jc=new K(nc,\"End\",17),Ac=new K(nc,\"Scale\",18),Bc=new K(nc,\"Stretch\",19),zc=new K(nc,\"OrientAlong\",21),Fc=new K(nc,\"OrientPlus90\",22),Ic=new K(nc,\"OrientMinus90\",23),Ec=new K(nc,\"OrientOpposite\",24),Rc=new K(nc,\"OrientUpright\",25),Vc=new K(nc,\"OrientPlus90Upright\",26),_c=new K(nc,\"OrientMinus90Upright\",27),Hc=new K(nc,\"OrientUpright45\",28);function Yc(t,e,i,n){st(this),this.ie=this.xr=!1,this.jt=t,this.xx=e,this.ov=i,this.yx=n,this.links=[]}function qc(){st(this),this.Mx=this.group=null,this.at=!0,this.abort=!1,this.Kd=this.Jd=1,this.mo=this.lo=-1,this.lc=this.kc=8,this.Bb=[[]],this.Mj=this.Lj=0,this.Zz=!1,this.Tz=22,this.xz=111}function Gc(t,e,i){return t.Jd<=e&&e<=t.lo&&t.Kd<=i&&i<=t.mo}function Xc(t,e,i){return Gc(t,e,i)?(e-=t.Jd,e/=t.kc,i-=t.Kd,i/=t.lc,t.Bb[0|e][0|i]):nf}function Uc(t,e,i){Gc(t,e,i)&&(e-=t.Jd,e/=t.kc,i-=t.Kd,i/=t.lc,t.Bb[0|e][0|i]=Qc)}function Kc(t){if(null!==t.Bb)for(var e=0;e<=t.Lj;e++)for(var i=0;i<=t.Mj;i++)t.Bb[e][i]>=tf&&(t.Bb[e][i]=nf)}function $c(t,e,i,n,o,r,s,a,l){if(!(es||il)){var h=0|e,u=0|i,c=t.Bb[h][u];if(c>=tf&&c=t.Bb[h][u]);)t.Bb[h][u]=c,c+=1,o?u+=n:h+=n;if(h=o?u:h,o)if(0h;i+=n)$c(t,e,i,1,!o,r,s,a,l),$c(t,e,i,-1,!o,r,s,a,l);else if(0h;e+=n)$c(t,e,i,1,!o,r,s,a,l),$c(t,e,i,-1,!o,r,s,a,l)}}function Wc(t,e,i,n,o,r,s,a,l){e|=0,i|=0;var h=Qc,u=tf;for(t.Bb[e][i]=u;h===Qc&&e>r&&ea&&ir&&ea&&i=Math.abs(s-e)&&1>=Math.abs(a-n))t.abort=!0;else{var l=r.x,h=r.y,u=r.x+r.width,c=r.y+r.height;l-=t.Jd,l/=t.kc,h-=t.Kd,h/=t.lc,u-=t.Jd,u/=t.kc,c-=t.Kd,c/=t.lc,r=Math.max(0,Math.min(t.Lj,0|l)),u=Math.min(t.Lj,Math.max(0,0|u)),h=Math.max(0,Math.min(t.Mj,0|h)),c=Math.min(t.Mj,Math.max(0,0|c)),s|=0,a|=0,e|=0,n|=0,l=0===i||90===i?1:-1,i=90===i||270===i,t.Bb[s][a]===Qc?(Wc(t,s,a,l,i,r,u,h,c),Wc(t,s,a,1,!i,r,u,h,c),Wc(t,s,a,-1,!i,r,u,h,c)):Wc(t,s,a,l,i,s,a,s,a),t.Bb[e][n]===Qc?(Jc(t,e,n,0===o||90===o?1:-1,90===o||270===o,r,u,h,c),Jc(t,e,n,1,!(90===o||270===o),r,u,h,c),Jc(t,e,n,-1,!(90===o||270===o),r,u,h,c)):Jc(t,e,n,l,i,e,n,e,n),t.abort||($c(t,s,a,1,!1,r,u,h,c),$c(t,s,a,-1,!1,r,u,h,c),$c(t,s,a,1,!0,r,u,h,c),$c(t,s,a,-1,!0,r,u,h,c))}}}nc.className=\"Link\",nc.Normal=Cc,nc.Orthogonal=Sc,nc.AvoidsNodes=Nc,nc.AvoidsNodesStraight=Pc,nc.None=Tc,nc.Bezier=Lc,nc.JumpGap=Oc,nc.JumpOver=Dc,nc.End=jc,nc.Scale=Ac,nc.Stretch=Bc,nc.OrientAlong=zc,nc.OrientPlus90=Fc,nc.OrientMinus90=Ic,nc.OrientOpposite=Ec,nc.OrientUpright=Rc,nc.OrientPlus90Upright=Vc,nc.OrientMinus90Upright=_c,nc.OrientUpright45=Hc,Yc.prototype.cm=function(){if(!this.xr){var t=this.links;0=t.width||0>=t.height)){var e=t.y,i=t.x+t.width,n=t.y+t.height;if(this.Jd=Math.floor((t.x-this.kc)/this.kc)*this.kc,this.Kd=Math.floor((e-this.lc)/this.lc)*this.lc,this.lo=Math.ceil((i+2*this.kc)/this.kc)*this.kc,this.mo=Math.ceil((n+2*this.lc)/this.lc)*this.lc,t=1+(0|Math.ceil((this.lo-this.Jd)/this.kc)),e=1+(0|Math.ceil((this.mo-this.Kd)/this.lc)),null===this.Bb||this.Ljthis.lo||t+ithis.mo||e+nt&&(i+=t,t=0),0>e&&(o+=e,e=0),0>i||0>o)return!0;for(n=0|Math.min(t+i-1,this.Lj),i=0|Math.min(e+o-1,this.Mj);t<=n;t++)for(o=e;o<=i;o++)if(this.Bb[t][o]===Qc)return!1;return!0},p.Object.defineProperties(qc.prototype,{bounds:{get:function(){return new _t(this.Jd,this.Kd,this.lo-this.Jd,this.mo-this.Kd)}},Ul:{get:function(){return this.kc},set:function(t){0=i?180:0}switch(t=180*Math.atan2(t.height,t.width)/Math.PI,e){case 3:return i>t&&i<=180+t?180:270;case 5:return i>180-t&&i<=360-t?270:0;case 12:return i>t&&i<=180+t?90:0;case 10:return i>180-t&&i<=360-t?180:90;case 7:return 90180+t&&i<=360-t?270:0;case 13:return 180t&&180>=i?90:0;case 14:return i>t&&i<=180-t?90:i>180-t&&270>=i?180:0;case 11:return i>180-t&&i<=180+t?180:i>180+t?270:90}return n&&15!==e&&(i-=15,0>i&&(i+=360)),i>t&&i<180-t?90:i>=180-t&&i<=180+t?180:i>180+t&&i<360-t?270:0}function sf(t,e){var i=t.Wd;if(0===i.length){t:if(!t.fq){i=t.fq,t.fq=!0;var n=null,o=t.node;if(o=o instanceof Ju?o:null,null===o||o.isSubGraphExpanded)var r=t.node.Wu(t.port.portId);else{if(!o.actualBounds.o()){t.fq=i;break t}n=o,r=n.Vu()}var s=t.Wd.length=0,a=t.port.ma(he,mt.alloc()),l=t.port.ma(ve,mt.alloc());for(o=_t.allocAt(a.x,a.y,0,0),o.Ie(l),mt.free(a),mt.free(l),a=mt.allocAt(o.x+o.width/2,o.y+o.height/2),l=t.port.Ji(),r=r.iterator;r.next();){var h=r.value;if(h.isVisible()&&h.fromPort!==h.toPort){var u=h.fromPort===t.port||null!==h.fromNode&&h.fromNode.Vd(n),c=h.computeSpot(u,t.port);if(c.qf()&&(u=u?h.toPort:h.fromPort,null!==u)){var f=u.part;if(null!==f){var d=f.findVisibleNode();null!==d&&d!==f&&(f=d,u=f.port),u=h.computeOtherPoint(f,u),f=a.Wa(u),f-=l,0>f&&(f+=360),c=rf(o,c,f,h.isOrthogonal),0===c?(c=4,180Math.abs(g)?(y=Math.abs(g)/f,f=Math.abs(g)):y=1;break;case 2:d>Math.abs(b)?(y=Math.abs(b)/d,d=Math.abs(b)):y=1;break;case 1:c>Math.abs(g)?(y=Math.abs(g)/c,c=Math.abs(g)):y=1;break;default:case 4:u>Math.abs(b)?(y=Math.abs(b)/u,u=Math.abs(b)):y=1}v=0}var k=w.cq;if(n===Wu){switch(w=w.link.computeThickness(),w*=y,k.set(x),p){case 8:k.x=x.x+g/2+f/2-v-w/2;break;case 2:k.y=x.y+b/2+d/2-v-w/2;break;case 1:k.x=x.x+g/2-c/2+v+w/2;break;default:case 4:k.y=x.y+b/2-u/2+v+w/2}v+=w}else{var M=.5;n===$u&&(M=(w.Xp+1)/(w.Wl+1)),k.x=x.x+g*M,k.y=x.y+b*M}}}for(mt.free(a),mt.free(l),mt.free(r),mt.free(h),x=t.Wd,s=0;se?1:0):1:null!==e?-1:0}function bf(t){st(this),this.Wb=t,this.fg=this.If=this.ml=this.jb=null}function wf(){hf.call(this),this.isViewportSized=!0,this.Gp=this.Hp=NaN,this.Bg=new It(NaN,NaN).freeze(),this.Ze=new It(10,10).freeze(),this.wb=Mf,this.Ab=Cf,this.Qc=Tf,this.Mc=xf}function xf(t,e){return t=t.text,e=e.text,te?1:0}qc.className=\"PositionArray\",of.prototype.toString=function(){for(var t=this.Wd,e=this.node.toString()+\" \"+t.length.toString()+\":\",i=0;ie.yc?1:t.anglee.angle?1:0},of.prototype.computeEndSegmentLength=function(t){var e=t.link,i=e.computeEndSegmentLength(this.node,this.port,le,e.fromPort===this.port),n=t.Xp;if(0>n)return i;var o=t.Wl;if(1>=o||!e.isOrthogonal)return i;e=t.sv;var r=t.cq;return 2!==t.yc&&8!==t.yc||(n=o-1-n),((t=2===t.yc||4===t.yc)?e.y=i-1?(s=0,o=n,r+=a+20,a=0):s++}null!==t&&t.Za(\"Layout\")}this.isValidLayout=!0},hf.prototype.mk=function(t){return!(t.location.o()&&!(t instanceof Ju&&t.mk))},hf.prototype.Li=function(t,e){var i=this.boundsComputation;return null!==i?(e||(e=new _t),i(t,this,e)):e?(e.set(t.actualBounds),e):t.actualBounds},hf.prototype.Xw=function(t){var e=new rt;return t instanceof Do?(uf(this,e,t.nodes,!0,null,!0,!0,!0),uf(this,e,t.links,!0,null,!0,!0,!0),uf(this,e,t.parts,!0,null,!0,!0,!0)):uf(this,e,t instanceof Ju?t.memberParts:t.iterator,!1,null,!0,!0,!0),e},hf.prototype.initialOrigin=function(t){var e=this.group;if(null!==e){var i=e.position.copy();return(isNaN(i.x)||isNaN(i.y))&&i.set(t),e=e.placeholder,null!==e&&(i=e.ma(he),(isNaN(i.x)||isNaN(i.y))&&i.set(t),t=e.padding,i.x+=t.left,i.y+=t.top),i}return t},p.Object.defineProperties(hf.prototype,{diagram:{get:function(){return this.C},set:function(t){this.C=t}},group:{get:function(){return this.K},set:function(t){this.K!==t&&(this.K=t,null!==t&&(this.C=t.diagram))}},isOngoing:{get:function(){return this.Sn},set:function(t){this.Sn!==t&&(this.Sn=t)}},isInitial:{get:function(){return this.Pg},set:function(t){this.Pg=t,t||(this.Xn=!0)}},isViewportSized:{get:function(){return this.Yn},set:function(t){this.Yn!==t&&(this.Yn=t)&&this.B()}},isRouting:{get:function(){return this.Vn},set:function(t){this.Vn!==t&&(this.Vn=t)}},isRealtime:{get:function(){return this.Un},set:function(t){this.Un!==t&&(this.Un=t)}},isValidLayout:{get:function(){return this.Xn},set:function(t){this.Xn!==t&&(this.Xn=t,t||(t=this.diagram,null!==t&&(t.zg=!0)))}},network:{get:function(){return this.l},set:function(t){this.l!==t&&(this.l=t,null!==t&&(t.layout=this))}},boundsComputation:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t,this.B())}},arrangementOrigin:{get:function(){return this.Qm},set:function(t){this.Qm.A(t)||(this.Qm.assign(t),this.B())}}}),hf.prototype.collectParts=hf.prototype.Xw,hf.prototype.getLayoutBounds=hf.prototype.Li,hf.prototype.invalidateLayout=hf.prototype.B,hf.className=\"Layout\",ff.prototype.clear=function(){if(this.gf)for(var t=this.gf.iterator;t.next();)t.value.clear();if(this.de)for(t=this.de.iterator;t.next();)t.value.clear();this.gf=new rt,this.de=new rt,this.kt=new gt,this.ft=new gt},ff.prototype.toString=function(t){void 0===t&&(t=0);var e=\"LayoutNetwork\"+(null!==this.layout?\"(\"+this.layout.toString()+\")\":\"\");if(0>=t)return e;if(e+=\" vertexes: \"+this.gf.count+\" edges: \"+this.de.count,1=r&&0>=s&&(r=1),e=this.spacing.width,isFinite(e)||(e=0),i=this.spacing.height,isFinite(i)||(i=0),null!==t&&t.Aa(\"Layout\"),n=[],this.alignment){case kf:var a=e,l=i,h=_t.alloc(),u=Math.max(this.cellSize.width,1);if(!isFinite(u))for(var c=u=0;cr-1||0s)&&(n.push(new _t(0,g,s+a,v)),m=0,p=d,g+=v,v=0),v=Math.max(v,k),f){case Sf:w=-w.width;break;default:w=0}switch(b.moveTo(p+w,g),f){case Sf:p-=x;break;default:p+=x}m++}n.push(new _t(0,g,s+a,v)),_t.free(h);break;case Mf:for(l=s,u=r,c=e,f=i,s=_t.alloc(),d=Math.max(this.cellSize.width,1),r=g=h=0,a=mt.alloc(),p=0;p=h&&(l-=h),h=b=0,x=Math.max(this.cellSize.height,1),w=r=0,k=!0,m=mt.alloc(),M=0;Mu-1||0l){for(n.push(new _t(0,k?y-r:y,l+c,w+r+f)),C=0;Ch&&(r.width+=r.x-h,r.x=h);_t.free(s)}for(a=r=s=o=0;ac)){var g=c+Xl(p);p.xc(g,!0),Kl(p,g,c)}}e.isModified=!0}}finally{e.da=!0}}}}},Of.prototype.updateAllTargetBindings=function(t){void 0===t&&(t=\"\");for(var e=this.parts.iterator;e.next();)e.value.Ea(t);for(e=this.nodes.iterator;e.next();)e.value.Ea(t);for(e=this.links.iterator;e.next();)e.value.Ea(t)},Of.prototype.tq=function(){for(var t=this.C.model,e=new rt,i=t.nodeDataArray,n=0;n=n)return\"[]\";var o=new W;o.add(\"[ \"),i&&1n)return;D(t.Fc,n)}nd(t,\"nodeDataArray\",Pi,\"nodeDataArray\",t,e,null,n,null),t.sq(e)}function ad(t,e,i){if(void 0!==e){var n=t.Ef.J(e);null===n&&(n=new rt,t.Ef.add(e,n)),n.add(i)}}function ld(t,e,i){if(void 0!==e){var n=t.Ef.J(e);n instanceof rt&&(void 0===i||null===i?t.Ef.remove(e):(n.remove(i),0===n.count&&t.Ef.remove(e)))}}function hd(t,e){return void 0===e?null:(t=t.Ef.J(e),t instanceof rt?t:null)}function ud(t,e,i){if(t.copiesArrays&&Array.isArray(e)){var n=[];for(i=0;ir?e+\"\\\\u000\"+t.charCodeAt(n).toString(16):32>r?e+\"\\\\u00\"+t.charCodeAt(n).toString(16):8232===r?e+\"\\\\u2028\":8233===r?e+\"\\\\u2029\":e+o}}return'\"'+e+'\"'},i.zm=function(t){return void 0===t?\"undefined\":null===t?\"null\":!0===t?\"true\":!1===t?\"false\":\"string\"===typeof t?this.quote(t):\"number\"===typeof t?1/0===t?\"9e9999\":-1/0===t?\"-9e9999\":isNaN(t)?'{\"class\":\"NaN\"}':t.toString():t instanceof Date?'{\"class\":\"Date\", \"value\":\"'+t.toJSON()+'\"}':t instanceof Number?this.zm(t.valueOf()):T(t)?Zf(this,t):P(t)?ed(this,t):\"function\"===typeof t?\"null\":t.toString()},i.rh=function(t){this.fu.add(t)},i.pk=function(t){this.fu.remove(t)},i.Ks=function(t){this.skipsUndoManager||this.undoManager.fv(t);for(var e=this.fu,i=e.length,n=0;ne&&(e=t.length),O(t,e,i),nd(this,\"\",Ni,\"\",t,null,i,null,e)},i.xv=function(t,e){void 0===e&&(e=-1),t===this.Fc&&k(\"Model.removeArrayItem should not be called on the Model.nodeDataArray\"),-1===e&&(e=t.length-1);var i=t[e];D(t,e),nd(this,\"\",Pi,\"\",t,i,null,e,null)},i.Vs=function(t){if(null===t)return\"\";var e=this.wj;return\"\"===e?\"\":(e=dd(t,e),void 0===e?\"\":\"string\"===typeof e?e:(k(\"getCategoryForNodeData found a non-string category for \"+t+\": \"+e),\"\"))},i.pq=function(t,e){if(null!==t){var i=this.wj;if(\"\"!==i)if(this.Qb(t)){var n=dd(t,i);void 0===n&&(n=\"\"),n!==e&&(pd(t,i,e),nd(this,\"nodeCategory\",Si,i,t,n,e))}else pd(t,i,e)}},i.fm=function(){return!1},i.ck=function(){return!1},i.em=function(){return!1},i.dt=function(){return!1},i.dk=function(){return!1},p.Object.defineProperties(Uf.prototype,{name:{get:function(){return this.Ua},set:function(t){var e=this.Ua;e!==t&&(this.Ua=t,this.g(\"name\",e,t))}},dataFormat:{get:function(){return this.mn},set:function(t){var e=this.mn;e!==t&&(this.mn=t,this.g(\"dataFormat\",e,t))}},isReadOnly:{get:function(){return this.Lf},set:function(t){var e=this.Lf;e!==t&&(this.Lf=t,this.g(\"isReadOnly\",e,t))}},modelData:{get:function(){return this.l},set:function(t){var e=this.l;e!==t&&(this.l=t,this.g(\"modelData\",e,t),this.Ea(t))}},undoManager:{get:function(){return this.u},set:function(t){var e=this.u;e!==t&&(null!==e&&e.Bx(this),this.u=t,null!==t&&t.Sw(this))}},skipsUndoManager:{get:function(){return this.eh},set:function(t){this.eh=t}},nodeKeyProperty:{get:function(){return this.li},set:function(t){var e=this.li;e!==t&&(\"\"===t&&k(\"Model.nodeKeyProperty may not be the empty string\"),0n)return;t.Oc.splice(n,1)}if(nd(t,\"linkDataArray\",Pi,\"linkDataArray\",t,e,null,n,null),i=kd(t,e,!0),ld(t,i,e),i=kd(t,e,!1),ld(t,i,e),n=t.pg(e),Array.isArray(n))for(var o=n.length,r=0;rn.indexOf(t.newValue)&&n.splice(i,0,t.newValue)))}else if(t.change===Pi){if(i=t.oldParam,\"linkDataArray\"===t.modelChange)return t=t.oldValue,void(P(t)&&\"number\"===typeof i&&(n=this.ic(t),e?(this.Mf.add(t),this.Oc[i]!==t&&this.Oc.splice(i,0,t),void 0!==n&&this.qb.add(n,t)):(this.Mf.remove(t),this.Oc[i]===t&&this.Oc.splice(i,1),void 0!==n&&this.qb.remove(n))));if(\"linkLabelKeys\"===t.modelChange)return n=this.pg(t.object),void(Array.isArray(n)&&\"number\"===typeof i&&(e?0>n.indexOf(t.newValue)&&n.splice(i,0,t.newValue):(i=n.indexOf(t.newValue),0<=i&&n.splice(i,1))))}Uf.prototype.Rj.call(this,t,e)},i.gm=function(t){if(void 0!==t){var e=this.$i;if(null!==e){var i=this.Rb(t);null===i&&(i=this.copyNodeData(e),pd(i,this.nodeKeyProperty,t),this.hf(i))}return t}},i.bz=function(t){return kd(this,t,!0)},i.Gx=function(t,e){Md(this,t,e,!0)},i.gz=function(t){return kd(this,t,!1)},i.Kx=function(t,e){Md(this,t,e,!1)},i.cz=function(t){return Cd(this,t,!0)},i.Hx=function(t,e){Sd(this,t,e,!0)},i.hz=function(t){return Cd(this,t,!1)},i.Lx=function(t,e){Sd(this,t,e,!1)},i.pg=function(t){if(null===t)return Ld;var e=this.Hd;return\"\"===e?Ld:(t=dd(t,e),void 0===t?Ld:t)},i.Hv=function(t,e){if(null!==t){var i=this.Hd;if(\"\"!==i)if(this.Ae(t)){var n=dd(t,i);if(void 0===n&&(n=Ld),n!==e){if(Array.isArray(n))for(var o=n.length,r=0;ro||(n.splice(o,1),this.Ae(t)&&(ld(this,e,t),nd(this,\"linkLabelKeys\",Pi,i,t,e,null,o,null)))}else void 0!==n&&k(i+\" property is not an Array; cannot removeLabelKeyforLinkData: \"+t)}}},i.ic=function(t){if(null!==t){var e=this.hi;if(\"\"!==e&&(e=dd(t,e),void 0!==e)){if(od(e))return e;k(\"Key value for link data \"+t+\" is not a number or a string: \"+e)}}},i.vt=function(t,e){if(null!==t){var i=this.hi;if(\"\"!==i)if(this.Ae(t)){var n=dd(t,i);n!==e&&null===this.wh(e)&&(pd(t,i,e),void 0!==n&&this.qb.remove(n),this.qb.add(e,t),nd(this,\"linkKey\",Si,i,t,n,e),\"string\"===typeof i&&this.Ea(t,i))}else pd(t,i,e)}},i.wh=function(t){return null===t&&k(\"GraphLinksModel.findLinkDataForKey:key must not be null\"),void 0!==t&&od(t)?this.qb.J(t):null},i.eq=function(t){if(null!==t){var e=this.hi;if(\"\"!==e){var i=this.ic(t);if(void 0===i||this.qb.contains(i)){var n=this.pl;if(null!==n&&(i=n(this,t),void 0!==i&&null!==i&&!this.qb.contains(i)))return void pd(t,e,i);if(\"string\"===typeof i){for(n=2;this.qb.contains(i+n);)n++;pd(t,e,i+n)}else if(void 0===i||\"number\"===typeof i){for(i=-this.qb.count-1;this.qb.contains(i);)i--;pd(t,e,i)}}}}},i.Ae=function(t){return null!==t&&this.Mf.contains(t)},i.Ai=function(t){null!==t&&(at(t),this.Ae(t)||Nd(this,t,!0))},i.jy=function(t){if(Array.isArray(t))for(var e=t.length,i=0;ii){for(r=n+(o===Ud?r:-r);0>r;)r+=360;r%=360,180=u.length-1)break;Ed(t,l,h,u,c,o,r)||Rd(t,l,h,u,c,o,r),l=r.x,h=r.y}if(mt.free(r),t.yj++,!(23Math.abs(d)?Math.abs(l-r)<(u[0].width+u[u.length-1].width)/2&&(s=0):s=0Math.abs(f)?0:f,l=Math.abs(r)>Math.abs(c)?0c:0t.yj?t.Yb-s/(2*Math.PI):5>u.length&&10=c.length-1)break;Ed(t,l,h,c,f,o,u)||Rd(t,l,h,c,f,o,u),l=u.x,h=u.y}if(mt.free(u),t.yj++,!(23t.yj?t.Yb-r/(2*Math.PI):t.Yb-(0a){if(r=e-t,r<-a)return s.x=r,s.y=h,!1;u=!0}}else if(r=e-t,r<-a){if(r=e+t,r>a)return s.x=r,s.y=h,!1;u=!0}return h=Math.sqrt(1-Math.min(1,r*r/(a*a)))*l,0>i!==u&&(h=-h),Math.abs(i-h)>(n[o].height+n[o+1].height)/2?(s.x=r,s.y=h,!1):(s.x=r,s.y=h,!0)}function Rd(t,e,i,n,o,r,s){var a=t.Yb,l=t.Rd,h=0;if(t=(n[o].height+n[o+1].height)/2+t.fj,n=!1,0<=e!==(r===Ud)){if(r=i-t,r<-l){if(r=i+t,r>l)return s.x=h,void(s.y=r);n=!0}}else if(r=i+t,r>l){if(r=i-t,r<-l)return s.x=h,void(s.y=r);n=!0}h=Math.sqrt(1-Math.min(1,r*r/(l*l)))*a,0>e!==n&&(h=-h),s.x=h,s.y=r}function Vd(t,e,i,n,o){var r=t.Xx;if(.001>Math.abs(t.zn-1))return void 0!==n&&void 0!==o?o*e:2*Math.PI*e;t=e>i?Math.sqrt(e*e-i*i)/e:Math.sqrt(i*i-e*e)/i;for(var s=0,a=void 0!==n&&void 0!==o?o/(r+1):Math.PI/(2*(r+1)),l=0,h=0;h<=r;h++){l=void 0!==n&&void 0!==o?n+h*o/r:h*Math.PI/(2*r);var u=Math.sin(l);s+=Math.sqrt(1-t*t*u*u)*a}return void 0!==n&&void 0!==o?(e>i?e:i)*s:4*(e>i?e:i)*s}function _d(t,e,i,n,o){return e/(void 0!==n&&void 0!==o?Vd(t,1,i,n,o):Vd(t,1,i))}function Hd(t,e,i,n,o){if(.001>Math.abs(t.zn-1))return o/e;var r=e>i?Math.sqrt(e*e-i*i)/e:Math.sqrt(i*i-e*e)/i,s=0;t=2*Math.PI/(700*t.network.vertexes.count),e>i&&(n+=Math.PI/2);for(var a=0;;a++){var l=Math.sin(n+a*t);if(s+=(e>i?e:i)*Math.sqrt(1-r*r*l*l)*t,s>=o)return a*t}}xd.className=\"GraphLinksModel\",md.GraphLinksModel=xd,Uf.constructGraphLinksModel=Uf.constructGraphLinksModel=function(){return new xd},Uf.initDiagramModel=cd=function(){return new xd},d(Od,Uf),Od.constructGraphLinksModel=Uf.constructGraphLinksModel,Od.prototype.cloneProtected=function(t){Uf.prototype.cloneProtected.call(this,t),t.re=this.re,t.fn=this.fn,t.zj=this.zj},i=Od.prototype,i.toString=function(t){if(void 0===t&&(t=0),2<=t)return this.rq();var e=(\"\"!==this.name?this.name:\"\")+\" TreeModel\";if(0=t.count)1===t.count&&(t=t.first(),t.centerX=0,t.centerY=0);else{var e=new nt;e.addAll(t.iterator),t=new nt;var i,n,o=new nt,r=this.sort(e),s=this.Rq,a=this.arrangement,l=this.nodeDiameterFormula,h=this.radius;(!isFinite(h)||0>=h)&&(h=NaN);var u=this.aspectRatio;(!isFinite(u)||0>=u)&&(u=1);var c=this.startAngle;isFinite(c)||(c=0);var f=this.sweepAngle;if((!isFinite(f)||360f)&&(f=360),e=this.spacing,isFinite(e)||(e=NaN),a===Xd&&l===np?a=Yd:a===Xd&&l!==np&&(a=this.arrangement),(this.direction===$d||this.direction===Wd)&&this.sorting!==ep){for(l=0;!(l>=r.length);l+=2){if(t.add(r.N(l)),l+1>=r.length)break;o.add(r.N(l+1))}this.direction===$d?(this.arrangement===Xd&&t.reverse(),r=new nt,r.addAll(t),r.addAll(o)):(this.arrangement===Xd&&o.reverse(),r=new nt,r.addAll(o),r.addAll(t))}l=r.length;for(var d=n=i=0;df&&(0===d||d===r.length-1)&&(g/=2),i+=g,n++}if(isNaN(h)||a===Xd){if(isNaN(e)&&(e=6),a!==Yd&&a!==Xd){for(n=-1/0,s=0;sh?(h=i,n=h*u):s=d/(360<=f?l:l-1)}if(this.vw=a,this.Yb=h,this.zn=u,this.ww=c,this.er=f,this.fj=e,this.Rd=n,this.Rq=s,e=r,r=this.vw,a=this.Yb,h=this.ww,u=this.er,c=this.fj,f=this.Rd,l=this.Rq,this.direction!==$d&&this.direction!==Wd||r!==Xd)if(this.direction===$d||this.direction===Wd){switch(s=0,r){case qd:s=180*Hd(this,a,f,h,l)/Math.PI;break;case Yd:l=e=0,s=t.first(),null!==s&&(e=ap(s,Math.PI/2)),s=o.first(),null!==s&&(l=ap(s,Math.PI/2)),s=180*Hd(this,a,f,h,c+(e+l)/2)/Math.PI;break;case Gd:s=u/e.length}if(this.direction===$d){switch(r){case qd:Bd(this,t,h,Kd);break;case Yd:Ad(this,t,h,Kd);break;case Gd:jd(this,t,u/2,h,Kd)}switch(r){case qd:Bd(this,o,h+s,Ud);break;case Yd:Ad(this,o,h+s,Ud);break;case Gd:jd(this,o,u/2,h+s,Ud)}}else{switch(r){case qd:Bd(this,o,h,Kd);break;case Yd:Ad(this,o,h,Kd);break;case Gd:jd(this,o,u/2,h,Kd)}switch(r){case qd:Bd(this,t,h+s,Ud);break;case Yd:Ad(this,t,h+s,Ud);break;case Gd:jd(this,t,u/2,h+s,Ud)}}}else switch(r){case qd:Bd(this,e,h,this.direction);break;case Yd:Ad(this,e,h,this.direction);break;case Gd:jd(this,e,u,h,this.direction);break;case Xd:zd(this,e,u,h,this.direction)}else zd(this,e,u,h-u/2,Ud)}this.updateParts(),this.network=null,this.isValidLayout=!0},Dd.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Dd.prototype.commitNodes=function(){var t=null!==this.group&&null!==this.group.placeholder&&this.group.isSubGraphExpanded,e=t?this.group.location.copy():null,i=this.actualCenter;t?i=new mt(0,0):(i.x=this.arrangementOrigin.x+this.Yb,i.y=this.arrangementOrigin.y+this.Rd);for(var n=this.network.vertexes.iterator;n.next();){var o=n.value;o.x+=i.x,o.y+=i.y,o.commit()}t&&(this.group.ac(),t=this.group.position.copy(),i=this.group.location.copy(),e=e.Xd(i.Xd(t)),this.group.move(e),this.hw=e.Xd(t))},Dd.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},Dd.prototype.sort=function(t){switch(this.sorting){case Jd:break;case Zd:t.reverse();break;case Qd:t.sort(this.comparer);break;case tp:t.sort(this.comparer),t.reverse();break;case ep:for(var e=[],i=0;io&&(o=a,r=s)}else for(s=0;so&&(o=a,r=s);for(i.add(t.N(r)),e[r]=-1,r=t.N(r),s=r.sourceEdges;s.next();)o=t.indexOf(s.value.fromVertex),0>o||0<=e[o]&&e[o]++;for(r=r.destinationEdges;r.next();)o=t.indexOf(r.value.toVertex),0>o||0<=e[o]&&e[o]++}for(t=[],e=0;et[e].indexOf(n)&&t[e].push(n);for(o=o.sourceEdges;o.next();)n=i.indexOf(o.value.fromVertex),n!==e&&0>t[e].indexOf(n)&&t[e].push(n)}for(r=[],e=0;et[e[p]].indexOf(e[p===e.length-1?0:p+1])&&d.push(p===e.length-1?0:p+1);if(0===d.length)for(p=0;pe.indexOf(M)||xe.indexOf(M)||x=g?x+1:x)),v+=x=g&&x++,b>=g&&b++,x>b&&(w=b,b=x,x=w),b-x<(e.length+2)/2===(xd||d===u||(p=d>u?d-u:u-d,c+=ds-p?1:-1);e.splice(0>c?u:u+1,0,l),o.splice(a,1),a--}else r=!1;if(r)break;e.push(o[0]),o.splice(0,1)}for(t=0;t=t?t:360,this.B())}},arrangement:{get:function(){return this.Ab},set:function(t){this.Ab===t||t!==Xd&&t!==Yd&&t!==qd&&t!==Gd||(this.Ab=t,this.B())}},direction:{get:function(){return this.L},set:function(t){this.L===t||t!==Ud&&t!==Kd&&t!==$d&&t!==Wd||(this.L=t,this.B())}},sorting:{get:function(){return this.Qc},set:function(t){this.Qc===t||t!==Jd&&t!==Zd&&t!==Qd&&!tp&&t!==ep||(this.Qc=t,this.B())}},comparer:{get:function(){return this.Mc},set:function(t){this.Mc!==t&&(this.Mc=t,this.B())}},spacing:{get:function(){return this.Ze},set:function(t){this.Ze!==t&&(this.Ze=t,this.B())}},nodeDiameterFormula:{get:function(){return this.Bo},set:function(t){this.Bo===t||t!==ip&&t!==np||(this.Bo=t,this.B())}},actualXRadius:{get:function(){return this.Yb}},actualYRadius:{get:function(){return this.Rd}},actualSpacing:{get:function(){return this.fj}},actualCenter:{get:function(){return this.hw}}});var Yd=new K(Dd,\"ConstantSpacing\",0),qd=new K(Dd,\"ConstantDistance\",1),Gd=new K(Dd,\"ConstantAngle\",2),Xd=new K(Dd,\"Packed\",3),Ud=new K(Dd,\"Clockwise\",4),Kd=new K(Dd,\"Counterclockwise\",5),$d=new K(Dd,\"BidirectionalLeft\",6),Wd=new K(Dd,\"BidirectionalRight\",7),Jd=new K(Dd,\"Forwards\",8),Zd=new K(Dd,\"Reverse\",9),Qd=new K(Dd,\"Ascending\",10),tp=new K(Dd,\"Descending\",11),ep=new K(Dd,\"Optimized\",12),ip=new K(Dd,\"Pythagorean\",13),np=new K(Dd,\"Circular\",14);function op(){this.am=-1/0,this.Am=this.tk=null}function rp(t){ff.call(this,t)}function sp(t){vf.call(this,t),this.K=this.ej=NaN}function ap(t,e){var i=t.network;if(null===i)return NaN;if(i=i.layout,null===i)return NaN;if(i.arrangement===Xd)if(i.nodeDiameterFormula===np)t.ej=Math.max(t.width,t.height);else{if(i=Math.abs(Math.sin(e)),e=Math.abs(Math.cos(e)),0===i)return t.width;if(0===e)return t.height;t.ej=Math.min(t.height/i,t.width/e)}else t.ej=i.nodeDiameterFormula===np?Math.max(t.width,t.height):Math.sqrt(t.width*t.width+t.height*t.height);return t.ej}function lp(t){bf.call(this,t)}function hp(){hf.call(this),this.ph=null,this.$n=0,this.wd=new It(100,100).freeze(),this.Rm=!1,this.Ye=!0,this.Xc=!1,this.ql=100,this.Cn=1,this.Jf=1e3,this.vo=10,this.So=Math,this.Pk=.05,this.Ok=50,this.Mk=150,this.Nk=0,this.pn=10,this.on=5}function up(t,e,i){if(cp(t,e)){var n=t.Jf;t.Jf*=1+1/(e+1);var o=fp(t,e),r=Math.max(0,Math.max(Math.min(t.network.vertexes.count,i*(e+1)/11),10));for(t.maxIterations+=r,up(t,e+1,i),vp(t,r),dp(t,o),e=o.vertexes.Na(),e.sort((function(t,e){return null===t||null===e||t===e?0:e.td-t.td})),i=0;it.network.vertexes.count)return!1;for(t.ph=t.network.vertexes.Na(),t=t.ph,t.sort((function(t,e){return null===t||null===e||t===e?0:e.td-t.td})),e=t.length-1;0<=e&&1>=t[e].td;)e--;return 1=s))){for(var h=a=0,u=l.count-s;ud&&(d=1),a=We.sqrt((a+d+h*h*4/(s*s))/d),s=(a-1)*u/2,a=(a-1)*c/2,o.bounds=new _t(r-f.x-s,l-f.y-a,u+2*s,c+2*a),o.focus=new mt(f.x+s,f.y+a)}}return t.network=n,i}function dp(t,e){for(var i=t.network.vertexes.iterator;i.next();){var n=i.value;if(n.network=e,null!==n.Ge){var o=n.Ge.N(n.Ev);n.td=o.Bt;var r=o.aw,s=o.bw;n.bounds=new _t(n.centerX-r,n.centerY-s,o.Ct,o.At),n.focus=new mt(r,s),n.Ev--}}for(i=t.network.edges.iterator;i.next();)i.value.network=e;t.network=e}function pp(t,e){var i=e.Uj;if(null!==i&&0!==i.count){var n=e.centerX,o=e.centerY,r=e.width,s=e.height;null!==e.Ge&&0=c.td?l++:(a=!0,h++,s+=Math.atan2(e.centerY-c.centerY,e.centerX-c.centerX))}if(0!==l)for(0>1)+h)*(0===a%2?1:-1),l.centerX=n+u*Math.cos(c),l.centerY=o+u*Math.sin(c),a++}}}function gp(t,e,i,n,o,r,s){var a=9e19,l=-1,h=0;t:for(;hu.y&&t[f].x-u.xu.x&&t[f].y-u.ye+r?(i=n+o-s,t=t-e-r,We.sqrt(i*i+t*t)):t+is+a?t>e+r?(i=n-s-a,t=t-e-r,We.sqrt(i*i+t*t)):t+ie+r?t-(e+r):t+i=e.length)return!1;var i=e[0];i.forceX=0,i.forceY=0;for(var n=i.centerX,o=n,r=i=i.centerY,s=1;sr-i)?e.sort((function(t,e){return null===t||null===e||t===e?0:t.centerX-e.centerX})):e.sort((function(t,e){return null===t||null===e||t===e?0:t.centerY-e.centerY})),i=t.Jf;var h=n=a=0;for(r=0;ri||h-l>i){if(o)break}else if(u-d>i||d-u>i){if(!o)break}else{var p=mp(s,f);1>p?(n=t.randomNumberGenerator,null===n&&(t.randomNumberGenerator=n=new Mp),p=n.random(),a=n.random(),l>h?(n=Math.abs(f.bounds.right-s.bounds.x),n=(1+n)*p):ld?(h=Math.abs(f.bounds.bottom-s.bounds.y),h=(1+h)*a):lc?(c=t.randomNumberGenerator,null===c&&(t.randomNumberGenerator=c=new Mp),a=c.random(),c=c.random(),n=(n>l?1:-1)*(1+(r.width>i.width?r.width:i.width))*a,h=(s>u?1:-1)*(1+(r.height>i.height?r.height:i.height))*c):(a=a.stiffness*(c-a.length),n=(l-n)/c*a,h=(u-s)/c*a),i.forceX+=n,i.forceY+=h,r.forceX-=n,r.forceY-=h;for(n=0,o=t.moveLimit,i=0;io&&(s=o),l<-o?l=-o:l>o&&(l=o),r.centerX+=s,r.centerY+=l,n=Math.max(n,s*s+l*l));return n>t.epsilonDistance*t.epsilonDistance}function bp(){this.bw=this.aw=this.At=this.Ct=this.Bt=0}function wp(t){ff.call(this,t)}function xp(t){vf.call(this,t),this.Ma=!1,this.Vb=this.K=NaN,this.Ah=this.td=this.La=this.ba=0,this.Ge=this.Uj=null,this.Ev=0}function kp(t){bf.call(this,t),this.l=this.u=NaN}function Mp(){var t=0;void 0===t&&(t=42),this.seed=t,this.Px=48271,this.Rx=2147483647,this.Q=44488.07041494893,this.Tx=3399,this.Qx=1/2147483647,this.random()}function Cp(){hf.call(this),this.Xb=this.ke=25,this.L=0,this.Kk=ng,this.ll=sg,this.bl=hg,this.pj=4,this.vk=dg,this.$f=7,this.Ye=!0,this.fo=4,this.Ha=this.Lr=this.ya=-1,this.od=this.qo=0,this.Ka=this.ld=this.md=this.Gd=this.fc=null,this.xo=0,this.wo=this.uj=null,this.Ld=0,this.yo=null,this.jw=new mt,this.oe=[],this.oe.length=100}function Sp(t){var e=t.fromVertex.node;return t=t.toVertex.node,null===e&&null===t?8:null===e||null===t?4:1}function Np(t){null===t.uj&&(t.uj=[]);for(var e=0,i=t.network.vertexes.iterator;i.next();){var n=i.value;t.uj[e]=n.layer,e++,t.uj[e]=n.column,e++,t.uj[e]=n.index,e++}return t.uj}function Pp(t,e){var i=0;for(t=t.network.vertexes.iterator;t.next();){var n=t.value;n.layer=e[i],i++,n.column=e[i],i++,n.index=e[i],i++}}function Tp(t,e,i){var n=eg(t,e),o=t.fc[e];(null===t.wo||t.wo.lengths)for(var c=s+1;ch;c--)f=n[c],f.near===u&&f.Pj===u.Pj||l++;if(0<=i)for(h=n[s].sourceEdgesArrayAccess,u=0;ug||f===g&&d>p)&&l++,mf||g===f&&p>d)&&l++}}}if(0>=i)for(h=n[s].destinationEdgesArrayAccess,u=0;ug||f===g&&c>m)&&l++,pf||g===f&&m>c)&&l++);for(r[s*o+s]=l,h=s+1;h=i)for(l=n[s].destinationEdgesArrayAccess,b=n[h].destinationEdgesArrayAccess,u=0;u=i&&(l=a.sourceEdgesArrayAccess);var h=null;0<=i&&(h=a.destinationEdgesArrayAccess);var u=0,c=0,f=a.near;if(null!==f&&f.layer===a.layer&&(u+=f.column-1,c++),null!==l)for(f=0;f=i&&(l=a.sourceEdgesArrayAccess);var h=null;0<=i&&(h=a.destinationEdgesArrayAccess);var u=0,c=[],f=a.near;if(null!==f&&f.layer===a.layer&&(c[u]=f.column-1,u++),a=void 0,null!==l)for(f=0;f>1,r[s]=0!==(1&u)?c[h]:c[h-1]+c[h]>>1)}return ig(t,e,n),r}function jp(t,e,i,n,o,r){if(e.component===n){if(e.component=i,o)for(var s=e.destinationEdges;s.next();){var a=s.value,l=a.toVertex,h=e.layer-l.layer;a=t.linkMinLength(a),h===a&&jp(t,l,i,n,o,r)}if(r)for(s=e.sourceEdges;s.next();)a=s.value,l=a.fromVertex,h=l.layer-e.layer,a=t.linkMinLength(a),h===a&&jp(t,l,i,n,o,r)}}function Ap(t,e,i,n,o,r){if(e.component===n){if(e.component=i,o)for(var s=e.destinationEdges;s.next();)Ap(t,s.value.toVertex,i,n,o,r);if(r)for(e=e.sourceEdges;e.next();)Ap(t,e.value.fromVertex,i,n,o,r)}}function Bp(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid)return e}return null}function zp(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var i=!0,n=e.destinationEdges;n.next();)if(n.value.toVertex.valid){i=!1;break}if(i)return e}}return null}function Fp(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var i=!0,n=e.sourceEdges;n.next();)if(n.value.fromVertex.valid){i=!1;break}if(i)return e}}return null}function Ip(t,e){e.Xl=t.xo,t.xo++;for(var i=e.destinationEdges;i.next();){var n=i.value,o=n.toVertex;-1===o.Xl&&(n.forest=!0,Ip(t,o))}e.finish=t.xo,t.xo++}function Ep(t){for(var e=t.network.vertexes.iterator;e.next();){var i=Rp(t,e.value);t.ya=Math.max(i,t.ya)}}function Rp(t,e){var i=0;if(-1===e.layer){for(var n=e.destinationEdges;n.next();){var o=n.value,r=o.toVertex;o=t.linkMinLength(o),i=Math.max(i,Rp(t,r)+o)}e.layer=i}else i=e.layer;return i}function Vp(t,e){var i=0;if(-1===e.layer){for(var n=e.sourceEdges;n.next();){var o=n.value,r=o.fromVertex;o=t.linkMinLength(o),i=Math.max(i,Vp(t,r)+o)}e.layer=i}else i=e.layer;return i}function _p(t,e){if(!e.valid){e.valid=!0;for(var i=e.destinationEdges;i.next();)_p(t,i.value.toVertex);for(i=t.network.vertexes.iterator;i.next();)i.value.component=-1;for(var n=e.sourceEdgesArrayAccess,o=n.length,r=0;rs&&jp(t,a,0,-1,!0,!1)}for(jp(t,e,1,-1,!0,!0);0!==e.component;){for(r=0,n=1/0,a=0,l=null,s=t.network.vertexes.iterator;s.next();){var h=s.value;if(1===h.component){var u=0,c=!1,f=h.sourceEdgesArrayAccess;o=f.length;for(var d=0;dr)&&!u&&(a=s,r=h)}if(0>n){for(i.reset();i.next();)n=i.value,1===n.component&&(n.layer-=o);e.component=0}else a.component=0}}}function Hp(t,e,i){return 90===t.L?i&&!e.rev||!i&&e.rev?270:90:180===t.L?i&&!e.rev||!i&&e.rev?0:180:270===t.L?i&&!e.rev||!i&&e.rev?90:270:i&&!e.rev||!i&&e.rev?180:0}function Yp(t,e){var i=e.layer;for(e.index=t.fc[i],t.fc[i]++,e=e.destinationEdgesArrayAccess,i=!0;i;){i=!1;for(var n=0;nr.portFromColOffset&&(i=!0,e[n]=r,e[n+1]=o)}}for(i=0;ir.portToColOffset&&(n=!0,e[i]=r,e[i+1]=o)}for(i=0;in+1&&(f+=4*(y-n),d+=4*(y-(n+1)))}for(w=o[n].destinationEdges.iterator,w.reset();w.next();)if(y=w.value,b=y.toVertex,y.valid&&b.layer===e){for(y=0;o[y]!==b;)y++;y===n+1&&(d+=1)}for(w=o[n+1].sourceEdges.iterator,w.reset();w.next();)if(y=w.value,b=y.fromVertex,y.valid&&b.layer===e){for(y=0;o[y]!==b;)y++;yn+1&&(f+=4*(y-(n+1)),d+=4*(y-n))}for(w=o[n+1].destinationEdges.iterator,w.reset();w.next();)if(y=w.value,b=y.toVertex,y.valid&&b.layer===e){for(y=0;o[y]!==b;)y++;y===n&&(f+=1)}y=b=0,w=s[o[n].index];var x=a[o[n].index],k=s[o[n+1].index],M=a[o[n+1].index];-1!==w&&(b+=Math.abs(w-p),y+=Math.abs(w-v)),-1!==x&&(b+=Math.abs(x-p),y+=Math.abs(x-v)),-1!==k&&(b+=Math.abs(k-g),y+=Math.abs(k-m)),-1!==M&&(b+=Math.abs(M-g),y+=Math.abs(M-m)),(di)for(n=0;nn-1||u-o[n-1].column-1>c+t.nodeMinColumnSpace(o[n-1],!1)?u-1:u,c=n+1>=r||o[n+1].column-u-1>f+t.nodeMinColumnSpace(o[n+1],!0)?u+1:u;var p=f=0,g=0;if(0>=i)for(var m=o[n].sourceEdges.iterator;m.next();){var v=m.value,y=v.fromVertex;if(v.valid&&y.layer!==e){var b=Sp(v),w=v.portFromColOffset;v=v.portToColOffset,y=y.column,f+=(Math.abs(u+v-(y+w))+1)*b,p+=(Math.abs(d+v-(y+w))+1)*b,g+=(Math.abs(c+v-(y+w))+1)*b}}if(0<=i)for(m=o[n].destinationEdges.iterator;m.next();)v=m.value,y=v.toVertex,v.valid&&y.layer!==e&&(b=Sp(v),w=v.portFromColOffset,v=v.portToColOffset,y=y.column,f+=(Math.abs(u+w-(y+v))+1)*b,p+=(Math.abs(d+w-(y+v))+1)*b,g+=(Math.abs(c+w-(y+v))+1)*b);v=w=b=0,m=s[o[n].index],y=a[o[n].index],-1!==m&&(b+=Math.abs(m-u),w+=Math.abs(m-d),v+=Math.abs(m-c)),-1!==y&&(b+=Math.abs(y-u),w+=Math.abs(y-d),v+=Math.abs(y-c)),p=s[i]?u=l:h<=s[i]&&(u=h));u!==a&&(r=!0,n[i].column=u)}ig(t,e,n),t.normalize()}function Wp(t,e){for(var i=!0,n=t.network.vertexes.iterator;n.next();){var o=n.value,r=t.nodeMinColumnSpace(o,!0),s=t.nodeMinColumnSpace(o,!1);if(o.column-r<=e&&o.column+s>=e){i=!1;break}}if(t=!1,i)for(n.reset();n.next();)i=n.value,i.column>e&&(--i.column,t=!0);return t}function Jp(t,e){var i,n=e+1,o=[],r=[];for(i=0;i<=t.ya;i++)o[i]=!1,r[i]=!1;for(var s=t.network.vertexes.iterator;s.next();){i=s.value;var a=i.column-t.nodeMinColumnSpace(i,!0),l=i.column+t.nodeMinColumnSpace(i,!1);a<=e&&l>=e&&(o[i.layer]=!0),a<=n&&l>=n&&(r[i.layer]=!0)}for(a=!0,n=!1,i=0;i<=t.ya;i++)a=a&&!(o[i]&&r[i]);if(a)for(s.reset();s.next();)t=s.value,t.column>e&&(--t.column,n=!0);return n}function Zp(t,e){for(var i=0;i<=t.Ha;i++)for(;Wp(t,i););for(t.normalize(),i=0;ir?Pp(t,o):se)for(i=t.Ha;0<=i;i--)for(o=Np(t),r=Lp(t),n=r+1;rr?Pp(t,o):si)for(n.reset();n.next();)o=n.value,o.column+t.nodeMinColumnSpace(o,!1)>=e&&(o.component=t.Ld);for(t.Ld++,n.reset();n.next();)e=n.value,-1===e.component&&(Ap(t,e,t.Ld,-1,!0,!0),t.Ld++);var r;for(e=[],r=0;ri)for(s=t.Ha;0i)for(n.reset();n.next();)i=n.value,o[i.component]&&(i.column+=1)}function tg(t,e){return 270===t.L?e?Ee:_e:90===t.L?e?_e:Ee:180===t.L?e?Re:Ve:e?Ve:Re}function eg(t,e){var i=t.fc[e];if(i>=t.oe.length){for(var n=[],o=0;othis.am||Math.abs(t)t&&0r?(o=d.x+d.width/2,a=d.y+d.height/2,l[0]=new mt(d.x+d.width+n.width,d.y),l[1]=new mt(d.x,d.y+d.height+n.height),r=2):(u=gp(l,r,o,a,d.width,d.height,n),f=l[u],c=new mt(f.x+d.width+n.width,f.y),d=new mt(f.x,f.y+d.height+n.height),u+1this.network.vertexes.count)return!1;for(var t=0,e=0,i=this.network.vertexes.first().bounds,n=this.network.vertexes.iterator;n.next();){if(n.value.bounds.Ic(i)&&(t++,2g&&0g&&0t[this.od]&&(this.Lr=t[i]-1,this.od=i),t[i]e.toVertex.index&&(t.sm(e),e.rev=!0);break;case ng:for(n=this.network.vertexes.iterator;n.next();)t=n.value,t.Xl=-1,t.finish=-1;for(t=this.network.edges.iterator;t.next();)t.value.forest=!1;for(this.xo=0,n.reset();n.next();)e=n.value,0===e.sourceEdges.count&&Ip(this,e);for(n.reset();n.next();)e=n.value,-1===e.Xl&&Ip(this,e);for(t.reset();t.next();)n=t.value,n.forest||(e=n.fromVertex,i=e.finish,o=n.toVertex,r=o.finish,o.Xln){if(0>n)for(e.reset();e.next();)e.value.layer-=n;for(n=[],e.reset();e.next();)i=e.value,o=n[i.layer],void 0===o?n[i.layer]=[i]:o.push(i);for(i=e=0;i=n;e--)i=Xp(this,e,-1)||i;for(a=this.countCrossings(),a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,1)||i;for(a=this.countCrossings(),a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,1)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,-1)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,0)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,0)||i;a>=r?Pp(this,s):(r=a,s=Np(this))}break;default:case dg:for(t=this.ya,n=0,o=r+1;(e=this.countCrossings())=n;e--)i=Xp(this,e,-1)||i;for(a=this.countCrossings(),a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,1)||i;for(a=this.countCrossings(),a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,1)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,-1)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,0)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,0)||i;a>=r?Pp(this,s):(r=a,s=Np(this))}}Pp(this,s)},Cp.prototype.straightenAndPack=function(){var t=0!==(1&this.$f),e=7===this.$f;if(1e3>1)+8*n;this.Ha*=8}if(0!==(2&this.$f))for(i=!0;i;){for(i=!1,e=this.od+1;e<=this.ya;e++)i=Up(this,e,1)||i;for(e=this.od-1;0<=e;e--)i=Up(this,e,-1)||i;i=Up(this,this.od,0)||i}if(0!==(4&this.$f)){for(e=this.od+1;e<=this.ya;e++)$p(this,e,1);for(e=this.od-1;0<=e;e--)$p(this,e,-1);$p(this,this.od,0)}if(t&&(Zp(this,-1),Zp(this,1)),0!==(2&this.$f))for(i=!0;i;){for(i=!1,i=Up(this,this.od,0)||i,e=this.od+1;e<=this.ya;e++)i=Up(this,e,0)||i;for(e=this.od-1;0<=e;e--)i=Up(this,e,0)||i}},Cp.prototype.commitLayout=function(){if(this.setsPortSpots)for(var t=tg(this,!0),e=tg(this,!1),i=this.network.edges.iterator;i.next();){var n=i.value.link;null!==n&&(n.fromSpot=t,n.toSpot=e)}this.commitNodes(),this.Mu(),this.isRouting&&this.commitLinks()},Cp.prototype.commitNodes=function(){this.Gd=[],this.md=[],this.ld=[],this.Ka=[];for(var t=0;t<=this.ya;t++)this.Gd[t]=0,this.md[t]=0,this.ld[t]=0,this.Ka[t]=0;for(t=this.network.vertexes.iterator;t.next();){var e=t.value,i=e.layer;this.Gd[i]=Math.max(this.Gd[i],this.nodeMinLayerSpace(e,!0)),this.md[i]=Math.max(this.md[i],this.nodeMinLayerSpace(e,!1))}e=0,i=this.ke;for(var n=0;n<=this.ya;n++){var o=i;0>=this.Gd[n]+this.md[n]&&(o=0),0=d.bounds.bottom?(z=d.bounds.y+d.bounds.height,t.m(D++,_,z+G),t.m(D++,_,z),t.m(D++,_,z-q)):(t.m(D++,_,H+G),t.m(D++,_,H),t.m(D++,_,H-q)):270===this.L?H<=d.bounds.y?(z=d.bounds.y,t.m(D++,_,z-q),t.m(D++,_,z),t.m(D++,_,z+G)):(t.m(D++,_,H-q),t.m(D++,_,H),t.m(D++,_,H+G)):0===this.L&&(_>=d.bounds.right?(z=d.bounds.x+d.bounds.width,t.m(D++,z+G,H),t.m(D++,z,H),t.m(D++,z-q,H)):(t.m(D++,_+G,H),t.m(D++,_,H),t.m(D++,_-q,H)));else{t.m(D++,R,V);var X=0;180===this.L||0===this.L?((180===this.L?_>=d.bounds.right:_<=d.bounds.x)&&(X=(0===this.L?-q:G)/2),t.m(D++,R+X,H)):((270===this.L?H>=d.bounds.bottom:H<=d.bounds.y)&&(X=(90===this.L?-q:G)/2),t.m(D++,_,V+X)),t.m(D++,_,H)}}else q=Math.max(10,this.Gd[T.layer]),G=Math.max(10,this.md[T.layer]),180===this.L?(L&&t.m(D++,_-q,H),t.m(D++,_,H),L&&t.m(D++,_+G,H)):90===this.L?(L&&t.m(D++,_,H+G),t.m(D++,_,H),L&&t.m(D++,_,H-q)):270===this.L?(L&&t.m(D++,_,H-q),t.m(D++,_,H),L&&t.m(D++,_,H+G)):(L&&t.m(D++,_+G,H),t.m(D++,_,H),L&&t.m(D++,_-q,H))}d=T}if(null===a||u!==le||O)if(R=t.i(D-1).x,V=t.i(D-1).y,_=t.i(D).x,H=t.i(D).y,O){var U=this.md[f.layer];if(180===this.L||0===this.L){var K=V;K>=f.bounds.y&&K<=f.bounds.bottom&&(180===this.L?_>=f.bounds.x:_<=f.bounds.right)&&(z=f.centerX+(180===this.L?-U:U),K=K=f.bounds.x&&K<=f.bounds.right&&(270===this.L?H>=f.bounds.y:H<=f.bounds.bottom)&&(z=f.centerY+(270===this.L?-U:U),K=K=f.bounds.x?(z=f.bounds.x+f.bounds.width,t.M(D-2,z,V),t.M(D-1,z+G,V)):90===this.L&&H<=f.bounds.bottom?(z=f.bounds.y,t.M(D-2,R,z),t.M(D-1,R,z-q)):270===this.L&&H>=f.bounds.y?(z=f.bounds.y+f.bounds.height,t.M(D-2,R,z),t.M(D-1,R,z+G)):0===this.L&&_<=f.bounds.right&&(z=f.bounds.x,t.M(D-2,z,V),t.M(D-1,z-q,V));else{q=Math.max(10,this.Gd[f.layer]),G=Math.max(10,this.md[f.layer]);var $=0;180===this.L||0===this.L?((180===this.L?_<=f.bounds.x:_>=f.bounds.right)&&($=(0===this.L?G:-q)/2),t.m(D++,_+$,V)):((270===this.L?H<=f.bounds.y:H>=f.bounds.bottom)&&($=(90===this.L?G:-q)/2),t.m(D++,R,H+$)),t.m(D++,_,H)}}else{for(;null!==f&&f!==d;){F=T=null;for(var W=f.destinationEdges.iterator;W.next();){var J=W.value;if(J.link===i.link&&(T=J.toVertex,F=J.fromVertex,null!==F.node&&(F=null),null===T.node))break}T!==d&&(R=t.i(D-1).x,V=t.i(D-1).y,_=T.centerX,H=T.centerY,O?180===this.L||0===this.L?(null!==F?F.centerY:V)!==H&&(Y=this.Ka[T.layer],2===D&&(Y=0===this.L?Math.max(Y,R):Math.min(Y,R)),t.m(D++,Y,V),t.m(D++,Y,H)):(null!==F?F.centerX:R)!==_&&(Y=this.Ka[T.layer],2===D&&(Y=90===this.L?Math.max(Y,V):Math.min(Y,V)),t.m(D++,R,Y),t.m(D++,_,Y)):(q=Math.max(10,this.Gd[T.layer]),G=Math.max(10,this.md[T.layer]),180===this.L?(t.m(D++,_+G,H),L&&t.m(D++,_,H),t.m(D++,_-q,H)):90===this.L?(t.m(D++,_,H-q),L&&t.m(D++,_,H),t.m(D++,_,H+G)):270===this.L?(t.m(D++,_,H+G),L&&t.m(D++,_,H),t.m(D++,_,H-q)):(t.m(D++,_-q,H),L&&t.m(D++,_,H),t.m(D++,_+G,H)))),f=T}O&&(R=t.i(D-1).x,V=t.i(D-1).y,_=t.i(D).x,H=t.i(D).y,180===this.L||0===this.L?V!==H&&(Y=0===this.L?Math.min(Math.max((_+R)/2,this.Ka[d.layer]),_):Math.max(Math.min((_+R)/2,this.Ka[d.layer]),_),t.m(D++,Y,V),t.m(D++,Y,H)):R!==_&&(Y=90===this.L?Math.min(Math.max((H+V)/2,this.Ka[d.layer]),H):Math.max(Math.min((H+V)/2,this.Ka[d.layer]),H),t.m(D++,R,Y),t.m(D++,_,Y)))}if(null!==n&&L){if(null!==s){if(u===le){var Z=t.i(0),Q=t.i(2);Z.A(Q)||t.M(1,(Z.x+Q.x)/2,(Z.y+Q.y)/2)}var tt=t.getLinkPoint(o,s,le,!0,!1,r,a);tt.o()||tt.set(o.actualBounds.center),t.M(0,tt.x,tt.y)}if(null!==a){if(c===le){var et=t.i(t.pointsCount-1),it=t.i(t.pointsCount-3);et.A(it)||t.M(t.pointsCount-2,(et.x+it.x)/2,(et.y+it.y)/2)}var ot=t.getLinkPoint(r,a,le,!1,!1,o,s);ot.o()||ot.set(r.actualBounds.center),t.M(t.pointsCount-1,ot.x,ot.y)}}t.kf(),i.commit()}}}for(var rt=new nt,st=this.network.edges.iterator;st.next();){var at=st.value.link;null!==at&&at.isOrthogonal&&!rt.contains(at)&&rt.add(at)}if(0lt.y&&(bt=yt.y>lt.y?0:ht.x_t.x&&(Zt=Jt.x>_t.x?0:Ht.y<_t.y?2:1),Ut.l=Zt}Yt.push(Ut)}}if(1e.layer?1:t.Sce.Sc?1:t.sce.sc?1:0:0},i.Ex=function(t,e){return t instanceof gg&&e instanceof gg&&t!==e?t.firste.first||t.le.l||t.Sce.Sc?1:t.sce.sc?1:0:0},i.st=function(t,e){return t instanceof gg&&e instanceof gg&&t!==e?t.Tbe.Tb||t.le.l||t.Sce.Sc?1:t.sce.sc?1:0:0},i.w=function(t,e){return t-=e,-1t},i.Vi=function(t,e,i,n){var o=t.length,r=n-i;if(!(1>=r))if((0>i||i>=o-1)&&k(\"not in range 0 <= from < length: \"+i),2===r)n=t[i],o=t[i+1],0=o)t.sort(e);else for(i=t.slice(0,n),i.sort(e),e=0;e=o)for(n=t.slice(i),n.sort(e),e=i;et&&(this.$f=t,this.B())}},setsPortSpots:{get:function(){return this.Ye},set:function(t){this.Ye!==t&&(this.Ye=t,this.B())}},linkSpacing:{get:function(){return this.fo},set:function(t){this.fo!==t&&0<=t&&(this.fo=t,this.B())}},maxLayer:{get:function(){return this.ya}},maxIndex:{get:function(){return this.Lr}},maxColumn:{get:function(){return this.Ha}},minIndexLayer:{get:function(){return this.qo}},maxIndexLayer:{get:function(){return this.od}}});var ng=new K(Cp,\"CycleDepthFirst\",0),og=new K(Cp,\"CycleGreedy\",1),rg=new K(Cp,\"CycleFromLayers\",2),sg=new K(Cp,\"LayerOptimalLinkLength\",0),ag=new K(Cp,\"LayerLongestPathSink\",1),lg=new K(Cp,\"LayerLongestPathSource\",2),hg=new K(Cp,\"InitDepthFirstOut\",0),ug=new K(Cp,\"InitDepthFirstIn\",1),cg=new K(Cp,\"InitNaive\",2),fg=new K(Cp,\"AggressiveNone\",0),dg=new K(Cp,\"AggressiveLess\",1),pg=new K(Cp,\"AggressiveMore\",2);function gg(){this.index=this.sc=this.Sc=this.Tb=this.first=this.layer=0,this.link=null,this.l=0}function mg(t){ff.call(this,t)}function vg(t){vf.call(this,t),this.Sa=this.Cg=this.fi=-1,this.K=NaN,this.ba=null,this.valid=!1,this.finish=this.Xl=NaN,this.Pj=0,this.pv=this.qv=null}function yg(t){bf.call(this,t),this.l=this.Ma=this.Vb=!1,this.La=this.K=NaN,this.ba=this.u=0}function bg(){hf.call(this),this.Fb=new rt,this.Mo=Jg,this.Zc=Zg,this.Dp=pm,this.Jr=xm,this.iw=[],this.Xc=!0,this.Ab=ym,this.wd=new It(10,10).freeze();var t=new Cm(this);this.U=new Sm(t),this.V=new Sm(t),this.xu=[]}function wg(t){var e=new rt;for(t=t.iterator;t.next();){var i=t.value;i.initialized||e.add(i)}return e}function xg(t,e){var i=999999,n=null;for(e=e.iterator;e.next();){var o=e.value;switch(t.Zc){case Zg:o.sourceEdges.counte.level)return!1;t.removeChild(i.parent,i)}return!0}function Cg(t,e){if(null!==e){t.initializeTreeVertexValues(e),e.alignment===hm&&t.sortTreeVertexChildren(e);for(var i=0,n=e.childrenCount,o=0,r=e.children,s=r.length,a=0;an?jg(e,o,T,b,w):Ag(e,o,T,b,w),T=w.x,b=w.width,w=w.height;break;case um:for(t=0;tf&&(Mf&&(Cc&&(c=0),135v&&(v=0)),e.ia.h(c,v),e.ua.h(b,w)}}function jg(t,e,i,n,o){var r=e.length;if(0===r)return new _t(i,0,n,o);if(1===r)return t=e[0],n=t.ua.width,o=t.ua.height,new _t(i,0,n,o);for(var s=t.nodeSpacing,a=t.rowSpacing,l=90===Kg(t),h=0,u=0,c=0,f=0;fl&&(n-=l),o=Math.max(o,Math.max(f,c)+a+r.height),0>e.T.x&&(i=zg(t,e.T.x,!1,i,s))):(e.T.h(n+a,i+s/2-e.focus.y-e.ia.y),n=Math.max(n,Math.max(d,u)+a+r.width),c=i+s/2-e.focus.y-e.ia.y,o=Math.max(o,c+r.height),0>c&&(o-=c),0>e.T.y&&(i=zg(t,e.T.y,!0,i,s)))),new _t(i,0,n,o)}function Ag(t,e,i,n,o){var r=e.length;if(0===r)return new _t(i,0,n,o);if(1===r)return e=e[0],n=e.ua.width,o=e.ua.height,new _t(i,0,n,o);for(var s=t.nodeSpacing,a=t.rowSpacing,l=270===Kg(t),h=0,u=0,c=0,f=0;fu&&(n-=u),o=Math.max(o,Math.abs(Math.min(f,c))+p+h.height),0>a.T.x&&(i=zg(t,a.T.x,!1,i,s))):(a.T.h(-n-h.width-p,i+s/2-a.focus.y-a.ia.y),n=Math.max(n,Math.abs(Math.min(d,u))+p+h.width),c=i+s/2-a.focus.y-a.ia.y,o=Math.max(o,c+h.height),0>c&&(o-=c),0>a.T.y&&(i=zg(t,a.T.y,!0,i,s)))),t=0;te&&(e=i+t.width),0>i&&(e-=i),e;case sm:return t.width>e?t.width:e;case am:return 2*t.focus.x>e?t.width:e+t.width-2*t.focus.x;case lm:case hm:return Math.max(t.width,Math.max(e,i+t.width)-Math.min(0,i));case um:return t.width-t.focus.x+t.nodeSpacing/2+e;case cm:return Math.max(t.width,t.focus.x+t.nodeSpacing/2+e);default:return e}}function Ig(t,e,i){switch(t.alignment){case rm:case om:return i+t.height>e&&(e=i+t.height),0>i&&(e-=i),e;case sm:return t.height>e?t.height:e;case am:return 2*t.focus.y>e?t.height:e+t.height-2*t.focus.y;case lm:case hm:return Math.max(t.height,Math.max(e,i+t.height)-Math.min(0,i));case um:return t.height-t.focus.y+t.nodeSpacing/2+e;case cm:return Math.max(t.height,t.focus.y+t.nodeSpacing/2+e);default:return e}}function Eg(t,e,i){switch(t){case om:e/=2,i/=2;break;case rm:e/=2,i/=2;break;case sm:i=e=0;break;case am:break;default:k(\"Unhandled alignment value \"+t.toString())}return new mt(e,i)}function Rg(t,e,i,n,o,r){e=Eg(e,i,n),Vg(t,e.x,e.y,o,r)}function Vg(t,e,i,n,o){if(0!==e||0!==i)for(t=t.children;n<=o;n++){var r=t[n].T;r.x+=e,r.y+=i}}function _g(t,e,i,n){var o=e.parent;switch(t.Zc){case Zg:for(t=e.sourceEdges;t.next();)e=t.value,e.fromVertex===o&&e.relativePoint.h(i,n);break;case Qg:for(t=e.destinationEdges;t.next();)e=t.value,e.toVertex===o&&e.relativePoint.h(i,n);break;default:k(\"Unhandled path value \"+t.Zc.toString())}}function Hg(t,e,i){for(var n=0;nc.length||null===d||2>d.length))for(o=i=0;ih&&r.yr.y&&he.length||null===i||2>i.length)n=null;else{for(u=qg(t,e.length+i.length),n=r=l=0;rl;)h=i[r++],u[n++].h(h.x+o,h.y);for(i=qg(t,n),l=0;lc.length||null===r||2>r.length)o=null;else{for(u=qg(t,c.length+r.length),o=h=i=0;ir;)l=c[i++],u[o++].h(l.x,l.y);for(r=qg(t,o),i=0;ic.length||null===d||2>d.length))for(o=i=0;il&&r.xr.x&&le.length||null===i||2>i.length)n=null;else{for(u=qg(t,e.length+i.length),n=r=l=0;rl;)h=i[r++],u[n++].h(h.x,h.y+o);for(i=qg(t,n),l=0;lc.length||null===r||2>r.length)o=null;else{for(u=qg(t,c.length+r.length),o=h=i=0;ir;)l=c[i++],u[o++].h(l.x,l.y);for(r=qg(t,o),i=0;i=t?0:135>=t?90:225>=t?180:315>=t?270:0}function $g(t){var e=Kg(t);e=90===e||270===e;var i=t.layerSpacing;if(0o?jg(t,s,O,v,y):Ag(t,s,O,v,y),O=y.x,v=y.width,y=y.height;break;case um:for(w=0;wc&&(SF&&(Vg(t,-F,0,L,D-1),Hg(w,-F,0),Hg(x,-F,0),F=0)}B.T.h(F,N),v=Math.max(v,M),y=Math.max(y,b+(0===P?0:p)+z.height),S=M}else 0c&&(NF&&(Vg(t,0,-F,L,D-1),Hg(w,0,-F),Hg(x,0,-F),F=0)),B.T.h(S,F),y=Math.max(y,C),v=Math.max(v,b+(0===P?0:p)+z.width),N=C;T++}switch(0h&&(h=0),135g&&(g=0),l===cm&&(a+=f/2+t.focus.y),s+=n+i):e?(null===t.comments?n>v&&(v=Eg(l,n-v,0),s=v.x,a=v.y,v=n,h=0):v=Fg(t,v,h),0>h&&(s-=h,h=0),135y&&(y=Eg(l,0,m-y),s=y.x,a=y.y,y=m,g=0):y=Ig(t,y,g),0>g&&(a-=g,g=0),s+=n+i),0o[0].x?o[2].assign(o[1]):o[1].assign(o[2])),o[3].yo[0].x?o[3].assign(o[2]):o[2].assign(o[3])),P[0].h(h+n,0),P[1].h(P[0].x,m),P[2].yo[0].y?o[2].assign(o[1]):o[1].assign(o[2])),o[3].xo[0].y?o[3].assign(o[2]):o[2].assign(o[3])),P[0].h(0,g+m),P[1].h(n,P[0].y),P[2].x=t&&(this.U.nodeIndentPastParent=t,this.B())}},nodeSpacing:{get:function(){return this.U.nodeSpacing},set:function(t){this.U.nodeSpacing!==t&&(this.U.nodeSpacing=t,this.B())}},layerSpacing:{get:function(){return this.U.layerSpacing},set:function(t){this.U.layerSpacing!==t&&(this.U.layerSpacing=t,this.B())}},layerSpacingParentOverlap:{get:function(){return this.U.layerSpacingParentOverlap},set:function(t){this.U.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.U.layerSpacingParentOverlap=t,this.B())}},compaction:{get:function(){return this.U.compaction},set:function(t){this.U.compaction===t||t!==fm&&t!==dm||(this.U.compaction=t,this.B())}},breadthLimit:{get:function(){return this.U.breadthLimit},set:function(t){this.U.breadthLimit!==t&&0<=t&&(this.U.breadthLimit=t,this.B())}},rowSpacing:{get:function(){return this.U.rowSpacing},set:function(t){this.U.rowSpacing!==t&&(this.U.rowSpacing=t,this.B())}},rowIndent:{get:function(){return this.U.rowIndent},set:function(t){this.U.rowIndent!==t&&0<=t&&(this.U.rowIndent=t,this.B())}},commentSpacing:{get:function(){return this.U.commentSpacing},set:function(t){this.U.commentSpacing!==t&&(this.U.commentSpacing=t,this.B())}},commentMargin:{get:function(){return this.U.commentMargin},set:function(t){this.U.commentMargin!==t&&(this.U.commentMargin=t,this.B())}},setsPortSpot:{get:function(){return this.U.setsPortSpot},set:function(t){this.U.setsPortSpot!==t&&(this.U.setsPortSpot=t,this.B())}},portSpot:{get:function(){return this.U.portSpot},set:function(t){this.U.portSpot.A(t)||(this.U.portSpot=t,this.B())}},setsChildPortSpot:{get:function(){return this.U.setsChildPortSpot},set:function(t){this.U.setsChildPortSpot!==t&&(this.U.setsChildPortSpot=t,this.B())}},childPortSpot:{get:function(){return this.U.childPortSpot},set:function(t){this.U.childPortSpot.A(t)||(this.U.childPortSpot=t,this.B())}},alternateSorting:{get:function(){return this.V.sorting},set:function(t){this.V.sorting===t||t!==tm&&t!==em&&t!==im&&!nm||(this.V.sorting=t,this.B())}},alternateComparer:{get:function(){return this.V.comparer},set:function(t){this.V.comparer!==t&&(this.V.comparer=t,this.B())}},alternateAngle:{get:function(){return this.V.angle},set:function(t){this.V.angle===t||0!==t&&90!==t&&180!==t&&270!==t||(this.V.angle=t,this.B())}},alternateAlignment:{get:function(){return this.V.alignment},set:function(t){this.V.alignment!==t&&(this.V.alignment=t,this.B())}},alternateNodeIndent:{get:function(){return this.V.nodeIndent},set:function(t){this.V.nodeIndent!==t&&0<=t&&(this.V.nodeIndent=t,this.B())}},alternateNodeIndentPastParent:{get:function(){return this.V.nodeIndentPastParent},set:function(t){this.V.nodeIndentPastParent!==t&&0<=t&&1>=t&&(this.V.nodeIndentPastParent=t,this.B())}},alternateNodeSpacing:{get:function(){return this.V.nodeSpacing},set:function(t){this.V.nodeSpacing!==t&&(this.V.nodeSpacing=t,this.B())}},alternateLayerSpacing:{get:function(){return this.V.layerSpacing},set:function(t){this.V.layerSpacing!==t&&(this.V.layerSpacing=t,this.B())}},alternateLayerSpacingParentOverlap:{get:function(){return this.V.layerSpacingParentOverlap},set:function(t){this.V.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.V.layerSpacingParentOverlap=t,this.B())}},alternateCompaction:{get:function(){return this.V.compaction},set:function(t){this.V.compaction===t||t!==fm&&t!==dm||(this.V.compaction=t,this.B())}},alternateBreadthLimit:{get:function(){return this.V.breadthLimit},set:function(t){this.V.breadthLimit!==t&&0<=t&&(this.V.breadthLimit=t,this.B())}},alternateRowSpacing:{get:function(){return this.V.rowSpacing},set:function(t){this.V.rowSpacing!==t&&(this.V.rowSpacing=t,this.B())}},alternateRowIndent:{get:function(){return this.V.rowIndent},set:function(t){this.V.rowIndent!==t&&0<=t&&(this.V.rowIndent=t,this.B())}},alternateCommentSpacing:{get:function(){return this.V.commentSpacing},set:function(t){this.V.commentSpacing!==t&&(this.V.commentSpacing=t,this.B())}},alternateCommentMargin:{get:function(){return this.V.commentMargin},set:function(t){this.V.commentMargin!==t&&(this.V.commentMargin=t,this.B())}},alternateSetsPortSpot:{get:function(){return this.V.setsPortSpot},set:function(t){this.V.setsPortSpot!==t&&(this.V.setsPortSpot=t,this.B())}},alternatePortSpot:{get:function(){return this.V.portSpot},set:function(t){this.V.portSpot.A(t)||(this.V.portSpot=t,this.B())}},alternateSetsChildPortSpot:{get:function(){return this.V.setsChildPortSpot},set:function(t){this.V.setsChildPortSpot!==t&&(this.V.setsChildPortSpot=t,this.B())}},alternateChildPortSpot:{get:function(){return this.V.childPortSpot},set:function(t){this.V.childPortSpot.A(t)||(this.V.childPortSpot=t,this.B())}}});var Jg=new K(bg,\"PathDefault\",-1),Zg=new K(bg,\"PathDestination\",0),Qg=new K(bg,\"PathSource\",1),tm=new K(bg,\"SortingForwards\",10),em=new K(bg,\"SortingReverse\",11),im=new K(bg,\"SortingAscending\",12),nm=new K(bg,\"SortingDescending\",13),om=new K(bg,\"AlignmentCenterSubtrees\",20),rm=new K(bg,\"AlignmentCenterChildren\",21),sm=new K(bg,\"AlignmentStart\",22),am=new K(bg,\"AlignmentEnd\",23),lm=new K(bg,\"AlignmentBus\",24),hm=new K(bg,\"AlignmentBusBranching\",25),um=new K(bg,\"AlignmentTopLeftBus\",26),cm=new K(bg,\"AlignmentBottomRightBus\",27),fm=new K(bg,\"CompactionNone\",30),dm=new K(bg,\"CompactionBlock\",31),pm=new K(bg,\"StyleLayered\",40),gm=new K(bg,\"StyleLastParents\",41),mm=new K(bg,\"StyleAlternating\",42),vm=new K(bg,\"StyleRootOnly\",43),ym=new K(bg,\"ArrangementVertical\",50),bm=new K(bg,\"ArrangementHorizontal\",51),wm=new K(bg,\"ArrangementFixedRoots\",52),xm=new K(bg,\"LayerIndividual\",60),km=new K(bg,\"LayerSiblings\",61),Mm=new K(bg,\"LayerUniform\",62);function Cm(t){ff.call(this,t)}function Sm(t){vf.call(this,t),this.La=!1,this.Kc=null,this.K=[],this.Wb=this.Vb=this.ba=this.Ma=0,this.Xc=null,this.T=new mt(0,0),this.ua=new It(0,0),this.ia=new mt(0,0),this.um=this.tm=this.Qz=!1,this.oq=this.bq=null,this.Qc=tm,this.Mc=yf,this.zc=0,this.wb=rm,this.Xr=this.Wr=0,this.Zr=20,this.ke=50,this.Ir=0,this.Pq=dm,this.Iq=0,this.ls=25,this.Oq=this.ks=10,this.Nq=20,this.vs=!0,this.gs=Ae,this.us=!0,this.Lq=Ae}function Nm(t){bf.call(this,t),this.ou=new mt(0,0)}bg.className=\"TreeLayout\",bg.PathDefault=Jg,bg.PathDestination=Zg,bg.PathSource=Qg,bg.SortingForwards=tm,bg.SortingReverse=em,bg.SortingAscending=im,bg.SortingDescending=nm,bg.AlignmentCenterSubtrees=om,bg.AlignmentCenterChildren=rm,bg.AlignmentStart=sm,bg.AlignmentEnd=am,bg.AlignmentBus=lm,bg.AlignmentBusBranching=hm,bg.AlignmentTopLeftBus=um,bg.AlignmentBottomRightBus=cm,bg.CompactionNone=fm,bg.CompactionBlock=dm,bg.StyleLayered=pm,bg.StyleLastParents=gm,bg.StyleAlternating=mm,bg.StyleRootOnly=vm,bg.ArrangementVertical=ym,bg.ArrangementHorizontal=bm,bg.ArrangementFixedRoots=wm,bg.LayerIndividual=xm,bg.LayerSiblings=km,bg.LayerUniform=Mm,d(Cm,ff),Cm.prototype.createVertex=function(){return new Sm(this)},Cm.prototype.createEdge=function(){return new Nm(this)},Cm.className=\"TreeNetwork\",d(Sm,vf),Sm.prototype.copyInheritedPropertiesFrom=function(t){null!==t&&(this.Qc=t.sorting,this.Mc=t.comparer,this.zc=t.angle,this.wb=t.alignment,this.Wr=t.nodeIndent,this.Xr=t.nodeIndentPastParent,this.Zr=t.nodeSpacing,this.ke=t.layerSpacing,this.Ir=t.layerSpacingParentOverlap,this.Pq=t.compaction,this.Iq=t.breadthLimit,this.ls=t.rowSpacing,this.ks=t.rowIndent,this.Oq=t.commentSpacing,this.Nq=t.commentMargin,this.vs=t.setsPortSpot,this.gs=t.portSpot,this.us=t.setsChildPortSpot,this.Lq=t.childPortSpot)},p.Object.defineProperties(Sm.prototype,{initialized:{get:function(){return this.La},set:function(t){this.La!==t&&(this.La=t)}},parent:{get:function(){return this.Kc},set:function(t){this.Kc!==t&&(this.Kc=t)}},children:{get:function(){return this.K},set:function(t){if(this.K!==t){if(null!==t)for(var e=t.length,i=0;if.y+i.rowIndent&&(o=Math.min(o,Math.max(u.y,o-Wg(i))))):i.alignment===sm?(o=n.top+e.y,0===e.y&&u.yf.x+i.rowIndent&&(o=Math.min(o,Math.max(u.x,o-Wg(i))))):i.alignment===sm?(o=n.left+e.x,0===e.x&&u.xf.y+i.rowIndent&&(o=Math.min(o,Math.max(u.y,o-Wg(i))))):i.alignment===sm?(o=n.top+e.y,0===e.y&&u.yf.x+i.rowIndent&&(o=Math.min(o,Math.max(u.x,o-Wg(i))))):i.alignment===sm?(o=n.left+e.x,0===e.x&&u.x'});s.a.add(a);e[\"default\"]=a},\"61f7\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return n}));i(\"498a\"),i(\"d3b7\");function n(t){return/^(https?:|mailto:|tel:)/.test(t)}},\"634a\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"HistoricalProcess\"},[i(\"el-button\",{attrs:{type:\"primary\",plain:\"\",icon:\"el-icon-search\",size:\"mini\"},on:{click:function(e){t.searchData.page=1,t.queryLists()}}},[t._v(\"查询\")]),i(\"FormItemComponent\",{staticClass:\"form\",attrs:{formItemLists:t.formLists,buttonType:!1},on:{formChange:t.formChange}}),i(\"StandardTabletwo\",{staticClass:\"table\",attrs:{currentPage:t.searchData.page,pageSize:t.searchData.pageSize,total:t.total,columns:t.columns,data:t.data,standardTableEvent:t.standardTableEvent}}),i(\"Modal\",{attrs:{title:\"流程详情\",width:861,closable:!0,mask:!0,\"footer-hide\":!0,\"mask-closable\":!1},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:\"modalShow\"}},[t.modalShow?i(\"FlowChartShow\",{attrs:{instanceId:t.instanceId}}):t._e()],1)],1)},o=[],r=(i(\"a9e3\"),i(\"159b\"),i(\"d81d\"),i(\"d3b7\"),i(\"ddfb\")),s=i(\"b895\"),a=i(\"a237\"),l=i(\"6fb6\"),h=i(\"ff02\"),u=i(\"4360\"),c={name:\"HistoricalProcess\",components:{FormItemComponent:r[\"a\"],StandardTabletwo:a[\"a\"],FlowChartShow:l[\"a\"]},props:{falg:{type:Number,default:null},tabalive:{type:String,default:\"\"}},data:function(){var t=this;return{formLists:[{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"工作流编号\",filed:\"instanceId\",props:{regx:/^[0-9]*$/},event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}},{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"查询索引\",filed:\"businessNumber\",event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}},{row:1,col:1,component:s[\"a\"],item:{type:\"select\",title:\"单据类型\",filed:\"businessType\",options:[{value:0,label:\"发送成功\"},{value:1,label:\"发送失败(待发送)\"},{value:2,label:\"消费成功\"},{value:3,label:\"消费失败(待消费)\"}]}},{row:1,col:1,component:s[\"a\"],item:{type:\"DatePicker\",title:\"处理时间\",filed:\"updateTime\"}},{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"节点名称\",filed:\"nodeName\",event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}}],searchData:{page:1,pageSize:10,searchType:\"0,1\",excuStatus:2,updateTime:[]},total:0,columns:[{title:\"工作流编号\",key:\"instanceId\"},{title:\"查询索引\",key:\"businessNumber\"},{title:\"单据类型\",key:\"businessName\"},{title:\"模板名称\",key:\"moduleName\"},{title:\"节点名称\",key:\"nodeName\"},{title:\"审批人\",key:\"approverName\"},{title:\"发起人\",key:\"initiatorName\"},{title:\"处理时间\",key:\"updateTime\"},{title:\"消耗时长\",key:\"durationTime\"},{title:\"流程状态\",key:\"processStatusName\",render:function(t,e){return 4===e.row.processStatus?t(\"Poptip\",{props:{trigger:\"hover\",content:e.row.submitErrorMsg,transfer:!0}},[t(\"span\",{style:{color:\"rgba(255, 0, 0, 1)\",cursor:\"pointer\"}},e.row.processStatusName)]):t(\"p\",{style:{maxWidth:\"160px\",overflow:\"hidden\",\"text-overflow\":\"ellipsis\",\"white-space\":\"nowrap\"}},e.row.processStatusName)}},{title:\"详情\",fixed:\"right\",render:function(e,i){return e(\"span\",{style:{color:\"rgba(16, 142, 233, 1)\",cursor:\"pointer\"},on:{click:function(){t.modalShow=!0,t.instanceId=i.row.instanceId}}},\"流程进度\")}}],data:[],standardTableEvent:{\"on-change\":function(e){t.searchData.page=e,t.queryLists()},\"on-page-size-change\":function(e){t.searchData.page=1,t.searchData.pageSize=e}},modalShow:!1,instanceId:null}},watch:{tabalive:function(t,e){\"历史流程\"===t&&(this.getselectOption(),this.queryLists())}},methods:{getselectOption:function(){var t=this;Object(h[\"e\"])().then((function(e){0===e.resultCode&&t.formLists.forEach((function(t){\"businessType\"===t.item.filed&&(t.item.options=e.data.relations.map((function(t){return t.value=t.businesskey,t.label=t.businessName,t})))}))}))},formChange:function(t){this.searchData=Object.assign({},this.searchData,t),\"[object Array]\"===Object.prototype.toString.call(this.searchData.businessType)&&0===this.searchData.businessType.length&&delete this.searchData.businessType},queryLists:function(){var t=this;this.searchData.updateTime&&this.searchData.updateTime[0]&&this.searchData.updateTime[1]?(this.searchData.startTime=new Date(this.searchData.updateTime[0]).format(\"yyyy-MM-dd hh:mm\"),this.searchData.endTime=new Date(this.searchData.updateTime[1]).format(\"yyyy-MM-dd hh:mm\")):(this.searchData.startTime=\"\",this.searchData.endTime=\"\");var e=Object.assign({},this.searchData);delete e.updateTime,Object(h[\"f\"])(e).then((function(e){if(0===e.resultCode){var i=e.data;t.total=i.total,t.data=i.records}else t.$message({message:e.resultMsg,type:\"warning\"})}))},submitTask:function(t){var e=this;Object(h[\"g\"])({instanceId:t}).then((function(t){0===t.data.resultCode&&e.msgSuccess(t.data.resultMsg)}))}},created:function(){this.falg&&(this.searchData.userId=u[\"a\"].getters.userId),this.getselectOption(),this.queryLists()}},f=c,d=(i(\"6983\"),i(\"2877\")),p=Object(d[\"a\"])(f,n,o,!1,null,null,null);e[\"a\"]=p.exports},\"63b0\":function(t,e,i){i(\"5319\"),i(\"ac1f\"),i(\"4d63\"),i(\"25f0\"),Date.prototype.format=function(t){var e={\"M+\":this.getMonth()+1,\"d+\":this.getDate(),\"h+\":this.getHours(),\"m+\":this.getMinutes(),\"s+\":this.getSeconds(),\"q+\":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+\"\").substr(4-RegExp.$1.length))),e)new RegExp(\"(\"+i+\")\").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[i]:(\"00\"+e[i]).substr((\"\"+e[i]).length)));return t},Date.prototype.plusDays=function(t){return new Date(this.getTime()+60*t*60*24*1e3)},Date.prototype.minusDays=function(t){return new Date(this.getTime()-60*t*60*24*1e3)},Date.prototype.plusMonths=function(t){var e=new Date(this);e.setMonth(this.getMonth()+t);var i=this.getMonth()+12*this.getFullYear(),n=e.getMonth()+12*e.getFullYear()-i;return n!==t&&e.setDate(0),e},Date.prototype.getStartOfNextMonth=function(){var t=new Date(this);return t.setDate(15),t.setMonth(this.getMonth()+1),t.setDate(1),t},Date.prototype.getEndOfNextMonth=function(){var t=new Date(this);return t.setDate(15),t.setMonth(this.getMonth()+2),t.setDate(0),t}},\"679a\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-search\",use:\"icon-search-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"67bd\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-validCode\",use:\"icon-validCode-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},6861:function(t,e,i){t.exports={menuText:\"#bfcbd9\",menuActiveText:\"#409eff\",subMenuActiveText:\"#3c8dbc\",menuBg:\"#fafafa\",menuHover:\"#263445\",menuLightBg:\"#fff\",menuLightHover:\"#f0f1f5\",subMenuBg:\"#fafafa\",subMenuHover:\"#3c8dbc\",sideBarWidth:\"200px\",sidebarTitle:\"#fff\",sidebarLightTitle:\"#001529\"}},6976:function(t,e,i){\"use strict\";i(\"4c5b\")},6983:function(t,e,i){\"use strict\";i(\"28fa\")},\"6e55\":function(t,e,i){\"use strict\";i(\"43c3\")},\"6ef7\":function(t,e,i){},\"6fb6\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"FlowChartShow\"},[i(\"div\",{staticClass:\"flowDisplay\"},[i(\"div\",{staticClass:\"title\"},[i(\"span\"),i(\"p\",[t._v(\" 流程进度 - \"),i(\"span\",{staticClass:\"status\",style:t.processStyle},[t._v(t._s(t.processStatusName))])])]),i(\"div\",{attrs:{id:\"myFlowDesignerDiv\"}})]),i(\"div\",{staticClass:\"approvalHistory\"},[t._m(0),i(\"div\",{staticClass:\"approval\"},[i(\"Timeline\",t._l(t.approvalHistory,(function(e,n){return i(\"TimelineItem\",{key:n,attrs:{color:\"green\"}},[2===e.status?i(\"Icon\",{staticClass:\"approval\",attrs:{slot:\"dot\",type:\"iconbj_round\"},slot:\"dot\"}):t._e(),0===e.status?i(\"Icon\",{staticClass:\"success\",attrs:{slot:\"dot\",type:\"iconbj_round\"},slot:\"dot\"}):t._e(),[1,-1,-3,5,33].indexOf(e.status)>=0?i(\"Icon\",{staticClass:\"back\",attrs:{slot:\"dot\",type:\"iconbj_round\"},slot:\"dot\"}):t._e(),1!==e.nodeType&&2!==e.nodeType&&-3!==e.status?i(\"div\",{staticClass:\"approvalItem\"},[i(\"div\",{staticClass:\"approvalItemTitle\"},[2===e.status?i(\"p\",[t._v(\"待 \"+t._s(e.nodeName)+\" 审核\")]):t._e(),0===e.status?i(\"p\",[t._v(\" \"+t._s(e.nodeName)+\" \"),i(\"span\",{staticStyle:{color:\"#09A155\"}},[t._v(t._s(e.statusName))])]):t._e(),1===e.status?i(\"p\",[t._v(\" \"+t._s(e.nodeName)+\" \"),i(\"span\",{staticStyle:{color:\"#ED4014\"}},[t._v(\"驳回\")]),t._v(\"至 \"+t._s(e.backNodeName)+\" \")]):t._e(),-1===e.status?i(\"p\",[t._v(\" \"+t._s(e.nodeName)+\" 关闭 \")]):t._e(),-3===e.status?i(\"p\",[t._v(\" \"+t._s(e.nodeName)+\" 已撤销 \")]):t._e(),5===Number(e.status)?i(\"p\",{staticStyle:{color:\"#ED4014\"}},[t._v(\" 条件不符 \")]):t._e(),33===Number(e.status)?i(\"p\",{staticStyle:{color:\"#ED4014\"}},[t._v(\" \"+t._s(e.nodeName)+\"审核 节点报错 \")]):t._e(),i(\"p\",[2===e.status?i(\"span\",[t._v(\"已等待\"+t._s(e.elapsedTime))]):t._e(),2!==e.status?i(\"span\",[t._v(\"耗时\"+t._s(e.elapsedTime))]):t._e(),e.flag?i(\"i\",{staticClass:\"iconfont iconios-arrow-up\",on:{click:function(i){return t.folding(e)}}}):t._e(),e.flag?t._e():i(\"i\",{staticClass:\"iconfont iconios-arrow-down\",on:{click:function(i){return t.folding(e)}}})])]),i(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.flag,expression:\"item.flag\"}],staticClass:\"approvalItemContent\"},[void 0!==e.nodeType?i(\"Table\",{attrs:{border:\"\",columns:t.columns,data:e.approvalLists}}):t._e(),5===Number(e.status)?i(\"div\",{staticClass:\"linksError\"},[i(\"p\",[t._v(\"流程报错:\"),i(\"span\",[t._v(t._s(e.errorType))])]),i(\"p\",[t._v(\"错误简述:\"),i(\"span\",[t._v(t._s(e.errorMsg))])]),i(\"p\",[t._v(\"人工干预:\"),i(\"span\",[t._v(t._s(e.actType)+\"至\"+t._s(e.manualNode)+\"审核\")])])]):t._e(),33===Number(e.status)?i(\"div\",{staticClass:\"linksError\"},[i(\"p\",[t._v(\"流程报错:\"),i(\"span\",[t._v(t._s(e.errorType))])]),i(\"p\",[t._v(\"错误简述:\"),i(\"span\",[t._v(t._s(e.errorMsg))])]),i(\"p\",[t._v(\"人工干预:\"),i(\"span\",[t._v(\"更改节点审批人为 \"+t._s(e.approvalName))])])]):t._e()],1)]):t._e(),1===e.nodeType?i(\"div\",{staticClass:\"approvalItem\"},[t._v(\" 开始进入审批 \")]):t._e(),2===e.nodeType?i(\"div\",{staticClass:\"approvalItem\"},[t._v(\" 审批结束 \")]):t._e(),-3===e.status?i(\"div\",{staticClass:\"approvalItem\"},[t._v(\" 发起人\"+t._s(e.initiatorName)+\"已撤销流程 \")]):t._e()],1)})),1)],1)])])},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"title\"},[i(\"span\"),i(\"p\",[t._v(\" 审批历史 \")])])}],r=(i(\"a9e3\"),i(\"a434\"),i(\"c740\"),i(\"d81d\"),i(\"a15b\"),i(\"5de0\"),i(\"a58b\")),s=i(\"ff02\"),a={name:\"FlowChartShow\",props:{instanceId:{type:[Number,String]}},data:function(){return{data:{},myDiagram:{},myDisplay:{},flowTableShow:!1,approvalHistory:[],columns:[{title:\"审批人\",key:\"approvalName\",render:function(t,e){return t(\"p\",{style:{display:\"flex\",\"align-items\":\"center\"}},[t(\"i\",{class:\"iconfont \".concat(2===e.row.approverType?\"iconios-people\":\"iconios-person\"),style:{\"margin-right\":\"5px\"}},null),t(\"span\",{},e.row.approvalName)])}},{title:\"审批操作\",key:\"approvalOperation\",render:function(t,e){return 0===e.row.approvalStatus?t(\"span\",{style:{color:\"#09A155\"}},e.row.approvalOperation):1===e.row.approvalStatus||-1===e.row.approvalStatus||-3===e.row.approvalStatus?t(\"span\",{style:{color:\"#ED4014\"}},e.row.approvalOperation):2===e.row.approvalStatus?t(\"span\",{},e.row.approvalOperation):void 0}},{title:\"审批意见\",key:\"approvalOpinions\"}],processStatus:null,processStatusName:\"\",processStyle:{},showNodes:\"\"}},mounted:function(){var t=this;this.$nextTick((function(){t.getChartInfo()}))},methods:{getChartInfo:function(){var t=this,e=this.instanceId?this.instanceId:this.$route.query.instanceId;Object(s[\"d\"])({instanceId:e}).then((function(e){if(0===e.resultCode){var i=e.data.guiStyle?JSON.parse(e.data.guiStyle):{},n=e.data.guiValue?e.data.guiValue:[];switch(t.myDiagram=Object.assign(t.myDiagram,i),t.approvalHistory=n,e.data.showNodes.indexOf(e.data.currentNode)>=0&&e.data.showNodes.splice(e.data.showNodes.findIndex((function(t){return t===e.data.data.currentNode})),1),e.data.showNodes.push(e.data.currentNode),t.showNodes=e.data.showNodes,t.processStatus=e.data.processStatus,e.data.processStatus){case 0:t.processStyle={color:\"#C8C8C8\"};break;case 1:t.processStyle={color:\"#FFA51F\"};break;case 2:t.processStyle={color:\"#ED4014\"};break;case 3:case 4:t.processStyle={color:\"#09A155\"};break;case-1:case-3:t.processStyle={color:\"#ED4014\"};break}t.processStatusName=e.data.processStatusName,t.myDisplay=new r[\"a\"](\"myFlowDesignerDiv\"),t.showFlowPath(t.myDisplay,e.data.currentNode)}}))},showFlowPath:function(t,e){var i=this.getFinishedNodes(e);t.loadFlow(this.myDiagram);var n=!1;-1!==this.processStatus&&-3!==this.processStatus||(n=!0),t.animateFlowPath(i,[],!1,n)},getFinishedNodes:function(t){var e=this.getNode();return e},getNode:function(){var t=this,e=[];return this.showNodes.map((function(i){t.myDiagram.nodeDataArray.every((function(t){return t.id!==i||(e.push(t.key),!1)}))})),e.join(\",\")},getErrorLinks:function(t){var e=null;this.myDiagram.nodeDataArray.every((function(i){return i.id!==t||(e=i.key,!1)})),this.myDisplay.diagram.findNodeForKey(String(e)).findLinksOutOf().each((function(t){console.log(t)}))},folding:function(t){t.flag=!t.flag}}},l=a,h=(i(\"181a\"),i(\"2877\")),u=Object(h[\"a\"])(l,n,o,!1,null,\"63b58d5e\",null);e[\"a\"]=u.exports},7154:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-dashboard\",use:\"icon-dashboard-usage\",viewBox:\"0 0 128 100\",content:''});s.a.add(a);e[\"default\"]=a},7234:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-textarea\",use:\"icon-textarea-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},7271:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-theme\",use:\"icon-theme-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},7278:function(t,e,i){\"use strict\";i(\"906b\")},\"72d1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-guide\",use:\"icon-guide-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"72e5\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-fullscreen\",use:\"icon-fullscreen-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"730d\":function(t,e,i){\"use strict\";i(\"4800\")},\"737d\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-cascader\",use:\"icon-cascader-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"74a1\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"router-view\")},o=[],r=i(\"2877\"),s={},a=Object(r[\"a\"])(s,n,o,!1,null,null,null);e[\"a\"]=a.exports},\"74a2\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-eye-open\",use:\"icon-eye-open-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"76dd\":function(t,e,i){},7996:function(t,e,i){\"use strict\";i(\"171d\")},\"7d57\":function(t,e,i){\"use strict\";i(\"f259\")},\"7ded\":function(t,e,i){\"use strict\";i.d(e,\"c\",(function(){return o})),i.d(e,\"e\",(function(){return r})),i.d(e,\"b\",(function(){return s})),i.d(e,\"d\",(function(){return a})),i.d(e,\"a\",(function(){return l}));var n=i(\"b775\");function o(t,e,i,o){return Object(n[\"a\"])({url:\"/auth/login\",method:\"post\",data:{username:t,password:e,code:i,uuid:o}})}function r(){return Object(n[\"a\"])({url:\"/auth/refresh\",method:\"post\"})}function s(){return Object(n[\"a\"])({url:\"/system/user/getInfo\",method:\"get\"})}function a(){return Object(n[\"a\"])({url:\"/auth/logout\",method:\"delete\"})}function l(){return Object(n[\"a\"])({url:\"/code\",method:\"get\"})}},\"81a5\":function(t,e,i){t.exports=i.p+\"static/img/logo.eeed0dd2.png\"},8243:function(t,e,i){},\"83d6\":function(t,e){t.exports={title:\"潜山市云数据中心\",urls:\"http://192.168.101.10:8090\",sideTheme:\"theme-dark\",showSettings:!1,tagsView:!0,fixedHeader:!0,sidebarLogo:!0,errorLog:\"production\"}},\"84e5\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-swagger\",use:\"icon-swagger-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},8502:function(t,e,i){},\"85ec\":function(t,e,i){},\"879b\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-size\",use:\"icon-size-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"87d9\":function(t,e,i){},8989:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-pdf\",use:\"icon-pdf-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"898c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-client\",use:\"icon-client-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"8df1\":function(t,e,i){t.exports={menuText:\"#bfcbd9\",menuActiveText:\"#409eff\",subMenuActiveText:\"#3c8dbc\",menuBg:\"#fafafa\",menuHover:\"#263445\",menuLightBg:\"#fff\",menuLightHover:\"#f0f1f5\",subMenuBg:\"#fafafa\",subMenuHover:\"#3c8dbc\",sideBarWidth:\"200px\",sidebarTitle:\"#fff\",sidebarLightTitle:\"#001529\"}},\"906b\":function(t,e,i){},\"91be\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-nested\",use:\"icon-nested-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"922f\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-system\",use:\"icon-system-usage\",viewBox:\"0 0 1084 1024\",content:''});s.a.add(a);e[\"default\"]=a},9367:function(t,e,i){},\"937c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-bug\",use:\"icon-bug-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"95cd\":function(t,e,i){\"use strict\";i(\"76dd\")},\"98ab\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-shopping\",use:\"icon-shopping-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"99c3\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-time-range\",use:\"icon-time-range-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"9a4c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-radio\",use:\"icon-radio-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"9b2c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-logininfor\",use:\"icon-logininfor-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"9c49\":function(t,e,i){\"use strict\";i(\"dffe\")},\"9cb5\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-log\",use:\"icon-log-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"9ec1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-checkbox\",use:\"icon-checkbox-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},\"9f4c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-icon\",use:\"icon-icon-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},\"9fad\":function(t,e,i){},a012:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-lock\",use:\"icon-lock-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},a17a:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-language\",use:\"icon-language-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},a18c:function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return h}));var n=i(\"2b0e\"),o=i(\"8c4f\"),r=i(\"c1f7\"),s=(i(\"74a1\"),i(\"c9ae\")),a=i(\"2466\"),l=i(\"2657\");n[\"default\"].use(o[\"a\"]),console.log(s[\"default\"],a[\"default\"],l[\"default\"],12);var h=[{path:\"/redirect\",component:r[\"a\"],hidden:!0,children:[{path:\"/redirect/:path(.*)\",component:function(t){return i.e(\"chunk-2d0f012d\").then(function(){var e=[i(\"9b8f\")];t.apply(null,e)}.bind(this)).catch(i.oe)}}]},{path:\"/login\",component:function(t){return Promise.all([i.e(\"chunk-2d0b2b28\"),i.e(\"chunk-4949268e\")]).then(function(){var e=[i(\"dd7b\")];t.apply(null,e)}.bind(this)).catch(i.oe)},hidden:!0},{path:\"/404\",component:function(t){return i.e(\"chunk-2ca51a62\").then(function(){var e=[i(\"2754\")];t.apply(null,e)}.bind(this)).catch(i.oe)},hidden:!0},{path:\"/401\",component:function(t){return i.e(\"chunk-b4477732\").then(function(){var e=[i(\"ec55\")];t.apply(null,e)}.bind(this)).catch(i.oe)},hidden:!0},{path:\"\",component:r[\"a\"],redirect:\"index\",meta:{title:\"首页\",icon:\"\",noCache:!0,affix:!0},children:[{path:\"index\",component:function(t){return i.e(\"chunk-b0a1fdce\").then(function(){var e=[i(\"1e4b\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"首页\",meta:{title:\"首页\",icon:\"dashboard\",noCache:!0,affix:!0}},{path:\"index/approval\",hidden:!1,component:s[\"default\"],name:\"待我审批\",meta:{title:\"待我审批\",icon:\"dashboard\",noCache:!1}},{path:\"index/handled\",hidden:!1,component:a[\"default\"],name:\"已办理\",meta:{title:\"已办理\",icon:\"dashboard\",noCache:!1}}]},{path:\"/user\",component:r[\"a\"],hidden:!0,redirect:\"noredirect\",children:[{path:\"profile\",component:function(t){return Promise.all([i.e(\"chunk-2d0e2366\"),i.e(\"chunk-e5639a96\")]).then(function(){var e=[i(\"4c1b\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"Profile\",meta:{title:\"个人中心\",icon:\"user\"}}]},{path:\"/dict\",component:r[\"a\"],hidden:!0,children:[{path:\"type/data/:dictId(\\\\d+)\",component:function(t){return i.e(\"chunk-d19c1a98\").then(function(){var e=[i(\"bfc4\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"Data\",meta:{title:\"字典数据\",icon:\"\"}}]},{path:\"/job\",component:r[\"a\"],hidden:!0,children:[{path:\"log\",component:function(t){return i.e(\"chunk-2d0a2db2\").then(function(){var e=[i(\"0062\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"JobLog\",meta:{title:\"调度日志\"}}]},{path:\"/gen\",component:r[\"a\"],hidden:!0,children:[{path:\"edit/:tableId(\\\\d+)\",component:function(t){return Promise.all([i.e(\"chunk-3bded899\"),i.e(\"chunk-23fe59e4\")]).then(function(){var e=[i(\"76f8\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"GenEdit\",meta:{title:\"修改生成配置\"}}]}];e[\"b\"]=new o[\"a\"]({mode:\"history\",scrollBehavior:function(){return{y:0}},routes:h})},a1ac:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-number\",use:\"icon-number-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},a237:function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"StandardTable\"},[t.showTable?i(\"div\",{staticClass:\"table\"},[i(\"Table\",t._g({ref:\"table\",staticClass:\"table\",attrs:{total:t.total,columns:t.columns,height:!0,data:t.data,border:t.border,\"highlight-row\":\"\"}},t.standardTableEvent))],1):t._e(),i(\"div\",{staticClass:\"stabd\"},[t.showPage?i(\"Page\",t._g({staticClass:\"page\",attrs:{total:t.total,\"show-total\":\"\",\"show-sizer\":\"\",\"show-elevator\":\"\",transfer:\"\",\"page-size\":t.pageSize,current:t.currentPage,\"page-size-opts\":t.pageSizeOpts}},t.standardTableEvent)):t._e()],1)])},o=[],r=(i(\"a9e3\"),{name:\"StandardTable\",props:{standardTableEvent:{type:Object,default:function(){return{}}},showPage:{type:Boolean,default:!0},total:{type:Number,default:0},currentPage:{type:Number,default:1},pageSize:{type:Number,default:10},pageSizeOpts:{type:Array,default:function(){return[10,20,30,40]}},showTable:{type:Boolean,default:!0},columns:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},border:{type:Boolean,default:!1}},watch:{data:function(){this.$refs.table.$el.getElementsByClassName(\"burgeon-table-body\")[0].scrollTop=0}},methods:{}}),s=r,a=(i(\"324e\"),i(\"2877\")),l=Object(a[\"a\"])(s,n,o,!1,null,\"0669b91c\",null);e[\"a\"]=l.exports},a263:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-skill\",use:\"icon-skill-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},a2bf:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-date\",use:\"icon-date-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},a2d0:function(t,e,i){t.exports=i.p+\"static/img/light.4183aad0.svg\"},a2f6:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-drag\",use:\"icon-drag-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},a58b:function(t,e,i){\"use strict\";var n=i(\"ade3\");i(\"1276\"),i(\"ac1f\"),i(\"cb29\"),i(\"d81d\");function o(t,e){var i=go.GraphObject.make,o={},r={};function s(t){return r=i(go.Diagram,t,{allowDrop:!1,allowSelect:!1,allowHorizontalScroll:!0,allowVerticalScroll:!0,allowMove:!1,allowLink:!1,allowRelink:!1,\"draggingTool.dragsLink\":!1}),r.nodeTemplate=a(),r.addDiagramListener(\"ObjectDoubleClicked\",h),r.nodeTemplateMap.add(\"Start\",i(go.Node,\"Spot\",{locationSpot:go.Spot.Center},new go.Binding(\"location\",\"loc\",go.Point.parse).makeTwoWay(go.Point.stringify),{selectable:!0,selectionAdornmentTemplate:l()},new go.Binding(\"angle\").makeTwoWay(),i(go.Panel,\"Auto\",{name:\"PANEL\"},new go.Binding(\"desiredSize\",\"size\",go.Size.parse).makeTwoWay(go.Size.stringify),i(go.Shape,\"Circle\",{portId:\"\",name:\"PIPE\",fromLinkable:!0,toLinkable:!0,cursor:\"pointer\",fill:\"#5F7790\",strokeWidth:1,stroke:\"#5F7790\"},new go.Binding(\"figure\"),new go.Binding(\"stroke\"),new go.Binding(\"strokeDashArray\"),new go.Binding(\"strokeWidth\"),new go.Binding(\"fill\")),i(go.TextBlock,{font:\"bold 11pt Helvetica, Arial, sans-serif\",margin:8,wrap:go.TextBlock.WrapFit,stroke:\"white\",overflow:go.TextBlock.OverflowEllipsis},new go.Binding(\"text\").makeTwoWay())))),r.nodeTemplateMap.add(\"End\",i(go.Node,\"Spot\",{locationSpot:go.Spot.Center},new go.Binding(\"location\",\"loc\",go.Point.parse).makeTwoWay(go.Point.stringify),{selectable:!0,selectionAdornmentTemplate:l()},new go.Binding(\"angle\").makeTwoWay(),i(go.Panel,\"Auto\",{name:\"PANEL\"},new go.Binding(\"desiredSize\",\"size\",go.Size.parse).makeTwoWay(go.Size.stringify),i(go.Shape,\"Circle\",{portId:\"\",name:\"PIPE\",fromLinkable:!0,toLinkable:!0,cursor:\"pointer\",fill:\"#5F7790\",strokeWidth:1,stroke:\"#5F7790\"},new go.Binding(\"figure\"),new go.Binding(\"stroke\"),new go.Binding(\"strokeDashArray\"),new go.Binding(\"strokeWidth\"),new go.Binding(\"fill\")),i(go.TextBlock,{font:\"bold 11pt Helvetica, Arial, sans-serif\",margin:8,wrap:go.TextBlock.WrapFit,stroke:\"white\"},new go.Binding(\"text\").makeTwoWay())))),r.linkTemplate=c(),r}function a(){var t;return i(go.Node,\"Spot\",{locationSpot:go.Spot.Center},new go.Binding(\"location\",\"loc\",go.Point.parse).makeTwoWay(go.Point.stringify),{selectable:!0,selectionAdornmentTemplate:l()},new go.Binding(\"angle\").makeTwoWay(),i(go.Panel,\"Auto\",{name:\"PANEL\"},new go.Binding(\"desiredSize\",\"size\",go.Size.parse).makeTwoWay(go.Size.stringify),i(go.Shape,\"RoundedRectangle\",{portId:\"\",name:\"PIPE\",fromLinkable:!0,toLinkable:!0,cursor:\"pointer\",fill:\"white\",strokeWidth:1,stroke:\"#DCDEE2\"},new go.Binding(\"figure\"),new go.Binding(\"stroke\"),new go.Binding(\"strokeDashArray\"),new go.Binding(\"strokeWidth\"),new go.Binding(\"fill\")),i(go.TextBlock,(t={font:\"bold 11pt Helvetica, Arial, sans-serif\",margin:8,wrap:go.TextBlock.WrapFit,stroke:\"#343434\",textAlign:\"center\",alignment:go.Spot.Center,verticalAlignment:go.Spot.Center},Object(n[\"a\"])(t,\"wrap\",go.TextBlock.WrapFit),Object(n[\"a\"])(t,\"minSize\",new go.Size(126,27)),Object(n[\"a\"])(t,\"maxSize\",new go.Size(126,NaN)),t),new go.Binding(\"text\").makeTwoWay())))}function l(){return i(go.Adornment,\"Auto\",i(go.Shape,{fill:null,stroke:\"deepskyblue\",strokeWidth:1.5,strokeDashArray:[4,2]}),i(go.Placeholder))}function h(t){var e=t.subject.part;u(e)}function u(t){return o.showEditNode(t),t}function c(){return i(go.Link,{selectable:!1},{relinkableFrom:!0,relinkableTo:!0,reshapable:!0},{routing:go.Link.AvoidsNodes,curve:go.Link.JumpOver,corner:5,toShortLength:4},new go.Binding(\"layerName\",\"color\"),new go.Binding(\"zOrder\"),i(go.Shape,{isPanelMain:!0,stroke:\"#D5D5D5\",strokeWidth:2}),i(go.Shape,{isPanelMain:!0,stroke:\"#D5D5D5\",strokeWidth:1,name:\"PIPE\"}),i(go.Shape,{toArrow:\"standard\",stroke:null,fill:\"#D5D5D5\"},new go.Binding(\"stroke\"),new go.Binding(\"fill\"),new go.Binding(\"zOrder\")),i(go.Panel,\"Auto\",i(go.Shape,{fill:null,stroke:null},new go.Binding(\"fill\",\"pFill\"),new go.Binding(\"zOrder\")),i(go.TextBlock,{textAlign:\"center\",font:\"10pt helvetica, arial, sans-serif\",stroke:\"#555555\",margin:4},new go.Binding(\"text\",\"text\"),new go.Binding(\"zOrder\"))))}function f(t,e){var i=[];if(!t)return i;var n=p();i.push(n);var o=t.length-1;e&&(o=t.length);for(var s=0;s0){var a=b(s);g(a)}}},this.diagram=s(t),this}e[\"a\"]=o},a601:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-international\",use:\"icon-international-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},a75d:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-zip\",use:\"icon-zip-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},aa3a:function(t,e,i){\"use strict\";i.d(e,\"e\",(function(){return o})),i.d(e,\"c\",(function(){return r})),i.d(e,\"d\",(function(){return s})),i.d(e,\"a\",(function(){return a})),i.d(e,\"f\",(function(){return l})),i.d(e,\"b\",(function(){return h}));var n=i(\"b775\");function o(t){return Object(n[\"a\"])({url:\"/system/dict/data/list\",method:\"get\",params:t})}function r(t){return Object(n[\"a\"])({url:\"/system/dict/data/\"+t,method:\"get\"})}function s(t){return Object(n[\"a\"])({url:\"/system/dict/data/type/\"+t,method:\"get\"})}function a(t){return Object(n[\"a\"])({url:\"/system/dict/data\",method:\"post\",data:t})}function l(t){return Object(n[\"a\"])({url:\"/system/dict/data\",method:\"put\",data:t})}function h(t){return Object(n[\"a\"])({url:\"/system/dict/data/\"+t,method:\"delete\"})}},ab49:function(t,e,i){\"use strict\";i(\"3b39\")},ad41:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-date-range\",use:\"icon-date-range-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},adba:function(t,e,i){t.exports=i.p+\"static/img/dark.412ca67e.svg\"},ae6e:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-people\",use:\"icon-people-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},afbd:function(t,e,i){},b0b2:function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"MutipleSelectPop\"},[i(\"div\",{staticClass:\"dialog_left\"},[i(\"div\",{staticClass:\"left_top\"},[i(\"Input\",{attrs:{search:\"\",placeholder:t.tree.placeholder},on:{\"on-change\":t.inputchange,\"on-keydown\":t.inputkeydown,\"on-search\":t.inputsearch},model:{value:t.tree.search,callback:function(e){t.$set(t.tree,\"search\",e)},expression:\"tree.search\"}})],1),i(\"div\",{staticClass:\"left_center\"},[t.treeLoading?i(\"div\",{staticClass:\"complex-spin-fix\"},[i(\"Spin\",{attrs:{fix:\"\"}},[i(\"Icon\",{staticClass:\"demo-spin-icon-load\",attrs:{type:\"ios-loading\",size:\"30\"}})],1)],1):t._e(),i(\"Tree\",{ref:\"Tree\",attrs:{data:t.treeLists,\"show-checkbox\":\"\",query:t.tree.search,queryStyle:t.queryStyle},on:{\"on-select-change\":t.getSelectedNodes,\"on-check-change\":t.getCheckedNodes}})],1)]),i(\"div\",{staticClass:\"dialog_center\"},[t.tableLoading?i(\"div\",{staticClass:\"complex-spin-fix\"},[i(\"Spin\",{attrs:{fix:\"\"}},[i(\"Icon\",{staticClass:\"demo-spin-icon-load\",attrs:{type:\"ios-loading\",size:\"30\"}})],1)],1):t._e(),i(\"div\",{staticClass:\"dialog_center_top\"},[i(\"div\",{staticClass:\"dialog_center_top_fix\"},[i(\"Input\",{attrs:{search:\"\",placeholder:t.table.placeholder},on:{\"on-change\":t.inputchange,\"on-keydown\":t.inputkeydown,\"on-search\":t.inputsearch},model:{value:t.table.search,callback:function(e){t.$set(t.table,\"search\",e)},expression:\"table.search\"}})],1)]),i(\"div\",[i(\"Tabs\",{attrs:{size:\"small\",animated:!1},on:{\"on-click\":t.tabClick}},t._l(t.TabPaneData,(function(e,n){return i(\"TabPane\",{key:n,attrs:{label:e.tab}},[i(\"div\",{staticClass:\"dialog_center_page\"},[i(\"div\",[i(\"Table\",{ref:\"Table\",refInFor:!0,attrs:{border:\"\",columns:e.columns,\"highlight-row\":!0,clickTimerTask:300,height:e.height,data:e.list},on:{\"on-select\":t.Onselect,\"on-select-cancel\":t.onSelectCancel,\"on-select-all\":t.onSelectAll,\"on-select-all-cancel\":t.onSelectAllCancel,\"on-selection-change\":t.onSelectChange,\"on-row-dblclick\":t.rowdbClick,\"on-row-click\":t.rowClick}})],1),i(\"div\",{staticClass:\"dialog_p10\"},[i(\"Page\",{attrs:{total:e.total,\"page-size\":e.pageSize,current:e.pageNum,\"page-size-opts\":e.pageOptions,\"show-total\":\"\",size:\"small\"},on:{\"on-change\":t.pageChange}})],1)])])})),1)],1)]),0===t.index?i(\"div\",{staticClass:\"dialog-operation\"},[i(\"div\",[t.isUse?i(\"Button\",{staticClass:\"operatebtn\",attrs:{type:\"primary\",ghost:\"\"},on:{click:t.operationTwo}},[t._v(\"选择部门\")]):t._e(),i(\"Button\",{staticClass:\"operatebtn\",attrs:{type:\"primary\",ghost:\"\"},on:{click:t.operation}},[t._v(\"选择人员\")])],1)]):t._e(),i(\"div\",{staticClass:\"dialog_right\"},[i(\"div\",{staticClass:\"left_top right_top\"},[i(\"div\",[t._v(\"已选中(\"+t._s(t.resultMessage.total||0)+\")\")]),i(\"div\",[i(\"i\",{staticClass:\"el-icon-delete\",on:{click:t.delecFun}})])]),i(\"div\",{staticClass:\"right_center\"},[t.resultMessage.list.length>0?i(\"ul\",t._l(t.resultMessage.list,(function(e,n){return i(\"li\",{key:n},[i(\"p\",[t._v(t._s(e.string))]),i(\"i\",{staticClass:\"iconfont iconbj_delete2\",on:{click:function(i){return t.deleteLi(n,e)}}})])})),0):t._e()])])])},o=[],r=i(\"2909\"),s=i(\"53ca\"),a=(i(\"b64b\"),i(\"841c\"),i(\"ac1f\"),i(\"1276\"),i(\"159b\"),i(\"c740\"),i(\"a9e3\"),i(\"d81d\"),i(\"4de4\"),i(\"99af\"),i(\"a434\"),i(\"a630\"),i(\"3ca3\"),i(\"6062\"),i(\"d3b7\"),i(\"ddb0\"),i(\"13d5\"),i(\"caad\"),i(\"2532\"),i(\"ff02\")),l={name:\"Mutiple\",props:{resultData:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:!1},open:{type:Boolean,default:!1},icon_delect:{type:String,default:\"iconfont icon-bj_delete\"},checkedList:{type:Array,default:function(){return[]}},isUse:{type:Boolean,default:!0},isMutiple:{type:Boolean,default:!0},isCallInterface:{type:Boolean,default:!1}},data:function(){return{tableLoading:!1,treeLoading:!1,tree:{placeholder:\"可搜索店仓/部门\",search:\"\"},table:{placeholder:\"直接输入人员姓名搜索\",search:\"\"},columns:[],treeNewData:[],showTree:this.open,componentt:[{tab:\"筛选结果\",columns:[{key:\"NAME\",title:\"用户名\"},{key:\"ENAME\",title:\"用户姓名\"}],list:[],total:0,pageSize:10,pageNum:1,pageOptions:[10,20,50,100],height:340}],resultRightData:{total:0,list:[]},templateName:\"\",index:0,queryStyle:{color:\"#fd6442\"},selectRow:[],selectDatas:{},obj:{}}},computed:{treeLists:function(){return this.treeNewData},TabPaneData:function(){return this.isMutiple,this.componentt},resultMessage:function(){return this.resultRightData}},watch:{isCallInterface:{handler:function(t,e){t?(this.componentt[0].pageNum=1,this.getTreeData(),this.resultData.list&&(this.resultRightData=this.deepCopy(this.resultData))):(this.selectRow.length>0&&(this.selectRow=[]),Object.keys(this.selectDatas).length>0&&(this.selectDatas={}),this.table.search&&(this.table.search=\"\"))}}},methods:{deepCopy:function(t){var e=Array.isArray(t)?[]:{};for(var i in t)t.hasOwnProperty(i)&&(\"object\"===Object(s[\"a\"])(t[i])&&null!==t[i]?e[i]=this.deepCopy(t[i]):e[i]=t[i]);return e},getSelectedNodes:function(t){var e=this;if(t.length>0){this.obj={},this.saveObj=t[0];var i=this,n=\"\";-1!==t[0].ID.indexOf(\".\")?(n=t[0].ID.split(\".\")[1],n=parseInt(n)):n=parseInt(t[0].ID),null===t[0].CP_C_ORGUP_ID?this.findUser({}):(\"CP_C_STORE_ID\"===t[0].TYPE&&(this.obj.CP_C_STORE_ID=\"in(\"+n+\")\",i.findUser(i.obj)),\"CP_C_HRORG_ID\"===t[0].TYPE&&Object(a[\"h\"])({CP_C_ORGUP_ID:n}).then((function(t){if(0===t.data.resultCode){var n=\"in (\",o=\"in (\";t.data.data.CP_C_HRORG&&t.data.data.CP_C_HRORG.length>0&&(t.data.data.CP_C_HRORG.forEach((function(t){n+=t.ID+\",\"})),t.data.data.CP_C_HRORG.length>0&&(i.obj.CP_C_HRORG_ID=n.substring(0,n.length-1)+\")\")),t.data.data.CP_C_STORE&&t.data.data.CP_C_STORE.length>0&&(t.data.data.CP_C_STORE.forEach((function(t){o+=t.ID+\",\"})),t.data.data.CP_C_STORE.length>0&&(i.obj.CP_C_STORE_ID=o.substring(0,o.length-1)+\")\")),i.findUser(i.obj)}else e.$Modal.fcError({title:\"错误提示\",content:t.data.resultMsg})})))}this.$emit(\"on-select-tree\",t,this)},getCheckedNodes:function(t){this.$emit(\"on-change-tree\",t,this)},tabClick:function(t){this.index=t,this.$emit(\"on-click-tab\",t,this)},pageChange:function(t){this.$emit(\"on-change-page\",t,this),this.componentt[0].pageNum=t;var e=Object.assign(this.obj,{page:t,pageSize:10});\"\"!==this.table.search&&(e.ENAME=this.table.search),this.findUser(e)},pageChangeSize:function(t){this.$emit(\"on-change-pageSize\",t,this),this.componentt[0].pageSize=t;var e=Object.assign(this.obj,{page:1,pageSize:t});\"\"!==this.table.search&&(e.ENAME=this.table.search),this.findUser(e)},rowdbClick:function(t,e){var i=Object.assign({},t);if(this.isMutiple){var n=Object.assign({approve_type:4},t);if(n.string=n.ENAME,this.resultRightData.list&&this.resultRightData.list.length>0){var o=this.resultRightData.list.findIndex((function(t){return n.ID===t.ID||n.ID===Number(t.approve_value)}));-1===o?this.resultRightData.list.push(n):this.$message({message:n.ENAME+\"已经选择过了,请不要重复选择!\",type:\"warning\"})}else this.$set(this.resultRightData,\"list\",[n])}else i.string=i.ENAME,this.resultRightData.list?(this.resultRightData.list=[],this.resultRightData.list.push(i)):this.$set(this.resultRightData,\"list\",[i]);this.resultRightData.total?this.resultRightData.total=this.resultRightData.list.length:this.$set(this.resultRightData,\"total\",this.resultRightData.list.length),this.$emit(\"getResult\",this.resultRightData),this.$refs.Table[0].clearCurrentRow(),this.$emit(\"on-row-dblclick\",t,e,this)},rowClick:function(t,e){this.isMutiple||(this.selectDatas=Object.assign(this.selectDatas,t)),this.$emit(\"on-row-click\",t,e,this)},Onselect:function(t,e){this.isMutiple&&(this.componentt[0].list.map((function(t){e.ID===t.ID&&(t._checked=!0)})),this.selectRow=[],this.selectRow=t),this.$emit(\"on-select\",t,e)},onSelectCancel:function(t,e){this.componentt[0].list.map((function(t){e.ID===t.ID&&(t._checked=!1)})),this.selectRow=[],this.selectRow=t,this.$emit(\"on-select-cancel\",t,e)},onSelectAll:function(t){this.selectRow=[],this.componentt[0].list.map((function(t){t._checked=!0})),this.selectRow=t,this.$emit(\"on-select-all\",t)},onSelectAllCancel:function(t){this.componentt[0].list.map((function(t){t._checked=!1})),this.selectRow=[],this.$emit(\"on-select-all-cancel\",t)},onSelectChange:function(t){this.$emit(\"on-select-change\",t)},inputchange:function(t){this.table.search=t.target.value,this.$emit(\"on-change\",t,this)},inputkeydown:function(t){this.$emit(\"on-keydown\",t,this)},inputsearch:function(t){var e=Object.assign(this.obj,{page:1,pageSize:10,ENAME:t});this.findUser(e),this.$emit(\"on-search\",t,this)},operationTwo:function(){var t=this,e=this.$refs.Tree.getCheckedNodes();e=e.filter((function(t){return\"全部\"!==t.title})),this.isMutiple&&(e.length>0?(this.resultRightData.total?this.$set(this.resultRightData,\"total\",this.resultData.total+e.length):this.$set(this.resultRightData,\"total\",e.length),e.map((function(e){var i=Object.assign({approve_type:2},e);if(i.string=e.ENAME,t.resultRightData.list&&t.resultRightData.list.length>0){var n=t.resultRightData.list.findIndex((function(t){return e.ID===t.ID||e.ID===Number(t.approve_value)}));-1===n?t.resultRightData.list.push(i):t.$message({message:e.ENAME+\"已经选择过了,请不要重复选择!\",type:\"warning\"})}else t.$set(t.resultRightData,\"list\",[i])}))):his.$message({message:\"请选择部门!\",type:\"warning\"}),this.getTreeData()),this.selectRow.length>0&&(this.selectRow=[]),Object.keys(this.selectDatas).length>0&&(this.selectDatas={}),this.$emit(\"getResult\",this.resultRightData),this.$emit(\"on-transfer-two\",e,this)},operation:function(){var t=this;if(this.isMutiple)this.selectRow.length>0?(this.selectRow.map((function(e){var i=Object.assign({approve_type:4},e);if(i.string=e.ENAME,t.resultRightData.list&&t.resultRightData.list.length>0){var n=t.resultRightData.list.findIndex((function(t){return e.ID===t.ID||e.ID===Number(t.approve_value)}));-1===n?t.resultRightData.list.push(i):t.$message({message:e.ENAME+\"已经选择过了,请不要重复选择!\",type:\"warning\"})}else t.$set(t.resultRightData,\"list\",[i])})),this.resultRightData.total?this.resultRightData.total=this.resultRightData.list.length:this.$set(this.resultRightData,\"total\",this.resultRightData.list.length)):this.$message({message:\"请选择人员\",type:\"warning\"});else{if(0===Object.keys(this.selectDatas).length)return void this.$message({message:\"请选择人员\",type:\"warning\"});this.resultRightData.total?this.resultRightData.total=1:this.$set(this.resultRightData,\"total\",1);var e=Object.assign({},this.selectDatas);e.string=e.ENAME,this.resultRightData.list?(this.resultRightData.list=[],this.resultRightData.list.push(e)):this.$set(this.resultRightData,\"list\",[e])}this.componentt[0].list.map((function(t){t._checked=!1})),this.componentt[0].list=this.componentt[0].list.concat([]),this.selectRow.length>0&&(this.selectRow=[]),Object.keys(this.selectDatas).length>0&&(this.selectDatas={}),this.$emit(\"getResult\",this.resultRightData),this.$emit(\"on-transfer\",this)},deleteLi:function(t,e){var i=this,n=this.$refs.Tree.getCheckedNodes();n&&n.length>0&&n.map((function(t){t.ID===e.ID&&i.$refs.Tree.handleCheck({checked:!1,nodeKey:t.nodeKey})}));var o=this.TabPaneData[0].list;o.map((function(t,i){t.ID===e.ID&&(t._checked=!1)})),this.resultRightData.list.splice(t,1),this.resultRightData.total=this.resultRightData.list.length,this.$emit(\"getResult\",this.resultRightData),this.$emit(\"on-delectli\",t,e,this)},treeOpen:function(t){this.showTree=!t,this.treeNewData.forEach((function(t){t.expand=!t.expand}))},delecFun:function(){var t=this,e=this.$refs.Tree.getCheckedNodes();e&&e.length>0&&e.map((function(e){t.$refs.Tree.handleCheck({checked:!1,nodeKey:e.nodeKey})}));var i=this.TabPaneData[0].list;i&&i.length>0&&i.map((function(t,e){t._checked=!1})),this.$emit(\"on-deleBtn\",this),this.resultRightData.total=0,this.resultRightData.list=[],this.componentt[0].list.map((function(t){t._checked=!1})),this.componentt[0].list=this.componentt[0].list.concat([]),this.$emit(\"getResult\",this.resultRightData)},findUser:function(t){var e=this;this.tableLoading=!0,Object(a[\"j\"])(t).then((function(t){e.tableLoading=!1;var i=t;0===t.code&&(i.data&&e.transferTbody(i.data),i.datas&&e.transferTbody(i.datas))}))},transferTbody:function(t){var e=this;this.componentt[0].total=t.totalRowCount,this.componentt[0].pageOptions=t.selectrange,this.componentt[0].list=[],t.row.map((function(t){var i={};Object.keys(t).map((function(e){i[e]=t[e].val})),Object.assign({},i),e.componentt[0].list.push(i)}))},getTreeData:function(){var t=this;this.tree_loading=!0,Object(a[\"i\"])().then((function(e){if(t.tree_loading=!1,0===e.resultCode){console.log(345678),t.treeNewData=[];var i=[];e.data.records.length>0&&(console.log(3456788),e.data.records.forEach((function(t){var e=Object.assign(t);i.push(e),null!==t[\"CP_C_ORGUP_ID\"]&&\"\"!==t[\"CP_C_ORGUP_ID\"]||Object.assign({},t)})),t.treeNewData=t.arrayTransTree(i,\"CP_C_ORGUP_ID\"),console.log(t.treeNewData)),t.findUser({})}}))},arrayTransTree:function(t,e){var i=[],n=[];if(t.map((function(t){t.expand=!1,t.title=t.ENAME,!t[e]||-1!==t[e].indexOf(\".\")&&!t[e].split(\".\")[1]?i.push(t):n.push(t)})),i.length<1){var o=this.findTreeRootFirstChild(t,e),s=o.map((function(t){return t[e]})),a=Array.from(new Set(Object(r[\"a\"])(s)));return 1===a.length?(i=[{CP_C_ORGUP_ID:null,ECODE:\"00000\",ENAME:\"全部\",ID:a[0],MIXNAME:\"[00000]全部\",ORGTYPE:\"IN\",TYPE:\"CP_C_HRORG_ID\",title:\"全部\"}],this.translator(i,n,e),i):void this.$message({message:\"数据有问题,请检查...\",type:\"warning\"})}return this.translator(i,n,e),i},translator:function(t,e,i){var n=this,o=[];e.map((function(t){var e=Object.assign({},t);o.push(e)})),t.map((function(t){e.map((function(e,r){e[i]===t.ID&&(o.splice(r,1),n.translator([e],o,i),t.children?t.children.push(e):t.children=[e])}))}))},treeTransArray:function(t,e){return t.reduce((function t(i,n){return i.push(n),n[e]&&n[e].length>0&&n[e].reduce(t,i),i}),[]).map((function(t){return t[e]=[],t}))},findTreeRootFirstChild:function(t,e){var i=[],n=[];return i=t.map((function(t){return t[\"ID\"]})),t.map((function(t){i.includes(t[e])||n.push(t)})),n},handleCheckChange:function(){}},mounted:function(){},destroyed:function(){this.selectRow.length>0&&(this.selectRow=[]),Object.keys(this.selectDatas).length>0&&(this.selectDatas={}),this.table.search&&(this.table.search=\"\")}},h=l,u=(i(\"7d57\"),i(\"2877\")),c=Object(u[\"a\"])(h,n,o,!1,null,null,null);e[\"a\"]=c.exports},b34b:function(t,e,i){},b470:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-phone\",use:\"icon-phone-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},b6f9:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-example\",use:\"icon-example-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},b775:function(t,e,i){\"use strict\";i.d(e,\"b\",(function(){return f}));var n=i(\"53ca\"),o=(i(\"b64b\"),i(\"fb6a\"),i(\"d3b7\"),i(\"caad\"),i(\"2532\"),i(\"2b3d\"),i(\"3ca3\"),i(\"ddb0\"),i(\"bc3a\")),r=i.n(o),s=i(\"5c96\"),a=i(\"4360\"),l=i(\"5f87\"),h={401:\"认证失败,无法访问系统资源\",403:\"当前操作没有权限\",404:\"访问资源不存在\",default:\"系统未知错误,请反馈给管理员\"},u=i(\"c38a\");r.a.defaults.headers[\"Content-Type\"]=\"application/json;charset=utf-8\",r.a.defaults.headers[\"accountName\"]=\"guest\";var c=r.a.create({baseURL:\"/prod-api\",timeout:1e4});function f(t,e,i){return c.post(t,e,{transformRequest:[function(t){return Object(u[\"h\"])(t)}],headers:{\"Content-Type\":\"application/x-www-form-urlencoded\"},responseType:\"blob\"}).then((function(t){var e=t,n=new Blob([e]);if(\"download\"in document.createElement(\"a\")){var o=document.createElement(\"a\");o.download=i,o.style.display=\"none\",o.href=URL.createObjectURL(n),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}else navigator.msSaveBlob(n,i)})).catch((function(t){console.error(t)}))}c.interceptors.request.use((function(t){var e=!1===(t.headers||{}).isToken;if(Object(l[\"a\"])()&&!e&&(t.headers[\"Authorization\"]=\"Bearer \"+Object(l[\"a\"])()),\"get\"===t.method&&t.params){for(var i=t.url+\"?\",o=0,r=Object.keys(t.params);o'});s.a.add(a);e[\"default\"]=a},b895:function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t._items.hidden?t._e():i(\"div\",{staticClass:\"ItemComponentRoot\"},[i(\"span\",{staticClass:\"itemLabel\"},[t._items.required?i(\"span\",{staticClass:\"label-tip\"},[t._v(\"*\")]):t._e(),t._v(\" \"+t._s(t._items.title)+\": \")]),i(\"div\",{staticClass:\"itemComponent\"},[\"input\"===t._items.type?i(\"Input\",{attrs:{type:t._items.props.type,clearable:t._items.props.clearable,disabled:t._items.props.disabled,readonly:t._items.props.readonly,rows:t._items.props.rows,autosize:t._items.props.autosize,number:t._items.props.number,autofocus:t._items.props.autofocus,placeholder:t._items.props.placeholder,size:t._items.props.size,maxlength:t._items.props.maxlength,icon:t._items.props.icon,regx:t._items.props.regx,\"on-click\":\"inputClick\",\"on-blur\":\"inputBlur\"},on:{\"on-change\":t.inputChange,\"on-enert\":t.inputEnter,\"on-focus\":t.inputFocus,\"on-keyup\":t.inputKeyUp,\"on-keydown\":t.inputKeyDown,\"on-keypress\":t.inputKeyPress,\"on-regx-check\":t.inputRegxCheck},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}}):t._e(),\"checkbox\"===t._items.type?i(\"Checkbox\",{attrs:{disabled:t._items.props.disabled,size:t._items.props.size,circle:t._items.props.circle},on:{\"on-change\":t.checkBoxChange},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}}):t._e(),\"select\"===t._items.type?i(\"Select\",{attrs:{clearable:t._items.props.clearable,multiple:t._items.props.multiple,\"multiple-type\":t._items.props.multipleType,disabled:t._items.props.disabled,placeholder:t._items.props.placeholder,\"not-found-text\":t._items.props[\"not-found-text\"],\"label-in-value\":t._items.props[\"label-in-value\"],placement:t._items.props.placement,transfer:t._items.props.transfer},on:{\"on-change\":t.selectChange,\"on-clear\":t.selectClear,\"on-open-change\":t.selectOpenChange},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}},t._l(t._items.options,(function(e){return i(\"Option\",{key:e.value,attrs:{value:e.value,disabled:e.disabled,label:e.label}},[t._v(t._s(e.label))])})),1):t._e(),\"Switch\"===t._items.type?i(\"i-switch\",{on:{\"on-change\":t.SwitchChange},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}}):t._e(),\"DatePicker\"===t._items.type?i(\"DatePicker\",{attrs:{type:t._items.props.type,transfer:t._items.props.transfer,format:t._items.props.format,placement:t._items.props.placement,placeholder:t._items.props.placeholder,options:t._items.props.options,open:t._items.props.open,confirm:t._items.props.confirm,size:t._items.props.size,disabled:t._items.props.disabled,clearable:t._items.props.clearable,readonly:t._items.props.readonly,editable:t._items.props.editable},on:{\"on-change\":function(e,i,n){return t.datePickerChange(t._items.value=e,i,n,t._items.props.type)},\"on-clear\":t.datePickerClear},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}}):t._e(),\"DropDownSelectFilter\"!==t._items.type||t._items.props.single?t._e():i(\"DropMultiSelectFilter\",{attrs:{data:t._items.props.data,single:t._items.props.single,\"total-row-count\":t._items.props.totalRowCount,\"page-size\":t._items.props.pageSize,\"auto-data\":t._items.props.AutoData,disabled:t._items.props.disabled,hidecolumns:t._items.props.hidecolumns,\"data-empty-message\":t._items.props.dataEmptyMessage,\"default-selected\":t._items.props.defaultSelected,transfer:t._items.props.transfer,columnsKey:t._items.props.columnsKey,showColnameKey:t._items.props.showColnameKey,placeholder:t._items.props.placeholder},on:{\"on-fkrp-selected\":t.fkrpSelected,\"on-page-change\":t.pageChange,\"on-input-value-change\":t.inputValueChange,\"on-focus\":t.fkrpSelectedInputFocus,\"on-blur\":t.fkrpSelectedInputBlur,\"on-keyup\":t.fkrpSelectedInputKeyup,\"on-keydown\":t.fkrpSelectedInputKeydown,\"on-popper-show\":t.fkrpSelectedPopperShow,\"on-popper-hide\":t.fkrpSelectedPopperHide,\"on-clear\":t.fkrpSelectedClear}}),\"DropDownSelectFilter\"===t._items.type&&t._items.props.single?i(\"DropDownSelectFilter\",{attrs:{data:t._items.props.data,single:t._items.props.single,\"total-row-count\":t._items.props.totalRowCount,\"page-size\":t._items.props.pageSize,\"auto-data\":t._items.props.AutoData,disabled:t._items.props.disabled,hidecolumns:t._items.props.hidecolumns,\"data-empty-message\":t._items.props.dataEmptyMessage,\"default-selected\":t._items.props.defaultSelected,transfer:t._items.props.transfer,columnsKey:t._items.props.columnsKey,showColnameKey:t._items.props.showColnameKey,placeholder:t._items.props.placeholder},on:{\"on-fkrp-selected\":t.fkrpSelected,\"on-page-change\":t.pageChange,\"on-input-value-change\":t.inputValueChange,\"on-focus\":t.fkrpSelectedInputFocus,\"on-blur\":t.fkrpSelectedInputBlur,\"on-keyup\":t.fkrpSelectedInputKeyup,\"on-keydown\":t.fkrpSelectedInputKeydown,\"on-popper-show\":t.fkrpSelectedPopperShow,\"on-popper-hide\":t.fkrpSelectedPopperHide,\"on-clear\":t.fkrpSelectedClear}}):t._e(),\"selectInput\"===t._items.type?i(\"div\",{staticClass:\"complex-input\"},[i(\"Input\",{attrs:{readonly:t._items.props.readonly},on:{\"on-change\":t.inputChange,\"on-enert\":t.inputEnter,\"on-focus\":t.inputFocus,\"on-keyup\":t.inputKeyUp,\"on-keydown\":t.inputKeyDown,\"on-keypress\":t.inputKeyPress,\"on-regx-check\":t.inputRegxCheck},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}},[t._items.slot?i(\"Select\",{staticStyle:{width:\"60px\"},attrs:{slot:\"prepend\",transfer:!0},on:{\"on-change\":t.selectChange},slot:\"prepend\",model:{value:t._items.slotValue,callback:function(e){t.$set(t._items,\"slotValue\",e)},expression:\"_items.slotValue\"}},[i(\"Option\",{attrs:{value:0}},[t._v(\"指定\")]),i(\"Option\",{attrs:{value:1}},[t._v(\"不限次数\")])],1):t._e()],1)],1):t._e()],1)])},o=[],r={type:\"input\",title:\"\",field:\"\",value:\"\",props:{type:\"text\",clearable:!1,disabled:!1,readonly:!1,rows:4,autosize:!1,number:!1,autofocus:!1,autocomplete:\"off\",placeholder:\"请输入\",size:\"default\",maxlength:null,icon:null,prefix:null,suffix:null,\"element-id\":null,spellcheck:!1,wrap:\"soft\",regx:null},event:{enter:function(t,e){},click:function(t,e){},change:function(t,e){},focus:function(t,e){},blur:function(t,e){},keyup:function(t,e){},keydown:function(t,e){},keypress:function(t,e){},search:function(t,e){},regxCheck:function(t,e,i){}}},s={type:\"select\",title:\"\",field:\"\",value:\"\",options:[],props:{multiple:!1,multipleType:!1,disabled:!1,clearable:!0,size:\"default\",placeholder:\"请选择\",\"not-found-text\":\"无匹配数据\",\"label-in-value\":!1,placement:\"bottom\",transfer:!0}},a={type:\"Switch\",title:\"\",field:\"\",value:!1,props:{}},l={type:\"radiobox\",title:\"\",field:\"\",value:!1,props:{size:\"default\",disabled:!1}},h={type:\"checkbox\",title:\"\",field:\"\",value:!1,props:{size:\"default\",disabled:!1,circle:!1},event:{change:function(t,e){}}},u={type:\"DatePicker\",field:\"\",title:\"活动日期\",value:\"\",props:{type:\"datetimerange\",format:\"yyyy-MM-dd HH:mm\",placement:\"bottom-start\",placeholder:\"请选择获得时间\",options:{disabledDate:function(t){return t&&t.valueOf()>Date.now()}},open:null,confirm:!1,size:\"default\",disabled:!1,clearable:!0,readonly:!1,editable:!1,transfer:!0}},c={type:\"DropDownSelectFilter\",field:\"\",title:\"\",value:\"\",props:{placeholder:\"请选择\",single:!0,data:{},totalRowCount:0,pageSize:10,AutoData:[],columns:[],dataEmptyMessage:\"暂无数据\",defaultSelected:[],transfer:!0,columnsKey:[]}},f={type:\"selectInput\",title:\"\",field:\"\",value:\"\",slotfiled:\"\",slotValue:\"\",props:{type:\"text\",clearable:!1,disabled:!1,readonly:!1,rows:4,autosize:!1,number:!1,autofocus:!1,autocomplete:\"off\",placeholder:\"请输入\",size:\"default\",maxlength:null,icon:null,prefix:null,suffix:null,\"element-id\":null,spellcheck:!1,wrap:\"soft\",regx:null},event:{enter:function(t,e){},click:function(t,e){},change:function(t,e){},focus:function(t,e){},blur:function(t,e){},keyup:function(t,e){},keydown:function(t,e){},keypress:function(t,e){},search:function(t,e){},regxCheck:function(t,e,i){}}},d={DatePicker:u,checkbox:h,radiobox:l,Switch:a,select:s,input:r,selectInput:f,DropDownSelectFilter:c},p=d,g={name:\"ItemComponent\",props:{items:{type:Object,default:function(){return{}}}},computed:{_items:function(){var t=JSON.parse(JSON.stringify(this.items));return t.props=Object.assign({},p[t.type].props,this.items.props),t.event=Object.assign({},this.items.event),\"DatePicker\"===t.type&&(\"datetimerange\"===t.props.type||\"daterange\"===t.props.type?t.value||(t.value=[]):t.value=new Date),t}},methods:{valueChange:function(t){t&&\"select\"===t?this.$emit(\"inputChange\",this._items.slotValue,this._items,t):this.$emit(\"inputChange\",this._items.value,this._items)},SwitchChange:function(){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(event)},inputChange:function(t,e){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,e)},inputEnter:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"enter\")&&\"function\"===typeof this._items.event.enter&&this._items.event.enter(t,e)},inputClick:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"click\")&&\"function\"===typeof this._items.event.click&&this._items.event.click(t,e)},inputFocus:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"focus\")&&\"function\"===typeof this._items.event.focus&&this._items.event.focus(t,e)},inputBlur:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"blur\")&&\"function\"===typeof this._items.event.blur&&this._items.event.blur(t,e)},inputKeyUp:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keyup\")&&\"function\"===typeof this._items.event.keyup&&this._items.event.keyup(t,e)},inputKeyDown:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keydown\")&&\"function\"===typeof this._items.event.keydown&&this._items.event.keydown(t,e)},inputKeyPress:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keypress\")&&\"function\"===typeof this._items.event.keypress&&this._items.event.keypress(t,e)},inputRegxCheck:function(t,e,i){Object.prototype.hasOwnProperty.call(this._items.event,\"regxCheck\")&&\"function\"===typeof this._items.event.regxCheck&&this._items.event.regxCheck(t,e,i)},checkBoxChange:function(t,e){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,e)},selectChange:function(t,e){\"selectInput\"===this._items.type?(this._items.slotValue=t,this.valueChange(\"select\")):(this._items.value=t,this.valueChange()),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,e)},selectClear:function(t){this._items.value=null,this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"clear\")&&\"function\"===typeof this._items.event.clear&&this._items.event.clear(t)},selectOpenChange:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"openChange\")&&\"function\"===typeof this._items.event.openChange&&this._items.event.openChange(t,e)},datePickerChange:function(t,e,i){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,i)},datePickerClear:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"clear\")&&\"function\"===typeof this._items.event.clear&&this._items.event.clear(t)},timePickerChange:function(t,e,i){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,i)},timePickerClear:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"clear\")&&\"function\"===typeof this._items.event.clear&&this._items.event.clear(t)},fkrpSelected:function(t,e){this._items.value=t,this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"fkrpSelected\")&&\"function\"===typeof this._items.event.fkrpSelected&&this._items.event.fkrpSelected(t,e)},inputValueChange:function(t,e){this._items.value=t,Object.prototype.hasOwnProperty.call(this._items.event,\"inputValueChange\")&&\"function\"===typeof this._items.event.inputValueChange&&this._items.event.inputValueChange(t,e)},fkrpSelectedClear:function(t){this._items.value=void 0,this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"clear\")&&\"function\"===typeof this._items.event.clear&&this._items.event.clear(t),Object.prototype.hasOwnProperty.call(this._items.event,\"inputValueChange\")&&\"function\"===typeof this._items.event.inputValueChange&&this._items.event.inputValueChange(\"\",t)},pageChange:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"pageChange\")&&\"function\"===typeof this._items.event.pageChange&&this._items.event.pageChange(t,e)},fkrpSelectedInputFocus:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"focus\")&&\"function\"===typeof this._items.event.focus&&this._items.event.focus(t,e)},fkrpSelectedInputBlur:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"blur\")&&\"function\"===typeof this._items.event.blur&&this._items.event.blur(t,e)},fkrpSelectedInputKeyup:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keyup\")&&\"function\"===typeof this._items.event.keyup&&this._items.event.keyup(t,e)},fkrpSelectedInputKeydown:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keydown\")&&\"function\"===typeof this._items.event.keydown&&this._items.event.keydown(t,e)},fkrpSelectedPopperShow:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"on-show\")&&\"function\"===typeof this._items.event[\"on-show\"]&&this._items.event[\"on-show\"](t)},fkrpSelectedPopperHide:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"on-popper-hide\")&&\"function\"===typeof this._items.event[\"on-popper-hide\"]&&this._items.event[\"on-popper-hide\"](t)},attachFilterChange:function(t,e){this._items.value=t,this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"popper-value\")&&\"function\"===typeof this._items.event[\"popper-value\"]&&this._items.event[\"popper-value\"](e,t,\"change\",this.index),Object.prototype.hasOwnProperty.call(this._items.event,\"inputValueChange\")&&\"function\"===typeof this._items.event.inputValueChange&&this._items.event.inputValueChange(t,e)},attachFilterSelected:function(t,e){this._items.value=t.label,this._items.props.selected=t.value,Object.prototype.hasOwnProperty.call(this._items.event,\"popper-value\")&&\"function\"===typeof this._items.event[\"popper-value\"]&&this._items.event[\"popper-value\"](e,t.label,t.value,this.index)},attachFilterInputFocus:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"focus\")&&\"function\"===typeof this._items.event.focus&&this._items.event.focus(t,e)},attachFilterInputBlur:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"blur\")&&\"function\"===typeof this._items.event.blur&&this._items.event.blur(t,e)},attachFilterInputKeyup:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keyup\")&&\"function\"===typeof this._items.event.keyup&&this._items.event.keyup(t,e)},attachFilterInputKeydown:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keydown\")&&\"function\"===typeof this._items.event.keydown&&this._items.event.keydown(t,e)},attachFilterPopclick:function(t,e,i,n){\"I\"!==i&&1!==t?(n.showModal=!0,0!==t&&(console.log(e.label),this.filterDate=JSON.parse(e.label))):\"I\"===i&&Object.prototype.hasOwnProperty.call(this._items.event,\"on-delete\")&&\"function\"===typeof this._items.event[\"on-delete\"]&&this._items.event[\"on-delete\"](n,this._items,e.key,this.index)},attachFilterClear:function(t,e){this._items.value=\"\",Object.prototype.hasOwnProperty.call(this._items.event,\"popper-value\")&&\"function\"===typeof this._items.event[\"popper-value\"]&&this._items.event[\"popper-value\"](e,\"\",[],this.index)},attachFilterPopperShow:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"popper-show\")&&\"function\"===typeof this._items.event[\"popper-show\"]&&this._items.event[\"popper-show\"](t,this._items,this.index)},attachFilterOk:function(t){if(Object.prototype.hasOwnProperty.call(this._items.event,\"popper-value\")&&\"function\"===typeof this._items.event[\"popper-value\"]&&t._data.IN>0){var e=\"已经选中\".concat(t._data.IN,\"条数据\");this._items.value=e,this.valueChange(),this._items.event[\"popper-value\"](t,e,t._data.IN,this.index)}}}},m=g,v=(i(\"0486\"),i(\"2877\")),y=Object(v[\"a\"])(m,n,o,!1,null,\"3d7ef39a\",null);e[\"a\"]=y.exports},bc7b:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-druid\",use:\"icon-druid-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},bcaa:function(t,e,i){},bfe9:function(t,e,i){\"use strict\";i(\"14c9\")},c0c3:function(t,e,i){\"use strict\";i.d(e,\"i\",(function(){return o})),i.d(e,\"o\",(function(){return r})),i.d(e,\"n\",(function(){return s})),i.d(e,\"f\",(function(){return a})),i.d(e,\"g\",(function(){return l})),i.d(e,\"a\",(function(){return h})),i.d(e,\"b\",(function(){return u})),i.d(e,\"j\",(function(){return c})),i.d(e,\"k\",(function(){return f})),i.d(e,\"l\",(function(){return d})),i.d(e,\"m\",(function(){return p})),i.d(e,\"p\",(function(){return g})),i.d(e,\"d\",(function(){return m})),i.d(e,\"e\",(function(){return v})),i.d(e,\"c\",(function(){return y})),i.d(e,\"h\",(function(){return b}));var n=i(\"b775\");function o(t){return Object(n[\"a\"])({url:\"/system/config/list\",method:\"get\",params:t})}function r(t){return Object(n[\"a\"])({url:\"/system/dict/data/type/\"+t,method:\"get\"})}function s(t){return Object(n[\"a\"])({url:\"/system/dict/data/type/\"+t,method:\"get\"})}function a(t){return Object(n[\"a\"])({url:\"/system/config/\"+t,method:\"get\"})}function l(t){return Object(n[\"a\"])({url:\"/system/config/configKey/\"+t,method:\"get\"})}function h(t){return Object(n[\"a\"])({url:\"/system/config\",method:\"post\",data:t})}function u(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/objectSave\",method:\"post\",data:t})}function c(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/queryList\",method:\"post\",data:t})}function f(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/queryList\",method:\"post\",data:t})}function d(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/queryList\",method:\"post\",data:t})}function p(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/getObject\",method:\"post\",data:t})}function g(t){return Object(n[\"a\"])({url:\"/system/config\",method:\"put\",data:t})}function m(t){return Object(n[\"a\"])({url:\"/system/config/\"+t,method:\"delete\"})}function v(t){return Object(n[\"a\"])({url:\"boman-web-core/p/cs/objectDelete\",method:\"POST\",data:t})}function y(){return Object(n[\"a\"])({url:\"/system/config/clearCache\",method:\"delete\"})}function b(){return Object(n[\"a\"])({url:\"/system/user/profile\",method:\"get\"})}},c1f7:function(t,e,i){\"use strict\";var n,o,r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"app-wrapper\",class:t.classObj,style:{\"--current-color\":t.theme}},[\"mobile\"===t.device&&t.sidebar.opened?i(\"div\",{staticClass:\"drawer-bg\",on:{click:t.handleClickOutside}}):t._e(),i(\"sidebar\",{staticClass:\"sidebar-container\",style:{backgroundColor:\"theme-dark\"===t.sideTheme?t.variables.menuBg:t.variables.menuLightBg}}),i(\"div\",{staticClass:\"main-container\",class:{hasTagsView:t.needTagsView}},[i(\"div\",{class:{\"fixed-header\":t.fixedHeader}},[i(\"navbar\"),t.needTagsView?i(\"tags-view\"):t._e()],1),i(\"app-main\"),t.showSettings?i(\"right-panel\",[i(\"settings\")],1):t._e()],1)],1)},s=[],a=i(\"5530\"),l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{ref:\"rightPanel\",staticClass:\"rightPanel-container\",class:{show:t.show}},[i(\"div\",{staticClass:\"rightPanel-background\"}),i(\"div\",{staticClass:\"rightPanel\"},[i(\"div\",{staticClass:\"rightPanel-items\"},[t._t(\"default\")],2)])])},h=[],u=(i(\"a9e3\"),i(\"ed08\")),c={name:\"RightPanel\",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},computed:{show:{get:function(){return this.$store.state.settings.showSettings},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"showSettings\",value:t})}},theme:function(){return this.$store.state.settings.theme}},watch:{show:function(t){t&&!this.clickNotClose&&this.addEventClick(),t?Object(u[\"a\"])(document.body,\"showRightPanel\"):Object(u[\"g\"])(document.body,\"showRightPanel\")}},mounted:function(){this.insertToBody(),this.addEventClick()},beforeDestroy:function(){var t=this.$refs.rightPanel;t.remove()},methods:{addEventClick:function(){window.addEventListener(\"click\",this.closeSidebar)},closeSidebar:function(t){var e=t.target.closest(\".rightPanel\");e||(this.show=!1,window.removeEventListener(\"click\",this.closeSidebar))},insertToBody:function(){var t=this.$refs.rightPanel,e=document.querySelector(\"body\");e.insertBefore(t,e.firstChild)}}},f=c,d=(i(\"fab5\"),i(\"11d7\"),i(\"2877\")),p=Object(d[\"a\"])(f,l,h,!1,null,\"2b17496a\",null),g=p.exports,m=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"section\",{staticClass:\"app-main\"},[i(\"transition\",{attrs:{name:\"fade-transform\",mode:\"out-in\"}},[i(\"keep-alive\",{attrs:{include:t.cachedViews}},[i(\"router-view\",{key:t.key})],1)],1)],1)},v=[],y={name:\"AppMain\",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},b=y,w=(i(\"d5ef\"),i(\"028b\"),Object(d[\"a\"])(b,m,v,!1,null,\"0e9e6080\",null)),x=w.exports,k=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"navbar\"},[i(\"hamburger\",{staticClass:\"hamburger-container\",attrs:{id:\"hamburger-container\",\"is-active\":t.sidebar.opened},on:{toggleClick:function(e){return t.toggleSideBar(0)}}}),i(\"div\",{staticClass:\"sign_box\"},t._l(this.sidebarRouters.filter((function(t){return 0==t.hidden||\"index\"==t.redirect})),(function(e,n){return i(\"div\",{key:n,staticClass:\"sign_item\",class:{active:t.activeMenu.includes(e.path||e.redirect)},on:{click:function(i){return t.tabBtn(e)}}},[e.meta?i(\"item\",{attrs:{icon:e.meta&&e.meta.icon,title:e.meta.title}}):t._e(),e.meta?t._e():i(\"item\",{attrs:{icon:e.meta&&e.meta.icon,title:\"首页\"}})],1)})),0),i(\"div\",{staticClass:\"right-menu\"},[i(\"el-dropdown\",{staticClass:\"avatar-container right-menu-item hover-effect\",attrs:{trigger:\"click\"}},[i(\"div\",{staticClass:\"avatar-wrapper\"},[i(\"img\",{staticClass:\"user-avatar\",attrs:{src:t.avatar}}),i(\"span\"),i(\"i\",{staticClass:\"el-icon-caret-bottom\"})]),i(\"el-dropdown-menu\",{attrs:{slot:\"dropdown\"},slot:\"dropdown\"},[i(\"router-link\",{attrs:{to:\"/user/profile\"}},[i(\"el-dropdown-item\",[t._v(\"个人中心\")])],1),i(\"el-dropdown-item\",{nativeOn:{click:function(e){t.setting=!0}}},[i(\"span\",[t._v(\"布局设置\")])]),i(\"el-dropdown-item\",{attrs:{divided:\"\"},nativeOn:{click:function(e){return t.logout(e)}}},[i(\"span\",[t._v(\"退出登录\")])])],1)],1)],1)],1)},M=[],C=i(\"1da1\"),S=(i(\"caad\"),i(\"2532\"),i(\"96cf\"),i(\"2f62\")),N=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-breadcrumb\",{staticClass:\"app-breadcrumb\",attrs:{separator:\"/\"}},[i(\"transition-group\",{attrs:{name:\"breadcrumb\"}},t._l(t.levelList,(function(e,n){return i(\"el-breadcrumb-item\",{key:e.path},[\"noRedirect\"===e.redirect||n==t.levelList.length-1?i(\"span\",{staticClass:\"no-redirect\"},[t._v(t._s(e.meta.title))]):i(\"a\",{on:{click:function(i){return i.preventDefault(),t.handleLink(e)}}},[t._v(t._s(e.meta.title))])])})),1)],1)},P=[],T=(i(\"2ca0\"),i(\"4de4\"),i(\"99af\"),i(\"b0c0\"),i(\"498a\"),{data:function(){return{levelList:null}},watch:{$route:function(t){t.path.startsWith(\"/redirect/\")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.matched.filter((function(t){return t.meta&&t.meta.title})),e=t[0];this.isDashboard(e)||(t=[{path:\"/index\",meta:{title:\"首页\"}}].concat(t)),this.levelList=t.filter((function(t){return t.meta&&t.meta.title&&!1!==t.meta.breadcrumb})),console.log(this.levelList,999)},isDashboard:function(t){var e=t&&t.name;return!!e&&\"首页\"===e.trim()},handleLink:function(t){var e=t.redirect,i=t.path;e?this.$router.push(e):this.$router.push(i)}}}),L=T,O=(i(\"6e55\"),Object(d[\"a\"])(L,N,P,!1,null,\"3e0240d1\",null)),D=(O.exports,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"sign_box\"},t._l(this.sidebarRouters.filter((function(t){return 0==t.hidden||\"index\"==t.redirect})),(function(e){return i(\"div\",{staticClass:\"sign_item\",class:{active:t.activeMenu.includes(e.path||e.redirect)},on:{click:function(i){return t.tabBtn(e)}}},[e.meta?i(\"item\",{attrs:{icon:e.meta&&e.meta.icon,title:e.meta.title}}):t._e(),e.meta?t._e():i(\"item\",{attrs:{icon:e.meta&&e.meta.icon,title:\"首页\"}})],1)})),0)}),j=[],A={name:\"MenuItem\",functional:!0,props:{icon:{type:String,default:\"\"},title:{type:String,default:\"\"}},render:function(t,e){var i=e.props,n=i.icon,o=i.title,r=[];return n&&r.push(t(\"svg-icon\",{attrs:{\"icon-class\":n}})),o&&r.push(t(\"span\",{slot:\"title\",style:\"color: #343434\"},[o])),r}},B=A,z=Object(d[\"a\"])(B,n,o,!1,null,null,null),F=z.exports,I={data:function(){return{indexs:1,newArr:[]}},components:{Item:F},computed:Object(a[\"a\"])(Object(a[\"a\"])({},Object(S[\"b\"])([\"sidebarRouters\",\"sidebar\",\"tabIndex\"])),{},{activeMenu:function(){return this.tabIndex}}),mounted:function(){this.init()},watch:{},methods:{tabBtn:function(t){if(!this.activeMenu.includes(t.path||t.redirect))return\"index\"==t.redirect?(\"/index\"!==this.$route.path&&this.$router.push({path:\"/index\"}),void this.$store.dispatch(\"TabFn\",t.redirect)):void this.$store.dispatch(\"TabFn\",t.path)},init:function(){var t=this.$route,e=t.meta,i=t.path;console.log(t),e.activeMenu&&this.$store.dispatch(\"TabFn\",e.activeMenu),this.$store.dispatch(\"TabFn\",i)}}},E=I,R=(i(\"cfe3\"),Object(d[\"a\"])(E,D,j,!1,null,\"63aa530b\",null)),V=R.exports,_=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticStyle:{padding:\"0 15px\"},on:{click:t.toggleClick}},[i(\"svg\",{staticClass:\"hamburger\",class:{\"is-active\":t.isActive},attrs:{viewBox:\"0 0 1024 1024\",xmlns:\"http://www.w3.org/2000/svg\",width:\"64\",height:\"64\",fill:\"#fff\"}},[i(\"path\",{attrs:{fill:\"#fff\",d:\"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z\"}})])])},H=[],Y={name:\"Hamburger\",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit(\"toggleClick\")}}},q=Y,G=(i(\"7278\"),Object(d[\"a\"])(q,_,H,!1,null,\"ec3623e2\",null)),X=G.exports,U=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",[i(\"svg-icon\",{attrs:{\"icon-class\":t.isFullscreen?\"exit-fullscreen\":\"fullscreen\"},on:{click:t.click}})],1)},K=[],$=i(\"93bf\"),W=i.n($),J={name:\"Screenfull\",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!W.a.isEnabled)return this.$message({message:\"你的浏览器不支持全屏\",type:\"warning\"}),!1;W.a.toggle()},change:function(){this.isFullscreen=W.a.isFullscreen},init:function(){W.a.isEnabled&&W.a.on(\"change\",this.change)},destroy:function(){W.a.isEnabled&&W.a.off(\"change\",this.change)}}},Z=J,Q=(i(\"d73c\"),Object(d[\"a\"])(Z,U,K,!1,null,\"243c7c0f\",null)),tt=Q.exports,et=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-dropdown\",{attrs:{trigger:\"click\"},on:{command:t.handleSetSize}},[i(\"div\",[i(\"svg-icon\",{attrs:{\"class-name\":\"size-icon\",\"icon-class\":\"size\"}})],1),i(\"el-dropdown-menu\",{attrs:{slot:\"dropdown\"},slot:\"dropdown\"},t._l(t.sizeOptions,(function(e){return i(\"el-dropdown-item\",{key:e.value,attrs:{disabled:t.size===e.value,command:e.value}},[t._v(\" \"+t._s(e.label)+\" \")])})),1)],1)},it=[],nt=(i(\"5319\"),i(\"ac1f\"),{data:function(){return{sizeOptions:[{label:\"Default\",value:\"default\"},{label:\"Medium\",value:\"medium\"},{label:\"Small\",value:\"small\"},{label:\"Mini\",value:\"mini\"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(t){this.$ELEMENT.size=t,this.$store.dispatch(\"app/setSize\",t),this.refreshView(),this.$message({message:\"Switch Size Success\",type:\"success\"})},refreshView:function(){var t=this;this.$store.dispatch(\"tagsView/delAllCachedViews\",this.$route);var e=this.$route.fullPath;this.$nextTick((function(){t.$router.replace({path:\"/redirect\"+e})}))}}}),ot=nt,rt=Object(d[\"a\"])(ot,et,it,!1,null,null,null),st=rt.exports,at=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"header-search\",class:{show:t.show}},[i(\"svg-icon\",{attrs:{\"class-name\":\"search-icon\",\"icon-class\":\"search\"},on:{click:function(e){return e.stopPropagation(),t.click(e)}}}),i(\"el-select\",{ref:\"headerSearchSelect\",staticClass:\"header-search-select\",attrs:{\"remote-method\":t.querySearch,filterable:\"\",\"default-first-option\":\"\",remote:\"\",placeholder:\"Search\"},on:{change:t.change},model:{value:t.search,callback:function(e){t.search=e},expression:\"search\"}},t._l(t.options,(function(t){return i(\"el-option\",{key:t.item.path,attrs:{value:t.item,label:t.item.title.join(\" > \")}})})),1)],1)},lt=[],ht=i(\"2909\"),ut=i(\"b85c\"),ct=(i(\"841c\"),i(\"0278\")),ft=i.n(ct),dt=i(\"df7c\"),pt=i.n(dt),gt={name:\"HeaderSearch\",data:function(){return{search:\"\",options:[],searchPool:[],show:!1,fuse:void 0}},computed:{routes:function(){return this.$store.getters.permission_routes}},watch:{routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(t){this.initFuse(t)},show:function(t){t?document.body.addEventListener(\"click\",this.close):document.body.removeEventListener(\"click\",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes),console.log(this.searchPool,999)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(t){var e=this;this.ishttp(t.path)?window.open(t.path,\"_blank\"):this.$router.push(t.path),this.search=\"\",this.options=[],this.$nextTick((function(){e.show=!1}))},initFuse:function(t){this.fuse=new ft.a(t,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:\"title\",weight:.7},{name:\"path\",weight:.3}]})},generateRoutes:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"/\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=[],r=Object(ut[\"a\"])(t);try{for(r.s();!(e=r.n()).done;){var s=e.value;if(!s.hidden){var a={path:this.ishttp(s.path)?s.path:pt.a.resolve(i,s.path),title:Object(ht[\"a\"])(n)};if(s.meta&&s.meta.title&&(a.title=[].concat(Object(ht[\"a\"])(a.title),[s.meta.title]),\"noRedirect\"!==s.redirect&&o.push(a)),s.children){var l=this.generateRoutes(s.children,a.path,a.title);l.length>=1&&(o=[].concat(Object(ht[\"a\"])(o),Object(ht[\"a\"])(l)))}}}}catch(h){r.e(h)}finally{r.f()}return o},querySearch:function(t){this.options=\"\"!==t?this.fuse.search(t):[]},ishttp:function(t){return-1!==t.indexOf(\"http://\")||-1!==t.indexOf(\"https://\")}}},mt=gt,vt=(i(\"50a6\"),Object(d[\"a\"])(mt,at,lt,!1,null,\"d69340ac\",null)),yt=vt.exports,bt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",[i(\"svg-icon\",{attrs:{\"icon-class\":\"github\"},on:{click:t.goto}})],1)},wt=[],xt={name:\"RuoYiGit\",data:function(){return{url:\"https://gitee.com/y_project/RuoYi-Vue\"}},methods:{goto:function(){window.open(this.url)}}},kt=xt,Mt=Object(d[\"a\"])(kt,bt,wt,!1,null,null,null),Ct=Mt.exports,St=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",[i(\"svg-icon\",{attrs:{\"icon-class\":\"question\"},on:{click:t.goto}})],1)},Nt=[],Pt={name:\"RuoYiDoc\",data:function(){return{url:\"http://doc.ruoyi.vip/ruoyi-vue\"}},methods:{goto:function(){window.open(this.url)}}},Tt=Pt,Lt=Object(d[\"a\"])(Tt,St,Nt,!1,null,null,null),Ot=Lt.exports,Dt={data:function(){return{indexs:1,newArr:[],showde:!0}},components:{SignNumArr:V,Hamburger:X,Screenfull:tt,SizeSelect:st,Search:yt,RuoYiGit:Ct,RuoYiDoc:Ot,Item:F},mounted:function(){this.init()},computed:Object(a[\"a\"])(Object(a[\"a\"])({},Object(S[\"b\"])([\"sidebar\",\"avatar\",\"device\",\"sidebarRouters\",\"sidebar\",\"tabIndex\"])),{},{activeMenu:function(){return this.tabIndex},setting:{get:function(){return this.$store.state.settings.showSettings},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"showSettings\",value:t})}}}),methods:{toggleSideBar:function(t){this.$store.dispatch(\"app/toggleSideBar\")},logout:function(){var t=this;return Object(C[\"a\"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$confirm(\"确定注销并退出系统吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then((function(){t.$store.dispatch(\"LogOut\").then((function(){location.href=\"/index\"}))}));case 1:case\"end\":return e.stop()}}),e)})))()},tabBtn:function(t){if(console.log(t),!this.activeMenu.includes(t.path||t.redirect)){if(this.$store.dispatch(\"app/toggleSideBartwo\"),\"index\"==t.redirect)return\"/index\"!==this.$route.path&&this.$router.push({path:\"/index\"}),void this.$store.dispatch(\"TabFn\",t.redirect);this.$store.dispatch(\"TabFn\",t.path),this.showde=!0}},init:function(){var t=this.$route,e=t.meta,i=t.path;console.log(t),e.activeMenu&&this.$store.dispatch(\"TabFn\",e.activeMenu),this.$store.dispatch(\"TabFn\",i)}}},jt=Dt,At=(i(\"7996\"),Object(d[\"a\"])(jt,k,M,!1,null,\"b8532fc4\",null)),Bt=At.exports,zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"drawer-container\"},[n(\"div\",[n(\"div\",{staticClass:\"setting-drawer-content\"},[t._m(0),n(\"div\",{staticClass:\"setting-drawer-block-checbox\"},[n(\"div\",{staticClass:\"setting-drawer-block-checbox-item\",on:{click:function(e){return t.handleTheme(\"theme-dark\")}}},[n(\"img\",{attrs:{src:i(\"adba\"),alt:\"dark\"}}),\"theme-dark\"===t.sideTheme?n(\"div\",{staticClass:\"setting-drawer-block-checbox-selectIcon\",staticStyle:{display:\"block\"}},[n(\"i\",{staticClass:\"anticon anticon-check\",attrs:{\"aria-label\":\"图标: check\"}},[n(\"svg\",{attrs:{viewBox:\"64 64 896 896\",\"data-icon\":\"check\",width:\"1em\",height:\"1em\",fill:t.theme,\"aria-hidden\":\"true\",focusable:\"false\"}},[n(\"path\",{attrs:{d:\"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z\"}})])])]):t._e()]),n(\"div\",{staticClass:\"setting-drawer-block-checbox-item\",on:{click:function(e){return t.handleTheme(\"theme-light\")}}},[n(\"img\",{attrs:{src:i(\"a2d0\"),alt:\"light\"}}),\"theme-light\"===t.sideTheme?n(\"div\",{staticClass:\"setting-drawer-block-checbox-selectIcon\",staticStyle:{display:\"block\"}},[n(\"i\",{staticClass:\"anticon anticon-check\",attrs:{\"aria-label\":\"图标: check\"}},[n(\"svg\",{attrs:{viewBox:\"64 64 896 896\",\"data-icon\":\"check\",width:\"1em\",height:\"1em\",fill:t.theme,\"aria-hidden\":\"true\",focusable:\"false\"}},[n(\"path\",{attrs:{d:\"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z\"}})])])]):t._e()])]),n(\"div\",{staticClass:\"drawer-item\"},[n(\"span\",[t._v(\"主题颜色\")]),n(\"theme-picker\",{staticStyle:{float:\"right\",height:\"26px\",margin:\"-3px 8px 0 0\"},on:{change:t.themeChange}})],1)]),n(\"el-divider\"),n(\"h3\",{staticClass:\"drawer-title\"},[t._v(\"系统布局配置\")]),n(\"div\",{staticClass:\"drawer-item\"},[n(\"span\",[t._v(\"开启 Tags-Views\")]),n(\"el-switch\",{staticClass:\"drawer-switch\",model:{value:t.tagsView,callback:function(e){t.tagsView=e},expression:\"tagsView\"}})],1),n(\"div\",{staticClass:\"drawer-item\"},[n(\"span\",[t._v(\"固定 Header\")]),n(\"el-switch\",{staticClass:\"drawer-switch\",model:{value:t.fixedHeader,callback:function(e){t.fixedHeader=e},expression:\"fixedHeader\"}})],1),n(\"div\",{staticClass:\"drawer-item\"},[n(\"span\",[t._v(\"显示 Logo\")]),n(\"el-switch\",{staticClass:\"drawer-switch\",model:{value:t.sidebarLogo,callback:function(e){t.sidebarLogo=e},expression:\"sidebarLogo\"}})],1)],1)])},Ft=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"setting-drawer-title\"},[i(\"h3\",{staticClass:\"drawer-title\"},[t._v(\"主题风格设置\")])])}],It=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-color-picker\",{staticClass:\"theme-picker\",attrs:{predefine:[\"#409EFF\",\"#1890ff\",\"#304156\",\"#212121\",\"#11a983\",\"#13c2c2\",\"#6959CD\",\"#f5222d\"],\"popper-class\":\"theme-picker-dropdown\"},model:{value:t.theme,callback:function(e){t.theme=e},expression:\"theme\"}})},Et=[],Rt=(i(\"fb6a\"),i(\"4d63\"),i(\"25f0\"),i(\"159b\"),i(\"d3b7\"),i(\"a15b\"),i(\"b680\"),i(\"f6f8\").version),Vt=\"#409EFF\",_t={data:function(){return{chalk:\"\",theme:\"\"}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(t,e){this.theme=t},immediate:!0},theme:function(t){var e=this;return Object(C[\"a\"])(regeneratorRuntime.mark((function i(){var n,o,r,s,a,l,h,u;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.chalk?e.theme:Vt,\"string\"===typeof t){i.next=3;break}return i.abrupt(\"return\");case 3:if(o=e.getThemeCluster(t.replace(\"#\",\"\")),r=e.getThemeCluster(n.replace(\"#\",\"\")),console.log(o,r),s=e.$message({message:\" Compiling the theme\",customClass:\"theme-message\",type:\"success\",duration:0,iconClass:\"el-icon-loading\"}),a=function(t,i){return function(){var n=e.getThemeCluster(Vt.replace(\"#\",\"\")),r=e.updateStyle(e[t],n,o),s=document.getElementById(i);s||(s=document.createElement(\"style\"),s.setAttribute(\"id\",i),document.head.appendChild(s)),s.innerText=r}},e.chalk){i.next=12;break}return l=\"https://unpkg.com/element-ui@\".concat(Rt,\"/lib/theme-chalk/index.css\"),i.next=12,e.getCSSString(l,\"chalk\");case 12:h=a(\"chalk\",\"chalk-style\"),h(),u=[].slice.call(document.querySelectorAll(\"style\")).filter((function(t){var e=t.innerText;return new RegExp(n,\"i\").test(e)&&!/Chalk Variables/.test(e)})),u.forEach((function(t){var i=t.innerText;\"string\"===typeof i&&(t.innerText=e.updateStyle(i,r,o))})),e.$emit(\"change\",t),s.close();case 18:case\"end\":return i.stop()}}),i)})))()}},methods:{updateStyle:function(t,e,i){var n=t;return e.forEach((function(t,e){n=n.replace(new RegExp(t,\"ig\"),i[e])})),n},getCSSString:function(t,e){var i=this;return new Promise((function(n){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&200===o.status&&(i[e]=o.responseText.replace(/@font-face{[^}]+}/,\"\"),n())},o.open(\"GET\",t),o.send()}))},getThemeCluster:function(t){for(var e=function(t,e){var i=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16);return 0===e?[i,n,o].join(\",\"):(i+=Math.round(e*(255-i)),n+=Math.round(e*(255-n)),o+=Math.round(e*(255-o)),i=i.toString(16),n=n.toString(16),o=o.toString(16),\"#\".concat(i).concat(n).concat(o))},i=function(t,e){var i=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16);return i=Math.round((1-e)*i),n=Math.round((1-e)*n),o=Math.round((1-e)*o),i=i.toString(16),n=n.toString(16),o=o.toString(16),\"#\".concat(i).concat(n).concat(o)},n=[t],o=0;o<=9;o++)n.push(e(t,Number((o/10).toFixed(2))));return n.push(i(t,.1)),n}}},Ht=_t,Yt=(i(\"06c2\"),Object(d[\"a\"])(Ht,It,Et,!1,null,null,null)),qt=Yt.exports,Gt={components:{ThemePicker:qt},data:function(){return{}},computed:{theme:function(){return this.$store.state.settings.theme},sideTheme:function(){return this.$store.state.settings.sideTheme},fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"fixedHeader\",value:t})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"tagsView\",value:t})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"sidebarLogo\",value:t})}}},methods:{themeChange:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"theme\",value:t})},handleTheme:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"sideTheme\",value:t})}}},Xt=Gt,Ut=(i(\"ab49\"),Object(d[\"a\"])(Xt,zt,Ft,!1,null,\"a9831cfa\",null)),Kt=Ut.exports,$t=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{class:{\"has-logo\":t.showLogo},style:{backgroundColor:\"theme-dark\"===t.settings.sideTheme?t.variables.menuBg:t.variables.menuLightBg}},[t.showLogo?i(\"logo\",{attrs:{collapse:t.isCollapse}}):t._e(),i(\"el-scrollbar\",{class:t.settings.sideTheme,attrs:{\"wrap-class\":\"scrollbar-wrapper\"}},[i(\"el-menu\",{ref:\"menu\",attrs:{\"default-active\":t.activeMenu,\"default-openeds\":[t.activeMenuT],collapse:t.isCollapse,\"background-color\":\"theme-dark\"===t.settings.sideTheme?t.variables.menuBg:t.variables.menuLightBg,\"text-color\":\"theme-dark\"===t.settings.sideTheme?t.variables.menuText:\"rgba(0,0,0,.65)\",\"unique-opened\":!0,\"active-text-color\":t.settings.theme,\"collapse-transition\":!1,mode:\"vertical\"}},t._l(t.handleSide,(function(t,e){return i(\"sidebar-item\",{key:t.path+e,attrs:{item:t,\"base-path\":t.path}})})),1)],1)],1)},Wt=[],Jt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"sidebar-logo-container\",class:{collapse:t.collapse}},[i(\"transition\",{attrs:{name:\"sidebarLogoFade\"}},[t.collapse?i(\"router-link\",{key:\"collapse\",staticClass:\"sidebar-logo-link\",attrs:{to:\"/\"}},[i(\"h1\",{staticClass:\"sidebar-title\",style:{color:\"theme-dark\"===t.sideTheme?t.variables.sidebarTitle:t.variables.sidebarLightTitle}},[t._v(t._s(t.title)+\" \")])]):i(\"router-link\",{key:\"expand\",staticClass:\"sidebar-logo-link\",attrs:{to:\"/\"}},[i(\"h1\",{staticClass:\"sidebar-title\",style:{color:\"theme-dark\"===t.sideTheme?t.variables.sidebarTitle:t.variables.sidebarLightTitle}},[t._v(t._s(t.title)+\" \")])])],1)],1)},Zt=[],Qt=i(\"81a5\"),te=i.n(Qt),ee=i(\"8df1\"),ie=i.n(ee),ne={name:\"SidebarLogo\",props:{collapse:{type:Boolean,required:!0}},computed:{variables:function(){return ie.a},sideTheme:function(){return this.$store.state.settings.sideTheme}},data:function(){return{title:\"潜山市云数据中心\",logo:te.a}}},oe=ne,re=(i(\"6976\"),Object(d[\"a\"])(oe,Jt,Zt,!1,null,\"0bdca080\",null)),se=re.exports,ae=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.hidden?t._e():i(\"div\",[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?i(\"el-submenu\",{ref:\"subMenu\",attrs:{index:t.resolvePath(t.item.path),\"popper-append-to-body\":\"\"}},[i(\"template\",{slot:\"title\"},[t.item.meta?i(\"item\",{attrs:{icon:t.item.meta&&t.item.meta.icon,title:t.item.meta.title}}):t._e()],1),t._l(t.item.children,(function(e){return i(\"sidebar-item\",{key:e.path,staticClass:\"nest-menu\",attrs:{\"is-nest\":!0,item:e,\"base-path\":t.resolvePath(e.path)}})}))],2):[t.onlyOneChild.meta?i(\"app-link\",{attrs:{to:t.resolvePath(t.onlyOneChild.path)}},[i(\"el-menu-item\",{class:{\"submenu-title-noDropdown\":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.path)}},[i(\"item\",{attrs:{icon:t.onlyOneChild.meta.icon||t.item.meta&&t.item.meta.icon,title:t.onlyOneChild.meta.title}})],1)],1):t._e()]],2)},le=[],he=i(\"61f7\"),ue=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(t.type,t._b({tag:\"component\"},\"component\",t.linkProps(t.to),!1),[t._t(\"default\")],2)},ce=[],fe={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(he[\"a\"])(this.to)},type:function(){return this.isExternal?\"a\":\"router-link\"}},methods:{linkProps:function(t){return this.isExternal?{href:t,target:\"_blank\",rel:\"noopener\"}:{to:t}}}},de=fe,pe=Object(d[\"a\"])(de,ue,ce,!1,null,null,null),ge=pe.exports,me={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var t=this,e=this.$refs.subMenu;if(e){var i=e.handleMouseleave;e.handleMouseleave=function(e){\"mobile\"!==t.device&&i(e)}}}}},ve={name:\"SidebarItem\",components:{Item:F,AppLink:ge},mixins:[me],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:\"\"}},data:function(){return this.onlyOneChild=null,{}},mounted:function(){},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,n=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===n.length||0===n.length&&(this.onlyOneChild=Object(a[\"a\"])(Object(a[\"a\"])({},i),{},{path:\"\",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(he[\"a\"])(t)?t:Object(he[\"a\"])(this.basePath)?this.basePath:pt.a.resolve(this.basePath,t)}}},ye=ve,be=Object(d[\"a\"])(ye,ae,le,!1,null,null,null),we=be.exports,xe={components:{SidebarItem:we,Logo:se},mounted:function(){console.log(this.sidebarRouters,this.sidebar,this.settings)},computed:Object(a[\"a\"])(Object(a[\"a\"])(Object(a[\"a\"])({},Object(S[\"d\"])([\"settings\"])),Object(S[\"b\"])([\"sidebarRouters\",\"sidebar\",\"tabIndex\"])),{},{activeMenu:function(){return this.tabIndex},activeMenuT:function(){var t=\"\";return console.log(this.tabIndex,234),t=\"index\"==this.tabIndex?\"/\"+this.tabIndex:this.tabIndex,console.log(t,345),t},handleSide:function(){var t,e=[],i=Object(ut[\"a\"])(this.sidebarRouters);try{for(i.s();!(t=i.n()).done;){var n=t.value;this.activeMenu.includes(n.path||n.redirect)&&e.push(n)}}catch(o){i.e(o)}finally{i.f()}return console.log(e),e},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return ie.a},isCollapse:function(){return!this.sidebar.opened},iejgu:function(){return[0]}})},ke=xe,Me=Object(d[\"a\"])(ke,$t,Wt,!1,null,null,null),Ce=Me.exports,Se=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"tags-view-container\",attrs:{id:\"tags-view-container\"}},[i(\"scroll-pane\",{ref:\"scrollPane\",staticClass:\"tags-view-wrapper\",on:{scroll:t.handleScroll}},t._l(t.visitedViews,(function(e){return i(\"router-link\",{key:e.path,ref:\"tag\",refInFor:!0,staticClass:\"tags-view-item\",class:t.isActive(e)?\"active\":\"\",style:t.activeStyle(e),attrs:{to:{path:e.path,query:e.query,fullPath:e.fullPath},tag:\"span\"},nativeOn:{mouseup:function(i){if(\"button\"in i&&1!==i.button)return null;!t.isAffix(e)&&t.closeSelectedTag(e)},contextmenu:function(i){return i.preventDefault(),t.openMenu(e,i)}}},[t._v(\" \"+t._s(e.title)+\" \"),t.isAffix(e)?t._e():i(\"span\",{staticClass:\"el-icon-close\",on:{click:function(i){return i.preventDefault(),i.stopPropagation(),t.closeSelectedTag(e)}}})])})),1),i(\"ul\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"contextmenu\",style:{left:t.left+\"px\",top:t.top+\"px\"}},[i(\"li\",{on:{click:function(e){return t.refreshSelectedTag(t.selectedTag)}}},[t._v(\"刷新页面\")]),t.isAffix(t.selectedTag)?t._e():i(\"li\",{on:{click:function(e){return t.closeSelectedTag(t.selectedTag)}}},[t._v(\"关闭当前\")]),i(\"li\",{on:{click:t.closeOthersTags}},[t._v(\"关闭其他\")]),i(\"li\",{on:{click:function(e){return t.closeAllTags(t.selectedTag)}}},[t._v(\"关闭所有\")])])],1)},Ne=[],Pe=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-scrollbar\",{ref:\"scrollContainer\",staticClass:\"scroll-container\",attrs:{vertical:!1},nativeOn:{wheel:function(e){return e.preventDefault(),t.handleScroll(e)}}},[t._t(\"default\")],2)},Te=[],Le=(i(\"c740\"),4),Oe={name:\"ScrollPane\",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener(\"scroll\",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener(\"scroll\",this.emitScroll)},methods:{handleScroll:function(t){var e=t.wheelDelta||40*-t.deltaY,i=this.scrollWrapper;i.scrollLeft=i.scrollLeft+e/4},emitScroll:function(){this.$emit(\"scroll\")},moveToTarget:function(t){var e=this.$refs.scrollContainer.$el,i=e.offsetWidth,n=this.scrollWrapper,o=this.$parent.$refs.tag,r=null,s=null;if(o.length>0&&(r=o[0],s=o[o.length-1]),r===t)n.scrollLeft=0;else if(s===t)n.scrollLeft=n.scrollWidth-i;else{var a=o.findIndex((function(e){return e===t})),l=o[a-1],h=o[a+1],u=h.$el.offsetLeft+h.$el.offsetWidth+Le,c=l.$el.offsetLeft-Le;u>n.scrollLeft+i?n.scrollLeft=u-i:c1&&void 0!==arguments[1]?arguments[1]:\"/\",n=[];return t.forEach((function(t){if(t.meta&&t.meta.affix){var o=pt.a.resolve(i,t.path);n.push({fullPath:o,path:o,name:t.name,meta:Object(a[\"a\"])({},t.meta)})}if(t.children){var r=e.filterAffixTags(t.children,t.path);r.length>=1&&(n=[].concat(Object(ht[\"a\"])(n),Object(ht[\"a\"])(r)))}})),n},initTags:function(){var t,e=this.affixTags=this.filterAffixTags(this.routes),i=Object(ut[\"a\"])(e);try{for(i.s();!(t=i.n()).done;){var n=t.value;n.name&&this.$store.dispatch(\"tagsView/addVisitedView\",n)}}catch(o){i.e(o)}finally{i.f()}},addTags:function(){var t=this.$route.name;return t&&this.$store.dispatch(\"tagsView/addView\",this.$route),!1},moveToCurrentTag:function(){var t=this,e=this.$refs.tag;this.$nextTick((function(){var i,n=Object(ut[\"a\"])(e);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o.to.path===t.$route.path){t.$refs.scrollPane.moveToTarget(o),o.to.fullPath!==t.$route.fullPath&&t.$store.dispatch(\"tagsView/updateVisitedView\",t.$route);break}}}catch(r){n.e(r)}finally{n.f()}}))},refreshSelectedTag:function(t){var e=this;this.$store.dispatch(\"tagsView/delCachedView\",t).then((function(){var i=t.fullPath;e.$nextTick((function(){e.$router.replace({path:\"/redirect\"+i})}))}))},closeSelectedTag:function(t){var e=this;this.$store.dispatch(\"tagsView/delView\",t).then((function(i){var n=i.visitedViews;e.isActive(t)&&e.toLastView(n,t)}))},closeOthersTags:function(){var t=this;this.$router.push(this.selectedTag).catch((function(){})),this.$store.dispatch(\"tagsView/delOthersViews\",this.selectedTag).then((function(){t.moveToCurrentTag()}))},closeAllTags:function(t){var e=this;this.$store.dispatch(\"tagsView/delAllViews\").then((function(i){var n=i.visitedViews;e.affixTags.some((function(t){return t.path===e.$route.path}))||e.toLastView(n,t)}))},toLastView:function(t,e){var i=t.slice(-1)[0];i?this.$router.push(i.fullPath):\"Dashboard\"===e.name?this.$router.replace({path:\"/redirect\"+e.fullPath}):this.$router.push(\"/\")},openMenu:function(t,e){var i=105,n=this.$el.getBoundingClientRect().left,o=this.$el.offsetWidth,r=o-i,s=e.clientX-n+15;this.left=s>r?r:s,this.top=e.clientY,this.visible=!0,this.selectedTag=t},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},ze=Be,Fe=(i(\"730d\"),i(\"cfaa\"),Object(d[\"a\"])(ze,Se,Ne,!1,null,\"004442bd\",null)),Ie=Fe.exports,Ee=i(\"4360\"),Re=document,Ve=Re.body,_e=992,He={watch:{$route:function(t){\"mobile\"===this.device&&this.sidebar.opened&&Ee[\"a\"].dispatch(\"app/closeSideBar\",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener(\"resize\",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener(\"resize\",this.$_resizeHandler)},mounted:function(){var t=this.$_isMobile();t&&(Ee[\"a\"].dispatch(\"app/toggleDevice\",\"mobile\"),Ee[\"a\"].dispatch(\"app/closeSideBar\",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=Ve.getBoundingClientRect();return t.width-1<_e},$_resizeHandler:function(){if(!document.hidden){var t=this.$_isMobile();Ee[\"a\"].dispatch(\"app/toggleDevice\",t?\"mobile\":\"desktop\"),t&&Ee[\"a\"].dispatch(\"app/closeSideBar\",{withoutAnimation:!0})}}}},Ye={name:\"Layout\",components:{AppMain:x,Navbar:Bt,RightPanel:g,Settings:Kt,Sidebar:Ce,TagsView:Ie},mixins:[He],computed:Object(a[\"a\"])(Object(a[\"a\"])({},Object(S[\"d\"])({theme:function(t){return t.settings.theme},sideTheme:function(t){return t.settings.sideTheme},sidebar:function(t){return t.app.sidebar},device:function(t){return t.app.device},showSettings:function(t){return t.settings.showSettings},needTagsView:function(t){return t.settings.tagsView},fixedHeader:function(t){return t.settings.fixedHeader}})),{},{classObj:function(){return{hideSidebar:!this.sidebar.opened,openSidebar:this.sidebar.opened,withoutAnimation:this.sidebar.withoutAnimation,mobile:\"mobile\"===this.device}},variables:function(){return ie.a}}),methods:{handleClickOutside:function(){this.$store.dispatch(\"app/closeSideBar\",{withoutAnimation:!1})}}},qe=Ye,Ge=(i(\"caac\"),Object(d[\"a\"])(qe,r,s,!1,null,\"d4627dd2\",null));e[\"a\"]=Ge.exports},c292:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-button\",use:\"icon-button-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},c38a:function(t,e,i){\"use strict\";i.d(e,\"c\",(function(){return o})),i.d(e,\"e\",(function(){return r})),i.d(e,\"a\",(function(){return s})),i.d(e,\"f\",(function(){return a})),i.d(e,\"g\",(function(){return l})),i.d(e,\"d\",(function(){return h})),i.d(e,\"b\",(function(){return u})),i.d(e,\"h\",(function(){return c}));var n=i(\"53ca\");i(\"5319\"),i(\"ac1f\"),i(\"4d63\"),i(\"25f0\"),i(\"d3b7\"),i(\"b64b\"),i(\"a15b\"),i(\"1276\"),i(\"d81d\"),i(\"4de4\"),i(\"159b\"),i(\"2b19\");function o(t,e){if(0===arguments.length||!t)return null;var i,o=e||\"{y}-{m}-{d} {h}:{i}:{s}\";\"object\"===Object(n[\"a\"])(t)?i=t:(\"string\"===typeof t&&/^[0-9]+$/.test(t)?t=parseInt(t):\"string\"===typeof t&&(t=t.replace(new RegExp(/-/gm),\"/\")),\"number\"===typeof t&&10===t.toString().length&&(t*=1e3),i=new Date(t));var r={y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),a:i.getDay()},s=o.replace(/{(y|m|d|h|i|s|a)+}/g,(function(t,e){var i=r[e];return\"a\"===e?[\"日\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\"][i]:(t.length>0&&i<10&&(i=\"0\"+i),i||0)}));return s}function r(t){this.$refs[t]&&this.$refs[t].resetFields()}function s(t,e,i){var n=t;return n.params={},null!=e&&\"\"!=e&&(\"undefined\"===typeof i?(n.params[\"beginTime\"]=e[0],n.params[\"endTime\"]=e[1]):(n.params[\"begin\"+i]=e[0],n.params[\"end\"+i]=e[1])),n}function a(t,e){var i=[];return Object.keys(t).some((function(n){if(t[n].dictValue==\"\"+e)return i.push(t[n].dictLabel),!0})),i.join(\"\")}function l(t,e,i){var n=[],o=void 0===i?\",\":i,r=e.split(o);return Object.keys(e.split(o)).some((function(e){Object.keys(t).some((function(i){t[i].dictValue==\"\"+r[e]&&n.push(t[i].dictLabel+o)}))})),n.join(\"\").substring(0,n.join(\"\").length-1)}function h(t){return t&&\"undefined\"!=t&&\"null\"!=t?t:\"\"}function u(t,e,i,n,o){e=e||\"id\",i=i||\"parentId\",n=n||\"children\",o=o||Math.min.apply(Math,t.map((function(t){return t[i]})))||0;var r=JSON.parse(JSON.stringify(t)),s=r.filter((function(t){var n=r.filter((function(n){return t[e]===n[i]}));return n.length>0&&(t.children=n),t[i]===o}));return\"\"!=s?s:t}function c(t){var e=\"\";return Object.keys(t).forEach((function(i){Object.is(t[i],void 0)||Object.is(t[i],null)||Object.is(JSON.stringify(t[i]),\"{}\")||(e+=encodeURIComponent(i)+\"=\"+encodeURIComponent(t[i])+\"&\")})),e}},c4d7:function(t,e,i){\"use strict\";i(\"87d9\")},c9ae:function(t,e,i){\"use strict\";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"InstanceManagementList\"},[i(\"TabPane\",{attrs:{label:\"待办流程\",name:\"待办流程\"}},[\"待办流程\"===t.tabalive?i(\"todoProcess\",{attrs:{falg:1,tabalive:t.tabalive}}):t._e()],1)],1)},o=[],r=i(\"58f1\"),s=i(\"634a\"),a={name:\"approval\",components:{todoProcess:r[\"a\"],HistoricalProcess:s[\"a\"]},data:function(){return{tabalive:\"待办流程\",tabConfig:[{label:\"待办流程\",name:\"待办流程\"},{label:\"历史流程\",name:\"历史流程\"}]}},methods:{routeClick:function(t){1===t?this.tabalive=\"待办流程\":2===t&&(this.tabalive=\"历史流程\")},onClick:function(t){this.tabalive=t,\"历史流程\"===t?window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=2\"):window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=1\")}},created:function(){this.routeClick(1)}},l=a,h=(i(\"1ff4\"),i(\"2877\")),u=Object(h[\"a\"])(l,n,o,!1,null,null,null);e[\"default\"]=u.exports},ca8c:function(t,e,i){},caac:function(t,e,i){\"use strict\";i(\"49c8\")},caf7:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-email\",use:\"icon-email-usage\",viewBox:\"0 0 128 96\",content:''});s.a.add(a);e[\"default\"]=a},cda1:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-github\",use:\"icon-github-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},cfaa:function(t,e,i){\"use strict\";i(\"e1eb\")},cfe3:function(t,e,i){\"use strict\";i(\"df43\")},d3b2:function(t,e,i){\"use strict\";i(\"12de\")},d5ef:function(t,e,i){\"use strict\";i(\"9fad\")},d73c:function(t,e,i){\"use strict\";i(\"b799\")},d7a0:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-code\",use:\"icon-code-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},d88a:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-user\",use:\"icon-user-usage\",viewBox:\"0 0 130 130\",content:''});s.a.add(a);e[\"default\"]=a},da75:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-dict\",use:\"icon-dict-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},dbc4:function(t,e,i){},dc13:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-peoples\",use:\"icon-peoples-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},dc78:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-table\",use:\"icon-table-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},ddfb:function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"FormComponent\"},[i(\"div\",{staticClass:\"FormItemComponent\",style:t.setWidth},t._l(t.dataColRol,(function(e,n){return i(\"div\",{key:n,staticClass:\"FormItemComponent-item\",style:t.setDiv(e)},[i(e.component,{ref:\"component_\"+n,refInFor:!0,tag:\"component\",attrs:{index:n,items:e.item,readonly:t.readonly},on:{inputChange:t.inputChange}})],1)})),0),t.buttonType?i(\"p\",[i(\"el-button\",{attrs:{type:\"primary\",plain:\"\",icon:\"el-icon-search\"},on:{click:t.search}},[t._v(\"搜索\")]),i(\"el-button\",{attrs:{icon:\"el-icon-refresh\",size:\"mini\"},on:{click:t.reset}},[t._v(\"重置\")])],1):t._e()])},o=[],r=(i(\"a9e3\"),i(\"13d5\"),i(\"b64b\"),i(\"99af\"),i(\"2b0e\"));i(\"cb29\"),i(\"d81d\");function s(t){var e=t.length;return t.reverse().every((function(t,i){return!t||(e=i,!1)})),e}function a(t,e,i,n,o){var r=Array(i.row).fill(null),s=Array(i.col).fill(null),a=!0;return r.map((function(i,o){s.map((function(i,r){n[o+t][r+e]&&(a=!1)}))})),e+i.col>o&&(a=!1),a}function l(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"fill\",n=Array(t).fill(null),o=e.reduce((function(t,e){return t+=!e.row||e.row<1?1:e.row,t}),0),r=Array(o).fill(null),l=r.concat([]).reduce((function(t){return t.push(n.concat([])),t}),[]),h={};return e.every((function(e,n){return!1===e.show?(h[n]||(e.x=-1,e.y=-1,h[n]=e),!0):(e.col=!e.col||e.col<1?1:e.col,e.col=e.col>t?t:e.col,e.row=!e.row||e.row<1?1:e.row,l.every((function(o,r){return o.every((function(u,c){if(\"newline\"===i&&s([].concat(o))'});s.a.add(a);e[\"default\"]=a},df43:function(t,e,i){},dffe:function(t,e,i){},e1eb:function(t,e,i){},e218:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-color\",use:\"icon-color-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},e24c:function(t,e,i){\"use strict\";i(\"542a\")},e3ff:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-excel\",use:\"icon-excel-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},e498:function(t,e,i){\"use strict\";i(\"1c18\")},e82a:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-job\",use:\"icon-job-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},ed00:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-documentation\",use:\"icon-documentation-usage\",viewBox:\"0 0 128 128\",content:''});s.a.add(a);e[\"default\"]=a},ed08:function(t,e,i){\"use strict\";i.d(e,\"c\",(function(){return n})),i.d(e,\"a\",(function(){return r})),i.d(e,\"g\",(function(){return s})),i.d(e,\"f\",(function(){return a})),i.d(e,\"d\",(function(){return l})),i.d(e,\"b\",(function(){return h})),i.d(e,\"h\",(function(){return u})),i.d(e,\"e\",(function(){return c}));i(\"53ca\"),i(\"5319\"),i(\"ac1f\"),i(\"a15b\"),i(\"d81d\"),i(\"b64b\"),i(\"1276\"),i(\"159b\"),i(\"fb6a\"),i(\"a630\"),i(\"3ca3\"),i(\"6062\"),i(\"d3b7\"),i(\"ddb0\"),i(\"25f0\"),i(\"466d\"),i(\"4d63\"),i(\"c38a\");function n(t,e,i){var n,o,r,s,a,l=function l(){var h=+new Date-s;h0?n=setTimeout(l,e-h):(n=null,i||(a=t.apply(r,o),n||(r=o=null)))};return function(){for(var o=arguments.length,h=new Array(o),u=0;u'});s.a.add(a);e[\"default\"]=a},f259:function(t,e,i){},f71f:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-monitor\",use:\"icon-monitor-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},f8e6:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-time\",use:\"icon-time-usage\",viewBox:\"0 0 1024 1024\",content:''});s.a.add(a);e[\"default\"]=a},fab5:function(t,e,i){\"use strict\";i(\"bcaa\")},fde4:function(t,e,i){\"use strict\";i(\"1868\")},ff02:function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return o})),i.d(e,\"b\",(function(){return r})),i.d(e,\"c\",(function(){return s})),i.d(e,\"h\",(function(){return a})),i.d(e,\"j\",(function(){return l})),i.d(e,\"i\",(function(){return h})),i.d(e,\"d\",(function(){return u})),i.d(e,\"e\",(function(){return c})),i.d(e,\"f\",(function(){return f})),i.d(e,\"g\",(function(){return d}));var n=i(\"b775\");function o(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/relation/list\",method:\"post\",data:t})}function r(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/batch/deal\",method:\"post\",data:t})}function s(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/backlog/list\",method:\"post\",data:t})}function a(t){return Object(n[\"a\"])({url:\"/jflow/p/c/identity/org/treequery\",method:\"post\",data:t})}function l(t){return Object(n[\"a\"])({url:\"/jflow/p/c/identity/user/list\",method:\"post\",data:t})}function h(t){return Object(n[\"a\"])({url:\"/jflow/p/c/identity/org/treeload\",method:\"post\",data:t})}function u(t){return Object(n[\"a\"])({url:\"/jflow/p/c/task/backlog/detail\",method:\"post\",data:t})}function c(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/relation/list\",method:\"post\",data:t})}function f(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/history/list\",method:\"post\",data:t})}function d(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/process/manualsubmit\",method:\"post\",data:t})}}},[[0,\"runtime\",\"chunk-elementUI\",\"chunk-libs\"]]]);","extractedComments":[]}