qgb-process 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/qgb-process.common.js +56 -55
- package/lib/qgb-process.umd.js +56 -55
- package/lib/qgb-process.umd.min.js +8 -8
- package/package.json +1 -1
- package/lib/img/quetu.792614bf.png +0 -0
|
@@ -16,7 +16,7 @@ var t=e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa
|
|
|
16
16
|
//! moment.js locale configuration
|
|
17
17
|
var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"0e65":function(e,t,n){var i=n("750a");e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},"0f51":function(e,t,n){"use strict";var i=n("0260");function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},"0fa8":function(e,t,n){var i=n("6322");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("5925").default;r("457b079e",i,!0,{sourceMap:!1,shadowMode:!1})},"100d":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},1062:function(e,t,n){"use strict";n("94fa")},"10ef":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
18
18
|
//! moment.js locale configuration
|
|
19
|
-
var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},1111:function(e,t,n){var i=n("93a7"),r=n("12ed"),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},"112a":function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("e67d"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));var r=n("a19a"),o=(n("59d7"),n("3e22"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"fd-nav sidePadding"},[i("div",{staticClass:"fd-nav-left"},[i("div",{staticClass:"fd-nav-title"},[e._v(e._s(e.queryInfo.name)+"流程")])]),i("div",{staticClass:"fd-nav-center"}),i("div",{staticClass:"fd-nav-right"},[i("div",{staticClass:"switch fixWidth"},[i("span",[e._v("重复审批人自动通过:")]),i("el-switch",{model:{value:e.workFlowDef.automaticPass,callback:function(t){e.$set(e.workFlowDef,"automaticPass",t)},expression:"workFlowDef.automaticPass"}}),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("开通后,当同一审批人重复出现在多节点时,"),i("br"),e._v("若首个节点审批通过,则后续节点中该审批"),i("br"),e._v("人自动通过无需多次操作审批")]),i("el-button",{staticClass:"tooltipContent",attrs:{icon:"el-icon-question",circle:""}})],1)],1),i("div",{staticClass:"switch"},[i("span",[e._v("是否开启审批:")]),i("el-switch",{on:{change:e.handlerSwitch},model:{value:e.workFlowDef.switchOn,callback:function(t){e.$set(e.workFlowDef,"switchOn",t)},expression:"workFlowDef.switchOn"}})],1),i("el-button",{attrs:{round:"",size:"medium"},on:{click:e.cancel}},[e._v("取消")]),i("el-button",{attrs:{round:"",type:"primary",size:"medium"},on:{click:e.saveSet}},[e._v("保存")]),e.isOldData?i("el-button",{attrs:{round:"",type:"warning",size:"medium"},on:{click:e.showOldModal}},[e._v("老数据参考")]):e._e()],1)]),e.workFlowDef.switchOn?i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"流程设计",name:"process"}},[i("div",{staticClass:"fd-nav-content"},[i("section",{staticClass:"dingflow-design"},[i("div",{staticClass:"zoom"},[i("div",{class:"zoom-out"+(50==e.nowVal?" disabled":""),on:{click:function(t){return e.zoomSize(1)}}}),i("span",[e._v(e._s(e.nowVal)+"%")]),i("div",{class:"zoom-in"+(300==e.nowVal?" disabled":""),on:{click:function(t){return e.zoomSize(2)}}})]),i("div",{staticClass:"box-scale",style:"transform: scale("+e.nowVal/100+"); transform-origin: 50% 0px 0px;",attrs:{id:"box-scale"}},[i("nodeWrap",{attrs:{nodeConfig:e.nodeConfig,flowPermission:e.flowPermission,isTried:e.isTried,directorMaxLevel:e.directorMaxLevel,tableId:e.processConfig.processId,queryInfo:e.queryInfo},on:{"update:nodeConfig":function(t){e.nodeConfig=t},"update:node-config":function(t){e.nodeConfig=t},"update:flowPermission":function(t){e.flowPermission=t},"update:flow-permission":function(t){e.flowPermission=t},"update:isTried":function(t){e.isTried=t},"update:is-tried":function(t){e.isTried=t}}}),i("div",{staticClass:"end-node"},[i("div",{staticClass:"end-node-circle"}),i("div",{staticClass:"end-node-text"},[e._v("流程结束")])])],1)])])]),e.printType?i("el-tab-pane",{staticClass:"tableClass",attrs:{label:"打印设置",name:"Print"}},[i("div",{staticClass:"divCalss"},[i("span",{staticStyle:{"font-size":"14px","margin-bottom":"20px",display:"block"}},[e._v("\n 打印内容设置:\n "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.JsonListAll,border:"","header-cell-style":e.$TableCell.setHeaderCellStyle,"cell-style":e.$TableCell.setCellStyle}},[i("el-table-column",{attrs:{prop:"name",label:"字段名称",width:"300"}}),i("el-table-column",{attrs:{width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{on:{change:function(n){return e.handlebutton(t,n,"1")}},model:{value:e.JsonListAll[t.$index].isPrint,callback:function(n){e.$set(e.JsonListAll[t.$index],"isPrint",n)},expression:"JsonListAll[scope.$index].isPrint"}})]}}],null,!1,3125407715)},[i("template",{slot:"header"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handlecheckbox("1")}}},[e._v("打印")])],1)],2),i("el-table-column",{attrs:{width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{on:{change:function(n){return e.handlebutton(t,n,"2")}},model:{value:e.JsonListAll[t.$index].notPrint,callback:function(n){e.$set(e.JsonListAll[t.$index],"notPrint",n)},expression:"JsonListAll[scope.$index].notPrint"}})]}}],null,!1,4162351887)},[i("template",{slot:"header"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handlecheckbox("2")}}},[e._v("不打印")])],1)],2)],1)],1),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{flex:"1"}},[i("el-checkbox",{model:{value:e.isPrintChildTable,callback:function(t){e.isPrintChildTable=t},expression:"isPrintChildTable"}},[e._v("打印子表")]),e.approveRemake.length>0?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.approveRemake))]),i("el-button",{staticClass:"approveRemake",attrs:{icon:"el-icon-question",circle:""}})],1):e._e()],1),i("el-checkbox",{model:{value:e.isPrintLog,callback:function(t){e.isPrintLog=t},expression:"isPrintLog"}},[e._v("打印审批日志")])],1)])]):e._e()],1):i("div",{staticClass:"fd-nav-content",staticStyle:{position:"relative"}},[i("div",{staticStyle:{position:"absolute",top:"30%",margin:"0 auto","text-align":"center",left:"35%"}},[i("img",{attrs:{src:n("2d9f"),alt:""}}),i("div",{staticStyle:{"font-size":"16px"}},[i("p",{staticStyle:{color:"#333333"}},[e._v("当前未开启审批")]),i("p",{staticStyle:{color:"#333333"}},[e._v("请先通过上方滑块开关开启审批后再进行流程配置")])])])]),i("el-dialog",{staticClass:"modalTips",attrs:{title:"提示",visible:e.tipVisible,width:"445px"},on:{"update:visible":function(t){e.tipVisible=t}}},[i("div",{staticClass:"ant-confirm-body"},[i("i",{staticClass:"anticon anticon-close-circle",staticStyle:{color:"#f00"}}),i("span",{staticClass:"ant-confirm-title"},[e._v("当前无法发布")]),i("div",{staticClass:"ant-confirm-content"},[i("div",[i("p",{staticClass:"error-modal-desc"},[e._v("以下内容不完善,需进行修改")]),i("div",{staticClass:"error-modal-list"},e._l(e.tipList,(function(t,n){return i("div",{key:n,staticClass:"error-modal-item"},[i("div",{staticClass:"error-modal-item-label"},[e._v("流程设计")]),i("div",{staticClass:"error-modal-item-content"},[e._v(e._s(t.name)+" 未选择"+e._s(t.type))])])})),0)])])]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.tipVisible=!1}}},[e._v("我知道了")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.tipVisible=!1}}},[e._v("前往修改")])],1)]),i("el-dialog",{attrs:{title:e.queryInfo.name+"老数据参考",visible:e.oldModal,width:"70%","before-close":e.showOldModal},on:{"update:visible":function(t){e.oldModal=t}}},[i("OldProcess",{attrs:{tools:!1,path:e.path,userInfo:e.userInfo,queryInfo:e.queryInfo}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.oldModal=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.oldModal=!1}}},[e._v("确 定")])],1)],1),i("el-dialog",{attrs:{title:"关闭审批",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("template",{slot:"title"},[i("i",{staticClass:"el-icon-warning",staticStyle:{"font-size":"20px",color:"orange"}}),i("span",{staticStyle:{"font-size":"20px"}},[e._v("关闭审批")])]),i("span",[e._v("关闭后,该业务后续提交的数据无需通过审批,审批状态默认为已通过。")]),i("div",{staticStyle:{"margin-top":"20px"}},[i("el-checkbox",{model:{value:e.ApprovaSwitch,callback:function(t){e.ApprovaSwitch=t},expression:"ApprovaSwitch"}},[e._v("确认执行此操作")])],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",disabled:!e.ApprovaSwitch},on:{click:e.handlerClick}},[e._v("确 定")])],1)],2)],1)}),a=[],s=n("a30c"),l=s["a"],u=(n("fc79"),n("cba8")),c=Object(u["a"])(l,o,a,!1,null,"6219f126",null),d=c.exports,h=[d],f=function e(t){e.installed||(e.installed=!0,h.map((function(e){t.component(e.name,e)})))};"undefined"!==typeof window&&window.Vue&&f(window.Vue);var p=Object(r["a"])({install:f},h);t["default"]=p},"11d9":function(e,t,n){var i,r,o,a=n("04e8"),s=n("c6da"),l=n("e7ec"),u=n("244f"),c=n("d28a"),d=n("12ed"),h=n("d5dd"),f=n("7398"),p=n("a706"),m="Object already initialized",v=s.TypeError,g=s.WeakMap,y=function(e){return o(e)?r(e):i(e,{})},b=function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||h.state){var _=h.state||(h.state=new g),w=l(_.get),x=l(_.has),k=l(_.set);i=function(e,t){if(x(_,e))throw new v(m);return t.facade=e,k(_,e,t),t},r=function(e){return w(_,e)||{}},o=function(e){return x(_,e)}}else{var M=f("state");p[M]=!0,i=function(e,t){if(d(e,M))throw new v(m);return t.facade=e,c(e,M,t),t},r=function(e){return d(e,M)?e[M]:{}},o=function(e){return d(e,M)}}e.exports={set:i,get:r,has:o,enforce:y,getterFor:b}},"12a9":function(e,t,n){var i=n("7faf"),r=n("16bc"),o=n("0e65");e.exports=function(e,t,n){var a,s;r(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=i(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return r(a),n}},"12cb":function(e,t,n){var i=n("3a08"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},"12ed":function(e,t,n){var i=n("e7ec"),r=n("3493"),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},"12fa":function(e,t,n){var i=n("d442"),r=n("0572"),o=n("6f4d"),a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},1320:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
19
|
+
var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},1111:function(e,t,n){var i=n("93a7"),r=n("12ed"),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},"112a":function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("e67d"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));var r=n("a19a"),o=(n("59d7"),n("3e22"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"fd-nav sidePadding"},[i("div",{staticClass:"fd-nav-left"},[i("div",{staticClass:"fd-nav-title"},[e._v(e._s(e.queryInfo.name)+"流程")])]),i("div",{staticClass:"fd-nav-center"}),i("div",{staticClass:"fd-nav-right"},[i("div",{staticClass:"switch fixWidth"},[i("span",[e._v("重复审批人自动通过:")]),i("el-switch",{model:{value:e.workFlowDef.automaticPass,callback:function(t){e.$set(e.workFlowDef,"automaticPass",t)},expression:"workFlowDef.automaticPass"}}),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("开通后,当同一审批人重复出现在多节点时,"),i("br"),e._v("若首个节点审批通过,则后续节点中该审批"),i("br"),e._v("人自动通过无需多次操作审批")]),i("el-button",{staticClass:"tooltipContent",attrs:{icon:"el-icon-question",circle:""}})],1)],1),i("div",{staticClass:"switch"},[i("span",[e._v("是否开启审批:")]),i("el-switch",{on:{change:e.handlerSwitch},model:{value:e.workFlowDef.switchOn,callback:function(t){e.$set(e.workFlowDef,"switchOn",t)},expression:"workFlowDef.switchOn"}})],1),i("el-button",{attrs:{round:"",size:"medium"},on:{click:e.cancel}},[e._v("取消")]),i("el-button",{attrs:{round:"",type:"primary",size:"medium"},on:{click:e.saveSet}},[e._v("保存")]),e.isOldData?i("el-button",{attrs:{round:"",type:"warning",size:"medium"},on:{click:e.showOldModal}},[e._v("老数据参考")]):e._e()],1)]),e.workFlowDef.switchOn?i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"流程设计",name:"process"}},[i("div",{staticClass:"fd-nav-content"},[i("section",{staticClass:"dingflow-design"},[i("div",{staticClass:"zoom"},[i("div",{class:"zoom-out"+(50==e.nowVal?" disabled":""),on:{click:function(t){return e.zoomSize(1)}}}),i("span",[e._v(e._s(e.nowVal)+"%")]),i("div",{class:"zoom-in"+(300==e.nowVal?" disabled":""),on:{click:function(t){return e.zoomSize(2)}}})]),i("div",{staticClass:"box-scale",style:"transform: scale("+e.nowVal/100+"); transform-origin: 50% 0px 0px;",attrs:{id:"box-scale"}},[i("nodeWrap",{attrs:{nodeConfig:e.nodeConfig,flowPermission:e.flowPermission,isTried:e.isTried,directorMaxLevel:e.directorMaxLevel,tableId:e.processConfig.processId,queryInfo:e.queryInfo},on:{"update:nodeConfig":function(t){e.nodeConfig=t},"update:node-config":function(t){e.nodeConfig=t},"update:flowPermission":function(t){e.flowPermission=t},"update:flow-permission":function(t){e.flowPermission=t},"update:isTried":function(t){e.isTried=t},"update:is-tried":function(t){e.isTried=t}}}),i("div",{staticClass:"end-node"},[i("div",{staticClass:"end-node-circle"}),i("div",{staticClass:"end-node-text"},[e._v("流程结束")])])],1)])])]),e.printType?i("el-tab-pane",{staticClass:"tableClass",attrs:{label:"打印设置",name:"Print"}},[i("div",{staticClass:"divCalss"},[i("span",{staticStyle:{"font-size":"14px","margin-bottom":"20px",display:"block"}},[e._v("\n 打印内容设置:\n "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.JsonListAll,border:"","header-cell-style":e.$TableCell.setHeaderCellStyle,"cell-style":e.$TableCell.setCellStyle}},[i("el-table-column",{attrs:{prop:"name",label:"字段名称",width:"300"}}),i("el-table-column",{attrs:{width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{on:{change:function(n){return e.handlebutton(t,n,"1")}},model:{value:e.JsonListAll[t.$index].isPrint,callback:function(n){e.$set(e.JsonListAll[t.$index],"isPrint",n)},expression:"JsonListAll[scope.$index].isPrint"}})]}}],null,!1,3125407715)},[i("template",{slot:"header"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handlecheckbox("1")}}},[e._v("打印")])],1)],2),i("el-table-column",{attrs:{width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{on:{change:function(n){return e.handlebutton(t,n,"2")}},model:{value:e.JsonListAll[t.$index].notPrint,callback:function(n){e.$set(e.JsonListAll[t.$index],"notPrint",n)},expression:"JsonListAll[scope.$index].notPrint"}})]}}],null,!1,4162351887)},[i("template",{slot:"header"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handlecheckbox("2")}}},[e._v("不打印")])],1)],2)],1)],1),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{flex:"1"}},[i("el-checkbox",{model:{value:e.isPrintChildTable,callback:function(t){e.isPrintChildTable=t},expression:"isPrintChildTable"}},[e._v("打印子表")]),e.approveRemake.length>0?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.approveRemake))]),i("el-button",{staticClass:"approveRemake",attrs:{icon:"el-icon-question",circle:""}})],1):e._e()],1),i("el-checkbox",{model:{value:e.isPrintLog,callback:function(t){e.isPrintLog=t},expression:"isPrintLog"}},[e._v("打印审批日志")])],1)])]):e._e()],1):i("div",{staticClass:"fd-nav-content",staticStyle:{position:"relative"}},[i("div",{staticStyle:{position:"absolute",top:"30%",margin:"0 auto","text-align":"center",left:"35%"}},[i("img",{attrs:{src:n("480d")}}),i("div",{staticStyle:{"font-size":"16px"}},[i("p",{staticStyle:{color:"#333333"}},[e._v("当前未开启审批")]),i("p",{staticStyle:{color:"#333333"}},[e._v("请先通过上方滑块开关开启审批后再进行流程配置")])])])]),i("el-dialog",{staticClass:"modalTips",attrs:{title:"提示",visible:e.tipVisible,width:"445px"},on:{"update:visible":function(t){e.tipVisible=t}}},[i("div",{staticClass:"ant-confirm-body"},[i("i",{staticClass:"anticon anticon-close-circle",staticStyle:{color:"#f00"}}),i("span",{staticClass:"ant-confirm-title"},[e._v("当前无法发布")]),i("div",{staticClass:"ant-confirm-content"},[i("div",[i("p",{staticClass:"error-modal-desc"},[e._v("以下内容不完善,需进行修改")]),i("div",{staticClass:"error-modal-list"},e._l(e.tipList,(function(t,n){return i("div",{key:n,staticClass:"error-modal-item"},[i("div",{staticClass:"error-modal-item-label"},[e._v("流程设计")]),i("div",{staticClass:"error-modal-item-content"},[e._v(e._s(t.name)+" 未选择"+e._s(t.type))])])})),0)])])]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.tipVisible=!1}}},[e._v("我知道了")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.tipVisible=!1}}},[e._v("前往修改")])],1)]),i("el-dialog",{attrs:{title:e.queryInfo.name+"老数据参考",visible:e.oldModal,width:"70%","before-close":e.showOldModal},on:{"update:visible":function(t){e.oldModal=t}}},[i("OldProcess",{attrs:{tools:!1,path:e.path,userInfo:e.userInfo,queryInfo:e.queryInfo}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.oldModal=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.oldModal=!1}}},[e._v("确 定")])],1)],1),i("el-dialog",{attrs:{title:"关闭审批",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("template",{slot:"title"},[i("i",{staticClass:"el-icon-warning",staticStyle:{"font-size":"20px",color:"orange"}}),i("span",{staticStyle:{"font-size":"20px"}},[e._v("关闭审批")])]),i("span",[e._v("关闭后,该业务后续提交的数据无需通过审批,审批状态默认为已通过。")]),i("div",{staticStyle:{"margin-top":"20px"}},[i("el-checkbox",{model:{value:e.ApprovaSwitch,callback:function(t){e.ApprovaSwitch=t},expression:"ApprovaSwitch"}},[e._v("确认执行此操作")])],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",disabled:!e.ApprovaSwitch},on:{click:e.handlerClick}},[e._v("确 定")])],1)],2)],1)}),a=[],s=n("a30c"),l=s["a"],u=(n("b55d"),n("cba8")),c=Object(u["a"])(l,o,a,!1,null,"c62b1364",null),d=c.exports,h=[d],f=function e(t){e.installed||(e.installed=!0,h.map((function(e){t.component(e.name,e)})))};"undefined"!==typeof window&&window.Vue&&f(window.Vue);var p=Object(r["a"])({install:f},h);t["default"]=p},"11d9":function(e,t,n){var i,r,o,a=n("04e8"),s=n("c6da"),l=n("e7ec"),u=n("244f"),c=n("d28a"),d=n("12ed"),h=n("d5dd"),f=n("7398"),p=n("a706"),m="Object already initialized",v=s.TypeError,g=s.WeakMap,y=function(e){return o(e)?r(e):i(e,{})},b=function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||h.state){var _=h.state||(h.state=new g),w=l(_.get),x=l(_.has),k=l(_.set);i=function(e,t){if(x(_,e))throw new v(m);return t.facade=e,k(_,e,t),t},r=function(e){return w(_,e)||{}},o=function(e){return x(_,e)}}else{var M=f("state");p[M]=!0,i=function(e,t){if(d(e,M))throw new v(m);return t.facade=e,c(e,M,t),t},r=function(e){return d(e,M)?e[M]:{}},o=function(e){return d(e,M)}}e.exports={set:i,get:r,has:o,enforce:y,getterFor:b}},"12a9":function(e,t,n){var i=n("7faf"),r=n("16bc"),o=n("0e65");e.exports=function(e,t,n){var a,s;r(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=i(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return r(a),n}},"12cb":function(e,t,n){var i=n("3a08"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},"12ed":function(e,t,n){var i=n("e7ec"),r=n("3493"),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},"12fa":function(e,t,n){var i=n("d442"),r=n("0572"),o=n("6f4d"),a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},1320:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
20
20
|
//! moment.js locale configuration
|
|
21
21
|
var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},n=e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,i=e>=100?100:null;return e+(t[e]||t[n]||t[i])},week:{dow:1,doy:7}});return n}))},"13d6":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
22
22
|
//! moment.js locale configuration
|
|
@@ -62,7 +62,7 @@ var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juill
|
|
|
62
62
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
63
63
|
* @license MIT
|
|
64
64
|
*/
|
|
65
|
-
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},"2d9f":function(e,t,n){e.exports=n.p+"img/quetu.792614bf.png"},"2e3d":function(e,t,n){"use strict";n.r(t);var i=n("6d2e"),r=n.n(i),o=n("4367"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],o=t.length;if("function"===typeof r)return r.apply(null,t.slice(1));if("string"===typeof r){for(var a=String(r).replace(s,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(_){return"[Circular]"}break;default:return e}})),l=t[i];i<o;l=t[++i])a+=" "+l;return a}return r}function c(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function d(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!c(t)||"string"!==typeof e||e))}function h(e,t,n){var i=[],r=0,o=e.length;function a(e){i.push.apply(i,e),r++,r===o&&n(i)}e.forEach((function(e){t(e,a)}))}function f(e,t,n){var i=0,r=e.length;function o(a){if(a&&a.length)n(a);else{var s=i;i+=1,s<r?t(e[s],o):n([])}}o([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,i){if(t.first){var r=p(e);return f(r,n,i)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,u=[],c=function(e){u.push.apply(u,e),l++,l===s&&i(u)};a.forEach((function(t){var i=e[t];-1!==o.indexOf(t)?f(i,n,c):h(i,n,c)}))}function v(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function g(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===("undefined"===typeof i?"undefined":a()(i))&&"object"===a()(e[n])?e[n]=r()({},e[n],i):e[n]=i}return e}function y(e,t,n,i,r,o){!e.required||n.hasOwnProperty(e.field)&&!d(t,o||e.type)||i.push(u(r.messages.required,e.fullField))}var b=y;function w(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(u(r.messages.whitespace,e.fullField))}var x=w,k={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},M={integer:function(e){return M.number(e)&&parseInt(e,10)===e},float:function(e){return M.number(e)&&!M.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!M.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(k.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(k.url)},hex:function(e){return"string"===typeof e&&!!e.match(k.hex)}};function C(e,t,n,i,r){if(e.required&&void 0===t)b(e,t,n,i,r);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?M[s](t)||i.push(u(r.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&i.push(u(r.messages.types[s],e.fullField,e.type))}}var S=C;function D(e,t,n,i,r){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,d=null,h="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(h?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(c=t.length),f&&(c=t.replace(l,"_").length),o?c!==e.len&&i.push(u(r.messages[d].len,e.fullField,e.len)):a&&!s&&c<e.min?i.push(u(r.messages[d].min,e.fullField,e.min)):s&&!a&&c>e.max?i.push(u(r.messages[d].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&i.push(u(r.messages[d].range,e.fullField,e.min,e.max))}var L=D,T="enum";function E(e,t,n,i,r){e[T]=Array.isArray(e[T])?e[T]:[],-1===e[T].indexOf(t)&&i.push(u(r.messages[T],e.fullField,e[T].join(", ")))}var P=E;function O(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var j=O,I={required:b,whitespace:x,type:S,range:L,enum:P,pattern:j};function Y(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();I.required(e,t,i,o,r,"string"),d(t,"string")||(I.type(e,t,i,o,r),I.range(e,t,i,o,r),I.pattern(e,t,i,o,r),!0===e.whitespace&&I.whitespace(e,t,i,o,r))}n(o)}var A=Y;function N(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&I.type(e,t,i,o,r)}n(o)}var R=N;function H(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&(I.type(e,t,i,o,r),I.range(e,t,i,o,r))}n(o)}var F=H;function z(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&I.type(e,t,i,o,r)}n(o)}var $=z;function B(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),d(t)||I.type(e,t,i,o,r)}n(o)}var W=B;function V(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&(I.type(e,t,i,o,r),I.range(e,t,i,o,r))}n(o)}var U=V;function q(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&(I.type(e,t,i,o,r),I.range(e,t,i,o,r))}n(o)}var G=q;function K(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t,"array")&&!e.required)return n();I.required(e,t,i,o,r,"array"),d(t,"array")||(I.type(e,t,i,o,r),I.range(e,t,i,o,r))}n(o)}var J=K;function X(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&I.type(e,t,i,o,r)}n(o)}var Z=X,Q="enum";function ee(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),t&&I[Q](e,t,i,o,r)}n(o)}var te=ee;function ne(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();I.required(e,t,i,o,r),d(t,"string")||I.pattern(e,t,i,o,r)}n(o)}var ie=ne;function re(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();if(I.required(e,t,i,o,r),!d(t)){var s=void 0;s="number"===typeof t?new Date(t):t,I.type(e,s,i,o,r),s&&I.range(e,s.getTime(),i,o,r)}}n(o)}var oe=re;function ae(e,t,n,i,r){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);I.required(e,t,i,o,r,s),n(o)}var se=ae;function le(e,t,n,i,r){var o=e.type,a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(d(t,o)&&!e.required)return n();I.required(e,t,i,a,r,o),d(t,o)||I.type(e,t,i,a,r)}n(a)}var ue=le,ce={string:A,method:R,number:F,boolean:$,regexp:W,integer:U,float:G,array:J,object:Z,enum:te,pattern:ie,date:oe,url:ue,hex:ue,email:ue,required:se};function de(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var he=de();function fe(e){this.rules=null,this._messages=he,this.define(e)}fe.prototype={messages:function(e){return e&&(this._messages=g(de(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],o=e,s=n,c=i;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var d=this.messages();d===he&&(d=de()),g(d,s.messages),s.messages=d}else s.messages=this.messages();var h=void 0,f=void 0,p={},y=s.keys||Object.keys(this.rules);y.forEach((function(n){h=t.rules[n],f=o[n],h.forEach((function(i){var a=i;"function"===typeof a.transform&&(o===e&&(o=r()({},o)),f=o[n]=a.transform(f)),a="function"===typeof a?{validator:a}:r()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:f,source:o,field:n}))}))}));var b={};m(p,s,(function(e,t){var n=e.rule,i=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return r()({},t,{fullField:n.fullField+"."+e})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=a;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(v(n)),s.first&&c.length)return b[n.field]=1,t(c);if(i){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map(v(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],t(c);var d={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(d[h]=n.defaultField);for(var f in d=r()({},d,e.rule.fields),d)if(d.hasOwnProperty(f)){var p=Array.isArray(d[f])?d[f]:[d[f]];d[f]=p.map(o.bind(null,f))}var m=new fe(d);m.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),m.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?c.concat(e):e)}))}else t(c)}i=i&&(n.required||!n.required&&e.value),n.field=e.field;var d=n.validator(n,e.value,c,e.source,s);d&&d.then&&d.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){_(e)}))}else c&&c();function _(e){var t=void 0,n=void 0,i=[],r={};function o(e){Array.isArray(e)?i=i.concat.apply(i,e):i.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(i.length)for(t=0;t<i.length;t++)n=i[t].field,r[n]=r[n]||[],r[n].push(i[t]);else i=null,r=null;c(i,r)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ce.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ce.required:ce[this.getType(e)]||!1}},fe.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ce[e]=t},fe.messages=he;t["default"]=fe},"2e53":function(e,t,n){"use strict";var i=n("ad99"),r=n("f8eb"),o=n("8149"),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=o["default"],f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},m=function e(t,n,o,a,s,u,d,h,m,v,g,y,b,_,w){var x=t;if(w.has(t))throw new RangeError("Cyclic object value");if("function"===typeof d?x=d(n,x):x instanceof Date?x=v(x):"comma"===o&&l(x)&&(x=r.maybeMap(x,(function(e){return e instanceof Date?v(e):e}))),null===x){if(a)return u&&!b?u(n,f.encoder,_,"key",g):n;x=""}if(p(x)||r.isBuffer(x)){if(u){var k=b?n:u(n,f.encoder,_,"key",g);return[y(k)+"="+y(u(x,f.encoder,_,"value",g))]}return[y(n)+"="+y(String(x))]}var M,C=[];if("undefined"===typeof x)return C;if("comma"===o&&l(x))M=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(d))M=d;else{var S=Object.keys(x);M=h?S.sort(h):S}for(var D=0;D<M.length;++D){var L=M[D],T="object"===typeof L&&void 0!==L.value?L.value:x[L];if(!s||null!==T){var E=l(x)?"function"===typeof o?o(n,L):n:n+(m?"."+L:"["+L+"]");w.set(t,!0);var P=i();c(C,e(T,E,o,a,s,u,d,h,m,v,g,y,b,_,P))}}return C},v=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o["default"];if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=o.formatters[n],r=f.filter;return("function"===typeof e.filter||l(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:r,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,r,o=e,a=v(t);"function"===typeof a.filter?(r=a.filter,o=r("",o)):l(a.filter)&&(r=a.filter,n=r);var u,d=[];if("object"!==typeof o||null===o)return"";u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[u];n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var f=i(),p=0;p<n.length;++p){var g=n[p];a.skipNulls&&null===o[g]||c(d,m(o[g],g,h,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,f))}var y=d.join(a.delimiter),b=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},"2e5b":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAABCklEQVQoU3WRvUrDUBiGny+mhNbSyTvwQnTwBywO/txBh9ShPxGCF5GSah0k6qwIgnTo4ODQqZfh6F4VaUh75IQS0kNztg+e55zvfY/0B1EdaCez6anv+78YJwzDslWqvi4W88fLzsWb9AfRuwgHSjFOZtN6XlrCQ1D7CsZey92VIAg2bac2EmEnLxnwJK7Yh1eNxrfoDUxpHnNuO/K0vDmDNZsKpgT8AFUFK/CKoIdeL9qyHT41DPyphG3Pc7/yPWQv5HfWMFBeV0QqmAFJOGODZ7OIdKWiNorak+vb+xGoo3UB8xKKj27b3ZPw5u5ELKsTV+xj3bP501oqObUhoh66reZLFtoEi+Z/B5yiDRs2lpIAAAAASUVORK5CYII="},"2e6a":function(e,t,n){var i=n("a5ba"),r=n("e7ec"),o=n("a706"),a=n("244f"),s=n("12ed"),l=n("6f4d").f,u=n("1b92"),c=n("5045"),d=n("f295"),h=n("026b"),f=n("e449"),p=!1,m=h("meta"),v=0,g=function(e){l(e,m,{value:{objectID:"O"+v++,weakData:{}}})},y=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[m].objectID},b=function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},_=function(e){return f&&p&&d(e)&&!s(e,m)&&g(e),e},w=function(){x.enable=function(){},p=!0;var e=u.f,t=r([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var i=e(n),r=0,o=i.length;r<o;r++)if(i[r]===m){t(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},x=e.exports={enable:w,fastKey:y,getWeakData:b,onFreeze:_};o[m]=!0},"2e9a":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
65
|
+
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},"2e3d":function(e,t,n){"use strict";n.r(t);var i=n("6d2e"),r=n.n(i),o=n("4367"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],o=t.length;if("function"===typeof r)return r.apply(null,t.slice(1));if("string"===typeof r){for(var a=String(r).replace(s,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(_){return"[Circular]"}break;default:return e}})),l=t[i];i<o;l=t[++i])a+=" "+l;return a}return r}function c(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function d(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!c(t)||"string"!==typeof e||e))}function h(e,t,n){var i=[],r=0,o=e.length;function a(e){i.push.apply(i,e),r++,r===o&&n(i)}e.forEach((function(e){t(e,a)}))}function f(e,t,n){var i=0,r=e.length;function o(a){if(a&&a.length)n(a);else{var s=i;i+=1,s<r?t(e[s],o):n([])}}o([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,i){if(t.first){var r=p(e);return f(r,n,i)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,u=[],c=function(e){u.push.apply(u,e),l++,l===s&&i(u)};a.forEach((function(t){var i=e[t];-1!==o.indexOf(t)?f(i,n,c):h(i,n,c)}))}function v(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function g(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===("undefined"===typeof i?"undefined":a()(i))&&"object"===a()(e[n])?e[n]=r()({},e[n],i):e[n]=i}return e}function y(e,t,n,i,r,o){!e.required||n.hasOwnProperty(e.field)&&!d(t,o||e.type)||i.push(u(r.messages.required,e.fullField))}var b=y;function w(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(u(r.messages.whitespace,e.fullField))}var x=w,k={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},M={integer:function(e){return M.number(e)&&parseInt(e,10)===e},float:function(e){return M.number(e)&&!M.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!M.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(k.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(k.url)},hex:function(e){return"string"===typeof e&&!!e.match(k.hex)}};function C(e,t,n,i,r){if(e.required&&void 0===t)b(e,t,n,i,r);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?M[s](t)||i.push(u(r.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&i.push(u(r.messages.types[s],e.fullField,e.type))}}var S=C;function D(e,t,n,i,r){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,d=null,h="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(h?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(c=t.length),f&&(c=t.replace(l,"_").length),o?c!==e.len&&i.push(u(r.messages[d].len,e.fullField,e.len)):a&&!s&&c<e.min?i.push(u(r.messages[d].min,e.fullField,e.min)):s&&!a&&c>e.max?i.push(u(r.messages[d].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&i.push(u(r.messages[d].range,e.fullField,e.min,e.max))}var L=D,T="enum";function E(e,t,n,i,r){e[T]=Array.isArray(e[T])?e[T]:[],-1===e[T].indexOf(t)&&i.push(u(r.messages[T],e.fullField,e[T].join(", ")))}var P=E;function O(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var j=O,I={required:b,whitespace:x,type:S,range:L,enum:P,pattern:j};function Y(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();I.required(e,t,i,o,r,"string"),d(t,"string")||(I.type(e,t,i,o,r),I.range(e,t,i,o,r),I.pattern(e,t,i,o,r),!0===e.whitespace&&I.whitespace(e,t,i,o,r))}n(o)}var A=Y;function N(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&I.type(e,t,i,o,r)}n(o)}var R=N;function H(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&(I.type(e,t,i,o,r),I.range(e,t,i,o,r))}n(o)}var F=H;function z(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&I.type(e,t,i,o,r)}n(o)}var $=z;function B(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),d(t)||I.type(e,t,i,o,r)}n(o)}var W=B;function V(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&(I.type(e,t,i,o,r),I.range(e,t,i,o,r))}n(o)}var U=V;function q(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&(I.type(e,t,i,o,r),I.range(e,t,i,o,r))}n(o)}var G=q;function K(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t,"array")&&!e.required)return n();I.required(e,t,i,o,r,"array"),d(t,"array")||(I.type(e,t,i,o,r),I.range(e,t,i,o,r))}n(o)}var J=K;function X(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),void 0!==t&&I.type(e,t,i,o,r)}n(o)}var Z=X,Q="enum";function ee(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();I.required(e,t,i,o,r),t&&I[Q](e,t,i,o,r)}n(o)}var te=ee;function ne(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();I.required(e,t,i,o,r),d(t,"string")||I.pattern(e,t,i,o,r)}n(o)}var ie=ne;function re(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();if(I.required(e,t,i,o,r),!d(t)){var s=void 0;s="number"===typeof t?new Date(t):t,I.type(e,s,i,o,r),s&&I.range(e,s.getTime(),i,o,r)}}n(o)}var oe=re;function ae(e,t,n,i,r){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);I.required(e,t,i,o,r,s),n(o)}var se=ae;function le(e,t,n,i,r){var o=e.type,a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(d(t,o)&&!e.required)return n();I.required(e,t,i,a,r,o),d(t,o)||I.type(e,t,i,a,r)}n(a)}var ue=le,ce={string:A,method:R,number:F,boolean:$,regexp:W,integer:U,float:G,array:J,object:Z,enum:te,pattern:ie,date:oe,url:ue,hex:ue,email:ue,required:se};function de(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var he=de();function fe(e){this.rules=null,this._messages=he,this.define(e)}fe.prototype={messages:function(e){return e&&(this._messages=g(de(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],o=e,s=n,c=i;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var d=this.messages();d===he&&(d=de()),g(d,s.messages),s.messages=d}else s.messages=this.messages();var h=void 0,f=void 0,p={},y=s.keys||Object.keys(this.rules);y.forEach((function(n){h=t.rules[n],f=o[n],h.forEach((function(i){var a=i;"function"===typeof a.transform&&(o===e&&(o=r()({},o)),f=o[n]=a.transform(f)),a="function"===typeof a?{validator:a}:r()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:f,source:o,field:n}))}))}));var b={};m(p,s,(function(e,t){var n=e.rule,i=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return r()({},t,{fullField:n.fullField+"."+e})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=a;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(v(n)),s.first&&c.length)return b[n.field]=1,t(c);if(i){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map(v(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],t(c);var d={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(d[h]=n.defaultField);for(var f in d=r()({},d,e.rule.fields),d)if(d.hasOwnProperty(f)){var p=Array.isArray(d[f])?d[f]:[d[f]];d[f]=p.map(o.bind(null,f))}var m=new fe(d);m.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),m.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?c.concat(e):e)}))}else t(c)}i=i&&(n.required||!n.required&&e.value),n.field=e.field;var d=n.validator(n,e.value,c,e.source,s);d&&d.then&&d.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){_(e)}))}else c&&c();function _(e){var t=void 0,n=void 0,i=[],r={};function o(e){Array.isArray(e)?i=i.concat.apply(i,e):i.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(i.length)for(t=0;t<i.length;t++)n=i[t].field,r[n]=r[n]||[],r[n].push(i[t]);else i=null,r=null;c(i,r)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ce.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ce.required:ce[this.getType(e)]||!1}},fe.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ce[e]=t},fe.messages=he;t["default"]=fe},"2e53":function(e,t,n){"use strict";var i=n("ad99"),r=n("f8eb"),o=n("8149"),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=o["default"],f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},m=function e(t,n,o,a,s,u,d,h,m,v,g,y,b,_,w){var x=t;if(w.has(t))throw new RangeError("Cyclic object value");if("function"===typeof d?x=d(n,x):x instanceof Date?x=v(x):"comma"===o&&l(x)&&(x=r.maybeMap(x,(function(e){return e instanceof Date?v(e):e}))),null===x){if(a)return u&&!b?u(n,f.encoder,_,"key",g):n;x=""}if(p(x)||r.isBuffer(x)){if(u){var k=b?n:u(n,f.encoder,_,"key",g);return[y(k)+"="+y(u(x,f.encoder,_,"value",g))]}return[y(n)+"="+y(String(x))]}var M,C=[];if("undefined"===typeof x)return C;if("comma"===o&&l(x))M=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(d))M=d;else{var S=Object.keys(x);M=h?S.sort(h):S}for(var D=0;D<M.length;++D){var L=M[D],T="object"===typeof L&&void 0!==L.value?L.value:x[L];if(!s||null!==T){var E=l(x)?"function"===typeof o?o(n,L):n:n+(m?"."+L:"["+L+"]");w.set(t,!0);var P=i();c(C,e(T,E,o,a,s,u,d,h,m,v,g,y,b,_,P))}}return C},v=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o["default"];if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=o.formatters[n],r=f.filter;return("function"===typeof e.filter||l(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:r,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,r,o=e,a=v(t);"function"===typeof a.filter?(r=a.filter,o=r("",o)):l(a.filter)&&(r=a.filter,n=r);var u,d=[];if("object"!==typeof o||null===o)return"";u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[u];n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var f=i(),p=0;p<n.length;++p){var g=n[p];a.skipNulls&&null===o[g]||c(d,m(o[g],g,h,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,f))}var y=d.join(a.delimiter),b=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},"2e5b":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAABCklEQVQoU3WRvUrDUBiGny+mhNbSyTvwQnTwBywO/txBh9ShPxGCF5GSah0k6qwIgnTo4ODQqZfh6F4VaUh75IQS0kNztg+e55zvfY/0B1EdaCez6anv+78YJwzDslWqvi4W88fLzsWb9AfRuwgHSjFOZtN6XlrCQ1D7CsZey92VIAg2bac2EmEnLxnwJK7Yh1eNxrfoDUxpHnNuO/K0vDmDNZsKpgT8AFUFK/CKoIdeL9qyHT41DPyphG3Pc7/yPWQv5HfWMFBeV0QqmAFJOGODZ7OIdKWiNorak+vb+xGoo3UB8xKKj27b3ZPw5u5ELKsTV+xj3bP501oqObUhoh66reZLFtoEi+Z/B5yiDRs2lpIAAAAASUVORK5CYII="},"2e6a":function(e,t,n){var i=n("a5ba"),r=n("e7ec"),o=n("a706"),a=n("244f"),s=n("12ed"),l=n("6f4d").f,u=n("1b92"),c=n("5045"),d=n("f295"),h=n("026b"),f=n("e449"),p=!1,m=h("meta"),v=0,g=function(e){l(e,m,{value:{objectID:"O"+v++,weakData:{}}})},y=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[m].objectID},b=function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},_=function(e){return f&&p&&d(e)&&!s(e,m)&&g(e),e},w=function(){x.enable=function(){},p=!0;var e=u.f,t=r([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var i=e(n),r=0,o=i.length;r<o;r++)if(i[r]===m){t(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},x=e.exports={enable:w,fastKey:y,getWeakData:b,onFreeze:_};o[m]=!0},"2e9a":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
66
66
|
//! moment.js locale configuration
|
|
67
67
|
var t=e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10===0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}});return t}))},"2ea8":function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var i=n("8bbf"),r=h(i),o=n("f86a"),a=h(o),s=n("8d48"),l=h(s),u=n("5ad4"),c=h(u),d=n("aaf4");function h(e){return e&&e.__esModule?e:{default:e}}var f=1,p=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+f++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,a.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var i=Number(n.openDelay);i>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),i):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,i=e.zIndex;if(i&&(l.default.zIndex=i),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,d.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,d.getStyle)(document.body,"paddingRight"),10)),p=(0,c.default)();var r=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,d.getStyle)(document.body,"overflowY");p>0&&(r||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,d.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,d.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},"2f51":function(e,t,n){"use strict";(function(e){var i=n("5e41"),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===r,s=a&&i["a"].process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();t["a"]=l}).call(this,n("2ffc")(e))},"2f8e":function(e,t,n){"use strict";var i=n("f8eb"),r=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",d=function(e,t){var n,d={},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=h.split(t.delimiter,f),m=-1,v=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&(p[n]===c?v="utf-8":p[n]===u&&(v="iso-8859-1"),m=n,n=p.length);for(n=0;n<p.length;++n)if(n!==m){var g,y,b=p[n],_=b.indexOf("]="),w=-1===_?b.indexOf("="):_+1;-1===w?(g=t.decoder(b,a.decoder,v,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(b.slice(0,w),a.decoder,v,"key"),y=i.maybeMap(l(b.slice(w+1),t),(function(e){return t.decoder(e,a.decoder,v,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===v&&(y=s(y)),b.indexOf("[]=")>-1&&(y=o(y)?[y]:y),r.call(d,g)?d[g]=i.combine(d[g],y):d[g]=y}return d},h=function(e,t,n,i){for(var r=i?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[],a[c]=r):a[u]=r:a={0:r}}r=a}return r},f=function(e,t,n,i){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&r.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}var d=0;while(n.depth>0&&null!==(l=s.exec(o))&&d<n.depth){if(d+=1,!n.plainObjects&&r.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+o.slice(l.index)+"]"),h(c,t,n,i)}},p=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var r="string"===typeof e?d(e,n):e,o=n.plainObjects?Object.create(null):{},a=Object.keys(r),s=0;s<a.length;++s){var l=a[s],u=f(l,r[l],n,"string"===typeof e);o=i.merge(o,u,n)}return!0===n.allowSparse?o:i.compact(o)}},"2ffc":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},3081:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
68
68
|
//! moment.js locale configuration
|
|
@@ -90,7 +90,7 @@ var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July
|
|
|
90
90
|
//! moment.js locale configuration
|
|
91
91
|
var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},"45ca":function(e,t,n){"use strict";var i=n("e04f"),r=n.n(i);function o(e,t,n){r.a.set(e,t,{expires:n,path:"/",domain:".qiguanbang.com"})}function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?r.a.get():r.a.get(e)}function s(e){r.a.remove(e),r.a.remove(e,{path:"/",domain:".qiguanbang.com"})}var l={cookieSet:o,cookieRead:a,cookieClear:s};t["a"]=l},"45cf":function(e,t,n){var i=n("8334");e.exports=Array.isArray||function(e){return"Array"==i(e)}},"45f3":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
92
92
|
//! moment.js locale configuration
|
|
93
|
-
function t(e,t,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}var n=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},4618:function(e,t){e.exports="object"==typeof window},4650:function(e,t,n){var i=n("c6da"),r=n("244f"),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},"46f3":function(e,t,n){(function(){"undefined"==typeof Math.sgn&&(Math.sgn=function(e){return 0==e?0:e>0?1:-1});var e={subtract:function(e,t){return{x:e.x-t.x,y:e.y-t.y}},dotProduct:function(e,t){return e.x*t.x+e.y*t.y},square:function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},scale:function(e,t){return{x:e.x*t,y:e.y*t}}},n=64,i=Math.pow(2,-n-1),r=function(t,n){for(var i=[],r=a(t,n),o=n.length-1,l=2*o-1,u=s(r,l,i,0),c=e.subtract(t,n[0]),h=e.square(c),f=0,p=0;p<u;p++){c=e.subtract(t,d(n,o,i[p],null,null));var m=e.square(c);m<h&&(h=m,f=i[p])}return c=e.subtract(t,n[o]),m=e.square(c),m<h&&(h=m,f=1),{location:f,distance:h}},o=function(e,t){var n=r(e,t);return{point:d(t,t.length-1,n.location,null,null),location:n.location}},a=function(t,n){for(var i=n.length-1,r=2*i-1,o=[],a=[],s=[],l=[],u=[[1,.6,.3,.1],[.4,.6,.6,.4],[.1,.3,.6,1]],c=0;c<=i;c++)o[c]=e.subtract(n[c],t);for(c=0;c<=i-1;c++)a[c]=e.subtract(n[c+1],n[c]),a[c]=e.scale(a[c],3);for(var d=0;d<=i-1;d++)for(var h=0;h<=i;h++)s[d]||(s[d]=[]),s[d][h]=e.dotProduct(a[d],o[h]);for(c=0;c<=r;c++)l[c]||(l[c]=[]),l[c].y=0,l[c].x=parseFloat(c)/r;for(var f=i,p=i-1,m=0;m<=f+p;m++){var v=Math.max(0,m-p),g=Math.min(m,f);for(c=v;c<=g;c++){var y=m-c;l[c+y].y+=s[y][c]*u[y][c]}}return l},s=function(e,t,i,r){var o,a,h=[],f=[],p=[],m=[];switch(l(e,t)){case 0:return 0;case 1:if(r>=n)return i[0]=(e[0].x+e[t].x)/2,1;if(u(e,t))return i[0]=c(e,t),1;break}d(e,t,.5,h,f),o=s(h,t,p,r+1),a=s(f,t,m,r+1);for(var v=0;v<o;v++)i[v]=p[v];for(v=0;v<a;v++)i[v+o]=m[v];return o+a},l=function(e,t){var n,i,r=0;n=i=Math.sgn(e[0].y);for(var o=1;o<=t;o++)n=Math.sgn(e[o].y),n!=i&&r++,i=n;return r},u=function(e,t){var n,r,o,a,s,l,u,c,d,h,f,p,m,v,g,y,b,_;l=e[0].y-e[t].y,u=e[t].x-e[0].x,c=e[0].x*e[t].y-e[t].x*e[0].y,b=_=0;for(var w=1;w<t;w++){var x=l*e[w].x+u*e[w].y+c;x>b?b=x:x<_&&(_=x)}return f=0,p=1,m=0,v=l,g=u,y=c-b,d=f*g-v*p,h=1/d,r=(p*y-g*m)*h,v=l,g=u,y=c-_,d=f*g-v*p,h=1/d,o=(p*y-g*m)*h,a=Math.min(r,o),s=Math.max(r,o),n=s-a,n<i?1:0},c=function(e,t){var n=1,i=0,r=e[t].x-e[0].x,o=e[t].y-e[0].y,a=e[0].x-0,s=e[0].y-0,l=r*i-o*n,u=1/l,c=(r*s-o*a)*u;return 0+n*c},d=function(e,t,n,i,r){for(var o=[[]],a=0;a<=t;a++)o[0][a]=e[a];for(var s=1;s<=t;s++)for(a=0;a<=t-s;a++)o[s]||(o[s]=[]),o[s][a]||(o[s][a]={}),o[s][a].x=(1-n)*o[s-1][a].x+n*o[s-1][a+1].x,o[s][a].y=(1-n)*o[s-1][a].y+n*o[s-1][a+1].y;if(null!=i)for(a=0;a<=t;a++)i[a]=o[a][0];if(null!=r)for(a=0;a<=t;a++)r[a]=o[t-a][a];return o[t][0]},h={},f=function(e){var t=h[e];if(!t){t=[];var n=function(){return function(t){return Math.pow(t,e)}},i=function(){return function(t){return Math.pow(1-t,e)}},r=function(e){return function(t){return e}},o=function(){return function(e){return e}},a=function(){return function(e){return 1-e}},s=function(e){return function(t){for(var n=1,i=0;i<e.length;i++)n*=e[i](t);return n}};t.push(new n);for(var l=1;l<e;l++){for(var u=[new r(e)],c=0;c<e-l;c++)u.push(new o);for(c=0;c<l;c++)u.push(new a);t.push(new s(u))}t.push(new i),h[e]=t}return t},p=function(e,t){for(var n=f(e.length-1),i=0,r=0,o=0;o<e.length;o++)i+=e[o].x*n[o](t),r+=e[o].y*n[o](t);return{x:i,y:r}},m=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},v=function(e){return e[0].x===e[1].x&&e[0].y===e[1].y},g=function(e,t,n){if(v(e))return{point:e[0],location:t};var i=p(e,t),r=0,o=t,a=n>0?1:-1,s=null;while(r<Math.abs(n))o+=.005*a,s=p(e,o),r+=m(s,i),i=s;return{point:s,location:o}},y=function(e){var t=(new Date).getTime();if(v(e))return 0;var n=p(e,0),i=0,r=0,o=1,a=null;while(r<1)r+=.005*o,a=p(e,r),i+=m(a,n),n=a;return console.log("length",(new Date).getTime()-t),i},b=function(e,t,n){return g(e,t,n).point},_=function(e,t,n){return g(e,t,n).location},w=function(e,t){var n=p(e,t),i=p(e.slice(0,e.length-1),t),r=i.y-n.y,o=i.x-n.x;return 0===r?1/0:Math.atan(r/o)},x=function(e,t,n){var i=g(e,t,n);return i.location>1&&(i.location=1),i.location<0&&(i.location=0),w(e,i.location)},k=function(e,t,n,i){i=null==i?0:i;var r=g(e,t,i),o=w(e,r.location),a=Math.atan(-1/o),s=n/2*Math.sin(a),l=n/2*Math.cos(a);return[{x:r.point.x+l,y:r.point.y+s},{x:r.point.x-l,y:r.point.y-s}]},M=function(e,t,n,i,r){var o=i-t,a=e-n,s=e*(t-i)+t*(n-e),l=L(r),u=[o*l[0][0]+a*l[1][0],o*l[0][1]+a*l[1][1],o*l[0][2]+a*l[1][2],o*l[0][3]+a*l[1][3]+s],c=E.apply(null,u),d=[];if(null!=c)for(var h=0;h<3;h++){var f,p=c[h],m=Math.pow(p,2),v=Math.pow(p,3),g=[l[0][0]*v+l[0][1]*m+l[0][2]*p+l[0][3],l[1][0]*v+l[1][1]*m+l[1][2]*p+l[1][3]];f=n-e!==0?(g[0]-e)/(n-e):(g[1]-t)/(i-t),p>=0&&p<=1&&f>=0&&f<=1&&d.push(g)}return d},C=function(e,t,n,i,r){var o=[];return o.push.apply(o,M(e,t,e+n,t,r)),o.push.apply(o,M(e+n,t,e+n,t+i,r)),o.push.apply(o,M(e+n,t+i,e,t+i,r)),o.push.apply(o,M(e,t+i,e,t,r)),o},S=function(e,t){var n=[];return n.push.apply(n,M(e.x,e.y,e.x+e.w,e.y,t)),n.push.apply(n,M(e.x+e.w,e.y,e.x+e.w,e.y+e.h,t)),n.push.apply(n,M(e.x+e.w,e.y+e.h,e.x,e.y+e.h,t)),n.push.apply(n,M(e.x,e.y+e.h,e.x,e.y,t)),n};function D(e,t){return[-e[0][t]+3*e[1][t]+-3*e[2][t]+e[3][t],3*e[0][t]-6*e[1][t]+3*e[2][t],-3*e[0][t]+3*e[1][t],e[0][t]]}function L(e){return[D(e,"x"),D(e,"y")]}function T(e){return e<0?-1:e>0?1:0}function E(e,t,n,i){var r,o,a=t/e,s=n/e,l=i/e,u=(3*s-Math.pow(a,2))/9,c=(9*a*s-27*l-2*Math.pow(a,3))/54,d=Math.pow(u,3)+Math.pow(c,2),h=[];if(d>=0)r=T(c+Math.sqrt(d))*Math.pow(Math.abs(c+Math.sqrt(d)),1/3),o=T(c-Math.sqrt(d))*Math.pow(Math.abs(c-Math.sqrt(d)),1/3),h[0]=-a/3+(r+o),h[1]=-a/3-(r+o)/2,h[2]=-a/3-(r+o)/2,0!==Math.abs(Math.sqrt(3)*(r-o)/2)&&(h[1]=-1,h[2]=-1);else{var f=Math.acos(c/Math.sqrt(-Math.pow(u,3)));h[0]=2*Math.sqrt(-u)*Math.cos(f/3)-a/3,h[1]=2*Math.sqrt(-u)*Math.cos((f+2*Math.PI)/3)-a/3,h[2]=2*Math.sqrt(-u)*Math.cos((f+4*Math.PI)/3)-a/3}for(var p=0;p<3;p++)(h[p]<0||h[p]>1)&&(h[p]=-1);return h}var P=this.jsBezier={distanceFromCurve:r,gradientAtPoint:w,gradientAtPointAlongCurveFrom:x,nearestPointOnCurve:o,pointOnCurve:p,pointAlongCurveFrom:b,perpendicularToCurveAt:k,locationAlongCurveFrom:_,getLength:y,lineIntersection:M,boxIntersection:C,boundingBoxIntersection:S,version:"0.9.0"};t.jsBezier=P}).call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,n=e.Biltong={version:"0.4.0"};t.Biltong=n;var i=function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=function(e,t,n){return e=i(e)?e:[e.x,e.y],t=i(t)?t:[t.x,t.y],n(e,t)},o=n.gradient=function(e,t){return r(e,t,(function(e,t){return t[0]==e[0]?t[1]>e[1]?1/0:-1/0:t[1]==e[1]?t[0]>e[0]?0:-0:(t[1]-e[1])/(t[0]-e[0])}))},a=(n.normal=function(e,t){return-1/o(e,t)},n.lineLength=function(e,t){return r(e,t,(function(e,t){return Math.sqrt(Math.pow(t[1]-e[1],2)+Math.pow(t[0]-e[0],2))}))},n.quadrant=function(e,t){return r(e,t,(function(e,t){return t[0]>e[0]||t[0]==e[0]?t[1]>e[1]?2:1:t[1]>e[1]?3:4}))}),s=(n.theta=function(e,t){return r(e,t,(function(e,t){var n=o(e,t),i=Math.atan(n),r=a(e,t);return 4!=r&&3!=r||(i+=Math.PI),i<0&&(i+=2*Math.PI),i}))},n.intersects=function(e,t){var n=e.x,i=e.x+e.w,r=e.y,o=e.y+e.h,a=t.x,s=t.x+t.w,l=t.y,u=t.y+t.h;return n<=a&&a<=i&&r<=l&&l<=o||n<=s&&s<=i&&r<=l&&l<=o||n<=a&&a<=i&&r<=u&&u<=o||n<=s&&a<=i&&r<=u&&u<=o||a<=n&&n<=s&&l<=r&&r<=u||a<=i&&i<=s&&l<=r&&r<=u||a<=n&&n<=s&&l<=o&&o<=u||a<=i&&n<=s&&l<=o&&o<=u},n.encloses=function(e,t,n){var i=e.x,r=e.x+e.w,o=e.y,a=e.y+e.h,s=t.x,l=t.x+t.w,u=t.y,c=t.y+t.h,d=function(e,t,i,r){return n?e<=t&&i>=r:e<t&&i>r};return d(i,s,r,l)&&d(o,u,a,c)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),l=[null,[-1,-1],[-1,1],[1,1],[1,-1]];n.pointOnLine=function(e,t,n){var i=o(e,t),r=a(e,t),u=n>0?s[r]:l[r],c=Math.atan(i),d=Math.abs(n*Math.sin(c))*u[1],h=Math.abs(n*Math.cos(c))*u[0];return{x:e.x+h,y:e.y+d}},n.perpendicularLineTo=function(e,t,n){var i=o(e,t),r=Math.atan(-1/i),a=n/2*Math.sin(r),s=n/2*Math.cos(r);return[{x:t.x+s,y:t.y+a},{x:t.x-s,y:t.y-a}]}}.call("undefined"!==typeof window?window:this),function(){"use strict";function e(e,t,n,i,r,o,a,s){return new Touch({target:t,identifier:A(),pageX:n,pageY:i,screenX:r,screenY:o,clientX:a||r,clientY:s||o})}function n(){var e=[];return Array.prototype.push.apply(e,arguments),e.item=function(e){return this[e]},e}function i(t,i,r,o,a,s,l,u){return n(e.apply(null,arguments))}var r=this,o=function(e,t,n){n=n||e.parentNode;for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return!0;return!1},a=function(e){return"string"==typeof e||e.constructor===String?document.getElementById(e):e},s=function(e){return e.srcElement||e.target},l=function(e,t,n,i){if(i){if("undefined"!==typeof e.path&&e.path.indexOf)return{path:e.path,end:e.path.indexOf(n)};var r={path:[],end:-1},o=function(e){r.path.push(e),e===n?r.end=r.path.length-1:null!=e.parentNode&&o(e.parentNode)};return o(t),r}return{path:[t],end:1}},u=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]==t)break;n<e.length&&e.splice(n,1)},c=1,d=function(e,t,n){var i=c++;return e.__ta=e.__ta||{},e.__ta[t]=e.__ta[t]||{},e.__ta[t][i]=n,n.__tauid=i,i},h=function(e,t,n){if(e.__ta&&e.__ta[t]&&delete e.__ta[t][n.__tauid],n.__taExtra){for(var i=0;i<n.__taExtra.length;i++)I(e,n.__taExtra[i][0],n.__taExtra[i][1]);n.__taExtra.length=0}n.__taUnstore&&n.__taUnstore()},f=function(e,t,n,i){if(null==e)return n;var r=e.split(","),a=function(i){a.__tauid=n.__tauid;var u=s(i),c=u,d=l(i,u,t,null!=e);if(-1!=d.end)for(var h=0;h<d.end;h++){c=d.path[h];for(var f=0;f<r.length;f++)o(c,r[f],t)&&n.apply(c,arguments)}};return p(n,i,a),a},p=function(e,t,n){e.__taExtra=e.__taExtra||[],e.__taExtra.push([t,n])},m=function(e,t,n,i){if(w&&k[t]){var r=f(i,e,n,k[t]);j(e,k[t],r,n)}"focus"===t&&null==e.getAttribute("tabindex")&&e.setAttribute("tabindex","1"),j(e,t,f(i,e,n,t),n)},v=function(e,t,n,i){if(null==e.__taSmartClicks){var r=function(t){e.__tad=D(t)},o=function(t){e.__tau=D(t)},a=function(t){if(e.__tad&&e.__tau&&e.__tad[0]===e.__tau[0]&&e.__tad[1]===e.__tau[1])for(var n=0;n<e.__taSmartClicks.length;n++)e.__taSmartClicks[n].apply(s(t),[t])};m(e,"mousedown",r,i),m(e,"mouseup",o,i),m(e,"click",a,i),e.__taSmartClicks=[]}e.__taSmartClicks.push(n),n.__taUnstore=function(){u(e.__taSmartClicks,n)}},g={tap:{touches:1,taps:1},dbltap:{touches:1,taps:2},contextmenu:{touches:2,taps:1}},y=function(e,t){return function(n,i,r,a){if("contextmenu"==i&&x)m(n,i,r,a);else{if(null==n.__taTapHandler){var c=n.__taTapHandler={tap:[],dbltap:[],contextmenu:[],down:!1,taps:0,downSelectors:[]},d=function(i){for(var r=s(i),u=l(i,r,n,null!=a),d=!1,h=0;h<u.end;h++){if(d)return;r=u.path[h];for(var m=0;m<c.downSelectors.length;m++)if(null==c.downSelectors[m]||o(r,c.downSelectors[m],n)){c.down=!0,setTimeout(f,e),setTimeout(p,t),d=!0;break}}},h=function(e){if(c.down){var t,i,r=s(e);c.taps++;var a=O(e);for(var u in g)if(g.hasOwnProperty(u)){var d=g[u];if(d.touches===a&&(1===d.taps||d.taps===c.taps))for(var h=0;h<c[u].length;h++){i=l(e,r,n,null!=c[u][h][1]);for(var f=0;f<i.end;f++)if(t=i.path[f],null==c[u][h][1]||o(t,c[u][h][1],n)){c[u][h][0].apply(t,[e]);break}}}}},f=function(){c.down=!1},p=function(){c.taps=0};m(n,"mousedown",d),m(n,"mouseup",h)}n.__taTapHandler.downSelectors.push(a),n.__taTapHandler[i].push([r,a]),r.__taUnstore=function(){u(n.__taTapHandler[i],r)}}}},b=function(e,t,n,i){for(var r in n.__tamee[e])n.__tamee[e].hasOwnProperty(r)&&n.__tamee[e][r].apply(i,[t])},_=function(){var e=[];return function(t,n,i,r){if(!t.__tamee){t.__tamee={over:!1,mouseenter:[],mouseexit:[]};var a=function(n){var i=s(n);(null==r&&i==t&&!t.__tamee.over||o(i,r,t)&&(null==i.__tamee||!i.__tamee.over))&&(b("mouseenter",n,t,i),i.__tamee=i.__tamee||{},i.__tamee.over=!0,e.push(i))},l=function(n){for(var i=s(n),r=0;r<e.length;r++)i!=e[r]||o(n.relatedTarget||n.toElement,"*",i)||(i.__tamee.over=!1,e.splice(r,1),b("mouseexit",n,t,i))};j(t,"mouseover",f(r,t,a,"mouseover"),a),j(t,"mouseout",f(r,t,l,"mouseout"),l)}i.__taUnstore=function(){delete t.__tamee[n][i.__tauid]},d(t,n,i),t.__tamee[n][i.__tauid]=i}},w="ontouchstart"in document.documentElement||navigator.maxTouchPoints,x="onmousedown"in document.documentElement,k={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},M=function(){var e=-1;if("Microsoft Internet Explorer"==navigator.appName){var t=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(t)&&(e=parseFloat(RegExp.$1))}return e}(),C=M>-1&&M<9,S=function(e,t){if(null==e)return[0,0];var n=P(e),i=E(n,0);return[i[t+"X"],i[t+"Y"]]},D=function(e){return null==e?[0,0]:C?[e.clientX+document.documentElement.scrollLeft,e.clientY+document.documentElement.scrollTop]:S(e,"page")},L=function(e){return S(e,"screen")},T=function(e){return S(e,"client")},E=function(e,t){return e.item?e.item(t):e[t]},P=function(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]},O=function(e){return P(e).length},j=function(e,t,n,i){if(d(e,t,n),i.__tauid=n.__tauid,e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent){var r=t+n.__tauid;e["e"+r]=n,e[r]=function(){e["e"+r]&&e["e"+r](window.event)},e.attachEvent("on"+t,e[r])}},I=function(e,t,n){null!=n&&Y(e,(function(){var i=a(this);if(h(i,t,n),null!=n.__tauid)if(i.removeEventListener)i.removeEventListener(t,n,!1),w&&k[t]&&i.removeEventListener(k[t],n,!1);else if(this.detachEvent){var r=t+n.__tauid;i[r]&&i.detachEvent("on"+t,i[r]),i[r]=null,i["e"+r]=null}n.__taTouchProxy&&I(e,n.__taTouchProxy[1],n.__taTouchProxy[0])}))},Y=function(e,t){if(null!=e){e="undefined"!==typeof Window&&"unknown"!==typeof e.top&&e==e.top?[e]:"string"!==typeof e&&null==e.tagName&&null!=e.length?e:"string"===typeof e?document.querySelectorAll(e):[e];for(var n=0;n<e.length;n++)t.apply(e[n])}},A=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))};r.Mottle=function(e){e=e||{};var t=e.clickThreshold||250,n=e.dblClickThreshold||450,r=new _,o=new y(t,n),s=e.smartClicks,l=function(e,t,n,i){null!=n&&Y(e,(function(){var e=a(this);s&&"click"===t?v(e,t,n,i):"tap"===t||"dbltap"===t||"contextmenu"===t?o(e,t,n,i):"mouseenter"===t||"mouseexit"==t?r(e,t,n,i):m(e,t,n,i)}))};this.remove=function(e){return Y(e,(function(){var e=a(this);if(e.__ta)for(var t in e.__ta)if(e.__ta.hasOwnProperty(t))for(var n in e.__ta[t])e.__ta[t].hasOwnProperty(n)&&I(e,t,e.__ta[t][n]);e.parentNode&&e.parentNode.removeChild(e)})),this},this.on=function(e,t,n,i){var r=arguments[0],o=4==arguments.length?arguments[2]:null,a=arguments[1],s=arguments[arguments.length-1];return l(r,a,s,o),this},this.off=function(e,t,n){return I(e,t,n),this},this.trigger=function(e,t,n,r){var o=x&&("undefined"===typeof MouseEvent||null==n||n.constructor===MouseEvent),s=w&&!x&&k[t]?k[t]:t,l=!(w&&!x&&k[t]),u=D(n),c=L(n),d=T(n);return Y(e,(function(){var e,h=a(this);n=n||{screenX:c[0],screenY:c[1],clientX:d[0],clientY:d[1]};var f=function(e){r&&(e.payload=r)},p={TouchEvent:function(e){var t=i(window,h,0,u[0],u[1],c[0],c[1],d[0],d[1]),n=e.initTouchEvent||e.initEvent;n(s,!0,!0,window,null,c[0],c[1],d[0],d[1],!1,!1,!1,!1,t,t,t,1,0)},MouseEvents:function(e){e.initMouseEvent(s,!0,!0,window,0,c[0],c[1],d[0],d[1],!1,!1,!1,!1,1,h)}};if(document.createEvent){var m=!l&&!o&&w&&k[t],v=m?"TouchEvent":"MouseEvents";e=document.createEvent(v),p[v](e),f(e),h.dispatchEvent(e)}else document.createEventObject&&(e=document.createEventObject(),e.eventType=e.eventName=s,e.screenX=c[0],e.screenY=c[1],e.clientX=d[0],e.clientY=d[1],f(e),h.fireEvent("on"+s,e))})),this}},r.Mottle.consume=function(e,t){e.stopPropagation?e.stopPropagation():e.returnValue=!1,!t&&e.preventDefault&&e.preventDefault()},r.Mottle.pageLocation=D,r.Mottle.setForceTouchEvents=function(e){w=e},r.Mottle.setForceMouseEvents=function(e){x=e},r.Mottle.version="0.8.0",t.Mottle=r.Mottle}.call("undefined"===typeof window?this:window),function(){"use strict";var e=this,n=function(e,t,n){return-1===e.indexOf(t)&&(n?e.unshift(t):e.push(t),!0)},i=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)},r=function(e,t){for(var n=[],i=0;i<e.length;i++)-1===t.indexOf(e[i])&&n.push(e[i]);return n},o=function(e){return null!=e&&("string"===typeof e||e.constructor===String)},a=function(e){var t=e.getBoundingClientRect(),n=document.body,i=document.documentElement,r=window.pageYOffset||i.scrollTop||n.scrollTop,o=window.pageXOffset||i.scrollLeft||n.scrollLeft,a=i.clientTop||n.clientTop||0,s=i.clientLeft||n.clientLeft||0,l=t.top+r-a,u=t.left+o-s;return{top:Math.round(l),left:Math.round(u)}},s=function(e,t,n){n=n||e.parentNode;for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return!0;return!1},l=function(e,t,n){if(s(t,n,e))return t;var i=t.parentNode;while(null!=i&&i!==e){if(s(i,n,e))return i;i=i.parentNode}},u=function(e,t,n){for(var i=null,r=t.getAttribute("katavorio-draggable"),o=null!=r?"[katavorio-draggable='"+r+"'] ":"",a=0;a<e.length;a++)if(i=l(t,n,o+e[a].selector),null!=i){if(e[a].filter){var u=s(n,e[a].filter,i),c=!0===e[a].filterExclude;if(c&&!u||u)return null}return[e[a],i]}return null},c=function(){var e=-1;if("Microsoft Internet Explorer"===navigator.appName){var t=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(t)&&(e=parseFloat(RegExp.$1))}return e}(),d=10,h=10,f=c>-1&&c<9,p=9===c,m=function(e){if(f)return[e.clientX+document.documentElement.scrollLeft,e.clientY+document.documentElement.scrollTop];var t=g(e),n=v(t,0);return p?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},v=function(e,t){return e.item?e.item(t):e[t]},g=function(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]},y={delegatedDraggable:"katavorio-delegated-draggable",draggable:"katavorio-draggable",droppable:"katavorio-droppable",drag:"katavorio-drag",selected:"katavorio-drag-selected",active:"katavorio-drag-active",hover:"katavorio-drag-hover",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},b="katavorio-drag-scope",_=["stop","start","drag","drop","over","out","beforeStart"],w=function(){},x=function(){return!0},k=function(e,t,n){for(var i=0;i<e.length;i++)e[i]!=n&&t(e[i])},M=function(e,t,n,i){k(e,(function(e){e.setActive(t),t&&e.updatePosition(),n&&e.setHover(i,t)}))},C=function(e,t){if(null!=e){e=o(e)||null!=e.tagName||null==e.length?[e]:e;for(var n=0;n<e.length;n++)t.apply(e[n],[e[n]])}},S=function(e){e.stopPropagation?(e.stopPropagation(),e.preventDefault()):e.returnValue=!1},D="input,textarea,select,button,option",L=function(e,t,n){var i=e.srcElement||e.target;return!s(i,n.getInputFilterSelector(),t)},T=function(e,t,n,i){this.params=t||{},this.el=e,this.params.addClass(this.el,this._class),this.uuid=I();var r=!0;return this.setEnabled=function(e){r=e},this.isEnabled=function(){return r},this.toggleEnabled=function(){r=!r},this.setScope=function(e){this.scopes=e?e.split(/\s+/):[i]},this.addScope=function(e){var t={};for(var n in C(this.scopes,(function(e){t[e]=!0})),C(e?e.split(/\s+/):[],(function(e){t[e]=!0})),this.scopes=[],t)this.scopes.push(n)},this.removeScope=function(e){var t={};for(var n in C(this.scopes,(function(e){t[e]=!0})),C(e?e.split(/\s+/):[],(function(e){delete t[e]})),this.scopes=[],t)this.scopes.push(n)},this.toggleScope=function(e){var t={};for(var n in C(this.scopes,(function(e){t[e]=!0})),C(e?e.split(/\s+/):[],(function(e){t[e]?delete t[e]:t[e]=!0})),this.scopes=[],t)this.scopes.push(n)},this.setScope(t.scope),this.k=t.katavorio,t.katavorio},E=function(){return!0},P=function(){return!1},O=function(e,t,n,i){this._class=n.draggable;var r=T.apply(this,arguments);this.rightButtonCanDrag=this.params.rightButtonCanDrag;var l,c,f,p,v,g,b=[0,0],_=null,w=null,k=[0,0],C=!1,D=[0,0],O=!1!==this.params.consumeStartEvent,j=this.el,A=this.params.clone,N=(this.params.scroll,!1!==t.multipleDrop),R=!1,H=null,F=[],z=null,$=t.ghostProxyParent;if(l=!0===t.ghostProxy?E:t.ghostProxy&&"function"===typeof t.ghostProxy?t.ghostProxy:function(e,t){return!(!z||!z.useGhostProxy)&&z.useGhostProxy(e,t)},c=t.makeGhostProxy?t.makeGhostProxy:function(e){return z&&z.makeGhostProxy?z.makeGhostProxy(e):e.cloneNode(!0)},t.selector){var B=e.getAttribute("katavorio-draggable");null==B&&(B=""+(new Date).getTime(),e.setAttribute("katavorio-draggable",B)),F.push(t)}var W,V=t.snapThreshold,U=function(e,t,n,i,r){var o=Math.floor(e[0]/t),a=t*o,s=a+t,l=Math.abs(e[0]-a)<=i?a:Math.abs(s-e[0])<=i?s:e[0],u=Math.floor(e[1]/n),c=n*u,d=c+n,h=Math.abs(e[1]-c)<=r?c:Math.abs(d-e[1])<=r?d:e[1];return[l,h]};this.posses=[],this.posseRoles={},this.toGrid=function(e){if(null==this.params.grid)return e;var t=this.params.grid?this.params.grid[0]/2:V||d/2,n=this.params.grid?this.params.grid[1]/2:V||h/2;return U(e,this.params.grid[0],this.params.grid[1],t,n)},this.snap=function(e,t){if(null!=j){e=e||(this.params.grid?this.params.grid[0]:d),t=t||(this.params.grid?this.params.grid[1]:h);var n=this.params.getPosition(j),i=this.params.grid?this.params.grid[0]/2:V,r=this.params.grid?this.params.grid[1]/2:V,o=U(n,e,t,i,r);return this.params.setPosition(j,o),o}},this.setUseGhostProxy=function(e){l=e?E:P};var q=function(e){return!1===t.allowNegative?[Math.max(0,e[0]),Math.max(0,e[1])]:e},G=function(e){W="function"===typeof e?e:e?function(e,t,n,i){return q([Math.max(0,Math.min(n.w-i[0],e[0])),Math.max(0,Math.min(n.h-i[1],e[1]))])}.bind(this):function(e){return q(e)}}.bind(this);G("function"===typeof this.params.constrain?this.params.constrain:this.params.constrain||this.params.containment),this.setConstrain=function(e){G(e)};var K,J=function(e,t,n,i){return null!=z&&z.constrain&&"function"===typeof z.constrain?z.constrain(e,t,n,i):W(e,t,n,i)};this.setRevert=function(e){K=e},this.params.revert&&(K=this.params.revert);var X=function(e){return"function"===typeof e?(e._katavorioId=I(),e._katavorioId):e},Z={},Q=function(e){for(var t in Z){var n=Z[t],i=n[0](e);if(n[1]&&(i=!i),!i)return!1}return!0},ee=this.setFilter=function(t,n){if(t){var i=X(t);Z[i]=[function(n){var i,r=n.srcElement||n.target;return o(t)?i=s(r,t,e):"function"===typeof t&&(i=t(n,e)),i},!1!==n]}};this.addFilter=ee,this.removeFilter=function(e){var t="function"===typeof e?e._katavorioId:e;delete Z[t]};this.clearAllFilters=function(){Z={}},this.canDrag=this.params.canDrag||x;var te,ne=[],ie=[];this.addSelector=function(e){e.selector&&F.push(e)},this.downListener=function(e){if(!e.defaultPrevented){var t=this.rightButtonCanDrag||3!==e.which&&2!==e.button;if(t&&this.isEnabled()&&this.canDrag()){var i=Q(e)&&L(e,this.el,this.k);if(i){if(z=null,H=null,F.length>0){var o=u(F,this.el,e.target||e.srcElement);if(null!=o&&(z=o[0],H=o[1]),null==H)return}else H=this.el;if(A)if(j=H.cloneNode(!0),this.params.addClass(j,y.clonedDrag),j.setAttribute("id",null),j.style.position="absolute",null!=this.params.parent){var s=this.params.getPosition(this.el);j.style.left=s[0]+"px",j.style.top=s[1]+"px",this.params.parent.appendChild(j)}else{var l=a(H);j.style.left=l.left+"px",j.style.top=l.top+"px",document.body.appendChild(j)}else j=H;O&&S(e),b=m(e),j&&j.parentNode&&(D=[j.parentNode.scrollLeft,j.parentNode.scrollTop]),this.params.bind(document,"mousemove",this.moveListener),this.params.bind(document,"mouseup",this.upListener),r.markSelection(this),r.markPosses(this),this.params.addClass(document.body,n.noSelect),ae("beforeStart",{el:this.el,pos:_,e:e,drag:this})}else this.params.consumeFilteredEvents&&S(e)}}}.bind(this),this.moveListener=function(e){if(b){if(!C){var t=ae("start",{el:this.el,pos:_,e:e,drag:this});if(!1!==t){if(!b)return;this.mark(!0),C=!0}else this.abort()}if(b){ie.length=0;var n=m(e),i=n[0]-b[0],o=n[1]-b[1],a=this.params.ignoreZoom?1:r.getZoom();j&&j.parentNode&&(i+=j.parentNode.scrollLeft-D[0],o+=j.parentNode.scrollTop-D[1]),i/=a,o/=a,this.moveBy(i,o,e),r.updateSelection(i,o,this),r.updatePosses(i,o,this)}}}.bind(this),this.upListener=function(e){b&&(b=null,this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.params.removeClass(document.body,n.noSelect),this.unmark(e),r.unmarkSelection(this,e),r.unmarkPosses(this,e),this.stop(e),r.notifyPosseDragStop(this,e),C=!1,ie.length=0,A?(j&&j.parentNode&&j.parentNode.removeChild(j),j=null):K&&!0===K(j,this.params.getPosition(j))&&(this.params.setPosition(j,_),ae("revert",j)))}.bind(this),this.getFilters=function(){return Z},this.abort=function(){null!=b&&this.upListener()},this.getDragElement=function(e){return e?H||this.el:j||this.el};var re={start:[],drag:[],stop:[],over:[],out:[],beforeStart:[],revert:[]};t.events.start&&re.start.push(t.events.start),t.events.beforeStart&&re.beforeStart.push(t.events.beforeStart),t.events.stop&&re.stop.push(t.events.stop),t.events.drag&&re.drag.push(t.events.drag),t.events.revert&&re.revert.push(t.events.revert),this.on=function(e,t){re[e]&&re[e].push(t)},this.off=function(e,t){if(re[e]){for(var n=[],i=0;i<re[e].length;i++)re[e][i]!==t&&n.push(re[e][i]);re[e]=n}};var oe,ae=function(e,t){var n=null;if(z&&z[e])n=z[e](t);else if(re[e])for(var i=0;i<re[e].length;i++)try{var r=re[e][i](t);null!=r&&(n=r)}catch(o){}return n};this.notifyStart=function(e){ae("start",{el:this.el,pos:this.params.getPosition(j),e:e,drag:this})},this.stop=function(e,t){if(t||C){var n=[],i=r.getSelection(),o=this.params.getPosition(j);if(i.length>0)for(var a=0;a<i.length;a++){var s=this.params.getPosition(i[a].el);n.push([i[a].el,{left:s[0],top:s[1]},i[a]])}else n.push([j,{left:o[0],top:o[1]},this]);ae("stop",{el:j,pos:oe||o,finalPos:o,e:e,drag:this,selection:n})}},this.mark=function(e){var t;_=this.params.getPosition(j),w=this.params.getPosition(j,!0),k=[w[0]-_[0],w[1]-_[1]],this.size=this.params.getSize(j),ne=r.getMatchingDroppables(this),M(ne,!0,!1,this),this.params.addClass(j,this.params.dragClass||n.drag),t=this.params.getConstrainingRectangle?this.params.getConstrainingRectangle(j):this.params.getSize(j.parentNode),te={w:t[0],h:t[1]},v=0,g=0,e&&r.notifySelectionDragStart(this)},this.unmark=function(e,i){if(M(ne,!1,!0,this),R&&l(H,j)?(oe=[j.offsetLeft-v,j.offsetTop-g],j.parentNode.removeChild(j),j=H):oe=null,this.params.removeClass(j,this.params.dragClass||n.drag),ne.length=0,R=!1,!i){ie.length>0&&oe&&t.setPosition(H,oe),ie.sort(Y);for(var r=0;r<ie.length;r++){var o=ie[r].drop(this,e);if(!0===o)break}}},this.moveBy=function(e,n,i){ie.length=0;var r=this.toGrid([_[0]+e,_[1]+n]),o=J(r,j,te,this.size);if(l(this.el,j))if(r[0]!==o[0]||r[1]!==o[1]){if(!R){var a=c(H);t.addClass(a,y.ghostProxy),$?($.appendChild(a),f=t.getPosition(H.parentNode,!0),p=t.getPosition(t.ghostProxyParent,!0),v=f[0]-p[0],g=f[1]-p[1]):H.parentNode.appendChild(a),j=a,R=!0}o=r}else R&&(j.parentNode.removeChild(j),j=H,R=!1,f=null,p=null,v=0,g=0);var s={x:o[0],y:o[1],w:this.size[0],h:this.size[1]},u={x:s.x+k[0],y:s.y+k[1],w:s.w,h:s.h},d=null;this.params.setPosition(j,[o[0]+v,o[1]+g]);for(var h=0;h<ne.length;h++){var m={x:ne[h].pagePosition[0],y:ne[h].pagePosition[1],w:ne[h].size[0],h:ne[h].size[1]};this.params.intersects(u,m)&&(N||null==d||d===ne[h].el)&&ne[h].canDrop(this)?(d||(d=ne[h].el),ie.push(ne[h]),ne[h].setHover(this,!0,i)):ne[h].isHover()&&ne[h].setHover(this,!1,i)}ae("drag",{el:this.el,pos:o,e:i,drag:this})},this.destroy=function(){this.params.unbind(this.el,"mousedown",this.downListener),this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.downListener=null,this.upListener=null,this.moveListener=null},this.params.bind(this.el,"mousedown",this.downListener),this.params.handle?ee(this.params.handle,!1):ee(this.params.filter,this.params.filterExclude)},j=function(e,t,n,i){this._class=n.droppable,this.params=t||{},this.rank=t.rank||0,this._activeClass=this.params.activeClass||n.active,this._hoverClass=this.params.hoverClass||n.hover,T.apply(this,arguments);var r=!1;this.allowLoopback=!1!==this.params.allowLoopback,this.setActive=function(e){this.params[e?"addClass":"removeClass"](this.el,this._activeClass)},this.updatePosition=function(){this.position=this.params.getPosition(this.el),this.pagePosition=this.params.getPosition(this.el,!0),this.size=this.params.getSize(this.el)},this.canDrop=this.params.canDrop||function(e){return!0},this.isHover=function(){return r},this.setHover=function(e,t,n){(t||null==this.el._katavorioDragHover||this.el._katavorioDragHover===e.el._katavorio)&&(this.params[t?"addClass":"removeClass"](this.el,this._hoverClass),this.el._katavorioDragHover=t?e.el._katavorio:null,r!==t&&this.params.events[t?"over":"out"]({el:this.el,e:n,drag:e,drop:this}),r=t)},this.drop=function(e,t){return this.params.events["drop"]({drag:e,e:t,drop:this})},this.destroy=function(){this._class=null,this._activeClass=null,this._hoverClass=null,r=null}},I=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)}))},Y=function(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:0},A=function(e){return null==e?null:(e="string"===typeof e||e.constructor===String?document.getElementById(e):e,null==e?null:(e._katavorio=e._katavorio||I(),e))};e.Katavorio=function(e){var t=[],a={};this._dragsByScope={},this._dropsByScope={};var s=1,l=function(e,t){C(e,(function(e){for(var n=0;n<e.scopes.length;n++)t[e.scopes[n]]=t[e.scopes[n]]||[],t[e.scopes[n]].push(e)}))},u=function(t,n){var i=0;return C(t,(function(t){for(var r=0;r<t.scopes.length;r++)if(n[t.scopes[r]]){var o=e.indexOf(n[t.scopes[r]],t);-1!==o&&(n[t.scopes[r]].splice(o,1),i++)}})),i>0},c=(this.getMatchingDroppables=function(e){for(var t=[],n={},i=0;i<e.scopes.length;i++){var r=this._dropsByScope[e.scopes[i]];if(r)for(var o=0;o<r.length;o++)!r[o].canDrop(e)||n[r[o].uuid]||!r[o].allowLoopback&&r[o].el===e.el||(n[r[o].uuid]=!0,t.push(r[o]))}return t.sort(Y),t},function(t){t=t||{};var n,i={events:{}};for(n in e)i[n]=e[n];for(n in t)i[n]=t[n];for(n=0;n<_.length;n++)i.events[_[n]]=t[_[n]]||w;return i.katavorio=this,i}.bind(this)),d=function(e,t){for(var n=0;n<_.length;n++)t[_[n]]&&e.on(_[n],t[_[n]])}.bind(this),h={},f=e.css||{},p=e.scope||b;for(var m in y)h[m]=y[m];for(var m in f)h[m]=f[m];var v=e.inputFilterSelector||D;this.getInputFilterSelector=function(){return v},this.setInputFilterSelector=function(e){return v=e,this},this.draggable=function(t,n){var i=[];return C(t,function(t){if(t=A(t),null!=t)if(null==t._katavorioDrag){var r=c(n);t._katavorioDrag=new O(t,r,h,p),l(t._katavorioDrag,this._dragsByScope),i.push(t._katavorioDrag),e.addClass(t,r.selector?h.delegatedDraggable:h.draggable)}else d(t._katavorioDrag,n)}.bind(this)),i},this.droppable=function(t,n){var i=[];return C(t,function(t){if(t=A(t),null!=t){var r=new j(t,c(n),h,p);t._katavorioDrop=t._katavorioDrop||[],t._katavorioDrop.push(r),l(r,this._dropsByScope),i.push(r),e.addClass(t,h.droppable)}}.bind(this)),i},this.select=function(n){return C(n,(function(){var n=A(this);n&&n._katavorioDrag&&(a[n._katavorio]||(t.push(n._katavorioDrag),a[n._katavorio]=[n,t.length-1],e.addClass(n,h.selected)))})),this},this.deselect=function(n){return C(n,(function(){var n=A(this);if(n&&n._katavorio){var i=a[n._katavorio];if(i){for(var r=[],o=0;o<t.length;o++)t[o].el!==n&&r.push(t[o]);t=r,delete a[n._katavorio],e.removeClass(n,h.selected)}}})),this},this.deselectAll=function(){for(var n in a){var i=a[n];e.removeClass(i[0],h.selected)}t.length=0,a={}},this.markSelection=function(e){k(t,(function(e){e.mark()}),e)},this.markPosses=function(e){e.posses&&C(e.posses,(function(t){e.posseRoles[t]&&L[t]&&k(L[t].members,(function(e){e.mark()}),e)}))},this.unmarkSelection=function(e,n){k(t,(function(e){e.unmark(n)}),e)},this.unmarkPosses=function(e,t){e.posses&&C(e.posses,(function(n){e.posseRoles[n]&&L[n]&&k(L[n].members,(function(e){e.unmark(t,!0)}),e)}))},this.getSelection=function(){return t.slice(0)},this.updateSelection=function(e,n,i){k(t,(function(t){t.moveBy(e,n)}),i)};var g=function(e,t){t.posses&&C(t.posses,(function(n){t.posseRoles[n]&&L[n]&&k(L[n].members,(function(t){e(t)}),t)}))};this.updatePosses=function(e,t,n){g((function(n){n.moveBy(e,t)}),n)},this.notifyPosseDragStop=function(e,t){g((function(e){e.stop(t,!0)}),e)},this.notifySelectionDragStop=function(e,n){k(t,(function(e){e.stop(n,!0)}),e)},this.notifySelectionDragStart=function(e,n){k(t,(function(e){e.notifyStart(n)}),e)},this.setZoom=function(e){s=e},this.getZoom=function(){return s};var x=function(e,t,n,i){C(e,(function(e){u(e,n),e[i](t),l(e,n)}))};C(["set","add","remove","toggle"],function(e){this[e+"Scope"]=function(t,n){x(t._katavorioDrag,n,this._dragsByScope,e+"Scope"),x(t._katavorioDrop,n,this._dropsByScope,e+"Scope")}.bind(this),this[e+"DragScope"]=function(t,n){x(t.constructor===O?t:t._katavorioDrag,n,this._dragsByScope,e+"Scope")}.bind(this),this[e+"DropScope"]=function(t,n){x(t.constructor===j?t:t._katavorioDrop,n,this._dropsByScope,e+"Scope")}.bind(this)}.bind(this)),this.snapToGrid=function(e,t){for(var n in this._dragsByScope)k(this._dragsByScope[n],(function(n){n.snap(e,t)}))},this.getDragsForScope=function(e){return this._dragsByScope[e]},this.getDropsForScope=function(e){return this._dropsByScope[e]};var M=function(e,n,i){if(e=A(e),e[n]){var r=t.indexOf(e[n]);r>=0&&t.splice(r,1),u(e[n],i)&&C(e[n],(function(e){e.destroy()})),delete e[n]}},S=function(e,t,n,i){e=A(e),e[t]&&e[t].off(n,i)};this.elementRemoved=function(e){e["_katavorioDrag"]&&this.destroyDraggable(e),e["_katavorioDrop"]&&this.destroyDroppable(e)},this.destroyDraggable=function(e,t,n){1===arguments.length?M(e,"_katavorioDrag",this._dragsByScope):S(e,"_katavorioDrag",t,n)},this.destroyDroppable=function(e,t,n){1===arguments.length?M(e,"_katavorioDrop",this._dropsByScope):S(e,"_katavorioDrop",t,n)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},t=[],a={},L={}};var L={},T=function(e,t,i){var r=o(t)?t:t.id,a=!!o(t)||!1!==t.active,s=L[r]||function(){var e={name:r,members:[]};return L[r]=e,e}();return C(e,(function(e){if(e._katavorioDrag){if(i&&null!=e._katavorioDrag.posseRoles[s.name])return;n(s.members,e._katavorioDrag),n(e._katavorioDrag.posses,s.name),e._katavorioDrag.posseRoles[s.name]=a}})),s};this.addToPosse=function(e,t){for(var n=[],i=1;i<arguments.length;i++)n.push(T(e,arguments[i]));return 1===n.length?n[0]:n},this.setPosse=function(e,t){for(var n=[],i=1;i<arguments.length;i++)n.push(T(e,arguments[i],!0).name);return C(e,function(e){if(e._katavorioDrag){var t=r(e._katavorioDrag.posses,n),i=[];Array.prototype.push.apply(i,e._katavorioDrag.posses);for(var o=0;o<t.length;o++)this.removeFromPosse(e,t[o])}}.bind(this)),1===n.length?n[0]:n},this.removeFromPosse=function(e,t){if(arguments.length<2)throw new TypeError("No posse id provided for remove operation");for(var n=1;n<arguments.length;n++)t=arguments[n],C(e,(function(e){if(e._katavorioDrag&&e._katavorioDrag.posses){var n=e._katavorioDrag;C(t,(function(e){i(L[e].members,n),i(n.posses,e),delete n.posseRoles[e]}))}}))},this.removeFromAllPosses=function(e){C(e,(function(e){if(e._katavorioDrag&&e._katavorioDrag.posses){var t=e._katavorioDrag;C(t.posses,(function(e){i(L[e].members,t)})),t.posses.length=0,t.posseRoles={}}}))},this.setPosseState=function(e,t,n){var i=L[t];i&&C(e,(function(e){e._katavorioDrag&&e._katavorioDrag.posses&&(e._katavorioDrag.posseRoles[i.name]=n)}))}},e.Katavorio.version="1.0.0",t.Katavorio=e.Katavorio}.call("undefined"!==typeof window?window:this),function(){var e=this;e.jsPlumbUtil=e.jsPlumbUtil||{};var n=e.jsPlumbUtil;function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function r(e){return"[object Number]"===Object.prototype.toString.call(e)}function o(e){return"string"===typeof e}function a(e){return"boolean"===typeof e}function s(e){return null==e}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"[object Date]"===Object.prototype.toString.call(e)}function c(e){return"[object Function]"===Object.prototype.toString.call(e)}function d(e){return c(e)&&null!=e.name&&e.name.length>0}function h(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function f(e){if(o(e))return""+e;if(a(e))return!!e;if(u(e))return new Date(e.getTime());if(c(e))return e;if(i(e)){for(var t=[],n=0;n<e.length;n++)t.push(f(e[n]));return t}if(l(e)){var r={};for(var s in e)r[s]=f(e[s]);return r}return e}function p(e,t,n,r){var s,u,c={},d={};for(n=n||[],r=r||[],u=0;u<n.length;u++)c[n[u]]=!0;for(u=0;u<r.length;u++)d[r[u]]=!0;var h=f(e);for(u in t)if(null==h[u]||d[u])h[u]=t[u];else if(o(t[u])||a(t[u]))c[u]?(s=[],s.push.apply(s,i(h[u])?h[u]:[h[u]]),s.push.apply(s,a(t[u])?t[u]:[t[u]]),h[u]=s):h[u]=t[u];else if(i(t[u]))s=[],i(h[u])&&s.push.apply(s,h[u]),s.push.apply(s,t[u]),h[u]=s;else if(l(t[u]))for(var p in l(h[u])||(h[u]={}),t[u])h[u][p]=t[u][p];return h}function m(e,t,n){if(null!=e){var i=e,r=i;return t.replace(/([^\.])+/g,(function(e,t,i,o){var a=e.match(/([^\[0-9]+){1}(\[)([0-9+])/),s=i+e.length>=o.length,l=function(){return r[a[1]]||function(){return r[a[1]]=[],r[a[1]]}()};if(s)a?l()[a[3]]=n:r[e]=n;else if(a){var u=l();r=u[a[3]]||function(){return u[a[3]]={},u[a[3]]}()}else r=r[e]||function(){return r[e]={},r[e]}();return""})),e}}function v(e,t,n){for(var i=0;i<n.length;i++){var r=n[i][0][n[i][1]].apply(n[i][0],n[i][2]);if(r===t)return r}return e}function g(e,t,n,r){var a=function(e){var n=e.match(/(\${.*?})/g);if(null!=n)for(var i=0;i<n.length;i++){var r=t[n[i].substring(2,n[i].length-1)]||"";null!=r&&(e=e.replace(n[i],r))}return e},s=function(e){if(null!=e){if(o(e))return a(e);if(!c(e)||r||null!=n&&0!==(e.name||"").indexOf(n)){if(i(e)){for(var u=[],d=0;d<e.length;d++)u.push(s(e[d]));return u}if(l(e)){var h={};for(var f in e)h[f]=s(e[f]);return h}return e}return e(t)}};return s(e)}function y(e,t){if(e)for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function b(e,t){var n=y(e,t);return n>-1&&e.splice(n,1),-1!==n}function _(e,t){var n=e.indexOf(t);return n>-1&&e.splice(n,1),-1!==n}function w(e,t,n){-1===y(e,n)&&e.push(t)}function x(e,t,n,i){var r=e[t];return null==r&&(r=[],e[t]=r),r[i?"unshift":"push"](n),r}function k(e,t,n){return-1===e.indexOf(t)&&(n?e.unshift(t):e.push(t),!0)}function M(e,t,n){var r;t=i(t)?t:[t];var o=function(t){var n=t.__proto__;while(null!=n)if(null!=n.prototype){for(var i in n.prototype)n.prototype.hasOwnProperty(i)&&!e.prototype.hasOwnProperty(i)&&(e.prototype[i]=n.prototype[i]);n=n.prototype.__proto__}else n=null};for(r=0;r<t.length;r++){for(var a in t[r].prototype)t[r].prototype.hasOwnProperty(a)&&!e.prototype.hasOwnProperty(a)&&(e.prototype[a]=t[r].prototype[a]);o(t[r])}var s=function(e,n){return function(){for(r=0;r<t.length;r++)t[r].prototype[e]&&t[r].prototype[e].apply(this,arguments);return n.apply(this,arguments)}},l=function(t){for(var n in t)e.prototype[n]=s(n,t[n])};if(arguments.length>2)for(r=2;r<arguments.length;r++)l(arguments[r]);return e}t.jsPlumbUtil=n,n.isArray=i,n.isNumber=r,n.isString=o,n.isBoolean=a,n.isNull=s,n.isObject=l,n.isDate=u,n.isFunction=c,n.isNamedFunction=d,n.isEmpty=h,n.clone=f,n.merge=p,n.replace=m,n.functionChain=v,n.populate=g,n.findWithFunction=y,n.removeWithFunction=b,n.remove=_,n.addWithFunction=w,n.addToList=x,n.suggest=k,n.extend=M;for(var C=[],S=0;S<256;S++)C[S]=(S<16?"0":"")+S.toString(16);function D(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return C[255&e]+C[e>>8&255]+C[e>>16&255]+C[e>>24&255]+"-"+C[255&t]+C[t>>8&255]+"-"+C[t>>16&15|64]+C[t>>24&255]+"-"+C[63&n|128]+C[n>>8&255]+"-"+C[n>>16&255]+C[n>>24&255]+C[255&i]+C[i>>8&255]+C[i>>16&255]+C[i>>24&255]}function L(e){if(null==e)return null;var t=e.replace(/^\s\s*/,""),n=/\s/,i=t.length;while(n.test(t.charAt(--i)));return t.slice(0,i+1)}function T(e,t){e=null==e.length||"string"===typeof e?[e]:e;for(var n=0;n<e.length;n++)t(e[n])}function E(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t(e[i]));return n}function P(e,t,n){n=n||"parent";var i=function(e){return e?t[e]:null},r=function(e){return e?i(e[n]):null},o=function(e,t){if(null==e)return t;var n=["anchor","anchors","cssClass","connector","paintStyle","hoverPaintStyle","endpoint","endpoints"];"override"===t.mergeStrategy&&Array.prototype.push.apply(n,["events","overlays"]);var i=p(e,t,[],n);return o(r(e),i)},a=function(e){if(null==e)return{};if("string"===typeof e)return i(e);if(e.length){var t=!1,n=0,r=void 0;while(!t&&n<e.length)r=a(e[n]),r?t=!0:n++;return r}},s=a(e);return s?o(r(s),s):{}}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(n.logEnabled&&"undefined"!==typeof console)try{var i=arguments[arguments.length-1];console.log(i)}catch(r){}}function j(e,t,n){return function(){var i=null;try{null!=t&&(i=t.apply(this,arguments))}catch(r){O("jsPlumb function failed : "+r)}if(null!=e&&(null==n||i!==n))try{i=e.apply(this,arguments)}catch(r){O("wrapped function failed : "+r)}return i}}n.uuid=D,n.fastTrim=L,n.each=T,n.map=E,n.mergeWithParents=P,n.logEnabled=!0,n.log=O,n.wrap=j;var I=function(){function e(){var e=this;this._listeners={},this.eventsSuspended=!1,this.tick=!1,this.eventsToDieOn={ready:!0},this.queue=[],this.bind=function(t,n,i){var r=function(t){x(e._listeners,t,n,i),n.__jsPlumb=n.__jsPlumb||{},n.__jsPlumb[D()]=t};if("string"===typeof t)r(t);else if(null!=t.length)for(var o=0;o<t.length;o++)r(t[o]);return e},this.fire=function(e,t,n){if(this.tick)this.queue.unshift(arguments);else{if(this.tick=!0,!this.eventsSuspended&&this._listeners[e]){var i=this._listeners[e].length,r=0,o=!1,a=null;if(!this.shouldFireEvent||this.shouldFireEvent(e,t,n))while(!o&&r<i&&!1!==a){if(this.eventsToDieOn[e])this._listeners[e][r].apply(this,[t,n]);else try{a=this._listeners[e][r].apply(this,[t,n])}catch(s){O("jsPlumb: fire failed for event "+e+" : "+s)}r++,null!=this._listeners&&null!=this._listeners[e]||(o=!0)}}this.tick=!1,this._drain()}return this},this._drain=function(){var t=e.queue.pop();t&&e.fire.apply(e,t)},this.unbind=function(e,t){if(0===arguments.length)this._listeners={};else if(1===arguments.length){if("string"===typeof e)delete this._listeners[e];else if(e.__jsPlumb){var n=void 0;for(var i in e.__jsPlumb)n=e.__jsPlumb[i],_(this._listeners[n]||[],e)}}else 2===arguments.length&&_(this._listeners[e]||[],t);return this},this.getListener=function(t){return e._listeners[t]},this.setSuspendEvents=function(t){e.eventsSuspended=t},this.isSuspendEvents=function(){return e.eventsSuspended},this.silently=function(t){e.setSuspendEvents(!0);try{t()}catch(n){O("Cannot execute silent function "+n)}e.setSuspendEvents(!1)},this.cleanupListeners=function(){for(var t in e._listeners)e._listeners[t]=null}}return e}();function Y(e,t,n){var i=[e[0]-t[0],e[1]-t[1]],r=Math.cos(n/360*Math.PI*2),o=Math.sin(n/360*Math.PI*2);return[i[0]*r-i[1]*o+t[0],i[1]*r+i[0]*o+t[1],r,o]}function A(e,t){var n=Y(e,[0,0],t);return[Math.round(n[0]),Math.round(n[1])]}n.EventGenerator=I,n.rotatePoint=Y,n.rotateAnchorOrientation=A}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this;e.jsPlumbUtil.matchesSelector=function(e,t,n){n=n||e.parentNode;for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return!0;return!1},e.jsPlumbUtil.consume=function(e,t){e.stopPropagation?e.stopPropagation():e.returnValue=!1,!t&&e.preventDefault&&e.preventDefault()},e.jsPlumbUtil.sizeElement=function(e,t,n,i,r){e&&(e.style.height=r+"px",e.height=r,e.style.width=i+"px",e.width=i,e.style.left=t+"px",e.style.top=n+"px")}}.call("undefined"!==typeof window?window:this),function(){var e={deriveAnchor:function(e,t,n,i){return{top:["TopRight","TopLeft"],bottom:["BottomRight","BottomLeft"]}[e][t]}},t=this,n=function(e,t){this.count=0,this.instance=e,this.lists={},this.options=t||{},this.instance.addList=function(e,t){return this.listManager.addList(e,t)},this.instance.removeList=function(e){this.listManager.removeList(e)},this.instance.bind("manageElement",function(e){for(var t=this.instance.getSelector(e.el,"[jtk-scrollable-list]"),n=0;n<t.length;n++)this.addList(t[n])}.bind(this)),this.instance.bind("unmanageElement",(function(e){this.removeList(e.el)})),this.instance.bind("connection",function(e,t){null==t&&(this._maybeUpdateParentList(e.source),this._maybeUpdateParentList(e.target))}.bind(this))};t.jsPlumbListManager=n,n.prototype={addList:function(t,n){var r=this.instance.extend({},e);this.instance.extend(r,this.options),n=this.instance.extend(r,n||{});var o=[this.instance.getInstanceIndex(),this.count++].join("_");this.lists[o]=new i(this.instance,t,n,o)},removeList:function(e){var t=this.lists[e._jsPlumbList];t&&(t.destroy(),delete this.lists[e._jsPlumbList])},_maybeUpdateParentList:function(e){var t=e.parentNode,n=this.instance.getContainer();while(null!=t&&t!==n){if(null!=t._jsPlumbList&&null!=this.lists[t._jsPlumbList])return void t._jsPlumbScrollHandler();t=t.parentNode}}};var i=function(e,t,n,i){function r(e,t,i,r){return n.anchor?n.anchor:n.deriveAnchor(e,t,i,r)}function o(e,t,i,r){return n.deriveEndpoint?n.deriveEndpoint(e,t,i,r):n.endpoint?n.endpoint:i.type}function a(t){var n=t.parentNode,i=e.getContainer();while(null!=n&&n!==i){if(e.hasClass(n,"jtk-managed"))return void e.recalculateOffsets(n);n=n.parentNode}}t["_jsPlumbList"]=i;var s=function(n){for(var i=e.getSelector(t,".jtk-managed"),s=e.getId(t),l=0;l<i.length;l++){if(i[l].offsetTop<t.scrollTop)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],e.select({source:i[l]}).each((function(n){e.proxyConnection(n,0,t,s,(function(){return o("top",0,n.endpoints[0],n)}),(function(){return r("top",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),e.select({target:i[l]}).each((function(n){e.proxyConnection(n,1,t,s,(function(){return o("top",1,n.endpoints[1],n)}),(function(){return r("top",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l].offsetTop+i[l].offsetHeight>t.scrollTop+t.offsetHeight)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],e.select({source:i[l]}).each((function(n){e.proxyConnection(n,0,t,s,(function(){return o("bottom",0,n.endpoints[0],n)}),(function(){return r("bottom",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),e.select({target:i[l]}).each((function(n){e.proxyConnection(n,1,t,s,(function(){return o("bottom",1,n.endpoints[1],n)}),(function(){return r("bottom",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l]._jsPlumbProxies){for(var u=0;u<i[l]._jsPlumbProxies.length;u++)e.unproxyConnection(i[l]._jsPlumbProxies[u][0],i[l]._jsPlumbProxies[u][1],s);delete i[l]._jsPlumbProxies}e.revalidate(i[l])}a(t)};e.setAttribute(t,"jtk-scrollable-list","true"),t._jsPlumbScrollHandler=s,e.on(t,"scroll",s),s(),this.destroy=function(){e.off(t,"scroll",s),delete t._jsPlumbScrollHandler;for(var n=e.getSelector(t,".jtk-managed"),i=e.getId(t),r=0;r<n.length;r++)if(n[r]._jsPlumbProxies){for(var o=0;o<n[r]._jsPlumbProxies.length;o++)e.unproxyConnection(n[r]._jsPlumbProxies[o][0],n[r]._jsPlumbProxies[o][1],i);delete n[r]._jsPlumbProxies}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,n=e.jsPlumbUtil,i=function(e){if(e._jsPlumb.paintStyle&&e._jsPlumb.hoverPaintStyle){var t={};p.extend(t,e._jsPlumb.paintStyle),p.extend(t,e._jsPlumb.hoverPaintStyle),delete e._jsPlumb.hoverPaintStyle,t.gradient&&e._jsPlumb.paintStyle.fill&&delete t.gradient,e._jsPlumb.hoverPaintStyle=t}},r=["tap","dbltap","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu"],o=function(e,t,n,i){var r=e.getAttachedElements();if(r)for(var o=0,a=r.length;o<a;o++)i&&i===r[o]||r[o].setHover(t,!0,n)},a=function(e){return null==e?null:e.split(" ")},s=function(e,t,n){for(var i in t)e[i]=n},l=function(e,t,i){if(e.getDefaultType){var r=e.getTypeDescriptor(),o={},a=e.getDefaultType(),l=n.merge({},a);s(o,a,"__default");for(var u=0,c=e._jsPlumb.types.length;u<c;u++){var d=e._jsPlumb.types[u];if("__default"!==d){var h=e._jsPlumb.instance.getType(d,r);if(null!=h){var f=["anchor","anchors","connector","paintStyle","hoverPaintStyle","endpoint","endpoints","connectorOverlays","connectorStyle","connectorHoverStyle","endpointStyle","endpointHoverStyle"],p=[];"override"===h.mergeStrategy?Array.prototype.push.apply(f,["events","overlays","cssClass"]):p.push("cssClass"),l=n.merge(l,h,p,f),s(o,h,d)}}}t&&(l=n.populate(l,t,"_")),e.applyType(l,i,o),i||e.repaint()}},u=e.jsPlumbUIComponent=function(e){n.EventGenerator.apply(this,arguments);var t=this,i=arguments,r=t.idPrefix,o=r+(new Date).getTime();this._jsPlumb={instance:e._jsPlumb,parameters:e.parameters||{},paintStyle:null,hoverPaintStyle:null,paintStyleInUse:null,hover:!1,beforeDetach:e.beforeDetach,beforeDrop:e.beforeDrop,overlayPlacements:[],hoverClass:e.hoverClass||e._jsPlumb.Defaults.HoverClass,types:[],typeCache:{}},this.cacheTypeItem=function(e,t,n){this._jsPlumb.typeCache[n]=this._jsPlumb.typeCache[n]||{},this._jsPlumb.typeCache[n][e]=t},this.getCachedTypeItem=function(e,t){return this._jsPlumb.typeCache[t]?this._jsPlumb.typeCache[t][e]:null},this.getId=function(){return o};var a=e.overlays||[],s={};if(this.defaultOverlayKeys){for(var l=0;l<this.defaultOverlayKeys.length;l++)Array.prototype.push.apply(a,this._jsPlumb.instance.Defaults[this.defaultOverlayKeys[l]]||[]);for(l=0;l<a.length;l++){var u=p.convertToFullOverlaySpec(a[l]);s[u[1].id]=u}}var c={overlays:s,parameters:e.parameters||{},scope:e.scope||this._jsPlumb.instance.getDefaultScope()};if(this.getDefaultType=function(){return c},this.appendToDefaultType=function(e){for(var t in e)c[t]=e[t]},e.events)for(var d in e.events)t.bind(d,e.events[d]);this.clone=function(){var e=Object.create(this.constructor.prototype);return this.constructor.apply(e,i),e}.bind(this),this.isDetachAllowed=function(e){var t=!0;if(this._jsPlumb.beforeDetach)try{t=this._jsPlumb.beforeDetach(e)}catch(i){n.log("jsPlumb: beforeDetach callback failed",i)}return t},this.isDropAllowed=function(e,t,i,r,o,a,s){var l=this._jsPlumb.instance.checkCondition("beforeDrop",{sourceId:e,targetId:t,scope:i,connection:r,dropEndpoint:o,source:a,target:s});if(this._jsPlumb.beforeDrop)try{l=this._jsPlumb.beforeDrop({sourceId:e,targetId:t,scope:i,connection:r,dropEndpoint:o,source:a,target:s})}catch(u){n.log("jsPlumb: beforeDrop callback failed",u)}return l};var h=[];this.setListenerComponent=function(e){for(var t=0;t<h.length;t++)h[t][3]=e}},c=function(e,t){var n=e._jsPlumb.types[t],i=e._jsPlumb.instance.getType(n,e.getTypeDescriptor());null!=i&&i.cssClass&&e.canvas&&e._jsPlumb.instance.removeClass(e.canvas,i.cssClass)};n.extend(e.jsPlumbUIComponent,n.EventGenerator,{getParameter:function(e){return this._jsPlumb.parameters[e]},setParameter:function(e,t){this._jsPlumb.parameters[e]=t},getParameters:function(){return this._jsPlumb.parameters},setParameters:function(e){this._jsPlumb.parameters=e},getClass:function(){return p.getClass(this.canvas)},hasClass:function(e){return p.hasClass(this.canvas,e)},addClass:function(e){p.addClass(this.canvas,e)},removeClass:function(e){p.removeClass(this.canvas,e)},updateClasses:function(e,t){p.updateClasses(this.canvas,e,t)},setType:function(e,t,n){this.clearTypes(),this._jsPlumb.types=a(e)||[],l(this,t,n)},getType:function(){return this._jsPlumb.types},reapplyTypes:function(e,t){l(this,e,t)},hasType:function(e){return-1!==this._jsPlumb.types.indexOf(e)},addType:function(e,t,n){var i=a(e),r=!1;if(null!=i){for(var o=0,s=i.length;o<s;o++)this.hasType(i[o])||(this._jsPlumb.types.push(i[o]),r=!0);r&&l(this,t,n)}},removeType:function(e,t,n){var i=a(e),r=!1,o=function(e){var t=this._jsPlumb.types.indexOf(e);return-1!==t&&(c(this,t),this._jsPlumb.types.splice(t,1),!0)}.bind(this);if(null!=i){for(var s=0,u=i.length;s<u;s++)r=o(i[s])||r;r&&l(this,t,n)}},clearTypes:function(e,t){for(var n=this._jsPlumb.types.length,i=0;i<n;i++)c(this,0),this._jsPlumb.types.splice(0,1);l(this,e,t)},toggleType:function(e,t,n){var i=a(e);if(null!=i){for(var r=0,o=i.length;r<o;r++){var s=this._jsPlumb.types.indexOf(i[r]);-1!==s?(c(this,s),this._jsPlumb.types.splice(s,1)):this._jsPlumb.types.push(i[r])}l(this,t,n)}},applyType:function(e,t){if(this.setPaintStyle(e.paintStyle,t),this.setHoverPaintStyle(e.hoverPaintStyle,t),e.parameters)for(var n in e.parameters)this.setParameter(n,e.parameters[n]);this._jsPlumb.paintStyleInUse=this.getPaintStyle()},setPaintStyle:function(e,t){this._jsPlumb.paintStyle=e,this._jsPlumb.paintStyleInUse=this._jsPlumb.paintStyle,i(this),t||this.repaint()},getPaintStyle:function(){return this._jsPlumb.paintStyle},setHoverPaintStyle:function(e,t){this._jsPlumb.hoverPaintStyle=e,i(this),t||this.repaint()},getHoverPaintStyle:function(){return this._jsPlumb.hoverPaintStyle},destroy:function(e){(e||null==this.typeId)&&(this.cleanupListeners(),this.clone=null,this._jsPlumb=null)},isHover:function(){return this._jsPlumb.hover},setHover:function(e,t,n){if(this._jsPlumb&&!this._jsPlumb.instance.currentlyDragging&&!this._jsPlumb.instance.isHoverSuspended()){this._jsPlumb.hover=e;var i=e?"addClass":"removeClass";null!=this.canvas&&(null!=this._jsPlumb.instance.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.instance.hoverClass),null!=this._jsPlumb.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.hoverClass)),null!=this._jsPlumb.hoverPaintStyle&&(this._jsPlumb.paintStyleInUse=e?this._jsPlumb.hoverPaintStyle:this._jsPlumb.paintStyle,this._jsPlumb.instance.isSuspendDrawing()||(n=n||jsPlumbUtil.uuid(),this.repaint({timestamp:n,recalc:!1}))),this.getAttachedElements&&!t&&o(this,e,jsPlumbUtil.uuid(),this)}}});var d=0,h=function(){var e=d+1;return d++,e},f=e.jsPlumbInstance=function(t){this.version="2.15.6",this.Defaults={Anchor:"Bottom",Anchors:[null,null],ConnectionsDetachable:!0,ConnectionOverlays:[],Connector:"Bezier",Container:null,DoNotThrowErrors:!1,DragOptions:{},DropOptions:{},Endpoint:"Dot",EndpointOverlays:[],Endpoints:[null,null],EndpointStyle:{fill:"#456"},EndpointStyles:[null,null],EndpointHoverStyle:null,EndpointHoverStyles:[null,null],HoverPaintStyle:null,LabelStyle:{color:"black"},ListStyle:{},LogEnabled:!1,Overlays:[],MaxConnections:1,PaintStyle:{"stroke-width":4,stroke:"#456"},ReattachConnections:!1,RenderMode:"svg",Scope:"jsPlumb_DefaultScope"},t&&p.extend(this.Defaults,t),this.logEnabled=this.Defaults.LogEnabled,this._connectionTypes={},this._endpointTypes={},n.EventGenerator.apply(this);var i=this,o=h(),a=i.bind,s={},l=1,c=function(e){if(null==e)return null;if(3===e.nodeType||8===e.nodeType)return{el:e,text:!0};var t=i.getElement(e);return{el:t,id:n.isString(e)&&null==t?e:W(t)}};for(var d in this.getInstanceIndex=function(){return o},this.setZoom=function(e,t){return l=e,i.fire("zoom",l),t&&i.repaintEverything(),!0},this.getZoom=function(){return l},this.Defaults)s[d]=this.Defaults[d];var f,m=[];this.unbindContainer=function(){if(null!=f&&m.length>0)for(var e=0;e<m.length;e++)i.off(f,m[e][0],m[e][1])},this.setContainer=function(e){this.unbindContainer(),e=this.getElement(e),this.select().each((function(t){t.moveParent(e)})),this.selectEndpoints().each((function(t){t.moveParent(e)}));var t=f;f=e,m.length=0;for(var n={endpointclick:"endpointClick",endpointdblclick:"endpointDblClick"},o=function(e,t,r){var o=t.srcElement||t.target,a=(o&&o.parentNode?o.parentNode._jsPlumb:null)||(o?o._jsPlumb:null)||(o&&o.parentNode&&o.parentNode.parentNode?o.parentNode.parentNode._jsPlumb:null);if(a){a.fire(e,a,t);var s=r&&n[r+e]||e;i.fire(s,a.component||a,t)}},a=function(e,t,n){m.push([e,n]),i.on(f,e,t,n)},s=function(e){a(e,".jtk-connector",(function(t){o(e,t)})),a(e,".jtk-endpoint",(function(t){o(e,t,"endpoint")})),a(e,".jtk-overlay",(function(t){o(e,t)}))},l=0;l<r.length;l++)s(r[l]);for(var u in w){var c=w[u].el;c.parentNode===t&&(t.removeChild(c),f.appendChild(c))}},this.getContainer=function(){return f},this.bind=function(e,t){"ready"===e&&g?t():a.apply(i,[e,t])},i.importDefaults=function(e){for(var t in e)i.Defaults[t]=e[t];return e.Container&&i.setContainer(e.Container),i},i.restoreDefaults=function(){return i.Defaults=p.extend({},s),i};var v=null,g=!1,y=[],b={},_={},w={},x={},k={},M=!1,C=[],S=!1,D=null,L=this.Defaults.Scope,T=1,E=function(){return""+T++},P=function(e,t){f?f.appendChild(e):t?this.getElement(t).appendChild(e):this.appendToRoot(e)}.bind(this),O=function(e,t,n,r){var o={c:[],e:[]};if(!S&&(e=i.getElement(e),null!=e)){var a=W(e),s=e.querySelectorAll(".jtk-managed");null==n&&(n=jsPlumbUtil.uuid());fe({elId:a,offset:t,recalc:!1,timestamp:n});for(var l=0;l<s.length;l++)fe({elId:s[l].getAttribute("id"),recalc:!0,timestamp:n});var u=i.router.redraw(a,t,n,null,r);if(Array.prototype.push.apply(o.c,u.c),Array.prototype.push.apply(o.e,u.e),s)for(var c=0;c<s.length;c++)u=i.router.redraw(s[c].getAttribute("id"),null,n,null,r,!0),Array.prototype.push.apply(o.c,u.c),Array.prototype.push.apply(o.e,u.e)}return o},j=function(e){return _[e]},I=function(e,t){for(var n=e.scope.split(/\s/),i=t.scope.split(/\s/),r=0;r<n.length;r++)for(var o=0;o<i.length;o++)if(i[o]===n[r])return!0;return!1},Y=function(e,t){var n=p.extend({},e);for(var i in t)t[i]&&(n[i]=t[i]);return n},A=function(e,t){var r=p.extend({},e);if(t&&p.extend(r,t),r.source&&(r.source.endpoint?r.sourceEndpoint=r.source:r.source=i.getElement(r.source)),r.target&&(r.target.endpoint?r.targetEndpoint=r.target:r.target=i.getElement(r.target)),e.uuids&&(r.sourceEndpoint=j(e.uuids[0]),r.targetEndpoint=j(e.uuids[1])),r.sourceEndpoint&&r.sourceEndpoint.isFull())n.log(i,"could not add connection; source endpoint is full");else if(r.targetEndpoint&&r.targetEndpoint.isFull())n.log(i,"could not add connection; target endpoint is full");else{if(!r.type&&r.sourceEndpoint&&(r.type=r.sourceEndpoint.connectionType),r.sourceEndpoint&&r.sourceEndpoint.connectorOverlays){r.overlays=r.overlays||[];for(var o=0,a=r.sourceEndpoint.connectorOverlays.length;o<a;o++)r.overlays.push(r.sourceEndpoint.connectorOverlays[o])}r.sourceEndpoint&&r.sourceEndpoint.scope&&(r.scope=r.sourceEndpoint.scope),!r["pointer-events"]&&r.sourceEndpoint&&r.sourceEndpoint.connectorPointerEvents&&(r["pointer-events"]=r.sourceEndpoint.connectorPointerEvents);var s=function(e,t,n){var o=Y(t,{anchor:r.anchors?r.anchors[n]:r.anchor,endpoint:r.endpoints?r.endpoints[n]:r.endpoint,paintStyle:r.endpointStyles?r.endpointStyles[n]:r.endpointStyle,hoverPaintStyle:r.endpointHoverStyles?r.endpointHoverStyles[n]:r.endpointHoverStyle});return i.addEndpoint(e,o)},l=function(e,t,n,i){if(r[e]&&!r[e].endpoint&&!r[e+"Endpoint"]&&!r.newConnection){var o=W(r[e]),a=n[o];if(a=a?a[i]:null,a){if(!a.enabled)return!1;var l=p.extend({},a.def);delete l.label;var u=null!=a.endpoint&&a.endpoint._jsPlumb?a.endpoint:s(r[e],l,t);if(u.isFull())return!1;r[e+"Endpoint"]=u,!r.scope&&l.scope&&(r.scope=l.scope),a.uniqueEndpoint?a.endpoint?u.finalEndpoint=a.endpoint:(a.endpoint=u,u.setDeleteOnEmpty(!1)):u.setDeleteOnEmpty(!0),0===t&&a.def.connectorOverlays&&(r.overlays=r.overlays||[],Array.prototype.push.apply(r.overlays,a.def.connectorOverlays))}}};if(!1!==l("source",0,this.sourceEndpointDefinitions,r.type||"default")&&!1!==l("target",1,this.targetEndpointDefinitions,r.type||"default"))return r.sourceEndpoint&&r.targetEndpoint&&(I(r.sourceEndpoint,r.targetEndpoint)||(r=null)),r}}.bind(i),N=function(e){var t=i.Defaults.ConnectionType||i.getDefaultConnectionType();e._jsPlumb=i,e.newConnection=N,e.newEndpoint=H,e.endpointsByUUID=_,e.endpointsByElement=b,e.finaliseConnection=R,e.id="con_"+E();var n=new t(e);return n.isDetachable()&&(n.endpoints[0].initDraggable("_jsPlumbSource"),n.endpoints[1].initDraggable("_jsPlumbTarget")),n},R=i.finaliseConnection=function(e,t,n,r){if(t=t||{},e.suspendedEndpoint||y.push(e),e.pending=null,e.endpoints[0].isTemporarySource=!1,!1!==r&&i.router.newConnection(e),O(e.source),!t.doNotFireConnectionEvent&&!1!==t.fireEvent){var o={connection:e,source:e.source,target:e.target,sourceId:e.sourceId,targetId:e.targetId,sourceEndpoint:e.endpoints[0],targetEndpoint:e.endpoints[1]};i.fire("connection",o,n)}},H=function(e,t){var n=i.Defaults.EndpointType||p.Endpoint,r=p.extend({},e);r._jsPlumb=i,r.newConnection=N,r.newEndpoint=H,r.endpointsByUUID=_,r.endpointsByElement=b,r.fireDetachEvent=q,r.elementId=t||W(r.source);var o=new n(r);return o.id="ep_"+E(),he(r.elementId,r.source),p.headless||i.getDragManager().endpointAdded(r.source,t),o},F=function(e,t,n){var i=b[e];if(i&&i.length)for(var r=0,o=i.length;r<o;r++){for(var a=0,s=i[r].connections.length;a<s;a++){var l=t(i[r].connections[a]);if(l)return}n&&n(i[r])}},z=function(e,t,n){t="block"===t;var i=null;n&&(i=function(e){e.setVisible(t,!0,!0)});var r=c(e);F(r.id,(function(e){if(t&&n){var i=e.sourceId===r.id?1:0;e.endpoints[i].isVisible()&&e.setVisible(!0)}else e.setVisible(t)}),i)},$=function(e,t){var n=null;t&&(n=function(e){var t=e.isVisible();e.setVisible(!t)}),F(e,(function(e){var t=e.isVisible();e.setVisible(!t)}),n)},B=function(e){var t=x[e];return t?{o:t,s:C[e]}:fe({elId:e})},W=function(e,t,r){if(n.isString(e))return e;if(null==e)return null;var a=i.getAttribute(e,"id");return a&&"undefined"!==a||(2===arguments.length&&void 0!==arguments[1]?a=t:(1===arguments.length||3===arguments.length&&!arguments[2])&&(a="jsPlumb_"+o+"_"+E()),r||i.setAttribute(e,"id",a)),a};this.setConnectionBeingDragged=function(e){M=e},this.isConnectionBeingDragged=function(){return M},this.getManagedElements=function(){return w},this.connectorClass="jtk-connector",this.connectorOutlineClass="jtk-connector-outline",this.connectedClass="jtk-connected",this.hoverClass="jtk-hover",this.endpointClass="jtk-endpoint",this.endpointConnectedClass="jtk-endpoint-connected",this.endpointFullClass="jtk-endpoint-full",this.endpointDropAllowedClass="jtk-endpoint-drop-allowed",this.endpointDropForbiddenClass="jtk-endpoint-drop-forbidden",this.overlayClass="jtk-overlay",this.draggingClass="jtk-dragging",this.elementDraggingClass="jtk-element-dragging",this.sourceElementDraggingClass="jtk-source-element-dragging",this.targetElementDraggingClass="jtk-target-element-dragging",this.endpointAnchorClassPrefix="jtk-endpoint-anchor",this.hoverSourceClass="jtk-source-hover",this.hoverTargetClass="jtk-target-hover",this.dragSelectClass="jtk-drag-select",this.Anchors={},this.Connectors={svg:{}},this.Endpoints={svg:{}},this.Overlays={svg:{}},this.ConnectorRenderers={},this.SVG="svg",this.addEndpoint=function(e,t,r){r=r||{};var o=p.extend({},r);p.extend(o,t),o.endpoint=o.endpoint||i.Defaults.Endpoint,o.paintStyle=o.paintStyle||i.Defaults.EndpointStyle;for(var a=[],s=n.isArray(e)||null!=e.length&&!n.isString(e)?e:[e],l=0,u=s.length;l<u;l++){o.source=i.getElement(s[l]),ce(o.source);var c=W(o.source),d=H(o,c),h=he(c,o.source,null,!S).info.o;n.addToList(b,c,d),S||d.paint({anchorLoc:d.anchor.compute({xy:[h.left,h.top],wh:C[c],element:d,timestamp:D,rotation:this.getRotation(c)}),timestamp:D}),a.push(d)}return 1===a.length?a[0]:a},this.addEndpoints=function(e,t,r){for(var o=[],a=0,s=t.length;a<s;a++){var l=i.addEndpoint(e,t[a],r);n.isArray(l)?Array.prototype.push.apply(o,l):o.push(l)}return o},this.animate=function(e,t,r){if(!this.animationSupported)return!1;r=r||{};var o=i.getElement(e),a=W(o),s=p.animEvents.step,l=p.animEvents.complete;r[s]=n.wrap(r[s],(function(){i.revalidate(a)})),r[l]=n.wrap(r[l],(function(){i.revalidate(a)})),i.doAnimate(o,t,r)},this.checkCondition=function(e,t){var r=i.getListener(e),o=!0;if(r&&r.length>0){var a=Array.prototype.slice.call(arguments,1);try{for(var s=0,l=r.length;s<l;s++)o=o&&r[s].apply(r[s],a)}catch(u){n.log(i,"cannot check condition ["+e+"]"+u)}}return o},this.connect=function(e,t){var i,r=A(e,t);if(r){if(null==r.source&&null==r.sourceEndpoint)return void n.log("Cannot establish connection - source does not exist");if(null==r.target&&null==r.targetEndpoint)return void n.log("Cannot establish connection - target does not exist");ce(r.source),i=N(r),R(i,r)}return i};var V=[{el:"source",elId:"sourceId",epDefs:"sourceEndpointDefinitions"},{el:"target",elId:"targetId",epDefs:"targetEndpointDefinitions"}],U=function(e,t,n,i){var r,o,a,s=V[n],l=e[s.elId],u=(e[s.el],e.endpoints[n]),c={index:n,originalSourceId:0===n?l:e.sourceId,newSourceId:e.sourceId,originalTargetId:1===n?l:e.targetId,newTargetId:e.targetId,connection:e};if(t.constructor===p.Endpoint)r=t,r.addConnection(e),t=r.element;else if(o=W(t),a=this[s.epDefs][o],o===e[s.elId])r=null;else if(a)for(var d in a){if(!a[d].enabled)return;r=null!=a[d].endpoint&&a[d].endpoint._jsPlumb?a[d].endpoint:this.addEndpoint(t,a[d].def),a[d].uniqueEndpoint&&(a[d].endpoint=r),r.addConnection(e)}else r=e.makeEndpoint(0===n,t,o);return null!=r&&(u.detachFromConnection(e),e.endpoints[n]=r,e[s.el]=r.element,e[s.elId]=r.elementId,c[0===n?"newSourceId":"newTargetId"]=r.elementId,G(c),i||e.repaint()),c.element=t,c}.bind(this);this.setSource=function(e,t,n){var i=U(e,t,0,n);this.router.sourceOrTargetChanged(i.originalSourceId,i.newSourceId,e,i.el,0)},this.setTarget=function(e,t,n){var i=U(e,t,1,n);this.router.sourceOrTargetChanged(i.originalTargetId,i.newTargetId,e,i.el,1)},this.deleteEndpoint=function(e,t,n){var r="string"===typeof e?_[e]:e;return r&&i.deleteObject({endpoint:r,dontUpdateHover:t,deleteAttachedObjects:n}),i},this.deleteEveryEndpoint=function(){var e=i.setSuspendDrawing(!0);for(var t in b){var n=b[t];if(n&&n.length)for(var r=0,o=n.length;r<o;r++)i.deleteEndpoint(n[r],!0)}b={},w={},_={},x={},k={},i.router.reset();var a=i.getDragManager();return a&&a.reset(),e||i.setSuspendDrawing(!1),i};var q=function(e,t,n){var r=i.Defaults.ConnectionType||i.getDefaultConnectionType(),o=e.constructor===r,a=o?{connection:e,source:e.source,target:e.target,sourceId:e.sourceId,targetId:e.targetId,sourceEndpoint:e.endpoints[0],targetEndpoint:e.endpoints[1]}:e;t&&i.fire("connectionDetached",a,n),i.fire("internal.connectionDetached",a,n),i.router.connectionDetached(a)},G=i.fireMoveEvent=function(e,t){i.fire("connectionMoved",e,t)};this.unregisterEndpoint=function(e){for(var t in e._jsPlumb.uuid&&(_[e._jsPlumb.uuid]=null),i.router.deleteEndpoint(e),b){var n=b[t];if(n){for(var r=[],o=0,a=n.length;o<a;o++)n[o]!==e&&r.push(n[o]);b[t]=r}b[t].length<1&&delete b[t]}};var K="isDetachAllowed",J="beforeDetach",X="checkCondition";this.deleteConnection=function(e,t){return!(null==e||(t=t||{},!t.force&&!n.functionChain(!0,!1,[[e.endpoints[0],K,[e]],[e.endpoints[1],K,[e]],[e,K,[e]],[i,X,[J,e]]])))&&(e.setHover(!1),q(e,!e.pending&&!1!==t.fireEvent,t.originalEvent),e.endpoints[0].detachFromConnection(e),e.endpoints[1].detachFromConnection(e),n.removeWithFunction(y,(function(t){return e.id===t.id})),e.cleanup(),e.destroy(),!0)},this.deleteEveryConnection=function(e){e=e||{};var t=y.length,n=0;return i.batch((function(){for(var r=0;r<t;r++)n+=i.deleteConnection(y[0],e)?1:0})),n},this.deleteConnectionsForElement=function(e,t){t=t||{},e=i.getElement(e);var n=W(e),r=b[n];if(r&&r.length)for(var o=0,a=r.length;o<a;o++)r[o].deleteEveryConnection(t);return i},this.deleteObject=function(e){var t={endpoints:{},connections:{},endpointCount:0,connectionCount:0},r=!1!==e.deleteAttachedObjects,o=function(n){null!=n&&null==t.connections[n.id]&&(e.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),t.connections[n.id]=n,t.connectionCount++)},a=function(n){if(null!=n&&null==t.endpoints[n.id]&&(e.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),t.endpoints[n.id]=n,t.endpointCount++,r))for(var i=0;i<n.connections.length;i++){var a=n.connections[i];o(a)}};for(var s in e.connection?o(e.connection):a(e.endpoint),t.connections){var l=t.connections[s];if(l._jsPlumb){n.removeWithFunction(y,(function(e){return l.id===e.id})),q(l,!1!==e.fireEvent&&!l.pending,e.originalEvent);var u=null==e.deleteAttachedObjects?null:!e.deleteAttachedObjects;l.endpoints[0].detachFromConnection(l,null,u),l.endpoints[1].detachFromConnection(l,null,u),l.cleanup(!0),l.destroy(!0)}}for(var c in t.endpoints){var d=t.endpoints[c];d._jsPlumb&&(i.unregisterEndpoint(d),d.cleanup(!0),d.destroy(!0))}return t};var Z=function(e,t,n,i){for(var r=0,o=e.length;r<o;r++)e[r][t].apply(e[r],n);return i(e)},Q=function(e,t,n){for(var i=[],r=0,o=e.length;r<o;r++)i.push([e[r][t].apply(e[r],n),e[r]]);return i},ee=function(e,t,n){return function(){return Z(e,t,arguments,n)}},te=function(e,t){return function(){return Q(e,t,arguments)}},ne=function(e,t){var n=[];if(e)if("string"===typeof e){if("*"===e)return e;n.push(e)}else if(t)n=e;else if(e.length)for(var i=0,r=e.length;i<r;i++)n.push(c(e[i]).id);else n.push(c(e).id);return n},ie=function(e,t,n){return"*"===e||(e.length>0?-1!==e.indexOf(t):!n)};this.getConnections=function(e,t){e?e.constructor===String&&(e={scope:e}):e={};for(var n=e.scope||i.getDefaultScope(),r=ne(n,!0),o=ne(e.source),a=ne(e.target),s=!t&&r.length>1?{}:[],l=function(e,n){if(!t&&r.length>1){var i=s[e];null==i&&(i=s[e]=[]),i.push(n)}else s.push(n)},u=0,c=y.length;u<c;u++){var d=y[u],h=d.proxies&&d.proxies[0]?d.proxies[0].originalEp.elementId:d.sourceId,f=d.proxies&&d.proxies[1]?d.proxies[1].originalEp.elementId:d.targetId;ie(r,d.scope)&&ie(o,h)&&ie(a,f)&&l(d.scope,d)}return s};var re=function(e,t){return function(n){for(var i=0,r=e.length;i<r;i++)n(e[i]);return t(e)}},oe=function(e){return function(t){return e[t]}},ae=function(e,t){var n,i,r={length:e.length,each:re(e,t),get:oe(e)},o=["setHover","removeAllOverlays","setLabel","addClass","addOverlay","removeOverlay","removeOverlays","showOverlay","hideOverlay","showOverlays","hideOverlays","setPaintStyle","setHoverPaintStyle","setSuspendEvents","setParameter","setParameters","setVisible","repaint","addType","toggleType","removeType","removeClass","setType","bind","unbind"],a=["getLabel","getOverlay","isHover","getParameter","getParameters","getPaintStyle","getHoverPaintStyle","isVisible","hasType","getType","isSuspendEvents"];for(n=0,i=o.length;n<i;n++)r[o[n]]=ee(e,o[n],t);for(n=0,i=a.length;n<i;n++)r[a[n]]=te(e,a[n]);return r},se=function(e){var t=ae(e,se);return p.extend(t,{setDetachable:ee(e,"setDetachable",se),setReattach:ee(e,"setReattach",se),setConnector:ee(e,"setConnector",se),delete:function(){for(var t=0,n=e.length;t<n;t++)i.deleteConnection(e[t])},isDetachable:te(e,"isDetachable"),isReattach:te(e,"isReattach")})},le=function(e){var t=ae(e,le);return p.extend(t,{setEnabled:ee(e,"setEnabled",le),setAnchor:ee(e,"setAnchor",le),isEnabled:te(e,"isEnabled"),deleteEveryConnection:function(){for(var t=0,n=e.length;t<n;t++)e[t].deleteEveryConnection()},delete:function(){for(var t=0,n=e.length;t<n;t++)i.deleteEndpoint(e[t])}})};this.select=function(e){return e=e||{},e.scope=e.scope||"*",se(e.connections||i.getConnections(e,!0))},this.selectEndpoints=function(e){e=e||{},e.scope=e.scope||"*";var t=!e.element&&!e.source&&!e.target,n=t?"*":ne(e.element),i=t?"*":ne(e.source),r=t?"*":ne(e.target),o=ne(e.scope,!0),a=[];for(var s in b){var l=ie(n,s,!0),u=ie(i,s,!0),c="*"!==i,d=ie(r,s,!0),h="*"!==r;if(l||u||d)e:for(var f=0,p=b[s].length;f<p;f++){var m=b[s][f];if(ie(o,m.scope,!0)){var v=c&&i.length>0&&!m.isSource,g=h&&r.length>0&&!m.isTarget;if(v||g)continue e;a.push(m)}}}return le(a)},this.getAllConnections=function(){return y},this.getDefaultScope=function(){return L},this.getEndpoint=j,this.getEndpoints=function(e){return b[c(e).id]||[]},this.getDefaultEndpointType=function(){return p.Endpoint},this.getDefaultConnectionType=function(){return p.Connection},this.getId=W,this.draw=O,this.info=c,this.appendElement=P;var ue=!1;this.isHoverSuspended=function(){return ue},this.setHoverSuspended=function(e){ue=e},this.hide=function(e,t){return z(e,"none",t),i},this.idstamp=E;var ce=function(e){if(!f&&e){var t=i.getElement(e);t.offsetParent&&i.setContainer(t.offsetParent)}},de=function(){i.Defaults.Container&&i.setContainer(i.Defaults.Container)},he=i.manage=function(e,t,n,r){return w[e]?r&&(w[e].info=fe({elId:e,timestamp:D,recalc:!0})):(w[e]={el:t,endpoints:[],connections:[],rotation:0},w[e].info=fe({elId:e,timestamp:D}),i.addClass(t,"jtk-managed"),n||i.fire("manageElement",{id:e,info:w[e].info,el:t})),w[e]};this.unmanage=function(e){if(w[e]){var t=w[e].el;i.removeClass(t,"jtk-managed"),delete w[e],i.fire("unmanageElement",{id:e,el:t})}},this.rotate=function(e,t,n){return w[e]&&(w[e].rotation=t,w[e].el.style.transform="rotate("+t+"deg)",w[e].el.style.transformOrigin="center center",!0!==n)?this.revalidate(e):{c:[],e:[]}},this.getRotation=function(e){return w[e]&&w[e].rotation||0};var fe=function(e){var t,n=e.timestamp,r=e.recalc,o=e.offset,a=e.elId;return S&&!n&&(n=D),!r&&n&&n===k[a]?{o:e.offset||x[a],s:C[a]}:(r||!o&&null==x[a]?(t=w[a]?w[a].el:null,null!=t&&(C[a]=i.getSize(t),x[a]=i.getOffset(t),k[a]=n)):(x[a]=o||x[a],null==C[a]&&(t=w[a].el,null!=t&&(C[a]=i.getSize(t))),k[a]=n),x[a]&&!x[a].right&&(x[a].right=x[a].left+C[a][0],x[a].bottom=x[a].top+C[a][1],x[a].width=C[a][0],x[a].height=C[a][1],x[a].centerx=x[a].left+x[a].width/2,x[a].centery=x[a].top+x[a].height/2),{o:x[a],s:C[a]})};this.updateOffset=fe,this.init=function(){g||(de(),i.router=new e.jsPlumb.DefaultRouter(i),i.anchorManager=i.router.anchorManager,g=!0,i.fire("ready",i))}.bind(this),this.log=v,this.jsPlumbUIComponent=u,this.makeAnchor=function(){var t,r=function(t,n){if(e.jsPlumb.Anchors[t])return new e.jsPlumb.Anchors[t](n);if(!i.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+t+"'"}};if(0===arguments.length)return null;var o=arguments[0],a=arguments[1],s=null;if(o.compute&&o.getOrientation)return o;if("string"===typeof o)s=r(arguments[0],{elementId:a,jsPlumbInstance:i});else if(n.isArray(o))if(n.isArray(o[0])||n.isString(o[0]))2===o.length&&n.isObject(o[1])?n.isString(o[0])?(t=e.jsPlumb.extend({elementId:a,jsPlumbInstance:i},o[1]),s=r(o[0],t)):(t=e.jsPlumb.extend({elementId:a,jsPlumbInstance:i,anchors:o[0]},o[1]),s=new e.jsPlumb.DynamicAnchor(t)):s=new p.DynamicAnchor({anchors:o,selector:null,elementId:a,jsPlumbInstance:i});else{var l={x:o[0],y:o[1],orientation:o.length>=4?[o[2],o[3]]:[0,0],offsets:o.length>=6?[o[4],o[5]]:[0,0],elementId:a,jsPlumbInstance:i,cssClass:7===o.length?o[6]:null};s=new e.jsPlumb.Anchor(l),s.clone=function(){return new e.jsPlumb.Anchor(l)}}return s.id||(s.id="anchor_"+E()),s},this.makeAnchors=function(t,r,o){for(var a=[],s=0,l=t.length;s<l;s++)"string"===typeof t[s]?a.push(e.jsPlumb.Anchors[t[s]]({elementId:r,jsPlumbInstance:o})):n.isArray(t[s])&&a.push(i.makeAnchor(t[s],r,o));return a},this.makeDynamicAnchor=function(t,n){return new e.jsPlumb.DynamicAnchor({anchors:t,selector:n,elementId:null,jsPlumbInstance:i})},this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={};var pe=function(e,t,n,i,r){for(var o=e.target||e.srcElement,a=!1,s=i.getSelector(t,n),l=0;l<s.length;l++)if(s[l]===o){a=!0;break}return r?!a:a},me=function(t,r,o,a,s){var l=new u(r),c=r._jsPlumb.EndpointDropHandler({jsPlumb:i,enabled:function(){return t.def.enabled},isFull:function(){var e=i.select({target:t.id}).length;return t.def.maxConnections>0&&e>=t.def.maxConnections},element:t.el,elementId:t.id,isSource:a,isTarget:s,addClass:function(e){i.addClass(t.el,e)},removeClass:function(e){i.removeClass(t.el,e)},onDrop:function(e){var t=e.endpoints[0];t.anchor.locked=!1},isDropAllowed:function(){return l.isDropAllowed.apply(l,arguments)},isRedrop:function(e){return null!=e.suspendedElement&&null!=e.suspendedEndpoint&&e.suspendedEndpoint.element===t.el},getEndpoint:function(n){var o=t.def.endpoint;if(null==o||null==o._jsPlumb){var a=i.deriveEndpointAndAnchorSpec(n.getType().join(" "),!0),s=a.endpoints?e.jsPlumb.extend(r,{endpoint:t.def.def.endpoint||a.endpoints[1]}):r;a.anchors&&(s=e.jsPlumb.extend(s,{anchor:t.def.def.anchor||a.anchors[1]})),o=i.addEndpoint(t.el,s),o._mtNew=!0}if(r.uniqueEndpoint&&(t.def.endpoint=o),o.setDeleteOnEmpty(!0),n.isDetachable()&&o.initDraggable(),null!=o.anchor.positionFinder){var l=i.getUIPosition(arguments,i.getZoom()),u=i.getOffset(t.el),c=i.getSize(t.el),d=null==l?[0,0]:o.anchor.positionFinder(l,u,c,o.anchor.constructorParams);o.anchor.x=d[0],o.anchor.y=d[1]}return o},maybeCleanup:function(e){e._mtNew&&0===e.connections.length?i.deleteObject({endpoint:e}):delete e._mtNew}}),d=e.jsPlumb.dragEvents.drop;return o.scope=o.scope||r.scope||i.Defaults.Scope,o[d]=n.wrap(o[d],c,!0),o.rank=r.rank||0,s&&(o[e.jsPlumb.dragEvents.over]=function(){return!0}),!1===r.allowLoopback&&(o.canDrop=function(e){var n=e.getDragElement()._jsPlumbRelatedElement;return n!==t.el}),i.initDroppable(t.el,o,"internal"),c};this.makeTarget=function(t,n,r){var o=e.jsPlumb.extend({_jsPlumb:this},r);e.jsPlumb.extend(o,n);for(var a=o.maxConnections||-1,s=function(t){var n=c(t),r=n.id,s=e.jsPlumb.extend({},o.dropOptions||{}),l=o.connectionType||"default";this.targetEndpointDefinitions[r]=this.targetEndpointDefinitions[r]||{},ce(r),n.el._isJsPlumbGroup&&null==s.rank&&(s.rank=-1);var u={def:e.jsPlumb.extend({},o),uniqueEndpoint:o.uniqueEndpoint,maxConnections:a,enabled:!0};o.createEndpoint&&(u.uniqueEndpoint=!0,u.endpoint=i.addEndpoint(t,u.def),u.endpoint.setDeleteOnEmpty(!1)),n.def=u,this.targetEndpointDefinitions[r][l]=u,me(n,o,s,!0===o.isSource,!0),n.el._katavorioDrop[n.el._katavorioDrop.length-1].targetDef=u}.bind(this),l=t.length&&t.constructor!==String?t:[t],u=0,d=l.length;u<d;u++)s(l[u]);return this},this.unmakeTarget=function(e,t){var n=c(e);return i.destroyDroppable(n.el,"internal"),t||delete this.targetEndpointDefinitions[n.id],this},this.makeSource=function(t,r,o){var a=e.jsPlumb.extend({_jsPlumb:this},o);e.jsPlumb.extend(a,r);var s=a.connectionType||"default",u=i.deriveEndpointAndAnchorSpec(s);a.endpoint=a.endpoint||u.endpoints[0],a.anchor=a.anchor||u.anchors[0];for(var d=a.maxConnections||-1,h=a.onMaxConnections,f=function(r){var o=r.id,u=this.getElement(r.el);this.sourceEndpointDefinitions[o]=this.sourceEndpointDefinitions[o]||{},ce(o);var c={def:e.jsPlumb.extend({},a),uniqueEndpoint:a.uniqueEndpoint,maxConnections:d,enabled:!0};a.createEndpoint&&(c.uniqueEndpoint=!0,c.endpoint=i.addEndpoint(t,c.def),c.endpoint.setDeleteOnEmpty(!1)),this.sourceEndpointDefinitions[o][s]=c,r.def=c;var f=e.jsPlumb.dragEvents.stop,p=e.jsPlumb.dragEvents.drag,m=e.jsPlumb.extend({},a.dragOptions||{}),v=m.drag,g=m.stop,y=null,b=!1;m.scope=m.scope||a.scope,m[p]=n.wrap(m[p],(function(){v&&v.apply(this,arguments),b=!1})),m[f]=n.wrap(m[f],function(){if(g&&g.apply(this,arguments),this.currentlyDragging=!1,null!=y._jsPlumb){var e=a.anchor||this.Defaults.Anchor,t=y.anchor,n=y.connections[0],r=this.makeAnchor(e,o,this),s=y.element;if(null!=r.positionFinder){var l=i.getOffset(s),u=this.getSize(s),c={left:l.left+t.x*u[0],top:l.top+t.y*u[1]},d=r.positionFinder(c,l,u,r.constructorParams);r.x=d[0],r.y=d[1]}y.setAnchor(r,!0),y.repaint(),this.repaint(y.elementId),null!=n&&this.repaint(n.targetId)}}.bind(this));var _=function(t){if(3!==t.which&&2!==t.button){o=this.getId(this.getElement(r.el));var c=this.sourceEndpointDefinitions[o][s];if(c.enabled){if(a.filter){var f=n.isString(a.filter)?pe(t,r.el,a.filter,this,a.filterExclude):a.filter(t,r.el);if(!1===f)return}var p=this.select({source:o}).length;if(c.maxConnections>=0&&p>=c.maxConnections)return h&&h({element:r.el,maxConnections:d},t),!1;var v=e.jsPlumb.getPositionOnElement(t,u,l),g={};e.jsPlumb.extend(g,c.def),g.isTemporarySource=!0,g.anchor=[v[0],v[1],0,0],g.dragOptions=m,c.def.scope&&(g.scope=c.def.scope),y=this.addEndpoint(o,g),b=!0,y.setDeleteOnEmpty(!0),c.uniqueEndpoint&&(c.endpoint?y.finalEndpoint=c.endpoint:(c.endpoint=y,y.setDeleteOnEmpty(!1)));var _=function(){i.off(y.canvas,"mouseup",_),i.off(r.el,"mouseup",_),b&&(b=!1,i.deleteEndpoint(y))};i.on(y.canvas,"mouseup",_),i.on(r.el,"mouseup",_);var w={};if(c.def.extract)for(var x in c.def.extract){var k=(t.srcElement||t.target).getAttribute(x);k&&(w[c.def.extract[x]]=k)}i.trigger(y.canvas,"mousedown",t,w),n.consume(t)}}}.bind(this);this.on(r.el,"mousedown",_),c.trigger=_,a.filter&&(n.isString(a.filter)||n.isFunction(a.filter))&&i.setDragFilter(r.el,a.filter);var w=e.jsPlumb.extend({},a.dropOptions||{});me(r,a,w,!0,!0===a.isTarget)}.bind(this),p=t.length&&t.constructor!==String?t:[t],m=0,v=p.length;m<v;m++)f(c(p[m]));return this},this.unmakeSource=function(e,t,n){var r=c(e);i.destroyDroppable(r.el,"internal");var o=this.sourceEndpointDefinitions[r.id];if(o)for(var a in o)if(null==t||t===a){var s=o[a].trigger;s&&i.off(r.el,"mousedown",s),n||delete this.sourceEndpointDefinitions[r.id][a]}return this},this.unmakeEverySource=function(){for(var e in this.sourceEndpointDefinitions)i.unmakeSource(e,null,!0);return this.sourceEndpointDefinitions={},this};var ve=function(e,t,i){t=n.isArray(t)?t:[t];var r=W(e);i=i||"default";for(var o=0;o<t.length;o++){var a=this[t[o]][r];if(a&&a[i])return a[i].def.scope||this.Defaults.Scope}}.bind(this),ge=function(e,t,i,r){i=n.isArray(i)?i:[i];var o=W(e);r=r||"default";for(var a=0;a<i.length;a++){var s=this[i[a]][o];s&&s[r]&&(s[r].def.scope=t)}}.bind(this);this.getScope=function(e,t){return ve(e,["sourceEndpointDefinitions","targetEndpointDefinitions"])},this.getSourceScope=function(e){return ve(e,"sourceEndpointDefinitions")},this.getTargetScope=function(e){return ve(e,"targetEndpointDefinitions")},this.setScope=function(e,t,n){this.setSourceScope(e,t,n),this.setTargetScope(e,t,n)},this.setSourceScope=function(e,t,n){ge(e,t,"sourceEndpointDefinitions",n),this.setDragScope(e,t)},this.setTargetScope=function(e,t,n){ge(e,t,"targetEndpointDefinitions",n),this.setDropScope(e,t)},this.unmakeEveryTarget=function(){for(var e in this.targetEndpointDefinitions)i.unmakeTarget(e,!0);return this.targetEndpointDefinitions={},this};var ye=function(e,t,r,o,a){var s,l,u,d="source"===e?this.sourceEndpointDefinitions:this.targetEndpointDefinitions;if(a=a||"default",t.length&&!n.isString(t)){s=[];for(var h=0,f=t.length;h<f;h++)l=c(t[h]),d[l.id]&&d[l.id][a]&&(s[h]=d[l.id][a].enabled,u=o?!s[h]:r,d[l.id][a].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+e+"-disabled"))}else{l=c(t);var p=l.id;d[p]&&d[p][a]&&(s=d[p][a].enabled,u=o?!s:r,d[p][a].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+e+"-disabled"))}return s}.bind(this),be=function(e,t){if(null!=e){if(n.isString(e)||!e.length)return t.apply(this,[e]);if(e.length)return t.apply(this,[e[0]])}}.bind(this);this.toggleSourceEnabled=function(e,t){return ye("source",e,null,!0,t),this.isSourceEnabled(e,t)},this.setSourceEnabled=function(e,t,n){return ye("source",e,t,null,n)},this.isSource=function(e,t){return t=t||"default",be(e,function(e){var n=this.sourceEndpointDefinitions[c(e).id];return null!=n&&null!=n[t]}.bind(this))},this.isSourceEnabled=function(e,t){return t=t||"default",be(e,function(e){var n=this.sourceEndpointDefinitions[c(e).id];return n&&n[t]&&!0===n[t].enabled}.bind(this))},this.toggleTargetEnabled=function(e,t){return ye("target",e,null,!0,t),this.isTargetEnabled(e,t)},this.isTarget=function(e,t){return t=t||"default",be(e,function(e){var n=this.targetEndpointDefinitions[c(e).id];return null!=n&&null!=n[t]}.bind(this))},this.isTargetEnabled=function(e,t){return t=t||"default",be(e,function(e){var n=this.targetEndpointDefinitions[c(e).id];return n&&n[t]&&!0===n[t].enabled}.bind(this))},this.setTargetEnabled=function(e,t,n){return ye("target",e,t,null,n)},this.ready=function(e){i.bind("ready",e)};var _e=function(e,t){if("object"===typeof e&&e.length)for(var n=0,r=e.length;n<r;n++)t(e[n]);else t(e);return i};this.repaint=function(e,t,n){return _e(e,(function(e){O(e,t,n)}))},this.revalidate=function(e,t,n){var r=n?e:i.getId(e);i.updateOffset({elId:r,recalc:!0,timestamp:t});var o=i.getDragManager();return o&&o.updateOffsets(r),O(e,null,t)},this.repaintEverything=function(){var e,t=jsPlumbUtil.uuid();for(e in b)i.updateOffset({elId:e,recalc:!0,timestamp:t});for(e in b)O(e,null,t);return this},this.removeAllEndpoints=function(e,t,n){n=n||[];var r=function(e){var o,a,s=c(e),l=b[s.id];if(l)for(n.push(s),o=0,a=l.length;o<a;o++)i.deleteEndpoint(l[o],!1);if(delete b[s.id],t&&s.el&&3!==s.el.nodeType&&8!==s.el.nodeType)for(o=0,a=s.el.childNodes.length;o<a;o++)r(s.el.childNodes[o])};return r(e),this};var we=function(e,t){i.removeAllEndpoints(e.id,!0,t);for(var n=i.getDragManager(),r=function(e){n&&n.elementRemoved(e.id),i.router.elementRemoved(e.id),i.isSource(e.el)&&i.unmakeSource(e.el),i.isTarget(e.el)&&i.unmakeTarget(e.el),i.destroyDraggable(e.el),i.destroyDroppable(e.el),delete i.floatingConnections[e.id],delete w[e.id],delete x[e.id],e.el&&(i.removeElement(e.el),e.el._jsPlumb=null)},o=1;o<t.length;o++)r(t[o]);r(e)};this.remove=function(e,t){var n=c(e),r=[];return n.text&&n.el.parentNode?n.el.parentNode.removeChild(n.el):n.id&&i.batch((function(){we(n,r)}),!0===t),i},this.empty=function(e,t){var n=[],r=function(e,t){var i=c(e);if(i.text)i.el.parentNode.removeChild(i.el);else if(i.el){while(i.el.childNodes.length>0)r(i.el.childNodes[0]);t||we(i,n)}};return i.batch((function(){r(e,!0)}),!1===t),i},this.reset=function(e){i.silently(function(){ue=!1,i.removeAllGroups(),i.removeGroupManager(),i.deleteEveryEndpoint(),e||i.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},y.length=0,this.doReset&&this.doReset()}.bind(this))},this.destroy=function(){this.reset(),f=null,m=null};var xe=function(e){e.canvas&&e.canvas.parentNode&&e.canvas.parentNode.removeChild(e.canvas),e.cleanup(),e.destroy()};this.clear=function(){i.select().each(xe),i.selectEndpoints().each(xe),b={},_={}},this.setDefaultScope=function(e){return L=e,i},this.deriveEndpointAndAnchorSpec=function(e,t){for(var n=((t?"":"default ")+e).split(/[\s]/),r=null,o=null,a=null,s=null,l=0;l<n.length;l++){var u=i.getType(n[l],"connection");u&&(u.endpoints&&(r=u.endpoints),u.endpoint&&(o=u.endpoint),u.anchors&&(s=u.anchors),u.anchor&&(a=u.anchor))}return{endpoints:r||[o,o],anchors:s||[a,a]}},this.setId=function(e,t,i){var r;n.isString(e)?r=e:(e=this.getElement(e),r=this.getId(e));var o=this.getConnections({source:r,scope:"*"},!0),a=this.getConnections({target:r,scope:"*"},!0);t=""+t,i?e=this.getElement(t):(e=this.getElement(r),this.setAttribute(e,"id",t)),b[t]=b[r]||[];for(var s=0,l=b[t].length;s<l;s++)b[t][s].setElementId(t),b[t][s].setReferenceElement(e);delete b[r],this.sourceEndpointDefinitions[t]=this.sourceEndpointDefinitions[r],delete this.sourceEndpointDefinitions[r],this.targetEndpointDefinitions[t]=this.targetEndpointDefinitions[r],delete this.targetEndpointDefinitions[r],this.router.changeId(r,t);var u=this.getDragManager();u&&u.changeId(r,t),w[t]=w[r],delete w[r];var c=function(n,i,r){for(var o=0,a=n.length;o<a;o++)n[o].endpoints[i].setElementId(t),n[o].endpoints[i].setReferenceElement(e),n[o][r+"Id"]=t,n[o][r]=e};c(o,0,"source"),c(a,1,"target"),this.repaint(t)},this.setDebugLog=function(e){v=e},this.setSuspendDrawing=function(e,t){var n=S;return S=e,D=e?(new Date).getTime():null,t&&this.repaintEverything(),n},this.isSuspendDrawing=function(){return S},this.getSuspendedAt=function(){return D},this.batch=function(e,t){var i=this.isSuspendDrawing();i||this.setSuspendDrawing(!0);try{e()}catch(r){n.log("Function run while suspended failed",r)}i||this.setSuspendDrawing(!1,!t)},this.doWhileSuspended=this.batch,this.getCachedData=B,this.show=function(e,t){return z(e,"block",t),i},this.toggleVisible=$,this.addListener=this.bind;var ke=[];this.registerFloatingConnection=function(e,t,i){ke[e.id]=t,n.addToList(b,e.id,i)},this.getFloatingConnectionFor=function(e){return ke[e]},this.listManager=new e.jsPlumbListManager(this,this.Defaults.ListStyle)};n.extend(e.jsPlumbInstance,n.EventGenerator,{setAttribute:function(e,t,n){this.setAttribute(e,t,n)},getAttribute:function(t,n){return this.getAttribute(e.jsPlumb.getElement(t),n)},convertToFullOverlaySpec:function(e){return n.isString(e)&&(e=[e,{}]),e[1].id=e[1].id||n.uuid(),e},registerConnectionType:function(t,n){if(this._connectionTypes[t]=e.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var o=this.convertToFullOverlaySpec(n.overlays[r]);i[o[1].id]=o}this._connectionTypes[t].overlays=i}},registerConnectionTypes:function(e){for(var t in e)this.registerConnectionType(t,e[t])},registerEndpointType:function(t,n){if(this._endpointTypes[t]=e.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var o=this.convertToFullOverlaySpec(n.overlays[r]);i[o[1].id]=o}this._endpointTypes[t].overlays=i}},registerEndpointTypes:function(e){for(var t in e)this.registerEndpointType(t,e[t])},getType:function(e,t){return"connection"===t?this._connectionTypes[e]:this._endpointTypes[e]},setIdChanged:function(e,t){this.setId(e,t,!0)},setParent:function(e,t){var n=this.getElement(e),i=this.getId(n),r=this.getElement(t),o=this.getId(r),a=this.getDragManager();n.parentNode.removeChild(n),r.appendChild(n),a&&a.setParent(n,i,r,o)},extend:function(e,t,n){var i;if(n)for(i=0;i<n.length;i++)e[n[i]]=t[n[i]];else for(i in t)e[i]=t[i];return e},floatingConnections:{},getFloatingAnchorIndex:function(e){return e.endpoints[0].isFloating()?0:e.endpoints[1].isFloating()?1:-1},proxyConnection:function(e,t,n,i,r,o){var a,s=e.endpoints[t].elementId,l=e.endpoints[t];e.proxies=e.proxies||[],a=e.proxies[t]?e.proxies[t].ep:this.addEndpoint(n,{endpoint:r(e,t),anchor:o(e,t),parameters:{isProxyEndpoint:!0}}),a.setDeleteOnEmpty(!0),e.proxies[t]={ep:a,originalEp:l},0===t?this.router.sourceOrTargetChanged(s,i,e,n,0):this.router.sourceOrTargetChanged(s,i,e,n,1),l.detachFromConnection(e,null,!0),a.connections=[e],e.endpoints[t]=a,l.setVisible(!1),e.setVisible(!0),this.revalidate(n)},unproxyConnection:function(e,t,n){if(null!=e._jsPlumb&&null!=e.proxies&&null!=e.proxies[t]){var i=e.proxies[t].originalEp.element,r=e.proxies[t].originalEp.elementId;e.endpoints[t]=e.proxies[t].originalEp,0===t?this.router.sourceOrTargetChanged(n,r,e,i,0):this.router.sourceOrTargetChanged(n,r,e,i,1),e.proxies[t].ep.detachFromConnection(e,null),e.proxies[t].originalEp.addConnection(e),e.isVisible()&&e.proxies[t].originalEp.setVisible(!0),delete e.proxies[t]}}});var p=new f;e.jsPlumb=p,p.getInstance=function(e,t){var n=new f(e);if(t)for(var i in t)n[i]=t[i];return n.init(),n},p.each=function(e,t){if(null!=e)if("string"===typeof e)t(p.getElement(e));else if(null!=e.length)for(var n=0;n<e.length;n++)t(p.getElement(e[n]));else t(e)},t.jsPlumb=p}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i="__label",r=function(e,n){var r={cssClass:n.cssClass,labelStyle:e.labelStyle,id:i,component:e,_jsPlumb:e._jsPlumb.instance},o=t.extend(r,n);return new(t.Overlays[e._jsPlumb.instance.getRenderMode()].Label)(o)},o=function(e,i){var r=null;if(n.isArray(i)){var o=i[0],a=t.extend({component:e,_jsPlumb:e._jsPlumb.instance},i[1]);3===i.length&&t.extend(a,i[2]),r=new(t.Overlays[e._jsPlumb.instance.getRenderMode()][o])(a)}else r=i.constructor===String?new(t.Overlays[e._jsPlumb.instance.getRenderMode()][i])({component:e,_jsPlumb:e._jsPlumb.instance}):i;return r.id=r.id||n.uuid(),e.cacheTypeItem("overlay",r,r.id),e._jsPlumb.overlays[r.id]=r,r};t.OverlayCapableJsPlumbUIComponent=function(t){e.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.overlays={},this._jsPlumb.overlayPositions={},t.label&&(this.getDefaultType().overlays[i]=["Label",{label:t.label,location:t.labelLocation||this.defaultLabelLocation||.5,labelStyle:t.labelStyle||this._jsPlumb.instance.Defaults.LabelStyle,id:i}]),this.setListenerComponent=function(e){if(this._jsPlumb)for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].setListenerComponent(e)}},t.OverlayCapableJsPlumbUIComponent.applyType=function(e,t){if(t.overlays){var n,i={};for(n in t.overlays){var r=e._jsPlumb.overlays[t.overlays[n][1].id];if(r)r.updateFrom(t.overlays[n][1]),i[t.overlays[n][1].id]=!0,r.reattach(e._jsPlumb.instance,e);else{var o=e.getCachedTypeItem("overlay",t.overlays[n][1].id);null!=o?(o.reattach(e._jsPlumb.instance,e),o.setVisible(!0),o.updateFrom(t.overlays[n][1]),e._jsPlumb.overlays[o.id]=o):o=e.addOverlay(t.overlays[n],!0),i[o.id]=!0}}for(n in e._jsPlumb.overlays)null==i[e._jsPlumb.overlays[n].id]&&e.removeOverlay(e._jsPlumb.overlays[n].id,!0)}},n.extend(t.OverlayCapableJsPlumbUIComponent,e.jsPlumbUIComponent,{setHover:function(e,t){if(this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged())for(var n in this._jsPlumb.overlays)this._jsPlumb.overlays[n][e?"addClass":"removeClass"](this._jsPlumb.instance.hoverClass)},addOverlay:function(e,t){var i=o(this,e);if(this.getData&&"Label"===i.type&&n.isArray(e)){var r=this.getData(),a=e[1];if(r){var s=a.labelLocationAttribute||"labelLocation",l=r?r[s]:null;l&&(i.loc=l)}}return t||this.repaint(),i},getOverlay:function(e){return this._jsPlumb.overlays[e]},getOverlays:function(){return this._jsPlumb.overlays},hideOverlay:function(e){var t=this.getOverlay(e);t&&t.hide()},hideOverlays:function(){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].hide()},showOverlay:function(e){var t=this.getOverlay(e);t&&t.show()},showOverlays:function(){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].show()},removeAllOverlays:function(e){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].cleanup&&this._jsPlumb.overlays[t].cleanup();this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null,this._jsPlumb.overlayPlacements={},e||this.repaint()},removeOverlay:function(e,t){var n=this._jsPlumb.overlays[e];n&&(n.setVisible(!1),!t&&n.cleanup&&n.cleanup(),delete this._jsPlumb.overlays[e],this._jsPlumb.overlayPositions&&delete this._jsPlumb.overlayPositions[e],this._jsPlumb.overlayPlacements&&delete this._jsPlumb.overlayPlacements[e])},removeOverlays:function(){for(var e=0,t=arguments.length;e<t;e++)this.removeOverlay(arguments[e])},moveParent:function(e){if(this.bgCanvas&&(this.bgCanvas.parentNode.removeChild(this.bgCanvas),e.appendChild(this.bgCanvas)),this.canvas&&this.canvas.parentNode)for(var t in this.canvas.parentNode.removeChild(this.canvas),e.appendChild(this.canvas),this._jsPlumb.overlays)if(this._jsPlumb.overlays[t].isAppendedAtTopLevel){var n=this._jsPlumb.overlays[t].getElement();n.parentNode.removeChild(n),e.appendChild(n)}},getLabel:function(){var e=this.getOverlay(i);return null!=e?e.getLabel():null},getLabelOverlay:function(){return this.getOverlay(i)},setLabel:function(e){var t=this.getOverlay(i);if(t)e.constructor===String||e.constructor===Function?t.setLabel(e):(e.label&&t.setLabel(e.label),e.location&&t.setLocation(e.location));else{var n=e.constructor===String||e.constructor===Function?{label:e}:e;t=r(this,n),this._jsPlumb.overlays[i]=t}this._jsPlumb.instance.isSuspendDrawing()||this.repaint()},cleanup:function(e){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].cleanup(e),this._jsPlumb.overlays[t].destroy(e);e&&(this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null)},setVisible:function(e){this[e?"showOverlays":"hideOverlays"]()},setAbsoluteOverlayPosition:function(e,t){this._jsPlumb.overlayPositions[e.id]=t},getAbsoluteOverlayPosition:function(e){return this._jsPlumb.overlayPositions?this._jsPlumb.overlayPositions[e.id]:null},_clazzManip:function(e,t,n){if(!n)for(var i in this._jsPlumb.overlays)this._jsPlumb.overlays[i][e+"Class"](t)},addClass:function(e,t){this._clazzManip("add",e,t)},removeClass:function(e,t){this._clazzManip("remove",e,t)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=function(e,t,n){var i=!1;return{drag:function(){if(i)return i=!1,!0;if(t.element){var r=n.getUIPosition(arguments,n.getZoom());null!=r&&n.setPosition(t.element,r),n.repaint(t.element,r),e.paint({anchorPoint:e.anchor.getCurrentLocation({element:e})})}},stopDrag:function(){i=!0}}},r=function(e,t,n,i){var r=t.createElement("div",{position:"absolute"});t.appendElement(r);var o=t.getId(r);t.setPosition(r,n),r.style.width=i[0]+"px",r.style.height=i[1]+"px",t.manage(o,r,!0),e.id=o,e.element=r},o=function(e,n,i,r,o,a,s,l){var u=new t.FloatingAnchor({reference:n,referenceCanvas:r,jsPlumbInstance:a});return s({paintStyle:e,endpoint:i,anchor:u,source:o,scope:l})},a=["connectorStyle","connectorHoverStyle","connectorOverlays","connector","connectionType","connectorClass","connectorHoverClass"],s=function(e,t){var n=0;if(null!=t)for(var i=0;i<e.connections.length;i++)if(e.connections[i].sourceId===t||e.connections[i].targetId===t){n=i;break}return e.connections[n]};t.Endpoint=function(e){var l=e._jsPlumb,u=e.newConnection,c=e.newEndpoint;this.idPrefix="_jsplumb_e_",this.defaultLabelLocation=[.5,.5],this.defaultOverlayKeys=["Overlays","EndpointOverlays"],t.OverlayCapableJsPlumbUIComponent.apply(this,arguments),this.appendToDefaultType({connectionType:e.connectionType,maxConnections:null==e.maxConnections?this._jsPlumb.instance.Defaults.MaxConnections:e.maxConnections,paintStyle:e.endpointStyle||e.paintStyle||e.style||this._jsPlumb.instance.Defaults.EndpointStyle||t.Defaults.EndpointStyle,hoverPaintStyle:e.endpointHoverStyle||e.hoverPaintStyle||this._jsPlumb.instance.Defaults.EndpointHoverStyle||t.Defaults.EndpointHoverStyle,connectorStyle:e.connectorStyle,connectorHoverStyle:e.connectorHoverStyle,connectorClass:e.connectorClass,connectorHoverClass:e.connectorHoverClass,connectorOverlays:e.connectorOverlays,connector:e.connector,connectorTooltip:e.connectorTooltip}),this._jsPlumb.enabled=!(!1===e.enabled),this._jsPlumb.visible=!0,this.element=t.getElement(e.source),this._jsPlumb.uuid=e.uuid,this._jsPlumb.floatingEndpoint=null;var d=null;this._jsPlumb.uuid&&(e.endpointsByUUID[this._jsPlumb.uuid]=this),this.elementId=e.elementId,this.dragProxy=e.dragProxy,this._jsPlumb.connectionCost=e.connectionCost,this._jsPlumb.connectionsDirected=e.connectionsDirected,this._jsPlumb.currentAnchorClass="",this._jsPlumb.events={};var h=!0===e.deleteOnEmpty;this.setDeleteOnEmpty=function(e){h=e};var f=function(){var e=l.endpointAnchorClassPrefix+"-"+this._jsPlumb.currentAnchorClass;this._jsPlumb.currentAnchorClass=this.anchor.getCssClass();var n=l.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");this.removeClass(e),this.addClass(n),t.updateClasses(this.element,n,e)}.bind(this);this.prepareAnchor=function(e){var t=this._jsPlumb.instance.makeAnchor(e,this.elementId,l);return t.bind("anchorChanged",function(e){this.fire("anchorChanged",{endpoint:this,anchor:e}),f()}.bind(this)),t},this.setPreparedAnchor=function(e,t){return this._jsPlumb.instance.continuousAnchorFactory.clear(this.elementId),this.anchor=e,f(),t||this._jsPlumb.instance.repaint(this.elementId),this},this.setAnchor=function(e,t){var n=this.prepareAnchor(e);return this.setPreparedAnchor(n,t),this};var p=function(e){if(this.connections.length>0)for(var t=0;t<this.connections.length;t++)this.connections[t].setHover(e,!1);else this.setHover(e)}.bind(this);this.bind("mouseover",(function(){p(!0)})),this.bind("mouseout",(function(){p(!1)})),e._transient||this._jsPlumb.instance.router.addEndpoint(this,this.elementId),this.prepareEndpoint=function(i,r){var o,a=function(e,n){var i=l.getRenderMode();if(t.Endpoints[i][e])return new t.Endpoints[i][e](n);if(!l.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown endpoint type '"+e+"'"}},s={_jsPlumb:this._jsPlumb.instance,cssClass:e.cssClass,container:e.container,tooltip:e.tooltip,connectorTooltip:e.connectorTooltip,endpoint:this};return n.isString(i)?o=a(i,s):n.isArray(i)?(s=n.merge(i[1],s),o=a(i[0],s)):o=i.clone(),o.clone=function(){return n.isString(i)?a(i,s):n.isArray(i)?(s=n.merge(i[1],s),a(i[0],s)):void 0}.bind(this),o.typeId=r,o},this.setEndpoint=function(e,t){var n=this.prepareEndpoint(e);this.setPreparedEndpoint(n,!0)},this.setPreparedEndpoint=function(e,t){null!=this.endpoint&&(this.endpoint.cleanup(),this.endpoint.destroy()),this.endpoint=e,this.type=this.endpoint.type,this.canvas=this.endpoint.canvas},t.extend(this,e,a),this.isSource=e.isSource||!1,this.isTemporarySource=e.isTemporarySource||!1,this.isTarget=e.isTarget||!1,this.connections=e.connections||[],this.connectorPointerEvents=e["connector-pointer-events"],this.scope=e.scope||l.getDefaultScope(),this.timestamp=null,this.reattachConnections=e.reattach||l.Defaults.ReattachConnections,this.connectionsDetachable=l.Defaults.ConnectionsDetachable,!1!==e.connectionsDetachable&&!1!==e.detachable||(this.connectionsDetachable=!1),this.dragAllowedWhenFull=!1!==e.dragAllowedWhenFull,e.onMaxConnections&&this.bind("maxConnections",e.onMaxConnections),this.addConnection=function(e){this.connections.push(e),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)},this.detachFromConnection=function(e,t,n){t=null==t?this.connections.indexOf(e):t,t>=0&&(this.connections.splice(t,1),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)),!n&&h&&0===this.connections.length&&l.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:!0!==n})},this.deleteEveryConnection=function(e){for(var t=this.connections.length,n=0;n<t;n++)l.deleteConnection(this.connections[0],e)},this.detachFrom=function(e,t,n){for(var i=[],r=0;r<this.connections.length;r++)this.connections[r].endpoints[1]!==e&&this.connections[r].endpoints[0]!==e||i.push(this.connections[r]);for(var o=0,a=i.length;o<a;o++)l.deleteConnection(i[0]);return this},this.getElement=function(){return this.element},this.setElement=function(i){var r=this._jsPlumb.instance.getId(i),o=this.elementId;return n.removeWithFunction(e.endpointsByElement[this.elementId],function(e){return e.id===this.id}.bind(this)),this.element=t.getElement(i),this.elementId=l.getId(this.element),l.router.rehomeEndpoint(this,o,this.element),l.dragManager.endpointAdded(this.element),n.addToList(e.endpointsByElement,r,this),this},this.makeInPlaceCopy=function(){var t=this.anchor.getCurrentLocation({element:this}),n=this.anchor.getOrientation(this),i=this.anchor.getCssClass(),r={bind:function(){},compute:function(){return[t[0],t[1]]},getCurrentLocation:function(){return[t[0],t[1]]},getOrientation:function(){return n},getCssClass:function(){return i}};return c({dropOptions:e.dropOptions,anchor:r,source:this.element,paintStyle:this.getPaintStyle(),endpoint:e.hideOnDrag?"Blank":this.endpoint,_transient:!0,scope:this.scope,reference:this})},this.connectorSelector=function(){return this.connections[0]},this.setStyle=this.setPaintStyle,this.paint=function(e){e=e||{};var t=e.timestamp,n=!(!1===e.recalc);if(!t||this.timestamp!==t){var i=l.updateOffset({elId:this.elementId,timestamp:t}),r=e.offset?e.offset.o:i.o;if(null!=r){var o=e.anchorPoint,a=e.connectorPaintStyle;if(null==o){var u=e.dimensions||i.s,c={xy:[r.left,r.top],wh:u,element:this,timestamp:t};if(n&&this.anchor.isDynamic&&this.connections.length>0){var d=s(this,e.elementWithPrecedence),h=d.endpoints[0]===this?1:0,f=0===h?d.sourceId:d.targetId,p=l.getCachedData(f),m=p.o,v=p.s;c.index=0===h?1:0,c.connection=d,c.txy=[m.left,m.top],c.twh=v,c.tElement=d.endpoints[h],c.tRotation=l.getRotation(f)}else this.connections.length>0&&(c.connection=this.connections[0]);c.rotation=l.getRotation(this.elementId),o=this.anchor.compute(c)}for(var g in this.endpoint.compute(o,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,a||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=t,this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(g)){var y=this._jsPlumb.overlays[g];y.isVisible()&&(this._jsPlumb.overlayPlacements[g]=y.draw(this.endpoint,this._jsPlumb.paintStyleInUse),y.paint(this._jsPlumb.overlayPlacements[g]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var m=!1;this.initDraggable=function(){if(!m&&t.isDragSupported(this.element)){var a,s={id:null,element:null},h=null,f=!1,p=null,v=i(this,s,l),g=e.dragOptions||{},y={},b=t.dragEvents.start,_=t.dragEvents.stop,w=t.dragEvents.drag,x=t.dragEvents.beforeStart,k=function(e){a=e.e.payload||{}},M=function(n){h=this.connectorSelector();var i=!0;this.isEnabled()||(i=!1),null!=h||this.isSource||this.isTemporarySource||(i=!1),!this.isSource||!this.isFull()||null!=h&&this.dragAllowedWhenFull||(i=!1),null==h||h.isDetachable(this)||(this.isFull()?i=!1:h=null);var d=l.checkCondition(null==h?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:h});if(!1===d?i=!1:"object"===typeof d?t.extend(d,a||{}):d=a||{},!1===i)return l.stopDrag&&l.stopDrag(this.canvas),v.stopDrag(),!1;for(var m=0;m<this.connections.length;m++)this.connections[m].setHover(!1);this.addClass("endpointDrag"),l.setConnectionBeingDragged(!0),h&&!this.isFull()&&this.isSource&&(h=null),l.updateOffset({elId:this.elementId});var g=this._jsPlumb.instance.getOffset(this.canvas),y=this.canvas,b=this._jsPlumb.instance.getSize(this.canvas);r(s,l,g,b),l.setAttributes(this.canvas,{dragId:s.id,elId:this.elementId});var _=this.dragProxy||this.endpoint;if(null==this.dragProxy&&null!=this.connectionType){var w=this._jsPlumb.instance.deriveEndpointAndAnchorSpec(this.connectionType);w.endpoints[1]&&(_=w.endpoints[1])}var x=this._jsPlumb.instance.makeAnchor("Center");x.isFloating=!0,this._jsPlumb.floatingEndpoint=o(this.getPaintStyle(),x,_,this.canvas,s.element,l,c,this.scope);var k=this._jsPlumb.floatingEndpoint.anchor;if(null==h)this.setHover(!1,!1),h=u({sourceEndpoint:this,targetEndpoint:this._jsPlumb.floatingEndpoint,source:this.element,target:s.element,anchors:[this.anchor,this._jsPlumb.floatingEndpoint.anchor],paintStyle:e.connectorStyle,hoverPaintStyle:e.connectorHoverStyle,connector:e.connector,overlays:e.connectorOverlays,type:this.connectionType,cssClass:this.connectorClass,hoverClass:this.connectorHoverClass,scope:e.scope,data:d}),h.pending=!0,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.anchor=k,l.fire("connectionDrag",h),l.router.newConnection(h);else{f=!0,h.setHover(!1);var M=h.endpoints[0].id===this.id?0:1;this.detachFromConnection(h,null,!0);var C=l.getDragScope(y);l.setAttribute(this.canvas,"originalScope",C),l.fire("connectionDrag",h),0===M?(p=[h.source,h.sourceId,y,C],l.router.sourceOrTargetChanged(h.endpoints[M].elementId,s.id,h,s.element,0)):(p=[h.target,h.targetId,y,C],l.router.sourceOrTargetChanged(h.endpoints[M].elementId,s.id,h,s.element,1)),h.suspendedEndpoint=h.endpoints[M],h.suspendedElement=h.endpoints[M].getElement(),h.suspendedElementId=h.endpoints[M].elementId,h.suspendedElementType=0===M?"source":"target",h.suspendedEndpoint.setHover(!1),this._jsPlumb.floatingEndpoint.referenceEndpoint=h.suspendedEndpoint,h.endpoints[M]=this._jsPlumb.floatingEndpoint,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass)}l.registerFloatingConnection(s,h,this._jsPlumb.floatingEndpoint),l.currentlyDragging=!0}.bind(this),C=function(){if(l.setConnectionBeingDragged(!1),h&&null!=h.endpoints){var e=l.getDropEvent(arguments),t=l.getFloatingAnchorIndex(h);if(h.endpoints[0===t?1:0].anchor.locked=!1,h.removeClass(l.draggingClass),this._jsPlumb&&(h.deleteConnectionNow||h.endpoints[t]===this._jsPlumb.floatingEndpoint)&&f&&h.suspendedEndpoint){0===t?(h.floatingElement=h.source,h.floatingId=h.sourceId,h.floatingEndpoint=h.endpoints[0],h.floatingIndex=0,h.source=p[0],h.sourceId=p[1]):(h.floatingElement=h.target,h.floatingId=h.targetId,h.floatingEndpoint=h.endpoints[1],h.floatingIndex=1,h.target=p[0],h.targetId=p[1]);var n=this._jsPlumb.floatingEndpoint;l.setDragScope(p[2],p[3]),h.endpoints[t]=h.suspendedEndpoint,h.isReattach()||h._forceReattach||h._forceDetach||!l.deleteConnection(h,{originalEvent:e})?(h.setHover(!1),h._forceDetach=null,h._forceReattach=null,this._jsPlumb.floatingEndpoint.detachFromConnection(h),h.suspendedEndpoint.addConnection(h),1===t?l.router.sourceOrTargetChanged(h.floatingId,h.targetId,h,h.target,t):l.router.sourceOrTargetChanged(h.floatingId,h.sourceId,h,h.source,t),l.repaint(p[1])):l.deleteObject({endpoint:n})}this.deleteAfterDragStop?l.deleteObject({endpoint:this}):this._jsPlumb&&this.paint({recalc:!1}),l.fire("connectionDragStop",h,e),h.pending&&l.fire("connectionAborted",h,e),l.currentlyDragging=!1,h.suspendedElement=null,h.suspendedEndpoint=null,h=null}s&&s.element&&l.remove(s.element,!1,!1),d&&l.deleteObject({endpoint:d}),this._jsPlumb&&(this.canvas.style.visibility="visible",this.anchor.locked=!1,this._jsPlumb.floatingEndpoint=null)}.bind(this);g=t.extend(y,g),g.scope=this.scope||g.scope,g[x]=n.wrap(g[x],k,!1),g[b]=n.wrap(g[b],M,!1),g[w]=n.wrap(g[w],v.drag),g[_]=n.wrap(g[_],C),g.multipleDrop=!1,g.canDrag=function(){return this.isSource||this.isTemporarySource||this.connections.length>0&&!1!==this.connectionsDetachable}.bind(this),l.initDraggable(this.canvas,g,"internal"),this.canvas._jsPlumbRelatedElement=this.element,m=!0}};var v=e.endpoint||this._jsPlumb.instance.Defaults.Endpoint||t.Defaults.Endpoint;this.setEndpoint(v,!0);var g=e.anchor?e.anchor:e.anchors?e.anchors:l.Defaults.Anchor||"Top";this.setAnchor(g,!0);var y=["default",e.type||""].join(" ");this.addType(y,e.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var b=function(i,r,o,a){if(t.isDropSupported(this.element)){var s=e.dropOptions||l.Defaults.DropOptions||t.Defaults.DropOptions;s=t.extend({},s),s.scope=s.scope||this.scope;var u=t.dragEvents.drop,c=t.dragEvents.over,d=t.dragEvents.out,h=this,f=l.EndpointDropHandler({getEndpoint:function(){return h},jsPlumb:l,enabled:function(){return null==o||o.isEnabled()},isFull:function(){return o.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(e){h.addClass(e)},removeClass:function(e){h.removeClass(e)},isDropAllowed:function(){return h.isDropAllowed.apply(h,arguments)},reference:a,isRedrop:function(e,t){return e.suspendedEndpoint&&t.reference&&e.suspendedEndpoint.id===t.reference.id}});s[u]=n.wrap(s[u],f,!0),s[c]=n.wrap(s[c],function(){var e=t.getDragObject(arguments),n=l.getAttribute(t.getElement(e),"dragId"),i=l.getFloatingConnectionFor(n);if(null!=i){var r=l.getFloatingAnchorIndex(i),o=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;if(o){var a=l.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[r],targetEndpoint:this,connection:i});this[(a?"add":"remove")+"Class"](l.endpointDropAllowedClass),this[(a?"remove":"add")+"Class"](l.endpointDropForbiddenClass),i.endpoints[r].anchor.over(this.anchor,this)}}}.bind(this)),s[d]=n.wrap(s[d],function(){var e=t.getDragObject(arguments),n=null==e?null:l.getAttribute(t.getElement(e),"dragId"),i=n?l.getFloatingConnectionFor(n):null;if(null!=i){var r=l.getFloatingAnchorIndex(i),o=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;o&&(this.removeClass(l.endpointDropAllowedClass),this.removeClass(l.endpointDropForbiddenClass),i.endpoints[r].anchor.out())}}.bind(this)),l.initDroppable(i,s,"internal",r)}}.bind(this);return this.anchor.isFloating||b(this.canvas,!(e._transient||this.anchor.isFloating),this,e.reference),this},n.extend(t.Endpoint,t.OverlayCapableJsPlumbUIComponent,{setVisible:function(e,t,n){if(this._jsPlumb.visible=e,this.canvas&&(this.canvas.style.display=e?"block":"none"),this[e?"showOverlays":"hideOverlays"](),!t)for(var i=0;i<this.connections.length;i++)if(this.connections[i].setVisible(e),!n){var r=this===this.connections[i].endpoints[0]?1:0;1===this.connections[i].endpoints[r].connections.length&&this.connections[i].endpoints[r].setVisible(e,!0,!0)}},getAttachedElements:function(){return this.connections},applyType:function(e,n){this.setPaintStyle(e.endpointStyle||e.paintStyle,n),this.setHoverPaintStyle(e.endpointHoverStyle||e.hoverPaintStyle,n),null!=e.maxConnections&&(this._jsPlumb.maxConnections=e.maxConnections),e.scope&&(this.scope=e.scope),t.extend(this,e,a),null!=e.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,e.cssClass),t.OverlayCapableJsPlumbUIComponent.applyType(this,e)},isEnabled:function(){return this._jsPlumb.enabled},setEnabled:function(e){this._jsPlumb.enabled=e},cleanup:function(){var e=this._jsPlumb.instance.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");t.removeClass(this.element,e),this.anchor=null,this.endpoint.cleanup(!0),this.endpoint.destroy(),this.endpoint=null,this._jsPlumb.instance.destroyDraggable(this.canvas,"internal"),this._jsPlumb.instance.destroyDroppable(this.canvas,"internal")},setHover:function(e){this.endpoint&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&this.endpoint.setHover(e)},isFull:function(){return 0===this._jsPlumb.maxConnections||!(this.isFloating()||this._jsPlumb.maxConnections<0||this.connections.length<this._jsPlumb.maxConnections)},isFloating:function(){return null!=this.anchor&&this.anchor.isFloating},isConnectedTo:function(e){var t=!1;if(e)for(var n=0;n<this.connections.length;n++)if(this.connections[n].endpoints[1]===e||this.connections[n].endpoints[0]===e){t=!0;break}return t},getConnectionCost:function(){return this._jsPlumb.connectionCost},setConnectionCost:function(e){this._jsPlumb.connectionCost=e},areConnectionsDirected:function(){return this._jsPlumb.connectionsDirected},setConnectionsDirected:function(e){this._jsPlumb.connectionsDirected=e},setElementId:function(e){this.elementId=e,this.anchor.elementId=e},setReferenceElement:function(e){this.element=t.getElement(e)},setDragAllowedWhenFull:function(e){this.dragAllowedWhenFull=e},equals:function(e){return this.anchor.equals(e.anchor)},getUuid:function(){return this._jsPlumb.uuid},computeAnchor:function(e){return this.anchor.compute(e)}}),e.jsPlumbInstance.prototype.EndpointDropHandler=function(e){return function(t){var i=e.jsPlumb;e.removeClass(i.endpointDropAllowedClass),e.removeClass(i.endpointDropForbiddenClass);var r=i.getDropEvent(arguments),o=i.getDragObject(arguments),a=i.getAttribute(o,"dragId"),s=(i.getAttribute(o,"elId"),i.getAttribute(o,"originalScope")),l=i.getFloatingConnectionFor(a);if(null!=l){var u=null!=l.suspendedEndpoint;if(!u||null!=l.suspendedEndpoint._jsPlumb){var c=e.getEndpoint(l);if(null!=c){if(e.isRedrop(l,e))return l._forceReattach=!0,l.setHover(!1),void(e.maybeCleanup&&e.maybeCleanup(c));var d=i.getFloatingAnchorIndex(l);if(0===d&&!e.isSource||1===d&&!e.isTarget)e.maybeCleanup&&e.maybeCleanup(c);else{e.onDrop&&e.onDrop(l),s&&i.setDragScope(o,s);var h=e.isFull(t);if(h&&c.fire("maxConnections",{endpoint:this,connection:l,maxConnections:c._jsPlumb.maxConnections},r),!h&&e.enabled()){var f=!0;0===d?(l.floatingElement=l.source,l.floatingId=l.sourceId,l.floatingEndpoint=l.endpoints[0],l.floatingIndex=0,l.source=e.element,l.sourceId=i.getId(e.element)):(l.floatingElement=l.target,l.floatingId=l.targetId,l.floatingEndpoint=l.endpoints[1],l.floatingIndex=1,l.target=e.element,l.targetId=i.getId(e.element)),u&&l.suspendedEndpoint.id!==c.id&&(l.isDetachAllowed(l)&&l.endpoints[d].isDetachAllowed(l)&&l.suspendedEndpoint.isDetachAllowed(l)&&i.checkCondition("beforeDetach",l)||(f=!1));var p=function(t){l.endpoints[d].detachFromConnection(l),l.suspendedEndpoint&&l.suspendedEndpoint.detachFromConnection(l),l.endpoints[d]=c,c.addConnection(l);var o=c.getParameters();for(var a in o)l.setParameter(a,o[a]);if(u){var s=l.suspendedEndpoint.elementId;i.fireMoveEvent({index:d,originalSourceId:0===d?s:l.sourceId,newSourceId:0===d?c.elementId:l.sourceId,originalTargetId:1===d?s:l.targetId,newTargetId:1===d?c.elementId:l.targetId,originalSourceEndpoint:0===d?l.suspendedEndpoint:l.endpoints[0],newSourceEndpoint:0===d?c:l.endpoints[0],originalTargetEndpoint:1===d?l.suspendedEndpoint:l.endpoints[1],newTargetEndpoint:1===d?c:l.endpoints[1],connection:l},r)}else o.draggable&&i.initDraggable(this.element,e.dragOptions,"internal",i);if(1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),l.endpoints[0].finalEndpoint){var h=l.endpoints[0];h.detachFromConnection(l),l.endpoints[0]=l.endpoints[0].finalEndpoint,l.endpoints[0].addConnection(l)}n.isObject(t)&&l.mergeData(t),i.finaliseConnection(l,null,r,!1),l.setHover(!1),i.revalidate(l.endpoints[0].element)}.bind(this),m=function(){l.suspendedEndpoint&&(l.endpoints[d]=l.suspendedEndpoint,l.setHover(!1),l._forceDetach=!0,0===d?(l.source=l.suspendedEndpoint.element,l.sourceId=l.suspendedEndpoint.elementId):(l.target=l.suspendedEndpoint.element,l.targetId=l.suspendedEndpoint.elementId),l.suspendedEndpoint.addConnection(l),1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),i.repaint(l.sourceId),l._forceDetach=!1)};if(f=f&&e.isDropAllowed(l.sourceId,l.targetId,l.scope,l,c),f)return p(f),!0;m()}e.maybeCleanup&&e.maybeCleanup(c),i.currentlyDragging=!1}}}}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=function(e,i,r,o,a){if(t.Connectors[i]=t.Connectors[i]||{},null==t.Connectors[i][r]){if(null==t.Connectors[r]){if(e.Defaults.DoNotThrowErrors)return null;throw new TypeError("jsPlumb: unknown connector type '"+r+"'")}t.Connectors[i][r]=function(){t.Connectors[r].apply(this,arguments),t.ConnectorRenderers[i].apply(this,arguments)},n.extend(t.Connectors[i][r],[t.Connectors[r],t.ConnectorRenderers[i]])}return new t.Connectors[i][r](o,a)},r=function(e,t,n){return e?n.makeAnchor(e,t,n):null},o=function(e,t,i,r){null!=t&&(t._jsPlumbConnections=t._jsPlumbConnections||{},r?delete t._jsPlumbConnections[e.id]:t._jsPlumbConnections[e.id]=!0,n.isEmpty(t._jsPlumbConnections)?i.removeClass(t,i.connectedClass):i.addClass(t,i.connectedClass))};t.Connection=function(e){var i=e.newEndpoint;this.id=e.id,this.connector=null,this.idPrefix="_jsplumb_c_",this.defaultLabelLocation=.5,this.defaultOverlayKeys=["Overlays","ConnectionOverlays"],this.previousConnection=e.previousConnection,this.source=t.getElement(e.source),this.target=t.getElement(e.target),t.OverlayCapableJsPlumbUIComponent.apply(this,arguments),e.sourceEndpoint?(this.source=e.sourceEndpoint.getElement(),this.sourceId=e.sourceEndpoint.elementId):this.sourceId=this._jsPlumb.instance.getId(this.source),e.targetEndpoint?(this.target=e.targetEndpoint.getElement(),this.targetId=e.targetEndpoint.elementId):this.targetId=this._jsPlumb.instance.getId(this.target),this.scope=e.scope,this.endpoints=[],this.endpointStyles=[];var r=this._jsPlumb.instance;r.manage(this.sourceId,this.source),r.manage(this.targetId,this.target),this._jsPlumb.visible=!0,this._jsPlumb.params={cssClass:e.cssClass,container:e.container,"pointer-events":e["pointer-events"],editorParams:e.editorParams,overlays:e.overlays},this._jsPlumb.lastPaintedAt=null,this.bind("mouseover",function(){this.setHover(!0)}.bind(this)),this.bind("mouseout",function(){this.setHover(!1)}.bind(this)),this.makeEndpoint=function(t,n,o,a,s){return o=o||this._jsPlumb.instance.getId(n),this.prepareEndpoint(r,i,this,a,t?0:1,e,n,o,s)},e.type&&(e.endpoints=e.endpoints||this._jsPlumb.instance.deriveEndpointAndAnchorSpec(e.type).endpoints);var o=this.makeEndpoint(!0,this.source,this.sourceId,e.sourceEndpoint),a=this.makeEndpoint(!1,this.target,this.targetId,e.targetEndpoint);o&&n.addToList(e.endpointsByElement,this.sourceId,o),a&&n.addToList(e.endpointsByElement,this.targetId,a),this.scope||(this.scope=this.endpoints[0].scope),null!=e.deleteEndpointsOnEmpty&&(this.endpoints[0].setDeleteOnEmpty(e.deleteEndpointsOnEmpty),this.endpoints[1].setDeleteOnEmpty(e.deleteEndpointsOnEmpty));var s=r.Defaults.ConnectionsDetachable;!1===e.detachable&&(s=!1),!1===this.endpoints[0].connectionsDetachable&&(s=!1),!1===this.endpoints[1].connectionsDetachable&&(s=!1);var l=e.reattach||this.endpoints[0].reattachConnections||this.endpoints[1].reattachConnections||r.Defaults.ReattachConnections;this.appendToDefaultType({detachable:s,reattach:l,paintStyle:this.endpoints[0].connectorStyle||this.endpoints[1].connectorStyle||e.paintStyle||r.Defaults.PaintStyle||t.Defaults.PaintStyle,hoverPaintStyle:this.endpoints[0].connectorHoverStyle||this.endpoints[1].connectorHoverStyle||e.hoverPaintStyle||r.Defaults.HoverPaintStyle||t.Defaults.HoverPaintStyle});var u=r.getSuspendedAt();if(!r.isSuspendDrawing()){var c=r.getCachedData(this.sourceId),d=c.o,h=c.s,f=r.getCachedData(this.targetId),p=f.o,m=f.s,v=u||jsPlumbUtil.uuid(),g=this.endpoints[0].anchor.compute({xy:[d.left,d.top],wh:h,element:this.endpoints[0],elementId:this.endpoints[0].elementId,txy:[p.left,p.top],twh:m,tElement:this.endpoints[1],timestamp:v,rotation:r.getRotation(this.endpoints[0].elementId)});this.endpoints[0].paint({anchorLoc:g,timestamp:v}),g=this.endpoints[1].anchor.compute({xy:[p.left,p.top],wh:m,element:this.endpoints[1],elementId:this.endpoints[1].elementId,txy:[d.left,d.top],twh:h,tElement:this.endpoints[0],timestamp:v,rotation:r.getRotation(this.endpoints[1].elementId)}),this.endpoints[1].paint({anchorLoc:g,timestamp:v})}this.getTypeDescriptor=function(){return"connection"},this.getAttachedElements=function(){return this.endpoints},this.isDetachable=function(e){return!1!==this._jsPlumb.detachable&&(null!=e?!0===e.connectionsDetachable:!0===this._jsPlumb.detachable)},this.setDetachable=function(e){this._jsPlumb.detachable=!0===e},this.isReattach=function(){return!0===this._jsPlumb.reattach||!0===this.endpoints[0].reattachConnections||!0===this.endpoints[1].reattachConnections},this.setReattach=function(e){this._jsPlumb.reattach=!0===e},this._jsPlumb.cost=e.cost||this.endpoints[0].getConnectionCost(),this._jsPlumb.directed=e.directed,null==e.directed&&(this._jsPlumb.directed=this.endpoints[0].areConnectionsDirected());var y=t.extend({},this.endpoints[1].getParameters());t.extend(y,this.endpoints[0].getParameters()),t.extend(y,this.getParameters()),this.setParameters(y),this.setConnector(this.endpoints[0].connector||this.endpoints[1].connector||e.connector||r.Defaults.Connector||t.Defaults.Connector,!0);var b=null!=e.data&&n.isObject(e.data)?e.data:{};this.getData=function(){return b},this.setData=function(e){b=e||{}},this.mergeData=function(e){b=t.extend(b,e)};var _=["default",this.endpoints[0].connectionType,this.endpoints[1].connectionType,e.type].join(" ");/[^\s]/.test(_)&&this.addType(_,e.data,!0),this.updateConnectedClass()},n.extend(t.Connection,t.OverlayCapableJsPlumbUIComponent,{applyType:function(e,n,i){var r=null;null!=e.connector&&(r=this.getCachedTypeItem("connector",i.connector),null==r&&(r=this.prepareConnector(e.connector,i.connector),this.cacheTypeItem("connector",r,i.connector)),this.setPreparedConnector(r)),null!=e.detachable&&this.setDetachable(e.detachable),null!=e.reattach&&this.setReattach(e.reattach),e.scope&&(this.scope=e.scope),null!=e.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,e.cssClass);var o=null;e.anchor?(o=this.getCachedTypeItem("anchors",i.anchor),null==o&&(o=[this._jsPlumb.instance.makeAnchor(e.anchor),this._jsPlumb.instance.makeAnchor(e.anchor)],this.cacheTypeItem("anchors",o,i.anchor))):e.anchors&&(o=this.getCachedTypeItem("anchors",i.anchors),null==o&&(o=[this._jsPlumb.instance.makeAnchor(e.anchors[0]),this._jsPlumb.instance.makeAnchor(e.anchors[1])],this.cacheTypeItem("anchors",o,i.anchors))),null!=o&&(this.endpoints[0].anchor=o[0],this.endpoints[1].anchor=o[1],this.endpoints[1].anchor.isDynamic&&this._jsPlumb.instance.repaint(this.endpoints[1].elementId)),t.OverlayCapableJsPlumbUIComponent.applyType(this,e)},addClass:function(e,t){t&&(this.endpoints[0].addClass(e),this.endpoints[1].addClass(e),this.suspendedEndpoint&&this.suspendedEndpoint.addClass(e)),this.connector&&this.connector.addClass(e)},removeClass:function(e,t){t&&(this.endpoints[0].removeClass(e),this.endpoints[1].removeClass(e),this.suspendedEndpoint&&this.suspendedEndpoint.removeClass(e)),this.connector&&this.connector.removeClass(e)},isVisible:function(){return this._jsPlumb.visible},setVisible:function(e){this._jsPlumb.visible=e,this.connector&&this.connector.setVisible(e),this.repaint()},cleanup:function(){this.updateConnectedClass(!0),this.endpoints=null,this.source=null,this.target=null,null!=this.connector&&(this.connector.cleanup(!0),this.connector.destroy(!0)),this.connector=null},updateConnectedClass:function(e){this._jsPlumb&&(o(this,this.source,this._jsPlumb.instance,e),o(this,this.target,this._jsPlumb.instance,e))},setHover:function(t){this.connector&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&(this.connector.setHover(t),e.jsPlumb[t?"addClass":"removeClass"](this.source,this._jsPlumb.instance.hoverSourceClass),e.jsPlumb[t?"addClass":"removeClass"](this.target,this._jsPlumb.instance.hoverTargetClass))},getUuids:function(){return[this.endpoints[0].getUuid(),this.endpoints[1].getUuid()]},getCost:function(){return this._jsPlumb?this._jsPlumb.cost:-1/0},setCost:function(e){this._jsPlumb.cost=e},isDirected:function(){return this._jsPlumb.directed},getConnector:function(){return this.connector},prepareConnector:function(e,t){var r,o={_jsPlumb:this._jsPlumb.instance,cssClass:this._jsPlumb.params.cssClass,container:this._jsPlumb.params.container,"pointer-events":this._jsPlumb.params["pointer-events"]},a=this._jsPlumb.instance.getRenderMode();return n.isString(e)?r=i(this._jsPlumb.instance,a,e,o,this):n.isArray(e)&&(r=1===e.length?i(this._jsPlumb.instance,a,e[0],o,this):i(this._jsPlumb.instance,a,e[0],n.merge(e[1],o),this)),null!=t&&(r.typeId=t),r},setPreparedConnector:function(e,t,n,i){if(this.connector!==e){var r,o="";if(null!=this.connector&&(r=this.connector,o=r.getClass(),this.connector.cleanup(),this.connector.destroy()),this.connector=e,i&&this.cacheTypeItem("connector",e,i),this.canvas=this.connector.canvas,this.bgCanvas=this.connector.bgCanvas,this.connector.reattach(this._jsPlumb.instance),this.addClass(o),this.canvas&&(this.canvas._jsPlumb=this),this.bgCanvas&&(this.bgCanvas._jsPlumb=this),null!=r)for(var a=this.getOverlays(),s=0;s<a.length;s++)a[s].transfer&&a[s].transfer(this.connector);n||this.setListenerComponent(this.connector),t||this.repaint()}},setConnector:function(e,t,n,i){var r=this.prepareConnector(e,i);this.setPreparedConnector(r,t,n,i)},paint:function(e){if(!this._jsPlumb.instance.isSuspendDrawing()&&this._jsPlumb.visible){e=e||{};var t=e.timestamp,n=!1,i=n?this.sourceId:this.targetId,r=n?this.targetId:this.sourceId,o=n?0:1,a=n?1:0;if(null==t||t!==this._jsPlumb.lastPaintedAt){var s=this._jsPlumb.instance.updateOffset({elId:r}).o,l=this._jsPlumb.instance.updateOffset({elId:i}).o,u=this.endpoints[a],c=this.endpoints[o],d=u.anchor.getCurrentLocation({xy:[s.left,s.top],wh:[s.width,s.height],element:u,timestamp:t,rotation:this._jsPlumb.instance.getRotation(this.sourceId)}),h=c.anchor.getCurrentLocation({xy:[l.left,l.top],wh:[l.width,l.height],element:c,timestamp:t,rotation:this._jsPlumb.instance.getRotation(this.targetId)});this.connector.resetBounds(),this.connector.compute({sourcePos:d,targetPos:h,sourceOrientation:u.anchor.getOrientation(u),targetOrientation:c.anchor.getOrientation(c),sourceEndpoint:this.endpoints[a],targetEndpoint:this.endpoints[o],"stroke-width":this._jsPlumb.paintStyleInUse.strokeWidth,sourceInfo:s,targetInfo:l});var f={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(var p in this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(p)){var m=this._jsPlumb.overlays[p];m.isVisible()&&(this._jsPlumb.overlayPlacements[p]=m.draw(this.connector,this._jsPlumb.paintStyleInUse,this.getAbsoluteOverlayPosition(m)),f.minX=Math.min(f.minX,this._jsPlumb.overlayPlacements[p].minX),f.maxX=Math.max(f.maxX,this._jsPlumb.overlayPlacements[p].maxX),f.minY=Math.min(f.minY,this._jsPlumb.overlayPlacements[p].minY),f.maxY=Math.max(f.maxY,this._jsPlumb.overlayPlacements[p].maxY))}var v=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||1)/2,g=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||0),y={xmin:Math.min(this.connector.bounds.minX-(v+g),f.minX),ymin:Math.min(this.connector.bounds.minY-(v+g),f.minY),xmax:Math.max(this.connector.bounds.maxX+(v+g),f.maxX),ymax:Math.max(this.connector.bounds.maxY+(v+g),f.maxY)};for(var b in this.connector.paintExtents=y,this.connector.paint(this._jsPlumb.paintStyleInUse,null,y),this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(b)){var _=this._jsPlumb.overlays[b];_.isVisible()&&_.paint(this._jsPlumb.overlayPlacements[b],y)}}this._jsPlumb.lastPaintedAt=t}},repaint:function(e){var t=jsPlumb.extend(e||{},{});t.elId=this.sourceId,this.paint(t)},prepareEndpoint:function(e,n,i,o,a,s,l,u,c){var d;if(o)i.endpoints[a]=o,o.addConnection(i);else{s.endpoints||(s.endpoints=[null,null]);var h=c||s.endpoints[a]||s.endpoint||e.Defaults.Endpoints[a]||t.Defaults.Endpoints[a]||e.Defaults.Endpoint||t.Defaults.Endpoint;s.endpointStyles||(s.endpointStyles=[null,null]),s.endpointHoverStyles||(s.endpointHoverStyles=[null,null]);var f=s.endpointStyles[a]||s.endpointStyle||e.Defaults.EndpointStyles[a]||t.Defaults.EndpointStyles[a]||e.Defaults.EndpointStyle||t.Defaults.EndpointStyle;null==f.fill&&null!=s.paintStyle&&(f.fill=s.paintStyle.stroke),null==f.outlineStroke&&null!=s.paintStyle&&(f.outlineStroke=s.paintStyle.outlineStroke),null==f.outlineWidth&&null!=s.paintStyle&&(f.outlineWidth=s.paintStyle.outlineWidth);var p=s.endpointHoverStyles[a]||s.endpointHoverStyle||e.Defaults.EndpointHoverStyles[a]||t.Defaults.EndpointHoverStyles[a]||e.Defaults.EndpointHoverStyle||t.Defaults.EndpointHoverStyle;null!=s.hoverPaintStyle&&(null==p&&(p={}),null==p.fill&&(p.fill=s.hoverPaintStyle.stroke));var m=s.anchors?s.anchors[a]:s.anchor?s.anchor:r(e.Defaults.Anchors[a],u,e)||r(t.Defaults.Anchors[a],u,e)||r(e.Defaults.Anchor,u,e)||r(t.Defaults.Anchor,u,e),v=s.uuids?s.uuids[a]:null;d=n({paintStyle:f,hoverPaintStyle:p,endpoint:h,connections:[i],uuid:v,anchor:m,source:l,scope:s.scope,reattach:s.reattach||e.Defaults.ReattachConnections,detachable:s.detachable||e.Defaults.ConnectionsDetachable}),null==o&&d.setDeleteOnEmpty(!0),i.endpoints[a]=d,!1===s.drawEndpoints&&d.setVisible(!1,!0,!0)}return d},replaceEndpoint:function(e,t){var n=this.endpoints[e],i=n.elementId,r=this._jsPlumb.instance.getEndpoints(i),o=r.indexOf(n),a=this.makeEndpoint(0===e,n.element,i,null,t);this.endpoints[e]=a,r.splice(o,1,a),this._jsPlumb.instance.deleteObject({endpoint:n,deleteAttachedObjects:!1}),this._jsPlumb.instance.fire("endpointReplaced",{previous:n,current:a}),this._jsPlumb.instance.router.sourceOrTargetChanged(this.endpoints[1].elementId,this.endpoints[1].elementId,this,this.endpoints[1].element,1)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumbUtil,n=e.jsPlumb;n.AnchorManager=function(e){var i={},r={},o={},a={},s=this,l={},u=e.jsPlumbInstance,c={},d=function(e,t,n,i,r,o,a,s){for(var l=[],u=t[r?0:1]/(i.length+1),c=0;c<i.length;c++){var d=(c+1)*u,h=o*t[r?1:0];a&&(d=t[r?0:1]-d);var f=r?d:h,p=n.left+f,m=f/t[0],v=r?h:d,g=n.top+v,y=v/t[1];if(0!==s){var b=jsPlumbUtil.rotatePoint([p,g],[n.centerx,n.centery],s);p=b[0],g=b[1]}l.push([p,g,m,y,i[c][1],i[c][2]])}return l},h=function(e,t){return t[0][0]-e[0][0]},f=function(e,t){var n=e[0][0]<0?-Math.PI-e[0][0]:Math.PI-e[0][0],i=t[0][0]<0?-Math.PI-t[0][0]:Math.PI-t[0][0];return n-i},p={top:f,right:h,bottom:h,left:f},m=function(e,t){return e.sort(t)},v=function(e,t){var n=u.getCachedData(e),i=n.s,a=n.o,s=function(t,n,i,a,s,l,c){if(a.length>0)for(var h=m(a,p[t]),f="right"===t||"top"===t,v=u.getRotation(e),g=d(t,n,i,h,s,l,f,v),y=function(e,t){r[e.id]=[t[0],t[1],t[2],t[3]],o[e.id]=c},b=0;b<g.length;b++){var _=g[b][4],w=_.endpoints[0].elementId===e,x=_.endpoints[1].elementId===e;w&&y(_.endpoints[0],g[b]),x&&y(_.endpoints[1],g[b])}};s("bottom",i,a,t.bottom,!0,1,[0,1]),s("top",i,a,t.top,!0,0,[0,-1]),s("left",i,a,t.left,!1,0,[-1,0]),s("right",i,a,t.right,!1,1,[1,0])};this.reset=function(){i={},a={},l={}},this.addFloatingConnection=function(e,t){c[e]=t},this.newConnection=function(e){var i=e.sourceId,r=e.targetId,o=e.endpoints,s=!0,l=function(l,u,c,d,h){i===r&&c.isContinuous&&(e._jsPlumb.instance.removeElement(o[1].canvas),s=!1),t.addToList(a,d,[h,u,c.constructor===n.DynamicAnchor])};l(0,o[0],o[0].anchor,r,e),s&&l(1,o[1],o[1].anchor,i,e)};var g=function(e){(function(e,n){if(e){var i=function(e){return e[4]===n};t.removeWithFunction(e.top,i),t.removeWithFunction(e.left,i),t.removeWithFunction(e.bottom,i),t.removeWithFunction(e.right,i)}})(l[e.elementId],e.id)};this.connectionDetached=function(e,n){var i=e.connection||e,r=e.sourceId,o=e.targetId,l=i.endpoints,u=function(e,n,i,r,o){t.removeWithFunction(a[r],(function(e){return e[0].id===o.id}))};u(1,l[1],l[1].anchor,r,i),u(0,l[0],l[0].anchor,o,i),i.floatingId&&(u(i.floatingIndex,i.floatingEndpoint,i.floatingEndpoint.anchor,i.floatingId,i),g(i.floatingEndpoint)),g(i.endpoints[0]),g(i.endpoints[1]),n||(s.redraw(i.sourceId),i.targetId!==i.sourceId&&s.redraw(i.targetId))},this.addEndpoint=function(e,n){t.addToList(i,n,e)},this.changeId=function(e,t){a[t]=a[e],i[t]=i[e],delete a[e],delete i[e]},this.getConnectionsFor=function(e){return a[e]||[]},this.getEndpointsFor=function(e){return i[e]||[]},this.deleteEndpoint=function(e){t.removeWithFunction(i[e.elementId],(function(t){return t.id===e.id})),g(e)},this.elementRemoved=function(e){delete c[e],delete i[e],i[e]=[]};var y=function(n,i,r,o,a,s,l,u,c,d,h,f){var p,m,v=-1,g=-1,y=o.endpoints[l],b=y.id,_=[1,0][l],w=[[i,r],o,a,s,b],x=n[c],k=y._continuousAnchorEdge?n[y._continuousAnchorEdge]:null;if(k){var M=t.findWithFunction(k,(function(e){return e[4]===b}));if(-1!==M)for(k.splice(M,1),p=0;p<k.length;p++)m=k[p][1],t.addWithFunction(h,m,(function(e){return e.id===m.id})),t.addWithFunction(f,k[p][1].endpoints[l],(function(e){return e.id===m.endpoints[l].id})),t.addWithFunction(f,k[p][1].endpoints[_],(function(e){return e.id===m.endpoints[_].id}))}for(p=0;p<x.length;p++)m=x[p][1],1===e.idx&&x[p][3]===s&&-1===g&&(g=p),t.addWithFunction(h,m,(function(e){return e.id===m.id})),t.addWithFunction(f,x[p][1].endpoints[l],(function(e){return e.id===m.endpoints[l].id})),t.addWithFunction(f,x[p][1].endpoints[_],(function(e){return e.id===m.endpoints[_].id}));if(-1!==v)x[v]=w;else{var C=u?-1!==g?g:0:x.length;x.splice(C,0,w)}y._continuousAnchorEdge=c};this.sourceOrTargetChanged=function(e,i,r,o,s){if(0===s){if(e!==i){r.sourceId=i,r.source=o,t.removeWithFunction(a[e],(function(e){return e[0].id===r.id}));var l=t.findWithFunction(a[r.targetId],(function(e){return e[0].id===r.id}));l>-1&&(a[r.targetId][l][0]=r,a[r.targetId][l][1]=r.endpoints[0],a[r.targetId][l][2]=r.endpoints[0].anchor.constructor===n.DynamicAnchor),t.addToList(a,i,[r,r.endpoints[1],r.endpoints[1].anchor.constructor===n.DynamicAnchor]),r.endpoints[1].anchor.isContinuous&&(r.source===r.target?r._jsPlumb.instance.removeElement(r.endpoints[1].canvas):null==r.endpoints[1].canvas.parentNode&&r._jsPlumb.instance.appendElement(r.endpoints[1].canvas)),r.updateConnectedClass()}}else if(1===s){var u=r.endpoints[0].elementId;r.target=o,r.targetId=i;var c=t.findWithFunction(a[u],(function(e){return e[0].id===r.id})),d=t.findWithFunction(a[e],(function(e){return e[0].id===r.id}));-1!==c&&(a[u][c][0]=r,a[u][c][1]=r.endpoints[1],a[u][c][2]=r.endpoints[1].anchor.constructor===n.DynamicAnchor),d>-1&&(a[e].splice(d,1),t.addToList(a,i,[r,r.endpoints[0],r.endpoints[0].anchor.constructor===n.DynamicAnchor])),r.updateConnectedClass()}},this.rehomeEndpoint=function(e,t,n){var r=i[t]||[],o=u.getId(n);if(o!==t){var a=r.indexOf(e);if(a>-1){var l=r.splice(a,1)[0];s.add(l,o)}}for(var c=0;c<e.connections.length;c++)e.connections[c].sourceId===t?s.sourceOrTargetChanged(t,e.elementId,e.connections[c],e.element,0):e.connections[c].targetId===t&&s.sourceOrTargetChanged(t,e.elementId,e.connections[c],e.element,1)},this.redraw=function(e,r,o,s,d,h){var f=[],p=[],m=[];if(!u.isSuspendDrawing()){var g=i[e]||[],b=a[e]||[];o=o||jsPlumbUtil.uuid(),s=s||{left:0,top:0},r&&(r={left:r.left+s.left,top:r.top+s.top});for(var _=u.updateOffset({elId:e,offset:r,recalc:!1,timestamp:o}),w={},x=0;x<b.length;x++){var k=b[x][0],M=k.sourceId,C=k.targetId,S=k.endpoints[0].anchor.isContinuous,D=k.endpoints[1].anchor.isContinuous;if(S||D){var L=M+"_"+C,T=w[L],E=k.sourceId===e?1:0,P=u.getRotation(C),O=u.getRotation(M);S&&!l[M]&&(l[M]={top:[],right:[],bottom:[],left:[]}),D&&!l[C]&&(l[C]={top:[],right:[],bottom:[],left:[]}),e!==C&&u.updateOffset({elId:C,timestamp:o}),e!==M&&u.updateOffset({elId:M,timestamp:o});var j=u.getCachedData(C),I=u.getCachedData(M);C===M&&(S||D)?(y(l[M],-Math.PI/2,0,k,!1,C,0,!1,"top",M,f,p),y(l[C],-Math.PI/2,0,k,!1,M,1,!1,"top",C,f,p)):(T||(T=this.calculateOrientation(M,C,I.o,j.o,k.endpoints[0].anchor,k.endpoints[1].anchor,k,O,P),w[L]=T),S&&y(l[M],T.theta,0,k,!1,C,0,!1,T.a[0],M,f,p),D&&y(l[C],T.theta2,-1,k,!0,M,1,!0,T.a[1],C,f,p)),S&&t.addWithFunction(m,M,(function(e){return e===M})),D&&t.addWithFunction(m,C,(function(e){return e===C})),t.addWithFunction(f,k,(function(e){return e.id===k.id})),(S&&0===E||D&&1===E)&&t.addWithFunction(p,k.endpoints[E],(function(e){return e.id===k.endpoints[E].id}))}}for(x=0;x<g.length;x++)0===g[x].connections.length&&g[x].anchor.isContinuous&&(l[e]||(l[e]={top:[],right:[],bottom:[],left:[]}),y(l[e],-Math.PI/2,0,{endpoints:[g[x],g[x]],paint:function(){}},!1,e,0,!1,g[x].anchor.getDefaultFace(),e,f,p),t.addWithFunction(m,e,(function(t){return t===e})));for(x=0;x<m.length;x++)v(m[x],l[m[x]]);for(x=0;x<g.length;x++)g[x].paint({timestamp:o,offset:_,dimensions:_.s,recalc:!0!==h});for(x=0;x<p.length;x++){var Y=u.getCachedData(p[x].elementId);p[x].paint({timestamp:null,offset:Y,dimensions:Y.s})}for(x=0;x<b.length;x++){var A=b[x][1];if(A.anchor.constructor===n.DynamicAnchor){A.paint({elementWithPrecedence:e,timestamp:o}),t.addWithFunction(f,b[x][0],(function(e){return e.id===b[x][0].id}));for(var N=0;N<A.connections.length;N++)A.connections[N]!==b[x][0]&&t.addWithFunction(f,A.connections[N],(function(e){return e.id===A.connections[N].id}))}else t.addWithFunction(f,b[x][0],(function(e){return e.id===b[x][0].id}))}var R=c[e];for(R&&R.paint({timestamp:o,recalc:!1,elId:e}),x=0;x<f.length;x++)f[x].paint({elId:e,timestamp:null,recalc:!1,clearEdits:d})}return{c:f,e:p}};var b=function(e){t.EventGenerator.apply(this),this.type="Continuous",this.isDynamic=!0,this.isContinuous=!0;for(var n=e.faces||["top","right","bottom","left"],i=!(!1===e.clockwise),a={},s={top:"bottom",right:"left",left:"right",bottom:"top"},l={top:"right",right:"bottom",left:"top",bottom:"left"},u={top:"left",right:"top",left:"bottom",bottom:"right"},c=i?l:u,d=i?u:l,h=e.cssClass||"",f=null,p=null,m=["left","right"],v=["top","bottom"],g=null,y=0;y<n.length;y++)a[n[y]]=!0;this.getDefaultFace=function(){return 0===n.length?"top":n[0]},this.isRelocatable=function(){return!0},this.isSnapOnRelocate=function(){return!0},this.verifyEdge=function(e){return a[e]?e:a[s[e]]?s[e]:a[c[e]]?c[e]:a[d[e]]?d[e]:e},this.isEdgeSupported=function(e){return null==g?null==p?!0===a[e]:p===e:-1!==g.indexOf(e)},this.setCurrentFace=function(e,t){f=e,t&&null!=p&&(p=f)},this.getCurrentFace=function(){return f},this.getSupportedFaces=function(){var e=[];for(var t in a)a[t]&&e.push(t);return e},this.lock=function(){p=f},this.unlock=function(){p=null},this.isLocked=function(){return null!=p},this.lockCurrentAxis=function(){null!=f&&(g="left"===f||"right"===f?m:v)},this.unlockCurrentAxis=function(){g=null},this.compute=function(e){return r[e.element.id]||[0,0]},this.getCurrentLocation=function(e){return r[e.element.id]||[0,0]},this.getOrientation=function(e){return o[e.id]||[0,0]},this.getCssClass=function(){return h}};u.continuousAnchorFactory={get:function(e){return new b(e)},clear:function(e){delete r[e]}}},n.AnchorManager.prototype.calculateOrientation=function(e,t,n,i,r,o,a,s,l){var u={HORIZONTAL:"horizontal",VERTICAL:"vertical",DIAGONAL:"diagonal",IDENTITY:"identity"},c=["left","top","right","bottom"];if(e===t)return{orientation:u.IDENTITY,a:["top","top"]};var d=Math.atan2(i.centery-n.centery,i.centerx-n.centerx),h=Math.atan2(n.centery-i.centery,n.centerx-i.centerx),f=[],p={};(function(e,t){for(var n=0;n<e.length;n++)if(p[e[n]]={left:[t[n][0].left,t[n][0].centery],right:[t[n][0].right,t[n][0].centery],top:[t[n][0].centerx,t[n][0].top],bottom:[t[n][0].centerx,t[n][0].bottom]},0!==t[n][1])for(var i in p[e[n]])p[e[n]][i]=jsPlumbUtil.rotatePoint(p[e[n]][i],[t[n][0].centerx,t[n][0].centery],t[n][1])})(["source","target"],[[n,s],[i,l]]);for(var m=0;m<c.length;m++)for(var v=0;v<c.length;v++)f.push({source:c[m],target:c[v],dist:Biltong.lineLength(p.source[c[m]],p.target[c[v]])});f.sort((function(e,t){return e.dist<t.dist?-1:e.dist>t.dist?1:0}));for(var g=f[0].source,y=f[0].target,b=0;b<f.length;b++)if(g=r.isContinuous&&r.locked?r.getCurrentFace():!r.isContinuous||r.isEdgeSupported(f[b].source)?f[b].source:null,y=o.isContinuous&&o.locked?o.getCurrentFace():!o.isContinuous||o.isEdgeSupported(f[b].target)?f[b].target:null,null!=g&&null!=y)break;return r.isContinuous&&r.setCurrentFace(g),o.isContinuous&&o.setCurrentFace(y),{a:[g,y],theta:d,theta2:h}},n.Anchor=function(e){this.x=e.x||0,this.y=e.y||0,this.elementId=e.elementId,this.cssClass=e.cssClass||"",this.orientation=e.orientation||[0,0],this.lastReturnValue=null,this.offsets=e.offsets||[0,0],this.timestamp=null,this._unrotatedOrientation=[this.orientation[0],this.orientation[1]],this.relocatable=!1!==e.relocatable,this.snapOnRelocate=!1!==e.snapOnRelocate,this.locked=!1,t.EventGenerator.apply(this),this.compute=function(e){var t=e.xy,n=e.wh,i=e.timestamp;if(i&&i===this.timestamp)return this.lastReturnValue;var r=[t[0]+this.x*n[0]+this.offsets[0],t[1]+this.y*n[1]+this.offsets[1],this.x,this.y],o=e.rotation;if(null!=o&&0!==o){var a=jsPlumbUtil.rotatePoint(r,[t[0]+n[0]/2,t[1]+n[1]/2],o);this.orientation[0]=Math.round(this._unrotatedOrientation[0]*a[2]-this._unrotatedOrientation[1]*a[3]),this.orientation[1]=Math.round(this._unrotatedOrientation[1]*a[2]+this._unrotatedOrientation[0]*a[3]),this.lastReturnValue=[a[0],a[1],this.x,this.y]}else this.orientation[0]=this._unrotatedOrientation[0],this.orientation[1]=this._unrotatedOrientation[1],this.lastReturnValue=r;return this.timestamp=i,this.lastReturnValue},this.getCurrentLocation=function(e){return e=e||{},null==this.lastReturnValue||null!=e.timestamp&&this.timestamp!==e.timestamp?this.compute(e):this.lastReturnValue},this.setPosition=function(e,t,n,i,r){this.locked&&!r||(this.x=e,this.y=t,this.orientation=[n,i],this.lastReturnValue=null)}},t.extend(n.Anchor,t.EventGenerator,{equals:function(e){if(!e)return!1;var t=e.getOrientation(),n=this.getOrientation();return this.x===e.x&&this.y===e.y&&this.offsets[0]===e.offsets[0]&&this.offsets[1]===e.offsets[1]&&n[0]===t[0]&&n[1]===t[1]},getOrientation:function(){return this.orientation},getCssClass:function(){return this.cssClass}}),n.FloatingAnchor=function(e){n.Anchor.apply(this,arguments);var t=e.reference,i=e.referenceCanvas,r=n.getSize(i),o=0,a=0,s=null,l=null;this.orientation=null,this.x=0,this.y=0,this.isFloating=!0,this.compute=function(e){var t=e.xy,n=[t[0]+r[0]/2,t[1]+r[1]/2];return l=n,n},this.getOrientation=function(e){if(s)return s;var n=t.getOrientation(e);return[Math.abs(n[0])*o*-1,Math.abs(n[1])*a*-1]},this.over=function(e,t){s=e.getOrientation(t)},this.out=function(){s=null},this.getCurrentLocation=function(e){return null==l?this.compute(e):l}},t.extend(n.FloatingAnchor,n.Anchor);var i=function(e,t,i){return e.constructor===n.Anchor?e:t.makeAnchor(e,i,t)};n.DynamicAnchor=function(e){n.Anchor.apply(this,arguments),this.isDynamic=!0,this.anchors=[],this.elementId=e.elementId,this.jsPlumbInstance=e.jsPlumbInstance;for(var t=0;t<e.anchors.length;t++)this.anchors[t]=i(e.anchors[t],this.jsPlumbInstance,this.elementId);this.getAnchors=function(){return this.anchors};var r=this.anchors.length>0?this.anchors[0]:null,o=r,a=function(e,t,n,i,r,o,a){var s=i[0]+e.x*r[0],l=i[1]+e.y*r[1],u=i[0]+r[0]/2,c=i[1]+r[1]/2;if(null!=o&&0!==o){var d=jsPlumbUtil.rotatePoint([s,l],[u,c],o);s=d[0],l=d[1]}return Math.sqrt(Math.pow(t-s,2)+Math.pow(n-l,2))+Math.sqrt(Math.pow(u-s,2)+Math.pow(c-l,2))},s=e.selector||function(e,t,n,i,r,o,s){for(var l=n[0]+i[0]/2,u=n[1]+i[1]/2,c=-1,d=1/0,h=0;h<s.length;h++){var f=a(s[h],l,u,e,t,r,o);f<d&&(c=h+0,d=f)}return s[c]};this.compute=function(e){var t=e.xy,n=e.wh,i=e.txy,a=e.twh,l=e.rotation,u=e.tRotation;return this.timestamp=e.timestamp,this.locked||null==i||null==a?(this.lastReturnValue=r.compute(e),this.lastReturnValue):(e.timestamp=null,r=s(t,n,i,a,l,u,this.anchors),this.x=r.x,this.y=r.y,r!==o&&this.fire("anchorChanged",r),o=r,this.lastReturnValue=r.compute(e),this.lastReturnValue)},this.getCurrentLocation=function(e){return null!=r?r.getCurrentLocation(e):null},this.getOrientation=function(e){return null!=r?r.getOrientation(e):[0,0]},this.over=function(e,t){null!=r&&r.over(e,t)},this.out=function(){null!=r&&r.out()},this.setAnchor=function(e){r=e},this.getCssClass=function(){return r&&r.getCssClass()||""},this.setAnchorCoordinates=function(e){var t=jsPlumbUtil.findWithFunction(this.anchors,(function(t){return t.x===e[0]&&t.y===e[1]}));return-1!==t&&(this.setAnchor(this.anchors[t]),!0)}},t.extend(n.DynamicAnchor,n.Anchor);var r=function(e,t,i,r,o,a){n.Anchors[o]=function(n){var s=n.jsPlumbInstance.makeAnchor([e,t,i,r,0,0],n.elementId,n.jsPlumbInstance);return s.type=o,a&&a(s,n),s}};r(.5,0,0,-1,"TopCenter"),r(.5,1,0,1,"BottomCenter"),r(0,.5,-1,0,"LeftMiddle"),r(1,.5,1,0,"RightMiddle"),r(.5,0,0,-1,"Top"),r(.5,1,0,1,"Bottom"),r(0,.5,-1,0,"Left"),r(1,.5,1,0,"Right"),r(.5,.5,0,0,"Center"),r(1,0,0,-1,"TopRight"),r(1,1,0,1,"BottomRight"),r(0,0,0,-1,"TopLeft"),r(0,1,0,1,"BottomLeft"),n.Defaults.DynamicAnchors=function(e){return e.jsPlumbInstance.makeAnchors(["TopCenter","RightMiddle","BottomCenter","LeftMiddle"],e.elementId,e.jsPlumbInstance)},n.Anchors.AutoDefault=function(e){var t=e.jsPlumbInstance.makeDynamicAnchor(n.Defaults.DynamicAnchors(e));return t.type="AutoDefault",t};var o=function(e,t){n.Anchors[e]=function(n){var i=n.jsPlumbInstance.makeAnchor(["Continuous",{faces:t}],n.elementId,n.jsPlumbInstance);return i.type=e,i}};n.Anchors.Continuous=function(e){return e.jsPlumbInstance.continuousAnchorFactory.get(e)},o("ContinuousLeft",["left"]),o("ContinuousTop",["top"]),o("ContinuousBottom",["bottom"]),o("ContinuousRight",["right"]),r(0,0,0,0,"Assign",(function(e,t){var n=t.position||"Fixed";e.positionFinder=n.constructor===String?t.jsPlumbInstance.AnchorPositionFinders[n]:n,e.constructorParams=t})),e.jsPlumbInstance.prototype.AnchorPositionFinders={Fixed:function(e,t,n){return[(e.left-t.left)/n[0],(e.top-t.top)/n[1]]},Grid:function(e,t,n,i){var r=e.left-t.left,o=e.top-t.top,a=n[0]/i.grid[0],s=n[1]/i.grid[1],l=Math.floor(r/a),u=Math.floor(o/s);return[(l*a+a/2)/n[0],(u*s+s/2)/n[1]]}},n.Anchors.Perimeter=function(e){e=e||{};var t=e.anchorCount||60,n=e.shape;if(!n)throw new Error("no shape supplied to Perimeter Anchor type");var i=function(){for(var e=.5,n=2*Math.PI/t,i=0,r=[],o=0;o<t;o++){var a=e+e*Math.sin(i),s=e+e*Math.cos(i);r.push([a,s,0,0]),i+=n}return r},r=function(e){for(var n=t/e.length,i=[],r=function(e,r,o,a,s,l,u){n=t*s;for(var c=(o-e)/n,d=(a-r)/n,h=0;h<n;h++)i.push([e+c*h,r+d*h,null==l?0:l,null==u?0:u])},o=0;o<e.length;o++)r.apply(null,e[o]);return i},o=function(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n][0],e[n][1],e[n][2],e[n][3],1/e.length,e[n][4],e[n][5]]);return r(t)},a=function(){return o([[0,0,1,0,0,-1],[1,0,1,1,1,0],[1,1,0,1,0,1],[0,1,0,0,-1,0]])},s={Circle:i,Ellipse:i,Diamond:function(){return o([[.5,0,1,.5],[1,.5,.5,1],[.5,1,0,.5],[0,.5,.5,0]])},Rectangle:a,Square:a,Triangle:function(){return o([[.5,0,1,1],[1,1,0,1],[0,1,.5,0]])},Path:function(e){for(var t=e.points,n=[],i=0,o=0;o<t.length-1;o++){var a=Math.sqrt(Math.pow(t[o][2]-t[o][0])+Math.pow(t[o][3]-t[o][1]));i+=a,n.push([t[o][0],t[o][1],t[o+1][0],t[o+1][1],a])}for(var s=0;s<n.length;s++)n[s][4]=n[s][4]/i;return r(n)}},l=function(e,t){for(var n=[],i=t/180*Math.PI,r=0;r<e.length;r++){var o=e[r][0]-.5,a=e[r][1]-.5;n.push([o*Math.cos(i)-a*Math.sin(i)+.5,o*Math.sin(i)+a*Math.cos(i)+.5,e[r][2],e[r][3]])}return n};if(!s[n])throw new Error("Shape ["+n+"] is unknown by Perimeter Anchor type");var u=s[n](e);e.rotation&&(u=l(u,e.rotation));var c=e.jsPlumbInstance.makeDynamicAnchor(u);return c.type="Perimeter",c}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=(e.jsPlumbUtil,e.jsPlumb);t.DefaultRouter=function(e){this.jsPlumbInstance=e,this.anchorManager=new t.AnchorManager({jsPlumbInstance:e}),this.sourceOrTargetChanged=function(e,t,n,i,r){this.anchorManager.sourceOrTargetChanged(e,t,n,i,r)},this.reset=function(){this.anchorManager.reset()},this.changeId=function(e,t){this.anchorManager.changeId(e,t)},this.elementRemoved=function(e){this.anchorManager.elementRemoved(e)},this.newConnection=function(e){this.anchorManager.newConnection(e)},this.connectionDetached=function(e,t){this.anchorManager.connectionDetached(e,t)},this.redraw=function(e,t,n,i,r,o){return this.anchorManager.redraw(e,t,n,i,r,o)},this.deleteEndpoint=function(e){this.anchorManager.deleteEndpoint(e)},this.rehomeEndpoint=function(e,t,n){this.anchorManager.rehomeEndpoint(e,t,n)},this.addEndpoint=function(e,t){this.anchorManager.addEndpoint(e,t)}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=e.Biltong;t.Segments={AbstractSegment:function(e){this.params=e,this.findClosestPointOnPath=function(e,t){return{d:1/0,x:null,y:null,l:null}},this.getBounds=function(){return{minX:Math.min(e.x1,e.x2),minY:Math.min(e.y1,e.y2),maxX:Math.max(e.x1,e.x2),maxY:Math.max(e.y1,e.y2)}},this.lineIntersection=function(e,t,n,i){return[]},this.boxIntersection=function(e,t,n,i){var r=[];return r.push.apply(r,this.lineIntersection(e,t,e+n,t)),r.push.apply(r,this.lineIntersection(e+n,t,e+n,t+i)),r.push.apply(r,this.lineIntersection(e+n,t+i,e,t+i)),r.push.apply(r,this.lineIntersection(e,t+i,e,t)),r},this.boundingBoxIntersection=function(e){return this.boxIntersection(e.x,e.y,e.w,e.y)}},Straight:function(e){t.Segments.AbstractSegment.apply(this,arguments);var n,r,o,a,s,l,u,c=function(){n=Math.sqrt(Math.pow(s-a,2)+Math.pow(u-l,2)),r=i.gradient({x:a,y:l},{x:s,y:u}),o=-1/r};this.type="Straight",this.getLength=function(){return n},this.getGradient=function(){return r},this.getCoordinates=function(){return{x1:a,y1:l,x2:s,y2:u}},this.setCoordinates=function(e){a=e.x1,l=e.y1,s=e.x2,u=e.y2,c()},this.setCoordinates({x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}),this.getBounds=function(){return{minX:Math.min(a,s),minY:Math.min(l,u),maxX:Math.max(a,s),maxY:Math.max(l,u)}},this.pointOnPath=function(e,t){if(0!==e||t){if(1!==e||t){var r=t?e>0?e:n+e:e*n;return i.pointOnLine({x:a,y:l},{x:s,y:u},r)}return{x:s,y:u}}return{x:a,y:l}},this.gradientAtPoint=function(e){return r},this.pointAlongPathFrom=function(e,t,n){var r=this.pointOnPath(e,n),o=t<=0?{x:a,y:l}:{x:s,y:u};return t<=0&&Math.abs(t)>1&&(t*=-1),i.pointOnLine(r,o,t)};var d=function(e,t,n){return n>=Math.min(e,t)&&n<=Math.max(e,t)},h=function(e,t,n){return Math.abs(n-e)<Math.abs(n-t)?e:t};this.findClosestPointOnPath=function(e,t){var c={d:1/0,x:null,y:null,l:null,x1:a,x2:s,y1:l,y2:u};if(0===r)c.y=l,c.x=d(a,s,e)?e:h(a,s,e);else if(r===1/0||r===-1/0)c.x=a,c.y=d(l,u,t)?t:h(l,u,t);else{var f=l-r*a,p=t-o*e,m=(p-f)/(r-o),v=r*m+f;c.x=d(a,s,m)?m:h(a,s,m),c.y=d(l,u,v)?v:h(l,u,v)}var g=i.lineLength([c.x,c.y],[a,l]);return c.d=i.lineLength([e,t],[c.x,c.y]),c.l=g/n,c};var f=function(e,t,n){return n>t?t<=e&&e<=n:t>=e&&e>=n},p=f;this.lineIntersection=function(e,t,n,o){var c=Math.abs(i.gradient({x:e,y:t},{x:n,y:o})),d=Math.abs(r),h=d===1/0?a:l-d*a,f=[],m=c===1/0?e:t-c*e;if(c!==d)if(c===1/0&&0===d)p(e,a,s)&&p(l,t,o)&&(f=[e,l]);else if(0===c&&d===1/0)p(t,l,u)&&p(a,e,n)&&(f=[a,t]);else{var v,g;c===1/0?(v=e,p(v,a,s)&&(g=d*e+h,p(g,t,o)&&(f=[v,g]))):0===c?(g=t,p(g,l,u)&&(v=(t-h)/d,p(v,e,n)&&(f=[v,g]))):(v=(m-h)/(d-c),g=d*v+h,p(v,a,s)&&p(g,l,u)&&(f=[v,g]))}return f},this.boxIntersection=function(e,t,n,i){var r=[];return r.push.apply(r,this.lineIntersection(e,t,e+n,t)),r.push.apply(r,this.lineIntersection(e+n,t,e+n,t+i)),r.push.apply(r,this.lineIntersection(e+n,t+i,e,t+i)),r.push.apply(r,this.lineIntersection(e,t+i,e,t)),r},this.boundingBoxIntersection=function(e){return this.boxIntersection(e.x,e.y,e.w,e.h)}},Arc:function(e){t.Segments.AbstractSegment.apply(this,arguments);var n=function(t,n){return i.theta([e.cx,e.cy],[t,n])},r=function(e,t){if(e.anticlockwise){var n=e.startAngle<e.endAngle?e.startAngle+o:e.startAngle,i=Math.abs(n-e.endAngle);return n-i*t}var r=e.endAngle<e.startAngle?e.endAngle+o:e.endAngle,a=Math.abs(r-e.startAngle);return e.startAngle+a*t},o=2*Math.PI;this.radius=e.r,this.anticlockwise=e.ac,this.type="Arc",e.startAngle&&e.endAngle?(this.startAngle=e.startAngle,this.endAngle=e.endAngle,this.x1=e.cx+this.radius*Math.cos(e.startAngle),this.y1=e.cy+this.radius*Math.sin(e.startAngle),this.x2=e.cx+this.radius*Math.cos(e.endAngle),this.y2=e.cy+this.radius*Math.sin(e.endAngle)):(this.startAngle=n(e.x1,e.y1),this.endAngle=n(e.x2,e.y2),this.x1=e.x1,this.y1=e.y1,this.x2=e.x2,this.y2=e.y2),this.endAngle<0&&(this.endAngle+=o),this.startAngle<0&&(this.startAngle+=o);var a=this.endAngle<this.startAngle?this.endAngle+o:this.endAngle;this.sweep=Math.abs(a-this.startAngle),this.anticlockwise&&(this.sweep=o-this.sweep);var s=2*Math.PI*this.radius,l=this.sweep/o,u=s*l;this.getLength=function(){return u},this.getBounds=function(){return{minX:e.cx-e.r,maxX:e.cx+e.r,minY:e.cy-e.r,maxY:e.cy+e.r}};var c=1e-10,d=function(e){var t=Math.floor(e),n=Math.ceil(e);return e-t<c?t:n-e<c?n:e};this.pointOnPath=function(t,n){if(0===t)return{x:this.x1,y:this.y1,theta:this.startAngle};if(1===t)return{x:this.x2,y:this.y2,theta:this.endAngle};n&&(t/=u);var i=r(this,t),o=e.cx+e.r*Math.cos(i),a=e.cy+e.r*Math.sin(i);return{x:d(o),y:d(a),theta:i}},this.gradientAtPoint=function(t,n){var r=this.pointOnPath(t,n),o=i.normal([e.cx,e.cy],[r.x,r.y]);return this.anticlockwise||o!==1/0&&o!==-1/0||(o*=-1),o},this.pointAlongPathFrom=function(t,n,i){var r=this.pointOnPath(t,i),o=n/s*2*Math.PI,a=this.anticlockwise?-1:1,l=r.theta+a*o,u=e.cx+this.radius*Math.cos(l),c=e.cy+this.radius*Math.sin(l);return{x:u,y:c}}},Bezier:function(n){this.curve=[{x:n.x1,y:n.y1},{x:n.cp1x,y:n.cp1y},{x:n.cp2x,y:n.cp2y},{x:n.x2,y:n.y2}];var i=function(e){return e[0].x===e[1].x&&e[0].y===e[1].y},r=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},o=function(e){var t={x:0,y:0};if(0===e)return this.curve[0];var n=this.curve.length-1;if(1===e)return this.curve[n];var i=this.curve,r=1-e;if(0===n)return this.curve[0];if(1===n)return{x:r*i[0].x+e*i[1].x,y:r*i[0].y+e*i[1].y};if(n<4){var o,a,s,l=r*r,u=e*e,c=0;return 2===n?(i=[i[0],i[1],i[2],t],o=l,a=r*e*2,s=u):3===n&&(o=l*r,a=l*e*3,s=r*u*3,c=e*u),{x:o*i[0].x+a*i[1].x+s*i[2].x+c*i[3].x,y:o*i[0].y+a*i[1].y+s*i[2].y+c*i[3].y}}return t}.bind(this),a=function(e){var t=[];e--;for(var n=0;n<=e;n++)t.push(o(n/e));return t},s=function(){i(this.curve)&&(this.length=0);var e=16,t=a(e);this.length=0;for(var n=0;n<e-1;n++){var o=t[n],s=t[n+1];this.length+=r(o,s)}}.bind(this);t.Segments.AbstractSegment.apply(this,arguments);this.bounds={minX:Math.min(n.x1,n.x2,n.cp1x,n.cp2x),minY:Math.min(n.y1,n.y2,n.cp1y,n.cp2y),maxX:Math.max(n.x1,n.x2,n.cp1x,n.cp2x),maxY:Math.max(n.y1,n.y2,n.cp1y,n.cp2y)},this.type="Bezier",s();var l=function(t,n,i){return i&&(n=e.jsBezier.locationAlongCurveFrom(t,n>0?0:1,n)),n};this.pointOnPath=function(t,n){return t=l(this.curve,t,n),e.jsBezier.pointOnCurve(this.curve,t)},this.gradientAtPoint=function(t,n){return t=l(this.curve,t,n),e.jsBezier.gradientAtPoint(this.curve,t)},this.pointAlongPathFrom=function(t,n,i){return t=l(this.curve,t,i),e.jsBezier.pointAlongCurveFrom(this.curve,t,n)},this.getLength=function(){return this.length},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(t,n){var i=e.jsBezier.nearestPointOnCurve({x:t,y:n},this.curve);return{d:Math.sqrt(Math.pow(i.point.x-t,2)+Math.pow(i.point.y-n,2)),x:i.point.x,y:i.point.y,l:1-i.location,s:this}},this.lineIntersection=function(t,n,i,r){return e.jsBezier.lineIntersection(t,n,i,r,this.curve)}}},t.SegmentRenderer={getPath:function(e,t){return{Straight:function(t){var n=e.getCoordinates();return(t?"M "+n.x1+" "+n.y1+" ":"")+"L "+n.x2+" "+n.y2},Bezier:function(t){var n=e.params;return(t?"M "+n.x2+" "+n.y2+" ":"")+"C "+n.cp2x+" "+n.cp2y+" "+n.cp1x+" "+n.cp1y+" "+n.x1+" "+n.y1},Arc:function(t){var n=e.params,i=e.sweep>Math.PI?1:0,r=e.anticlockwise?0:1;return(t?"M"+e.x1+" "+e.y1+" ":"")+"A "+e.radius+" "+n.r+" 0 "+i+","+r+" "+e.x2+" "+e.y2}}[e.type](t)}};var r=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}},this.resetBounds()};t.Connectors.AbstractConnector=function(e){r.apply(this,arguments);var o=[],a=0,s=[],l=[],u=e.stub||0,c=n.isArray(u)?u[0]:u,d=n.isArray(u)?u[1]:u,h=e.gap||0,f=n.isArray(h)?h[0]:h,p=n.isArray(h)?h[1]:h,m=null,v=null;this.getPathData=function(){for(var e="",n=0;n<o.length;n++)e+=t.SegmentRenderer.getPath(o[n],0===n),e+=" ";return e},this.findSegmentForPoint=function(e,t){for(var n={d:1/0,s:null,x:null,y:null,l:null},i=0;i<o.length;i++){var r=o[i].findClosestPointOnPath(e,t);r.d<n.d&&(n.d=r.d,n.l=r.l,n.x=r.x,n.y=r.y,n.s=o[i],n.x1=r.x1,n.x2=r.x2,n.y1=r.y1,n.y2=r.y2,n.index=i,n.connectorLocation=s[i][0]+r.l*(s[i][1]-s[i][0]))}return n},this.lineIntersection=function(e,t,n,i){for(var r=[],a=0;a<o.length;a++)r.push.apply(r,o[a].lineIntersection(e,t,n,i));return r},this.boxIntersection=function(e,t,n,i){for(var r=[],a=0;a<o.length;a++)r.push.apply(r,o[a].boxIntersection(e,t,n,i));return r},this.boundingBoxIntersection=function(e){for(var t=[],n=0;n<o.length;n++)t.push.apply(t,o[n].boundingBoxIntersection(e));return t};var g=function(){for(var e=0,t=0;t<o.length;t++){var n=o[t].getLength();l[t]=n/a,s[t]=[e,e+=n/a]}},y=function(e,t){var n,i,r;if(t&&(e=e>0?e/a:(a+e)/a),1===e)n=o.length-1,r=1;else if(0===e)r=0,n=0;else if(e>=.5){for(n=0,r=0,i=s.length-1;i>-1;i--)if(s[i][1]>=e&&s[i][0]<=e){n=i,r=(e-s[i][0])/l[i];break}}else for(n=s.length-1,r=1,i=0;i<s.length;i++)if(s[i][1]>=e){n=i,r=(e-s[i][0])/l[i];break}return{segment:o[n],proportion:r,index:n}},b=function(e,n,i){if(i.x1!==i.x2||i.y1!==i.y2){var r=new t.Segments[n](i);o.push(r),a+=r.getLength(),e.updateBounds(r)}},_=function(){a=o.length=s.length=l.length=0};this.setSegments=function(e){m=[],a=0;for(var t=0;t<e.length;t++)m.push(e[t]),a+=e[t].getLength()},this.getLength=function(){return a};var w=function(e){this.strokeWidth=e.strokeWidth;var t=i.quadrant(e.sourcePos,e.targetPos),n=e.targetPos[0]<e.sourcePos[0],r=e.targetPos[1]<e.sourcePos[1],o=e.strokeWidth||1,a=e.sourceEndpoint.anchor.getOrientation(e.sourceEndpoint),s=e.targetEndpoint.anchor.getOrientation(e.targetEndpoint),l=n?e.targetPos[0]:e.sourcePos[0],u=r?e.targetPos[1]:e.sourcePos[1],h=Math.abs(e.targetPos[0]-e.sourcePos[0]),m=Math.abs(e.targetPos[1]-e.sourcePos[1]);if(0===a[0]&&0===a[1]||0===s[0]&&0===s[1]){var v=h>m?0:1,g=[1,0][v];a=[],s=[],a[v]=e.sourcePos[v]>e.targetPos[v]?-1:1,s[v]=e.sourcePos[v]>e.targetPos[v]?1:-1,a[g]=0,s[g]=0}var y=n?h+f*a[0]:f*a[0],b=r?m+f*a[1]:f*a[1],_=n?p*s[0]:h+p*s[0],w=r?p*s[1]:m+p*s[1],x=a[0]*s[0]+a[1]*s[1],k={sx:y,sy:b,tx:_,ty:w,lw:o,xSpan:Math.abs(_-y),ySpan:Math.abs(w-b),mx:(y+_)/2,my:(b+w)/2,so:a,to:s,x:l,y:u,w:h,h:m,segment:t,startStubX:y+a[0]*c,startStubY:b+a[1]*c,endStubX:_+s[0]*d,endStubY:w+s[1]*d,isXGreaterThanStubTimes2:Math.abs(y-_)>c+d,isYGreaterThanStubTimes2:Math.abs(b-w)>c+d,opposite:-1===x,perpendicular:0===x,orthogonal:1===x,sourceAxis:0===a[0]?"y":"x",points:[l,u,h,m,y,b,_,w],stubs:[c,d]};return k.anchorOrientation=k.opposite?"opposite":k.orthogonal?"orthogonal":"perpendicular",k};this.getSegments=function(){return o},this.updateBounds=function(e){var t=e.getBounds();this.bounds.minX=Math.min(this.bounds.minX,t.minX),this.bounds.maxX=Math.max(this.bounds.maxX,t.maxX),this.bounds.minY=Math.min(this.bounds.minY,t.minY),this.bounds.maxY=Math.max(this.bounds.maxY,t.maxY)};return this.pointOnPath=function(e,t){var n=y(e,t);return n.segment&&n.segment.pointOnPath(n.proportion,!1)||[0,0]},this.gradientAtPoint=function(e,t){var n=y(e,t);return n.segment&&n.segment.gradientAtPoint(n.proportion,!1)||0},this.pointAlongPathFrom=function(e,t,n){var i=y(e,n);return i.segment&&i.segment.pointAlongPathFrom(i.proportion,t,!1)||[0,0]},this.compute=function(e){v=w.call(this,e),_(),this._compute(v,e),this.x=v.points[0],this.y=v.points[1],this.w=v.points[2],this.h=v.points[3],this.segment=v.segment,g()},{addSegment:b,prepareCompute:w,sourceStub:c,targetStub:d,maxStub:Math.max(c,d),sourceGap:f,targetGap:p,maxGap:Math.max(f,p)}},n.extend(t.Connectors.AbstractConnector,r),t.Endpoints.AbstractEndpoint=function(e){r.apply(this,arguments);var t=this.compute=function(e,t,n,i){var r=this._compute.apply(this,arguments);return this.x=r[0],this.y=r[1],this.w=r[2],this.h=r[3],this.bounds.minX=this.x,this.bounds.minY=this.y,this.bounds.maxX=this.x+this.w,this.bounds.maxY=this.y+this.h,r};return{compute:t,cssClass:e.cssClass}},n.extend(t.Endpoints.AbstractEndpoint,r),t.Endpoints.Dot=function(e){this.type="Dot";t.Endpoints.AbstractEndpoint.apply(this,arguments);e=e||{},this.radius=e.radius||10,this.defaultOffset=.5*this.radius,this.defaultInnerRadius=this.radius/3,this._compute=function(e,t,n,i){this.radius=n.radius||this.radius;var r=e[0]-this.radius,o=e[1]-this.radius,a=2*this.radius,s=2*this.radius;if(n.stroke){var l=n.strokeWidth||1;r-=l,o-=l,a+=2*l,s+=2*l}return[r,o,a,s,this.radius]}},n.extend(t.Endpoints.Dot,t.Endpoints.AbstractEndpoint),t.Endpoints.Rectangle=function(e){this.type="Rectangle";t.Endpoints.AbstractEndpoint.apply(this,arguments);e=e||{},this.width=e.width||20,this.height=e.height||20,this._compute=function(e,t,n,i){var r=n.width||this.width,o=n.height||this.height,a=e[0]-r/2,s=e[1]-o/2;return[a,s,r,o]}},n.extend(t.Endpoints.Rectangle,t.Endpoints.AbstractEndpoint);var o=function(e){t.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.displayElements=[]};n.extend(o,t.jsPlumbUIComponent,{getDisplayElements:function(){return this._jsPlumb.displayElements},appendDisplayElement:function(e){this._jsPlumb.displayElements.push(e)}}),t.Endpoints.Image=function(i){this.type="Image",o.apply(this,arguments),t.Endpoints.AbstractEndpoint.apply(this,arguments);var r=i.onload,a=i.src||i.url,s=i.cssClass?" "+i.cssClass:"";this._jsPlumb.img=new Image,this._jsPlumb.ready=!1,this._jsPlumb.initialized=!1,this._jsPlumb.deleted=!1,this._jsPlumb.widthToUse=i.width,this._jsPlumb.heightToUse=i.height,this._jsPlumb.endpoint=i.endpoint,this._jsPlumb.img.onload=function(){null!=this._jsPlumb&&(this._jsPlumb.ready=!0,this._jsPlumb.widthToUse=this._jsPlumb.widthToUse||this._jsPlumb.img.width,this._jsPlumb.heightToUse=this._jsPlumb.heightToUse||this._jsPlumb.img.height,r&&r(this))}.bind(this),this._jsPlumb.endpoint.setImage=function(e,t){var n=e.constructor===String?e:e.src;r=t,this._jsPlumb.img.src=n,null!=this.canvas&&this.canvas.setAttribute("src",this._jsPlumb.img.src)}.bind(this),this._jsPlumb.endpoint.setImage(a,r),this._compute=function(e,t,n,i){return this.anchorPoint=e,this._jsPlumb.ready?[e[0]-this._jsPlumb.widthToUse/2,e[1]-this._jsPlumb.heightToUse/2,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse]:[0,0,0,0]},this.canvas=t.createElement("img",{position:"absolute",margin:0,padding:0,outline:0},this._jsPlumb.instance.endpointClass+s),this._jsPlumb.widthToUse&&this.canvas.setAttribute("width",this._jsPlumb.widthToUse),this._jsPlumb.heightToUse&&this.canvas.setAttribute("height",this._jsPlumb.heightToUse),this._jsPlumb.instance.appendElement(this.canvas),this.actuallyPaint=function(e,t,i){if(!this._jsPlumb.deleted){this._jsPlumb.initialized||(this.canvas.setAttribute("src",this._jsPlumb.img.src),this.appendDisplayElement(this.canvas),this._jsPlumb.initialized=!0);var r=this.anchorPoint[0]-this._jsPlumb.widthToUse/2,o=this.anchorPoint[1]-this._jsPlumb.heightToUse/2;n.sizeElement(this.canvas,r,o,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse)}},this.paint=function(t,n){null!=this._jsPlumb&&(this._jsPlumb.ready?this.actuallyPaint(t,n):e.setTimeout(function(){this.paint(t,n)}.bind(this),200))}},n.extend(t.Endpoints.Image,[o,t.Endpoints.AbstractEndpoint],{cleanup:function(e){e&&(this._jsPlumb.deleted=!0,this.canvas&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null)}}),t.Endpoints.Blank=function(e){t.Endpoints.AbstractEndpoint.apply(this,arguments);this.type="Blank",o.apply(this,arguments),this._compute=function(e,t,n,i){return[e[0],e[1],10,0]};var i=e.cssClass?" "+e.cssClass:"";this.canvas=t.createElement("div",{display:"block",width:"1px",height:"1px",background:"transparent",position:"absolute"},this._jsPlumb.instance.endpointClass+i),this._jsPlumb.instance.appendElement(this.canvas),this.paint=function(e,t){n.sizeElement(this.canvas,this.x,this.y,this.w,this.h)}},n.extend(t.Endpoints.Blank,[t.Endpoints.AbstractEndpoint,o],{cleanup:function(){this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}),t.Endpoints.Triangle=function(e){this.type="Triangle",t.Endpoints.AbstractEndpoint.apply(this,arguments);var n=this;e=e||{},e.width=e.width||55,e.height=e.height||55,this.width=e.width,this.height=e.height,this._compute=function(e,t,i,r){var o=i.width||n.width,a=i.height||n.height,s=e[0]-o/2,l=e[1]-a/2;return[s,l,o,a]}};var a=t.Overlays.AbstractOverlay=function(e){this.visible=!0,this.isAppendedAtTopLevel=!0,this.component=e.component,this.loc=null==e.location?.5:e.location,this.endpointLoc=null==e.endpointLocation?[.5,.5]:e.endpointLocation,this.visible=!1!==e.visible};a.prototype={cleanup:function(e){e&&(this.component=null,this.canvas=null,this.endpointLoc=null)},reattach:function(e,t){},setVisible:function(e){this.visible=e,this.component.repaint()},isVisible:function(){return this.visible},hide:function(){this.setVisible(!1)},show:function(){this.setVisible(!0)},incrementLocation:function(e){this.loc+=e,this.component.repaint()},setLocation:function(e){this.loc=e,this.component.repaint()},getLocation:function(){return this.loc},updateFrom:function(){}},t.Overlays.Arrow=function(e){this.type="Arrow",a.apply(this,arguments),this.isAppendedAtTopLevel=!1,e=e||{};var r=this;this.length=e.length||20,this.width=e.width||20,this.id=e.id,this.direction=(e.direction||1)<0?-1:1;var o=e.paintStyle||{"stroke-width":1},s=e.foldback||.623;this.computeMaxSize=function(){return 1.5*r.width},this.elementCreated=function(n,i){if(this.path=n,e.events)for(var r in e.events)t.on(n,r,e.events[r])},this.draw=function(e,t){var r,a,l,u,c;if(e.pointAlongPathFrom){if(n.isString(this.loc)||this.loc>1||this.loc<0){var d=parseInt(this.loc,10),h=this.loc<0?1:0;r=e.pointAlongPathFrom(h,d,!1),a=e.pointAlongPathFrom(h,d-this.direction*this.length/2,!1),l=i.pointOnLine(r,a,this.length)}else if(1===this.loc){if(r=e.pointOnPath(this.loc),a=e.pointAlongPathFrom(this.loc,-this.length),l=i.pointOnLine(r,a,this.length),-1===this.direction){var f=l;l=r,r=f}}else if(0===this.loc){if(l=e.pointOnPath(this.loc),a=e.pointAlongPathFrom(this.loc,this.length),r=i.pointOnLine(l,a,this.length),-1===this.direction){var p=l;l=r,r=p}}else r=e.pointAlongPathFrom(this.loc,this.direction*this.length/2),a=e.pointOnPath(this.loc),l=i.pointOnLine(r,a,this.length);u=i.perpendicularLineTo(r,l,this.width),c=i.pointOnLine(r,l,s*this.length);var m={hxy:r,tail:u,cxy:c},v=o.stroke||t.stroke,g=o.fill||t.stroke,y=o.strokeWidth||t.strokeWidth;return{component:e,d:m,"stroke-width":y,stroke:v,fill:g,minX:Math.min(r.x,u[0].x,u[1].x),maxX:Math.max(r.x,u[0].x,u[1].x),minY:Math.min(r.y,u[0].y,u[1].y),maxY:Math.max(r.y,u[0].y,u[1].y)}}return{component:e,minX:0,maxX:0,minY:0,maxY:0}}},n.extend(t.Overlays.Arrow,a,{updateFrom:function(e){this.length=e.length||this.length,this.width=e.width||this.width,this.direction=null!=e.direction?e.direction:this.direction,this.foldback=e.foldback||this.foldback},cleanup:function(){this.path&&this.path.parentNode&&this.path.parentNode.removeChild(this.path)}}),t.Overlays.PlainArrow=function(e){e=e||{};var n=t.extend(e,{foldback:1});t.Overlays.Arrow.call(this,n),this.type="PlainArrow"},n.extend(t.Overlays.PlainArrow,t.Overlays.Arrow),t.Overlays.Diamond=function(e){e=e||{};var n=e.length||40,i=t.extend(e,{length:n/2,foldback:2});t.Overlays.Arrow.call(this,i),this.type="Diamond"},n.extend(t.Overlays.Diamond,t.Overlays.Arrow);var s=function(e,t){return(null==e._jsPlumb.cachedDimensions||t)&&(e._jsPlumb.cachedDimensions=e.getDimensions()),e._jsPlumb.cachedDimensions},l=function(e){t.jsPlumbUIComponent.apply(this,arguments),a.apply(this,arguments);var i=this.fire;this.fire=function(){i.apply(this,arguments),this.component&&this.component.fire.apply(this.component,arguments)},this.detached=!1,this.id=e.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=e.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=e.create,this._jsPlumb.initiallyInvisible=!1===e.visible,this.getElement=function(){if(null==this._jsPlumb.div){var n=this._jsPlumb.div=t.getElement(this._jsPlumb.create(this._jsPlumb.component));n.style.position="absolute",jsPlumb.addClass(n,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:e.cssClass?e.cssClass:"")),this._jsPlumb.instance.appendElement(n),this._jsPlumb.instance.getId(n),this.canvas=n;var i="translate(-50%, -50%)";n.style.webkitTransform=i,n.style.mozTransform=i,n.style.msTransform=i,n.style.oTransform=i,n.style.transform=i,n._jsPlumb=this,!1===e.visible&&(n.style.display="none")}return this._jsPlumb.div},this.draw=function(e,t,i){var r=s(this);if(null!=r&&2===r.length){var o={x:0,y:0};if(i)o={x:i[0],y:i[1]};else if(e.pointOnPath){var a=this.loc,l=!1;(n.isString(this.loc)||this.loc<0||this.loc>1)&&(a=parseInt(this.loc,10),l=!0),o=e.pointOnPath(a,l)}else{var u=this.loc.constructor===Array?this.loc:this.endpointLoc;o={x:u[0]*e.w,y:u[1]*e.h}}var c=o.x-r[0]/2,d=o.y-r[1]/2;return{component:e,d:{minx:c,miny:d,td:r,cxy:o},minX:c,maxX:c+r[0],minY:d,maxY:d+r[1]}}return{minX:0,maxX:0,minY:0,maxY:0}}};n.extend(l,[t.jsPlumbUIComponent,a],{getDimensions:function(){return[1,1]},setVisible:function(e){this._jsPlumb.div&&(this._jsPlumb.div.style.display=e?"block":"none",e&&this._jsPlumb.initiallyInvisible&&(s(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(e){e?null!=this._jsPlumb.div&&(this._jsPlumb.div._jsPlumb=null,this._jsPlumb.instance.removeElement(this._jsPlumb.div)):(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div),this.detached=!0)},reattach:function(e,t){null!=this._jsPlumb.div&&e.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var e=s(this);return Math.max(e[0],e[1])},paint:function(e,t){this._jsPlumb.initialised||(this.getElement(),e.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=e.component.x+e.d.minx+"px",this._jsPlumb.div.style.top=e.component.y+e.d.miny+"px"}}),t.Overlays.Custom=function(e){this.type="Custom",l.apply(this,arguments)},n.extend(t.Overlays.Custom,l),t.Overlays.GuideLines=function(){var e=this;e.length=50,e.strokeWidth=5,this.type="GuideLines",a.apply(this,arguments),t.jsPlumbUIComponent.apply(this,arguments),this.draw=function(t,n){var r=t.pointAlongPathFrom(e.loc,e.length/2),o=t.pointOnPath(e.loc),a=i.pointOnLine(r,o,e.length),s=i.perpendicularLineTo(r,a,40),l=i.perpendicularLineTo(a,r,20);return{connector:t,head:r,tail:a,headLine:l,tailLine:s,minX:Math.min(r.x,a.x,l[0].x,l[1].x),minY:Math.min(r.y,a.y,l[0].y,l[1].y),maxX:Math.max(r.x,a.x,l[0].x,l[1].x),maxY:Math.max(r.y,a.y,l[0].y,l[1].y)}}},t.Overlays.Label=function(e){this.labelStyle=e.labelStyle;this.cssClass=null!=this.labelStyle?this.labelStyle.cssClass:null;var n=t.extend({create:function(){return t.createElement("div")}},e);if(t.Overlays.Custom.call(this,n),this.type="Label",this.label=e.label||"",this.labelText=null,this.labelStyle){var i=this.getElement();if(this.labelStyle.font=this.labelStyle.font||"12px sans-serif",i.style.font=this.labelStyle.font,i.style.color=this.labelStyle.color||"black",this.labelStyle.fill&&(i.style.background=this.labelStyle.fill),this.labelStyle.borderWidth>0){var r=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";i.style.border=this.labelStyle.borderWidth+"px solid "+r}this.labelStyle.padding&&(i.style.padding=this.labelStyle.padding)}},n.extend(t.Overlays.Label,t.Overlays.Custom,{cleanup:function(e){e&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(e){this.label=e,this.labelText=null,this.clearCachedDimensions(),this.update(),this.component.repaint()},getDimensions:function(){return this.update(),l.prototype.getDimensions.apply(this,arguments)},update:function(){if("function"===typeof this.label){var e=this.label(this);this.getElement().innerHTML=e.replace(/\r\n/g,"<br/>")}else null==this.labelText&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"<br/>"))},updateFrom:function(e){null!=e.label&&this.setLabel(e.label)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumbUtil,n=e.jsPlumbInstance,i="jtk-group-collapsed",r="jtk-group-expanded",o="[jtk-group-content]",a="elementDraggable",s="stop",l="revert",u="_groupManager",c="_jsPlumbGroup",d="_jsPlumbGroupDrag",h="group:addMember",f="group:removeMember",p="group:add",m="group:remove",v="group:expand",g="group:collapse",y="groupDragStop",b="connectionMoved",_="internal.connectionDetached",w="removeAll",x="orphanAll",k="show",M="hide",C=function(e){var n={},o={},a={},s=this;function l(t,n){var i=e.getContainer(),r=!1;while(!r){if(null==t||t===i)return!1;if(t===n)return!0;t=t.parentNode}}function u(e){delete e.proxies;var n,i=o[e.id];null!=i&&(n=function(t){return t.id===e.id},t.removeWithFunction(i.connections.source,n),t.removeWithFunction(i.connections.target,n),delete o[e.id]),i=a[e.id],null!=i&&(n=function(t){return t.id===e.id},t.removeWithFunction(i.connections.source,n),t.removeWithFunction(i.connections.target,n),delete a[e.id])}function d(t,n){for(var i=t.getEl().querySelectorAll(".jtk-managed"),r=0;r<i.length;r++)e[n?k:M](i[r],!0)}e.bind("connection",(function(n){var i=e.getGroupFor(n.source),r=e.getGroupFor(n.target);null!=i&&null!=r&&i===r?(o[n.connection.id]=i,a[n.connection.id]=i):(null!=i&&(t.suggest(i.connections.source,n.connection),o[n.connection.id]=i),null!=r&&(t.suggest(r.connections.target,n.connection),a[n.connection.id]=r))})),e.bind(_,(function(e){u(e.connection)})),e.bind(b,(function(e){var t=0===e.index?o:a,n=t[e.connection.id];if(n){var i=n.connections[0===e.index?"source":"target"],r=i.indexOf(e.connection);-1!==r&&i.splice(r,1)}})),this.addGroup=function(t){e.addClass(t.getEl(),r),n[t.id]=t,t.manager=this,C(t),e.fire(p,{group:t})},this.addToGroup=function(t,n,i){if(t=this.getGroup(t),t){var r=t.getEl();if(n._isJsPlumbGroup)return;var o=n._jsPlumbGroup;if(o!==t){e.removeFromDragSelection(n);var a=e.getOffset(n,!0),l=t.collapsed?e.getOffset(r,!0):e.getOffset(t.getDragArea(),!0);null!=o&&(o.remove(n,!1,i,!1,t),s.updateConnectionsForGroup(o)),t.add(n,i);var u=function(e,n){var i=0===n?1:0;e.each((function(e){e.setVisible(!1),e.endpoints[i].element._jsPlumbGroup===t?(e.endpoints[i].setVisible(!1),y(e,i,t)):(e.endpoints[n].setVisible(!1),f(e,n,t))}))};t.collapsed&&(u(e.select({source:n}),0),u(e.select({target:n}),1));var c=e.getId(n);e.dragManager.setParent(n,c,r,e.getId(r),a);var d={left:a.left-l.left,top:a.top-l.top};if(e.setPosition(n,d),e.dragManager.revalidateParent(n,c,a),s.updateConnectionsForGroup(t),e.revalidate(c),!i){var p={group:t,el:n,pos:d};o&&(p.sourceGroup=o),e.fire(h,p)}}}},this.removeFromGroup=function(e,t,n){if(e=this.getGroup(e),e){if(e.collapsed){var i=function(n,i){for(var r=0;r<n.length;r++){var o=n[r];if(o.proxies)for(var a=0;a<o.proxies.length;a++)if(null!=o.proxies[a]){var s=o.proxies[a].originalEp.element;(s===t||l(s,t))&&y(o,i,e)}}};i(e.connections.source.slice(),0),i(e.connections.target.slice(),1)}e.remove(t,null,n)}},this.getGroup=function(e){var i=e;if(t.isString(e)&&(i=n[e],null==i))throw new TypeError("No such group ["+e+"]");return i},this.getGroups=function(){var e=[];for(var t in n)e.push(n[t]);return e},this.removeGroup=function(t,i,r,o){t=this.getGroup(t),this.expandGroup(t,!0);var a=t[i?w:x](r,o);return e.remove(t.getEl()),delete n[t.id],delete e._groups[t.id],e.fire(m,{group:t}),a},this.removeAllGroups=function(e,t,i){for(var r in n)this.removeGroup(n[r],e,t,i)};var f=function(t,n,i){var r=t.endpoints[0===n?1:0].element;if(!r[c]||r[c].shouldProxy()||!r[c].collapsed){var o=i.getEl(),a=e.getId(o);e.proxyConnection(t,n,o,a,(function(e,t){return i.getEndpoint(e,t)}),(function(e,t){return i.getAnchor(e,t)}))}};this.collapseGroup=function(t){if(t=this.getGroup(t),null!=t&&!t.collapsed){var n=t.getEl();if(d(t,!1),t.shouldProxy()){var o=function(e,n){for(var i=0;i<e.length;i++){var r=e[i];f(r,n,t)}};o(t.connections.source,0),o(t.connections.target,1)}t.collapsed=!0,e.removeClass(n,r),e.addClass(n,i),e.revalidate(n),e.fire(g,{group:t})}};var y=function(t,n,i){e.unproxyConnection(t,n,e.getId(i.getEl()))};function C(t){for(var n=t.getMembers().slice(),i=[],r=0;r<n.length;r++)Array.prototype.push.apply(i,n[r].querySelectorAll(".jtk-managed"));Array.prototype.push.apply(n,i);var s=e.getConnections({source:n,scope:"*"},!0),l=e.getConnections({target:n,scope:"*"},!0),u={};t.connections.source.length=0,t.connections.target.length=0;var c=function(n){for(var i=0;i<n.length;i++)if(!u[n[i].id]){u[n[i].id]=!0;var r=e.getGroupFor(n[i].source),s=e.getGroupFor(n[i].target);r===t?(s!==t&&t.connections.source.push(n[i]),o[n[i].id]=t):s===t&&(t.connections.target.push(n[i]),a[n[i].id]=t)}};c(s),c(l)}this.expandGroup=function(t,n){if(t=this.getGroup(t),null!=t&&t.collapsed){var o=t.getEl();if(d(t,!0),t.shouldProxy()){var a=function(e,n){for(var i=0;i<e.length;i++){var r=e[i];y(r,n,t)}};a(t.connections.source,0),a(t.connections.target,1)}t.collapsed=!1,e.addClass(o,r),e.removeClass(o,i),e.revalidate(o),this.repaintGroup(t),n||e.fire(v,{group:t})}},this.repaintGroup=function(t){t=this.getGroup(t);for(var n=t.getMembers(),i=0;i<n.length;i++)e.revalidate(n[i])},this.updateConnectionsForGroup=C,this.refreshAllGroups=function(){for(var t in n)C(n[t]),e.dragManager.updateOffsets(e.getId(n[t].getEl()))}},S=function(n,i){var r=this,u=i.el;this.getEl=function(){return u},this.id=i.id||t.uuid(),u._isJsPlumbGroup=!0;var h=this.getDragArea=function(){var e=n.getSelector(u,o);return e&&e.length>0?e[0]:u},p=!0===i.ghost,m=p||!0===i.constrain,v=!1!==i.revert,g=!0===i.orphan,b=!0===i.prune,_=!0===i.dropOverride,w=!1!==i.proxied,x=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(e,t){return i.anchor||"Continuous"},this.getEndpoint=function(e,t){return i.endpoint||["Dot",{radius:10}]},this.collapsed=!1,!1!==i.draggable){var k={drag:function(){for(var e=0;e<x.length;e++)n.draw(x[e])},stop:function(e){n.fire(y,jsPlumb.extend(e,{group:r}))},scope:d};i.dragOptions&&e.jsPlumb.extend(k,i.dragOptions),n.draggable(i.el,k)}!1!==i.droppable&&n.droppable(i.el,{drop:function(e){var t=e.drag.el;if(!t._isJsPlumbGroup){var i=t._jsPlumbGroup;if(i!==r){if(null!=i&&i.overrideDrop(t,r))return;n.getGroupManager().addToGroup(r,t,!1)}}}});var M=function(e,t){for(var n=null==e.nodeType?e:[e],i=0;i<n.length;i++)t(n[i])};function C(e){return e.offsetParent}function S(e,t){var i=C(e),r=n.getSize(i),o=n.getSize(e),a=t[0],s=a+o[0],l=t[1],u=l+o[1];return s>0&&a<r[0]&&u>0&&l<r[1]}function D(e){var t=n.getId(e),i=n.getOffset(e);return e.parentNode.removeChild(e),n.getContainer().appendChild(e),n.setPosition(e,i),E(e),n.dragManager.clearParent(e,t),[t,i]}function L(e){var t=[];function i(e,t,i){var r=null;if(!S(e,[t,i])){var o=e._jsPlumbGroup;b?n.remove(e):r=D(e),o.remove(e)}return r}for(var r=0;r<e.selection.length;r++)t.push(i(e.selection[r][0],e.selection[r][1].left,e.selection[r][1].top));return 1===t.length?t[0]:t}function T(e){var t=n.getId(e);n.revalidate(e),n.dragManager.revalidateParent(e,t)}function E(e){e._katavorioDrag&&((b||g)&&e._katavorioDrag.off(s,L),b||g||!v||(e._katavorioDrag.off(l,T),e._katavorioDrag.setRevert(null)))}function P(e){e._katavorioDrag&&((b||g)&&e._katavorioDrag.on(s,L),m&&e._katavorioDrag.setConstrain(!0),p&&e._katavorioDrag.setUseGhostProxy(!0),b||g||!v||(e._katavorioDrag.on(l,T),e._katavorioDrag.setRevert((function(e,t){return!S(e,t)}))))}this.overrideDrop=function(e,t){return _&&(v||b||g)},this.add=function(e,t){var i=h();M(e,(function(e){if(null!=e._jsPlumbGroup){if(e._jsPlumbGroup===r)return;e._jsPlumbGroup.remove(e,!0,t,!1)}e._jsPlumbGroup=r,x.push(e),n.isAlreadyDraggable(e)&&P(e),e.parentNode!==i&&i.appendChild(e)})),n.getGroupManager().updateConnectionsForGroup(r)},this.remove=function(e,i,o,a,s){M(e,(function(e){if(e._jsPlumbGroup===r){if(delete e._jsPlumbGroup,t.removeWithFunction(x,(function(t){return t===e})),i)try{r.getDragArea().removeChild(e)}catch(l){jsPlumbUtil.log("Could not remove element from Group "+l)}if(E(e),!o){var a={group:r,el:e};s&&(a.targetGroup=s),n.fire(f,a)}}})),a||n.getGroupManager().updateConnectionsForGroup(r)},this.removeAll=function(e,t){for(var i=0,o=x.length;i<o;i++){var a=x[0];r.remove(a,e,t,!0),n.remove(a,!0)}x.length=0,n.getGroupManager().updateConnectionsForGroup(r)},this.orphanAll=function(){for(var e={},t=0;t<x.length;t++){var n=D(x[t]);e[n[0]]=n[1]}return x.length=0,e},this.getMembers=function(){return x},u[c]=this,n.bind(a,function(e){e.el._jsPlumbGroup===this&&P(e.el)}.bind(this)),this.shouldProxy=function(){return w},n.getGroupManager().addGroup(this)};n.prototype.addGroup=function(e){var t=this;if(t._groups=t._groups||{},null!=t._groups[e.id])throw new TypeError("cannot create Group ["+e.id+"]; a Group with that ID exists");if(null!=e.el[c])throw new TypeError("cannot create Group ["+e.id+"]; the given element is already a Group");var n=new S(t,e);return t._groups[n.id]=n,e.collapsed&&this.collapseGroup(n),n},n.prototype.addToGroup=function(e,t,n){var i=function(t){var i=this.getId(t);this.manage(i,t),this.getGroupManager().addToGroup(e,t,n)}.bind(this);if(Array.isArray(t))for(var r=0;r<t.length;r++)i(t[r]);else i(t)},n.prototype.removeFromGroup=function(e,t,n){this.getGroupManager().removeFromGroup(e,t,n),this.getContainer().appendChild(t)},n.prototype.removeGroup=function(e,t,n,i){return this.getGroupManager().removeGroup(e,t,n,i)},n.prototype.removeAllGroups=function(e,t,n){this.getGroupManager().removeAllGroups(e,t,n)},n.prototype.getGroup=function(e){return this.getGroupManager().getGroup(e)},n.prototype.getGroups=function(){return this.getGroupManager().getGroups()},n.prototype.expandGroup=function(e){this.getGroupManager().expandGroup(e)},n.prototype.collapseGroup=function(e){this.getGroupManager().collapseGroup(e)},n.prototype.repaintGroup=function(e){this.getGroupManager().repaintGroup(e)},n.prototype.toggleGroup=function(e){e=this.getGroupManager().getGroup(e),null!=e&&this.getGroupManager()[e.collapsed?"expandGroup":"collapseGroup"](e)},n.prototype.getGroupManager=function(){var e=this[u];return null==e&&(e=this[u]=new C(this)),e},n.prototype.removeGroupManager=function(){delete this[u]},n.prototype.getGroupFor=function(e){if(e=this.getElement(e),e){var t=this.getContainer(),n=!1,i=null;while(!n)null==e||e===t?n=!0:e[c]?(i=e[c],e,n=!0):e=e.parentNode;return i}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i="Straight",r="Arc",o=function(e){this.type="Flowchart",e=e||{},e.stub=null==e.stub?30:e.stub;var n,o=t.Connectors.AbstractConnector.apply(this,arguments),a=null==e.midpoint||isNaN(e.midpoint)?.5:e.midpoint,s=!0===e.alwaysRespectStubs,l=null,u=null,c=null!=e.cornerRadius?e.cornerRadius:0,d=(e.loopbackRadius,function(e){return e<0?-1:0===e?0:1}),h=function(e){return[d(e[2]-e[0]),d(e[3]-e[1])]},f=function(e,t,n,i){if(l!==t||u!==n){var r=null==l?i.sx:l,o=null==u?i.sy:u,a=r===t?"v":"h";l=t,u=n,e.push([r,o,t,n,a])}},p=function(e){return Math.sqrt(Math.pow(e[0]-e[2],2)+Math.pow(e[1]-e[3],2))},m=function(e){var t=[];return t.push.apply(t,e),t},v=function(e,t,n){for(var a,s,l,u=null,d=0;d<t.length-1;d++){if(u=u||m(t[d]),a=m(t[d+1]),s=h(u),l=h(a),c>0&&u[4]!==a[4]){var f=Math.min(p(u),p(a)),v=Math.min(c,f/2);u[2]-=s[0]*v,u[3]-=s[1]*v,a[0]+=l[0]*v,a[1]+=l[1]*v;var g=s[1]===l[0]&&1===l[0]||s[1]===l[0]&&0===l[0]&&s[0]!==l[1]||s[1]===l[0]&&-1===l[0],y=a[1]>u[3]?1:-1,b=a[0]>u[2]?1:-1,_=y===b,w=_&&g||!_&&!g?a[0]:u[2],x=_&&g||!_&&!g?u[3]:a[1];o.addSegment(e,i,{x1:u[0],y1:u[1],x2:u[2],y2:u[3]}),o.addSegment(e,r,{r:v,x1:u[2],y1:u[3],x2:a[0],y2:a[1],cx:w,cy:x,ac:g})}else{var k=u[2]===u[0]?0:u[2]>u[0]?n.lw/2:-n.lw/2,M=u[3]===u[1]?0:u[3]>u[1]?n.lw/2:-n.lw/2;o.addSegment(e,i,{x1:u[0]-k,y1:u[1]-M,x2:u[2]+k,y2:u[3]+M})}u=a}null!=a&&o.addSegment(e,i,{x1:a[0],y1:a[1],x2:a[2],y2:a[3]})};this.midpoint=a,this._compute=function(e,t){n=[],l=null,u=null,null;var i=function(){return[e.startStubX,e.startStubY,e.endStubX,e.endStubY]},r={perpendicular:i,orthogonal:i,opposite:function(t){var n=e,i="x"===t?0:1,r={x:function(){return 1===n.so[i]&&(n.startStubX>n.endStubX&&n.tx>n.startStubX||n.sx>n.endStubX&&n.tx>n.sx)||-1===n.so[i]&&(n.startStubX<n.endStubX&&n.tx<n.startStubX||n.sx<n.endStubX&&n.tx<n.sx)},y:function(){return 1===n.so[i]&&(n.startStubY>n.endStubY&&n.ty>n.startStubY||n.sy>n.endStubY&&n.ty>n.sy)||-1===n.so[i]&&(n.startStubY<n.endStubY&&n.ty<n.startStubY||n.sy<n.endStubY&&n.ty<n.sy)}};return!s&&r[t]()?{x:[(e.sx+e.tx)/2,e.startStubY,(e.sx+e.tx)/2,e.endStubY],y:[e.startStubX,(e.sy+e.ty)/2,e.endStubX,(e.sy+e.ty)/2]}[t]:[e.startStubX,e.startStubY,e.endStubX,e.endStubY]}},c=r[e.anchorOrientation](e.sourceAxis),d="x"===e.sourceAxis?0:1,h="x"===e.sourceAxis?1:0,p=c[d],m=c[h],g=c[d+2],y=c[h+2];f(n,c[0],c[1],e);var b=e.startStubX+(e.endStubX-e.startStubX)*a,_=e.startStubY+(e.endStubY-e.startStubY)*a,w={x:[0,1],y:[1,0]},x={perpendicular:function(t){var n=e,i={x:[[[1,2,3,4],null,[2,1,4,3]],null,[[4,3,2,1],null,[3,4,1,2]]],y:[[[3,2,1,4],null,[2,3,4,1]],null,[[4,1,2,3],null,[1,4,3,2]]]},r={x:[[n.startStubX,n.endStubX],null,[n.endStubX,n.startStubX]],y:[[n.startStubY,n.endStubY],null,[n.endStubY,n.startStubY]]},o={x:[[b,n.startStubY],[b,n.endStubY]],y:[[n.startStubX,_],[n.endStubX,_]]},a={x:[[n.endStubX,n.startStubY]],y:[[n.startStubX,n.endStubY]]},s={x:[[n.startStubX,n.endStubY],[n.endStubX,n.endStubY]],y:[[n.endStubX,n.startStubY],[n.endStubX,n.endStubY]]},l={x:[[n.startStubX,_],[n.endStubX,_],[n.endStubX,n.endStubY]],y:[[b,n.startStubY],[b,n.endStubY],[n.endStubX,n.endStubY]]},u={x:[n.startStubY,n.endStubY],y:[n.startStubX,n.endStubX]},c=w[t][0],d=w[t][1],h=n.so[c]+1,f=n.to[d]+1,p=-1===n.to[d]&&u[t][1]<u[t][0]||1===n.to[d]&&u[t][1]>u[t][0],m=r[t][h][0],v=r[t][h][1],g=i[t][h][f];return n.segment===g[3]||n.segment===g[2]&&p?o[t]:n.segment===g[2]&&v<m?a[t]:n.segment===g[2]&&v>=m||n.segment===g[1]&&!p?l[t]:n.segment===g[0]||n.segment===g[1]&&p?s[t]:void 0},orthogonal:function(t,n,i,r,o){var a=e,s={x:-1===a.so[0]?Math.min(n,r):Math.max(n,r),y:-1===a.so[1]?Math.min(n,r):Math.max(n,r)}[t];return{x:[[s,i],[s,o],[r,o]],y:[[i,s],[o,s],[o,r]]}[t]},opposite:function(n,i,r,a){var s=e,l={x:"y",y:"x"}[n],u={x:"height",y:"width"}[n],c=s["is"+n.toUpperCase()+"GreaterThanStubTimes2"];if(t.sourceEndpoint.elementId===t.targetEndpoint.elementId){var h=r+(1-t.sourceEndpoint.anchor[l])*t.sourceInfo[u]+o.maxStub;return{x:[[i,h],[a,h]],y:[[h,i],[h,a]]}[n]}return!c||1===s.so[d]&&i>a||-1===s.so[d]&&i<a?{x:[[i,_],[a,_]],y:[[b,i],[b,a]]}[n]:1===s.so[d]&&i<a||-1===s.so[d]&&i>a?{x:[[b,s.sy],[b,s.ty]],y:[[s.sx,_],[s.tx,_]]}[n]:void 0}},k=x[e.anchorOrientation](e.sourceAxis,p,m,g,y);if(k)for(var M=0;M<k.length;M++)f(n,k[M][0],k[M][1],e);f(n,c[2],c[3],e),f(n,e.tx,e.ty,e),v(this,n,e)}};t.Connectors.Flowchart=o,n.extend(t.Connectors.Flowchart,t.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil;t.Connectors.AbstractBezierConnector=function(e){e=e||{};var n,i=!1!==e.showLoopback,r=(e.curviness,e.margin||5),o=(e.proximityLimit,e.orientation&&"clockwise"===e.orientation),a=e.loopbackRadius||25;return this._compute=function(e,t){var s=t.sourcePos,l=t.targetPos,u=Math.abs(s[0]-l[0]),c=Math.abs(s[1]-l[1]);if(i&&t.sourceEndpoint.elementId===t.targetEndpoint.elementId){!0;var d=t.sourcePos[0],h=t.sourcePos[1]-r,f=d,p=h-a,m=f-a,v=p-a;u=2*a,c=2*a,e.points[0]=m,e.points[1]=v,e.points[2]=u,e.points[3]=c,n.addSegment(this,"Arc",{loopback:!0,x1:d-m+4,y1:h-v,startAngle:0,endAngle:2*Math.PI,r:a,ac:!o,x2:d-m-4,y2:h-v,cx:f-m,cy:p-v})}else!1,this._computeBezier(e,t,s,l,u,c)},n=t.Connectors.AbstractConnector.apply(this,arguments),n},n.extend(t.Connectors.AbstractBezierConnector,t.Connectors.AbstractConnector);var i=function(e){e=e||{},this.type="Bezier";var n=t.Connectors.AbstractBezierConnector.apply(this,arguments),i=e.curviness||150,r=10;this.getCurviness=function(){return i},this._findControlPoint=function(e,t,n,o,a,s,l){var u=s[0]!==l[0]||s[1]===l[1],c=[];return u?(0===l[0]?c.push(n[0]<t[0]?e[0]+r:e[0]-r):c.push(e[0]+i*l[0]),0===l[1]?c.push(n[1]<t[1]?e[1]+r:e[1]-r):c.push(e[1]+i*s[1])):(0===s[0]?c.push(t[0]<n[0]?e[0]+r:e[0]-r):c.push(e[0]-i*s[0]),0===s[1]?c.push(t[1]<n[1]?e[1]+r:e[1]-r):c.push(e[1]+i*l[1])),c},this._computeBezier=function(e,t,i,r,o,a){var s,l,u=i[0]<r[0]?o:0,c=i[1]<r[1]?a:0,d=i[0]<r[0]?0:o,h=i[1]<r[1]?0:a;s=this._findControlPoint([u,c],i,r,t.sourceEndpoint,t.targetEndpoint,e.so,e.to),l=this._findControlPoint([d,h],r,i,t.targetEndpoint,t.sourceEndpoint,e.to,e.so),n.addSegment(this,"Bezier",{x1:u,y1:c,x2:d,y2:h,cp1x:s[0],cp1y:s[1],cp2x:l[0],cp2y:l[1]})}};t.Connectors.Bezier=i,n.extend(i,t.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=function(e,t,n,i){return e<=n&&i<=t?1:e<=n&&t<=i?2:n<=e&&i>=t?3:4},r=function(e,t,n,i,r,o,a,s,l){return s<=l?[e,t]:1===n?i[3]<=0&&r[3]>=1?[e+(i[2]<.5?-1*o:o),t]:i[2]>=1&&r[2]<=0?[e,t+(i[3]<.5?-1*a:a)]:[e+-1*o,t+-1*a]:2===n?i[3]>=1&&r[3]<=0?[e+(i[2]<.5?-1*o:o),t]:i[2]>=1&&r[2]<=0?[e,t+(i[3]<.5?-1*a:a)]:[e+o,t+-1*a]:3===n?i[3]>=1&&r[3]<=0?[e+(i[2]<.5?-1*o:o),t]:i[2]<=0&&r[2]>=1?[e,t+(i[3]<.5?-1*a:a)]:[e+-1*o,t+-1*a]:4===n?i[3]<=0&&r[3]>=1?[e+(i[2]<.5?-1*o:o),t]:i[2]<=0&&r[2]>=1?[e,t+(i[3]<.5?-1*a:a)]:[e+o,t+-1*a]:void 0},o=function(e){e=e||{},this.type="StateMachine";var n,o=t.Connectors.AbstractBezierConnector.apply(this,arguments),a=e.curviness||10,s=e.margin||5,l=e.proximityLimit||80;e.orientation&&e.orientation;this._computeBezier=function(e,t,u,c,d,h){var f=t.sourcePos[0]<t.targetPos[0]?0:d,p=t.sourcePos[1]<t.targetPos[1]?0:h,m=t.sourcePos[0]<t.targetPos[0]?d:0,v=t.sourcePos[1]<t.targetPos[1]?h:0;0===t.sourcePos[2]&&(f-=s),1===t.sourcePos[2]&&(f+=s),0===t.sourcePos[3]&&(p-=s),1===t.sourcePos[3]&&(p+=s),0===t.targetPos[2]&&(m-=s),1===t.targetPos[2]&&(m+=s),0===t.targetPos[3]&&(v-=s),1===t.targetPos[3]&&(v+=s);var g,y,b,_,w=(f+m)/2,x=(p+v)/2,k=i(f,p,m,v),M=Math.sqrt(Math.pow(m-f,2)+Math.pow(v-p,2));n=r(w,x,k,t.sourcePos,t.targetPos,a,a,M,l),g=n[0],y=n[0],b=n[1],_=n[1],o.addSegment(this,"Bezier",{x1:m,y1:v,x2:f,y2:p,cp1x:g,cp1y:b,cp2x:y,cp2y:_})}};t.Connectors.StateMachine=o,n.extend(o,t.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i="Straight",r=function(e){this.type=i;var n=t.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(e,t){n.addSegment(this,i,{x1:e.sx,y1:e.sy,x2:e.startStubX,y2:e.startStubY}),n.addSegment(this,i,{x1:e.startStubX,y1:e.startStubY,x2:e.endStubX,y2:e.endStubY}),n.addSegment(this,i,{x1:e.endStubX,y1:e.endStubY,x2:e.tx,y2:e.ty})}};t.Connectors.Straight=r,n.extend(r,t.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},r="stroke-dasharray",o="dashstyle",a="linearGradient",s="radialGradient",l="defs",u="fill",c="stop",d="stroke",h="stroke-width",f="style",p="none",m="jsplumb_gradient_",v="strokeWidth",g={svg:"http://www.w3.org/2000/svg"},y=function(e,t){for(var n in t)e.setAttribute(n,""+t[n])},b=function(e,n){return n=n||{},n.version="1.1",n.xmlns=g.svg,t.createElementNS(g.svg,e,null,null,n)},_=function(e){return"position:absolute;left:"+e[0]+"px;top:"+e[1]+"px"},w=function(e){for(var t=e.querySelectorAll(" defs,linearGradient,radialGradient"),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n])},x=function(e,t,n,i,r){var o,h=m+r._jsPlumb.instance.idstamp();w(e),o=n.gradient.offset?b(s,{id:h}):b(a,{id:h,gradientUnits:"userSpaceOnUse"});var f=b(l);e.appendChild(f),f.appendChild(o);for(var p=0;p<n.gradient.stops.length;p++){var v=1===r.segment||2===r.segment?p:n.gradient.stops.length-1-p,g=n.gradient.stops[v][1],y=b(c,{offset:Math.floor(100*n.gradient.stops[p][0])+"%","stop-color":g});o.appendChild(y)}var _=n.stroke?d:u;t.setAttribute(_,"url(#"+h+")")},k=function(e,t,n,a,s){if(t.setAttribute(u,n.fill?n.fill:p),t.setAttribute(d,n.stroke?n.stroke:p),n.gradient?x(e,t,n,a,s):(w(e),t.setAttribute(f,"")),n.strokeWidth&&t.setAttribute(h,n.strokeWidth),n[o]&&n[v]&&!n[r]){var l=-1===n[o].indexOf(",")?" ":",",c=n[o].split(l),m="";c.forEach((function(e){m+=Math.floor(e*n.strokeWidth)+l})),t.setAttribute(r,m)}else n[r]&&t.setAttribute(r,n[r]);for(var g in i)n[g]&&t.setAttribute(i[g],n[g])},M=function(e,t,n){e.childNodes.length>n?e.insertBefore(t,e.childNodes[n]):e.appendChild(t)};n.svg={node:b,attr:y,pos:_};var C=function(e){var i=e.pointerEventsSpec||"all",r={};t.jsPlumbUIComponent.apply(this,e.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var o=e.cssClass+" "+(e.originalArgs[0].cssClass||""),a={style:"",width:0,height:0,"pointer-events":i,position:"absolute"};this.svg=b("svg",a),e.useDivWrapper?(this.canvas=t.createElement("div",{position:"absolute"}),n.sizeElement(this.canvas,0,0,1,1),this.canvas.className=o):(y(this.svg,{class:o}),this.canvas=this.svg),e._jsPlumb.appendElement(this.canvas,e.originalArgs[0].parent),e.useDivWrapper&&this.canvas.appendChild(this.svg);var s=[this.canvas];return this.getDisplayElements=function(){return s},this.appendDisplayElement=function(e){s.push(e)},this.paint=function(t,i,o){if(null!=t){var a,s=[this.x,this.y],l=[this.w,this.h];null!=o&&(o.xmin<0&&(s[0]+=o.xmin),o.ymin<0&&(s[1]+=o.ymin),l[0]=o.xmax+(o.xmin<0?-o.xmin:0),l[1]=o.ymax+(o.ymin<0?-o.ymin:0)),e.useDivWrapper?(n.sizeElement(this.canvas,s[0],s[1],l[0]>0?l[0]:1,l[1]>0?l[1]:1),s[0]=0,s[1]=0,a=_([0,0])):a=_([s[0],s[1]]),r.paint.apply(this,arguments),y(this.svg,{style:a,width:l[0]||1,height:l[1]||1})}},{renderer:r}};n.extend(C,t.jsPlumbUIComponent,{cleanup:function(e){e||null==this.typeId?(this.canvas&&(this.canvas._jsPlumb=null),this.svg&&(this.svg._jsPlumb=null),this.bgCanvas&&(this.bgCanvas._jsPlumb=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.svg=null,this.canvas=null,this.path=null,this.group=null,this._jsPlumb=null):(this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(e){var t=e.getContainer();this.canvas&&null==this.canvas.parentNode&&t.appendChild(this.canvas),this.bgCanvas&&null==this.bgCanvas.parentNode&&t.appendChild(this.bgCanvas)},setVisible:function(e){this.canvas&&(this.canvas.style.display=e?"block":"none")}}),t.ConnectorRenderers.svg=function(e){var n=this,i=C.apply(this,[{cssClass:e._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:e._jsPlumb}]);i.renderer.paint=function(i,r,o){var a=n.getSegments(),s="",l=[0,0];if(o.xmin<0&&(l[0]=-o.xmin),o.ymin<0&&(l[1]=-o.ymin),a.length>0){s=n.getPathData();var u={d:s,transform:"translate("+l[0]+","+l[1]+")","pointer-events":e["pointer-events"]||"visibleStroke"},c=null,d=[n.x,n.y,n.w,n.h];if(i.outlineStroke){var h=i.outlineWidth||1,f=i.strokeWidth+2*h;c=t.extend({},i),delete c.gradient,c.stroke=i.outlineStroke,c.strokeWidth=f,null==n.bgPath?(n.bgPath=b("path",u),t.addClass(n.bgPath,t.connectorOutlineClass),M(n.svg,n.bgPath,0)):y(n.bgPath,u),k(n.svg,n.bgPath,c,d,n)}null==n.path?(n.path=b("path",u),M(n.svg,n.path,i.outlineStroke?1:0)):y(n.path,u),k(n.svg,n.path,i,d,n)}}},n.extend(t.ConnectorRenderers.svg,C);var S=t.SvgEndpoint=function(e){var n=C.apply(this,[{cssClass:e._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:e._jsPlumb}]);n.renderer.paint=function(e){var n=t.extend({},e);n.outlineStroke&&(n.stroke=n.outlineStroke),null==this.node?(this.node=this.makeNode(n),this.svg.appendChild(this.node)):null!=this.updateNode&&this.updateNode(this.node),k(this.svg,this.node,n,[this.x,this.y,this.w,this.h],this),_(this.node,[this.x,this.y])}.bind(this)};n.extend(S,C),t.Endpoints.svg.Dot=function(){t.Endpoints.Dot.apply(this,arguments),S.apply(this,arguments),this.makeNode=function(e){return b("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(e){y(e,{cx:this.w/2,cy:this.h/2,r:this.radius})}},n.extend(t.Endpoints.svg.Dot,[t.Endpoints.Dot,S]),t.Endpoints.svg.Rectangle=function(){t.Endpoints.Rectangle.apply(this,arguments),S.apply(this,arguments),this.makeNode=function(e){return b("rect",{width:this.w,height:this.h})},this.updateNode=function(e){y(e,{width:this.w,height:this.h})}},n.extend(t.Endpoints.svg.Rectangle,[t.Endpoints.Rectangle,S]),t.Endpoints.svg.Image=t.Endpoints.Image,t.Endpoints.svg.Blank=t.Endpoints.Blank,t.Overlays.svg.Label=t.Overlays.Label,t.Overlays.svg.Custom=t.Overlays.Custom;var D=function(e,n){e.apply(this,n),t.jsPlumbUIComponent.apply(this,n),this.isAppendedAtTopLevel=!1;this.path=null,this.paint=function(e,t){if(e.component.svg&&t){null==this.path&&(this.path=b("path",{"pointer-events":"all"}),e.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,e.component),this.canvas=e.component.svg);var r=n&&1===n.length&&n[0].cssClass||"",o=[0,0];t.xmin<0&&(o[0]=-t.xmin),t.ymin<0&&(o[1]=-t.ymin),y(this.path,{d:i(e.d),class:r,stroke:e.stroke?e.stroke:null,fill:e.fill?e.fill:null,transform:"translate("+o[0]+","+o[1]+")"})}};var i=function(e){return isNaN(e.cxy.x)||isNaN(e.cxy.y)?"":"M"+e.hxy.x+","+e.hxy.y+" L"+e.tail[0].x+","+e.tail[0].y+" L"+e.cxy.x+","+e.cxy.y+" L"+e.tail[1].x+","+e.tail[1].y+" L"+e.hxy.x+","+e.hxy.y};this.transfer=function(e){e.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),e.canvas.appendChild(this.path))}},L={cleanup:function(e){null!=this.path&&(e?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(e,t){this.path&&t.canvas&&t.canvas.appendChild(this.path)},setVisible:function(e){null!=this.path&&(this.path.style.display=e?"block":"none")}};n.extend(D,[t.jsPlumbUIComponent,t.Overlays.AbstractOverlay]),t.Overlays.svg.Arrow=function(){D.apply(this,[t.Overlays.Arrow,arguments])},n.extend(t.Overlays.svg.Arrow,[t.Overlays.Arrow,D],L),t.Overlays.svg.PlainArrow=function(){D.apply(this,[t.Overlays.PlainArrow,arguments])},n.extend(t.Overlays.svg.PlainArrow,[t.Overlays.PlainArrow,D],L),t.Overlays.svg.Diamond=function(){D.apply(this,[t.Overlays.Diamond,arguments])},n.extend(t.Overlays.svg.Diamond,[t.Overlays.Diamond,D],L),t.Overlays.svg.GuideLines=function(){var e,n,i=null,r=this;t.Overlays.GuideLines.apply(this,arguments),this.paint=function(t,a){null==i&&(i=b("path"),t.connector.svg.appendChild(i),r.attachListeners(i,t.connector),r.attachListeners(i,r),e=b("path"),t.connector.svg.appendChild(e),r.attachListeners(e,t.connector),r.attachListeners(e,r),n=b("path"),t.connector.svg.appendChild(n),r.attachListeners(n,t.connector),r.attachListeners(n,r));var s=[0,0];a.xmin<0&&(s[0]=-a.xmin),a.ymin<0&&(s[1]=-a.ymin),y(i,{d:o(t.head,t.tail),stroke:"red",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(e,{d:o(t.tailLine[0],t.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(n,{d:o(t.headLine[0],t.headLine[1]),stroke:"green",fill:null,transform:"translate("+s[0]+","+s[1]+")"})};var o=function(e,t){return"M "+e.x+","+e.y+" L"+t.x+","+t.y}},n.extend(t.Overlays.svg.GuideLines,t.Overlays.GuideLines)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=e.Katavorio,r=e.Biltong,o=function(t){var n=t._mottle;return n||(n=t._mottle=new e.Mottle),n},a=function(e,n){n=n||"main";var o="_katavorio_"+n,a=e[o],s=e.getEventManager();return a||(a=new i({bind:s.on,unbind:s.off,getSize:t.getSize,getConstrainingRectangle:function(e){return[e.parentNode.scrollWidth,e.parentNode.scrollHeight]},getPosition:function(t,n){var i=e.getOffset(t,n,t._katavorioDrag?t.offsetParent:null);return[i.left,i.top]},setPosition:function(e,t){e.style.left=t[0]+"px",e.style.top=t[1]+"px"},addClass:t.addClass,removeClass:t.removeClass,intersects:r.intersects,indexOf:function(e,t){return e.indexOf(t)},scope:e.getDefaultScope(),css:{noSelect:e.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}}),a.setZoom(e.getZoom()),e[o]=a,e.bind("zoom",a.setZoom)),a},s=function(e){var t=e.el._jsPlumbDragOptions,n=!0;return t.canDrag&&(n=t.canDrag()),n&&(this.setHoverSuspended(!0),this.select({source:e.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:e.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),n},l=function(e){var t=this.getUIPosition(arguments,this.getZoom());if(null!=t){var n=e.el._jsPlumbDragOptions;this.draw(e.el,t,null,!0),n._dragging&&this.addClass(e.el,"jtk-dragged"),n._dragging=!0}},u=function(e){for(var t,n=e.selection,i=function(n){var i;null!=n[1]&&(t=this.getUIPosition([{el:n[2].el,pos:[n[1].left,n[1].top]}]),i=this.draw(n[2].el,t)),null!=n[0]._jsPlumbDragOptions&&delete n[0]._jsPlumbDragOptions._dragging,this.removeClass(n[0],"jtk-dragged"),this.select({source:n[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:n[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),e.e._drawResult=e.e._drawResult||{c:[],e:[],a:[]},Array.prototype.push.apply(e.e._drawResult.c,i.c),Array.prototype.push.apply(e.e._drawResult.e,i.e),Array.prototype.push.apply(e.e._drawResult.a,i.a),this.getDragManager().dragEnded(n[2].el)}.bind(this),r=0;r<n.length;r++)i(n[r]);this.setHoverSuspended(!1),this.setConnectionBeingDragged(!1)},c=function(e,t){var i=function(i){if(null!=t[i]){if(n.isString(t[i])){var r=t[i].match(/-=/)?-1:1,o=t[i].substring(2);return e[i]+r*o}return t[i]}return e[i]};return[i("left"),i("top")]},d=function(e,t){if(null==t)return[0,0];var n=v(t),i=m(n,0);return[i[e+"X"],i[e+"Y"]]},h=d.bind(this,"page"),f=d.bind(this,"screen"),p=d.bind(this,"client"),m=function(e,t){return e.item?e.item(t):e[t]},v=function(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]},g=function(e){var t={},n=[],i={},r={},o={};this.register=function(a){var s,l=e.getId(a);t[l]||(t[l]=a,n.push(a),i[l]={});var u=function(t){if(t)for(var n=0;n<t.childNodes.length;n++)if(3!==t.childNodes[n].nodeType&&8!==t.childNodes[n].nodeType){var c=jsPlumb.getElement(t.childNodes[n]),d=e.getId(t.childNodes[n],null,!0);if(d&&r[d]&&r[d]>0){s||(s=e.getOffset(a));var h=e.getOffset(c);i[l][d]={id:d,offset:{left:h.left-s.left,top:h.top-s.top}},o[d]=l}u(t.childNodes[n])}};u(a)},this.updateOffsets=function(t,n){if(null!=t){n=n||{};var r,a=jsPlumb.getElement(t),s=e.getId(a),l=i[s];if(l)for(var u in l)if(l.hasOwnProperty(u)){var c=jsPlumb.getElement(u),d=n[u]||e.getOffset(c);if(null==c.offsetParent&&null!=i[s][u])continue;r||(r=e.getOffset(a)),i[s][u]={id:u,offset:{left:d.left-r.left,top:d.top-r.top}},o[u]=s}}},this.endpointAdded=function(n,a){a=a||e.getId(n);var s=document.body,l=n.parentNode;r[a]=r[a]?r[a]+1:1;while(null!=l&&l!==s){var u=e.getId(l,null,!0);if(u&&t[u]){var c=e.getOffset(l);if(null==i[u][a]){var d=e.getOffset(n);i[u][a]={id:a,offset:{left:d.left-c.left,top:d.top-c.top}},o[a]=u}break}l=l.parentNode}},this.endpointDeleted=function(e){if(r[e.elementId]&&(r[e.elementId]--,r[e.elementId]<=0))for(var t in i)i.hasOwnProperty(t)&&i[t]&&(delete i[t][e.elementId],delete o[e.elementId])},this.changeId=function(e,t){i[t]=i[e],i[e]={},o[t]=o[e],o[e]=null},this.getElementsForDraggable=function(e){return i[e]},this.elementRemoved=function(e){var t=o[e];t&&(i[t]&&delete i[t][e],delete o[e])},this.reset=function(){t={},n=[],i={},r={}},this.dragEnded=function(t){if(null!=t.offsetParent){var n=e.getId(t),i=o[n];i&&this.updateOffsets(i)}},this.setParent=function(t,n,r,a,s){var l=o[n];i[a]||(i[a]={});var u=e.getOffset(r),c=s||e.getOffset(t);l&&i[l]&&delete i[l][n],i[a][n]={id:n,offset:{left:c.left-u.left,top:c.top-u.top}},o[n]=a},this.clearParent=function(e,t){var n=o[t];n&&(delete i[n][t],delete o[t])},this.revalidateParent=function(t,n,i){var r=o[n];if(r){var a={};a[n]=i,this.updateOffsets(r,a),e.revalidate(r)}},this.getDragAncestor=function(t){var n=jsPlumb.getElement(t),i=e.getId(n),r=o[i];return r?jsPlumb.getElement(r):null}},y=function(e,t,i){t=n.fastTrim(t),"undefined"!==typeof e.className.baseVal?e.className.baseVal=t:e.className=t;try{var r=e.classList;if(null!=r){while(r.length>0)r.remove(r.item(0));for(var o=0;o<i.length;o++)i[o]&&r.add(i[o])}}catch(a){n.log("JSPLUMB: cannot set class list",a)}},b=function(e){return"undefined"===typeof e.className.baseVal?e.className:e.className.baseVal},_=function(e,t,i){t=null==t?[]:n.isArray(t)?t:t.split(/\s+/),i=null==i?[]:n.isArray(i)?i:i.split(/\s+/);var r=b(e),o=r.split(/\s+/),a=function(e,t){for(var n=0;n<t.length;n++)if(e)-1===o.indexOf(t[n])&&o.push(t[n]);else{var i=o.indexOf(t[n]);-1!==i&&o.splice(i,1)}};a(!0,t),a(!1,i),y(e,o.join(" "),o)};e.jsPlumb.extend(e.jsPlumbInstance.prototype,{headless:!1,pageLocation:h,screenLocation:f,clientLocation:p,getDragManager:function(){return null==this.dragManager&&(this.dragManager=new g(this)),this.dragManager},recalculateOffsets:function(e){this.getDragManager().updateOffsets(e)},createElement:function(e,t,n,i){return this.createElementNS(null,e,t,n,i)},createElementNS:function(e,t,n,i,r){var o,a=null==e?document.createElement(t):document.createElementNS(e,t);for(o in n=n||{},n)a.style[o]=n[o];for(o in i&&(a.className=i),r=r||{},r)a.setAttribute(o,""+r[o]);return a},getAttribute:function(e,t){return null!=e.getAttribute?e.getAttribute(t):null},setAttribute:function(e,t,n){null!=e.setAttribute&&e.setAttribute(t,n)},setAttributes:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])},appendToRoot:function(e){document.body.appendChild(e)},getRenderModes:function(){return["svg"]},getClass:b,addClass:function(e,t){jsPlumb.each(e,(function(e){_(e,t)}))},hasClass:function(e,t){return e=jsPlumb.getElement(e),e.classList?e.classList.contains(t):-1!==b(e).indexOf(t)},removeClass:function(e,t){jsPlumb.each(e,(function(e){_(e,null,t)}))},toggleClass:function(e,t){jsPlumb.hasClass(e,t)?jsPlumb.removeClass(e,t):jsPlumb.addClass(e,t)},updateClasses:function(e,t,n){jsPlumb.each(e,(function(e){_(e,t,n)}))},setClass:function(e,t){null!=t&&jsPlumb.each(e,(function(e){y(e,t,t.split(/\s+/))}))},setPosition:function(e,t){e.style.left=t.left+"px",e.style.top=t.top+"px"},getPosition:function(e){var t=function(t){var n=e.style[t];return n?n.substring(0,n.length-2):0};return{left:t("left"),top:t("top")}},getStyle:function(e,t){return"undefined"!==typeof window.getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.currentStyle[t]},getSelector:function(e,t){var n=null;return n=1===arguments.length?null!=e.nodeType?e:document.querySelectorAll(e):e.querySelectorAll(t),n},getOffset:function(e,t,n){e=jsPlumb.getElement(e),n=n||this.getContainer();var i={left:e.offsetLeft,top:e.offsetTop},r=t||null!=n&&e!==n&&e.offsetParent!==n?e.offsetParent:null,o=function(e){null!=e&&e!==document.body&&(e.scrollTop>0||e.scrollLeft>0)&&(i.left-=e.scrollLeft,i.top-=e.scrollTop)}.bind(this);while(null!=r)i.left+=r.offsetLeft,i.top+=r.offsetTop,o(r),r=t?r.offsetParent:r.offsetParent===n?null:r.offsetParent;if(null!=n&&!t&&(n.scrollTop>0||n.scrollLeft>0)){var a=null!=e.offsetParent?this.getStyle(e.offsetParent,"position"):"static",s=this.getStyle(e,"position");"absolute"!==s&&"fixed"!==s&&"absolute"!==a&&"fixed"!==a&&(i.left-=n.scrollLeft,i.top-=n.scrollTop)}return i},getPositionOnElement:function(e,t,n){var i="undefined"!==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0,width:0,height:0},r=document.body,o=document.documentElement,a=window.pageYOffset||o.scrollTop||r.scrollTop,s=window.pageXOffset||o.scrollLeft||r.scrollLeft,l=o.clientTop||r.clientTop||0,u=o.clientLeft||r.clientLeft||0,c=0,d=0,h=i.top+a-l+c*n,f=i.left+s-u+d*n,p=jsPlumb.pageLocation(e),m=i.width||t.offsetWidth*n,v=i.height||t.offsetHeight*n,g=(p[0]-f)/m,y=(p[1]-h)/v;return[g,y]},getAbsolutePosition:function(e){var t=function(t){var n=e.style[t];if(n)return parseFloat(n.substring(0,n.length-2))};return[t("left"),t("top")]},setAbsolutePosition:function(e,t,n,i){n?this.animate(e,{left:"+="+(t[0]-n[0]),top:"+="+(t[1]-n[1])},i):(e.style.left=t[0]+"px",e.style.top=t[1]+"px")},getSize:function(e){return[e.offsetWidth,e.offsetHeight]},getWidth:function(e){return e.offsetWidth},getHeight:function(e){return e.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(e,t){var i;return e=n.isArray(e)||null!=e.length&&!n.isString(e)?e:[e],Array.prototype.slice.call(e).forEach(function(e){i=this.info(e),i.el&&this._initDraggableIfNecessary(i.el,!0,t,i.id,!0)}.bind(this)),this},snapToGrid:function(e,t,n){var i=[],r=function(e){var r=this.info(e);if(null!=r.el&&r.el._katavorioDrag){var o=r.el._katavorioDrag.snap(t,n);this.revalidate(r.el),i.push([r.el,o])}}.bind(this);if(1===arguments.length||3===arguments.length)r(e,t,n);else{var o=this.getManagedElements();for(var a in o)r(a,arguments[0],arguments[1])}return i},initDraggable:function(e,t,n){a(this,n).draggable(e,t),e._jsPlumbDragOptions=t},destroyDraggable:function(e,t){a(this,t).destroyDraggable(e),e._jsPlumbDragOptions=null,e._jsPlumbRelatedElement=null},unbindDraggable:function(e,t,n,i){a(this,i).destroyDraggable(e,t,n)},setDraggable:function(e,t){return jsPlumb.each(e,function(e){this.isDragSupported(e)&&(this._draggableStates[this.getAttribute(e,"id")]=t,this.setElementDraggable(e,t))}.bind(this))},_draggableStates:{},toggleDraggable:function(e){var t;return jsPlumb.each(e,function(e){var n=this.getAttribute(e,"id");return t=null!=this._draggableStates[n]&&this._draggableStates[n],t=!t,this._draggableStates[n]=t,this.setDraggable(e,t),t}.bind(this)),t},_initDraggableIfNecessary:function(e,t,i,r,o){if(!jsPlumb.headless){var a=null!=t&&t;if(a&&jsPlumb.isDragSupported(e,this)){var c=i||this.Defaults.DragOptions;if(c=jsPlumb.extend({},c),jsPlumb.isAlreadyDraggable(e,this))i.force&&this.initDraggable(e,c);else{var d=jsPlumb.dragEvents.drag,h=jsPlumb.dragEvents.stop,f=jsPlumb.dragEvents.start;this.manage(r,e),c[f]=n.wrap(c[f],s.bind(this)),c[d]=n.wrap(c[d],l.bind(this)),c[h]=n.wrap(c[h],u.bind(this));var p=this.getId(e);this._draggableStates[p]=!0;var m=this._draggableStates[p];c.disabled=null!=m&&!m,this.initDraggable(e,c),this.getDragManager().register(e),o&&this.fire("elementDraggable",{el:e,options:c})}}}},animationSupported:!0,getElement:function(e){return null==e?null:(e="string"===typeof e?e:null==e.tagName&&null!=e.length&&null==e.enctype?e[0]:e,"string"===typeof e?document.getElementById(e):e)},removeElement:function(e){a(this).elementRemoved(e),this.getEventManager().remove(e)},doAnimate:function(e,n,i){i=i||{};var r=this.getOffset(e),o=c(r,n),a=o[0]-r.left,s=o[1]-r.top,l=i.duration||250,u=15,d=l/u,h=u/l*a,f=u/l*s,p=0,m=setInterval((function(){t.setPosition(e,{left:r.left+h*(p+1),top:r.top+f*(p+1)}),null!=i.step&&i.step(p,Math.ceil(d)),p++,p>=d&&(window.clearInterval(m),null!=i.complete&&i.complete())}),u)},destroyDroppable:function(e,t){a(this,t).destroyDroppable(e)},unbindDroppable:function(e,t,n,i){a(this,i).destroyDroppable(e,t,n)},droppable:function(e,t){var i;return e=n.isArray(e)||null!=e.length&&!n.isString(e)?e:[e],t=t||{},t.allowLoopback=!1,Array.prototype.slice.call(e).forEach(function(e){i=this.info(e),i.el&&this.initDroppable(i.el,t)}.bind(this)),this},initDroppable:function(e,t,n){a(this,n).droppable(e,t)},isAlreadyDraggable:function(e){return null!=e._katavorioDrag},isDragSupported:function(e,t){return!0},isDropSupported:function(e,t){return!0},isElementDraggable:function(e){return e=t.getElement(e),e._katavorioDrag&&e._katavorioDrag.isEnabled()},getDragObject:function(e){return e[0].drag.getDragElement()},getDragScope:function(e){return e._katavorioDrag&&e._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(e){return e[0].e},getUIPosition:function(e,t){var n=e[0].el;if(null==n.offsetParent)return null;var i=e[0].finalPos||e[0].pos,r={left:i[0],top:i[1]};if(n._katavorioDrag&&n.offsetParent!==this.getContainer()){var o=this.getOffset(n.offsetParent);r.left+=o.left,r.top+=o.top}return r},setDragFilter:function(e,t,n){e._katavorioDrag&&e._katavorioDrag.setFilter(t,n)},setElementDraggable:function(e,n){e=t.getElement(e),e._katavorioDrag&&e._katavorioDrag.setEnabled(n)},setDragScope:function(e,t){e._katavorioDrag&&e._katavorioDrag.k.setDragScope(e,t)},setDropScope:function(e,t){e._katavorioDrop&&e._katavorioDrop.length>0&&e._katavorioDrop[0].k.setDropScope(e,t)},addToPosse:function(e,n){var i=Array.prototype.slice.call(arguments,1),r=a(this);t.each(e,(function(e){e=[t.getElement(e)],e.push.apply(e,i),r.addToPosse.apply(r,e)}))},setPosse:function(e,n){var i=Array.prototype.slice.call(arguments,1),r=a(this);t.each(e,(function(e){e=[t.getElement(e)],e.push.apply(e,i),r.setPosse.apply(r,e)}))},removeFromPosse:function(e,n){var i=Array.prototype.slice.call(arguments,1),r=a(this);t.each(e,(function(e){e=[t.getElement(e)],e.push.apply(e,i),r.removeFromPosse.apply(r,e)}))},removeFromAllPosses:function(e){var n=a(this);t.each(e,(function(e){n.removeFromAllPosses(t.getElement(e))}))},setPosseState:function(e,n,i){var r=a(this);t.each(e,(function(e){r.setPosseState(t.getElement(e),n,i)}))},dragEvents:{start:"start",stop:"stop",drag:"drag",step:"step",over:"over",out:"out",drop:"drop",complete:"complete",beforeStart:"beforeStart"},animEvents:{step:"step",complete:"complete"},stopDrag:function(e){e._katavorioDrag&&e._katavorioDrag.abort()},addToDragSelection:function(e){var t=this.getElement(e);null==t||!t._isJsPlumbGroup&&null!=t._jsPlumbGroup||a(this).select(e)},removeFromDragSelection:function(e){a(this).deselect(e)},getDragSelection:function(){return a(this).getSelection()},clearDragSelection:function(){a(this).deselectAll()},trigger:function(e,t,n,i){this.getEventManager().trigger(e,t,n,i)},doReset:function(){for(var e in this)0===e.indexOf("_katavorio_")&&this[e].reset()},getEventManager:function(){return o(this)},on:function(e,t,n){return this.getEventManager().on.apply(this,arguments),this},off:function(e,t,n){return this.getEventManager().off.apply(this,arguments),this}});var w=function(e){var t=function(){/complete|loaded|interactive/.test(document.readyState)&&"undefined"!==typeof document.body&&null!=document.body?e():setTimeout(t,9)};t()};w(t.init)}.call("undefined"!==typeof window?window:this)},4718:function(e,t,n){var i=n("b68d"),r=n("d442"),o=n("8f74"),a=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"47ac":function(e,t,n){var i=n("5454");t=e.exports=n("690e")(!1),t.push([e.i,".right-plan{overflow-y:auto}.process-heard{padding:10px 20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.process-heard .el-icon-edit{cursor:pointer}.process-heard .process-title{font-size:18px;margin-right:10px}#flowContainer{height:10000px;position:relative;overflow:auto;height:calc(100vh - 144px)}.container-process{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.labelClass{background-color:#fff;padding:5px;opacity:.7;border:1px solid #346789;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.aLabel{width:30px;height:30px;margin-top:25px;background:url("+i(n("4348"))+") 50% no-repeat;cursor:pointer}.switch{display:inline-block;margin-right:30px}.switch>span{margin-right:10px}.add-condition{color:#66a6e0;font-size:14px;text-align:center;padding:10px 0;border:1px solid #66a6e0;cursor:pointer;position:absolute;width:200px}.condition-container{display:-webkit-box;display:-ms-flexbox;display:flex}.condition-item{margin:30px;padding:20px}.gray-background-class{background-color:#f4f4f8}",""])},"486d":function(e,t,n){
|
|
93
|
+
function t(e,t,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}var n=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},4618:function(e,t){e.exports="object"==typeof window},4650:function(e,t,n){var i=n("c6da"),r=n("244f"),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},"46f3":function(e,t,n){(function(){"undefined"==typeof Math.sgn&&(Math.sgn=function(e){return 0==e?0:e>0?1:-1});var e={subtract:function(e,t){return{x:e.x-t.x,y:e.y-t.y}},dotProduct:function(e,t){return e.x*t.x+e.y*t.y},square:function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},scale:function(e,t){return{x:e.x*t,y:e.y*t}}},n=64,i=Math.pow(2,-n-1),r=function(t,n){for(var i=[],r=a(t,n),o=n.length-1,l=2*o-1,u=s(r,l,i,0),c=e.subtract(t,n[0]),h=e.square(c),f=0,p=0;p<u;p++){c=e.subtract(t,d(n,o,i[p],null,null));var m=e.square(c);m<h&&(h=m,f=i[p])}return c=e.subtract(t,n[o]),m=e.square(c),m<h&&(h=m,f=1),{location:f,distance:h}},o=function(e,t){var n=r(e,t);return{point:d(t,t.length-1,n.location,null,null),location:n.location}},a=function(t,n){for(var i=n.length-1,r=2*i-1,o=[],a=[],s=[],l=[],u=[[1,.6,.3,.1],[.4,.6,.6,.4],[.1,.3,.6,1]],c=0;c<=i;c++)o[c]=e.subtract(n[c],t);for(c=0;c<=i-1;c++)a[c]=e.subtract(n[c+1],n[c]),a[c]=e.scale(a[c],3);for(var d=0;d<=i-1;d++)for(var h=0;h<=i;h++)s[d]||(s[d]=[]),s[d][h]=e.dotProduct(a[d],o[h]);for(c=0;c<=r;c++)l[c]||(l[c]=[]),l[c].y=0,l[c].x=parseFloat(c)/r;for(var f=i,p=i-1,m=0;m<=f+p;m++){var v=Math.max(0,m-p),g=Math.min(m,f);for(c=v;c<=g;c++){var y=m-c;l[c+y].y+=s[y][c]*u[y][c]}}return l},s=function(e,t,i,r){var o,a,h=[],f=[],p=[],m=[];switch(l(e,t)){case 0:return 0;case 1:if(r>=n)return i[0]=(e[0].x+e[t].x)/2,1;if(u(e,t))return i[0]=c(e,t),1;break}d(e,t,.5,h,f),o=s(h,t,p,r+1),a=s(f,t,m,r+1);for(var v=0;v<o;v++)i[v]=p[v];for(v=0;v<a;v++)i[v+o]=m[v];return o+a},l=function(e,t){var n,i,r=0;n=i=Math.sgn(e[0].y);for(var o=1;o<=t;o++)n=Math.sgn(e[o].y),n!=i&&r++,i=n;return r},u=function(e,t){var n,r,o,a,s,l,u,c,d,h,f,p,m,v,g,y,b,_;l=e[0].y-e[t].y,u=e[t].x-e[0].x,c=e[0].x*e[t].y-e[t].x*e[0].y,b=_=0;for(var w=1;w<t;w++){var x=l*e[w].x+u*e[w].y+c;x>b?b=x:x<_&&(_=x)}return f=0,p=1,m=0,v=l,g=u,y=c-b,d=f*g-v*p,h=1/d,r=(p*y-g*m)*h,v=l,g=u,y=c-_,d=f*g-v*p,h=1/d,o=(p*y-g*m)*h,a=Math.min(r,o),s=Math.max(r,o),n=s-a,n<i?1:0},c=function(e,t){var n=1,i=0,r=e[t].x-e[0].x,o=e[t].y-e[0].y,a=e[0].x-0,s=e[0].y-0,l=r*i-o*n,u=1/l,c=(r*s-o*a)*u;return 0+n*c},d=function(e,t,n,i,r){for(var o=[[]],a=0;a<=t;a++)o[0][a]=e[a];for(var s=1;s<=t;s++)for(a=0;a<=t-s;a++)o[s]||(o[s]=[]),o[s][a]||(o[s][a]={}),o[s][a].x=(1-n)*o[s-1][a].x+n*o[s-1][a+1].x,o[s][a].y=(1-n)*o[s-1][a].y+n*o[s-1][a+1].y;if(null!=i)for(a=0;a<=t;a++)i[a]=o[a][0];if(null!=r)for(a=0;a<=t;a++)r[a]=o[t-a][a];return o[t][0]},h={},f=function(e){var t=h[e];if(!t){t=[];var n=function(){return function(t){return Math.pow(t,e)}},i=function(){return function(t){return Math.pow(1-t,e)}},r=function(e){return function(t){return e}},o=function(){return function(e){return e}},a=function(){return function(e){return 1-e}},s=function(e){return function(t){for(var n=1,i=0;i<e.length;i++)n*=e[i](t);return n}};t.push(new n);for(var l=1;l<e;l++){for(var u=[new r(e)],c=0;c<e-l;c++)u.push(new o);for(c=0;c<l;c++)u.push(new a);t.push(new s(u))}t.push(new i),h[e]=t}return t},p=function(e,t){for(var n=f(e.length-1),i=0,r=0,o=0;o<e.length;o++)i+=e[o].x*n[o](t),r+=e[o].y*n[o](t);return{x:i,y:r}},m=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},v=function(e){return e[0].x===e[1].x&&e[0].y===e[1].y},g=function(e,t,n){if(v(e))return{point:e[0],location:t};var i=p(e,t),r=0,o=t,a=n>0?1:-1,s=null;while(r<Math.abs(n))o+=.005*a,s=p(e,o),r+=m(s,i),i=s;return{point:s,location:o}},y=function(e){var t=(new Date).getTime();if(v(e))return 0;var n=p(e,0),i=0,r=0,o=1,a=null;while(r<1)r+=.005*o,a=p(e,r),i+=m(a,n),n=a;return console.log("length",(new Date).getTime()-t),i},b=function(e,t,n){return g(e,t,n).point},_=function(e,t,n){return g(e,t,n).location},w=function(e,t){var n=p(e,t),i=p(e.slice(0,e.length-1),t),r=i.y-n.y,o=i.x-n.x;return 0===r?1/0:Math.atan(r/o)},x=function(e,t,n){var i=g(e,t,n);return i.location>1&&(i.location=1),i.location<0&&(i.location=0),w(e,i.location)},k=function(e,t,n,i){i=null==i?0:i;var r=g(e,t,i),o=w(e,r.location),a=Math.atan(-1/o),s=n/2*Math.sin(a),l=n/2*Math.cos(a);return[{x:r.point.x+l,y:r.point.y+s},{x:r.point.x-l,y:r.point.y-s}]},M=function(e,t,n,i,r){var o=i-t,a=e-n,s=e*(t-i)+t*(n-e),l=L(r),u=[o*l[0][0]+a*l[1][0],o*l[0][1]+a*l[1][1],o*l[0][2]+a*l[1][2],o*l[0][3]+a*l[1][3]+s],c=E.apply(null,u),d=[];if(null!=c)for(var h=0;h<3;h++){var f,p=c[h],m=Math.pow(p,2),v=Math.pow(p,3),g=[l[0][0]*v+l[0][1]*m+l[0][2]*p+l[0][3],l[1][0]*v+l[1][1]*m+l[1][2]*p+l[1][3]];f=n-e!==0?(g[0]-e)/(n-e):(g[1]-t)/(i-t),p>=0&&p<=1&&f>=0&&f<=1&&d.push(g)}return d},C=function(e,t,n,i,r){var o=[];return o.push.apply(o,M(e,t,e+n,t,r)),o.push.apply(o,M(e+n,t,e+n,t+i,r)),o.push.apply(o,M(e+n,t+i,e,t+i,r)),o.push.apply(o,M(e,t+i,e,t,r)),o},S=function(e,t){var n=[];return n.push.apply(n,M(e.x,e.y,e.x+e.w,e.y,t)),n.push.apply(n,M(e.x+e.w,e.y,e.x+e.w,e.y+e.h,t)),n.push.apply(n,M(e.x+e.w,e.y+e.h,e.x,e.y+e.h,t)),n.push.apply(n,M(e.x,e.y+e.h,e.x,e.y,t)),n};function D(e,t){return[-e[0][t]+3*e[1][t]+-3*e[2][t]+e[3][t],3*e[0][t]-6*e[1][t]+3*e[2][t],-3*e[0][t]+3*e[1][t],e[0][t]]}function L(e){return[D(e,"x"),D(e,"y")]}function T(e){return e<0?-1:e>0?1:0}function E(e,t,n,i){var r,o,a=t/e,s=n/e,l=i/e,u=(3*s-Math.pow(a,2))/9,c=(9*a*s-27*l-2*Math.pow(a,3))/54,d=Math.pow(u,3)+Math.pow(c,2),h=[];if(d>=0)r=T(c+Math.sqrt(d))*Math.pow(Math.abs(c+Math.sqrt(d)),1/3),o=T(c-Math.sqrt(d))*Math.pow(Math.abs(c-Math.sqrt(d)),1/3),h[0]=-a/3+(r+o),h[1]=-a/3-(r+o)/2,h[2]=-a/3-(r+o)/2,0!==Math.abs(Math.sqrt(3)*(r-o)/2)&&(h[1]=-1,h[2]=-1);else{var f=Math.acos(c/Math.sqrt(-Math.pow(u,3)));h[0]=2*Math.sqrt(-u)*Math.cos(f/3)-a/3,h[1]=2*Math.sqrt(-u)*Math.cos((f+2*Math.PI)/3)-a/3,h[2]=2*Math.sqrt(-u)*Math.cos((f+4*Math.PI)/3)-a/3}for(var p=0;p<3;p++)(h[p]<0||h[p]>1)&&(h[p]=-1);return h}var P=this.jsBezier={distanceFromCurve:r,gradientAtPoint:w,gradientAtPointAlongCurveFrom:x,nearestPointOnCurve:o,pointOnCurve:p,pointAlongCurveFrom:b,perpendicularToCurveAt:k,locationAlongCurveFrom:_,getLength:y,lineIntersection:M,boxIntersection:C,boundingBoxIntersection:S,version:"0.9.0"};t.jsBezier=P}).call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,n=e.Biltong={version:"0.4.0"};t.Biltong=n;var i=function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=function(e,t,n){return e=i(e)?e:[e.x,e.y],t=i(t)?t:[t.x,t.y],n(e,t)},o=n.gradient=function(e,t){return r(e,t,(function(e,t){return t[0]==e[0]?t[1]>e[1]?1/0:-1/0:t[1]==e[1]?t[0]>e[0]?0:-0:(t[1]-e[1])/(t[0]-e[0])}))},a=(n.normal=function(e,t){return-1/o(e,t)},n.lineLength=function(e,t){return r(e,t,(function(e,t){return Math.sqrt(Math.pow(t[1]-e[1],2)+Math.pow(t[0]-e[0],2))}))},n.quadrant=function(e,t){return r(e,t,(function(e,t){return t[0]>e[0]||t[0]==e[0]?t[1]>e[1]?2:1:t[1]>e[1]?3:4}))}),s=(n.theta=function(e,t){return r(e,t,(function(e,t){var n=o(e,t),i=Math.atan(n),r=a(e,t);return 4!=r&&3!=r||(i+=Math.PI),i<0&&(i+=2*Math.PI),i}))},n.intersects=function(e,t){var n=e.x,i=e.x+e.w,r=e.y,o=e.y+e.h,a=t.x,s=t.x+t.w,l=t.y,u=t.y+t.h;return n<=a&&a<=i&&r<=l&&l<=o||n<=s&&s<=i&&r<=l&&l<=o||n<=a&&a<=i&&r<=u&&u<=o||n<=s&&a<=i&&r<=u&&u<=o||a<=n&&n<=s&&l<=r&&r<=u||a<=i&&i<=s&&l<=r&&r<=u||a<=n&&n<=s&&l<=o&&o<=u||a<=i&&n<=s&&l<=o&&o<=u},n.encloses=function(e,t,n){var i=e.x,r=e.x+e.w,o=e.y,a=e.y+e.h,s=t.x,l=t.x+t.w,u=t.y,c=t.y+t.h,d=function(e,t,i,r){return n?e<=t&&i>=r:e<t&&i>r};return d(i,s,r,l)&&d(o,u,a,c)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),l=[null,[-1,-1],[-1,1],[1,1],[1,-1]];n.pointOnLine=function(e,t,n){var i=o(e,t),r=a(e,t),u=n>0?s[r]:l[r],c=Math.atan(i),d=Math.abs(n*Math.sin(c))*u[1],h=Math.abs(n*Math.cos(c))*u[0];return{x:e.x+h,y:e.y+d}},n.perpendicularLineTo=function(e,t,n){var i=o(e,t),r=Math.atan(-1/i),a=n/2*Math.sin(r),s=n/2*Math.cos(r);return[{x:t.x+s,y:t.y+a},{x:t.x-s,y:t.y-a}]}}.call("undefined"!==typeof window?window:this),function(){"use strict";function e(e,t,n,i,r,o,a,s){return new Touch({target:t,identifier:A(),pageX:n,pageY:i,screenX:r,screenY:o,clientX:a||r,clientY:s||o})}function n(){var e=[];return Array.prototype.push.apply(e,arguments),e.item=function(e){return this[e]},e}function i(t,i,r,o,a,s,l,u){return n(e.apply(null,arguments))}var r=this,o=function(e,t,n){n=n||e.parentNode;for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return!0;return!1},a=function(e){return"string"==typeof e||e.constructor===String?document.getElementById(e):e},s=function(e){return e.srcElement||e.target},l=function(e,t,n,i){if(i){if("undefined"!==typeof e.path&&e.path.indexOf)return{path:e.path,end:e.path.indexOf(n)};var r={path:[],end:-1},o=function(e){r.path.push(e),e===n?r.end=r.path.length-1:null!=e.parentNode&&o(e.parentNode)};return o(t),r}return{path:[t],end:1}},u=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]==t)break;n<e.length&&e.splice(n,1)},c=1,d=function(e,t,n){var i=c++;return e.__ta=e.__ta||{},e.__ta[t]=e.__ta[t]||{},e.__ta[t][i]=n,n.__tauid=i,i},h=function(e,t,n){if(e.__ta&&e.__ta[t]&&delete e.__ta[t][n.__tauid],n.__taExtra){for(var i=0;i<n.__taExtra.length;i++)I(e,n.__taExtra[i][0],n.__taExtra[i][1]);n.__taExtra.length=0}n.__taUnstore&&n.__taUnstore()},f=function(e,t,n,i){if(null==e)return n;var r=e.split(","),a=function(i){a.__tauid=n.__tauid;var u=s(i),c=u,d=l(i,u,t,null!=e);if(-1!=d.end)for(var h=0;h<d.end;h++){c=d.path[h];for(var f=0;f<r.length;f++)o(c,r[f],t)&&n.apply(c,arguments)}};return p(n,i,a),a},p=function(e,t,n){e.__taExtra=e.__taExtra||[],e.__taExtra.push([t,n])},m=function(e,t,n,i){if(w&&k[t]){var r=f(i,e,n,k[t]);j(e,k[t],r,n)}"focus"===t&&null==e.getAttribute("tabindex")&&e.setAttribute("tabindex","1"),j(e,t,f(i,e,n,t),n)},v=function(e,t,n,i){if(null==e.__taSmartClicks){var r=function(t){e.__tad=D(t)},o=function(t){e.__tau=D(t)},a=function(t){if(e.__tad&&e.__tau&&e.__tad[0]===e.__tau[0]&&e.__tad[1]===e.__tau[1])for(var n=0;n<e.__taSmartClicks.length;n++)e.__taSmartClicks[n].apply(s(t),[t])};m(e,"mousedown",r,i),m(e,"mouseup",o,i),m(e,"click",a,i),e.__taSmartClicks=[]}e.__taSmartClicks.push(n),n.__taUnstore=function(){u(e.__taSmartClicks,n)}},g={tap:{touches:1,taps:1},dbltap:{touches:1,taps:2},contextmenu:{touches:2,taps:1}},y=function(e,t){return function(n,i,r,a){if("contextmenu"==i&&x)m(n,i,r,a);else{if(null==n.__taTapHandler){var c=n.__taTapHandler={tap:[],dbltap:[],contextmenu:[],down:!1,taps:0,downSelectors:[]},d=function(i){for(var r=s(i),u=l(i,r,n,null!=a),d=!1,h=0;h<u.end;h++){if(d)return;r=u.path[h];for(var m=0;m<c.downSelectors.length;m++)if(null==c.downSelectors[m]||o(r,c.downSelectors[m],n)){c.down=!0,setTimeout(f,e),setTimeout(p,t),d=!0;break}}},h=function(e){if(c.down){var t,i,r=s(e);c.taps++;var a=O(e);for(var u in g)if(g.hasOwnProperty(u)){var d=g[u];if(d.touches===a&&(1===d.taps||d.taps===c.taps))for(var h=0;h<c[u].length;h++){i=l(e,r,n,null!=c[u][h][1]);for(var f=0;f<i.end;f++)if(t=i.path[f],null==c[u][h][1]||o(t,c[u][h][1],n)){c[u][h][0].apply(t,[e]);break}}}}},f=function(){c.down=!1},p=function(){c.taps=0};m(n,"mousedown",d),m(n,"mouseup",h)}n.__taTapHandler.downSelectors.push(a),n.__taTapHandler[i].push([r,a]),r.__taUnstore=function(){u(n.__taTapHandler[i],r)}}}},b=function(e,t,n,i){for(var r in n.__tamee[e])n.__tamee[e].hasOwnProperty(r)&&n.__tamee[e][r].apply(i,[t])},_=function(){var e=[];return function(t,n,i,r){if(!t.__tamee){t.__tamee={over:!1,mouseenter:[],mouseexit:[]};var a=function(n){var i=s(n);(null==r&&i==t&&!t.__tamee.over||o(i,r,t)&&(null==i.__tamee||!i.__tamee.over))&&(b("mouseenter",n,t,i),i.__tamee=i.__tamee||{},i.__tamee.over=!0,e.push(i))},l=function(n){for(var i=s(n),r=0;r<e.length;r++)i!=e[r]||o(n.relatedTarget||n.toElement,"*",i)||(i.__tamee.over=!1,e.splice(r,1),b("mouseexit",n,t,i))};j(t,"mouseover",f(r,t,a,"mouseover"),a),j(t,"mouseout",f(r,t,l,"mouseout"),l)}i.__taUnstore=function(){delete t.__tamee[n][i.__tauid]},d(t,n,i),t.__tamee[n][i.__tauid]=i}},w="ontouchstart"in document.documentElement||navigator.maxTouchPoints,x="onmousedown"in document.documentElement,k={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},M=function(){var e=-1;if("Microsoft Internet Explorer"==navigator.appName){var t=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(t)&&(e=parseFloat(RegExp.$1))}return e}(),C=M>-1&&M<9,S=function(e,t){if(null==e)return[0,0];var n=P(e),i=E(n,0);return[i[t+"X"],i[t+"Y"]]},D=function(e){return null==e?[0,0]:C?[e.clientX+document.documentElement.scrollLeft,e.clientY+document.documentElement.scrollTop]:S(e,"page")},L=function(e){return S(e,"screen")},T=function(e){return S(e,"client")},E=function(e,t){return e.item?e.item(t):e[t]},P=function(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]},O=function(e){return P(e).length},j=function(e,t,n,i){if(d(e,t,n),i.__tauid=n.__tauid,e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent){var r=t+n.__tauid;e["e"+r]=n,e[r]=function(){e["e"+r]&&e["e"+r](window.event)},e.attachEvent("on"+t,e[r])}},I=function(e,t,n){null!=n&&Y(e,(function(){var i=a(this);if(h(i,t,n),null!=n.__tauid)if(i.removeEventListener)i.removeEventListener(t,n,!1),w&&k[t]&&i.removeEventListener(k[t],n,!1);else if(this.detachEvent){var r=t+n.__tauid;i[r]&&i.detachEvent("on"+t,i[r]),i[r]=null,i["e"+r]=null}n.__taTouchProxy&&I(e,n.__taTouchProxy[1],n.__taTouchProxy[0])}))},Y=function(e,t){if(null!=e){e="undefined"!==typeof Window&&"unknown"!==typeof e.top&&e==e.top?[e]:"string"!==typeof e&&null==e.tagName&&null!=e.length?e:"string"===typeof e?document.querySelectorAll(e):[e];for(var n=0;n<e.length;n++)t.apply(e[n])}},A=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))};r.Mottle=function(e){e=e||{};var t=e.clickThreshold||250,n=e.dblClickThreshold||450,r=new _,o=new y(t,n),s=e.smartClicks,l=function(e,t,n,i){null!=n&&Y(e,(function(){var e=a(this);s&&"click"===t?v(e,t,n,i):"tap"===t||"dbltap"===t||"contextmenu"===t?o(e,t,n,i):"mouseenter"===t||"mouseexit"==t?r(e,t,n,i):m(e,t,n,i)}))};this.remove=function(e){return Y(e,(function(){var e=a(this);if(e.__ta)for(var t in e.__ta)if(e.__ta.hasOwnProperty(t))for(var n in e.__ta[t])e.__ta[t].hasOwnProperty(n)&&I(e,t,e.__ta[t][n]);e.parentNode&&e.parentNode.removeChild(e)})),this},this.on=function(e,t,n,i){var r=arguments[0],o=4==arguments.length?arguments[2]:null,a=arguments[1],s=arguments[arguments.length-1];return l(r,a,s,o),this},this.off=function(e,t,n){return I(e,t,n),this},this.trigger=function(e,t,n,r){var o=x&&("undefined"===typeof MouseEvent||null==n||n.constructor===MouseEvent),s=w&&!x&&k[t]?k[t]:t,l=!(w&&!x&&k[t]),u=D(n),c=L(n),d=T(n);return Y(e,(function(){var e,h=a(this);n=n||{screenX:c[0],screenY:c[1],clientX:d[0],clientY:d[1]};var f=function(e){r&&(e.payload=r)},p={TouchEvent:function(e){var t=i(window,h,0,u[0],u[1],c[0],c[1],d[0],d[1]),n=e.initTouchEvent||e.initEvent;n(s,!0,!0,window,null,c[0],c[1],d[0],d[1],!1,!1,!1,!1,t,t,t,1,0)},MouseEvents:function(e){e.initMouseEvent(s,!0,!0,window,0,c[0],c[1],d[0],d[1],!1,!1,!1,!1,1,h)}};if(document.createEvent){var m=!l&&!o&&w&&k[t],v=m?"TouchEvent":"MouseEvents";e=document.createEvent(v),p[v](e),f(e),h.dispatchEvent(e)}else document.createEventObject&&(e=document.createEventObject(),e.eventType=e.eventName=s,e.screenX=c[0],e.screenY=c[1],e.clientX=d[0],e.clientY=d[1],f(e),h.fireEvent("on"+s,e))})),this}},r.Mottle.consume=function(e,t){e.stopPropagation?e.stopPropagation():e.returnValue=!1,!t&&e.preventDefault&&e.preventDefault()},r.Mottle.pageLocation=D,r.Mottle.setForceTouchEvents=function(e){w=e},r.Mottle.setForceMouseEvents=function(e){x=e},r.Mottle.version="0.8.0",t.Mottle=r.Mottle}.call("undefined"===typeof window?this:window),function(){"use strict";var e=this,n=function(e,t,n){return-1===e.indexOf(t)&&(n?e.unshift(t):e.push(t),!0)},i=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)},r=function(e,t){for(var n=[],i=0;i<e.length;i++)-1===t.indexOf(e[i])&&n.push(e[i]);return n},o=function(e){return null!=e&&("string"===typeof e||e.constructor===String)},a=function(e){var t=e.getBoundingClientRect(),n=document.body,i=document.documentElement,r=window.pageYOffset||i.scrollTop||n.scrollTop,o=window.pageXOffset||i.scrollLeft||n.scrollLeft,a=i.clientTop||n.clientTop||0,s=i.clientLeft||n.clientLeft||0,l=t.top+r-a,u=t.left+o-s;return{top:Math.round(l),left:Math.round(u)}},s=function(e,t,n){n=n||e.parentNode;for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return!0;return!1},l=function(e,t,n){if(s(t,n,e))return t;var i=t.parentNode;while(null!=i&&i!==e){if(s(i,n,e))return i;i=i.parentNode}},u=function(e,t,n){for(var i=null,r=t.getAttribute("katavorio-draggable"),o=null!=r?"[katavorio-draggable='"+r+"'] ":"",a=0;a<e.length;a++)if(i=l(t,n,o+e[a].selector),null!=i){if(e[a].filter){var u=s(n,e[a].filter,i),c=!0===e[a].filterExclude;if(c&&!u||u)return null}return[e[a],i]}return null},c=function(){var e=-1;if("Microsoft Internet Explorer"===navigator.appName){var t=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=n.exec(t)&&(e=parseFloat(RegExp.$1))}return e}(),d=10,h=10,f=c>-1&&c<9,p=9===c,m=function(e){if(f)return[e.clientX+document.documentElement.scrollLeft,e.clientY+document.documentElement.scrollTop];var t=g(e),n=v(t,0);return p?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},v=function(e,t){return e.item?e.item(t):e[t]},g=function(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]},y={delegatedDraggable:"katavorio-delegated-draggable",draggable:"katavorio-draggable",droppable:"katavorio-droppable",drag:"katavorio-drag",selected:"katavorio-drag-selected",active:"katavorio-drag-active",hover:"katavorio-drag-hover",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},b="katavorio-drag-scope",_=["stop","start","drag","drop","over","out","beforeStart"],w=function(){},x=function(){return!0},k=function(e,t,n){for(var i=0;i<e.length;i++)e[i]!=n&&t(e[i])},M=function(e,t,n,i){k(e,(function(e){e.setActive(t),t&&e.updatePosition(),n&&e.setHover(i,t)}))},C=function(e,t){if(null!=e){e=o(e)||null!=e.tagName||null==e.length?[e]:e;for(var n=0;n<e.length;n++)t.apply(e[n],[e[n]])}},S=function(e){e.stopPropagation?(e.stopPropagation(),e.preventDefault()):e.returnValue=!1},D="input,textarea,select,button,option",L=function(e,t,n){var i=e.srcElement||e.target;return!s(i,n.getInputFilterSelector(),t)},T=function(e,t,n,i){this.params=t||{},this.el=e,this.params.addClass(this.el,this._class),this.uuid=I();var r=!0;return this.setEnabled=function(e){r=e},this.isEnabled=function(){return r},this.toggleEnabled=function(){r=!r},this.setScope=function(e){this.scopes=e?e.split(/\s+/):[i]},this.addScope=function(e){var t={};for(var n in C(this.scopes,(function(e){t[e]=!0})),C(e?e.split(/\s+/):[],(function(e){t[e]=!0})),this.scopes=[],t)this.scopes.push(n)},this.removeScope=function(e){var t={};for(var n in C(this.scopes,(function(e){t[e]=!0})),C(e?e.split(/\s+/):[],(function(e){delete t[e]})),this.scopes=[],t)this.scopes.push(n)},this.toggleScope=function(e){var t={};for(var n in C(this.scopes,(function(e){t[e]=!0})),C(e?e.split(/\s+/):[],(function(e){t[e]?delete t[e]:t[e]=!0})),this.scopes=[],t)this.scopes.push(n)},this.setScope(t.scope),this.k=t.katavorio,t.katavorio},E=function(){return!0},P=function(){return!1},O=function(e,t,n,i){this._class=n.draggable;var r=T.apply(this,arguments);this.rightButtonCanDrag=this.params.rightButtonCanDrag;var l,c,f,p,v,g,b=[0,0],_=null,w=null,k=[0,0],C=!1,D=[0,0],O=!1!==this.params.consumeStartEvent,j=this.el,A=this.params.clone,N=(this.params.scroll,!1!==t.multipleDrop),R=!1,H=null,F=[],z=null,$=t.ghostProxyParent;if(l=!0===t.ghostProxy?E:t.ghostProxy&&"function"===typeof t.ghostProxy?t.ghostProxy:function(e,t){return!(!z||!z.useGhostProxy)&&z.useGhostProxy(e,t)},c=t.makeGhostProxy?t.makeGhostProxy:function(e){return z&&z.makeGhostProxy?z.makeGhostProxy(e):e.cloneNode(!0)},t.selector){var B=e.getAttribute("katavorio-draggable");null==B&&(B=""+(new Date).getTime(),e.setAttribute("katavorio-draggable",B)),F.push(t)}var W,V=t.snapThreshold,U=function(e,t,n,i,r){var o=Math.floor(e[0]/t),a=t*o,s=a+t,l=Math.abs(e[0]-a)<=i?a:Math.abs(s-e[0])<=i?s:e[0],u=Math.floor(e[1]/n),c=n*u,d=c+n,h=Math.abs(e[1]-c)<=r?c:Math.abs(d-e[1])<=r?d:e[1];return[l,h]};this.posses=[],this.posseRoles={},this.toGrid=function(e){if(null==this.params.grid)return e;var t=this.params.grid?this.params.grid[0]/2:V||d/2,n=this.params.grid?this.params.grid[1]/2:V||h/2;return U(e,this.params.grid[0],this.params.grid[1],t,n)},this.snap=function(e,t){if(null!=j){e=e||(this.params.grid?this.params.grid[0]:d),t=t||(this.params.grid?this.params.grid[1]:h);var n=this.params.getPosition(j),i=this.params.grid?this.params.grid[0]/2:V,r=this.params.grid?this.params.grid[1]/2:V,o=U(n,e,t,i,r);return this.params.setPosition(j,o),o}},this.setUseGhostProxy=function(e){l=e?E:P};var q=function(e){return!1===t.allowNegative?[Math.max(0,e[0]),Math.max(0,e[1])]:e},G=function(e){W="function"===typeof e?e:e?function(e,t,n,i){return q([Math.max(0,Math.min(n.w-i[0],e[0])),Math.max(0,Math.min(n.h-i[1],e[1]))])}.bind(this):function(e){return q(e)}}.bind(this);G("function"===typeof this.params.constrain?this.params.constrain:this.params.constrain||this.params.containment),this.setConstrain=function(e){G(e)};var K,J=function(e,t,n,i){return null!=z&&z.constrain&&"function"===typeof z.constrain?z.constrain(e,t,n,i):W(e,t,n,i)};this.setRevert=function(e){K=e},this.params.revert&&(K=this.params.revert);var X=function(e){return"function"===typeof e?(e._katavorioId=I(),e._katavorioId):e},Z={},Q=function(e){for(var t in Z){var n=Z[t],i=n[0](e);if(n[1]&&(i=!i),!i)return!1}return!0},ee=this.setFilter=function(t,n){if(t){var i=X(t);Z[i]=[function(n){var i,r=n.srcElement||n.target;return o(t)?i=s(r,t,e):"function"===typeof t&&(i=t(n,e)),i},!1!==n]}};this.addFilter=ee,this.removeFilter=function(e){var t="function"===typeof e?e._katavorioId:e;delete Z[t]};this.clearAllFilters=function(){Z={}},this.canDrag=this.params.canDrag||x;var te,ne=[],ie=[];this.addSelector=function(e){e.selector&&F.push(e)},this.downListener=function(e){if(!e.defaultPrevented){var t=this.rightButtonCanDrag||3!==e.which&&2!==e.button;if(t&&this.isEnabled()&&this.canDrag()){var i=Q(e)&&L(e,this.el,this.k);if(i){if(z=null,H=null,F.length>0){var o=u(F,this.el,e.target||e.srcElement);if(null!=o&&(z=o[0],H=o[1]),null==H)return}else H=this.el;if(A)if(j=H.cloneNode(!0),this.params.addClass(j,y.clonedDrag),j.setAttribute("id",null),j.style.position="absolute",null!=this.params.parent){var s=this.params.getPosition(this.el);j.style.left=s[0]+"px",j.style.top=s[1]+"px",this.params.parent.appendChild(j)}else{var l=a(H);j.style.left=l.left+"px",j.style.top=l.top+"px",document.body.appendChild(j)}else j=H;O&&S(e),b=m(e),j&&j.parentNode&&(D=[j.parentNode.scrollLeft,j.parentNode.scrollTop]),this.params.bind(document,"mousemove",this.moveListener),this.params.bind(document,"mouseup",this.upListener),r.markSelection(this),r.markPosses(this),this.params.addClass(document.body,n.noSelect),ae("beforeStart",{el:this.el,pos:_,e:e,drag:this})}else this.params.consumeFilteredEvents&&S(e)}}}.bind(this),this.moveListener=function(e){if(b){if(!C){var t=ae("start",{el:this.el,pos:_,e:e,drag:this});if(!1!==t){if(!b)return;this.mark(!0),C=!0}else this.abort()}if(b){ie.length=0;var n=m(e),i=n[0]-b[0],o=n[1]-b[1],a=this.params.ignoreZoom?1:r.getZoom();j&&j.parentNode&&(i+=j.parentNode.scrollLeft-D[0],o+=j.parentNode.scrollTop-D[1]),i/=a,o/=a,this.moveBy(i,o,e),r.updateSelection(i,o,this),r.updatePosses(i,o,this)}}}.bind(this),this.upListener=function(e){b&&(b=null,this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.params.removeClass(document.body,n.noSelect),this.unmark(e),r.unmarkSelection(this,e),r.unmarkPosses(this,e),this.stop(e),r.notifyPosseDragStop(this,e),C=!1,ie.length=0,A?(j&&j.parentNode&&j.parentNode.removeChild(j),j=null):K&&!0===K(j,this.params.getPosition(j))&&(this.params.setPosition(j,_),ae("revert",j)))}.bind(this),this.getFilters=function(){return Z},this.abort=function(){null!=b&&this.upListener()},this.getDragElement=function(e){return e?H||this.el:j||this.el};var re={start:[],drag:[],stop:[],over:[],out:[],beforeStart:[],revert:[]};t.events.start&&re.start.push(t.events.start),t.events.beforeStart&&re.beforeStart.push(t.events.beforeStart),t.events.stop&&re.stop.push(t.events.stop),t.events.drag&&re.drag.push(t.events.drag),t.events.revert&&re.revert.push(t.events.revert),this.on=function(e,t){re[e]&&re[e].push(t)},this.off=function(e,t){if(re[e]){for(var n=[],i=0;i<re[e].length;i++)re[e][i]!==t&&n.push(re[e][i]);re[e]=n}};var oe,ae=function(e,t){var n=null;if(z&&z[e])n=z[e](t);else if(re[e])for(var i=0;i<re[e].length;i++)try{var r=re[e][i](t);null!=r&&(n=r)}catch(o){}return n};this.notifyStart=function(e){ae("start",{el:this.el,pos:this.params.getPosition(j),e:e,drag:this})},this.stop=function(e,t){if(t||C){var n=[],i=r.getSelection(),o=this.params.getPosition(j);if(i.length>0)for(var a=0;a<i.length;a++){var s=this.params.getPosition(i[a].el);n.push([i[a].el,{left:s[0],top:s[1]},i[a]])}else n.push([j,{left:o[0],top:o[1]},this]);ae("stop",{el:j,pos:oe||o,finalPos:o,e:e,drag:this,selection:n})}},this.mark=function(e){var t;_=this.params.getPosition(j),w=this.params.getPosition(j,!0),k=[w[0]-_[0],w[1]-_[1]],this.size=this.params.getSize(j),ne=r.getMatchingDroppables(this),M(ne,!0,!1,this),this.params.addClass(j,this.params.dragClass||n.drag),t=this.params.getConstrainingRectangle?this.params.getConstrainingRectangle(j):this.params.getSize(j.parentNode),te={w:t[0],h:t[1]},v=0,g=0,e&&r.notifySelectionDragStart(this)},this.unmark=function(e,i){if(M(ne,!1,!0,this),R&&l(H,j)?(oe=[j.offsetLeft-v,j.offsetTop-g],j.parentNode.removeChild(j),j=H):oe=null,this.params.removeClass(j,this.params.dragClass||n.drag),ne.length=0,R=!1,!i){ie.length>0&&oe&&t.setPosition(H,oe),ie.sort(Y);for(var r=0;r<ie.length;r++){var o=ie[r].drop(this,e);if(!0===o)break}}},this.moveBy=function(e,n,i){ie.length=0;var r=this.toGrid([_[0]+e,_[1]+n]),o=J(r,j,te,this.size);if(l(this.el,j))if(r[0]!==o[0]||r[1]!==o[1]){if(!R){var a=c(H);t.addClass(a,y.ghostProxy),$?($.appendChild(a),f=t.getPosition(H.parentNode,!0),p=t.getPosition(t.ghostProxyParent,!0),v=f[0]-p[0],g=f[1]-p[1]):H.parentNode.appendChild(a),j=a,R=!0}o=r}else R&&(j.parentNode.removeChild(j),j=H,R=!1,f=null,p=null,v=0,g=0);var s={x:o[0],y:o[1],w:this.size[0],h:this.size[1]},u={x:s.x+k[0],y:s.y+k[1],w:s.w,h:s.h},d=null;this.params.setPosition(j,[o[0]+v,o[1]+g]);for(var h=0;h<ne.length;h++){var m={x:ne[h].pagePosition[0],y:ne[h].pagePosition[1],w:ne[h].size[0],h:ne[h].size[1]};this.params.intersects(u,m)&&(N||null==d||d===ne[h].el)&&ne[h].canDrop(this)?(d||(d=ne[h].el),ie.push(ne[h]),ne[h].setHover(this,!0,i)):ne[h].isHover()&&ne[h].setHover(this,!1,i)}ae("drag",{el:this.el,pos:o,e:i,drag:this})},this.destroy=function(){this.params.unbind(this.el,"mousedown",this.downListener),this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.downListener=null,this.upListener=null,this.moveListener=null},this.params.bind(this.el,"mousedown",this.downListener),this.params.handle?ee(this.params.handle,!1):ee(this.params.filter,this.params.filterExclude)},j=function(e,t,n,i){this._class=n.droppable,this.params=t||{},this.rank=t.rank||0,this._activeClass=this.params.activeClass||n.active,this._hoverClass=this.params.hoverClass||n.hover,T.apply(this,arguments);var r=!1;this.allowLoopback=!1!==this.params.allowLoopback,this.setActive=function(e){this.params[e?"addClass":"removeClass"](this.el,this._activeClass)},this.updatePosition=function(){this.position=this.params.getPosition(this.el),this.pagePosition=this.params.getPosition(this.el,!0),this.size=this.params.getSize(this.el)},this.canDrop=this.params.canDrop||function(e){return!0},this.isHover=function(){return r},this.setHover=function(e,t,n){(t||null==this.el._katavorioDragHover||this.el._katavorioDragHover===e.el._katavorio)&&(this.params[t?"addClass":"removeClass"](this.el,this._hoverClass),this.el._katavorioDragHover=t?e.el._katavorio:null,r!==t&&this.params.events[t?"over":"out"]({el:this.el,e:n,drag:e,drop:this}),r=t)},this.drop=function(e,t){return this.params.events["drop"]({drag:e,e:t,drop:this})},this.destroy=function(){this._class=null,this._activeClass=null,this._hoverClass=null,r=null}},I=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)}))},Y=function(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:0},A=function(e){return null==e?null:(e="string"===typeof e||e.constructor===String?document.getElementById(e):e,null==e?null:(e._katavorio=e._katavorio||I(),e))};e.Katavorio=function(e){var t=[],a={};this._dragsByScope={},this._dropsByScope={};var s=1,l=function(e,t){C(e,(function(e){for(var n=0;n<e.scopes.length;n++)t[e.scopes[n]]=t[e.scopes[n]]||[],t[e.scopes[n]].push(e)}))},u=function(t,n){var i=0;return C(t,(function(t){for(var r=0;r<t.scopes.length;r++)if(n[t.scopes[r]]){var o=e.indexOf(n[t.scopes[r]],t);-1!==o&&(n[t.scopes[r]].splice(o,1),i++)}})),i>0},c=(this.getMatchingDroppables=function(e){for(var t=[],n={},i=0;i<e.scopes.length;i++){var r=this._dropsByScope[e.scopes[i]];if(r)for(var o=0;o<r.length;o++)!r[o].canDrop(e)||n[r[o].uuid]||!r[o].allowLoopback&&r[o].el===e.el||(n[r[o].uuid]=!0,t.push(r[o]))}return t.sort(Y),t},function(t){t=t||{};var n,i={events:{}};for(n in e)i[n]=e[n];for(n in t)i[n]=t[n];for(n=0;n<_.length;n++)i.events[_[n]]=t[_[n]]||w;return i.katavorio=this,i}.bind(this)),d=function(e,t){for(var n=0;n<_.length;n++)t[_[n]]&&e.on(_[n],t[_[n]])}.bind(this),h={},f=e.css||{},p=e.scope||b;for(var m in y)h[m]=y[m];for(var m in f)h[m]=f[m];var v=e.inputFilterSelector||D;this.getInputFilterSelector=function(){return v},this.setInputFilterSelector=function(e){return v=e,this},this.draggable=function(t,n){var i=[];return C(t,function(t){if(t=A(t),null!=t)if(null==t._katavorioDrag){var r=c(n);t._katavorioDrag=new O(t,r,h,p),l(t._katavorioDrag,this._dragsByScope),i.push(t._katavorioDrag),e.addClass(t,r.selector?h.delegatedDraggable:h.draggable)}else d(t._katavorioDrag,n)}.bind(this)),i},this.droppable=function(t,n){var i=[];return C(t,function(t){if(t=A(t),null!=t){var r=new j(t,c(n),h,p);t._katavorioDrop=t._katavorioDrop||[],t._katavorioDrop.push(r),l(r,this._dropsByScope),i.push(r),e.addClass(t,h.droppable)}}.bind(this)),i},this.select=function(n){return C(n,(function(){var n=A(this);n&&n._katavorioDrag&&(a[n._katavorio]||(t.push(n._katavorioDrag),a[n._katavorio]=[n,t.length-1],e.addClass(n,h.selected)))})),this},this.deselect=function(n){return C(n,(function(){var n=A(this);if(n&&n._katavorio){var i=a[n._katavorio];if(i){for(var r=[],o=0;o<t.length;o++)t[o].el!==n&&r.push(t[o]);t=r,delete a[n._katavorio],e.removeClass(n,h.selected)}}})),this},this.deselectAll=function(){for(var n in a){var i=a[n];e.removeClass(i[0],h.selected)}t.length=0,a={}},this.markSelection=function(e){k(t,(function(e){e.mark()}),e)},this.markPosses=function(e){e.posses&&C(e.posses,(function(t){e.posseRoles[t]&&L[t]&&k(L[t].members,(function(e){e.mark()}),e)}))},this.unmarkSelection=function(e,n){k(t,(function(e){e.unmark(n)}),e)},this.unmarkPosses=function(e,t){e.posses&&C(e.posses,(function(n){e.posseRoles[n]&&L[n]&&k(L[n].members,(function(e){e.unmark(t,!0)}),e)}))},this.getSelection=function(){return t.slice(0)},this.updateSelection=function(e,n,i){k(t,(function(t){t.moveBy(e,n)}),i)};var g=function(e,t){t.posses&&C(t.posses,(function(n){t.posseRoles[n]&&L[n]&&k(L[n].members,(function(t){e(t)}),t)}))};this.updatePosses=function(e,t,n){g((function(n){n.moveBy(e,t)}),n)},this.notifyPosseDragStop=function(e,t){g((function(e){e.stop(t,!0)}),e)},this.notifySelectionDragStop=function(e,n){k(t,(function(e){e.stop(n,!0)}),e)},this.notifySelectionDragStart=function(e,n){k(t,(function(e){e.notifyStart(n)}),e)},this.setZoom=function(e){s=e},this.getZoom=function(){return s};var x=function(e,t,n,i){C(e,(function(e){u(e,n),e[i](t),l(e,n)}))};C(["set","add","remove","toggle"],function(e){this[e+"Scope"]=function(t,n){x(t._katavorioDrag,n,this._dragsByScope,e+"Scope"),x(t._katavorioDrop,n,this._dropsByScope,e+"Scope")}.bind(this),this[e+"DragScope"]=function(t,n){x(t.constructor===O?t:t._katavorioDrag,n,this._dragsByScope,e+"Scope")}.bind(this),this[e+"DropScope"]=function(t,n){x(t.constructor===j?t:t._katavorioDrop,n,this._dropsByScope,e+"Scope")}.bind(this)}.bind(this)),this.snapToGrid=function(e,t){for(var n in this._dragsByScope)k(this._dragsByScope[n],(function(n){n.snap(e,t)}))},this.getDragsForScope=function(e){return this._dragsByScope[e]},this.getDropsForScope=function(e){return this._dropsByScope[e]};var M=function(e,n,i){if(e=A(e),e[n]){var r=t.indexOf(e[n]);r>=0&&t.splice(r,1),u(e[n],i)&&C(e[n],(function(e){e.destroy()})),delete e[n]}},S=function(e,t,n,i){e=A(e),e[t]&&e[t].off(n,i)};this.elementRemoved=function(e){e["_katavorioDrag"]&&this.destroyDraggable(e),e["_katavorioDrop"]&&this.destroyDroppable(e)},this.destroyDraggable=function(e,t,n){1===arguments.length?M(e,"_katavorioDrag",this._dragsByScope):S(e,"_katavorioDrag",t,n)},this.destroyDroppable=function(e,t,n){1===arguments.length?M(e,"_katavorioDrop",this._dropsByScope):S(e,"_katavorioDrop",t,n)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},t=[],a={},L={}};var L={},T=function(e,t,i){var r=o(t)?t:t.id,a=!!o(t)||!1!==t.active,s=L[r]||function(){var e={name:r,members:[]};return L[r]=e,e}();return C(e,(function(e){if(e._katavorioDrag){if(i&&null!=e._katavorioDrag.posseRoles[s.name])return;n(s.members,e._katavorioDrag),n(e._katavorioDrag.posses,s.name),e._katavorioDrag.posseRoles[s.name]=a}})),s};this.addToPosse=function(e,t){for(var n=[],i=1;i<arguments.length;i++)n.push(T(e,arguments[i]));return 1===n.length?n[0]:n},this.setPosse=function(e,t){for(var n=[],i=1;i<arguments.length;i++)n.push(T(e,arguments[i],!0).name);return C(e,function(e){if(e._katavorioDrag){var t=r(e._katavorioDrag.posses,n),i=[];Array.prototype.push.apply(i,e._katavorioDrag.posses);for(var o=0;o<t.length;o++)this.removeFromPosse(e,t[o])}}.bind(this)),1===n.length?n[0]:n},this.removeFromPosse=function(e,t){if(arguments.length<2)throw new TypeError("No posse id provided for remove operation");for(var n=1;n<arguments.length;n++)t=arguments[n],C(e,(function(e){if(e._katavorioDrag&&e._katavorioDrag.posses){var n=e._katavorioDrag;C(t,(function(e){i(L[e].members,n),i(n.posses,e),delete n.posseRoles[e]}))}}))},this.removeFromAllPosses=function(e){C(e,(function(e){if(e._katavorioDrag&&e._katavorioDrag.posses){var t=e._katavorioDrag;C(t.posses,(function(e){i(L[e].members,t)})),t.posses.length=0,t.posseRoles={}}}))},this.setPosseState=function(e,t,n){var i=L[t];i&&C(e,(function(e){e._katavorioDrag&&e._katavorioDrag.posses&&(e._katavorioDrag.posseRoles[i.name]=n)}))}},e.Katavorio.version="1.0.0",t.Katavorio=e.Katavorio}.call("undefined"!==typeof window?window:this),function(){var e=this;e.jsPlumbUtil=e.jsPlumbUtil||{};var n=e.jsPlumbUtil;function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function r(e){return"[object Number]"===Object.prototype.toString.call(e)}function o(e){return"string"===typeof e}function a(e){return"boolean"===typeof e}function s(e){return null==e}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"[object Date]"===Object.prototype.toString.call(e)}function c(e){return"[object Function]"===Object.prototype.toString.call(e)}function d(e){return c(e)&&null!=e.name&&e.name.length>0}function h(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function f(e){if(o(e))return""+e;if(a(e))return!!e;if(u(e))return new Date(e.getTime());if(c(e))return e;if(i(e)){for(var t=[],n=0;n<e.length;n++)t.push(f(e[n]));return t}if(l(e)){var r={};for(var s in e)r[s]=f(e[s]);return r}return e}function p(e,t,n,r){var s,u,c={},d={};for(n=n||[],r=r||[],u=0;u<n.length;u++)c[n[u]]=!0;for(u=0;u<r.length;u++)d[r[u]]=!0;var h=f(e);for(u in t)if(null==h[u]||d[u])h[u]=t[u];else if(o(t[u])||a(t[u]))c[u]?(s=[],s.push.apply(s,i(h[u])?h[u]:[h[u]]),s.push.apply(s,a(t[u])?t[u]:[t[u]]),h[u]=s):h[u]=t[u];else if(i(t[u]))s=[],i(h[u])&&s.push.apply(s,h[u]),s.push.apply(s,t[u]),h[u]=s;else if(l(t[u]))for(var p in l(h[u])||(h[u]={}),t[u])h[u][p]=t[u][p];return h}function m(e,t,n){if(null!=e){var i=e,r=i;return t.replace(/([^\.])+/g,(function(e,t,i,o){var a=e.match(/([^\[0-9]+){1}(\[)([0-9+])/),s=i+e.length>=o.length,l=function(){return r[a[1]]||function(){return r[a[1]]=[],r[a[1]]}()};if(s)a?l()[a[3]]=n:r[e]=n;else if(a){var u=l();r=u[a[3]]||function(){return u[a[3]]={},u[a[3]]}()}else r=r[e]||function(){return r[e]={},r[e]}();return""})),e}}function v(e,t,n){for(var i=0;i<n.length;i++){var r=n[i][0][n[i][1]].apply(n[i][0],n[i][2]);if(r===t)return r}return e}function g(e,t,n,r){var a=function(e){var n=e.match(/(\${.*?})/g);if(null!=n)for(var i=0;i<n.length;i++){var r=t[n[i].substring(2,n[i].length-1)]||"";null!=r&&(e=e.replace(n[i],r))}return e},s=function(e){if(null!=e){if(o(e))return a(e);if(!c(e)||r||null!=n&&0!==(e.name||"").indexOf(n)){if(i(e)){for(var u=[],d=0;d<e.length;d++)u.push(s(e[d]));return u}if(l(e)){var h={};for(var f in e)h[f]=s(e[f]);return h}return e}return e(t)}};return s(e)}function y(e,t){if(e)for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function b(e,t){var n=y(e,t);return n>-1&&e.splice(n,1),-1!==n}function _(e,t){var n=e.indexOf(t);return n>-1&&e.splice(n,1),-1!==n}function w(e,t,n){-1===y(e,n)&&e.push(t)}function x(e,t,n,i){var r=e[t];return null==r&&(r=[],e[t]=r),r[i?"unshift":"push"](n),r}function k(e,t,n){return-1===e.indexOf(t)&&(n?e.unshift(t):e.push(t),!0)}function M(e,t,n){var r;t=i(t)?t:[t];var o=function(t){var n=t.__proto__;while(null!=n)if(null!=n.prototype){for(var i in n.prototype)n.prototype.hasOwnProperty(i)&&!e.prototype.hasOwnProperty(i)&&(e.prototype[i]=n.prototype[i]);n=n.prototype.__proto__}else n=null};for(r=0;r<t.length;r++){for(var a in t[r].prototype)t[r].prototype.hasOwnProperty(a)&&!e.prototype.hasOwnProperty(a)&&(e.prototype[a]=t[r].prototype[a]);o(t[r])}var s=function(e,n){return function(){for(r=0;r<t.length;r++)t[r].prototype[e]&&t[r].prototype[e].apply(this,arguments);return n.apply(this,arguments)}},l=function(t){for(var n in t)e.prototype[n]=s(n,t[n])};if(arguments.length>2)for(r=2;r<arguments.length;r++)l(arguments[r]);return e}t.jsPlumbUtil=n,n.isArray=i,n.isNumber=r,n.isString=o,n.isBoolean=a,n.isNull=s,n.isObject=l,n.isDate=u,n.isFunction=c,n.isNamedFunction=d,n.isEmpty=h,n.clone=f,n.merge=p,n.replace=m,n.functionChain=v,n.populate=g,n.findWithFunction=y,n.removeWithFunction=b,n.remove=_,n.addWithFunction=w,n.addToList=x,n.suggest=k,n.extend=M;for(var C=[],S=0;S<256;S++)C[S]=(S<16?"0":"")+S.toString(16);function D(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return C[255&e]+C[e>>8&255]+C[e>>16&255]+C[e>>24&255]+"-"+C[255&t]+C[t>>8&255]+"-"+C[t>>16&15|64]+C[t>>24&255]+"-"+C[63&n|128]+C[n>>8&255]+"-"+C[n>>16&255]+C[n>>24&255]+C[255&i]+C[i>>8&255]+C[i>>16&255]+C[i>>24&255]}function L(e){if(null==e)return null;var t=e.replace(/^\s\s*/,""),n=/\s/,i=t.length;while(n.test(t.charAt(--i)));return t.slice(0,i+1)}function T(e,t){e=null==e.length||"string"===typeof e?[e]:e;for(var n=0;n<e.length;n++)t(e[n])}function E(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t(e[i]));return n}function P(e,t,n){n=n||"parent";var i=function(e){return e?t[e]:null},r=function(e){return e?i(e[n]):null},o=function(e,t){if(null==e)return t;var n=["anchor","anchors","cssClass","connector","paintStyle","hoverPaintStyle","endpoint","endpoints"];"override"===t.mergeStrategy&&Array.prototype.push.apply(n,["events","overlays"]);var i=p(e,t,[],n);return o(r(e),i)},a=function(e){if(null==e)return{};if("string"===typeof e)return i(e);if(e.length){var t=!1,n=0,r=void 0;while(!t&&n<e.length)r=a(e[n]),r?t=!0:n++;return r}},s=a(e);return s?o(r(s),s):{}}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(n.logEnabled&&"undefined"!==typeof console)try{var i=arguments[arguments.length-1];console.log(i)}catch(r){}}function j(e,t,n){return function(){var i=null;try{null!=t&&(i=t.apply(this,arguments))}catch(r){O("jsPlumb function failed : "+r)}if(null!=e&&(null==n||i!==n))try{i=e.apply(this,arguments)}catch(r){O("wrapped function failed : "+r)}return i}}n.uuid=D,n.fastTrim=L,n.each=T,n.map=E,n.mergeWithParents=P,n.logEnabled=!0,n.log=O,n.wrap=j;var I=function(){function e(){var e=this;this._listeners={},this.eventsSuspended=!1,this.tick=!1,this.eventsToDieOn={ready:!0},this.queue=[],this.bind=function(t,n,i){var r=function(t){x(e._listeners,t,n,i),n.__jsPlumb=n.__jsPlumb||{},n.__jsPlumb[D()]=t};if("string"===typeof t)r(t);else if(null!=t.length)for(var o=0;o<t.length;o++)r(t[o]);return e},this.fire=function(e,t,n){if(this.tick)this.queue.unshift(arguments);else{if(this.tick=!0,!this.eventsSuspended&&this._listeners[e]){var i=this._listeners[e].length,r=0,o=!1,a=null;if(!this.shouldFireEvent||this.shouldFireEvent(e,t,n))while(!o&&r<i&&!1!==a){if(this.eventsToDieOn[e])this._listeners[e][r].apply(this,[t,n]);else try{a=this._listeners[e][r].apply(this,[t,n])}catch(s){O("jsPlumb: fire failed for event "+e+" : "+s)}r++,null!=this._listeners&&null!=this._listeners[e]||(o=!0)}}this.tick=!1,this._drain()}return this},this._drain=function(){var t=e.queue.pop();t&&e.fire.apply(e,t)},this.unbind=function(e,t){if(0===arguments.length)this._listeners={};else if(1===arguments.length){if("string"===typeof e)delete this._listeners[e];else if(e.__jsPlumb){var n=void 0;for(var i in e.__jsPlumb)n=e.__jsPlumb[i],_(this._listeners[n]||[],e)}}else 2===arguments.length&&_(this._listeners[e]||[],t);return this},this.getListener=function(t){return e._listeners[t]},this.setSuspendEvents=function(t){e.eventsSuspended=t},this.isSuspendEvents=function(){return e.eventsSuspended},this.silently=function(t){e.setSuspendEvents(!0);try{t()}catch(n){O("Cannot execute silent function "+n)}e.setSuspendEvents(!1)},this.cleanupListeners=function(){for(var t in e._listeners)e._listeners[t]=null}}return e}();function Y(e,t,n){var i=[e[0]-t[0],e[1]-t[1]],r=Math.cos(n/360*Math.PI*2),o=Math.sin(n/360*Math.PI*2);return[i[0]*r-i[1]*o+t[0],i[1]*r+i[0]*o+t[1],r,o]}function A(e,t){var n=Y(e,[0,0],t);return[Math.round(n[0]),Math.round(n[1])]}n.EventGenerator=I,n.rotatePoint=Y,n.rotateAnchorOrientation=A}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this;e.jsPlumbUtil.matchesSelector=function(e,t,n){n=n||e.parentNode;for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return!0;return!1},e.jsPlumbUtil.consume=function(e,t){e.stopPropagation?e.stopPropagation():e.returnValue=!1,!t&&e.preventDefault&&e.preventDefault()},e.jsPlumbUtil.sizeElement=function(e,t,n,i,r){e&&(e.style.height=r+"px",e.height=r,e.style.width=i+"px",e.width=i,e.style.left=t+"px",e.style.top=n+"px")}}.call("undefined"!==typeof window?window:this),function(){var e={deriveAnchor:function(e,t,n,i){return{top:["TopRight","TopLeft"],bottom:["BottomRight","BottomLeft"]}[e][t]}},t=this,n=function(e,t){this.count=0,this.instance=e,this.lists={},this.options=t||{},this.instance.addList=function(e,t){return this.listManager.addList(e,t)},this.instance.removeList=function(e){this.listManager.removeList(e)},this.instance.bind("manageElement",function(e){for(var t=this.instance.getSelector(e.el,"[jtk-scrollable-list]"),n=0;n<t.length;n++)this.addList(t[n])}.bind(this)),this.instance.bind("unmanageElement",(function(e){this.removeList(e.el)})),this.instance.bind("connection",function(e,t){null==t&&(this._maybeUpdateParentList(e.source),this._maybeUpdateParentList(e.target))}.bind(this))};t.jsPlumbListManager=n,n.prototype={addList:function(t,n){var r=this.instance.extend({},e);this.instance.extend(r,this.options),n=this.instance.extend(r,n||{});var o=[this.instance.getInstanceIndex(),this.count++].join("_");this.lists[o]=new i(this.instance,t,n,o)},removeList:function(e){var t=this.lists[e._jsPlumbList];t&&(t.destroy(),delete this.lists[e._jsPlumbList])},_maybeUpdateParentList:function(e){var t=e.parentNode,n=this.instance.getContainer();while(null!=t&&t!==n){if(null!=t._jsPlumbList&&null!=this.lists[t._jsPlumbList])return void t._jsPlumbScrollHandler();t=t.parentNode}}};var i=function(e,t,n,i){function r(e,t,i,r){return n.anchor?n.anchor:n.deriveAnchor(e,t,i,r)}function o(e,t,i,r){return n.deriveEndpoint?n.deriveEndpoint(e,t,i,r):n.endpoint?n.endpoint:i.type}function a(t){var n=t.parentNode,i=e.getContainer();while(null!=n&&n!==i){if(e.hasClass(n,"jtk-managed"))return void e.recalculateOffsets(n);n=n.parentNode}}t["_jsPlumbList"]=i;var s=function(n){for(var i=e.getSelector(t,".jtk-managed"),s=e.getId(t),l=0;l<i.length;l++){if(i[l].offsetTop<t.scrollTop)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],e.select({source:i[l]}).each((function(n){e.proxyConnection(n,0,t,s,(function(){return o("top",0,n.endpoints[0],n)}),(function(){return r("top",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),e.select({target:i[l]}).each((function(n){e.proxyConnection(n,1,t,s,(function(){return o("top",1,n.endpoints[1],n)}),(function(){return r("top",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l].offsetTop+i[l].offsetHeight>t.scrollTop+t.offsetHeight)i[l]._jsPlumbProxies||(i[l]._jsPlumbProxies=i[l]._jsPlumbProxies||[],e.select({source:i[l]}).each((function(n){e.proxyConnection(n,0,t,s,(function(){return o("bottom",0,n.endpoints[0],n)}),(function(){return r("bottom",0,n.endpoints[0],n)})),i[l]._jsPlumbProxies.push([n,0])})),e.select({target:i[l]}).each((function(n){e.proxyConnection(n,1,t,s,(function(){return o("bottom",1,n.endpoints[1],n)}),(function(){return r("bottom",1,n.endpoints[1],n)})),i[l]._jsPlumbProxies.push([n,1])})));else if(i[l]._jsPlumbProxies){for(var u=0;u<i[l]._jsPlumbProxies.length;u++)e.unproxyConnection(i[l]._jsPlumbProxies[u][0],i[l]._jsPlumbProxies[u][1],s);delete i[l]._jsPlumbProxies}e.revalidate(i[l])}a(t)};e.setAttribute(t,"jtk-scrollable-list","true"),t._jsPlumbScrollHandler=s,e.on(t,"scroll",s),s(),this.destroy=function(){e.off(t,"scroll",s),delete t._jsPlumbScrollHandler;for(var n=e.getSelector(t,".jtk-managed"),i=e.getId(t),r=0;r<n.length;r++)if(n[r]._jsPlumbProxies){for(var o=0;o<n[r]._jsPlumbProxies.length;o++)e.unproxyConnection(n[r]._jsPlumbProxies[o][0],n[r]._jsPlumbProxies[o][1],i);delete n[r]._jsPlumbProxies}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,n=e.jsPlumbUtil,i=function(e){if(e._jsPlumb.paintStyle&&e._jsPlumb.hoverPaintStyle){var t={};p.extend(t,e._jsPlumb.paintStyle),p.extend(t,e._jsPlumb.hoverPaintStyle),delete e._jsPlumb.hoverPaintStyle,t.gradient&&e._jsPlumb.paintStyle.fill&&delete t.gradient,e._jsPlumb.hoverPaintStyle=t}},r=["tap","dbltap","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu"],o=function(e,t,n,i){var r=e.getAttachedElements();if(r)for(var o=0,a=r.length;o<a;o++)i&&i===r[o]||r[o].setHover(t,!0,n)},a=function(e){return null==e?null:e.split(" ")},s=function(e,t,n){for(var i in t)e[i]=n},l=function(e,t,i){if(e.getDefaultType){var r=e.getTypeDescriptor(),o={},a=e.getDefaultType(),l=n.merge({},a);s(o,a,"__default");for(var u=0,c=e._jsPlumb.types.length;u<c;u++){var d=e._jsPlumb.types[u];if("__default"!==d){var h=e._jsPlumb.instance.getType(d,r);if(null!=h){var f=["anchor","anchors","connector","paintStyle","hoverPaintStyle","endpoint","endpoints","connectorOverlays","connectorStyle","connectorHoverStyle","endpointStyle","endpointHoverStyle"],p=[];"override"===h.mergeStrategy?Array.prototype.push.apply(f,["events","overlays","cssClass"]):p.push("cssClass"),l=n.merge(l,h,p,f),s(o,h,d)}}}t&&(l=n.populate(l,t,"_")),e.applyType(l,i,o),i||e.repaint()}},u=e.jsPlumbUIComponent=function(e){n.EventGenerator.apply(this,arguments);var t=this,i=arguments,r=t.idPrefix,o=r+(new Date).getTime();this._jsPlumb={instance:e._jsPlumb,parameters:e.parameters||{},paintStyle:null,hoverPaintStyle:null,paintStyleInUse:null,hover:!1,beforeDetach:e.beforeDetach,beforeDrop:e.beforeDrop,overlayPlacements:[],hoverClass:e.hoverClass||e._jsPlumb.Defaults.HoverClass,types:[],typeCache:{}},this.cacheTypeItem=function(e,t,n){this._jsPlumb.typeCache[n]=this._jsPlumb.typeCache[n]||{},this._jsPlumb.typeCache[n][e]=t},this.getCachedTypeItem=function(e,t){return this._jsPlumb.typeCache[t]?this._jsPlumb.typeCache[t][e]:null},this.getId=function(){return o};var a=e.overlays||[],s={};if(this.defaultOverlayKeys){for(var l=0;l<this.defaultOverlayKeys.length;l++)Array.prototype.push.apply(a,this._jsPlumb.instance.Defaults[this.defaultOverlayKeys[l]]||[]);for(l=0;l<a.length;l++){var u=p.convertToFullOverlaySpec(a[l]);s[u[1].id]=u}}var c={overlays:s,parameters:e.parameters||{},scope:e.scope||this._jsPlumb.instance.getDefaultScope()};if(this.getDefaultType=function(){return c},this.appendToDefaultType=function(e){for(var t in e)c[t]=e[t]},e.events)for(var d in e.events)t.bind(d,e.events[d]);this.clone=function(){var e=Object.create(this.constructor.prototype);return this.constructor.apply(e,i),e}.bind(this),this.isDetachAllowed=function(e){var t=!0;if(this._jsPlumb.beforeDetach)try{t=this._jsPlumb.beforeDetach(e)}catch(i){n.log("jsPlumb: beforeDetach callback failed",i)}return t},this.isDropAllowed=function(e,t,i,r,o,a,s){var l=this._jsPlumb.instance.checkCondition("beforeDrop",{sourceId:e,targetId:t,scope:i,connection:r,dropEndpoint:o,source:a,target:s});if(this._jsPlumb.beforeDrop)try{l=this._jsPlumb.beforeDrop({sourceId:e,targetId:t,scope:i,connection:r,dropEndpoint:o,source:a,target:s})}catch(u){n.log("jsPlumb: beforeDrop callback failed",u)}return l};var h=[];this.setListenerComponent=function(e){for(var t=0;t<h.length;t++)h[t][3]=e}},c=function(e,t){var n=e._jsPlumb.types[t],i=e._jsPlumb.instance.getType(n,e.getTypeDescriptor());null!=i&&i.cssClass&&e.canvas&&e._jsPlumb.instance.removeClass(e.canvas,i.cssClass)};n.extend(e.jsPlumbUIComponent,n.EventGenerator,{getParameter:function(e){return this._jsPlumb.parameters[e]},setParameter:function(e,t){this._jsPlumb.parameters[e]=t},getParameters:function(){return this._jsPlumb.parameters},setParameters:function(e){this._jsPlumb.parameters=e},getClass:function(){return p.getClass(this.canvas)},hasClass:function(e){return p.hasClass(this.canvas,e)},addClass:function(e){p.addClass(this.canvas,e)},removeClass:function(e){p.removeClass(this.canvas,e)},updateClasses:function(e,t){p.updateClasses(this.canvas,e,t)},setType:function(e,t,n){this.clearTypes(),this._jsPlumb.types=a(e)||[],l(this,t,n)},getType:function(){return this._jsPlumb.types},reapplyTypes:function(e,t){l(this,e,t)},hasType:function(e){return-1!==this._jsPlumb.types.indexOf(e)},addType:function(e,t,n){var i=a(e),r=!1;if(null!=i){for(var o=0,s=i.length;o<s;o++)this.hasType(i[o])||(this._jsPlumb.types.push(i[o]),r=!0);r&&l(this,t,n)}},removeType:function(e,t,n){var i=a(e),r=!1,o=function(e){var t=this._jsPlumb.types.indexOf(e);return-1!==t&&(c(this,t),this._jsPlumb.types.splice(t,1),!0)}.bind(this);if(null!=i){for(var s=0,u=i.length;s<u;s++)r=o(i[s])||r;r&&l(this,t,n)}},clearTypes:function(e,t){for(var n=this._jsPlumb.types.length,i=0;i<n;i++)c(this,0),this._jsPlumb.types.splice(0,1);l(this,e,t)},toggleType:function(e,t,n){var i=a(e);if(null!=i){for(var r=0,o=i.length;r<o;r++){var s=this._jsPlumb.types.indexOf(i[r]);-1!==s?(c(this,s),this._jsPlumb.types.splice(s,1)):this._jsPlumb.types.push(i[r])}l(this,t,n)}},applyType:function(e,t){if(this.setPaintStyle(e.paintStyle,t),this.setHoverPaintStyle(e.hoverPaintStyle,t),e.parameters)for(var n in e.parameters)this.setParameter(n,e.parameters[n]);this._jsPlumb.paintStyleInUse=this.getPaintStyle()},setPaintStyle:function(e,t){this._jsPlumb.paintStyle=e,this._jsPlumb.paintStyleInUse=this._jsPlumb.paintStyle,i(this),t||this.repaint()},getPaintStyle:function(){return this._jsPlumb.paintStyle},setHoverPaintStyle:function(e,t){this._jsPlumb.hoverPaintStyle=e,i(this),t||this.repaint()},getHoverPaintStyle:function(){return this._jsPlumb.hoverPaintStyle},destroy:function(e){(e||null==this.typeId)&&(this.cleanupListeners(),this.clone=null,this._jsPlumb=null)},isHover:function(){return this._jsPlumb.hover},setHover:function(e,t,n){if(this._jsPlumb&&!this._jsPlumb.instance.currentlyDragging&&!this._jsPlumb.instance.isHoverSuspended()){this._jsPlumb.hover=e;var i=e?"addClass":"removeClass";null!=this.canvas&&(null!=this._jsPlumb.instance.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.instance.hoverClass),null!=this._jsPlumb.hoverClass&&this._jsPlumb.instance[i](this.canvas,this._jsPlumb.hoverClass)),null!=this._jsPlumb.hoverPaintStyle&&(this._jsPlumb.paintStyleInUse=e?this._jsPlumb.hoverPaintStyle:this._jsPlumb.paintStyle,this._jsPlumb.instance.isSuspendDrawing()||(n=n||jsPlumbUtil.uuid(),this.repaint({timestamp:n,recalc:!1}))),this.getAttachedElements&&!t&&o(this,e,jsPlumbUtil.uuid(),this)}}});var d=0,h=function(){var e=d+1;return d++,e},f=e.jsPlumbInstance=function(t){this.version="2.15.6",this.Defaults={Anchor:"Bottom",Anchors:[null,null],ConnectionsDetachable:!0,ConnectionOverlays:[],Connector:"Bezier",Container:null,DoNotThrowErrors:!1,DragOptions:{},DropOptions:{},Endpoint:"Dot",EndpointOverlays:[],Endpoints:[null,null],EndpointStyle:{fill:"#456"},EndpointStyles:[null,null],EndpointHoverStyle:null,EndpointHoverStyles:[null,null],HoverPaintStyle:null,LabelStyle:{color:"black"},ListStyle:{},LogEnabled:!1,Overlays:[],MaxConnections:1,PaintStyle:{"stroke-width":4,stroke:"#456"},ReattachConnections:!1,RenderMode:"svg",Scope:"jsPlumb_DefaultScope"},t&&p.extend(this.Defaults,t),this.logEnabled=this.Defaults.LogEnabled,this._connectionTypes={},this._endpointTypes={},n.EventGenerator.apply(this);var i=this,o=h(),a=i.bind,s={},l=1,c=function(e){if(null==e)return null;if(3===e.nodeType||8===e.nodeType)return{el:e,text:!0};var t=i.getElement(e);return{el:t,id:n.isString(e)&&null==t?e:W(t)}};for(var d in this.getInstanceIndex=function(){return o},this.setZoom=function(e,t){return l=e,i.fire("zoom",l),t&&i.repaintEverything(),!0},this.getZoom=function(){return l},this.Defaults)s[d]=this.Defaults[d];var f,m=[];this.unbindContainer=function(){if(null!=f&&m.length>0)for(var e=0;e<m.length;e++)i.off(f,m[e][0],m[e][1])},this.setContainer=function(e){this.unbindContainer(),e=this.getElement(e),this.select().each((function(t){t.moveParent(e)})),this.selectEndpoints().each((function(t){t.moveParent(e)}));var t=f;f=e,m.length=0;for(var n={endpointclick:"endpointClick",endpointdblclick:"endpointDblClick"},o=function(e,t,r){var o=t.srcElement||t.target,a=(o&&o.parentNode?o.parentNode._jsPlumb:null)||(o?o._jsPlumb:null)||(o&&o.parentNode&&o.parentNode.parentNode?o.parentNode.parentNode._jsPlumb:null);if(a){a.fire(e,a,t);var s=r&&n[r+e]||e;i.fire(s,a.component||a,t)}},a=function(e,t,n){m.push([e,n]),i.on(f,e,t,n)},s=function(e){a(e,".jtk-connector",(function(t){o(e,t)})),a(e,".jtk-endpoint",(function(t){o(e,t,"endpoint")})),a(e,".jtk-overlay",(function(t){o(e,t)}))},l=0;l<r.length;l++)s(r[l]);for(var u in w){var c=w[u].el;c.parentNode===t&&(t.removeChild(c),f.appendChild(c))}},this.getContainer=function(){return f},this.bind=function(e,t){"ready"===e&&g?t():a.apply(i,[e,t])},i.importDefaults=function(e){for(var t in e)i.Defaults[t]=e[t];return e.Container&&i.setContainer(e.Container),i},i.restoreDefaults=function(){return i.Defaults=p.extend({},s),i};var v=null,g=!1,y=[],b={},_={},w={},x={},k={},M=!1,C=[],S=!1,D=null,L=this.Defaults.Scope,T=1,E=function(){return""+T++},P=function(e,t){f?f.appendChild(e):t?this.getElement(t).appendChild(e):this.appendToRoot(e)}.bind(this),O=function(e,t,n,r){var o={c:[],e:[]};if(!S&&(e=i.getElement(e),null!=e)){var a=W(e),s=e.querySelectorAll(".jtk-managed");null==n&&(n=jsPlumbUtil.uuid());fe({elId:a,offset:t,recalc:!1,timestamp:n});for(var l=0;l<s.length;l++)fe({elId:s[l].getAttribute("id"),recalc:!0,timestamp:n});var u=i.router.redraw(a,t,n,null,r);if(Array.prototype.push.apply(o.c,u.c),Array.prototype.push.apply(o.e,u.e),s)for(var c=0;c<s.length;c++)u=i.router.redraw(s[c].getAttribute("id"),null,n,null,r,!0),Array.prototype.push.apply(o.c,u.c),Array.prototype.push.apply(o.e,u.e)}return o},j=function(e){return _[e]},I=function(e,t){for(var n=e.scope.split(/\s/),i=t.scope.split(/\s/),r=0;r<n.length;r++)for(var o=0;o<i.length;o++)if(i[o]===n[r])return!0;return!1},Y=function(e,t){var n=p.extend({},e);for(var i in t)t[i]&&(n[i]=t[i]);return n},A=function(e,t){var r=p.extend({},e);if(t&&p.extend(r,t),r.source&&(r.source.endpoint?r.sourceEndpoint=r.source:r.source=i.getElement(r.source)),r.target&&(r.target.endpoint?r.targetEndpoint=r.target:r.target=i.getElement(r.target)),e.uuids&&(r.sourceEndpoint=j(e.uuids[0]),r.targetEndpoint=j(e.uuids[1])),r.sourceEndpoint&&r.sourceEndpoint.isFull())n.log(i,"could not add connection; source endpoint is full");else if(r.targetEndpoint&&r.targetEndpoint.isFull())n.log(i,"could not add connection; target endpoint is full");else{if(!r.type&&r.sourceEndpoint&&(r.type=r.sourceEndpoint.connectionType),r.sourceEndpoint&&r.sourceEndpoint.connectorOverlays){r.overlays=r.overlays||[];for(var o=0,a=r.sourceEndpoint.connectorOverlays.length;o<a;o++)r.overlays.push(r.sourceEndpoint.connectorOverlays[o])}r.sourceEndpoint&&r.sourceEndpoint.scope&&(r.scope=r.sourceEndpoint.scope),!r["pointer-events"]&&r.sourceEndpoint&&r.sourceEndpoint.connectorPointerEvents&&(r["pointer-events"]=r.sourceEndpoint.connectorPointerEvents);var s=function(e,t,n){var o=Y(t,{anchor:r.anchors?r.anchors[n]:r.anchor,endpoint:r.endpoints?r.endpoints[n]:r.endpoint,paintStyle:r.endpointStyles?r.endpointStyles[n]:r.endpointStyle,hoverPaintStyle:r.endpointHoverStyles?r.endpointHoverStyles[n]:r.endpointHoverStyle});return i.addEndpoint(e,o)},l=function(e,t,n,i){if(r[e]&&!r[e].endpoint&&!r[e+"Endpoint"]&&!r.newConnection){var o=W(r[e]),a=n[o];if(a=a?a[i]:null,a){if(!a.enabled)return!1;var l=p.extend({},a.def);delete l.label;var u=null!=a.endpoint&&a.endpoint._jsPlumb?a.endpoint:s(r[e],l,t);if(u.isFull())return!1;r[e+"Endpoint"]=u,!r.scope&&l.scope&&(r.scope=l.scope),a.uniqueEndpoint?a.endpoint?u.finalEndpoint=a.endpoint:(a.endpoint=u,u.setDeleteOnEmpty(!1)):u.setDeleteOnEmpty(!0),0===t&&a.def.connectorOverlays&&(r.overlays=r.overlays||[],Array.prototype.push.apply(r.overlays,a.def.connectorOverlays))}}};if(!1!==l("source",0,this.sourceEndpointDefinitions,r.type||"default")&&!1!==l("target",1,this.targetEndpointDefinitions,r.type||"default"))return r.sourceEndpoint&&r.targetEndpoint&&(I(r.sourceEndpoint,r.targetEndpoint)||(r=null)),r}}.bind(i),N=function(e){var t=i.Defaults.ConnectionType||i.getDefaultConnectionType();e._jsPlumb=i,e.newConnection=N,e.newEndpoint=H,e.endpointsByUUID=_,e.endpointsByElement=b,e.finaliseConnection=R,e.id="con_"+E();var n=new t(e);return n.isDetachable()&&(n.endpoints[0].initDraggable("_jsPlumbSource"),n.endpoints[1].initDraggable("_jsPlumbTarget")),n},R=i.finaliseConnection=function(e,t,n,r){if(t=t||{},e.suspendedEndpoint||y.push(e),e.pending=null,e.endpoints[0].isTemporarySource=!1,!1!==r&&i.router.newConnection(e),O(e.source),!t.doNotFireConnectionEvent&&!1!==t.fireEvent){var o={connection:e,source:e.source,target:e.target,sourceId:e.sourceId,targetId:e.targetId,sourceEndpoint:e.endpoints[0],targetEndpoint:e.endpoints[1]};i.fire("connection",o,n)}},H=function(e,t){var n=i.Defaults.EndpointType||p.Endpoint,r=p.extend({},e);r._jsPlumb=i,r.newConnection=N,r.newEndpoint=H,r.endpointsByUUID=_,r.endpointsByElement=b,r.fireDetachEvent=q,r.elementId=t||W(r.source);var o=new n(r);return o.id="ep_"+E(),he(r.elementId,r.source),p.headless||i.getDragManager().endpointAdded(r.source,t),o},F=function(e,t,n){var i=b[e];if(i&&i.length)for(var r=0,o=i.length;r<o;r++){for(var a=0,s=i[r].connections.length;a<s;a++){var l=t(i[r].connections[a]);if(l)return}n&&n(i[r])}},z=function(e,t,n){t="block"===t;var i=null;n&&(i=function(e){e.setVisible(t,!0,!0)});var r=c(e);F(r.id,(function(e){if(t&&n){var i=e.sourceId===r.id?1:0;e.endpoints[i].isVisible()&&e.setVisible(!0)}else e.setVisible(t)}),i)},$=function(e,t){var n=null;t&&(n=function(e){var t=e.isVisible();e.setVisible(!t)}),F(e,(function(e){var t=e.isVisible();e.setVisible(!t)}),n)},B=function(e){var t=x[e];return t?{o:t,s:C[e]}:fe({elId:e})},W=function(e,t,r){if(n.isString(e))return e;if(null==e)return null;var a=i.getAttribute(e,"id");return a&&"undefined"!==a||(2===arguments.length&&void 0!==arguments[1]?a=t:(1===arguments.length||3===arguments.length&&!arguments[2])&&(a="jsPlumb_"+o+"_"+E()),r||i.setAttribute(e,"id",a)),a};this.setConnectionBeingDragged=function(e){M=e},this.isConnectionBeingDragged=function(){return M},this.getManagedElements=function(){return w},this.connectorClass="jtk-connector",this.connectorOutlineClass="jtk-connector-outline",this.connectedClass="jtk-connected",this.hoverClass="jtk-hover",this.endpointClass="jtk-endpoint",this.endpointConnectedClass="jtk-endpoint-connected",this.endpointFullClass="jtk-endpoint-full",this.endpointDropAllowedClass="jtk-endpoint-drop-allowed",this.endpointDropForbiddenClass="jtk-endpoint-drop-forbidden",this.overlayClass="jtk-overlay",this.draggingClass="jtk-dragging",this.elementDraggingClass="jtk-element-dragging",this.sourceElementDraggingClass="jtk-source-element-dragging",this.targetElementDraggingClass="jtk-target-element-dragging",this.endpointAnchorClassPrefix="jtk-endpoint-anchor",this.hoverSourceClass="jtk-source-hover",this.hoverTargetClass="jtk-target-hover",this.dragSelectClass="jtk-drag-select",this.Anchors={},this.Connectors={svg:{}},this.Endpoints={svg:{}},this.Overlays={svg:{}},this.ConnectorRenderers={},this.SVG="svg",this.addEndpoint=function(e,t,r){r=r||{};var o=p.extend({},r);p.extend(o,t),o.endpoint=o.endpoint||i.Defaults.Endpoint,o.paintStyle=o.paintStyle||i.Defaults.EndpointStyle;for(var a=[],s=n.isArray(e)||null!=e.length&&!n.isString(e)?e:[e],l=0,u=s.length;l<u;l++){o.source=i.getElement(s[l]),ce(o.source);var c=W(o.source),d=H(o,c),h=he(c,o.source,null,!S).info.o;n.addToList(b,c,d),S||d.paint({anchorLoc:d.anchor.compute({xy:[h.left,h.top],wh:C[c],element:d,timestamp:D,rotation:this.getRotation(c)}),timestamp:D}),a.push(d)}return 1===a.length?a[0]:a},this.addEndpoints=function(e,t,r){for(var o=[],a=0,s=t.length;a<s;a++){var l=i.addEndpoint(e,t[a],r);n.isArray(l)?Array.prototype.push.apply(o,l):o.push(l)}return o},this.animate=function(e,t,r){if(!this.animationSupported)return!1;r=r||{};var o=i.getElement(e),a=W(o),s=p.animEvents.step,l=p.animEvents.complete;r[s]=n.wrap(r[s],(function(){i.revalidate(a)})),r[l]=n.wrap(r[l],(function(){i.revalidate(a)})),i.doAnimate(o,t,r)},this.checkCondition=function(e,t){var r=i.getListener(e),o=!0;if(r&&r.length>0){var a=Array.prototype.slice.call(arguments,1);try{for(var s=0,l=r.length;s<l;s++)o=o&&r[s].apply(r[s],a)}catch(u){n.log(i,"cannot check condition ["+e+"]"+u)}}return o},this.connect=function(e,t){var i,r=A(e,t);if(r){if(null==r.source&&null==r.sourceEndpoint)return void n.log("Cannot establish connection - source does not exist");if(null==r.target&&null==r.targetEndpoint)return void n.log("Cannot establish connection - target does not exist");ce(r.source),i=N(r),R(i,r)}return i};var V=[{el:"source",elId:"sourceId",epDefs:"sourceEndpointDefinitions"},{el:"target",elId:"targetId",epDefs:"targetEndpointDefinitions"}],U=function(e,t,n,i){var r,o,a,s=V[n],l=e[s.elId],u=(e[s.el],e.endpoints[n]),c={index:n,originalSourceId:0===n?l:e.sourceId,newSourceId:e.sourceId,originalTargetId:1===n?l:e.targetId,newTargetId:e.targetId,connection:e};if(t.constructor===p.Endpoint)r=t,r.addConnection(e),t=r.element;else if(o=W(t),a=this[s.epDefs][o],o===e[s.elId])r=null;else if(a)for(var d in a){if(!a[d].enabled)return;r=null!=a[d].endpoint&&a[d].endpoint._jsPlumb?a[d].endpoint:this.addEndpoint(t,a[d].def),a[d].uniqueEndpoint&&(a[d].endpoint=r),r.addConnection(e)}else r=e.makeEndpoint(0===n,t,o);return null!=r&&(u.detachFromConnection(e),e.endpoints[n]=r,e[s.el]=r.element,e[s.elId]=r.elementId,c[0===n?"newSourceId":"newTargetId"]=r.elementId,G(c),i||e.repaint()),c.element=t,c}.bind(this);this.setSource=function(e,t,n){var i=U(e,t,0,n);this.router.sourceOrTargetChanged(i.originalSourceId,i.newSourceId,e,i.el,0)},this.setTarget=function(e,t,n){var i=U(e,t,1,n);this.router.sourceOrTargetChanged(i.originalTargetId,i.newTargetId,e,i.el,1)},this.deleteEndpoint=function(e,t,n){var r="string"===typeof e?_[e]:e;return r&&i.deleteObject({endpoint:r,dontUpdateHover:t,deleteAttachedObjects:n}),i},this.deleteEveryEndpoint=function(){var e=i.setSuspendDrawing(!0);for(var t in b){var n=b[t];if(n&&n.length)for(var r=0,o=n.length;r<o;r++)i.deleteEndpoint(n[r],!0)}b={},w={},_={},x={},k={},i.router.reset();var a=i.getDragManager();return a&&a.reset(),e||i.setSuspendDrawing(!1),i};var q=function(e,t,n){var r=i.Defaults.ConnectionType||i.getDefaultConnectionType(),o=e.constructor===r,a=o?{connection:e,source:e.source,target:e.target,sourceId:e.sourceId,targetId:e.targetId,sourceEndpoint:e.endpoints[0],targetEndpoint:e.endpoints[1]}:e;t&&i.fire("connectionDetached",a,n),i.fire("internal.connectionDetached",a,n),i.router.connectionDetached(a)},G=i.fireMoveEvent=function(e,t){i.fire("connectionMoved",e,t)};this.unregisterEndpoint=function(e){for(var t in e._jsPlumb.uuid&&(_[e._jsPlumb.uuid]=null),i.router.deleteEndpoint(e),b){var n=b[t];if(n){for(var r=[],o=0,a=n.length;o<a;o++)n[o]!==e&&r.push(n[o]);b[t]=r}b[t].length<1&&delete b[t]}};var K="isDetachAllowed",J="beforeDetach",X="checkCondition";this.deleteConnection=function(e,t){return!(null==e||(t=t||{},!t.force&&!n.functionChain(!0,!1,[[e.endpoints[0],K,[e]],[e.endpoints[1],K,[e]],[e,K,[e]],[i,X,[J,e]]])))&&(e.setHover(!1),q(e,!e.pending&&!1!==t.fireEvent,t.originalEvent),e.endpoints[0].detachFromConnection(e),e.endpoints[1].detachFromConnection(e),n.removeWithFunction(y,(function(t){return e.id===t.id})),e.cleanup(),e.destroy(),!0)},this.deleteEveryConnection=function(e){e=e||{};var t=y.length,n=0;return i.batch((function(){for(var r=0;r<t;r++)n+=i.deleteConnection(y[0],e)?1:0})),n},this.deleteConnectionsForElement=function(e,t){t=t||{},e=i.getElement(e);var n=W(e),r=b[n];if(r&&r.length)for(var o=0,a=r.length;o<a;o++)r[o].deleteEveryConnection(t);return i},this.deleteObject=function(e){var t={endpoints:{},connections:{},endpointCount:0,connectionCount:0},r=!1!==e.deleteAttachedObjects,o=function(n){null!=n&&null==t.connections[n.id]&&(e.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),t.connections[n.id]=n,t.connectionCount++)},a=function(n){if(null!=n&&null==t.endpoints[n.id]&&(e.dontUpdateHover||null==n._jsPlumb||n.setHover(!1),t.endpoints[n.id]=n,t.endpointCount++,r))for(var i=0;i<n.connections.length;i++){var a=n.connections[i];o(a)}};for(var s in e.connection?o(e.connection):a(e.endpoint),t.connections){var l=t.connections[s];if(l._jsPlumb){n.removeWithFunction(y,(function(e){return l.id===e.id})),q(l,!1!==e.fireEvent&&!l.pending,e.originalEvent);var u=null==e.deleteAttachedObjects?null:!e.deleteAttachedObjects;l.endpoints[0].detachFromConnection(l,null,u),l.endpoints[1].detachFromConnection(l,null,u),l.cleanup(!0),l.destroy(!0)}}for(var c in t.endpoints){var d=t.endpoints[c];d._jsPlumb&&(i.unregisterEndpoint(d),d.cleanup(!0),d.destroy(!0))}return t};var Z=function(e,t,n,i){for(var r=0,o=e.length;r<o;r++)e[r][t].apply(e[r],n);return i(e)},Q=function(e,t,n){for(var i=[],r=0,o=e.length;r<o;r++)i.push([e[r][t].apply(e[r],n),e[r]]);return i},ee=function(e,t,n){return function(){return Z(e,t,arguments,n)}},te=function(e,t){return function(){return Q(e,t,arguments)}},ne=function(e,t){var n=[];if(e)if("string"===typeof e){if("*"===e)return e;n.push(e)}else if(t)n=e;else if(e.length)for(var i=0,r=e.length;i<r;i++)n.push(c(e[i]).id);else n.push(c(e).id);return n},ie=function(e,t,n){return"*"===e||(e.length>0?-1!==e.indexOf(t):!n)};this.getConnections=function(e,t){e?e.constructor===String&&(e={scope:e}):e={};for(var n=e.scope||i.getDefaultScope(),r=ne(n,!0),o=ne(e.source),a=ne(e.target),s=!t&&r.length>1?{}:[],l=function(e,n){if(!t&&r.length>1){var i=s[e];null==i&&(i=s[e]=[]),i.push(n)}else s.push(n)},u=0,c=y.length;u<c;u++){var d=y[u],h=d.proxies&&d.proxies[0]?d.proxies[0].originalEp.elementId:d.sourceId,f=d.proxies&&d.proxies[1]?d.proxies[1].originalEp.elementId:d.targetId;ie(r,d.scope)&&ie(o,h)&&ie(a,f)&&l(d.scope,d)}return s};var re=function(e,t){return function(n){for(var i=0,r=e.length;i<r;i++)n(e[i]);return t(e)}},oe=function(e){return function(t){return e[t]}},ae=function(e,t){var n,i,r={length:e.length,each:re(e,t),get:oe(e)},o=["setHover","removeAllOverlays","setLabel","addClass","addOverlay","removeOverlay","removeOverlays","showOverlay","hideOverlay","showOverlays","hideOverlays","setPaintStyle","setHoverPaintStyle","setSuspendEvents","setParameter","setParameters","setVisible","repaint","addType","toggleType","removeType","removeClass","setType","bind","unbind"],a=["getLabel","getOverlay","isHover","getParameter","getParameters","getPaintStyle","getHoverPaintStyle","isVisible","hasType","getType","isSuspendEvents"];for(n=0,i=o.length;n<i;n++)r[o[n]]=ee(e,o[n],t);for(n=0,i=a.length;n<i;n++)r[a[n]]=te(e,a[n]);return r},se=function(e){var t=ae(e,se);return p.extend(t,{setDetachable:ee(e,"setDetachable",se),setReattach:ee(e,"setReattach",se),setConnector:ee(e,"setConnector",se),delete:function(){for(var t=0,n=e.length;t<n;t++)i.deleteConnection(e[t])},isDetachable:te(e,"isDetachable"),isReattach:te(e,"isReattach")})},le=function(e){var t=ae(e,le);return p.extend(t,{setEnabled:ee(e,"setEnabled",le),setAnchor:ee(e,"setAnchor",le),isEnabled:te(e,"isEnabled"),deleteEveryConnection:function(){for(var t=0,n=e.length;t<n;t++)e[t].deleteEveryConnection()},delete:function(){for(var t=0,n=e.length;t<n;t++)i.deleteEndpoint(e[t])}})};this.select=function(e){return e=e||{},e.scope=e.scope||"*",se(e.connections||i.getConnections(e,!0))},this.selectEndpoints=function(e){e=e||{},e.scope=e.scope||"*";var t=!e.element&&!e.source&&!e.target,n=t?"*":ne(e.element),i=t?"*":ne(e.source),r=t?"*":ne(e.target),o=ne(e.scope,!0),a=[];for(var s in b){var l=ie(n,s,!0),u=ie(i,s,!0),c="*"!==i,d=ie(r,s,!0),h="*"!==r;if(l||u||d)e:for(var f=0,p=b[s].length;f<p;f++){var m=b[s][f];if(ie(o,m.scope,!0)){var v=c&&i.length>0&&!m.isSource,g=h&&r.length>0&&!m.isTarget;if(v||g)continue e;a.push(m)}}}return le(a)},this.getAllConnections=function(){return y},this.getDefaultScope=function(){return L},this.getEndpoint=j,this.getEndpoints=function(e){return b[c(e).id]||[]},this.getDefaultEndpointType=function(){return p.Endpoint},this.getDefaultConnectionType=function(){return p.Connection},this.getId=W,this.draw=O,this.info=c,this.appendElement=P;var ue=!1;this.isHoverSuspended=function(){return ue},this.setHoverSuspended=function(e){ue=e},this.hide=function(e,t){return z(e,"none",t),i},this.idstamp=E;var ce=function(e){if(!f&&e){var t=i.getElement(e);t.offsetParent&&i.setContainer(t.offsetParent)}},de=function(){i.Defaults.Container&&i.setContainer(i.Defaults.Container)},he=i.manage=function(e,t,n,r){return w[e]?r&&(w[e].info=fe({elId:e,timestamp:D,recalc:!0})):(w[e]={el:t,endpoints:[],connections:[],rotation:0},w[e].info=fe({elId:e,timestamp:D}),i.addClass(t,"jtk-managed"),n||i.fire("manageElement",{id:e,info:w[e].info,el:t})),w[e]};this.unmanage=function(e){if(w[e]){var t=w[e].el;i.removeClass(t,"jtk-managed"),delete w[e],i.fire("unmanageElement",{id:e,el:t})}},this.rotate=function(e,t,n){return w[e]&&(w[e].rotation=t,w[e].el.style.transform="rotate("+t+"deg)",w[e].el.style.transformOrigin="center center",!0!==n)?this.revalidate(e):{c:[],e:[]}},this.getRotation=function(e){return w[e]&&w[e].rotation||0};var fe=function(e){var t,n=e.timestamp,r=e.recalc,o=e.offset,a=e.elId;return S&&!n&&(n=D),!r&&n&&n===k[a]?{o:e.offset||x[a],s:C[a]}:(r||!o&&null==x[a]?(t=w[a]?w[a].el:null,null!=t&&(C[a]=i.getSize(t),x[a]=i.getOffset(t),k[a]=n)):(x[a]=o||x[a],null==C[a]&&(t=w[a].el,null!=t&&(C[a]=i.getSize(t))),k[a]=n),x[a]&&!x[a].right&&(x[a].right=x[a].left+C[a][0],x[a].bottom=x[a].top+C[a][1],x[a].width=C[a][0],x[a].height=C[a][1],x[a].centerx=x[a].left+x[a].width/2,x[a].centery=x[a].top+x[a].height/2),{o:x[a],s:C[a]})};this.updateOffset=fe,this.init=function(){g||(de(),i.router=new e.jsPlumb.DefaultRouter(i),i.anchorManager=i.router.anchorManager,g=!0,i.fire("ready",i))}.bind(this),this.log=v,this.jsPlumbUIComponent=u,this.makeAnchor=function(){var t,r=function(t,n){if(e.jsPlumb.Anchors[t])return new e.jsPlumb.Anchors[t](n);if(!i.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+t+"'"}};if(0===arguments.length)return null;var o=arguments[0],a=arguments[1],s=null;if(o.compute&&o.getOrientation)return o;if("string"===typeof o)s=r(arguments[0],{elementId:a,jsPlumbInstance:i});else if(n.isArray(o))if(n.isArray(o[0])||n.isString(o[0]))2===o.length&&n.isObject(o[1])?n.isString(o[0])?(t=e.jsPlumb.extend({elementId:a,jsPlumbInstance:i},o[1]),s=r(o[0],t)):(t=e.jsPlumb.extend({elementId:a,jsPlumbInstance:i,anchors:o[0]},o[1]),s=new e.jsPlumb.DynamicAnchor(t)):s=new p.DynamicAnchor({anchors:o,selector:null,elementId:a,jsPlumbInstance:i});else{var l={x:o[0],y:o[1],orientation:o.length>=4?[o[2],o[3]]:[0,0],offsets:o.length>=6?[o[4],o[5]]:[0,0],elementId:a,jsPlumbInstance:i,cssClass:7===o.length?o[6]:null};s=new e.jsPlumb.Anchor(l),s.clone=function(){return new e.jsPlumb.Anchor(l)}}return s.id||(s.id="anchor_"+E()),s},this.makeAnchors=function(t,r,o){for(var a=[],s=0,l=t.length;s<l;s++)"string"===typeof t[s]?a.push(e.jsPlumb.Anchors[t[s]]({elementId:r,jsPlumbInstance:o})):n.isArray(t[s])&&a.push(i.makeAnchor(t[s],r,o));return a},this.makeDynamicAnchor=function(t,n){return new e.jsPlumb.DynamicAnchor({anchors:t,selector:n,elementId:null,jsPlumbInstance:i})},this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={};var pe=function(e,t,n,i,r){for(var o=e.target||e.srcElement,a=!1,s=i.getSelector(t,n),l=0;l<s.length;l++)if(s[l]===o){a=!0;break}return r?!a:a},me=function(t,r,o,a,s){var l=new u(r),c=r._jsPlumb.EndpointDropHandler({jsPlumb:i,enabled:function(){return t.def.enabled},isFull:function(){var e=i.select({target:t.id}).length;return t.def.maxConnections>0&&e>=t.def.maxConnections},element:t.el,elementId:t.id,isSource:a,isTarget:s,addClass:function(e){i.addClass(t.el,e)},removeClass:function(e){i.removeClass(t.el,e)},onDrop:function(e){var t=e.endpoints[0];t.anchor.locked=!1},isDropAllowed:function(){return l.isDropAllowed.apply(l,arguments)},isRedrop:function(e){return null!=e.suspendedElement&&null!=e.suspendedEndpoint&&e.suspendedEndpoint.element===t.el},getEndpoint:function(n){var o=t.def.endpoint;if(null==o||null==o._jsPlumb){var a=i.deriveEndpointAndAnchorSpec(n.getType().join(" "),!0),s=a.endpoints?e.jsPlumb.extend(r,{endpoint:t.def.def.endpoint||a.endpoints[1]}):r;a.anchors&&(s=e.jsPlumb.extend(s,{anchor:t.def.def.anchor||a.anchors[1]})),o=i.addEndpoint(t.el,s),o._mtNew=!0}if(r.uniqueEndpoint&&(t.def.endpoint=o),o.setDeleteOnEmpty(!0),n.isDetachable()&&o.initDraggable(),null!=o.anchor.positionFinder){var l=i.getUIPosition(arguments,i.getZoom()),u=i.getOffset(t.el),c=i.getSize(t.el),d=null==l?[0,0]:o.anchor.positionFinder(l,u,c,o.anchor.constructorParams);o.anchor.x=d[0],o.anchor.y=d[1]}return o},maybeCleanup:function(e){e._mtNew&&0===e.connections.length?i.deleteObject({endpoint:e}):delete e._mtNew}}),d=e.jsPlumb.dragEvents.drop;return o.scope=o.scope||r.scope||i.Defaults.Scope,o[d]=n.wrap(o[d],c,!0),o.rank=r.rank||0,s&&(o[e.jsPlumb.dragEvents.over]=function(){return!0}),!1===r.allowLoopback&&(o.canDrop=function(e){var n=e.getDragElement()._jsPlumbRelatedElement;return n!==t.el}),i.initDroppable(t.el,o,"internal"),c};this.makeTarget=function(t,n,r){var o=e.jsPlumb.extend({_jsPlumb:this},r);e.jsPlumb.extend(o,n);for(var a=o.maxConnections||-1,s=function(t){var n=c(t),r=n.id,s=e.jsPlumb.extend({},o.dropOptions||{}),l=o.connectionType||"default";this.targetEndpointDefinitions[r]=this.targetEndpointDefinitions[r]||{},ce(r),n.el._isJsPlumbGroup&&null==s.rank&&(s.rank=-1);var u={def:e.jsPlumb.extend({},o),uniqueEndpoint:o.uniqueEndpoint,maxConnections:a,enabled:!0};o.createEndpoint&&(u.uniqueEndpoint=!0,u.endpoint=i.addEndpoint(t,u.def),u.endpoint.setDeleteOnEmpty(!1)),n.def=u,this.targetEndpointDefinitions[r][l]=u,me(n,o,s,!0===o.isSource,!0),n.el._katavorioDrop[n.el._katavorioDrop.length-1].targetDef=u}.bind(this),l=t.length&&t.constructor!==String?t:[t],u=0,d=l.length;u<d;u++)s(l[u]);return this},this.unmakeTarget=function(e,t){var n=c(e);return i.destroyDroppable(n.el,"internal"),t||delete this.targetEndpointDefinitions[n.id],this},this.makeSource=function(t,r,o){var a=e.jsPlumb.extend({_jsPlumb:this},o);e.jsPlumb.extend(a,r);var s=a.connectionType||"default",u=i.deriveEndpointAndAnchorSpec(s);a.endpoint=a.endpoint||u.endpoints[0],a.anchor=a.anchor||u.anchors[0];for(var d=a.maxConnections||-1,h=a.onMaxConnections,f=function(r){var o=r.id,u=this.getElement(r.el);this.sourceEndpointDefinitions[o]=this.sourceEndpointDefinitions[o]||{},ce(o);var c={def:e.jsPlumb.extend({},a),uniqueEndpoint:a.uniqueEndpoint,maxConnections:d,enabled:!0};a.createEndpoint&&(c.uniqueEndpoint=!0,c.endpoint=i.addEndpoint(t,c.def),c.endpoint.setDeleteOnEmpty(!1)),this.sourceEndpointDefinitions[o][s]=c,r.def=c;var f=e.jsPlumb.dragEvents.stop,p=e.jsPlumb.dragEvents.drag,m=e.jsPlumb.extend({},a.dragOptions||{}),v=m.drag,g=m.stop,y=null,b=!1;m.scope=m.scope||a.scope,m[p]=n.wrap(m[p],(function(){v&&v.apply(this,arguments),b=!1})),m[f]=n.wrap(m[f],function(){if(g&&g.apply(this,arguments),this.currentlyDragging=!1,null!=y._jsPlumb){var e=a.anchor||this.Defaults.Anchor,t=y.anchor,n=y.connections[0],r=this.makeAnchor(e,o,this),s=y.element;if(null!=r.positionFinder){var l=i.getOffset(s),u=this.getSize(s),c={left:l.left+t.x*u[0],top:l.top+t.y*u[1]},d=r.positionFinder(c,l,u,r.constructorParams);r.x=d[0],r.y=d[1]}y.setAnchor(r,!0),y.repaint(),this.repaint(y.elementId),null!=n&&this.repaint(n.targetId)}}.bind(this));var _=function(t){if(3!==t.which&&2!==t.button){o=this.getId(this.getElement(r.el));var c=this.sourceEndpointDefinitions[o][s];if(c.enabled){if(a.filter){var f=n.isString(a.filter)?pe(t,r.el,a.filter,this,a.filterExclude):a.filter(t,r.el);if(!1===f)return}var p=this.select({source:o}).length;if(c.maxConnections>=0&&p>=c.maxConnections)return h&&h({element:r.el,maxConnections:d},t),!1;var v=e.jsPlumb.getPositionOnElement(t,u,l),g={};e.jsPlumb.extend(g,c.def),g.isTemporarySource=!0,g.anchor=[v[0],v[1],0,0],g.dragOptions=m,c.def.scope&&(g.scope=c.def.scope),y=this.addEndpoint(o,g),b=!0,y.setDeleteOnEmpty(!0),c.uniqueEndpoint&&(c.endpoint?y.finalEndpoint=c.endpoint:(c.endpoint=y,y.setDeleteOnEmpty(!1)));var _=function(){i.off(y.canvas,"mouseup",_),i.off(r.el,"mouseup",_),b&&(b=!1,i.deleteEndpoint(y))};i.on(y.canvas,"mouseup",_),i.on(r.el,"mouseup",_);var w={};if(c.def.extract)for(var x in c.def.extract){var k=(t.srcElement||t.target).getAttribute(x);k&&(w[c.def.extract[x]]=k)}i.trigger(y.canvas,"mousedown",t,w),n.consume(t)}}}.bind(this);this.on(r.el,"mousedown",_),c.trigger=_,a.filter&&(n.isString(a.filter)||n.isFunction(a.filter))&&i.setDragFilter(r.el,a.filter);var w=e.jsPlumb.extend({},a.dropOptions||{});me(r,a,w,!0,!0===a.isTarget)}.bind(this),p=t.length&&t.constructor!==String?t:[t],m=0,v=p.length;m<v;m++)f(c(p[m]));return this},this.unmakeSource=function(e,t,n){var r=c(e);i.destroyDroppable(r.el,"internal");var o=this.sourceEndpointDefinitions[r.id];if(o)for(var a in o)if(null==t||t===a){var s=o[a].trigger;s&&i.off(r.el,"mousedown",s),n||delete this.sourceEndpointDefinitions[r.id][a]}return this},this.unmakeEverySource=function(){for(var e in this.sourceEndpointDefinitions)i.unmakeSource(e,null,!0);return this.sourceEndpointDefinitions={},this};var ve=function(e,t,i){t=n.isArray(t)?t:[t];var r=W(e);i=i||"default";for(var o=0;o<t.length;o++){var a=this[t[o]][r];if(a&&a[i])return a[i].def.scope||this.Defaults.Scope}}.bind(this),ge=function(e,t,i,r){i=n.isArray(i)?i:[i];var o=W(e);r=r||"default";for(var a=0;a<i.length;a++){var s=this[i[a]][o];s&&s[r]&&(s[r].def.scope=t)}}.bind(this);this.getScope=function(e,t){return ve(e,["sourceEndpointDefinitions","targetEndpointDefinitions"])},this.getSourceScope=function(e){return ve(e,"sourceEndpointDefinitions")},this.getTargetScope=function(e){return ve(e,"targetEndpointDefinitions")},this.setScope=function(e,t,n){this.setSourceScope(e,t,n),this.setTargetScope(e,t,n)},this.setSourceScope=function(e,t,n){ge(e,t,"sourceEndpointDefinitions",n),this.setDragScope(e,t)},this.setTargetScope=function(e,t,n){ge(e,t,"targetEndpointDefinitions",n),this.setDropScope(e,t)},this.unmakeEveryTarget=function(){for(var e in this.targetEndpointDefinitions)i.unmakeTarget(e,!0);return this.targetEndpointDefinitions={},this};var ye=function(e,t,r,o,a){var s,l,u,d="source"===e?this.sourceEndpointDefinitions:this.targetEndpointDefinitions;if(a=a||"default",t.length&&!n.isString(t)){s=[];for(var h=0,f=t.length;h<f;h++)l=c(t[h]),d[l.id]&&d[l.id][a]&&(s[h]=d[l.id][a].enabled,u=o?!s[h]:r,d[l.id][a].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+e+"-disabled"))}else{l=c(t);var p=l.id;d[p]&&d[p][a]&&(s=d[p][a].enabled,u=o?!s:r,d[p][a].enabled=u,i[u?"removeClass":"addClass"](l.el,"jtk-"+e+"-disabled"))}return s}.bind(this),be=function(e,t){if(null!=e){if(n.isString(e)||!e.length)return t.apply(this,[e]);if(e.length)return t.apply(this,[e[0]])}}.bind(this);this.toggleSourceEnabled=function(e,t){return ye("source",e,null,!0,t),this.isSourceEnabled(e,t)},this.setSourceEnabled=function(e,t,n){return ye("source",e,t,null,n)},this.isSource=function(e,t){return t=t||"default",be(e,function(e){var n=this.sourceEndpointDefinitions[c(e).id];return null!=n&&null!=n[t]}.bind(this))},this.isSourceEnabled=function(e,t){return t=t||"default",be(e,function(e){var n=this.sourceEndpointDefinitions[c(e).id];return n&&n[t]&&!0===n[t].enabled}.bind(this))},this.toggleTargetEnabled=function(e,t){return ye("target",e,null,!0,t),this.isTargetEnabled(e,t)},this.isTarget=function(e,t){return t=t||"default",be(e,function(e){var n=this.targetEndpointDefinitions[c(e).id];return null!=n&&null!=n[t]}.bind(this))},this.isTargetEnabled=function(e,t){return t=t||"default",be(e,function(e){var n=this.targetEndpointDefinitions[c(e).id];return n&&n[t]&&!0===n[t].enabled}.bind(this))},this.setTargetEnabled=function(e,t,n){return ye("target",e,t,null,n)},this.ready=function(e){i.bind("ready",e)};var _e=function(e,t){if("object"===typeof e&&e.length)for(var n=0,r=e.length;n<r;n++)t(e[n]);else t(e);return i};this.repaint=function(e,t,n){return _e(e,(function(e){O(e,t,n)}))},this.revalidate=function(e,t,n){var r=n?e:i.getId(e);i.updateOffset({elId:r,recalc:!0,timestamp:t});var o=i.getDragManager();return o&&o.updateOffsets(r),O(e,null,t)},this.repaintEverything=function(){var e,t=jsPlumbUtil.uuid();for(e in b)i.updateOffset({elId:e,recalc:!0,timestamp:t});for(e in b)O(e,null,t);return this},this.removeAllEndpoints=function(e,t,n){n=n||[];var r=function(e){var o,a,s=c(e),l=b[s.id];if(l)for(n.push(s),o=0,a=l.length;o<a;o++)i.deleteEndpoint(l[o],!1);if(delete b[s.id],t&&s.el&&3!==s.el.nodeType&&8!==s.el.nodeType)for(o=0,a=s.el.childNodes.length;o<a;o++)r(s.el.childNodes[o])};return r(e),this};var we=function(e,t){i.removeAllEndpoints(e.id,!0,t);for(var n=i.getDragManager(),r=function(e){n&&n.elementRemoved(e.id),i.router.elementRemoved(e.id),i.isSource(e.el)&&i.unmakeSource(e.el),i.isTarget(e.el)&&i.unmakeTarget(e.el),i.destroyDraggable(e.el),i.destroyDroppable(e.el),delete i.floatingConnections[e.id],delete w[e.id],delete x[e.id],e.el&&(i.removeElement(e.el),e.el._jsPlumb=null)},o=1;o<t.length;o++)r(t[o]);r(e)};this.remove=function(e,t){var n=c(e),r=[];return n.text&&n.el.parentNode?n.el.parentNode.removeChild(n.el):n.id&&i.batch((function(){we(n,r)}),!0===t),i},this.empty=function(e,t){var n=[],r=function(e,t){var i=c(e);if(i.text)i.el.parentNode.removeChild(i.el);else if(i.el){while(i.el.childNodes.length>0)r(i.el.childNodes[0]);t||we(i,n)}};return i.batch((function(){r(e,!0)}),!1===t),i},this.reset=function(e){i.silently(function(){ue=!1,i.removeAllGroups(),i.removeGroupManager(),i.deleteEveryEndpoint(),e||i.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},y.length=0,this.doReset&&this.doReset()}.bind(this))},this.destroy=function(){this.reset(),f=null,m=null};var xe=function(e){e.canvas&&e.canvas.parentNode&&e.canvas.parentNode.removeChild(e.canvas),e.cleanup(),e.destroy()};this.clear=function(){i.select().each(xe),i.selectEndpoints().each(xe),b={},_={}},this.setDefaultScope=function(e){return L=e,i},this.deriveEndpointAndAnchorSpec=function(e,t){for(var n=((t?"":"default ")+e).split(/[\s]/),r=null,o=null,a=null,s=null,l=0;l<n.length;l++){var u=i.getType(n[l],"connection");u&&(u.endpoints&&(r=u.endpoints),u.endpoint&&(o=u.endpoint),u.anchors&&(s=u.anchors),u.anchor&&(a=u.anchor))}return{endpoints:r||[o,o],anchors:s||[a,a]}},this.setId=function(e,t,i){var r;n.isString(e)?r=e:(e=this.getElement(e),r=this.getId(e));var o=this.getConnections({source:r,scope:"*"},!0),a=this.getConnections({target:r,scope:"*"},!0);t=""+t,i?e=this.getElement(t):(e=this.getElement(r),this.setAttribute(e,"id",t)),b[t]=b[r]||[];for(var s=0,l=b[t].length;s<l;s++)b[t][s].setElementId(t),b[t][s].setReferenceElement(e);delete b[r],this.sourceEndpointDefinitions[t]=this.sourceEndpointDefinitions[r],delete this.sourceEndpointDefinitions[r],this.targetEndpointDefinitions[t]=this.targetEndpointDefinitions[r],delete this.targetEndpointDefinitions[r],this.router.changeId(r,t);var u=this.getDragManager();u&&u.changeId(r,t),w[t]=w[r],delete w[r];var c=function(n,i,r){for(var o=0,a=n.length;o<a;o++)n[o].endpoints[i].setElementId(t),n[o].endpoints[i].setReferenceElement(e),n[o][r+"Id"]=t,n[o][r]=e};c(o,0,"source"),c(a,1,"target"),this.repaint(t)},this.setDebugLog=function(e){v=e},this.setSuspendDrawing=function(e,t){var n=S;return S=e,D=e?(new Date).getTime():null,t&&this.repaintEverything(),n},this.isSuspendDrawing=function(){return S},this.getSuspendedAt=function(){return D},this.batch=function(e,t){var i=this.isSuspendDrawing();i||this.setSuspendDrawing(!0);try{e()}catch(r){n.log("Function run while suspended failed",r)}i||this.setSuspendDrawing(!1,!t)},this.doWhileSuspended=this.batch,this.getCachedData=B,this.show=function(e,t){return z(e,"block",t),i},this.toggleVisible=$,this.addListener=this.bind;var ke=[];this.registerFloatingConnection=function(e,t,i){ke[e.id]=t,n.addToList(b,e.id,i)},this.getFloatingConnectionFor=function(e){return ke[e]},this.listManager=new e.jsPlumbListManager(this,this.Defaults.ListStyle)};n.extend(e.jsPlumbInstance,n.EventGenerator,{setAttribute:function(e,t,n){this.setAttribute(e,t,n)},getAttribute:function(t,n){return this.getAttribute(e.jsPlumb.getElement(t),n)},convertToFullOverlaySpec:function(e){return n.isString(e)&&(e=[e,{}]),e[1].id=e[1].id||n.uuid(),e},registerConnectionType:function(t,n){if(this._connectionTypes[t]=e.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var o=this.convertToFullOverlaySpec(n.overlays[r]);i[o[1].id]=o}this._connectionTypes[t].overlays=i}},registerConnectionTypes:function(e){for(var t in e)this.registerConnectionType(t,e[t])},registerEndpointType:function(t,n){if(this._endpointTypes[t]=e.jsPlumb.extend({},n),n.overlays){for(var i={},r=0;r<n.overlays.length;r++){var o=this.convertToFullOverlaySpec(n.overlays[r]);i[o[1].id]=o}this._endpointTypes[t].overlays=i}},registerEndpointTypes:function(e){for(var t in e)this.registerEndpointType(t,e[t])},getType:function(e,t){return"connection"===t?this._connectionTypes[e]:this._endpointTypes[e]},setIdChanged:function(e,t){this.setId(e,t,!0)},setParent:function(e,t){var n=this.getElement(e),i=this.getId(n),r=this.getElement(t),o=this.getId(r),a=this.getDragManager();n.parentNode.removeChild(n),r.appendChild(n),a&&a.setParent(n,i,r,o)},extend:function(e,t,n){var i;if(n)for(i=0;i<n.length;i++)e[n[i]]=t[n[i]];else for(i in t)e[i]=t[i];return e},floatingConnections:{},getFloatingAnchorIndex:function(e){return e.endpoints[0].isFloating()?0:e.endpoints[1].isFloating()?1:-1},proxyConnection:function(e,t,n,i,r,o){var a,s=e.endpoints[t].elementId,l=e.endpoints[t];e.proxies=e.proxies||[],a=e.proxies[t]?e.proxies[t].ep:this.addEndpoint(n,{endpoint:r(e,t),anchor:o(e,t),parameters:{isProxyEndpoint:!0}}),a.setDeleteOnEmpty(!0),e.proxies[t]={ep:a,originalEp:l},0===t?this.router.sourceOrTargetChanged(s,i,e,n,0):this.router.sourceOrTargetChanged(s,i,e,n,1),l.detachFromConnection(e,null,!0),a.connections=[e],e.endpoints[t]=a,l.setVisible(!1),e.setVisible(!0),this.revalidate(n)},unproxyConnection:function(e,t,n){if(null!=e._jsPlumb&&null!=e.proxies&&null!=e.proxies[t]){var i=e.proxies[t].originalEp.element,r=e.proxies[t].originalEp.elementId;e.endpoints[t]=e.proxies[t].originalEp,0===t?this.router.sourceOrTargetChanged(n,r,e,i,0):this.router.sourceOrTargetChanged(n,r,e,i,1),e.proxies[t].ep.detachFromConnection(e,null),e.proxies[t].originalEp.addConnection(e),e.isVisible()&&e.proxies[t].originalEp.setVisible(!0),delete e.proxies[t]}}});var p=new f;e.jsPlumb=p,p.getInstance=function(e,t){var n=new f(e);if(t)for(var i in t)n[i]=t[i];return n.init(),n},p.each=function(e,t){if(null!=e)if("string"===typeof e)t(p.getElement(e));else if(null!=e.length)for(var n=0;n<e.length;n++)t(p.getElement(e[n]));else t(e)},t.jsPlumb=p}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i="__label",r=function(e,n){var r={cssClass:n.cssClass,labelStyle:e.labelStyle,id:i,component:e,_jsPlumb:e._jsPlumb.instance},o=t.extend(r,n);return new(t.Overlays[e._jsPlumb.instance.getRenderMode()].Label)(o)},o=function(e,i){var r=null;if(n.isArray(i)){var o=i[0],a=t.extend({component:e,_jsPlumb:e._jsPlumb.instance},i[1]);3===i.length&&t.extend(a,i[2]),r=new(t.Overlays[e._jsPlumb.instance.getRenderMode()][o])(a)}else r=i.constructor===String?new(t.Overlays[e._jsPlumb.instance.getRenderMode()][i])({component:e,_jsPlumb:e._jsPlumb.instance}):i;return r.id=r.id||n.uuid(),e.cacheTypeItem("overlay",r,r.id),e._jsPlumb.overlays[r.id]=r,r};t.OverlayCapableJsPlumbUIComponent=function(t){e.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.overlays={},this._jsPlumb.overlayPositions={},t.label&&(this.getDefaultType().overlays[i]=["Label",{label:t.label,location:t.labelLocation||this.defaultLabelLocation||.5,labelStyle:t.labelStyle||this._jsPlumb.instance.Defaults.LabelStyle,id:i}]),this.setListenerComponent=function(e){if(this._jsPlumb)for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].setListenerComponent(e)}},t.OverlayCapableJsPlumbUIComponent.applyType=function(e,t){if(t.overlays){var n,i={};for(n in t.overlays){var r=e._jsPlumb.overlays[t.overlays[n][1].id];if(r)r.updateFrom(t.overlays[n][1]),i[t.overlays[n][1].id]=!0,r.reattach(e._jsPlumb.instance,e);else{var o=e.getCachedTypeItem("overlay",t.overlays[n][1].id);null!=o?(o.reattach(e._jsPlumb.instance,e),o.setVisible(!0),o.updateFrom(t.overlays[n][1]),e._jsPlumb.overlays[o.id]=o):o=e.addOverlay(t.overlays[n],!0),i[o.id]=!0}}for(n in e._jsPlumb.overlays)null==i[e._jsPlumb.overlays[n].id]&&e.removeOverlay(e._jsPlumb.overlays[n].id,!0)}},n.extend(t.OverlayCapableJsPlumbUIComponent,e.jsPlumbUIComponent,{setHover:function(e,t){if(this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged())for(var n in this._jsPlumb.overlays)this._jsPlumb.overlays[n][e?"addClass":"removeClass"](this._jsPlumb.instance.hoverClass)},addOverlay:function(e,t){var i=o(this,e);if(this.getData&&"Label"===i.type&&n.isArray(e)){var r=this.getData(),a=e[1];if(r){var s=a.labelLocationAttribute||"labelLocation",l=r?r[s]:null;l&&(i.loc=l)}}return t||this.repaint(),i},getOverlay:function(e){return this._jsPlumb.overlays[e]},getOverlays:function(){return this._jsPlumb.overlays},hideOverlay:function(e){var t=this.getOverlay(e);t&&t.hide()},hideOverlays:function(){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].hide()},showOverlay:function(e){var t=this.getOverlay(e);t&&t.show()},showOverlays:function(){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].show()},removeAllOverlays:function(e){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].cleanup&&this._jsPlumb.overlays[t].cleanup();this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null,this._jsPlumb.overlayPlacements={},e||this.repaint()},removeOverlay:function(e,t){var n=this._jsPlumb.overlays[e];n&&(n.setVisible(!1),!t&&n.cleanup&&n.cleanup(),delete this._jsPlumb.overlays[e],this._jsPlumb.overlayPositions&&delete this._jsPlumb.overlayPositions[e],this._jsPlumb.overlayPlacements&&delete this._jsPlumb.overlayPlacements[e])},removeOverlays:function(){for(var e=0,t=arguments.length;e<t;e++)this.removeOverlay(arguments[e])},moveParent:function(e){if(this.bgCanvas&&(this.bgCanvas.parentNode.removeChild(this.bgCanvas),e.appendChild(this.bgCanvas)),this.canvas&&this.canvas.parentNode)for(var t in this.canvas.parentNode.removeChild(this.canvas),e.appendChild(this.canvas),this._jsPlumb.overlays)if(this._jsPlumb.overlays[t].isAppendedAtTopLevel){var n=this._jsPlumb.overlays[t].getElement();n.parentNode.removeChild(n),e.appendChild(n)}},getLabel:function(){var e=this.getOverlay(i);return null!=e?e.getLabel():null},getLabelOverlay:function(){return this.getOverlay(i)},setLabel:function(e){var t=this.getOverlay(i);if(t)e.constructor===String||e.constructor===Function?t.setLabel(e):(e.label&&t.setLabel(e.label),e.location&&t.setLocation(e.location));else{var n=e.constructor===String||e.constructor===Function?{label:e}:e;t=r(this,n),this._jsPlumb.overlays[i]=t}this._jsPlumb.instance.isSuspendDrawing()||this.repaint()},cleanup:function(e){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].cleanup(e),this._jsPlumb.overlays[t].destroy(e);e&&(this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null)},setVisible:function(e){this[e?"showOverlays":"hideOverlays"]()},setAbsoluteOverlayPosition:function(e,t){this._jsPlumb.overlayPositions[e.id]=t},getAbsoluteOverlayPosition:function(e){return this._jsPlumb.overlayPositions?this._jsPlumb.overlayPositions[e.id]:null},_clazzManip:function(e,t,n){if(!n)for(var i in this._jsPlumb.overlays)this._jsPlumb.overlays[i][e+"Class"](t)},addClass:function(e,t){this._clazzManip("add",e,t)},removeClass:function(e,t){this._clazzManip("remove",e,t)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=function(e,t,n){var i=!1;return{drag:function(){if(i)return i=!1,!0;if(t.element){var r=n.getUIPosition(arguments,n.getZoom());null!=r&&n.setPosition(t.element,r),n.repaint(t.element,r),e.paint({anchorPoint:e.anchor.getCurrentLocation({element:e})})}},stopDrag:function(){i=!0}}},r=function(e,t,n,i){var r=t.createElement("div",{position:"absolute"});t.appendElement(r);var o=t.getId(r);t.setPosition(r,n),r.style.width=i[0]+"px",r.style.height=i[1]+"px",t.manage(o,r,!0),e.id=o,e.element=r},o=function(e,n,i,r,o,a,s,l){var u=new t.FloatingAnchor({reference:n,referenceCanvas:r,jsPlumbInstance:a});return s({paintStyle:e,endpoint:i,anchor:u,source:o,scope:l})},a=["connectorStyle","connectorHoverStyle","connectorOverlays","connector","connectionType","connectorClass","connectorHoverClass"],s=function(e,t){var n=0;if(null!=t)for(var i=0;i<e.connections.length;i++)if(e.connections[i].sourceId===t||e.connections[i].targetId===t){n=i;break}return e.connections[n]};t.Endpoint=function(e){var l=e._jsPlumb,u=e.newConnection,c=e.newEndpoint;this.idPrefix="_jsplumb_e_",this.defaultLabelLocation=[.5,.5],this.defaultOverlayKeys=["Overlays","EndpointOverlays"],t.OverlayCapableJsPlumbUIComponent.apply(this,arguments),this.appendToDefaultType({connectionType:e.connectionType,maxConnections:null==e.maxConnections?this._jsPlumb.instance.Defaults.MaxConnections:e.maxConnections,paintStyle:e.endpointStyle||e.paintStyle||e.style||this._jsPlumb.instance.Defaults.EndpointStyle||t.Defaults.EndpointStyle,hoverPaintStyle:e.endpointHoverStyle||e.hoverPaintStyle||this._jsPlumb.instance.Defaults.EndpointHoverStyle||t.Defaults.EndpointHoverStyle,connectorStyle:e.connectorStyle,connectorHoverStyle:e.connectorHoverStyle,connectorClass:e.connectorClass,connectorHoverClass:e.connectorHoverClass,connectorOverlays:e.connectorOverlays,connector:e.connector,connectorTooltip:e.connectorTooltip}),this._jsPlumb.enabled=!(!1===e.enabled),this._jsPlumb.visible=!0,this.element=t.getElement(e.source),this._jsPlumb.uuid=e.uuid,this._jsPlumb.floatingEndpoint=null;var d=null;this._jsPlumb.uuid&&(e.endpointsByUUID[this._jsPlumb.uuid]=this),this.elementId=e.elementId,this.dragProxy=e.dragProxy,this._jsPlumb.connectionCost=e.connectionCost,this._jsPlumb.connectionsDirected=e.connectionsDirected,this._jsPlumb.currentAnchorClass="",this._jsPlumb.events={};var h=!0===e.deleteOnEmpty;this.setDeleteOnEmpty=function(e){h=e};var f=function(){var e=l.endpointAnchorClassPrefix+"-"+this._jsPlumb.currentAnchorClass;this._jsPlumb.currentAnchorClass=this.anchor.getCssClass();var n=l.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");this.removeClass(e),this.addClass(n),t.updateClasses(this.element,n,e)}.bind(this);this.prepareAnchor=function(e){var t=this._jsPlumb.instance.makeAnchor(e,this.elementId,l);return t.bind("anchorChanged",function(e){this.fire("anchorChanged",{endpoint:this,anchor:e}),f()}.bind(this)),t},this.setPreparedAnchor=function(e,t){return this._jsPlumb.instance.continuousAnchorFactory.clear(this.elementId),this.anchor=e,f(),t||this._jsPlumb.instance.repaint(this.elementId),this},this.setAnchor=function(e,t){var n=this.prepareAnchor(e);return this.setPreparedAnchor(n,t),this};var p=function(e){if(this.connections.length>0)for(var t=0;t<this.connections.length;t++)this.connections[t].setHover(e,!1);else this.setHover(e)}.bind(this);this.bind("mouseover",(function(){p(!0)})),this.bind("mouseout",(function(){p(!1)})),e._transient||this._jsPlumb.instance.router.addEndpoint(this,this.elementId),this.prepareEndpoint=function(i,r){var o,a=function(e,n){var i=l.getRenderMode();if(t.Endpoints[i][e])return new t.Endpoints[i][e](n);if(!l.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown endpoint type '"+e+"'"}},s={_jsPlumb:this._jsPlumb.instance,cssClass:e.cssClass,container:e.container,tooltip:e.tooltip,connectorTooltip:e.connectorTooltip,endpoint:this};return n.isString(i)?o=a(i,s):n.isArray(i)?(s=n.merge(i[1],s),o=a(i[0],s)):o=i.clone(),o.clone=function(){return n.isString(i)?a(i,s):n.isArray(i)?(s=n.merge(i[1],s),a(i[0],s)):void 0}.bind(this),o.typeId=r,o},this.setEndpoint=function(e,t){var n=this.prepareEndpoint(e);this.setPreparedEndpoint(n,!0)},this.setPreparedEndpoint=function(e,t){null!=this.endpoint&&(this.endpoint.cleanup(),this.endpoint.destroy()),this.endpoint=e,this.type=this.endpoint.type,this.canvas=this.endpoint.canvas},t.extend(this,e,a),this.isSource=e.isSource||!1,this.isTemporarySource=e.isTemporarySource||!1,this.isTarget=e.isTarget||!1,this.connections=e.connections||[],this.connectorPointerEvents=e["connector-pointer-events"],this.scope=e.scope||l.getDefaultScope(),this.timestamp=null,this.reattachConnections=e.reattach||l.Defaults.ReattachConnections,this.connectionsDetachable=l.Defaults.ConnectionsDetachable,!1!==e.connectionsDetachable&&!1!==e.detachable||(this.connectionsDetachable=!1),this.dragAllowedWhenFull=!1!==e.dragAllowedWhenFull,e.onMaxConnections&&this.bind("maxConnections",e.onMaxConnections),this.addConnection=function(e){this.connections.push(e),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)},this.detachFromConnection=function(e,t,n){t=null==t?this.connections.indexOf(e):t,t>=0&&(this.connections.splice(t,1),this[(this.connections.length>0?"add":"remove")+"Class"](l.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](l.endpointFullClass)),!n&&h&&0===this.connections.length&&l.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:!0!==n})},this.deleteEveryConnection=function(e){for(var t=this.connections.length,n=0;n<t;n++)l.deleteConnection(this.connections[0],e)},this.detachFrom=function(e,t,n){for(var i=[],r=0;r<this.connections.length;r++)this.connections[r].endpoints[1]!==e&&this.connections[r].endpoints[0]!==e||i.push(this.connections[r]);for(var o=0,a=i.length;o<a;o++)l.deleteConnection(i[0]);return this},this.getElement=function(){return this.element},this.setElement=function(i){var r=this._jsPlumb.instance.getId(i),o=this.elementId;return n.removeWithFunction(e.endpointsByElement[this.elementId],function(e){return e.id===this.id}.bind(this)),this.element=t.getElement(i),this.elementId=l.getId(this.element),l.router.rehomeEndpoint(this,o,this.element),l.dragManager.endpointAdded(this.element),n.addToList(e.endpointsByElement,r,this),this},this.makeInPlaceCopy=function(){var t=this.anchor.getCurrentLocation({element:this}),n=this.anchor.getOrientation(this),i=this.anchor.getCssClass(),r={bind:function(){},compute:function(){return[t[0],t[1]]},getCurrentLocation:function(){return[t[0],t[1]]},getOrientation:function(){return n},getCssClass:function(){return i}};return c({dropOptions:e.dropOptions,anchor:r,source:this.element,paintStyle:this.getPaintStyle(),endpoint:e.hideOnDrag?"Blank":this.endpoint,_transient:!0,scope:this.scope,reference:this})},this.connectorSelector=function(){return this.connections[0]},this.setStyle=this.setPaintStyle,this.paint=function(e){e=e||{};var t=e.timestamp,n=!(!1===e.recalc);if(!t||this.timestamp!==t){var i=l.updateOffset({elId:this.elementId,timestamp:t}),r=e.offset?e.offset.o:i.o;if(null!=r){var o=e.anchorPoint,a=e.connectorPaintStyle;if(null==o){var u=e.dimensions||i.s,c={xy:[r.left,r.top],wh:u,element:this,timestamp:t};if(n&&this.anchor.isDynamic&&this.connections.length>0){var d=s(this,e.elementWithPrecedence),h=d.endpoints[0]===this?1:0,f=0===h?d.sourceId:d.targetId,p=l.getCachedData(f),m=p.o,v=p.s;c.index=0===h?1:0,c.connection=d,c.txy=[m.left,m.top],c.twh=v,c.tElement=d.endpoints[h],c.tRotation=l.getRotation(f)}else this.connections.length>0&&(c.connection=this.connections[0]);c.rotation=l.getRotation(this.elementId),o=this.anchor.compute(c)}for(var g in this.endpoint.compute(o,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,a||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=t,this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(g)){var y=this._jsPlumb.overlays[g];y.isVisible()&&(this._jsPlumb.overlayPlacements[g]=y.draw(this.endpoint,this._jsPlumb.paintStyleInUse),y.paint(this._jsPlumb.overlayPlacements[g]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var m=!1;this.initDraggable=function(){if(!m&&t.isDragSupported(this.element)){var a,s={id:null,element:null},h=null,f=!1,p=null,v=i(this,s,l),g=e.dragOptions||{},y={},b=t.dragEvents.start,_=t.dragEvents.stop,w=t.dragEvents.drag,x=t.dragEvents.beforeStart,k=function(e){a=e.e.payload||{}},M=function(n){h=this.connectorSelector();var i=!0;this.isEnabled()||(i=!1),null!=h||this.isSource||this.isTemporarySource||(i=!1),!this.isSource||!this.isFull()||null!=h&&this.dragAllowedWhenFull||(i=!1),null==h||h.isDetachable(this)||(this.isFull()?i=!1:h=null);var d=l.checkCondition(null==h?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:h});if(!1===d?i=!1:"object"===typeof d?t.extend(d,a||{}):d=a||{},!1===i)return l.stopDrag&&l.stopDrag(this.canvas),v.stopDrag(),!1;for(var m=0;m<this.connections.length;m++)this.connections[m].setHover(!1);this.addClass("endpointDrag"),l.setConnectionBeingDragged(!0),h&&!this.isFull()&&this.isSource&&(h=null),l.updateOffset({elId:this.elementId});var g=this._jsPlumb.instance.getOffset(this.canvas),y=this.canvas,b=this._jsPlumb.instance.getSize(this.canvas);r(s,l,g,b),l.setAttributes(this.canvas,{dragId:s.id,elId:this.elementId});var _=this.dragProxy||this.endpoint;if(null==this.dragProxy&&null!=this.connectionType){var w=this._jsPlumb.instance.deriveEndpointAndAnchorSpec(this.connectionType);w.endpoints[1]&&(_=w.endpoints[1])}var x=this._jsPlumb.instance.makeAnchor("Center");x.isFloating=!0,this._jsPlumb.floatingEndpoint=o(this.getPaintStyle(),x,_,this.canvas,s.element,l,c,this.scope);var k=this._jsPlumb.floatingEndpoint.anchor;if(null==h)this.setHover(!1,!1),h=u({sourceEndpoint:this,targetEndpoint:this._jsPlumb.floatingEndpoint,source:this.element,target:s.element,anchors:[this.anchor,this._jsPlumb.floatingEndpoint.anchor],paintStyle:e.connectorStyle,hoverPaintStyle:e.connectorHoverStyle,connector:e.connector,overlays:e.connectorOverlays,type:this.connectionType,cssClass:this.connectorClass,hoverClass:this.connectorHoverClass,scope:e.scope,data:d}),h.pending=!0,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.anchor=k,l.fire("connectionDrag",h),l.router.newConnection(h);else{f=!0,h.setHover(!1);var M=h.endpoints[0].id===this.id?0:1;this.detachFromConnection(h,null,!0);var C=l.getDragScope(y);l.setAttribute(this.canvas,"originalScope",C),l.fire("connectionDrag",h),0===M?(p=[h.source,h.sourceId,y,C],l.router.sourceOrTargetChanged(h.endpoints[M].elementId,s.id,h,s.element,0)):(p=[h.target,h.targetId,y,C],l.router.sourceOrTargetChanged(h.endpoints[M].elementId,s.id,h,s.element,1)),h.suspendedEndpoint=h.endpoints[M],h.suspendedElement=h.endpoints[M].getElement(),h.suspendedElementId=h.endpoints[M].elementId,h.suspendedElementType=0===M?"source":"target",h.suspendedEndpoint.setHover(!1),this._jsPlumb.floatingEndpoint.referenceEndpoint=h.suspendedEndpoint,h.endpoints[M]=this._jsPlumb.floatingEndpoint,h.addClass(l.draggingClass),this._jsPlumb.floatingEndpoint.addClass(l.draggingClass)}l.registerFloatingConnection(s,h,this._jsPlumb.floatingEndpoint),l.currentlyDragging=!0}.bind(this),C=function(){if(l.setConnectionBeingDragged(!1),h&&null!=h.endpoints){var e=l.getDropEvent(arguments),t=l.getFloatingAnchorIndex(h);if(h.endpoints[0===t?1:0].anchor.locked=!1,h.removeClass(l.draggingClass),this._jsPlumb&&(h.deleteConnectionNow||h.endpoints[t]===this._jsPlumb.floatingEndpoint)&&f&&h.suspendedEndpoint){0===t?(h.floatingElement=h.source,h.floatingId=h.sourceId,h.floatingEndpoint=h.endpoints[0],h.floatingIndex=0,h.source=p[0],h.sourceId=p[1]):(h.floatingElement=h.target,h.floatingId=h.targetId,h.floatingEndpoint=h.endpoints[1],h.floatingIndex=1,h.target=p[0],h.targetId=p[1]);var n=this._jsPlumb.floatingEndpoint;l.setDragScope(p[2],p[3]),h.endpoints[t]=h.suspendedEndpoint,h.isReattach()||h._forceReattach||h._forceDetach||!l.deleteConnection(h,{originalEvent:e})?(h.setHover(!1),h._forceDetach=null,h._forceReattach=null,this._jsPlumb.floatingEndpoint.detachFromConnection(h),h.suspendedEndpoint.addConnection(h),1===t?l.router.sourceOrTargetChanged(h.floatingId,h.targetId,h,h.target,t):l.router.sourceOrTargetChanged(h.floatingId,h.sourceId,h,h.source,t),l.repaint(p[1])):l.deleteObject({endpoint:n})}this.deleteAfterDragStop?l.deleteObject({endpoint:this}):this._jsPlumb&&this.paint({recalc:!1}),l.fire("connectionDragStop",h,e),h.pending&&l.fire("connectionAborted",h,e),l.currentlyDragging=!1,h.suspendedElement=null,h.suspendedEndpoint=null,h=null}s&&s.element&&l.remove(s.element,!1,!1),d&&l.deleteObject({endpoint:d}),this._jsPlumb&&(this.canvas.style.visibility="visible",this.anchor.locked=!1,this._jsPlumb.floatingEndpoint=null)}.bind(this);g=t.extend(y,g),g.scope=this.scope||g.scope,g[x]=n.wrap(g[x],k,!1),g[b]=n.wrap(g[b],M,!1),g[w]=n.wrap(g[w],v.drag),g[_]=n.wrap(g[_],C),g.multipleDrop=!1,g.canDrag=function(){return this.isSource||this.isTemporarySource||this.connections.length>0&&!1!==this.connectionsDetachable}.bind(this),l.initDraggable(this.canvas,g,"internal"),this.canvas._jsPlumbRelatedElement=this.element,m=!0}};var v=e.endpoint||this._jsPlumb.instance.Defaults.Endpoint||t.Defaults.Endpoint;this.setEndpoint(v,!0);var g=e.anchor?e.anchor:e.anchors?e.anchors:l.Defaults.Anchor||"Top";this.setAnchor(g,!0);var y=["default",e.type||""].join(" ");this.addType(y,e.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var b=function(i,r,o,a){if(t.isDropSupported(this.element)){var s=e.dropOptions||l.Defaults.DropOptions||t.Defaults.DropOptions;s=t.extend({},s),s.scope=s.scope||this.scope;var u=t.dragEvents.drop,c=t.dragEvents.over,d=t.dragEvents.out,h=this,f=l.EndpointDropHandler({getEndpoint:function(){return h},jsPlumb:l,enabled:function(){return null==o||o.isEnabled()},isFull:function(){return o.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(e){h.addClass(e)},removeClass:function(e){h.removeClass(e)},isDropAllowed:function(){return h.isDropAllowed.apply(h,arguments)},reference:a,isRedrop:function(e,t){return e.suspendedEndpoint&&t.reference&&e.suspendedEndpoint.id===t.reference.id}});s[u]=n.wrap(s[u],f,!0),s[c]=n.wrap(s[c],function(){var e=t.getDragObject(arguments),n=l.getAttribute(t.getElement(e),"dragId"),i=l.getFloatingConnectionFor(n);if(null!=i){var r=l.getFloatingAnchorIndex(i),o=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;if(o){var a=l.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[r],targetEndpoint:this,connection:i});this[(a?"add":"remove")+"Class"](l.endpointDropAllowedClass),this[(a?"remove":"add")+"Class"](l.endpointDropForbiddenClass),i.endpoints[r].anchor.over(this.anchor,this)}}}.bind(this)),s[d]=n.wrap(s[d],function(){var e=t.getDragObject(arguments),n=null==e?null:l.getAttribute(t.getElement(e),"dragId"),i=n?l.getFloatingConnectionFor(n):null;if(null!=i){var r=l.getFloatingAnchorIndex(i),o=this.isTarget&&0!==r||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id;o&&(this.removeClass(l.endpointDropAllowedClass),this.removeClass(l.endpointDropForbiddenClass),i.endpoints[r].anchor.out())}}.bind(this)),l.initDroppable(i,s,"internal",r)}}.bind(this);return this.anchor.isFloating||b(this.canvas,!(e._transient||this.anchor.isFloating),this,e.reference),this},n.extend(t.Endpoint,t.OverlayCapableJsPlumbUIComponent,{setVisible:function(e,t,n){if(this._jsPlumb.visible=e,this.canvas&&(this.canvas.style.display=e?"block":"none"),this[e?"showOverlays":"hideOverlays"](),!t)for(var i=0;i<this.connections.length;i++)if(this.connections[i].setVisible(e),!n){var r=this===this.connections[i].endpoints[0]?1:0;1===this.connections[i].endpoints[r].connections.length&&this.connections[i].endpoints[r].setVisible(e,!0,!0)}},getAttachedElements:function(){return this.connections},applyType:function(e,n){this.setPaintStyle(e.endpointStyle||e.paintStyle,n),this.setHoverPaintStyle(e.endpointHoverStyle||e.hoverPaintStyle,n),null!=e.maxConnections&&(this._jsPlumb.maxConnections=e.maxConnections),e.scope&&(this.scope=e.scope),t.extend(this,e,a),null!=e.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,e.cssClass),t.OverlayCapableJsPlumbUIComponent.applyType(this,e)},isEnabled:function(){return this._jsPlumb.enabled},setEnabled:function(e){this._jsPlumb.enabled=e},cleanup:function(){var e=this._jsPlumb.instance.endpointAnchorClassPrefix+(this._jsPlumb.currentAnchorClass?"-"+this._jsPlumb.currentAnchorClass:"");t.removeClass(this.element,e),this.anchor=null,this.endpoint.cleanup(!0),this.endpoint.destroy(),this.endpoint=null,this._jsPlumb.instance.destroyDraggable(this.canvas,"internal"),this._jsPlumb.instance.destroyDroppable(this.canvas,"internal")},setHover:function(e){this.endpoint&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&this.endpoint.setHover(e)},isFull:function(){return 0===this._jsPlumb.maxConnections||!(this.isFloating()||this._jsPlumb.maxConnections<0||this.connections.length<this._jsPlumb.maxConnections)},isFloating:function(){return null!=this.anchor&&this.anchor.isFloating},isConnectedTo:function(e){var t=!1;if(e)for(var n=0;n<this.connections.length;n++)if(this.connections[n].endpoints[1]===e||this.connections[n].endpoints[0]===e){t=!0;break}return t},getConnectionCost:function(){return this._jsPlumb.connectionCost},setConnectionCost:function(e){this._jsPlumb.connectionCost=e},areConnectionsDirected:function(){return this._jsPlumb.connectionsDirected},setConnectionsDirected:function(e){this._jsPlumb.connectionsDirected=e},setElementId:function(e){this.elementId=e,this.anchor.elementId=e},setReferenceElement:function(e){this.element=t.getElement(e)},setDragAllowedWhenFull:function(e){this.dragAllowedWhenFull=e},equals:function(e){return this.anchor.equals(e.anchor)},getUuid:function(){return this._jsPlumb.uuid},computeAnchor:function(e){return this.anchor.compute(e)}}),e.jsPlumbInstance.prototype.EndpointDropHandler=function(e){return function(t){var i=e.jsPlumb;e.removeClass(i.endpointDropAllowedClass),e.removeClass(i.endpointDropForbiddenClass);var r=i.getDropEvent(arguments),o=i.getDragObject(arguments),a=i.getAttribute(o,"dragId"),s=(i.getAttribute(o,"elId"),i.getAttribute(o,"originalScope")),l=i.getFloatingConnectionFor(a);if(null!=l){var u=null!=l.suspendedEndpoint;if(!u||null!=l.suspendedEndpoint._jsPlumb){var c=e.getEndpoint(l);if(null!=c){if(e.isRedrop(l,e))return l._forceReattach=!0,l.setHover(!1),void(e.maybeCleanup&&e.maybeCleanup(c));var d=i.getFloatingAnchorIndex(l);if(0===d&&!e.isSource||1===d&&!e.isTarget)e.maybeCleanup&&e.maybeCleanup(c);else{e.onDrop&&e.onDrop(l),s&&i.setDragScope(o,s);var h=e.isFull(t);if(h&&c.fire("maxConnections",{endpoint:this,connection:l,maxConnections:c._jsPlumb.maxConnections},r),!h&&e.enabled()){var f=!0;0===d?(l.floatingElement=l.source,l.floatingId=l.sourceId,l.floatingEndpoint=l.endpoints[0],l.floatingIndex=0,l.source=e.element,l.sourceId=i.getId(e.element)):(l.floatingElement=l.target,l.floatingId=l.targetId,l.floatingEndpoint=l.endpoints[1],l.floatingIndex=1,l.target=e.element,l.targetId=i.getId(e.element)),u&&l.suspendedEndpoint.id!==c.id&&(l.isDetachAllowed(l)&&l.endpoints[d].isDetachAllowed(l)&&l.suspendedEndpoint.isDetachAllowed(l)&&i.checkCondition("beforeDetach",l)||(f=!1));var p=function(t){l.endpoints[d].detachFromConnection(l),l.suspendedEndpoint&&l.suspendedEndpoint.detachFromConnection(l),l.endpoints[d]=c,c.addConnection(l);var o=c.getParameters();for(var a in o)l.setParameter(a,o[a]);if(u){var s=l.suspendedEndpoint.elementId;i.fireMoveEvent({index:d,originalSourceId:0===d?s:l.sourceId,newSourceId:0===d?c.elementId:l.sourceId,originalTargetId:1===d?s:l.targetId,newTargetId:1===d?c.elementId:l.targetId,originalSourceEndpoint:0===d?l.suspendedEndpoint:l.endpoints[0],newSourceEndpoint:0===d?c:l.endpoints[0],originalTargetEndpoint:1===d?l.suspendedEndpoint:l.endpoints[1],newTargetEndpoint:1===d?c:l.endpoints[1],connection:l},r)}else o.draggable&&i.initDraggable(this.element,e.dragOptions,"internal",i);if(1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),l.endpoints[0].finalEndpoint){var h=l.endpoints[0];h.detachFromConnection(l),l.endpoints[0]=l.endpoints[0].finalEndpoint,l.endpoints[0].addConnection(l)}n.isObject(t)&&l.mergeData(t),i.finaliseConnection(l,null,r,!1),l.setHover(!1),i.revalidate(l.endpoints[0].element)}.bind(this),m=function(){l.suspendedEndpoint&&(l.endpoints[d]=l.suspendedEndpoint,l.setHover(!1),l._forceDetach=!0,0===d?(l.source=l.suspendedEndpoint.element,l.sourceId=l.suspendedEndpoint.elementId):(l.target=l.suspendedEndpoint.element,l.targetId=l.suspendedEndpoint.elementId),l.suspendedEndpoint.addConnection(l),1===d?i.router.sourceOrTargetChanged(l.floatingId,l.targetId,l,l.target,1):i.router.sourceOrTargetChanged(l.floatingId,l.sourceId,l,l.source,0),i.repaint(l.sourceId),l._forceDetach=!1)};if(f=f&&e.isDropAllowed(l.sourceId,l.targetId,l.scope,l,c),f)return p(f),!0;m()}e.maybeCleanup&&e.maybeCleanup(c),i.currentlyDragging=!1}}}}}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=function(e,i,r,o,a){if(t.Connectors[i]=t.Connectors[i]||{},null==t.Connectors[i][r]){if(null==t.Connectors[r]){if(e.Defaults.DoNotThrowErrors)return null;throw new TypeError("jsPlumb: unknown connector type '"+r+"'")}t.Connectors[i][r]=function(){t.Connectors[r].apply(this,arguments),t.ConnectorRenderers[i].apply(this,arguments)},n.extend(t.Connectors[i][r],[t.Connectors[r],t.ConnectorRenderers[i]])}return new t.Connectors[i][r](o,a)},r=function(e,t,n){return e?n.makeAnchor(e,t,n):null},o=function(e,t,i,r){null!=t&&(t._jsPlumbConnections=t._jsPlumbConnections||{},r?delete t._jsPlumbConnections[e.id]:t._jsPlumbConnections[e.id]=!0,n.isEmpty(t._jsPlumbConnections)?i.removeClass(t,i.connectedClass):i.addClass(t,i.connectedClass))};t.Connection=function(e){var i=e.newEndpoint;this.id=e.id,this.connector=null,this.idPrefix="_jsplumb_c_",this.defaultLabelLocation=.5,this.defaultOverlayKeys=["Overlays","ConnectionOverlays"],this.previousConnection=e.previousConnection,this.source=t.getElement(e.source),this.target=t.getElement(e.target),t.OverlayCapableJsPlumbUIComponent.apply(this,arguments),e.sourceEndpoint?(this.source=e.sourceEndpoint.getElement(),this.sourceId=e.sourceEndpoint.elementId):this.sourceId=this._jsPlumb.instance.getId(this.source),e.targetEndpoint?(this.target=e.targetEndpoint.getElement(),this.targetId=e.targetEndpoint.elementId):this.targetId=this._jsPlumb.instance.getId(this.target),this.scope=e.scope,this.endpoints=[],this.endpointStyles=[];var r=this._jsPlumb.instance;r.manage(this.sourceId,this.source),r.manage(this.targetId,this.target),this._jsPlumb.visible=!0,this._jsPlumb.params={cssClass:e.cssClass,container:e.container,"pointer-events":e["pointer-events"],editorParams:e.editorParams,overlays:e.overlays},this._jsPlumb.lastPaintedAt=null,this.bind("mouseover",function(){this.setHover(!0)}.bind(this)),this.bind("mouseout",function(){this.setHover(!1)}.bind(this)),this.makeEndpoint=function(t,n,o,a,s){return o=o||this._jsPlumb.instance.getId(n),this.prepareEndpoint(r,i,this,a,t?0:1,e,n,o,s)},e.type&&(e.endpoints=e.endpoints||this._jsPlumb.instance.deriveEndpointAndAnchorSpec(e.type).endpoints);var o=this.makeEndpoint(!0,this.source,this.sourceId,e.sourceEndpoint),a=this.makeEndpoint(!1,this.target,this.targetId,e.targetEndpoint);o&&n.addToList(e.endpointsByElement,this.sourceId,o),a&&n.addToList(e.endpointsByElement,this.targetId,a),this.scope||(this.scope=this.endpoints[0].scope),null!=e.deleteEndpointsOnEmpty&&(this.endpoints[0].setDeleteOnEmpty(e.deleteEndpointsOnEmpty),this.endpoints[1].setDeleteOnEmpty(e.deleteEndpointsOnEmpty));var s=r.Defaults.ConnectionsDetachable;!1===e.detachable&&(s=!1),!1===this.endpoints[0].connectionsDetachable&&(s=!1),!1===this.endpoints[1].connectionsDetachable&&(s=!1);var l=e.reattach||this.endpoints[0].reattachConnections||this.endpoints[1].reattachConnections||r.Defaults.ReattachConnections;this.appendToDefaultType({detachable:s,reattach:l,paintStyle:this.endpoints[0].connectorStyle||this.endpoints[1].connectorStyle||e.paintStyle||r.Defaults.PaintStyle||t.Defaults.PaintStyle,hoverPaintStyle:this.endpoints[0].connectorHoverStyle||this.endpoints[1].connectorHoverStyle||e.hoverPaintStyle||r.Defaults.HoverPaintStyle||t.Defaults.HoverPaintStyle});var u=r.getSuspendedAt();if(!r.isSuspendDrawing()){var c=r.getCachedData(this.sourceId),d=c.o,h=c.s,f=r.getCachedData(this.targetId),p=f.o,m=f.s,v=u||jsPlumbUtil.uuid(),g=this.endpoints[0].anchor.compute({xy:[d.left,d.top],wh:h,element:this.endpoints[0],elementId:this.endpoints[0].elementId,txy:[p.left,p.top],twh:m,tElement:this.endpoints[1],timestamp:v,rotation:r.getRotation(this.endpoints[0].elementId)});this.endpoints[0].paint({anchorLoc:g,timestamp:v}),g=this.endpoints[1].anchor.compute({xy:[p.left,p.top],wh:m,element:this.endpoints[1],elementId:this.endpoints[1].elementId,txy:[d.left,d.top],twh:h,tElement:this.endpoints[0],timestamp:v,rotation:r.getRotation(this.endpoints[1].elementId)}),this.endpoints[1].paint({anchorLoc:g,timestamp:v})}this.getTypeDescriptor=function(){return"connection"},this.getAttachedElements=function(){return this.endpoints},this.isDetachable=function(e){return!1!==this._jsPlumb.detachable&&(null!=e?!0===e.connectionsDetachable:!0===this._jsPlumb.detachable)},this.setDetachable=function(e){this._jsPlumb.detachable=!0===e},this.isReattach=function(){return!0===this._jsPlumb.reattach||!0===this.endpoints[0].reattachConnections||!0===this.endpoints[1].reattachConnections},this.setReattach=function(e){this._jsPlumb.reattach=!0===e},this._jsPlumb.cost=e.cost||this.endpoints[0].getConnectionCost(),this._jsPlumb.directed=e.directed,null==e.directed&&(this._jsPlumb.directed=this.endpoints[0].areConnectionsDirected());var y=t.extend({},this.endpoints[1].getParameters());t.extend(y,this.endpoints[0].getParameters()),t.extend(y,this.getParameters()),this.setParameters(y),this.setConnector(this.endpoints[0].connector||this.endpoints[1].connector||e.connector||r.Defaults.Connector||t.Defaults.Connector,!0);var b=null!=e.data&&n.isObject(e.data)?e.data:{};this.getData=function(){return b},this.setData=function(e){b=e||{}},this.mergeData=function(e){b=t.extend(b,e)};var _=["default",this.endpoints[0].connectionType,this.endpoints[1].connectionType,e.type].join(" ");/[^\s]/.test(_)&&this.addType(_,e.data,!0),this.updateConnectedClass()},n.extend(t.Connection,t.OverlayCapableJsPlumbUIComponent,{applyType:function(e,n,i){var r=null;null!=e.connector&&(r=this.getCachedTypeItem("connector",i.connector),null==r&&(r=this.prepareConnector(e.connector,i.connector),this.cacheTypeItem("connector",r,i.connector)),this.setPreparedConnector(r)),null!=e.detachable&&this.setDetachable(e.detachable),null!=e.reattach&&this.setReattach(e.reattach),e.scope&&(this.scope=e.scope),null!=e.cssClass&&this.canvas&&this._jsPlumb.instance.addClass(this.canvas,e.cssClass);var o=null;e.anchor?(o=this.getCachedTypeItem("anchors",i.anchor),null==o&&(o=[this._jsPlumb.instance.makeAnchor(e.anchor),this._jsPlumb.instance.makeAnchor(e.anchor)],this.cacheTypeItem("anchors",o,i.anchor))):e.anchors&&(o=this.getCachedTypeItem("anchors",i.anchors),null==o&&(o=[this._jsPlumb.instance.makeAnchor(e.anchors[0]),this._jsPlumb.instance.makeAnchor(e.anchors[1])],this.cacheTypeItem("anchors",o,i.anchors))),null!=o&&(this.endpoints[0].anchor=o[0],this.endpoints[1].anchor=o[1],this.endpoints[1].anchor.isDynamic&&this._jsPlumb.instance.repaint(this.endpoints[1].elementId)),t.OverlayCapableJsPlumbUIComponent.applyType(this,e)},addClass:function(e,t){t&&(this.endpoints[0].addClass(e),this.endpoints[1].addClass(e),this.suspendedEndpoint&&this.suspendedEndpoint.addClass(e)),this.connector&&this.connector.addClass(e)},removeClass:function(e,t){t&&(this.endpoints[0].removeClass(e),this.endpoints[1].removeClass(e),this.suspendedEndpoint&&this.suspendedEndpoint.removeClass(e)),this.connector&&this.connector.removeClass(e)},isVisible:function(){return this._jsPlumb.visible},setVisible:function(e){this._jsPlumb.visible=e,this.connector&&this.connector.setVisible(e),this.repaint()},cleanup:function(){this.updateConnectedClass(!0),this.endpoints=null,this.source=null,this.target=null,null!=this.connector&&(this.connector.cleanup(!0),this.connector.destroy(!0)),this.connector=null},updateConnectedClass:function(e){this._jsPlumb&&(o(this,this.source,this._jsPlumb.instance,e),o(this,this.target,this._jsPlumb.instance,e))},setHover:function(t){this.connector&&this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged()&&(this.connector.setHover(t),e.jsPlumb[t?"addClass":"removeClass"](this.source,this._jsPlumb.instance.hoverSourceClass),e.jsPlumb[t?"addClass":"removeClass"](this.target,this._jsPlumb.instance.hoverTargetClass))},getUuids:function(){return[this.endpoints[0].getUuid(),this.endpoints[1].getUuid()]},getCost:function(){return this._jsPlumb?this._jsPlumb.cost:-1/0},setCost:function(e){this._jsPlumb.cost=e},isDirected:function(){return this._jsPlumb.directed},getConnector:function(){return this.connector},prepareConnector:function(e,t){var r,o={_jsPlumb:this._jsPlumb.instance,cssClass:this._jsPlumb.params.cssClass,container:this._jsPlumb.params.container,"pointer-events":this._jsPlumb.params["pointer-events"]},a=this._jsPlumb.instance.getRenderMode();return n.isString(e)?r=i(this._jsPlumb.instance,a,e,o,this):n.isArray(e)&&(r=1===e.length?i(this._jsPlumb.instance,a,e[0],o,this):i(this._jsPlumb.instance,a,e[0],n.merge(e[1],o),this)),null!=t&&(r.typeId=t),r},setPreparedConnector:function(e,t,n,i){if(this.connector!==e){var r,o="";if(null!=this.connector&&(r=this.connector,o=r.getClass(),this.connector.cleanup(),this.connector.destroy()),this.connector=e,i&&this.cacheTypeItem("connector",e,i),this.canvas=this.connector.canvas,this.bgCanvas=this.connector.bgCanvas,this.connector.reattach(this._jsPlumb.instance),this.addClass(o),this.canvas&&(this.canvas._jsPlumb=this),this.bgCanvas&&(this.bgCanvas._jsPlumb=this),null!=r)for(var a=this.getOverlays(),s=0;s<a.length;s++)a[s].transfer&&a[s].transfer(this.connector);n||this.setListenerComponent(this.connector),t||this.repaint()}},setConnector:function(e,t,n,i){var r=this.prepareConnector(e,i);this.setPreparedConnector(r,t,n,i)},paint:function(e){if(!this._jsPlumb.instance.isSuspendDrawing()&&this._jsPlumb.visible){e=e||{};var t=e.timestamp,n=!1,i=n?this.sourceId:this.targetId,r=n?this.targetId:this.sourceId,o=n?0:1,a=n?1:0;if(null==t||t!==this._jsPlumb.lastPaintedAt){var s=this._jsPlumb.instance.updateOffset({elId:r}).o,l=this._jsPlumb.instance.updateOffset({elId:i}).o,u=this.endpoints[a],c=this.endpoints[o],d=u.anchor.getCurrentLocation({xy:[s.left,s.top],wh:[s.width,s.height],element:u,timestamp:t,rotation:this._jsPlumb.instance.getRotation(this.sourceId)}),h=c.anchor.getCurrentLocation({xy:[l.left,l.top],wh:[l.width,l.height],element:c,timestamp:t,rotation:this._jsPlumb.instance.getRotation(this.targetId)});this.connector.resetBounds(),this.connector.compute({sourcePos:d,targetPos:h,sourceOrientation:u.anchor.getOrientation(u),targetOrientation:c.anchor.getOrientation(c),sourceEndpoint:this.endpoints[a],targetEndpoint:this.endpoints[o],"stroke-width":this._jsPlumb.paintStyleInUse.strokeWidth,sourceInfo:s,targetInfo:l});var f={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(var p in this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(p)){var m=this._jsPlumb.overlays[p];m.isVisible()&&(this._jsPlumb.overlayPlacements[p]=m.draw(this.connector,this._jsPlumb.paintStyleInUse,this.getAbsoluteOverlayPosition(m)),f.minX=Math.min(f.minX,this._jsPlumb.overlayPlacements[p].minX),f.maxX=Math.max(f.maxX,this._jsPlumb.overlayPlacements[p].maxX),f.minY=Math.min(f.minY,this._jsPlumb.overlayPlacements[p].minY),f.maxY=Math.max(f.maxY,this._jsPlumb.overlayPlacements[p].maxY))}var v=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||1)/2,g=parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth||0),y={xmin:Math.min(this.connector.bounds.minX-(v+g),f.minX),ymin:Math.min(this.connector.bounds.minY-(v+g),f.minY),xmax:Math.max(this.connector.bounds.maxX+(v+g),f.maxX),ymax:Math.max(this.connector.bounds.maxY+(v+g),f.maxY)};for(var b in this.connector.paintExtents=y,this.connector.paint(this._jsPlumb.paintStyleInUse,null,y),this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(b)){var _=this._jsPlumb.overlays[b];_.isVisible()&&_.paint(this._jsPlumb.overlayPlacements[b],y)}}this._jsPlumb.lastPaintedAt=t}},repaint:function(e){var t=jsPlumb.extend(e||{},{});t.elId=this.sourceId,this.paint(t)},prepareEndpoint:function(e,n,i,o,a,s,l,u,c){var d;if(o)i.endpoints[a]=o,o.addConnection(i);else{s.endpoints||(s.endpoints=[null,null]);var h=c||s.endpoints[a]||s.endpoint||e.Defaults.Endpoints[a]||t.Defaults.Endpoints[a]||e.Defaults.Endpoint||t.Defaults.Endpoint;s.endpointStyles||(s.endpointStyles=[null,null]),s.endpointHoverStyles||(s.endpointHoverStyles=[null,null]);var f=s.endpointStyles[a]||s.endpointStyle||e.Defaults.EndpointStyles[a]||t.Defaults.EndpointStyles[a]||e.Defaults.EndpointStyle||t.Defaults.EndpointStyle;null==f.fill&&null!=s.paintStyle&&(f.fill=s.paintStyle.stroke),null==f.outlineStroke&&null!=s.paintStyle&&(f.outlineStroke=s.paintStyle.outlineStroke),null==f.outlineWidth&&null!=s.paintStyle&&(f.outlineWidth=s.paintStyle.outlineWidth);var p=s.endpointHoverStyles[a]||s.endpointHoverStyle||e.Defaults.EndpointHoverStyles[a]||t.Defaults.EndpointHoverStyles[a]||e.Defaults.EndpointHoverStyle||t.Defaults.EndpointHoverStyle;null!=s.hoverPaintStyle&&(null==p&&(p={}),null==p.fill&&(p.fill=s.hoverPaintStyle.stroke));var m=s.anchors?s.anchors[a]:s.anchor?s.anchor:r(e.Defaults.Anchors[a],u,e)||r(t.Defaults.Anchors[a],u,e)||r(e.Defaults.Anchor,u,e)||r(t.Defaults.Anchor,u,e),v=s.uuids?s.uuids[a]:null;d=n({paintStyle:f,hoverPaintStyle:p,endpoint:h,connections:[i],uuid:v,anchor:m,source:l,scope:s.scope,reattach:s.reattach||e.Defaults.ReattachConnections,detachable:s.detachable||e.Defaults.ConnectionsDetachable}),null==o&&d.setDeleteOnEmpty(!0),i.endpoints[a]=d,!1===s.drawEndpoints&&d.setVisible(!1,!0,!0)}return d},replaceEndpoint:function(e,t){var n=this.endpoints[e],i=n.elementId,r=this._jsPlumb.instance.getEndpoints(i),o=r.indexOf(n),a=this.makeEndpoint(0===e,n.element,i,null,t);this.endpoints[e]=a,r.splice(o,1,a),this._jsPlumb.instance.deleteObject({endpoint:n,deleteAttachedObjects:!1}),this._jsPlumb.instance.fire("endpointReplaced",{previous:n,current:a}),this._jsPlumb.instance.router.sourceOrTargetChanged(this.endpoints[1].elementId,this.endpoints[1].elementId,this,this.endpoints[1].element,1)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumbUtil,n=e.jsPlumb;n.AnchorManager=function(e){var i={},r={},o={},a={},s=this,l={},u=e.jsPlumbInstance,c={},d=function(e,t,n,i,r,o,a,s){for(var l=[],u=t[r?0:1]/(i.length+1),c=0;c<i.length;c++){var d=(c+1)*u,h=o*t[r?1:0];a&&(d=t[r?0:1]-d);var f=r?d:h,p=n.left+f,m=f/t[0],v=r?h:d,g=n.top+v,y=v/t[1];if(0!==s){var b=jsPlumbUtil.rotatePoint([p,g],[n.centerx,n.centery],s);p=b[0],g=b[1]}l.push([p,g,m,y,i[c][1],i[c][2]])}return l},h=function(e,t){return t[0][0]-e[0][0]},f=function(e,t){var n=e[0][0]<0?-Math.PI-e[0][0]:Math.PI-e[0][0],i=t[0][0]<0?-Math.PI-t[0][0]:Math.PI-t[0][0];return n-i},p={top:f,right:h,bottom:h,left:f},m=function(e,t){return e.sort(t)},v=function(e,t){var n=u.getCachedData(e),i=n.s,a=n.o,s=function(t,n,i,a,s,l,c){if(a.length>0)for(var h=m(a,p[t]),f="right"===t||"top"===t,v=u.getRotation(e),g=d(t,n,i,h,s,l,f,v),y=function(e,t){r[e.id]=[t[0],t[1],t[2],t[3]],o[e.id]=c},b=0;b<g.length;b++){var _=g[b][4],w=_.endpoints[0].elementId===e,x=_.endpoints[1].elementId===e;w&&y(_.endpoints[0],g[b]),x&&y(_.endpoints[1],g[b])}};s("bottom",i,a,t.bottom,!0,1,[0,1]),s("top",i,a,t.top,!0,0,[0,-1]),s("left",i,a,t.left,!1,0,[-1,0]),s("right",i,a,t.right,!1,1,[1,0])};this.reset=function(){i={},a={},l={}},this.addFloatingConnection=function(e,t){c[e]=t},this.newConnection=function(e){var i=e.sourceId,r=e.targetId,o=e.endpoints,s=!0,l=function(l,u,c,d,h){i===r&&c.isContinuous&&(e._jsPlumb.instance.removeElement(o[1].canvas),s=!1),t.addToList(a,d,[h,u,c.constructor===n.DynamicAnchor])};l(0,o[0],o[0].anchor,r,e),s&&l(1,o[1],o[1].anchor,i,e)};var g=function(e){(function(e,n){if(e){var i=function(e){return e[4]===n};t.removeWithFunction(e.top,i),t.removeWithFunction(e.left,i),t.removeWithFunction(e.bottom,i),t.removeWithFunction(e.right,i)}})(l[e.elementId],e.id)};this.connectionDetached=function(e,n){var i=e.connection||e,r=e.sourceId,o=e.targetId,l=i.endpoints,u=function(e,n,i,r,o){t.removeWithFunction(a[r],(function(e){return e[0].id===o.id}))};u(1,l[1],l[1].anchor,r,i),u(0,l[0],l[0].anchor,o,i),i.floatingId&&(u(i.floatingIndex,i.floatingEndpoint,i.floatingEndpoint.anchor,i.floatingId,i),g(i.floatingEndpoint)),g(i.endpoints[0]),g(i.endpoints[1]),n||(s.redraw(i.sourceId),i.targetId!==i.sourceId&&s.redraw(i.targetId))},this.addEndpoint=function(e,n){t.addToList(i,n,e)},this.changeId=function(e,t){a[t]=a[e],i[t]=i[e],delete a[e],delete i[e]},this.getConnectionsFor=function(e){return a[e]||[]},this.getEndpointsFor=function(e){return i[e]||[]},this.deleteEndpoint=function(e){t.removeWithFunction(i[e.elementId],(function(t){return t.id===e.id})),g(e)},this.elementRemoved=function(e){delete c[e],delete i[e],i[e]=[]};var y=function(n,i,r,o,a,s,l,u,c,d,h,f){var p,m,v=-1,g=-1,y=o.endpoints[l],b=y.id,_=[1,0][l],w=[[i,r],o,a,s,b],x=n[c],k=y._continuousAnchorEdge?n[y._continuousAnchorEdge]:null;if(k){var M=t.findWithFunction(k,(function(e){return e[4]===b}));if(-1!==M)for(k.splice(M,1),p=0;p<k.length;p++)m=k[p][1],t.addWithFunction(h,m,(function(e){return e.id===m.id})),t.addWithFunction(f,k[p][1].endpoints[l],(function(e){return e.id===m.endpoints[l].id})),t.addWithFunction(f,k[p][1].endpoints[_],(function(e){return e.id===m.endpoints[_].id}))}for(p=0;p<x.length;p++)m=x[p][1],1===e.idx&&x[p][3]===s&&-1===g&&(g=p),t.addWithFunction(h,m,(function(e){return e.id===m.id})),t.addWithFunction(f,x[p][1].endpoints[l],(function(e){return e.id===m.endpoints[l].id})),t.addWithFunction(f,x[p][1].endpoints[_],(function(e){return e.id===m.endpoints[_].id}));if(-1!==v)x[v]=w;else{var C=u?-1!==g?g:0:x.length;x.splice(C,0,w)}y._continuousAnchorEdge=c};this.sourceOrTargetChanged=function(e,i,r,o,s){if(0===s){if(e!==i){r.sourceId=i,r.source=o,t.removeWithFunction(a[e],(function(e){return e[0].id===r.id}));var l=t.findWithFunction(a[r.targetId],(function(e){return e[0].id===r.id}));l>-1&&(a[r.targetId][l][0]=r,a[r.targetId][l][1]=r.endpoints[0],a[r.targetId][l][2]=r.endpoints[0].anchor.constructor===n.DynamicAnchor),t.addToList(a,i,[r,r.endpoints[1],r.endpoints[1].anchor.constructor===n.DynamicAnchor]),r.endpoints[1].anchor.isContinuous&&(r.source===r.target?r._jsPlumb.instance.removeElement(r.endpoints[1].canvas):null==r.endpoints[1].canvas.parentNode&&r._jsPlumb.instance.appendElement(r.endpoints[1].canvas)),r.updateConnectedClass()}}else if(1===s){var u=r.endpoints[0].elementId;r.target=o,r.targetId=i;var c=t.findWithFunction(a[u],(function(e){return e[0].id===r.id})),d=t.findWithFunction(a[e],(function(e){return e[0].id===r.id}));-1!==c&&(a[u][c][0]=r,a[u][c][1]=r.endpoints[1],a[u][c][2]=r.endpoints[1].anchor.constructor===n.DynamicAnchor),d>-1&&(a[e].splice(d,1),t.addToList(a,i,[r,r.endpoints[0],r.endpoints[0].anchor.constructor===n.DynamicAnchor])),r.updateConnectedClass()}},this.rehomeEndpoint=function(e,t,n){var r=i[t]||[],o=u.getId(n);if(o!==t){var a=r.indexOf(e);if(a>-1){var l=r.splice(a,1)[0];s.add(l,o)}}for(var c=0;c<e.connections.length;c++)e.connections[c].sourceId===t?s.sourceOrTargetChanged(t,e.elementId,e.connections[c],e.element,0):e.connections[c].targetId===t&&s.sourceOrTargetChanged(t,e.elementId,e.connections[c],e.element,1)},this.redraw=function(e,r,o,s,d,h){var f=[],p=[],m=[];if(!u.isSuspendDrawing()){var g=i[e]||[],b=a[e]||[];o=o||jsPlumbUtil.uuid(),s=s||{left:0,top:0},r&&(r={left:r.left+s.left,top:r.top+s.top});for(var _=u.updateOffset({elId:e,offset:r,recalc:!1,timestamp:o}),w={},x=0;x<b.length;x++){var k=b[x][0],M=k.sourceId,C=k.targetId,S=k.endpoints[0].anchor.isContinuous,D=k.endpoints[1].anchor.isContinuous;if(S||D){var L=M+"_"+C,T=w[L],E=k.sourceId===e?1:0,P=u.getRotation(C),O=u.getRotation(M);S&&!l[M]&&(l[M]={top:[],right:[],bottom:[],left:[]}),D&&!l[C]&&(l[C]={top:[],right:[],bottom:[],left:[]}),e!==C&&u.updateOffset({elId:C,timestamp:o}),e!==M&&u.updateOffset({elId:M,timestamp:o});var j=u.getCachedData(C),I=u.getCachedData(M);C===M&&(S||D)?(y(l[M],-Math.PI/2,0,k,!1,C,0,!1,"top",M,f,p),y(l[C],-Math.PI/2,0,k,!1,M,1,!1,"top",C,f,p)):(T||(T=this.calculateOrientation(M,C,I.o,j.o,k.endpoints[0].anchor,k.endpoints[1].anchor,k,O,P),w[L]=T),S&&y(l[M],T.theta,0,k,!1,C,0,!1,T.a[0],M,f,p),D&&y(l[C],T.theta2,-1,k,!0,M,1,!0,T.a[1],C,f,p)),S&&t.addWithFunction(m,M,(function(e){return e===M})),D&&t.addWithFunction(m,C,(function(e){return e===C})),t.addWithFunction(f,k,(function(e){return e.id===k.id})),(S&&0===E||D&&1===E)&&t.addWithFunction(p,k.endpoints[E],(function(e){return e.id===k.endpoints[E].id}))}}for(x=0;x<g.length;x++)0===g[x].connections.length&&g[x].anchor.isContinuous&&(l[e]||(l[e]={top:[],right:[],bottom:[],left:[]}),y(l[e],-Math.PI/2,0,{endpoints:[g[x],g[x]],paint:function(){}},!1,e,0,!1,g[x].anchor.getDefaultFace(),e,f,p),t.addWithFunction(m,e,(function(t){return t===e})));for(x=0;x<m.length;x++)v(m[x],l[m[x]]);for(x=0;x<g.length;x++)g[x].paint({timestamp:o,offset:_,dimensions:_.s,recalc:!0!==h});for(x=0;x<p.length;x++){var Y=u.getCachedData(p[x].elementId);p[x].paint({timestamp:null,offset:Y,dimensions:Y.s})}for(x=0;x<b.length;x++){var A=b[x][1];if(A.anchor.constructor===n.DynamicAnchor){A.paint({elementWithPrecedence:e,timestamp:o}),t.addWithFunction(f,b[x][0],(function(e){return e.id===b[x][0].id}));for(var N=0;N<A.connections.length;N++)A.connections[N]!==b[x][0]&&t.addWithFunction(f,A.connections[N],(function(e){return e.id===A.connections[N].id}))}else t.addWithFunction(f,b[x][0],(function(e){return e.id===b[x][0].id}))}var R=c[e];for(R&&R.paint({timestamp:o,recalc:!1,elId:e}),x=0;x<f.length;x++)f[x].paint({elId:e,timestamp:null,recalc:!1,clearEdits:d})}return{c:f,e:p}};var b=function(e){t.EventGenerator.apply(this),this.type="Continuous",this.isDynamic=!0,this.isContinuous=!0;for(var n=e.faces||["top","right","bottom","left"],i=!(!1===e.clockwise),a={},s={top:"bottom",right:"left",left:"right",bottom:"top"},l={top:"right",right:"bottom",left:"top",bottom:"left"},u={top:"left",right:"top",left:"bottom",bottom:"right"},c=i?l:u,d=i?u:l,h=e.cssClass||"",f=null,p=null,m=["left","right"],v=["top","bottom"],g=null,y=0;y<n.length;y++)a[n[y]]=!0;this.getDefaultFace=function(){return 0===n.length?"top":n[0]},this.isRelocatable=function(){return!0},this.isSnapOnRelocate=function(){return!0},this.verifyEdge=function(e){return a[e]?e:a[s[e]]?s[e]:a[c[e]]?c[e]:a[d[e]]?d[e]:e},this.isEdgeSupported=function(e){return null==g?null==p?!0===a[e]:p===e:-1!==g.indexOf(e)},this.setCurrentFace=function(e,t){f=e,t&&null!=p&&(p=f)},this.getCurrentFace=function(){return f},this.getSupportedFaces=function(){var e=[];for(var t in a)a[t]&&e.push(t);return e},this.lock=function(){p=f},this.unlock=function(){p=null},this.isLocked=function(){return null!=p},this.lockCurrentAxis=function(){null!=f&&(g="left"===f||"right"===f?m:v)},this.unlockCurrentAxis=function(){g=null},this.compute=function(e){return r[e.element.id]||[0,0]},this.getCurrentLocation=function(e){return r[e.element.id]||[0,0]},this.getOrientation=function(e){return o[e.id]||[0,0]},this.getCssClass=function(){return h}};u.continuousAnchorFactory={get:function(e){return new b(e)},clear:function(e){delete r[e]}}},n.AnchorManager.prototype.calculateOrientation=function(e,t,n,i,r,o,a,s,l){var u={HORIZONTAL:"horizontal",VERTICAL:"vertical",DIAGONAL:"diagonal",IDENTITY:"identity"},c=["left","top","right","bottom"];if(e===t)return{orientation:u.IDENTITY,a:["top","top"]};var d=Math.atan2(i.centery-n.centery,i.centerx-n.centerx),h=Math.atan2(n.centery-i.centery,n.centerx-i.centerx),f=[],p={};(function(e,t){for(var n=0;n<e.length;n++)if(p[e[n]]={left:[t[n][0].left,t[n][0].centery],right:[t[n][0].right,t[n][0].centery],top:[t[n][0].centerx,t[n][0].top],bottom:[t[n][0].centerx,t[n][0].bottom]},0!==t[n][1])for(var i in p[e[n]])p[e[n]][i]=jsPlumbUtil.rotatePoint(p[e[n]][i],[t[n][0].centerx,t[n][0].centery],t[n][1])})(["source","target"],[[n,s],[i,l]]);for(var m=0;m<c.length;m++)for(var v=0;v<c.length;v++)f.push({source:c[m],target:c[v],dist:Biltong.lineLength(p.source[c[m]],p.target[c[v]])});f.sort((function(e,t){return e.dist<t.dist?-1:e.dist>t.dist?1:0}));for(var g=f[0].source,y=f[0].target,b=0;b<f.length;b++)if(g=r.isContinuous&&r.locked?r.getCurrentFace():!r.isContinuous||r.isEdgeSupported(f[b].source)?f[b].source:null,y=o.isContinuous&&o.locked?o.getCurrentFace():!o.isContinuous||o.isEdgeSupported(f[b].target)?f[b].target:null,null!=g&&null!=y)break;return r.isContinuous&&r.setCurrentFace(g),o.isContinuous&&o.setCurrentFace(y),{a:[g,y],theta:d,theta2:h}},n.Anchor=function(e){this.x=e.x||0,this.y=e.y||0,this.elementId=e.elementId,this.cssClass=e.cssClass||"",this.orientation=e.orientation||[0,0],this.lastReturnValue=null,this.offsets=e.offsets||[0,0],this.timestamp=null,this._unrotatedOrientation=[this.orientation[0],this.orientation[1]],this.relocatable=!1!==e.relocatable,this.snapOnRelocate=!1!==e.snapOnRelocate,this.locked=!1,t.EventGenerator.apply(this),this.compute=function(e){var t=e.xy,n=e.wh,i=e.timestamp;if(i&&i===this.timestamp)return this.lastReturnValue;var r=[t[0]+this.x*n[0]+this.offsets[0],t[1]+this.y*n[1]+this.offsets[1],this.x,this.y],o=e.rotation;if(null!=o&&0!==o){var a=jsPlumbUtil.rotatePoint(r,[t[0]+n[0]/2,t[1]+n[1]/2],o);this.orientation[0]=Math.round(this._unrotatedOrientation[0]*a[2]-this._unrotatedOrientation[1]*a[3]),this.orientation[1]=Math.round(this._unrotatedOrientation[1]*a[2]+this._unrotatedOrientation[0]*a[3]),this.lastReturnValue=[a[0],a[1],this.x,this.y]}else this.orientation[0]=this._unrotatedOrientation[0],this.orientation[1]=this._unrotatedOrientation[1],this.lastReturnValue=r;return this.timestamp=i,this.lastReturnValue},this.getCurrentLocation=function(e){return e=e||{},null==this.lastReturnValue||null!=e.timestamp&&this.timestamp!==e.timestamp?this.compute(e):this.lastReturnValue},this.setPosition=function(e,t,n,i,r){this.locked&&!r||(this.x=e,this.y=t,this.orientation=[n,i],this.lastReturnValue=null)}},t.extend(n.Anchor,t.EventGenerator,{equals:function(e){if(!e)return!1;var t=e.getOrientation(),n=this.getOrientation();return this.x===e.x&&this.y===e.y&&this.offsets[0]===e.offsets[0]&&this.offsets[1]===e.offsets[1]&&n[0]===t[0]&&n[1]===t[1]},getOrientation:function(){return this.orientation},getCssClass:function(){return this.cssClass}}),n.FloatingAnchor=function(e){n.Anchor.apply(this,arguments);var t=e.reference,i=e.referenceCanvas,r=n.getSize(i),o=0,a=0,s=null,l=null;this.orientation=null,this.x=0,this.y=0,this.isFloating=!0,this.compute=function(e){var t=e.xy,n=[t[0]+r[0]/2,t[1]+r[1]/2];return l=n,n},this.getOrientation=function(e){if(s)return s;var n=t.getOrientation(e);return[Math.abs(n[0])*o*-1,Math.abs(n[1])*a*-1]},this.over=function(e,t){s=e.getOrientation(t)},this.out=function(){s=null},this.getCurrentLocation=function(e){return null==l?this.compute(e):l}},t.extend(n.FloatingAnchor,n.Anchor);var i=function(e,t,i){return e.constructor===n.Anchor?e:t.makeAnchor(e,i,t)};n.DynamicAnchor=function(e){n.Anchor.apply(this,arguments),this.isDynamic=!0,this.anchors=[],this.elementId=e.elementId,this.jsPlumbInstance=e.jsPlumbInstance;for(var t=0;t<e.anchors.length;t++)this.anchors[t]=i(e.anchors[t],this.jsPlumbInstance,this.elementId);this.getAnchors=function(){return this.anchors};var r=this.anchors.length>0?this.anchors[0]:null,o=r,a=function(e,t,n,i,r,o,a){var s=i[0]+e.x*r[0],l=i[1]+e.y*r[1],u=i[0]+r[0]/2,c=i[1]+r[1]/2;if(null!=o&&0!==o){var d=jsPlumbUtil.rotatePoint([s,l],[u,c],o);s=d[0],l=d[1]}return Math.sqrt(Math.pow(t-s,2)+Math.pow(n-l,2))+Math.sqrt(Math.pow(u-s,2)+Math.pow(c-l,2))},s=e.selector||function(e,t,n,i,r,o,s){for(var l=n[0]+i[0]/2,u=n[1]+i[1]/2,c=-1,d=1/0,h=0;h<s.length;h++){var f=a(s[h],l,u,e,t,r,o);f<d&&(c=h+0,d=f)}return s[c]};this.compute=function(e){var t=e.xy,n=e.wh,i=e.txy,a=e.twh,l=e.rotation,u=e.tRotation;return this.timestamp=e.timestamp,this.locked||null==i||null==a?(this.lastReturnValue=r.compute(e),this.lastReturnValue):(e.timestamp=null,r=s(t,n,i,a,l,u,this.anchors),this.x=r.x,this.y=r.y,r!==o&&this.fire("anchorChanged",r),o=r,this.lastReturnValue=r.compute(e),this.lastReturnValue)},this.getCurrentLocation=function(e){return null!=r?r.getCurrentLocation(e):null},this.getOrientation=function(e){return null!=r?r.getOrientation(e):[0,0]},this.over=function(e,t){null!=r&&r.over(e,t)},this.out=function(){null!=r&&r.out()},this.setAnchor=function(e){r=e},this.getCssClass=function(){return r&&r.getCssClass()||""},this.setAnchorCoordinates=function(e){var t=jsPlumbUtil.findWithFunction(this.anchors,(function(t){return t.x===e[0]&&t.y===e[1]}));return-1!==t&&(this.setAnchor(this.anchors[t]),!0)}},t.extend(n.DynamicAnchor,n.Anchor);var r=function(e,t,i,r,o,a){n.Anchors[o]=function(n){var s=n.jsPlumbInstance.makeAnchor([e,t,i,r,0,0],n.elementId,n.jsPlumbInstance);return s.type=o,a&&a(s,n),s}};r(.5,0,0,-1,"TopCenter"),r(.5,1,0,1,"BottomCenter"),r(0,.5,-1,0,"LeftMiddle"),r(1,.5,1,0,"RightMiddle"),r(.5,0,0,-1,"Top"),r(.5,1,0,1,"Bottom"),r(0,.5,-1,0,"Left"),r(1,.5,1,0,"Right"),r(.5,.5,0,0,"Center"),r(1,0,0,-1,"TopRight"),r(1,1,0,1,"BottomRight"),r(0,0,0,-1,"TopLeft"),r(0,1,0,1,"BottomLeft"),n.Defaults.DynamicAnchors=function(e){return e.jsPlumbInstance.makeAnchors(["TopCenter","RightMiddle","BottomCenter","LeftMiddle"],e.elementId,e.jsPlumbInstance)},n.Anchors.AutoDefault=function(e){var t=e.jsPlumbInstance.makeDynamicAnchor(n.Defaults.DynamicAnchors(e));return t.type="AutoDefault",t};var o=function(e,t){n.Anchors[e]=function(n){var i=n.jsPlumbInstance.makeAnchor(["Continuous",{faces:t}],n.elementId,n.jsPlumbInstance);return i.type=e,i}};n.Anchors.Continuous=function(e){return e.jsPlumbInstance.continuousAnchorFactory.get(e)},o("ContinuousLeft",["left"]),o("ContinuousTop",["top"]),o("ContinuousBottom",["bottom"]),o("ContinuousRight",["right"]),r(0,0,0,0,"Assign",(function(e,t){var n=t.position||"Fixed";e.positionFinder=n.constructor===String?t.jsPlumbInstance.AnchorPositionFinders[n]:n,e.constructorParams=t})),e.jsPlumbInstance.prototype.AnchorPositionFinders={Fixed:function(e,t,n){return[(e.left-t.left)/n[0],(e.top-t.top)/n[1]]},Grid:function(e,t,n,i){var r=e.left-t.left,o=e.top-t.top,a=n[0]/i.grid[0],s=n[1]/i.grid[1],l=Math.floor(r/a),u=Math.floor(o/s);return[(l*a+a/2)/n[0],(u*s+s/2)/n[1]]}},n.Anchors.Perimeter=function(e){e=e||{};var t=e.anchorCount||60,n=e.shape;if(!n)throw new Error("no shape supplied to Perimeter Anchor type");var i=function(){for(var e=.5,n=2*Math.PI/t,i=0,r=[],o=0;o<t;o++){var a=e+e*Math.sin(i),s=e+e*Math.cos(i);r.push([a,s,0,0]),i+=n}return r},r=function(e){for(var n=t/e.length,i=[],r=function(e,r,o,a,s,l,u){n=t*s;for(var c=(o-e)/n,d=(a-r)/n,h=0;h<n;h++)i.push([e+c*h,r+d*h,null==l?0:l,null==u?0:u])},o=0;o<e.length;o++)r.apply(null,e[o]);return i},o=function(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n][0],e[n][1],e[n][2],e[n][3],1/e.length,e[n][4],e[n][5]]);return r(t)},a=function(){return o([[0,0,1,0,0,-1],[1,0,1,1,1,0],[1,1,0,1,0,1],[0,1,0,0,-1,0]])},s={Circle:i,Ellipse:i,Diamond:function(){return o([[.5,0,1,.5],[1,.5,.5,1],[.5,1,0,.5],[0,.5,.5,0]])},Rectangle:a,Square:a,Triangle:function(){return o([[.5,0,1,1],[1,1,0,1],[0,1,.5,0]])},Path:function(e){for(var t=e.points,n=[],i=0,o=0;o<t.length-1;o++){var a=Math.sqrt(Math.pow(t[o][2]-t[o][0])+Math.pow(t[o][3]-t[o][1]));i+=a,n.push([t[o][0],t[o][1],t[o+1][0],t[o+1][1],a])}for(var s=0;s<n.length;s++)n[s][4]=n[s][4]/i;return r(n)}},l=function(e,t){for(var n=[],i=t/180*Math.PI,r=0;r<e.length;r++){var o=e[r][0]-.5,a=e[r][1]-.5;n.push([o*Math.cos(i)-a*Math.sin(i)+.5,o*Math.sin(i)+a*Math.cos(i)+.5,e[r][2],e[r][3]])}return n};if(!s[n])throw new Error("Shape ["+n+"] is unknown by Perimeter Anchor type");var u=s[n](e);e.rotation&&(u=l(u,e.rotation));var c=e.jsPlumbInstance.makeDynamicAnchor(u);return c.type="Perimeter",c}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=(e.jsPlumbUtil,e.jsPlumb);t.DefaultRouter=function(e){this.jsPlumbInstance=e,this.anchorManager=new t.AnchorManager({jsPlumbInstance:e}),this.sourceOrTargetChanged=function(e,t,n,i,r){this.anchorManager.sourceOrTargetChanged(e,t,n,i,r)},this.reset=function(){this.anchorManager.reset()},this.changeId=function(e,t){this.anchorManager.changeId(e,t)},this.elementRemoved=function(e){this.anchorManager.elementRemoved(e)},this.newConnection=function(e){this.anchorManager.newConnection(e)},this.connectionDetached=function(e,t){this.anchorManager.connectionDetached(e,t)},this.redraw=function(e,t,n,i,r,o){return this.anchorManager.redraw(e,t,n,i,r,o)},this.deleteEndpoint=function(e){this.anchorManager.deleteEndpoint(e)},this.rehomeEndpoint=function(e,t,n){this.anchorManager.rehomeEndpoint(e,t,n)},this.addEndpoint=function(e,t){this.anchorManager.addEndpoint(e,t)}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=e.Biltong;t.Segments={AbstractSegment:function(e){this.params=e,this.findClosestPointOnPath=function(e,t){return{d:1/0,x:null,y:null,l:null}},this.getBounds=function(){return{minX:Math.min(e.x1,e.x2),minY:Math.min(e.y1,e.y2),maxX:Math.max(e.x1,e.x2),maxY:Math.max(e.y1,e.y2)}},this.lineIntersection=function(e,t,n,i){return[]},this.boxIntersection=function(e,t,n,i){var r=[];return r.push.apply(r,this.lineIntersection(e,t,e+n,t)),r.push.apply(r,this.lineIntersection(e+n,t,e+n,t+i)),r.push.apply(r,this.lineIntersection(e+n,t+i,e,t+i)),r.push.apply(r,this.lineIntersection(e,t+i,e,t)),r},this.boundingBoxIntersection=function(e){return this.boxIntersection(e.x,e.y,e.w,e.y)}},Straight:function(e){t.Segments.AbstractSegment.apply(this,arguments);var n,r,o,a,s,l,u,c=function(){n=Math.sqrt(Math.pow(s-a,2)+Math.pow(u-l,2)),r=i.gradient({x:a,y:l},{x:s,y:u}),o=-1/r};this.type="Straight",this.getLength=function(){return n},this.getGradient=function(){return r},this.getCoordinates=function(){return{x1:a,y1:l,x2:s,y2:u}},this.setCoordinates=function(e){a=e.x1,l=e.y1,s=e.x2,u=e.y2,c()},this.setCoordinates({x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}),this.getBounds=function(){return{minX:Math.min(a,s),minY:Math.min(l,u),maxX:Math.max(a,s),maxY:Math.max(l,u)}},this.pointOnPath=function(e,t){if(0!==e||t){if(1!==e||t){var r=t?e>0?e:n+e:e*n;return i.pointOnLine({x:a,y:l},{x:s,y:u},r)}return{x:s,y:u}}return{x:a,y:l}},this.gradientAtPoint=function(e){return r},this.pointAlongPathFrom=function(e,t,n){var r=this.pointOnPath(e,n),o=t<=0?{x:a,y:l}:{x:s,y:u};return t<=0&&Math.abs(t)>1&&(t*=-1),i.pointOnLine(r,o,t)};var d=function(e,t,n){return n>=Math.min(e,t)&&n<=Math.max(e,t)},h=function(e,t,n){return Math.abs(n-e)<Math.abs(n-t)?e:t};this.findClosestPointOnPath=function(e,t){var c={d:1/0,x:null,y:null,l:null,x1:a,x2:s,y1:l,y2:u};if(0===r)c.y=l,c.x=d(a,s,e)?e:h(a,s,e);else if(r===1/0||r===-1/0)c.x=a,c.y=d(l,u,t)?t:h(l,u,t);else{var f=l-r*a,p=t-o*e,m=(p-f)/(r-o),v=r*m+f;c.x=d(a,s,m)?m:h(a,s,m),c.y=d(l,u,v)?v:h(l,u,v)}var g=i.lineLength([c.x,c.y],[a,l]);return c.d=i.lineLength([e,t],[c.x,c.y]),c.l=g/n,c};var f=function(e,t,n){return n>t?t<=e&&e<=n:t>=e&&e>=n},p=f;this.lineIntersection=function(e,t,n,o){var c=Math.abs(i.gradient({x:e,y:t},{x:n,y:o})),d=Math.abs(r),h=d===1/0?a:l-d*a,f=[],m=c===1/0?e:t-c*e;if(c!==d)if(c===1/0&&0===d)p(e,a,s)&&p(l,t,o)&&(f=[e,l]);else if(0===c&&d===1/0)p(t,l,u)&&p(a,e,n)&&(f=[a,t]);else{var v,g;c===1/0?(v=e,p(v,a,s)&&(g=d*e+h,p(g,t,o)&&(f=[v,g]))):0===c?(g=t,p(g,l,u)&&(v=(t-h)/d,p(v,e,n)&&(f=[v,g]))):(v=(m-h)/(d-c),g=d*v+h,p(v,a,s)&&p(g,l,u)&&(f=[v,g]))}return f},this.boxIntersection=function(e,t,n,i){var r=[];return r.push.apply(r,this.lineIntersection(e,t,e+n,t)),r.push.apply(r,this.lineIntersection(e+n,t,e+n,t+i)),r.push.apply(r,this.lineIntersection(e+n,t+i,e,t+i)),r.push.apply(r,this.lineIntersection(e,t+i,e,t)),r},this.boundingBoxIntersection=function(e){return this.boxIntersection(e.x,e.y,e.w,e.h)}},Arc:function(e){t.Segments.AbstractSegment.apply(this,arguments);var n=function(t,n){return i.theta([e.cx,e.cy],[t,n])},r=function(e,t){if(e.anticlockwise){var n=e.startAngle<e.endAngle?e.startAngle+o:e.startAngle,i=Math.abs(n-e.endAngle);return n-i*t}var r=e.endAngle<e.startAngle?e.endAngle+o:e.endAngle,a=Math.abs(r-e.startAngle);return e.startAngle+a*t},o=2*Math.PI;this.radius=e.r,this.anticlockwise=e.ac,this.type="Arc",e.startAngle&&e.endAngle?(this.startAngle=e.startAngle,this.endAngle=e.endAngle,this.x1=e.cx+this.radius*Math.cos(e.startAngle),this.y1=e.cy+this.radius*Math.sin(e.startAngle),this.x2=e.cx+this.radius*Math.cos(e.endAngle),this.y2=e.cy+this.radius*Math.sin(e.endAngle)):(this.startAngle=n(e.x1,e.y1),this.endAngle=n(e.x2,e.y2),this.x1=e.x1,this.y1=e.y1,this.x2=e.x2,this.y2=e.y2),this.endAngle<0&&(this.endAngle+=o),this.startAngle<0&&(this.startAngle+=o);var a=this.endAngle<this.startAngle?this.endAngle+o:this.endAngle;this.sweep=Math.abs(a-this.startAngle),this.anticlockwise&&(this.sweep=o-this.sweep);var s=2*Math.PI*this.radius,l=this.sweep/o,u=s*l;this.getLength=function(){return u},this.getBounds=function(){return{minX:e.cx-e.r,maxX:e.cx+e.r,minY:e.cy-e.r,maxY:e.cy+e.r}};var c=1e-10,d=function(e){var t=Math.floor(e),n=Math.ceil(e);return e-t<c?t:n-e<c?n:e};this.pointOnPath=function(t,n){if(0===t)return{x:this.x1,y:this.y1,theta:this.startAngle};if(1===t)return{x:this.x2,y:this.y2,theta:this.endAngle};n&&(t/=u);var i=r(this,t),o=e.cx+e.r*Math.cos(i),a=e.cy+e.r*Math.sin(i);return{x:d(o),y:d(a),theta:i}},this.gradientAtPoint=function(t,n){var r=this.pointOnPath(t,n),o=i.normal([e.cx,e.cy],[r.x,r.y]);return this.anticlockwise||o!==1/0&&o!==-1/0||(o*=-1),o},this.pointAlongPathFrom=function(t,n,i){var r=this.pointOnPath(t,i),o=n/s*2*Math.PI,a=this.anticlockwise?-1:1,l=r.theta+a*o,u=e.cx+this.radius*Math.cos(l),c=e.cy+this.radius*Math.sin(l);return{x:u,y:c}}},Bezier:function(n){this.curve=[{x:n.x1,y:n.y1},{x:n.cp1x,y:n.cp1y},{x:n.cp2x,y:n.cp2y},{x:n.x2,y:n.y2}];var i=function(e){return e[0].x===e[1].x&&e[0].y===e[1].y},r=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},o=function(e){var t={x:0,y:0};if(0===e)return this.curve[0];var n=this.curve.length-1;if(1===e)return this.curve[n];var i=this.curve,r=1-e;if(0===n)return this.curve[0];if(1===n)return{x:r*i[0].x+e*i[1].x,y:r*i[0].y+e*i[1].y};if(n<4){var o,a,s,l=r*r,u=e*e,c=0;return 2===n?(i=[i[0],i[1],i[2],t],o=l,a=r*e*2,s=u):3===n&&(o=l*r,a=l*e*3,s=r*u*3,c=e*u),{x:o*i[0].x+a*i[1].x+s*i[2].x+c*i[3].x,y:o*i[0].y+a*i[1].y+s*i[2].y+c*i[3].y}}return t}.bind(this),a=function(e){var t=[];e--;for(var n=0;n<=e;n++)t.push(o(n/e));return t},s=function(){i(this.curve)&&(this.length=0);var e=16,t=a(e);this.length=0;for(var n=0;n<e-1;n++){var o=t[n],s=t[n+1];this.length+=r(o,s)}}.bind(this);t.Segments.AbstractSegment.apply(this,arguments);this.bounds={minX:Math.min(n.x1,n.x2,n.cp1x,n.cp2x),minY:Math.min(n.y1,n.y2,n.cp1y,n.cp2y),maxX:Math.max(n.x1,n.x2,n.cp1x,n.cp2x),maxY:Math.max(n.y1,n.y2,n.cp1y,n.cp2y)},this.type="Bezier",s();var l=function(t,n,i){return i&&(n=e.jsBezier.locationAlongCurveFrom(t,n>0?0:1,n)),n};this.pointOnPath=function(t,n){return t=l(this.curve,t,n),e.jsBezier.pointOnCurve(this.curve,t)},this.gradientAtPoint=function(t,n){return t=l(this.curve,t,n),e.jsBezier.gradientAtPoint(this.curve,t)},this.pointAlongPathFrom=function(t,n,i){return t=l(this.curve,t,i),e.jsBezier.pointAlongCurveFrom(this.curve,t,n)},this.getLength=function(){return this.length},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(t,n){var i=e.jsBezier.nearestPointOnCurve({x:t,y:n},this.curve);return{d:Math.sqrt(Math.pow(i.point.x-t,2)+Math.pow(i.point.y-n,2)),x:i.point.x,y:i.point.y,l:1-i.location,s:this}},this.lineIntersection=function(t,n,i,r){return e.jsBezier.lineIntersection(t,n,i,r,this.curve)}}},t.SegmentRenderer={getPath:function(e,t){return{Straight:function(t){var n=e.getCoordinates();return(t?"M "+n.x1+" "+n.y1+" ":"")+"L "+n.x2+" "+n.y2},Bezier:function(t){var n=e.params;return(t?"M "+n.x2+" "+n.y2+" ":"")+"C "+n.cp2x+" "+n.cp2y+" "+n.cp1x+" "+n.cp1y+" "+n.x1+" "+n.y1},Arc:function(t){var n=e.params,i=e.sweep>Math.PI?1:0,r=e.anticlockwise?0:1;return(t?"M"+e.x1+" "+e.y1+" ":"")+"A "+e.radius+" "+n.r+" 0 "+i+","+r+" "+e.x2+" "+e.y2}}[e.type](t)}};var r=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}},this.resetBounds()};t.Connectors.AbstractConnector=function(e){r.apply(this,arguments);var o=[],a=0,s=[],l=[],u=e.stub||0,c=n.isArray(u)?u[0]:u,d=n.isArray(u)?u[1]:u,h=e.gap||0,f=n.isArray(h)?h[0]:h,p=n.isArray(h)?h[1]:h,m=null,v=null;this.getPathData=function(){for(var e="",n=0;n<o.length;n++)e+=t.SegmentRenderer.getPath(o[n],0===n),e+=" ";return e},this.findSegmentForPoint=function(e,t){for(var n={d:1/0,s:null,x:null,y:null,l:null},i=0;i<o.length;i++){var r=o[i].findClosestPointOnPath(e,t);r.d<n.d&&(n.d=r.d,n.l=r.l,n.x=r.x,n.y=r.y,n.s=o[i],n.x1=r.x1,n.x2=r.x2,n.y1=r.y1,n.y2=r.y2,n.index=i,n.connectorLocation=s[i][0]+r.l*(s[i][1]-s[i][0]))}return n},this.lineIntersection=function(e,t,n,i){for(var r=[],a=0;a<o.length;a++)r.push.apply(r,o[a].lineIntersection(e,t,n,i));return r},this.boxIntersection=function(e,t,n,i){for(var r=[],a=0;a<o.length;a++)r.push.apply(r,o[a].boxIntersection(e,t,n,i));return r},this.boundingBoxIntersection=function(e){for(var t=[],n=0;n<o.length;n++)t.push.apply(t,o[n].boundingBoxIntersection(e));return t};var g=function(){for(var e=0,t=0;t<o.length;t++){var n=o[t].getLength();l[t]=n/a,s[t]=[e,e+=n/a]}},y=function(e,t){var n,i,r;if(t&&(e=e>0?e/a:(a+e)/a),1===e)n=o.length-1,r=1;else if(0===e)r=0,n=0;else if(e>=.5){for(n=0,r=0,i=s.length-1;i>-1;i--)if(s[i][1]>=e&&s[i][0]<=e){n=i,r=(e-s[i][0])/l[i];break}}else for(n=s.length-1,r=1,i=0;i<s.length;i++)if(s[i][1]>=e){n=i,r=(e-s[i][0])/l[i];break}return{segment:o[n],proportion:r,index:n}},b=function(e,n,i){if(i.x1!==i.x2||i.y1!==i.y2){var r=new t.Segments[n](i);o.push(r),a+=r.getLength(),e.updateBounds(r)}},_=function(){a=o.length=s.length=l.length=0};this.setSegments=function(e){m=[],a=0;for(var t=0;t<e.length;t++)m.push(e[t]),a+=e[t].getLength()},this.getLength=function(){return a};var w=function(e){this.strokeWidth=e.strokeWidth;var t=i.quadrant(e.sourcePos,e.targetPos),n=e.targetPos[0]<e.sourcePos[0],r=e.targetPos[1]<e.sourcePos[1],o=e.strokeWidth||1,a=e.sourceEndpoint.anchor.getOrientation(e.sourceEndpoint),s=e.targetEndpoint.anchor.getOrientation(e.targetEndpoint),l=n?e.targetPos[0]:e.sourcePos[0],u=r?e.targetPos[1]:e.sourcePos[1],h=Math.abs(e.targetPos[0]-e.sourcePos[0]),m=Math.abs(e.targetPos[1]-e.sourcePos[1]);if(0===a[0]&&0===a[1]||0===s[0]&&0===s[1]){var v=h>m?0:1,g=[1,0][v];a=[],s=[],a[v]=e.sourcePos[v]>e.targetPos[v]?-1:1,s[v]=e.sourcePos[v]>e.targetPos[v]?1:-1,a[g]=0,s[g]=0}var y=n?h+f*a[0]:f*a[0],b=r?m+f*a[1]:f*a[1],_=n?p*s[0]:h+p*s[0],w=r?p*s[1]:m+p*s[1],x=a[0]*s[0]+a[1]*s[1],k={sx:y,sy:b,tx:_,ty:w,lw:o,xSpan:Math.abs(_-y),ySpan:Math.abs(w-b),mx:(y+_)/2,my:(b+w)/2,so:a,to:s,x:l,y:u,w:h,h:m,segment:t,startStubX:y+a[0]*c,startStubY:b+a[1]*c,endStubX:_+s[0]*d,endStubY:w+s[1]*d,isXGreaterThanStubTimes2:Math.abs(y-_)>c+d,isYGreaterThanStubTimes2:Math.abs(b-w)>c+d,opposite:-1===x,perpendicular:0===x,orthogonal:1===x,sourceAxis:0===a[0]?"y":"x",points:[l,u,h,m,y,b,_,w],stubs:[c,d]};return k.anchorOrientation=k.opposite?"opposite":k.orthogonal?"orthogonal":"perpendicular",k};this.getSegments=function(){return o},this.updateBounds=function(e){var t=e.getBounds();this.bounds.minX=Math.min(this.bounds.minX,t.minX),this.bounds.maxX=Math.max(this.bounds.maxX,t.maxX),this.bounds.minY=Math.min(this.bounds.minY,t.minY),this.bounds.maxY=Math.max(this.bounds.maxY,t.maxY)};return this.pointOnPath=function(e,t){var n=y(e,t);return n.segment&&n.segment.pointOnPath(n.proportion,!1)||[0,0]},this.gradientAtPoint=function(e,t){var n=y(e,t);return n.segment&&n.segment.gradientAtPoint(n.proportion,!1)||0},this.pointAlongPathFrom=function(e,t,n){var i=y(e,n);return i.segment&&i.segment.pointAlongPathFrom(i.proportion,t,!1)||[0,0]},this.compute=function(e){v=w.call(this,e),_(),this._compute(v,e),this.x=v.points[0],this.y=v.points[1],this.w=v.points[2],this.h=v.points[3],this.segment=v.segment,g()},{addSegment:b,prepareCompute:w,sourceStub:c,targetStub:d,maxStub:Math.max(c,d),sourceGap:f,targetGap:p,maxGap:Math.max(f,p)}},n.extend(t.Connectors.AbstractConnector,r),t.Endpoints.AbstractEndpoint=function(e){r.apply(this,arguments);var t=this.compute=function(e,t,n,i){var r=this._compute.apply(this,arguments);return this.x=r[0],this.y=r[1],this.w=r[2],this.h=r[3],this.bounds.minX=this.x,this.bounds.minY=this.y,this.bounds.maxX=this.x+this.w,this.bounds.maxY=this.y+this.h,r};return{compute:t,cssClass:e.cssClass}},n.extend(t.Endpoints.AbstractEndpoint,r),t.Endpoints.Dot=function(e){this.type="Dot";t.Endpoints.AbstractEndpoint.apply(this,arguments);e=e||{},this.radius=e.radius||10,this.defaultOffset=.5*this.radius,this.defaultInnerRadius=this.radius/3,this._compute=function(e,t,n,i){this.radius=n.radius||this.radius;var r=e[0]-this.radius,o=e[1]-this.radius,a=2*this.radius,s=2*this.radius;if(n.stroke){var l=n.strokeWidth||1;r-=l,o-=l,a+=2*l,s+=2*l}return[r,o,a,s,this.radius]}},n.extend(t.Endpoints.Dot,t.Endpoints.AbstractEndpoint),t.Endpoints.Rectangle=function(e){this.type="Rectangle";t.Endpoints.AbstractEndpoint.apply(this,arguments);e=e||{},this.width=e.width||20,this.height=e.height||20,this._compute=function(e,t,n,i){var r=n.width||this.width,o=n.height||this.height,a=e[0]-r/2,s=e[1]-o/2;return[a,s,r,o]}},n.extend(t.Endpoints.Rectangle,t.Endpoints.AbstractEndpoint);var o=function(e){t.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.displayElements=[]};n.extend(o,t.jsPlumbUIComponent,{getDisplayElements:function(){return this._jsPlumb.displayElements},appendDisplayElement:function(e){this._jsPlumb.displayElements.push(e)}}),t.Endpoints.Image=function(i){this.type="Image",o.apply(this,arguments),t.Endpoints.AbstractEndpoint.apply(this,arguments);var r=i.onload,a=i.src||i.url,s=i.cssClass?" "+i.cssClass:"";this._jsPlumb.img=new Image,this._jsPlumb.ready=!1,this._jsPlumb.initialized=!1,this._jsPlumb.deleted=!1,this._jsPlumb.widthToUse=i.width,this._jsPlumb.heightToUse=i.height,this._jsPlumb.endpoint=i.endpoint,this._jsPlumb.img.onload=function(){null!=this._jsPlumb&&(this._jsPlumb.ready=!0,this._jsPlumb.widthToUse=this._jsPlumb.widthToUse||this._jsPlumb.img.width,this._jsPlumb.heightToUse=this._jsPlumb.heightToUse||this._jsPlumb.img.height,r&&r(this))}.bind(this),this._jsPlumb.endpoint.setImage=function(e,t){var n=e.constructor===String?e:e.src;r=t,this._jsPlumb.img.src=n,null!=this.canvas&&this.canvas.setAttribute("src",this._jsPlumb.img.src)}.bind(this),this._jsPlumb.endpoint.setImage(a,r),this._compute=function(e,t,n,i){return this.anchorPoint=e,this._jsPlumb.ready?[e[0]-this._jsPlumb.widthToUse/2,e[1]-this._jsPlumb.heightToUse/2,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse]:[0,0,0,0]},this.canvas=t.createElement("img",{position:"absolute",margin:0,padding:0,outline:0},this._jsPlumb.instance.endpointClass+s),this._jsPlumb.widthToUse&&this.canvas.setAttribute("width",this._jsPlumb.widthToUse),this._jsPlumb.heightToUse&&this.canvas.setAttribute("height",this._jsPlumb.heightToUse),this._jsPlumb.instance.appendElement(this.canvas),this.actuallyPaint=function(e,t,i){if(!this._jsPlumb.deleted){this._jsPlumb.initialized||(this.canvas.setAttribute("src",this._jsPlumb.img.src),this.appendDisplayElement(this.canvas),this._jsPlumb.initialized=!0);var r=this.anchorPoint[0]-this._jsPlumb.widthToUse/2,o=this.anchorPoint[1]-this._jsPlumb.heightToUse/2;n.sizeElement(this.canvas,r,o,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse)}},this.paint=function(t,n){null!=this._jsPlumb&&(this._jsPlumb.ready?this.actuallyPaint(t,n):e.setTimeout(function(){this.paint(t,n)}.bind(this),200))}},n.extend(t.Endpoints.Image,[o,t.Endpoints.AbstractEndpoint],{cleanup:function(e){e&&(this._jsPlumb.deleted=!0,this.canvas&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null)}}),t.Endpoints.Blank=function(e){t.Endpoints.AbstractEndpoint.apply(this,arguments);this.type="Blank",o.apply(this,arguments),this._compute=function(e,t,n,i){return[e[0],e[1],10,0]};var i=e.cssClass?" "+e.cssClass:"";this.canvas=t.createElement("div",{display:"block",width:"1px",height:"1px",background:"transparent",position:"absolute"},this._jsPlumb.instance.endpointClass+i),this._jsPlumb.instance.appendElement(this.canvas),this.paint=function(e,t){n.sizeElement(this.canvas,this.x,this.y,this.w,this.h)}},n.extend(t.Endpoints.Blank,[t.Endpoints.AbstractEndpoint,o],{cleanup:function(){this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}),t.Endpoints.Triangle=function(e){this.type="Triangle",t.Endpoints.AbstractEndpoint.apply(this,arguments);var n=this;e=e||{},e.width=e.width||55,e.height=e.height||55,this.width=e.width,this.height=e.height,this._compute=function(e,t,i,r){var o=i.width||n.width,a=i.height||n.height,s=e[0]-o/2,l=e[1]-a/2;return[s,l,o,a]}};var a=t.Overlays.AbstractOverlay=function(e){this.visible=!0,this.isAppendedAtTopLevel=!0,this.component=e.component,this.loc=null==e.location?.5:e.location,this.endpointLoc=null==e.endpointLocation?[.5,.5]:e.endpointLocation,this.visible=!1!==e.visible};a.prototype={cleanup:function(e){e&&(this.component=null,this.canvas=null,this.endpointLoc=null)},reattach:function(e,t){},setVisible:function(e){this.visible=e,this.component.repaint()},isVisible:function(){return this.visible},hide:function(){this.setVisible(!1)},show:function(){this.setVisible(!0)},incrementLocation:function(e){this.loc+=e,this.component.repaint()},setLocation:function(e){this.loc=e,this.component.repaint()},getLocation:function(){return this.loc},updateFrom:function(){}},t.Overlays.Arrow=function(e){this.type="Arrow",a.apply(this,arguments),this.isAppendedAtTopLevel=!1,e=e||{};var r=this;this.length=e.length||20,this.width=e.width||20,this.id=e.id,this.direction=(e.direction||1)<0?-1:1;var o=e.paintStyle||{"stroke-width":1},s=e.foldback||.623;this.computeMaxSize=function(){return 1.5*r.width},this.elementCreated=function(n,i){if(this.path=n,e.events)for(var r in e.events)t.on(n,r,e.events[r])},this.draw=function(e,t){var r,a,l,u,c;if(e.pointAlongPathFrom){if(n.isString(this.loc)||this.loc>1||this.loc<0){var d=parseInt(this.loc,10),h=this.loc<0?1:0;r=e.pointAlongPathFrom(h,d,!1),a=e.pointAlongPathFrom(h,d-this.direction*this.length/2,!1),l=i.pointOnLine(r,a,this.length)}else if(1===this.loc){if(r=e.pointOnPath(this.loc),a=e.pointAlongPathFrom(this.loc,-this.length),l=i.pointOnLine(r,a,this.length),-1===this.direction){var f=l;l=r,r=f}}else if(0===this.loc){if(l=e.pointOnPath(this.loc),a=e.pointAlongPathFrom(this.loc,this.length),r=i.pointOnLine(l,a,this.length),-1===this.direction){var p=l;l=r,r=p}}else r=e.pointAlongPathFrom(this.loc,this.direction*this.length/2),a=e.pointOnPath(this.loc),l=i.pointOnLine(r,a,this.length);u=i.perpendicularLineTo(r,l,this.width),c=i.pointOnLine(r,l,s*this.length);var m={hxy:r,tail:u,cxy:c},v=o.stroke||t.stroke,g=o.fill||t.stroke,y=o.strokeWidth||t.strokeWidth;return{component:e,d:m,"stroke-width":y,stroke:v,fill:g,minX:Math.min(r.x,u[0].x,u[1].x),maxX:Math.max(r.x,u[0].x,u[1].x),minY:Math.min(r.y,u[0].y,u[1].y),maxY:Math.max(r.y,u[0].y,u[1].y)}}return{component:e,minX:0,maxX:0,minY:0,maxY:0}}},n.extend(t.Overlays.Arrow,a,{updateFrom:function(e){this.length=e.length||this.length,this.width=e.width||this.width,this.direction=null!=e.direction?e.direction:this.direction,this.foldback=e.foldback||this.foldback},cleanup:function(){this.path&&this.path.parentNode&&this.path.parentNode.removeChild(this.path)}}),t.Overlays.PlainArrow=function(e){e=e||{};var n=t.extend(e,{foldback:1});t.Overlays.Arrow.call(this,n),this.type="PlainArrow"},n.extend(t.Overlays.PlainArrow,t.Overlays.Arrow),t.Overlays.Diamond=function(e){e=e||{};var n=e.length||40,i=t.extend(e,{length:n/2,foldback:2});t.Overlays.Arrow.call(this,i),this.type="Diamond"},n.extend(t.Overlays.Diamond,t.Overlays.Arrow);var s=function(e,t){return(null==e._jsPlumb.cachedDimensions||t)&&(e._jsPlumb.cachedDimensions=e.getDimensions()),e._jsPlumb.cachedDimensions},l=function(e){t.jsPlumbUIComponent.apply(this,arguments),a.apply(this,arguments);var i=this.fire;this.fire=function(){i.apply(this,arguments),this.component&&this.component.fire.apply(this.component,arguments)},this.detached=!1,this.id=e.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=e.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=e.create,this._jsPlumb.initiallyInvisible=!1===e.visible,this.getElement=function(){if(null==this._jsPlumb.div){var n=this._jsPlumb.div=t.getElement(this._jsPlumb.create(this._jsPlumb.component));n.style.position="absolute",jsPlumb.addClass(n,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:e.cssClass?e.cssClass:"")),this._jsPlumb.instance.appendElement(n),this._jsPlumb.instance.getId(n),this.canvas=n;var i="translate(-50%, -50%)";n.style.webkitTransform=i,n.style.mozTransform=i,n.style.msTransform=i,n.style.oTransform=i,n.style.transform=i,n._jsPlumb=this,!1===e.visible&&(n.style.display="none")}return this._jsPlumb.div},this.draw=function(e,t,i){var r=s(this);if(null!=r&&2===r.length){var o={x:0,y:0};if(i)o={x:i[0],y:i[1]};else if(e.pointOnPath){var a=this.loc,l=!1;(n.isString(this.loc)||this.loc<0||this.loc>1)&&(a=parseInt(this.loc,10),l=!0),o=e.pointOnPath(a,l)}else{var u=this.loc.constructor===Array?this.loc:this.endpointLoc;o={x:u[0]*e.w,y:u[1]*e.h}}var c=o.x-r[0]/2,d=o.y-r[1]/2;return{component:e,d:{minx:c,miny:d,td:r,cxy:o},minX:c,maxX:c+r[0],minY:d,maxY:d+r[1]}}return{minX:0,maxX:0,minY:0,maxY:0}}};n.extend(l,[t.jsPlumbUIComponent,a],{getDimensions:function(){return[1,1]},setVisible:function(e){this._jsPlumb.div&&(this._jsPlumb.div.style.display=e?"block":"none",e&&this._jsPlumb.initiallyInvisible&&(s(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(e){e?null!=this._jsPlumb.div&&(this._jsPlumb.div._jsPlumb=null,this._jsPlumb.instance.removeElement(this._jsPlumb.div)):(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div),this.detached=!0)},reattach:function(e,t){null!=this._jsPlumb.div&&e.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var e=s(this);return Math.max(e[0],e[1])},paint:function(e,t){this._jsPlumb.initialised||(this.getElement(),e.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=e.component.x+e.d.minx+"px",this._jsPlumb.div.style.top=e.component.y+e.d.miny+"px"}}),t.Overlays.Custom=function(e){this.type="Custom",l.apply(this,arguments)},n.extend(t.Overlays.Custom,l),t.Overlays.GuideLines=function(){var e=this;e.length=50,e.strokeWidth=5,this.type="GuideLines",a.apply(this,arguments),t.jsPlumbUIComponent.apply(this,arguments),this.draw=function(t,n){var r=t.pointAlongPathFrom(e.loc,e.length/2),o=t.pointOnPath(e.loc),a=i.pointOnLine(r,o,e.length),s=i.perpendicularLineTo(r,a,40),l=i.perpendicularLineTo(a,r,20);return{connector:t,head:r,tail:a,headLine:l,tailLine:s,minX:Math.min(r.x,a.x,l[0].x,l[1].x),minY:Math.min(r.y,a.y,l[0].y,l[1].y),maxX:Math.max(r.x,a.x,l[0].x,l[1].x),maxY:Math.max(r.y,a.y,l[0].y,l[1].y)}}},t.Overlays.Label=function(e){this.labelStyle=e.labelStyle;this.cssClass=null!=this.labelStyle?this.labelStyle.cssClass:null;var n=t.extend({create:function(){return t.createElement("div")}},e);if(t.Overlays.Custom.call(this,n),this.type="Label",this.label=e.label||"",this.labelText=null,this.labelStyle){var i=this.getElement();if(this.labelStyle.font=this.labelStyle.font||"12px sans-serif",i.style.font=this.labelStyle.font,i.style.color=this.labelStyle.color||"black",this.labelStyle.fill&&(i.style.background=this.labelStyle.fill),this.labelStyle.borderWidth>0){var r=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";i.style.border=this.labelStyle.borderWidth+"px solid "+r}this.labelStyle.padding&&(i.style.padding=this.labelStyle.padding)}},n.extend(t.Overlays.Label,t.Overlays.Custom,{cleanup:function(e){e&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(e){this.label=e,this.labelText=null,this.clearCachedDimensions(),this.update(),this.component.repaint()},getDimensions:function(){return this.update(),l.prototype.getDimensions.apply(this,arguments)},update:function(){if("function"===typeof this.label){var e=this.label(this);this.getElement().innerHTML=e.replace(/\r\n/g,"<br/>")}else null==this.labelText&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"<br/>"))},updateFrom:function(e){null!=e.label&&this.setLabel(e.label)}})}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumbUtil,n=e.jsPlumbInstance,i="jtk-group-collapsed",r="jtk-group-expanded",o="[jtk-group-content]",a="elementDraggable",s="stop",l="revert",u="_groupManager",c="_jsPlumbGroup",d="_jsPlumbGroupDrag",h="group:addMember",f="group:removeMember",p="group:add",m="group:remove",v="group:expand",g="group:collapse",y="groupDragStop",b="connectionMoved",_="internal.connectionDetached",w="removeAll",x="orphanAll",k="show",M="hide",C=function(e){var n={},o={},a={},s=this;function l(t,n){var i=e.getContainer(),r=!1;while(!r){if(null==t||t===i)return!1;if(t===n)return!0;t=t.parentNode}}function u(e){delete e.proxies;var n,i=o[e.id];null!=i&&(n=function(t){return t.id===e.id},t.removeWithFunction(i.connections.source,n),t.removeWithFunction(i.connections.target,n),delete o[e.id]),i=a[e.id],null!=i&&(n=function(t){return t.id===e.id},t.removeWithFunction(i.connections.source,n),t.removeWithFunction(i.connections.target,n),delete a[e.id])}function d(t,n){for(var i=t.getEl().querySelectorAll(".jtk-managed"),r=0;r<i.length;r++)e[n?k:M](i[r],!0)}e.bind("connection",(function(n){var i=e.getGroupFor(n.source),r=e.getGroupFor(n.target);null!=i&&null!=r&&i===r?(o[n.connection.id]=i,a[n.connection.id]=i):(null!=i&&(t.suggest(i.connections.source,n.connection),o[n.connection.id]=i),null!=r&&(t.suggest(r.connections.target,n.connection),a[n.connection.id]=r))})),e.bind(_,(function(e){u(e.connection)})),e.bind(b,(function(e){var t=0===e.index?o:a,n=t[e.connection.id];if(n){var i=n.connections[0===e.index?"source":"target"],r=i.indexOf(e.connection);-1!==r&&i.splice(r,1)}})),this.addGroup=function(t){e.addClass(t.getEl(),r),n[t.id]=t,t.manager=this,C(t),e.fire(p,{group:t})},this.addToGroup=function(t,n,i){if(t=this.getGroup(t),t){var r=t.getEl();if(n._isJsPlumbGroup)return;var o=n._jsPlumbGroup;if(o!==t){e.removeFromDragSelection(n);var a=e.getOffset(n,!0),l=t.collapsed?e.getOffset(r,!0):e.getOffset(t.getDragArea(),!0);null!=o&&(o.remove(n,!1,i,!1,t),s.updateConnectionsForGroup(o)),t.add(n,i);var u=function(e,n){var i=0===n?1:0;e.each((function(e){e.setVisible(!1),e.endpoints[i].element._jsPlumbGroup===t?(e.endpoints[i].setVisible(!1),y(e,i,t)):(e.endpoints[n].setVisible(!1),f(e,n,t))}))};t.collapsed&&(u(e.select({source:n}),0),u(e.select({target:n}),1));var c=e.getId(n);e.dragManager.setParent(n,c,r,e.getId(r),a);var d={left:a.left-l.left,top:a.top-l.top};if(e.setPosition(n,d),e.dragManager.revalidateParent(n,c,a),s.updateConnectionsForGroup(t),e.revalidate(c),!i){var p={group:t,el:n,pos:d};o&&(p.sourceGroup=o),e.fire(h,p)}}}},this.removeFromGroup=function(e,t,n){if(e=this.getGroup(e),e){if(e.collapsed){var i=function(n,i){for(var r=0;r<n.length;r++){var o=n[r];if(o.proxies)for(var a=0;a<o.proxies.length;a++)if(null!=o.proxies[a]){var s=o.proxies[a].originalEp.element;(s===t||l(s,t))&&y(o,i,e)}}};i(e.connections.source.slice(),0),i(e.connections.target.slice(),1)}e.remove(t,null,n)}},this.getGroup=function(e){var i=e;if(t.isString(e)&&(i=n[e],null==i))throw new TypeError("No such group ["+e+"]");return i},this.getGroups=function(){var e=[];for(var t in n)e.push(n[t]);return e},this.removeGroup=function(t,i,r,o){t=this.getGroup(t),this.expandGroup(t,!0);var a=t[i?w:x](r,o);return e.remove(t.getEl()),delete n[t.id],delete e._groups[t.id],e.fire(m,{group:t}),a},this.removeAllGroups=function(e,t,i){for(var r in n)this.removeGroup(n[r],e,t,i)};var f=function(t,n,i){var r=t.endpoints[0===n?1:0].element;if(!r[c]||r[c].shouldProxy()||!r[c].collapsed){var o=i.getEl(),a=e.getId(o);e.proxyConnection(t,n,o,a,(function(e,t){return i.getEndpoint(e,t)}),(function(e,t){return i.getAnchor(e,t)}))}};this.collapseGroup=function(t){if(t=this.getGroup(t),null!=t&&!t.collapsed){var n=t.getEl();if(d(t,!1),t.shouldProxy()){var o=function(e,n){for(var i=0;i<e.length;i++){var r=e[i];f(r,n,t)}};o(t.connections.source,0),o(t.connections.target,1)}t.collapsed=!0,e.removeClass(n,r),e.addClass(n,i),e.revalidate(n),e.fire(g,{group:t})}};var y=function(t,n,i){e.unproxyConnection(t,n,e.getId(i.getEl()))};function C(t){for(var n=t.getMembers().slice(),i=[],r=0;r<n.length;r++)Array.prototype.push.apply(i,n[r].querySelectorAll(".jtk-managed"));Array.prototype.push.apply(n,i);var s=e.getConnections({source:n,scope:"*"},!0),l=e.getConnections({target:n,scope:"*"},!0),u={};t.connections.source.length=0,t.connections.target.length=0;var c=function(n){for(var i=0;i<n.length;i++)if(!u[n[i].id]){u[n[i].id]=!0;var r=e.getGroupFor(n[i].source),s=e.getGroupFor(n[i].target);r===t?(s!==t&&t.connections.source.push(n[i]),o[n[i].id]=t):s===t&&(t.connections.target.push(n[i]),a[n[i].id]=t)}};c(s),c(l)}this.expandGroup=function(t,n){if(t=this.getGroup(t),null!=t&&t.collapsed){var o=t.getEl();if(d(t,!0),t.shouldProxy()){var a=function(e,n){for(var i=0;i<e.length;i++){var r=e[i];y(r,n,t)}};a(t.connections.source,0),a(t.connections.target,1)}t.collapsed=!1,e.addClass(o,r),e.removeClass(o,i),e.revalidate(o),this.repaintGroup(t),n||e.fire(v,{group:t})}},this.repaintGroup=function(t){t=this.getGroup(t);for(var n=t.getMembers(),i=0;i<n.length;i++)e.revalidate(n[i])},this.updateConnectionsForGroup=C,this.refreshAllGroups=function(){for(var t in n)C(n[t]),e.dragManager.updateOffsets(e.getId(n[t].getEl()))}},S=function(n,i){var r=this,u=i.el;this.getEl=function(){return u},this.id=i.id||t.uuid(),u._isJsPlumbGroup=!0;var h=this.getDragArea=function(){var e=n.getSelector(u,o);return e&&e.length>0?e[0]:u},p=!0===i.ghost,m=p||!0===i.constrain,v=!1!==i.revert,g=!0===i.orphan,b=!0===i.prune,_=!0===i.dropOverride,w=!1!==i.proxied,x=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(e,t){return i.anchor||"Continuous"},this.getEndpoint=function(e,t){return i.endpoint||["Dot",{radius:10}]},this.collapsed=!1,!1!==i.draggable){var k={drag:function(){for(var e=0;e<x.length;e++)n.draw(x[e])},stop:function(e){n.fire(y,jsPlumb.extend(e,{group:r}))},scope:d};i.dragOptions&&e.jsPlumb.extend(k,i.dragOptions),n.draggable(i.el,k)}!1!==i.droppable&&n.droppable(i.el,{drop:function(e){var t=e.drag.el;if(!t._isJsPlumbGroup){var i=t._jsPlumbGroup;if(i!==r){if(null!=i&&i.overrideDrop(t,r))return;n.getGroupManager().addToGroup(r,t,!1)}}}});var M=function(e,t){for(var n=null==e.nodeType?e:[e],i=0;i<n.length;i++)t(n[i])};function C(e){return e.offsetParent}function S(e,t){var i=C(e),r=n.getSize(i),o=n.getSize(e),a=t[0],s=a+o[0],l=t[1],u=l+o[1];return s>0&&a<r[0]&&u>0&&l<r[1]}function D(e){var t=n.getId(e),i=n.getOffset(e);return e.parentNode.removeChild(e),n.getContainer().appendChild(e),n.setPosition(e,i),E(e),n.dragManager.clearParent(e,t),[t,i]}function L(e){var t=[];function i(e,t,i){var r=null;if(!S(e,[t,i])){var o=e._jsPlumbGroup;b?n.remove(e):r=D(e),o.remove(e)}return r}for(var r=0;r<e.selection.length;r++)t.push(i(e.selection[r][0],e.selection[r][1].left,e.selection[r][1].top));return 1===t.length?t[0]:t}function T(e){var t=n.getId(e);n.revalidate(e),n.dragManager.revalidateParent(e,t)}function E(e){e._katavorioDrag&&((b||g)&&e._katavorioDrag.off(s,L),b||g||!v||(e._katavorioDrag.off(l,T),e._katavorioDrag.setRevert(null)))}function P(e){e._katavorioDrag&&((b||g)&&e._katavorioDrag.on(s,L),m&&e._katavorioDrag.setConstrain(!0),p&&e._katavorioDrag.setUseGhostProxy(!0),b||g||!v||(e._katavorioDrag.on(l,T),e._katavorioDrag.setRevert((function(e,t){return!S(e,t)}))))}this.overrideDrop=function(e,t){return _&&(v||b||g)},this.add=function(e,t){var i=h();M(e,(function(e){if(null!=e._jsPlumbGroup){if(e._jsPlumbGroup===r)return;e._jsPlumbGroup.remove(e,!0,t,!1)}e._jsPlumbGroup=r,x.push(e),n.isAlreadyDraggable(e)&&P(e),e.parentNode!==i&&i.appendChild(e)})),n.getGroupManager().updateConnectionsForGroup(r)},this.remove=function(e,i,o,a,s){M(e,(function(e){if(e._jsPlumbGroup===r){if(delete e._jsPlumbGroup,t.removeWithFunction(x,(function(t){return t===e})),i)try{r.getDragArea().removeChild(e)}catch(l){jsPlumbUtil.log("Could not remove element from Group "+l)}if(E(e),!o){var a={group:r,el:e};s&&(a.targetGroup=s),n.fire(f,a)}}})),a||n.getGroupManager().updateConnectionsForGroup(r)},this.removeAll=function(e,t){for(var i=0,o=x.length;i<o;i++){var a=x[0];r.remove(a,e,t,!0),n.remove(a,!0)}x.length=0,n.getGroupManager().updateConnectionsForGroup(r)},this.orphanAll=function(){for(var e={},t=0;t<x.length;t++){var n=D(x[t]);e[n[0]]=n[1]}return x.length=0,e},this.getMembers=function(){return x},u[c]=this,n.bind(a,function(e){e.el._jsPlumbGroup===this&&P(e.el)}.bind(this)),this.shouldProxy=function(){return w},n.getGroupManager().addGroup(this)};n.prototype.addGroup=function(e){var t=this;if(t._groups=t._groups||{},null!=t._groups[e.id])throw new TypeError("cannot create Group ["+e.id+"]; a Group with that ID exists");if(null!=e.el[c])throw new TypeError("cannot create Group ["+e.id+"]; the given element is already a Group");var n=new S(t,e);return t._groups[n.id]=n,e.collapsed&&this.collapseGroup(n),n},n.prototype.addToGroup=function(e,t,n){var i=function(t){var i=this.getId(t);this.manage(i,t),this.getGroupManager().addToGroup(e,t,n)}.bind(this);if(Array.isArray(t))for(var r=0;r<t.length;r++)i(t[r]);else i(t)},n.prototype.removeFromGroup=function(e,t,n){this.getGroupManager().removeFromGroup(e,t,n),this.getContainer().appendChild(t)},n.prototype.removeGroup=function(e,t,n,i){return this.getGroupManager().removeGroup(e,t,n,i)},n.prototype.removeAllGroups=function(e,t,n){this.getGroupManager().removeAllGroups(e,t,n)},n.prototype.getGroup=function(e){return this.getGroupManager().getGroup(e)},n.prototype.getGroups=function(){return this.getGroupManager().getGroups()},n.prototype.expandGroup=function(e){this.getGroupManager().expandGroup(e)},n.prototype.collapseGroup=function(e){this.getGroupManager().collapseGroup(e)},n.prototype.repaintGroup=function(e){this.getGroupManager().repaintGroup(e)},n.prototype.toggleGroup=function(e){e=this.getGroupManager().getGroup(e),null!=e&&this.getGroupManager()[e.collapsed?"expandGroup":"collapseGroup"](e)},n.prototype.getGroupManager=function(){var e=this[u];return null==e&&(e=this[u]=new C(this)),e},n.prototype.removeGroupManager=function(){delete this[u]},n.prototype.getGroupFor=function(e){if(e=this.getElement(e),e){var t=this.getContainer(),n=!1,i=null;while(!n)null==e||e===t?n=!0:e[c]?(i=e[c],e,n=!0):e=e.parentNode;return i}}}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i="Straight",r="Arc",o=function(e){this.type="Flowchart",e=e||{},e.stub=null==e.stub?30:e.stub;var n,o=t.Connectors.AbstractConnector.apply(this,arguments),a=null==e.midpoint||isNaN(e.midpoint)?.5:e.midpoint,s=!0===e.alwaysRespectStubs,l=null,u=null,c=null!=e.cornerRadius?e.cornerRadius:0,d=(e.loopbackRadius,function(e){return e<0?-1:0===e?0:1}),h=function(e){return[d(e[2]-e[0]),d(e[3]-e[1])]},f=function(e,t,n,i){if(l!==t||u!==n){var r=null==l?i.sx:l,o=null==u?i.sy:u,a=r===t?"v":"h";l=t,u=n,e.push([r,o,t,n,a])}},p=function(e){return Math.sqrt(Math.pow(e[0]-e[2],2)+Math.pow(e[1]-e[3],2))},m=function(e){var t=[];return t.push.apply(t,e),t},v=function(e,t,n){for(var a,s,l,u=null,d=0;d<t.length-1;d++){if(u=u||m(t[d]),a=m(t[d+1]),s=h(u),l=h(a),c>0&&u[4]!==a[4]){var f=Math.min(p(u),p(a)),v=Math.min(c,f/2);u[2]-=s[0]*v,u[3]-=s[1]*v,a[0]+=l[0]*v,a[1]+=l[1]*v;var g=s[1]===l[0]&&1===l[0]||s[1]===l[0]&&0===l[0]&&s[0]!==l[1]||s[1]===l[0]&&-1===l[0],y=a[1]>u[3]?1:-1,b=a[0]>u[2]?1:-1,_=y===b,w=_&&g||!_&&!g?a[0]:u[2],x=_&&g||!_&&!g?u[3]:a[1];o.addSegment(e,i,{x1:u[0],y1:u[1],x2:u[2],y2:u[3]}),o.addSegment(e,r,{r:v,x1:u[2],y1:u[3],x2:a[0],y2:a[1],cx:w,cy:x,ac:g})}else{var k=u[2]===u[0]?0:u[2]>u[0]?n.lw/2:-n.lw/2,M=u[3]===u[1]?0:u[3]>u[1]?n.lw/2:-n.lw/2;o.addSegment(e,i,{x1:u[0]-k,y1:u[1]-M,x2:u[2]+k,y2:u[3]+M})}u=a}null!=a&&o.addSegment(e,i,{x1:a[0],y1:a[1],x2:a[2],y2:a[3]})};this.midpoint=a,this._compute=function(e,t){n=[],l=null,u=null,null;var i=function(){return[e.startStubX,e.startStubY,e.endStubX,e.endStubY]},r={perpendicular:i,orthogonal:i,opposite:function(t){var n=e,i="x"===t?0:1,r={x:function(){return 1===n.so[i]&&(n.startStubX>n.endStubX&&n.tx>n.startStubX||n.sx>n.endStubX&&n.tx>n.sx)||-1===n.so[i]&&(n.startStubX<n.endStubX&&n.tx<n.startStubX||n.sx<n.endStubX&&n.tx<n.sx)},y:function(){return 1===n.so[i]&&(n.startStubY>n.endStubY&&n.ty>n.startStubY||n.sy>n.endStubY&&n.ty>n.sy)||-1===n.so[i]&&(n.startStubY<n.endStubY&&n.ty<n.startStubY||n.sy<n.endStubY&&n.ty<n.sy)}};return!s&&r[t]()?{x:[(e.sx+e.tx)/2,e.startStubY,(e.sx+e.tx)/2,e.endStubY],y:[e.startStubX,(e.sy+e.ty)/2,e.endStubX,(e.sy+e.ty)/2]}[t]:[e.startStubX,e.startStubY,e.endStubX,e.endStubY]}},c=r[e.anchorOrientation](e.sourceAxis),d="x"===e.sourceAxis?0:1,h="x"===e.sourceAxis?1:0,p=c[d],m=c[h],g=c[d+2],y=c[h+2];f(n,c[0],c[1],e);var b=e.startStubX+(e.endStubX-e.startStubX)*a,_=e.startStubY+(e.endStubY-e.startStubY)*a,w={x:[0,1],y:[1,0]},x={perpendicular:function(t){var n=e,i={x:[[[1,2,3,4],null,[2,1,4,3]],null,[[4,3,2,1],null,[3,4,1,2]]],y:[[[3,2,1,4],null,[2,3,4,1]],null,[[4,1,2,3],null,[1,4,3,2]]]},r={x:[[n.startStubX,n.endStubX],null,[n.endStubX,n.startStubX]],y:[[n.startStubY,n.endStubY],null,[n.endStubY,n.startStubY]]},o={x:[[b,n.startStubY],[b,n.endStubY]],y:[[n.startStubX,_],[n.endStubX,_]]},a={x:[[n.endStubX,n.startStubY]],y:[[n.startStubX,n.endStubY]]},s={x:[[n.startStubX,n.endStubY],[n.endStubX,n.endStubY]],y:[[n.endStubX,n.startStubY],[n.endStubX,n.endStubY]]},l={x:[[n.startStubX,_],[n.endStubX,_],[n.endStubX,n.endStubY]],y:[[b,n.startStubY],[b,n.endStubY],[n.endStubX,n.endStubY]]},u={x:[n.startStubY,n.endStubY],y:[n.startStubX,n.endStubX]},c=w[t][0],d=w[t][1],h=n.so[c]+1,f=n.to[d]+1,p=-1===n.to[d]&&u[t][1]<u[t][0]||1===n.to[d]&&u[t][1]>u[t][0],m=r[t][h][0],v=r[t][h][1],g=i[t][h][f];return n.segment===g[3]||n.segment===g[2]&&p?o[t]:n.segment===g[2]&&v<m?a[t]:n.segment===g[2]&&v>=m||n.segment===g[1]&&!p?l[t]:n.segment===g[0]||n.segment===g[1]&&p?s[t]:void 0},orthogonal:function(t,n,i,r,o){var a=e,s={x:-1===a.so[0]?Math.min(n,r):Math.max(n,r),y:-1===a.so[1]?Math.min(n,r):Math.max(n,r)}[t];return{x:[[s,i],[s,o],[r,o]],y:[[i,s],[o,s],[o,r]]}[t]},opposite:function(n,i,r,a){var s=e,l={x:"y",y:"x"}[n],u={x:"height",y:"width"}[n],c=s["is"+n.toUpperCase()+"GreaterThanStubTimes2"];if(t.sourceEndpoint.elementId===t.targetEndpoint.elementId){var h=r+(1-t.sourceEndpoint.anchor[l])*t.sourceInfo[u]+o.maxStub;return{x:[[i,h],[a,h]],y:[[h,i],[h,a]]}[n]}return!c||1===s.so[d]&&i>a||-1===s.so[d]&&i<a?{x:[[i,_],[a,_]],y:[[b,i],[b,a]]}[n]:1===s.so[d]&&i<a||-1===s.so[d]&&i>a?{x:[[b,s.sy],[b,s.ty]],y:[[s.sx,_],[s.tx,_]]}[n]:void 0}},k=x[e.anchorOrientation](e.sourceAxis,p,m,g,y);if(k)for(var M=0;M<k.length;M++)f(n,k[M][0],k[M][1],e);f(n,c[2],c[3],e),f(n,e.tx,e.ty,e),v(this,n,e)}};t.Connectors.Flowchart=o,n.extend(t.Connectors.Flowchart,t.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil;t.Connectors.AbstractBezierConnector=function(e){e=e||{};var n,i=!1!==e.showLoopback,r=(e.curviness,e.margin||5),o=(e.proximityLimit,e.orientation&&"clockwise"===e.orientation),a=e.loopbackRadius||25;return this._compute=function(e,t){var s=t.sourcePos,l=t.targetPos,u=Math.abs(s[0]-l[0]),c=Math.abs(s[1]-l[1]);if(i&&t.sourceEndpoint.elementId===t.targetEndpoint.elementId){!0;var d=t.sourcePos[0],h=t.sourcePos[1]-r,f=d,p=h-a,m=f-a,v=p-a;u=2*a,c=2*a,e.points[0]=m,e.points[1]=v,e.points[2]=u,e.points[3]=c,n.addSegment(this,"Arc",{loopback:!0,x1:d-m+4,y1:h-v,startAngle:0,endAngle:2*Math.PI,r:a,ac:!o,x2:d-m-4,y2:h-v,cx:f-m,cy:p-v})}else!1,this._computeBezier(e,t,s,l,u,c)},n=t.Connectors.AbstractConnector.apply(this,arguments),n},n.extend(t.Connectors.AbstractBezierConnector,t.Connectors.AbstractConnector);var i=function(e){e=e||{},this.type="Bezier";var n=t.Connectors.AbstractBezierConnector.apply(this,arguments),i=e.curviness||150,r=10;this.getCurviness=function(){return i},this._findControlPoint=function(e,t,n,o,a,s,l){var u=s[0]!==l[0]||s[1]===l[1],c=[];return u?(0===l[0]?c.push(n[0]<t[0]?e[0]+r:e[0]-r):c.push(e[0]+i*l[0]),0===l[1]?c.push(n[1]<t[1]?e[1]+r:e[1]-r):c.push(e[1]+i*s[1])):(0===s[0]?c.push(t[0]<n[0]?e[0]+r:e[0]-r):c.push(e[0]-i*s[0]),0===s[1]?c.push(t[1]<n[1]?e[1]+r:e[1]-r):c.push(e[1]+i*l[1])),c},this._computeBezier=function(e,t,i,r,o,a){var s,l,u=i[0]<r[0]?o:0,c=i[1]<r[1]?a:0,d=i[0]<r[0]?0:o,h=i[1]<r[1]?0:a;s=this._findControlPoint([u,c],i,r,t.sourceEndpoint,t.targetEndpoint,e.so,e.to),l=this._findControlPoint([d,h],r,i,t.targetEndpoint,t.sourceEndpoint,e.to,e.so),n.addSegment(this,"Bezier",{x1:u,y1:c,x2:d,y2:h,cp1x:s[0],cp1y:s[1],cp2x:l[0],cp2y:l[1]})}};t.Connectors.Bezier=i,n.extend(i,t.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=function(e,t,n,i){return e<=n&&i<=t?1:e<=n&&t<=i?2:n<=e&&i>=t?3:4},r=function(e,t,n,i,r,o,a,s,l){return s<=l?[e,t]:1===n?i[3]<=0&&r[3]>=1?[e+(i[2]<.5?-1*o:o),t]:i[2]>=1&&r[2]<=0?[e,t+(i[3]<.5?-1*a:a)]:[e+-1*o,t+-1*a]:2===n?i[3]>=1&&r[3]<=0?[e+(i[2]<.5?-1*o:o),t]:i[2]>=1&&r[2]<=0?[e,t+(i[3]<.5?-1*a:a)]:[e+o,t+-1*a]:3===n?i[3]>=1&&r[3]<=0?[e+(i[2]<.5?-1*o:o),t]:i[2]<=0&&r[2]>=1?[e,t+(i[3]<.5?-1*a:a)]:[e+-1*o,t+-1*a]:4===n?i[3]<=0&&r[3]>=1?[e+(i[2]<.5?-1*o:o),t]:i[2]<=0&&r[2]>=1?[e,t+(i[3]<.5?-1*a:a)]:[e+o,t+-1*a]:void 0},o=function(e){e=e||{},this.type="StateMachine";var n,o=t.Connectors.AbstractBezierConnector.apply(this,arguments),a=e.curviness||10,s=e.margin||5,l=e.proximityLimit||80;e.orientation&&e.orientation;this._computeBezier=function(e,t,u,c,d,h){var f=t.sourcePos[0]<t.targetPos[0]?0:d,p=t.sourcePos[1]<t.targetPos[1]?0:h,m=t.sourcePos[0]<t.targetPos[0]?d:0,v=t.sourcePos[1]<t.targetPos[1]?h:0;0===t.sourcePos[2]&&(f-=s),1===t.sourcePos[2]&&(f+=s),0===t.sourcePos[3]&&(p-=s),1===t.sourcePos[3]&&(p+=s),0===t.targetPos[2]&&(m-=s),1===t.targetPos[2]&&(m+=s),0===t.targetPos[3]&&(v-=s),1===t.targetPos[3]&&(v+=s);var g,y,b,_,w=(f+m)/2,x=(p+v)/2,k=i(f,p,m,v),M=Math.sqrt(Math.pow(m-f,2)+Math.pow(v-p,2));n=r(w,x,k,t.sourcePos,t.targetPos,a,a,M,l),g=n[0],y=n[0],b=n[1],_=n[1],o.addSegment(this,"Bezier",{x1:m,y1:v,x2:f,y2:p,cp1x:g,cp1y:b,cp2x:y,cp2y:_})}};t.Connectors.StateMachine=o,n.extend(o,t.Connectors.AbstractBezierConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i="Straight",r=function(e){this.type=i;var n=t.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(e,t){n.addSegment(this,i,{x1:e.sx,y1:e.sy,x2:e.startStubX,y2:e.startStubY}),n.addSegment(this,i,{x1:e.startStubX,y1:e.startStubY,x2:e.endStubX,y2:e.endStubY}),n.addSegment(this,i,{x1:e.endStubX,y1:e.endStubY,x2:e.tx,y2:e.ty})}};t.Connectors.Straight=r,n.extend(r,t.Connectors.AbstractConnector)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},r="stroke-dasharray",o="dashstyle",a="linearGradient",s="radialGradient",l="defs",u="fill",c="stop",d="stroke",h="stroke-width",f="style",p="none",m="jsplumb_gradient_",v="strokeWidth",g={svg:"http://www.w3.org/2000/svg"},y=function(e,t){for(var n in t)e.setAttribute(n,""+t[n])},b=function(e,n){return n=n||{},n.version="1.1",n.xmlns=g.svg,t.createElementNS(g.svg,e,null,null,n)},_=function(e){return"position:absolute;left:"+e[0]+"px;top:"+e[1]+"px"},w=function(e){for(var t=e.querySelectorAll(" defs,linearGradient,radialGradient"),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n])},x=function(e,t,n,i,r){var o,h=m+r._jsPlumb.instance.idstamp();w(e),o=n.gradient.offset?b(s,{id:h}):b(a,{id:h,gradientUnits:"userSpaceOnUse"});var f=b(l);e.appendChild(f),f.appendChild(o);for(var p=0;p<n.gradient.stops.length;p++){var v=1===r.segment||2===r.segment?p:n.gradient.stops.length-1-p,g=n.gradient.stops[v][1],y=b(c,{offset:Math.floor(100*n.gradient.stops[p][0])+"%","stop-color":g});o.appendChild(y)}var _=n.stroke?d:u;t.setAttribute(_,"url(#"+h+")")},k=function(e,t,n,a,s){if(t.setAttribute(u,n.fill?n.fill:p),t.setAttribute(d,n.stroke?n.stroke:p),n.gradient?x(e,t,n,a,s):(w(e),t.setAttribute(f,"")),n.strokeWidth&&t.setAttribute(h,n.strokeWidth),n[o]&&n[v]&&!n[r]){var l=-1===n[o].indexOf(",")?" ":",",c=n[o].split(l),m="";c.forEach((function(e){m+=Math.floor(e*n.strokeWidth)+l})),t.setAttribute(r,m)}else n[r]&&t.setAttribute(r,n[r]);for(var g in i)n[g]&&t.setAttribute(i[g],n[g])},M=function(e,t,n){e.childNodes.length>n?e.insertBefore(t,e.childNodes[n]):e.appendChild(t)};n.svg={node:b,attr:y,pos:_};var C=function(e){var i=e.pointerEventsSpec||"all",r={};t.jsPlumbUIComponent.apply(this,e.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var o=e.cssClass+" "+(e.originalArgs[0].cssClass||""),a={style:"",width:0,height:0,"pointer-events":i,position:"absolute"};this.svg=b("svg",a),e.useDivWrapper?(this.canvas=t.createElement("div",{position:"absolute"}),n.sizeElement(this.canvas,0,0,1,1),this.canvas.className=o):(y(this.svg,{class:o}),this.canvas=this.svg),e._jsPlumb.appendElement(this.canvas,e.originalArgs[0].parent),e.useDivWrapper&&this.canvas.appendChild(this.svg);var s=[this.canvas];return this.getDisplayElements=function(){return s},this.appendDisplayElement=function(e){s.push(e)},this.paint=function(t,i,o){if(null!=t){var a,s=[this.x,this.y],l=[this.w,this.h];null!=o&&(o.xmin<0&&(s[0]+=o.xmin),o.ymin<0&&(s[1]+=o.ymin),l[0]=o.xmax+(o.xmin<0?-o.xmin:0),l[1]=o.ymax+(o.ymin<0?-o.ymin:0)),e.useDivWrapper?(n.sizeElement(this.canvas,s[0],s[1],l[0]>0?l[0]:1,l[1]>0?l[1]:1),s[0]=0,s[1]=0,a=_([0,0])):a=_([s[0],s[1]]),r.paint.apply(this,arguments),y(this.svg,{style:a,width:l[0]||1,height:l[1]||1})}},{renderer:r}};n.extend(C,t.jsPlumbUIComponent,{cleanup:function(e){e||null==this.typeId?(this.canvas&&(this.canvas._jsPlumb=null),this.svg&&(this.svg._jsPlumb=null),this.bgCanvas&&(this.bgCanvas._jsPlumb=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.svg=null,this.canvas=null,this.path=null,this.group=null,this._jsPlumb=null):(this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(e){var t=e.getContainer();this.canvas&&null==this.canvas.parentNode&&t.appendChild(this.canvas),this.bgCanvas&&null==this.bgCanvas.parentNode&&t.appendChild(this.bgCanvas)},setVisible:function(e){this.canvas&&(this.canvas.style.display=e?"block":"none")}}),t.ConnectorRenderers.svg=function(e){var n=this,i=C.apply(this,[{cssClass:e._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:e._jsPlumb}]);i.renderer.paint=function(i,r,o){var a=n.getSegments(),s="",l=[0,0];if(o.xmin<0&&(l[0]=-o.xmin),o.ymin<0&&(l[1]=-o.ymin),a.length>0){s=n.getPathData();var u={d:s,transform:"translate("+l[0]+","+l[1]+")","pointer-events":e["pointer-events"]||"visibleStroke"},c=null,d=[n.x,n.y,n.w,n.h];if(i.outlineStroke){var h=i.outlineWidth||1,f=i.strokeWidth+2*h;c=t.extend({},i),delete c.gradient,c.stroke=i.outlineStroke,c.strokeWidth=f,null==n.bgPath?(n.bgPath=b("path",u),t.addClass(n.bgPath,t.connectorOutlineClass),M(n.svg,n.bgPath,0)):y(n.bgPath,u),k(n.svg,n.bgPath,c,d,n)}null==n.path?(n.path=b("path",u),M(n.svg,n.path,i.outlineStroke?1:0)):y(n.path,u),k(n.svg,n.path,i,d,n)}}},n.extend(t.ConnectorRenderers.svg,C);var S=t.SvgEndpoint=function(e){var n=C.apply(this,[{cssClass:e._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:e._jsPlumb}]);n.renderer.paint=function(e){var n=t.extend({},e);n.outlineStroke&&(n.stroke=n.outlineStroke),null==this.node?(this.node=this.makeNode(n),this.svg.appendChild(this.node)):null!=this.updateNode&&this.updateNode(this.node),k(this.svg,this.node,n,[this.x,this.y,this.w,this.h],this),_(this.node,[this.x,this.y])}.bind(this)};n.extend(S,C),t.Endpoints.svg.Dot=function(){t.Endpoints.Dot.apply(this,arguments),S.apply(this,arguments),this.makeNode=function(e){return b("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(e){y(e,{cx:this.w/2,cy:this.h/2,r:this.radius})}},n.extend(t.Endpoints.svg.Dot,[t.Endpoints.Dot,S]),t.Endpoints.svg.Rectangle=function(){t.Endpoints.Rectangle.apply(this,arguments),S.apply(this,arguments),this.makeNode=function(e){return b("rect",{width:this.w,height:this.h})},this.updateNode=function(e){y(e,{width:this.w,height:this.h})}},n.extend(t.Endpoints.svg.Rectangle,[t.Endpoints.Rectangle,S]),t.Endpoints.svg.Image=t.Endpoints.Image,t.Endpoints.svg.Blank=t.Endpoints.Blank,t.Overlays.svg.Label=t.Overlays.Label,t.Overlays.svg.Custom=t.Overlays.Custom;var D=function(e,n){e.apply(this,n),t.jsPlumbUIComponent.apply(this,n),this.isAppendedAtTopLevel=!1;this.path=null,this.paint=function(e,t){if(e.component.svg&&t){null==this.path&&(this.path=b("path",{"pointer-events":"all"}),e.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,e.component),this.canvas=e.component.svg);var r=n&&1===n.length&&n[0].cssClass||"",o=[0,0];t.xmin<0&&(o[0]=-t.xmin),t.ymin<0&&(o[1]=-t.ymin),y(this.path,{d:i(e.d),class:r,stroke:e.stroke?e.stroke:null,fill:e.fill?e.fill:null,transform:"translate("+o[0]+","+o[1]+")"})}};var i=function(e){return isNaN(e.cxy.x)||isNaN(e.cxy.y)?"":"M"+e.hxy.x+","+e.hxy.y+" L"+e.tail[0].x+","+e.tail[0].y+" L"+e.cxy.x+","+e.cxy.y+" L"+e.tail[1].x+","+e.tail[1].y+" L"+e.hxy.x+","+e.hxy.y};this.transfer=function(e){e.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),e.canvas.appendChild(this.path))}},L={cleanup:function(e){null!=this.path&&(e?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(e,t){this.path&&t.canvas&&t.canvas.appendChild(this.path)},setVisible:function(e){null!=this.path&&(this.path.style.display=e?"block":"none")}};n.extend(D,[t.jsPlumbUIComponent,t.Overlays.AbstractOverlay]),t.Overlays.svg.Arrow=function(){D.apply(this,[t.Overlays.Arrow,arguments])},n.extend(t.Overlays.svg.Arrow,[t.Overlays.Arrow,D],L),t.Overlays.svg.PlainArrow=function(){D.apply(this,[t.Overlays.PlainArrow,arguments])},n.extend(t.Overlays.svg.PlainArrow,[t.Overlays.PlainArrow,D],L),t.Overlays.svg.Diamond=function(){D.apply(this,[t.Overlays.Diamond,arguments])},n.extend(t.Overlays.svg.Diamond,[t.Overlays.Diamond,D],L),t.Overlays.svg.GuideLines=function(){var e,n,i=null,r=this;t.Overlays.GuideLines.apply(this,arguments),this.paint=function(t,a){null==i&&(i=b("path"),t.connector.svg.appendChild(i),r.attachListeners(i,t.connector),r.attachListeners(i,r),e=b("path"),t.connector.svg.appendChild(e),r.attachListeners(e,t.connector),r.attachListeners(e,r),n=b("path"),t.connector.svg.appendChild(n),r.attachListeners(n,t.connector),r.attachListeners(n,r));var s=[0,0];a.xmin<0&&(s[0]=-a.xmin),a.ymin<0&&(s[1]=-a.ymin),y(i,{d:o(t.head,t.tail),stroke:"red",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(e,{d:o(t.tailLine[0],t.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+s[0]+","+s[1]+")"}),y(n,{d:o(t.headLine[0],t.headLine[1]),stroke:"green",fill:null,transform:"translate("+s[0]+","+s[1]+")"})};var o=function(e,t){return"M "+e.x+","+e.y+" L"+t.x+","+t.y}},n.extend(t.Overlays.svg.GuideLines,t.Overlays.GuideLines)}.call("undefined"!==typeof window?window:this),function(){"use strict";var e=this,t=e.jsPlumb,n=e.jsPlumbUtil,i=e.Katavorio,r=e.Biltong,o=function(t){var n=t._mottle;return n||(n=t._mottle=new e.Mottle),n},a=function(e,n){n=n||"main";var o="_katavorio_"+n,a=e[o],s=e.getEventManager();return a||(a=new i({bind:s.on,unbind:s.off,getSize:t.getSize,getConstrainingRectangle:function(e){return[e.parentNode.scrollWidth,e.parentNode.scrollHeight]},getPosition:function(t,n){var i=e.getOffset(t,n,t._katavorioDrag?t.offsetParent:null);return[i.left,i.top]},setPosition:function(e,t){e.style.left=t[0]+"px",e.style.top=t[1]+"px"},addClass:t.addClass,removeClass:t.removeClass,intersects:r.intersects,indexOf:function(e,t){return e.indexOf(t)},scope:e.getDefaultScope(),css:{noSelect:e.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}}),a.setZoom(e.getZoom()),e[o]=a,e.bind("zoom",a.setZoom)),a},s=function(e){var t=e.el._jsPlumbDragOptions,n=!0;return t.canDrag&&(n=t.canDrag()),n&&(this.setHoverSuspended(!0),this.select({source:e.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:e.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),n},l=function(e){var t=this.getUIPosition(arguments,this.getZoom());if(null!=t){var n=e.el._jsPlumbDragOptions;this.draw(e.el,t,null,!0),n._dragging&&this.addClass(e.el,"jtk-dragged"),n._dragging=!0}},u=function(e){for(var t,n=e.selection,i=function(n){var i;null!=n[1]&&(t=this.getUIPosition([{el:n[2].el,pos:[n[1].left,n[1].top]}]),i=this.draw(n[2].el,t)),null!=n[0]._jsPlumbDragOptions&&delete n[0]._jsPlumbDragOptions._dragging,this.removeClass(n[0],"jtk-dragged"),this.select({source:n[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:n[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),e.e._drawResult=e.e._drawResult||{c:[],e:[],a:[]},Array.prototype.push.apply(e.e._drawResult.c,i.c),Array.prototype.push.apply(e.e._drawResult.e,i.e),Array.prototype.push.apply(e.e._drawResult.a,i.a),this.getDragManager().dragEnded(n[2].el)}.bind(this),r=0;r<n.length;r++)i(n[r]);this.setHoverSuspended(!1),this.setConnectionBeingDragged(!1)},c=function(e,t){var i=function(i){if(null!=t[i]){if(n.isString(t[i])){var r=t[i].match(/-=/)?-1:1,o=t[i].substring(2);return e[i]+r*o}return t[i]}return e[i]};return[i("left"),i("top")]},d=function(e,t){if(null==t)return[0,0];var n=v(t),i=m(n,0);return[i[e+"X"],i[e+"Y"]]},h=d.bind(this,"page"),f=d.bind(this,"screen"),p=d.bind(this,"client"),m=function(e,t){return e.item?e.item(t):e[t]},v=function(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e]},g=function(e){var t={},n=[],i={},r={},o={};this.register=function(a){var s,l=e.getId(a);t[l]||(t[l]=a,n.push(a),i[l]={});var u=function(t){if(t)for(var n=0;n<t.childNodes.length;n++)if(3!==t.childNodes[n].nodeType&&8!==t.childNodes[n].nodeType){var c=jsPlumb.getElement(t.childNodes[n]),d=e.getId(t.childNodes[n],null,!0);if(d&&r[d]&&r[d]>0){s||(s=e.getOffset(a));var h=e.getOffset(c);i[l][d]={id:d,offset:{left:h.left-s.left,top:h.top-s.top}},o[d]=l}u(t.childNodes[n])}};u(a)},this.updateOffsets=function(t,n){if(null!=t){n=n||{};var r,a=jsPlumb.getElement(t),s=e.getId(a),l=i[s];if(l)for(var u in l)if(l.hasOwnProperty(u)){var c=jsPlumb.getElement(u),d=n[u]||e.getOffset(c);if(null==c.offsetParent&&null!=i[s][u])continue;r||(r=e.getOffset(a)),i[s][u]={id:u,offset:{left:d.left-r.left,top:d.top-r.top}},o[u]=s}}},this.endpointAdded=function(n,a){a=a||e.getId(n);var s=document.body,l=n.parentNode;r[a]=r[a]?r[a]+1:1;while(null!=l&&l!==s){var u=e.getId(l,null,!0);if(u&&t[u]){var c=e.getOffset(l);if(null==i[u][a]){var d=e.getOffset(n);i[u][a]={id:a,offset:{left:d.left-c.left,top:d.top-c.top}},o[a]=u}break}l=l.parentNode}},this.endpointDeleted=function(e){if(r[e.elementId]&&(r[e.elementId]--,r[e.elementId]<=0))for(var t in i)i.hasOwnProperty(t)&&i[t]&&(delete i[t][e.elementId],delete o[e.elementId])},this.changeId=function(e,t){i[t]=i[e],i[e]={},o[t]=o[e],o[e]=null},this.getElementsForDraggable=function(e){return i[e]},this.elementRemoved=function(e){var t=o[e];t&&(i[t]&&delete i[t][e],delete o[e])},this.reset=function(){t={},n=[],i={},r={}},this.dragEnded=function(t){if(null!=t.offsetParent){var n=e.getId(t),i=o[n];i&&this.updateOffsets(i)}},this.setParent=function(t,n,r,a,s){var l=o[n];i[a]||(i[a]={});var u=e.getOffset(r),c=s||e.getOffset(t);l&&i[l]&&delete i[l][n],i[a][n]={id:n,offset:{left:c.left-u.left,top:c.top-u.top}},o[n]=a},this.clearParent=function(e,t){var n=o[t];n&&(delete i[n][t],delete o[t])},this.revalidateParent=function(t,n,i){var r=o[n];if(r){var a={};a[n]=i,this.updateOffsets(r,a),e.revalidate(r)}},this.getDragAncestor=function(t){var n=jsPlumb.getElement(t),i=e.getId(n),r=o[i];return r?jsPlumb.getElement(r):null}},y=function(e,t,i){t=n.fastTrim(t),"undefined"!==typeof e.className.baseVal?e.className.baseVal=t:e.className=t;try{var r=e.classList;if(null!=r){while(r.length>0)r.remove(r.item(0));for(var o=0;o<i.length;o++)i[o]&&r.add(i[o])}}catch(a){n.log("JSPLUMB: cannot set class list",a)}},b=function(e){return"undefined"===typeof e.className.baseVal?e.className:e.className.baseVal},_=function(e,t,i){t=null==t?[]:n.isArray(t)?t:t.split(/\s+/),i=null==i?[]:n.isArray(i)?i:i.split(/\s+/);var r=b(e),o=r.split(/\s+/),a=function(e,t){for(var n=0;n<t.length;n++)if(e)-1===o.indexOf(t[n])&&o.push(t[n]);else{var i=o.indexOf(t[n]);-1!==i&&o.splice(i,1)}};a(!0,t),a(!1,i),y(e,o.join(" "),o)};e.jsPlumb.extend(e.jsPlumbInstance.prototype,{headless:!1,pageLocation:h,screenLocation:f,clientLocation:p,getDragManager:function(){return null==this.dragManager&&(this.dragManager=new g(this)),this.dragManager},recalculateOffsets:function(e){this.getDragManager().updateOffsets(e)},createElement:function(e,t,n,i){return this.createElementNS(null,e,t,n,i)},createElementNS:function(e,t,n,i,r){var o,a=null==e?document.createElement(t):document.createElementNS(e,t);for(o in n=n||{},n)a.style[o]=n[o];for(o in i&&(a.className=i),r=r||{},r)a.setAttribute(o,""+r[o]);return a},getAttribute:function(e,t){return null!=e.getAttribute?e.getAttribute(t):null},setAttribute:function(e,t,n){null!=e.setAttribute&&e.setAttribute(t,n)},setAttributes:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])},appendToRoot:function(e){document.body.appendChild(e)},getRenderModes:function(){return["svg"]},getClass:b,addClass:function(e,t){jsPlumb.each(e,(function(e){_(e,t)}))},hasClass:function(e,t){return e=jsPlumb.getElement(e),e.classList?e.classList.contains(t):-1!==b(e).indexOf(t)},removeClass:function(e,t){jsPlumb.each(e,(function(e){_(e,null,t)}))},toggleClass:function(e,t){jsPlumb.hasClass(e,t)?jsPlumb.removeClass(e,t):jsPlumb.addClass(e,t)},updateClasses:function(e,t,n){jsPlumb.each(e,(function(e){_(e,t,n)}))},setClass:function(e,t){null!=t&&jsPlumb.each(e,(function(e){y(e,t,t.split(/\s+/))}))},setPosition:function(e,t){e.style.left=t.left+"px",e.style.top=t.top+"px"},getPosition:function(e){var t=function(t){var n=e.style[t];return n?n.substring(0,n.length-2):0};return{left:t("left"),top:t("top")}},getStyle:function(e,t){return"undefined"!==typeof window.getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.currentStyle[t]},getSelector:function(e,t){var n=null;return n=1===arguments.length?null!=e.nodeType?e:document.querySelectorAll(e):e.querySelectorAll(t),n},getOffset:function(e,t,n){e=jsPlumb.getElement(e),n=n||this.getContainer();var i={left:e.offsetLeft,top:e.offsetTop},r=t||null!=n&&e!==n&&e.offsetParent!==n?e.offsetParent:null,o=function(e){null!=e&&e!==document.body&&(e.scrollTop>0||e.scrollLeft>0)&&(i.left-=e.scrollLeft,i.top-=e.scrollTop)}.bind(this);while(null!=r)i.left+=r.offsetLeft,i.top+=r.offsetTop,o(r),r=t?r.offsetParent:r.offsetParent===n?null:r.offsetParent;if(null!=n&&!t&&(n.scrollTop>0||n.scrollLeft>0)){var a=null!=e.offsetParent?this.getStyle(e.offsetParent,"position"):"static",s=this.getStyle(e,"position");"absolute"!==s&&"fixed"!==s&&"absolute"!==a&&"fixed"!==a&&(i.left-=n.scrollLeft,i.top-=n.scrollTop)}return i},getPositionOnElement:function(e,t,n){var i="undefined"!==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0,width:0,height:0},r=document.body,o=document.documentElement,a=window.pageYOffset||o.scrollTop||r.scrollTop,s=window.pageXOffset||o.scrollLeft||r.scrollLeft,l=o.clientTop||r.clientTop||0,u=o.clientLeft||r.clientLeft||0,c=0,d=0,h=i.top+a-l+c*n,f=i.left+s-u+d*n,p=jsPlumb.pageLocation(e),m=i.width||t.offsetWidth*n,v=i.height||t.offsetHeight*n,g=(p[0]-f)/m,y=(p[1]-h)/v;return[g,y]},getAbsolutePosition:function(e){var t=function(t){var n=e.style[t];if(n)return parseFloat(n.substring(0,n.length-2))};return[t("left"),t("top")]},setAbsolutePosition:function(e,t,n,i){n?this.animate(e,{left:"+="+(t[0]-n[0]),top:"+="+(t[1]-n[1])},i):(e.style.left=t[0]+"px",e.style.top=t[1]+"px")},getSize:function(e){return[e.offsetWidth,e.offsetHeight]},getWidth:function(e){return e.offsetWidth},getHeight:function(e){return e.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(e,t){var i;return e=n.isArray(e)||null!=e.length&&!n.isString(e)?e:[e],Array.prototype.slice.call(e).forEach(function(e){i=this.info(e),i.el&&this._initDraggableIfNecessary(i.el,!0,t,i.id,!0)}.bind(this)),this},snapToGrid:function(e,t,n){var i=[],r=function(e){var r=this.info(e);if(null!=r.el&&r.el._katavorioDrag){var o=r.el._katavorioDrag.snap(t,n);this.revalidate(r.el),i.push([r.el,o])}}.bind(this);if(1===arguments.length||3===arguments.length)r(e,t,n);else{var o=this.getManagedElements();for(var a in o)r(a,arguments[0],arguments[1])}return i},initDraggable:function(e,t,n){a(this,n).draggable(e,t),e._jsPlumbDragOptions=t},destroyDraggable:function(e,t){a(this,t).destroyDraggable(e),e._jsPlumbDragOptions=null,e._jsPlumbRelatedElement=null},unbindDraggable:function(e,t,n,i){a(this,i).destroyDraggable(e,t,n)},setDraggable:function(e,t){return jsPlumb.each(e,function(e){this.isDragSupported(e)&&(this._draggableStates[this.getAttribute(e,"id")]=t,this.setElementDraggable(e,t))}.bind(this))},_draggableStates:{},toggleDraggable:function(e){var t;return jsPlumb.each(e,function(e){var n=this.getAttribute(e,"id");return t=null!=this._draggableStates[n]&&this._draggableStates[n],t=!t,this._draggableStates[n]=t,this.setDraggable(e,t),t}.bind(this)),t},_initDraggableIfNecessary:function(e,t,i,r,o){if(!jsPlumb.headless){var a=null!=t&&t;if(a&&jsPlumb.isDragSupported(e,this)){var c=i||this.Defaults.DragOptions;if(c=jsPlumb.extend({},c),jsPlumb.isAlreadyDraggable(e,this))i.force&&this.initDraggable(e,c);else{var d=jsPlumb.dragEvents.drag,h=jsPlumb.dragEvents.stop,f=jsPlumb.dragEvents.start;this.manage(r,e),c[f]=n.wrap(c[f],s.bind(this)),c[d]=n.wrap(c[d],l.bind(this)),c[h]=n.wrap(c[h],u.bind(this));var p=this.getId(e);this._draggableStates[p]=!0;var m=this._draggableStates[p];c.disabled=null!=m&&!m,this.initDraggable(e,c),this.getDragManager().register(e),o&&this.fire("elementDraggable",{el:e,options:c})}}}},animationSupported:!0,getElement:function(e){return null==e?null:(e="string"===typeof e?e:null==e.tagName&&null!=e.length&&null==e.enctype?e[0]:e,"string"===typeof e?document.getElementById(e):e)},removeElement:function(e){a(this).elementRemoved(e),this.getEventManager().remove(e)},doAnimate:function(e,n,i){i=i||{};var r=this.getOffset(e),o=c(r,n),a=o[0]-r.left,s=o[1]-r.top,l=i.duration||250,u=15,d=l/u,h=u/l*a,f=u/l*s,p=0,m=setInterval((function(){t.setPosition(e,{left:r.left+h*(p+1),top:r.top+f*(p+1)}),null!=i.step&&i.step(p,Math.ceil(d)),p++,p>=d&&(window.clearInterval(m),null!=i.complete&&i.complete())}),u)},destroyDroppable:function(e,t){a(this,t).destroyDroppable(e)},unbindDroppable:function(e,t,n,i){a(this,i).destroyDroppable(e,t,n)},droppable:function(e,t){var i;return e=n.isArray(e)||null!=e.length&&!n.isString(e)?e:[e],t=t||{},t.allowLoopback=!1,Array.prototype.slice.call(e).forEach(function(e){i=this.info(e),i.el&&this.initDroppable(i.el,t)}.bind(this)),this},initDroppable:function(e,t,n){a(this,n).droppable(e,t)},isAlreadyDraggable:function(e){return null!=e._katavorioDrag},isDragSupported:function(e,t){return!0},isDropSupported:function(e,t){return!0},isElementDraggable:function(e){return e=t.getElement(e),e._katavorioDrag&&e._katavorioDrag.isEnabled()},getDragObject:function(e){return e[0].drag.getDragElement()},getDragScope:function(e){return e._katavorioDrag&&e._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(e){return e[0].e},getUIPosition:function(e,t){var n=e[0].el;if(null==n.offsetParent)return null;var i=e[0].finalPos||e[0].pos,r={left:i[0],top:i[1]};if(n._katavorioDrag&&n.offsetParent!==this.getContainer()){var o=this.getOffset(n.offsetParent);r.left+=o.left,r.top+=o.top}return r},setDragFilter:function(e,t,n){e._katavorioDrag&&e._katavorioDrag.setFilter(t,n)},setElementDraggable:function(e,n){e=t.getElement(e),e._katavorioDrag&&e._katavorioDrag.setEnabled(n)},setDragScope:function(e,t){e._katavorioDrag&&e._katavorioDrag.k.setDragScope(e,t)},setDropScope:function(e,t){e._katavorioDrop&&e._katavorioDrop.length>0&&e._katavorioDrop[0].k.setDropScope(e,t)},addToPosse:function(e,n){var i=Array.prototype.slice.call(arguments,1),r=a(this);t.each(e,(function(e){e=[t.getElement(e)],e.push.apply(e,i),r.addToPosse.apply(r,e)}))},setPosse:function(e,n){var i=Array.prototype.slice.call(arguments,1),r=a(this);t.each(e,(function(e){e=[t.getElement(e)],e.push.apply(e,i),r.setPosse.apply(r,e)}))},removeFromPosse:function(e,n){var i=Array.prototype.slice.call(arguments,1),r=a(this);t.each(e,(function(e){e=[t.getElement(e)],e.push.apply(e,i),r.removeFromPosse.apply(r,e)}))},removeFromAllPosses:function(e){var n=a(this);t.each(e,(function(e){n.removeFromAllPosses(t.getElement(e))}))},setPosseState:function(e,n,i){var r=a(this);t.each(e,(function(e){r.setPosseState(t.getElement(e),n,i)}))},dragEvents:{start:"start",stop:"stop",drag:"drag",step:"step",over:"over",out:"out",drop:"drop",complete:"complete",beforeStart:"beforeStart"},animEvents:{step:"step",complete:"complete"},stopDrag:function(e){e._katavorioDrag&&e._katavorioDrag.abort()},addToDragSelection:function(e){var t=this.getElement(e);null==t||!t._isJsPlumbGroup&&null!=t._jsPlumbGroup||a(this).select(e)},removeFromDragSelection:function(e){a(this).deselect(e)},getDragSelection:function(){return a(this).getSelection()},clearDragSelection:function(){a(this).deselectAll()},trigger:function(e,t,n,i){this.getEventManager().trigger(e,t,n,i)},doReset:function(){for(var e in this)0===e.indexOf("_katavorio_")&&this[e].reset()},getEventManager:function(){return o(this)},on:function(e,t,n){return this.getEventManager().on.apply(this,arguments),this},off:function(e,t,n){return this.getEventManager().off.apply(this,arguments),this}});var w=function(e){var t=function(){/complete|loaded|interactive/.test(document.readyState)&&"undefined"!==typeof document.body&&null!=document.body?e():setTimeout(t,9)};t()};w(t.init)}.call("undefined"!==typeof window?window:this)},4718:function(e,t,n){var i=n("b68d"),r=n("d442"),o=n("8f74"),a=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"47ac":function(e,t,n){var i=n("5454");t=e.exports=n("690e")(!1),t.push([e.i,".right-plan{overflow-y:auto}.process-heard{padding:10px 20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.process-heard .el-icon-edit{cursor:pointer}.process-heard .process-title{font-size:18px;margin-right:10px}#flowContainer{height:10000px;position:relative;overflow:auto;height:calc(100vh - 144px)}.container-process{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.labelClass{background-color:#fff;padding:5px;opacity:.7;border:1px solid #346789;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.aLabel{width:30px;height:30px;margin-top:25px;background:url("+i(n("4348"))+") 50% no-repeat;cursor:pointer}.switch{display:inline-block;margin-right:30px}.switch>span{margin-right:10px}.add-condition{color:#66a6e0;font-size:14px;text-align:center;padding:10px 0;border:1px solid #66a6e0;cursor:pointer;position:absolute;width:200px}.condition-container{display:-webkit-box;display:-ms-flexbox;display:flex}.condition-item{margin:30px;padding:20px}.gray-background-class{background-color:#f4f4f8}",""])},"480d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAADgBAMAAAAqFmR/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAkUExURUdwTBVDdQEdQwEaPAUkRimG5wMhQf///y6T/jNZgrrH1H6OoMZtep4AAAAGdFJOUwAjhMJaicznv10AAA3oSURBVHjazF1NU9tIGraMncrenBBc2TmRnV3X5sYkU1RRuTDJlKv2lhzY8twCpASS72gsXSa1CyNzDFsywncLi2Oq7DL8uVWrJfV3y7a+6AMGI9Dj533ej367JdVqxQzlxS+tTfVNq/YIxvNdVT1WVfXLI8BSV+OxXz2YTgLmsHIsjQSLelQ1FgURox5XDaarYqP1WNQLmFFaj4cYdfe4SodSdnEsmnd39DhcKRieYcxa1UtGu79T1b4x9Qbb1YHZgFj6AScTdWTeGNWDAViMgToaeJWCqUPdGmCo3jTgp0J3UgCYeYjFMI27agUMsuTIwEal6en5210PwzL9qdIQ3HqCgbGqzk4bQDITiGhWLTGBQwHNDCCY75UXVzrwIjiuKi/19oxpDOZb5WC63iCONNUXwZsjMwo1g53aIxDNGIIJcoHSPAjGsypFEznTVe2gZ4ejOjjtkQmtdBhBAeNTVdlSg1Zyrm1sHFQUjNs3YV7SbGKcV4NG2R17Po0lQFPhJOGaBlOVbpRff+3Z7PhYkYqbHCyVyYZHjG3/9/EQU5WhegIwVRhKREwlHvVPIZjyg03Dth8PNS8lYEpXTc9+PNQ0ZVjKVs1LKZiSY03PfjzUNOyU0arYSkP8h68VW8nBf/hPiQmbZ5nhKfr+crZfsWNjRag3OCzXSprYTpeGUdoKh8IHg+zkldh2bNpcMMk7f4bTu1IdmwVzcR0bqcS+Y08AJrJT1F9rlenYmiDUXJbaLIkc27W5drqM26BfSpQMj5lYvSV2+3qc8I+HGCPpI5WQsU8lzCAsGUUTfhIl1Qk2R7cizQSqQc1zM5NowsigpAarjmfcCs00xNY4MommE4JJ+zwNLfjQYs30EZhMkaYd2ikNTBd8dl8IxkF2OtvOAGYjVNybdGKCIQQz1JGCs6SnRvjHb1OIuYHqFIGx3XwUrIQK/lF6TF2Lz0TWvFw7ZVfwB3knL/GWW8G8YHiSo4K7sv/QxZxFhKafo4LbEjCbmpcOBtkpUwwOFbwpBvM8XkIOx+8CMBfzHGOwBAuxhCwCgzl3JgW/l2O5MZYBg4lmVlSy/qDeG8uBcYquIpQfNQqLsbBTRVNM6fl8F/cjqM5TERiUua0C5ivKB3Vs0GP6D2E/RC9wn8SLXcZEwFO2hGA0o6g6GNDisVisQ3FbD5V7k3wnTw0uLYHX7kvAzHNJCBwT8WgJ5HskaXgiBefqTg0q0CFitmXd10TBeW4IUHYFWKwjaSvYLcKdNvt8LIazLwWDYrCTH5hdj49l8pOosZeXO20xHf+GgJjpUUvesUcKXs+dlB7ZY1eebW39e8THctyqyZlBVcRa7tTs4esyW3C3heOZnBiziDbdSsCgKmIdd9qyDzAktn1+frD17GPHWDBg7pyjVi0VTBZ3aiITbfXs83iDReeOtpPvqj+3ailgLi+9ibd2dkJYlAP7HOm47VKsuOqbfXmb3L71Q93O152uICzNHrGIthHoELPTQn3zi7RnH1ASB0XkTisWe70EC7VOVNeN6Qhz6N65ZAHh1sf3NSYzubPV3OllcormJ8KhekPdROnAPG4phMspOCU+bs4zz9DXK/aanFWz5oEdelR/mnxa0wHhC+dG4VECg8vIcNfz7d5H5q0AykFIUpgnJ0CMlgP3cPY+EWAoSpCRZmv5NksMpuJOoJjB2+CLqb6KEUTYlXPl/LeRII/qwFJr+PbTj4xvJcIA27zMq0Zg/8krBnyvBXe/8oZrDNbybUUc/0LXnmwHPmUes2Z9+lUMZob5dpaJXA8tdSqdOZi7d+eEfybUnIvBTA1Tz6MM3kpU3APNjclBaw94NQ63Fb8KwQSjn2MZ3OyF8x/rFJQDk594Knv6cVMCJvFt63Pm4hcu/JkOKJQscr2xGRmy+Ue8l3ww9jmyya0mhwsnDtgtOdToq/DOYzDtCIzlqNqNEMwSHSPlmWxEBVu4zKdefyJ/eQD/dutr2/MiOP5CJaCMzVXm28/hVUraEF4Gc+oQFwqpVH0N37yODrJV7G/j+eaEVMzZaPn5dkO798NxCV9ufXKQYHzyoEv89U6F5EyIBLWYrbCe0Yn9IFof+p3KdWQnkzw2fjXhmttAjzM1PpdZYT2jDo+dLlx7HA53uIBjGr0StT485AG+jsfRsdfR6WceC+ZMx4C1liHGBDqIRDKkXrFltvitWFfJq5cUDOArEXMGJ0uDiYiZYKKMX08vYjTR9tqhk8CLvonxx9aDjjMYURVNfNFRWnJCxKjahUq4lWojv3KDgX6K4cZH6pdE5KfAxDwN0qpgjBhkFzshgPLyGAttLf9PIvJbI6rwBB93Djbhy5nBiMHsk5zMdlkoWoIlIeYWRbjw351wwIwMay5nhiAG2ecaiWNIk+MmKk7M6F9SYHTCtT2AJKj4gq9SZghiMC3YCA1ISIgV10ZkXbsxMahU16NSk2RmFrxxE4JpLUsMRg2mFhckSNfVNM11cY9CysGIiaRLg3H0kDM5GIoYXJqYdrVkCX3ocg7VbcIkibEwMG7woR8AM1fLE4N7s0Zp19UI8WiYclC8tfpUNRW5dn8MwATMfFuBGFItQ75jUyq+xrY8TCKfXpBBz9QXkBnJlJJDDG6fIO6K4NjIiDgWM+7NEzWENRqczKBmJturEEOqxSVVEiso+IXKwwLnm0wNYeqTefDGvWEujlYjhlILdCUnhueEDkXEP49DDFXQOJoR1FeLB0dyUw0+MYxa3OukxAPp29UI5eBOPEGNGCJtW54x0KbHb/9eW5kYGOkI64AQE6ZJ8t3rwKBcYqhMCfAcv23VarXViQmlgLxF4lCOyieGBWN+ri2drlW1fxcP34llKhmaC03JJwZrVsH5QtocpUsSg+1IUlMHkFEIVkAMlSnBvEl6vWeDJAYvU1PNgxKUgBgqOQHnuiqEmMDxEwuKiKGSEwDzvRBiqBtB8IkhkxPwdFm6zqIYNZ0YKuoNpFVV0cTE15wiMJJ7NNDE+GY81iVGN2TDk7SJGv2VWUgh5lgORtYm6s5XkgecT51S7+Irc5NXaWCEbaKVibHx8phLTOOEOjezoPklH2LgPPfakShmp0ElI5Ps8JnCELyGYuwUYuA9EIjqjs4H33MiBlAjJ6a2QYNh8gE/6vGI6T+E494R5gCamDlBDNOStsiF5zPRLJtHjEeG3/u4nJgm9c2FlBgGzEAzlol6PGJ0MvyiM83iI4a2TDG1WpvynoFKg7F21iPGQzcqQZq5kBHDgiE3KwTFFi/QyIiZiYgBjaqhjBgWzAdS0XNuoIHEGKsRA1wJp4YhptalQtzZ+xNmX1ZOirHxdhbrSsF4TW8decbkh8lSxGgOHPSZLHRA+FVCDAumtUeDYZpWywRf0IkJx3LpGv7jPQZMhwbDFBHdEUvMygMnZhqd4R0DhpR0UGzR7hTd22KaXx1zFQV5eqfPdypBgFkdlSrhAWaOxETLcorOgKkTb4H+J5WdIHXW+CHDWPCIYcBc1ZQ+tbpNr5a+NvIdyXolXVsBk+zRcxcqIbzLF0tCDFPOADBdj14ZJGPwXr5g0P2+GDD/CzRB9miYO0+9LogYprYCJDAAqZLmX8Uohi1nQExhRG1YxJJ4e14MMbUnHDAcURD9xfpNIYphK4gQDKlgk16hVPa8QohhwIReTNoBLPSQpefmOC80JnGHOLqcCcHUT+iEQKYnpQP6lnkM52eZZ4QZmozBYWeNKrDe/y2f8UoaM6xtNqy5ZV3bSTsOFAcbg62dEsC844IhQ2HYNS/jJnd9bonZ0KmOUe7XHnC3vOjcwK9oRmrtWQYYSEDHkwfhQgZTzkRg2uxGwuLtRLeK4jkSVXqOSrETUy1ElQtVevZLsdOGAAwlmlkpdmI2DF5xa5ZwCTMfO0muqaTLmSS2kaKBvbVscU+Bm8Xb4oY7XUEkJ+SJJlt+iq5nbxwuDyaZB5Ci8bNfqBdf6S++eJsuZ9AiICfSZLs2LqZEfInya2Fvvs5p42e6CXYMZmNndTAKZ6o2zXSF/WdCO0uUM1h5SdY0YC+YmemJEfV4daazbDmD1VBkPAS15yQbmPhft/eXTNoYGMq5Hc/K9viKBEz9cEkweJQlndsyHFU9zpAREuEqAjdo6BJ/oZw77Jrt5ABm6XIGB0MiNbM+2SMVDFNBEF1WwtUmWZ/AsrGdCQxuJyvzE1hSwTAVBFGz4EE4bnyvL+En2cBgdkI937Ul3E6zMJO0STCJnUwn+8NpnqwMhmze1XXO1oZ1JdxIM3BXDia+atfCW9uF3S3tdUrFsjki1Fvsc3sYMN94SxbkikVhDyPYSwETrnKRKxZZ0tNqDRFmORLsfJuUQ0xNT92E0ZlbJRGj9P207Sl1bbaL7/0rbsKt7KraGL+Yk7OE3Tn664PvT0t4HpcSPsXJffDFeycb+z88oD2R2wWCSR6Ipo3vPVEb8UlJDypTiMXfB58Lpp09FSxXY9DLmDwz/MV1FzAGF3sLxN/IEPLiPe+j/+D797PiiVFuiKwjcNvETMUSs6n5S4DplvIwOcVR+9N0MJ3CE8H/BwKSQJfMWkasY5JpGzBms4DpclcaoRLNjB4BA0wLqwnma3hZRNuAEQatjlhG2DEsdAgYiB0ouQl7McJE+0siRaC7dgk7hpnGTQfQ2XFYgAPuYoamTQczbI4RwJ2ZFGiceIl0DAvNmw5uxDuGieZtKjPSHEPTGpIR+5osnDnbgfZlDDpIxqWWtk0HRhdswBFXKNK0IiCxzW44eNzCwIweMAAq5ufeOtYRTgAAAABJRU5ErkJggg=="},"486d":function(e,t,n){
|
|
94
94
|
/*!
|
|
95
95
|
* FullCalendar v3.10.5
|
|
96
96
|
* Docs & License: https://fullcalendar.io/
|
|
@@ -190,7 +190,7 @@ var t=e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_aug
|
|
|
190
190
|
//! moment.js locale configuration
|
|
191
191
|
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,i){var r={ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===i?n?"хвилина":"хвилину":"h"===i?n?"година":"годину":e+" "+t(r[i],+e)}function i(e,t){var n,i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?i["nominative"].slice(1,7).concat(i["nominative"].slice(0,1)):e?(n=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative",i[n][e.day()]):i["nominative"]}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var o=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:i,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return o}))},8334:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},8372:function(e,t,n){"use strict";var i=n("93a7"),r=n("c6da"),o=n("e7ec"),a=n("4aee"),s=n("a3e9"),l=n("12ed"),u=n("64b7"),c=n("99a6"),d=n("7cd3"),h=n("2a15"),f=n("b68d"),p=n("1b92").f,m=n("3c3f").f,v=n("6f4d").f,g=n("fe34"),y=n("e280").trim,b="Number",_=r[b],w=_.prototype,x=r.TypeError,k=o("".slice),M=o("".charCodeAt),C=function(e){var t=h(e,"number");return"bigint"==typeof t?t:S(t)},S=function(e){var t,n,i,r,o,a,s,l,u=h(e,"number");if(d(u))throw x("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=y(u),t=M(u,0),43===t||45===t){if(n=M(u,2),88===n||120===n)return NaN}else if(48===t){switch(M(u,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(o=k(u,2),a=o.length,s=0;s<a;s++)if(l=M(o,s),l<48||l>r)return NaN;return parseInt(o,i)}return+u};if(a(b,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var D,L=function(e){var t=arguments.length<1?0:_(C(e)),n=this;return c(w,n)&&f((function(){g(n)}))?u(Object(t),n,L):t},T=i?p(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),E=0;T.length>E;E++)l(_,D=T[E])&&!l(L,D)&&v(L,D,m(_,D));L.prototype=w,w.constructor=L,s(r,b,L)}},8381:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.easyFlowVisible?n("div",[e.tools?n("el-row",[n("el-col",{staticClass:"right-plan",attrs:{span:24}},[n("div",{staticClass:"process-heard"},[e.queryName?[e.isEdit?n("div",[n("span",{staticClass:"process-title"},[e._v(e._s(e.queryName)+"流程")])]):n("div",[n("el-input",{attrs:{autofocus:"",placeholder:"请输入内容"},on:{blur:e.changeName},model:{value:e.conName,callback:function(t){e.conName=t},expression:"conName"}})],1)]:n("div"),n("div",[n("div",{staticClass:"switch"},[n("span",[e._v("是否开启审批:")]),n("el-switch",{model:{value:e.isFlg,callback:function(t){e.isFlg=t},expression:"isFlg"}})],1),n("el-button",{on:{click:e.cancal}},[e._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)],2)])],1):e._e(),n("el-col",{attrs:{span:24}},[n("div",{staticClass:"container-process",attrs:{id:"flowContainer"}},[e._l(e.data.nodeList,(function(t,i){return["addCondition"!==t.item.type?n("flow-node",{key:i,ref:"flowNode",refInFor:!0,attrs:{node:t.item,level:t.level},on:{deleteNode:e.deleteNode,changeNodeSite:e.changeNodeSite,nodeRightMenu:e.nodeRightMenu,editNode:e.editNode,showForm:e.showForm,changeName:e.changeNodeName}}):n("div",{key:t.item.id+"_add",staticClass:"add-condition",style:{top:t.item.top,left:t.item.left},attrs:{id:"flowchartWindow"+t.item.id},on:{click:function(t){return e.addExtraCondition(t)}}},[e._v("\n 添加条件\n ")])]})),n("flow-node-condition",{directives:[{name:"show",rawName:"v-show",value:e.conditionVisible,expression:"conditionVisible"}],ref:"conditionForm",attrs:{formData:e.connection,title:e.title},on:{edit:e.editName,save:e.setCondition,cancal:function(t){e.conditionVisible=!1}}}),e.showAddNode?n("add-node-box",{attrs:{info:e.addNodeInfo},on:{close:function(){e.showAddNode=!1},addNode:e.addNode}}):e._e()],2)]),n("approver-selector",{ref:"approverSelector",attrs:{approverList:e.approverSelectorData.approverList,notifierList:e.approverSelectorData.notifierList},on:{save:e.setNode},model:{value:e.selectorVisible,callback:function(t){e.selectorVisible=t},expression:"selectorVisible"}})],1):e._e()},r=[],o=n("a19a");function a(e){if(Array.isArray(e))return e}n("49e9"),n("c2e6"),n("a9b6"),n("742a"),n("c8ba"),n("2690"),n("d4f9");function s(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done);a=!0)if(o.push(i.value),t&&o.length===t)break}catch(l){s=!0,r=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw r}}return o}}var l=n("de83");function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return a(e)||s(e,t)||Object(l["a"])(e,t)||u()}var d=n("b5e5"),h=n("ba91"),f=(n("e186"),n("16e1"),n("3e22"),n("3fab"),n("ed02"),n("59d7"),n("7ecd"),n("28fd"),n("c284"),n("8d1b"),n("6ba1"),n("89cf"),n("6e1e"),n("6794"),n("46f3")),p=n.n(f),m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.update?n("div",{ref:"node",staticClass:"plannode",style:e.nodeContainerStyle,attrs:{id:"flowchartWindow"+e.node.id},on:{mouseenter:function(t){e.mouseEnter=!0},mouseleave:function(t){e.mouseEnter=!1},mouseup:e.changeNodePosition}},[[n("div",{staticClass:"flow-node-header",class:e.mouseEnter?"point":""},["start"!==e.node.type&&"end"!==e.node.type?n("p",{staticClass:"flow-name"},[e.isEdit?n("el-input",{ref:"editInput",on:{blur:e.handleBlur},model:{value:e.editName,callback:function(t){e.editName="string"===typeof t?t.trim():t},expression:"editName"}}):n("span",{staticClass:"hand-icon",on:{click:function(t){return t.stopPropagation(),e.editNodeName.apply(null,arguments)}}},[e._v(e._s(e.node.name))])],1):n("p",{staticClass:"flow-name"},[n("span",[e._v(e._s(e.node.name))])]),"start"!==e.node.type&&"end"!==e.node.type?n("div",{staticClass:"flow-node-operate"},[n("a",{attrs:{href:"#"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteNode(e.node)},mousemove:function(e){return e.stopPropagation(),e.preventDefault(),function(){}.apply(null,arguments)}}},[n("i",{staticClass:"el-icon-close"})]),e._v("\n \n ")]):e._e()]),"condition"==e.node.type?n("div",{staticClass:"flow-node-body",attrs:{title:e.node.desc?e.node.desc:""},on:{click:function(t){return e.showForm(e.node)}}},[e._v("\n "+e._s(e.node.desc?e.node.desc:"请设置条件")+"\n ")]):"ccTask"==e.node.type?n("div",{staticClass:"flow-node-body",on:{click:function(t){return e.showForm(e.node)}}},[e.node.notifiers&&e.node.notifiers.length?n("span",[e._l(e.node.notifiers,(function(t,i){return n("i",{key:i,staticStyle:{padding:"0 5px"}},[e._v(e._s(t.userName))])})),e._v("\n (抄送"+e._s(e.node.notifiers.length)+"人)\n ")],2):n("span",[e._v("请选择抄送人")])]):"userTask"==e.node.type?n("div",{staticClass:"flow-node-body",on:{click:function(t){return e.showForm(e.node)}}},[n("div"),e.node.directorType&&2==e.node.directorType.type?n("span",[e._v("\n "+e._s(e.node.approvers&&e.node.directorType.type?e.node.approvers&&e.node.approvers[0].directorName:"")+"\n "+e._s("2"==e.node.approverType?"或签":"3"==e.node.approverType?"依次审批":"会签")+"\n ")]):n("span",[e.node.approvers&&e.node.approvers.length>0?n("span",e._l(e.node.approvers,(function(t,i){return n("i",{key:i,staticStyle:{padding:"0 5px"}},[e._v(e._s(t.userName))])})),0):e._e(),e._v("\n ("+e._s(e.node.approvers&&e.node.approvers.length>0?1==e.node.approvers.length?e.node.approvers[0].userName:e.node.approvers.length+"人":"请选择审批人")+")\n "),e.node.approvers&&e.node.approvers.length>1?n("span",[e._v(e._s("2"==e.node.approverType?"或签":"3"==e.node.approverType?"依次审批":"会签"))]):e._e()])]):n("div",{staticClass:"flow-node-body"})]],2):e._e()},v=[],g=(n("8372"),{props:{node:Object,level:Number},data:function(){return{mouseEnter:!1,isEdit:!1,editName:"",update:!0}},computed:{nodeContainerStyle:function(){return{position:"absolute",width:"addCondition"==this.node.type?"auto":"200px",top:this.node.top,left:this.node.left,boxShadow:this.mouseEnter?"#66a6e0 0px 0px 12px 0px":"",backgroundColor:"transparent"}},nodeIcoClass:function(){var e={};return e[this.node.ico]=!0,e["flow-node-drag"]=!0,e}},methods:{refreshFlowItem:function(){var e=this;this.update=!1,this.$nextTick((function(){e.update=!0}))},deleteNode:function(e){},editNode:function(){},changeNodePosition:function(){var e=this;if(this.node.left!=this.$refs.node.style.left||this.node.top!=this.$refs.node.style.top)return setTimeout((function(){e.$emit("changeNodeSite",{id:e.node.id,left:e.$refs.node.style.left,top:e.$refs.node.style.top})}),100),!1},editNodeName:function(){var e=this;this.editName=this.node.name,this.isEdit=!0,this.$nextTick((function(){e.$refs.editInput.$refs.input.focus()}))},handleBlur:function(){this.editName!==this.node.name&&""!=this.editName&&this.$emit("changeName",{node:this.node,name:this.editName}),this.isEdit=!1},showForm:function(e){},addCondition:function(){}}}),y=g,b=(n("027f"),n("cba8")),w=Object(b["a"])(y,m,v,!1,null,null,null),x=w.exports,k=n("b1a2"),M=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wrapper",style:"left: "+e.info.left+"px; top: "+e.info.top+"px"},[i("div",{staticClass:"close",on:{click:function(t){return e.$emit("close")}}},[i("img",{attrs:{src:n("2e5b"),alt:""}})]),i("div",{staticClass:"node",on:{click:function(t){return e.addNode("userTask")}}},[i("img",{attrs:{src:n("bf66")}}),i("p",[e._v("审批人")])]),i("div",{staticClass:"node",on:{click:function(t){return e.addNode("copyUser")}}},[i("img",{attrs:{src:n("bf66")}}),i("p",[e._v("抄送人")])]),i("div",{staticClass:"node",on:{click:function(t){return e.addNode("condition")}}},[i("img",{attrs:{src:n("50e8")}}),i("p",[e._v("条件分支")])])])},C=[],S={name:"",mixins:[],extends:{},components:{},props:{info:{type:Object,default:function(){return{left:0,top:0,isShow:!0}}}},data:function(){return{}},watch:{},computed:{},methods:{addNode:function(e){var t;t="userTask"==e?"流程节点":"copyUser"==e?"抄送人":"条件分支",this.$emit("addNode",{type:e,name:t})}},created:function(){},mounted:function(){}},D=S,L=(n("1062"),Object(b["a"])(D,M,C,!1,null,"45838bc0",null)),T=L.exports,E=n("7cc4"),P=n("7c98"),O=n.n(P),j=n("cf66"),I=n("c1f9"),Y=(n("44ad"),function(e){this.item=e,this.lists=[]});Y.prototype.add=function(e){this.lists.push(e)},Y.prototype.scan=function(){console.log("扫描",this.item);for(var e=0;e<this.lists.length;e++)console.log(this.item.from+"----\x3e"+this.lists[e].item.to),this.lists[e].scan()};var A=function(e){this.item=e};function N(e,t,n,i,r,o,a,s){var l={id:e,name:t,type:n,left:i,top:r,from:o,to:a,isCondition:"0"};return"userTask"==n?l=Object.assign(l,{approverType:"3",approvers:[],notifiers:[],passCopy:!0,directorType:{typeName:"指定成员",type:1,authType:"1"}}):"condition"==n&&(l=Object.assign(l,{desc:"",conditions:[],a:s})),l}function R(e){for(var t=e.map((function(e){return e.level=1,e})),n=function(e){if(!t[e].lists)return"continue";var n=t[e].lists.map((function(n){return n.level=t[e].level+1,n}));t.splice.apply(t,[e+1,0].concat(Object(I["a"])(n)))},i=0;i<t.length;i++)n(i);return t}function H(e){return function(t,n){var i=t[e],r=n[e];return i-r}}A.prototype.add=function(){throw Error("文件下不能添加其它文件夹或文件")},A.prototype.scan=function(){console.log("-----\x3e",this.item)};var F={props:["queryInfo","tools","path","userInfo"],data:function(){var e;return e={approverSelectorData:{approverList:[],notifierList:[]},memberSelectorType:0,selectorVisible:!1,jsPlumb:null,isFlg:!0,isEdit:!0,easyFlowVisible:!0,nodeVisible:!1,nodeInfo:{},data:{nodeList:[],lineList:[]},connection:{},title:"",conditionVisible:!1,showAddNode:!1,addNodeInfo:{top:"0",left:"0",isShwo:!0},root:new Y(N("0","根节点","root","320px","20px","1","2")),currentChooseItem:{},currentNode:{sourceId:"",targetId:""},id:0,params:{},processId:""},Object(h["a"])(e,"isFlg",!0),Object(h["a"])(e,"isClick",!0),Object(h["a"])(e,"name",""),Object(h["a"])(e,"version",1),Object(h["a"])(e,"indexFlg",1),e},components:{flowNode:x,FlowNodeCondition:k["a"],addNodeBox:T,approverSelector:E["a"]},computed:{user:function(){return""},orgSelectorList:function(){return 0===this.memberSelectorType?this.nodeInfo.approvers:this.nodeInfo.notifiers}},created:function(){this.type=this.queryInfo.type},mounted:function(){this.jsPlumbInit()},methods:{save:function(){var e=this;return Object(d["a"])(regeneratorRuntime.mark((function t(){var n,i,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.userInfo,!1,"/index"==e.path&&(e.params.menuId=""),e.params.switchOn=e.isFlg?"1":"0",!e.processId){t.next=11;break}return i={id:e.processId+"",content:JSON.stringify(e.params)},t.next=8,j["f"](i);case 8:n=t.sent,t.next=15;break;case 11:return r={content:JSON.stringify(e.params)},t.next=14,j["e"](r);case 14:n=t.sent;case 15:o=0;case 16:if(!(o<e.params.nodeList.length)){t.next=23;break}if("userTask"!=e.params.nodeList[o].item.type||0!=e.params.nodeList[o].item.approvers.length||!e.params.nodeList[o].item.directorType||1!=e.params.nodeList[o].item.directorType.type){t.next=20;break}return e.$message.error("当前审批流程中【"+e.params.nodeList[o].item.name+"】节点审批人不能为空"),t.abrupt("return");case 20:o++,t.next=16;break;case 23:"ok"==n.data.state?(e.$message.success({message:e.processId?"编辑成功":"保存成功",duration:1500}),e.processId=n.data.data,-1==e.type.indexOf("customForm_")&&(e.$removeTag1(e.$route),e.$router.go(-1))):e.$message.error({message:n.data.msg?n.data.msg:"保存失败",duration:1500});case 24:case"end":return t.stop()}}),t)})))()},cancal:function(){var e=this;this.$confirm("有修改的内容未保存,确认离开吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$removeTag1(e.$route),e.$router.go(-1)})).catch((function(){}))},initProcess:function(){this.easyFlowVisible=!1;var e=new Y(N("1","开始","start","320px","20px","1","2")),t=new Y(N("2","审批人","userTask","320px","200px","1","3")),n=new Y(N("3","抄送人","ccTask","320px","350px","7","5")),i=new Y(N("5","结束","end","320px","330px","2","5"));this.root.add(e),e.add(t),t.add(n),n.add(i),this.refresh()},refresh:function(){this.jsPlumb.reset();for(var e,t,n,i=this.root.lists,r=(i[0],R(i)),o=this,a=0,s=0,l=0,u=0;u<r.length;u++){var c=r[u];if(parseFloat(c.item.left)>a&&(a=parseFloat(c.item.left)),l<c.level&&"end"!=c.item.type&&(l=c.level),"end"==c.item.type&&(e=c),"start"==c.item.type&&(t=c),"addCondition"==c.item.type){n=c;var d=n.lists[0],h=n.lists[n.lists.length-1],f=parseFloat(d.item.left)+parseFloat(h.item.left);s<f/2&&(s=f/2),n.item.left=f/2+"px"}}console.log(l);var p=s>0?s:(a+320)/2;e.item.left=p+"px",e.level=l+1,e.item.top=200*(e.level-1)+20+"px",t.item.left=p+"px",this.data.nodeList=r,this.easyFlowVisible=!0;var m=["Label",{location:0,label:"",cssClass:"aLabel",events:{click:function(e,t){var n=e.getElement(),i=parseFloat(n.style.top)-35,r=parseFloat(n.style.left)+30;o.showAddNode=!0,o.addNodeInfo={top:i,left:r};var a=e.component,s=a.sourceId.replace("flowchartWindow",""),l=a.targetId.replace("flowchartWindow","");o.currentNode.sourceId=s,o.currentNode.targetId=l}}}],v={endpoint:["Dot",{radius:3}],connector:["Flowchart"],anchors:["Bottom","Top"],overlays:[["Arrow",{width:10,length:10,location:1}],m]},g={endpoint:["Dot",{radius:3}],connector:["Flowchart"],anchors:["Bottom","Top"],overlays:[["Arrow",{width:10,length:10,location:1}]]};this.$nextTick((function(){for(var e=[],t=this,n=0;n<this.data.nodeList.length;n++){var i=this.data.nodeList[n];if(this.jsPlumb.draggable("flowchartWindow"+i.item.id,{grid:[20,20],containment:"parent",stop:function(e){t.isClick=!1,setTimeout((function(){t.isClick=!0}),1e3),e.e.preventDefault()}}),"end"!=i.item.type)if(i.lists.length>0&&"addCondition"==i.item.type)for(var r=0;r<i.lists.length;r++){var o=i.lists[r],a={id:o.item.id,type:"condition",name:o.item.name,left:o.item.left,top:o.item.top,from:o.item.from,gateWayKey:i.item.id,to:o.item.to,conditions:o.item.conditions,ifNo:10,desc:o.item.desc,isCondition:o.item.isCondition};e.push(a),this.jsPlumb.connect({source:"flowchartWindow"+i.item.id,target:"flowchartWindow"+o.item.id},g)}else this.jsPlumb.connect({source:"flowchartWindow"+i.item.id,target:"flowchartWindow"+i.item.to},v)}this.loadEasyFlowFinish=!0;var s={name:this.name,desc:"",creator:this.user.no,processId:this.processId,startId:"1",endId:"5",companyId:this.user.cno,type:this.type,switchOn:this.isFlg?"1":"0",gateWayList:e,nodeList:this.data.nodeList,lineList:[],version:this.version};this.params=s}))},jsPlumbInit:function(){var e=this;return Object(d["a"])(regeneratorRuntime.mark((function t(){var n,i,r,o,a,s,l,u,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e,e.jsPlumb=p.a.jsPlumb?p.a.jsPlumb.getInstance():p.a.getInstance(),e.jsPlumb.importDefaults({ConnectionsDetachable:!1}),n={companyId:e.user.cno+"",type:e.type},t.next=6,j["d"](n);case 6:i=t.sent,i.data.data&&i.data.data.gateWays?(r=JSON.parse(i.data.data.content),e.data={nodeList:r.nodeList,lineList:r.lineList},e.name=e.queryInfo.name?e.queryInfo.name+"流程":r.name,e.isFlg=0!=r.switchOn,e.processId=i.data.data._id,e.version=i.data.data.rootNode.version,e.root.add(r.nodeList[0]),e.refresh(),o=r.nodeList.map((function(e){return parseFloat(e.item.id)})),e.id=Math.max.apply(null,o)):i.data.data&&i.data.data._id?(e.processId=i.data.data._id,a=JSON.parse(i.data.data.content),e.name=a.name,e.name=e.queryInfo.name?e.queryInfo.name+"流程":a.name,e.isFlg=0!=a.switchOn,e.version=i.data.data.rootNode.version,s=e.dataTonewList(a.nodeList),s?(e.refresh(),l=a.nodeList.map((function(e){return parseFloat(e.id)})),e.id=Math.max.apply(null,l),setTimeout(Object(d["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={id:e.processId+"",content:JSON.stringify(e.params)},console.log(n),t.next=4,j["g"](n);case 4:t.sent;case 5:case"end":return t.stop()}}),t)}))),200)):(e.name=e.queryInfo.name?e.queryInfo.name+"流程":"流程",e.initProcess(),u=R(e.root.lists),e.id=u.length+10)):(e.name=e.queryInfo.name?e.queryInfo.name+"流程":"流程",e.initProcess(),c=R(e.root.lists),e.id=c.length+10);case 8:case"end":return t.stop()}}),t)})))()},dataTonewList:function(e){var t=this.root,n=1,i=!0;while("end"!=t.item.type&&i){var r=this.getCurrentNode(e,n);if(!r){i=!1;break}var o=new Y(N(r.id,r.name,r.type,r.left,r.top,r.from,r.to));"userTask"==r.type&&(o.item=Object.assign(o.item,{approverType:r.approverType,approvers:r.approvers,notifiers:r.notifiers,passCopy:r.passCopy})),"condition"==r.type?(n=r.to,t.item.to=r.to):(t.add(o),n=r.to,t=o)}return i},getCurrentNode:function(e,t){var n=e.filter((function(e){return e.id==t}));return n.length>0?n[0]:null},setNode:function(e){console.log(e);var t=JSON.parse(e);this.activeNode.directorType=t.directorType,this.activeNode.approverType=t.approverType,this.activeNode.approvers=t.approvers,this.activeNode.notifiers=t.notifiers,this.activeNode.passCopy=t.passCopy,this.$refs.flowNode.map((function(e){e.refreshFlowItem()}))},deleteNode:function(e,t){var n=this;3!=this.data.nodeList.length?this.$confirm("确定需要删除当前节点?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var i=null;n.findNodeById(n.root,e.id);var r=_.cloneDeep(n.currentChooseItem);if(n.findNodeById(n.root,e.from),console.log(r.item.type),"userTask"==r.item.type)n.currentChooseItem.item.to=r.item.to,n.currentChooseItem.lists=r.lists,n.currentChooseItem.lists.forEach((function(e,t){e.item.from=n.currentChooseItem.item.id})),n.data.nodeList.map((function(e,t){var i=n.data.nodeList[t].item,o=i.type,a=i.from;"condition"==o&&a==n.currentChooseItem.item.from&&(n.data.nodeList[t].item.to=r.item.to)}));else if("ccTask"==r.item.type)n.currentChooseItem.item.to=r.item.to,n.currentChooseItem.lists=r.lists,n.currentChooseItem.lists.forEach((function(e,t){e.item.from=n.currentChooseItem.item.id})),n.data.nodeList.map((function(e,t){var i=n.data.nodeList[t].item,o=i.type,a=i.from;"condition"==o&&a==n.currentChooseItem.item.from&&(n.data.nodeList[t].item.to=r.item.to)}));else{var o=n.currentChooseItem.lists.length;if(o>2)n.currentChooseItem.lists.forEach((function(t,r){t.item.id==e.id&&(n.currentChooseItem.lists.splice(r,1),0==r&&(n.currentChooseItem.item.to=n.currentChooseItem.lists[1].item.id,i=n.currentChooseItem.lists[1]))}));else{var a=_.cloneDeep(n.currentChooseItem.lists[0].lists[0]),s=n.currentChooseItem.item.from;a?(a.item.from=s,a.item.left=n.currentChooseItem.item.left,n.findNodeById(n.root,s),n.currentChooseItem.item.to=a.item.id,n.currentChooseItem.lists=[a],n.data.nodeList.map((function(e,t){var i=n.data.nodeList[t].item,r=i.type,o=i.from;"condition"==r&&o==n.currentChooseItem.item.from&&(n.data.nodeList[t].item.to=a.item.id)}))):(n.findNodeById(n.root,s),n.currentChooseItem.item.to=t.to,n.currentChooseItem.lists=r.lists,n.currentChooseItem.lists.forEach((function(e,t){e.item.from=n.currentChooseItem.item.id})),n.data.nodeList.map((function(e,i){var r=n.data.nodeList[i].item,o=r.type,a=r.from;"condition"==o&&a==n.currentChooseItem.item.from&&(n.data.nodeList[i].item.to=t.to)})))}}var l=R(n.root.lists);if(i){var u=l.filter((function(e){return"end"==e.item.type})),c=new Y(N("5","结束","end","320px","380px","","5"));if(u.length<1){var d=n.getLastList(i);d.push(c)}n.setResultToNode()}l.sort(H("level"));for(var h=0;h<l.length;h++){var f=l[h],p=200*(f.level-1)+20;f.item.top=p+"px"}n.refresh()})).catch((function(){})):this.$message.error("流程中必须保留一个审批或抄送节点")},getLastList:function(e){return 0==e.lists.length?e.lists:this.getLastList(e.lists[0])},changeNodeSite:function(){},nodeRightMenu:function(){},addNode:function(e){var t;if(this.showAddNode=!1,this.findNodeById(this.root,this.currentNode.sourceId),this.id+=1,"condition"==e.type){console.log(this.currentNode),console.log(this.currentChooseItem),t=new Y(N(this.id,"条件"+this.id,"addCondition",this.currentChooseItem.item.left,"20px",this.currentNode.sourceId,this.currentNode.targetId)),this.currentChooseItem.item.isCondition="1",this.currentChooseItem.item.to=t.item.id;var n=null;this.currentChooseItem.lists.length>0&&(this.currentChooseItem.lists[0].item.from=t.item.id,n=_.cloneDeep(this.currentChooseItem.lists[0])),this.id+=1;var i=new Y(N(this.id,"条件1","condition","320px","20px",this.currentNode.sourceId,this.currentNode.targetId));t.item.to=i.item.id,i.item.from=t.item.id,i.item.to=n?n.item.id:this.currentNode.targetId,n&&"addCondition"==n.item.type&&(i.item.isCondition="1"),n&&(n.item.from=i.item.id,i.lists.push(n)),this.currentChooseItem.lists[0]=t,t.lists.push(i),this.addExtraCondition(event,!0)}else if("copyUser"==e.type){if(t=new Y(N(this.id,"抄送人","ccTask","320px","20px",this.currentNode.sourceId,this.currentNode.targetId)),this.currentChooseItem.item.isCondition="0",this.currentChooseItem.item.to=t.item.id,t.item.left=this.currentChooseItem.item.left,this.currentChooseItem.lists&&this.currentChooseItem.lists.length>0){this.currentChooseItem.lists[0].item.from=t.item.id;var r=_.cloneDeep(this.currentChooseItem.lists[0]);this.currentChooseItem.lists[0]=t,t.lists.push(r)}else this.currentChooseItem.lists.push(t);var o=R(this.root.lists);o.sort(H("level"));for(var a=0;a<o.length;a++){var s=o[a],l=200*(s.level-1)+20;s.item.top=l+"px"}}else{if(t=new Y(N(this.id,"审批人","userTask","320px","20px",this.currentNode.sourceId,this.currentNode.targetId)),this.currentChooseItem.item.isCondition="0",this.currentChooseItem.item.to=t.item.id,t.item.left=this.currentChooseItem.item.left,this.currentChooseItem.lists&&this.currentChooseItem.lists.length>0){this.currentChooseItem.lists[0].item.from=t.item.id;var u=_.cloneDeep(this.currentChooseItem.lists[0]);this.currentChooseItem.lists[0]=t,t.lists.push(u)}else this.currentChooseItem.lists.push(t);var c=R(this.root.lists);c.sort(H("level"));for(var d=0;d<c.length;d++){var h=c[d],f=200*(h.level-1)+20;h.item.top=f+"px"}}this.refresh()},editNode:function(){},showForm:function(e){var t=this;if(console.log(this.data.nodeList,"showForm"),console.log(e),this.activeNode=e,"condition"==e.type){var n=O.a.cloneDeep(e),i={};n.conditions.forEach((function(e,t){e.isArray&&"userId"!=e.variable&&(e.value=e.value.split(",")),i[e.variable]=e})),this.connection=i,this.title=e.name,this.conditionVisible=!0}else if("ccTask"==e.type){console.log(e);var r={approverType:"1",approvers:e.approvers||[],notifiers:e.notifiers||[],directorType:{typeName:"指定成员",type:1,authType:"1",isCCTask:!0}};console.log(r),this.$nextTick((function(){t.$refs.approverSelector.init(r)}))}else if("userTask"==e.type){e.approvers.forEach((function(e){e.name=e.userName,e.memberNo=e.userId})),e.notifiers.forEach((function(e){e.name=e.userName,e.memberNo=e.userId})),console.log(e.directorType,"*****");var o={approverType:e.approverType,approvers:e.approvers||[],notifiers:e.notifiers||[],passCopy:e.passCopy};this.nodeInfo=o,e.directorType?o.directorType=e.directorType:o.directorType={typeName:"指定成员",type:1,authType:"1"},0!=e.approvers.length?o.approvers=e.approvers:o.approvers=[{directorId:0,directorName:"直接主管"}],this.$nextTick((function(){t.$refs.approverSelector.init(o)}))}},changeNodeName:function(e){"condition"==e.node.type&&this.params.gateWayList.forEach((function(t,n){t.id==e.node.id&&(t.name=e.name)})),e.node.name=e.name},editName:function(e){this.title=e,this.activeNode.name=e},setCondition:function(e){var t=this;console.log(e);var n=Object.entries(e.form).map((function(t){var n=c(t,2),i=n[0],r=n[1];return Array.isArray(r.value)?Object(o["a"])(Object(o["a"])({},r),{},{variable:i,value:"userId"==i||i==e.SxyData?"":r.value.join(","),opt:"=",isArray:!0,sponsors:"userId"==i||i==e.SxyData?r.sponsors:[]}):Object(o["a"])(Object(o["a"])({},r),{},{variable:i,isArray:!1})}));this.activeNode.conditions=n,this.activeNode.desc=e.desc.join(" 并且 "),this.params.gateWayList.forEach((function(e){e.id==t.activeNode.id&&(e.conditions=t.activeNode.conditions,e.desc=t.activeNode.desc)})),this.conditionVisible=!1},dataReload:function(e){},findNodeById:function(e,t){var n=this;e.item.id!=t?e.lists.forEach((function(e,i){e.item.id!=t?n.findNodeById(e,t):n.currentChooseItem=e})):n.currentChooseItem=e},addExtraCondition:function(e,t){if(this.isClick){var n=e.currentTarget,i=n.id;""!=i&&(i=i.replace("flowchartWindow",""),this.findNodeById(this.root,parseInt(i))),this.id+=1;var r=t?1:Math.max.apply("",this.currentChooseItem.lists.map((function(e){return parseFloat(e.item.name.substring(2))})));r++;var o,a=new Y(N(this.id,"条件"+r,"condition","320px","20px",this.currentNode.sourceId,this.currentNode.targetId));if(""==i){o=this.currentChooseItem.lists[0];this.currentChooseItem.lists[0].lists.length;this.currentChooseItem.lists[0].lists.push(a)}else o=this.currentChooseItem,this.currentChooseItem.lists.push(a);a.item.from=o.item.id,a.item.to=o.lists[0].item.to,this.setResultToNode(),this.refresh()}},setResultToNode:function(){var e=R(this.root.lists);e.sort(H("level")),console.log(e,"result");for(var t=320,n=e.length;n>0;n--){for(var i=e[n-1],r=0;r<i.lists.length;r++){var o=i.lists[r];0==r?o.item.left=t/2+"px":(t+=320,o.item.left=t+"px",this.resetNodeLeft(o))}var a=200*(i.level-1)+20;i.item.top=a+"px"}this.data.nodeList=e},resetNodeLeft:function(e){var t=this;"condition"==e.item.type||"userTask"==e.item.type?e.lists.length>0&&e.lists.forEach((function(n){n.item.left=e.item.left,t.resetNodeLeft(n)})):"addCondition"==e.item.type&&e.lists.forEach((function(n,i){n.item.left=parseFloat(e.item.left)-160+320*i+"px",t.resetNodeLeft(n)}))}}},z=F,$=(n("ee82"),Object(b["a"])(z,i,r,!1,null,null,null));t["a"]=$.exports},"84b2":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
192
192
|
//! moment.js locale configuration
|
|
193
|
-
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,i){var r={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?n?"хвіліна":"хвіліну":"h"===i?n?"гадзіна":"гадзіну":e+" "+t(r[i],+e)}var i=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return i}))},8541:function(e,t,n){"use strict";function i(e){return void 0!==e&&null!==e}function r(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=i,t.isKorean=r},"855c":function(e,t,n){"use strict";var i="undefined"!==typeof Symbol&&Symbol,r=n("7f99");e.exports=function(){return"function"===typeof i&&("function"===typeof Symbol&&("symbol"===typeof i("foo")&&("symbol"===typeof Symbol("bar")&&r())))}},"85a4":function(e,t,n){t=e.exports=n("690e")(!1),t.i(n("b797"),""),t.push([e.i,'.from[data-v-6219f126]{overflow:hidden;margin-bottom:20px}.from .fromitem[data-v-6219f126]{float:left;margin-right:20px}.from .fromitem span[data-v-6219f126]{text-align:right;vertical-align:middle;font-size:14px;color:#606266;line-height:40px;padding:0 12px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}.talent-box[data-v-6219f126]{padding:15px 20px 20px}.talent-box .title[data-v-6219f126]{font-size:18px;font-weight:400;margin-bottom:15px}.offer-root[data-v-6219f126]{color:#666}.offer-root .projectForm[data-v-6219f126]{padding:0 0 10px 0}.offer-root .projectForm .projectForm[data-v-6219f126]{margin-top:10px}.offer-root .projectForm .el-form-item[data-v-6219f126]{margin-bottom:0}.continue[data-v-6219f126]{color:#0286df}.common-offer-dialog .dialog-footer[data-v-6219f126],.offer-pagination[data-v-6219f126]{text-align:center}.offer-pagination .el-pagination[data-v-6219f126]{margin:20px 0}.re-form .el-cascader[data-v-6219f126],.re-form .el-date-editor[data-v-6219f126],.re-form .el-input-number[data-v-6219f126],.re-form .el-range-editor[data-v-6219f126],.re-form .el-select[data-v-6219f126]{width:100%}.re-form .el-input-number .el-input__inner[data-v-6219f126]{text-align:left}.re-form .input-number-icon.el-input-number .el-input[data-v-6219f126]{display:-webkit-box;display:-ms-flexbox;display:flex}.re-form .input-number-icon.el-input-number .el-input .el-input__inner[data-v-6219f126]{border-radius:4px 0 4px 0}.re-form .input-number-icon.el-input-number .el-input[data-v-6219f126]:after{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 20px;height:38px;display:inline-block;background:#f5f7fa;text-align:center;border:1px solid #dcdfe6;border-left:0;border-radius:0 4px 4px 0;color:#909399}.re-form .number-yuan.el-input-number .el-input[data-v-6219f126]:after{content:"\\5143"}.re-form .number-tian.el-input-number .el-input[data-v-6219f126]:after{content:"\\5929"}.re-form .line-feed .el-form-item__label[data-v-6219f126]{line-height:inherit!important}.el-submenu__icon-arrow[data-v-6219f126]{position:absolute!important;top:50%!important;right:8px!important;margin-top:-7px!important;-webkit-transition:-webkit-transform .3s!important;transition:-webkit-transform .3s!important;transition:transform .3s!important;transition:transform .3s,-webkit-transform .3s!important;font-size:12px!important}.base-pagination[data-v-6219f126]{text-align:center}.base-pagination .el-pagination[data-v-6219f126]{margin:20px 0}.pointer[data-v-6219f126]{cursor:pointer}.base-ellipsis[data-v-6219f126]{display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btns-line[data-v-6219f126]{margin-bottom:10px}.base-page-style[data-v-6219f126]{padding:10px 10px}.base-page-style .btns-line[data-v-6219f126]{margin-bottom:10px}.base-page-style .el-table .warning-row .cell[data-v-6219f126]{color:red}.form-w100[data-v-6219f126]{width:100%}.form-w100.el-input-number .el-input__inner[data-v-6219f126]{text-align:left}.base-info-title[data-v-6219f126]{font-size:18px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin-bottom:20px;position:relative}.base-info-title span[data-v-6219f126]{border-left:3px solid #0286df;padding-left:10px}.base-info-title .append[data-v-6219f126]{position:absolute;right:10px;top:0}.action-btns .btns[data-v-6219f126]{margin-bottom:10px}.form-btns[data-v-6219f126]{text-align:center}.text-danger[data-v-6219f126]{color:#ff4949}.text-warning[data-v-6219f126]{color:#f7ba2a}.text-blue[data-v-6219f126]{color:#2e90fe}.clearboth[data-v-6219f126]{clear:both}.noselect[data-v-6219f126]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[data-v-6219f126]::-webkit-input-safebox-button{display:none}body[data-v-6219f126]{background-color:#f5f5f5;font-family:Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}.hover_02[data-v-6219f126]:hover{color:#0286df!important}.color-default[data-v-6219f126]{color:#0286df}.line-width[data-v-6219f126]{background:#ededed;width:896px;height:1px}.bg-default[data-v-6219f126]{background:#0286df}.hover-color-default[data-v-6219f126]:hover{color:#0286df}.hover-bg-default[data-v-6219f126]:hover{background:#ffeeea!important}.default-color[data-v-6219f126]{color:#0286df}.page-left[data-v-6219f126]{float:left}.page-right[data-v-6219f126]{float:right}.colordefault[data-v-6219f126]{color:#0286df}.colorgrey[data-v-6219f126]{color:#ccc}.colortheme[data-v-6219f126]{color:#ff8b00}.colorff4[data-v-6219f126]{color:#ff4e00}.color-orange[data-v-6219f126]{color:#f60}.p20[data-v-6219f126]{padding:20px}.pl20[data-v-6219f126]{padding-left:20px}.pb20[data-v-6219f126]{padding-bottom:20px}.mt10[data-v-6219f126]{margin-top:10px}.mt20[data-v-6219f126]{margin-top:20px}.ml26[data-v-6219f126]{margin-left:26px}.ml400[data-v-6219f126]{margin-left:400px}.mb10[data-v-6219f126]{margin-bottom:10px}.mb20[data-v-6219f126]{margin-bottom:20px}.ml10[data-v-6219f126]{margin-left:10px}.text-center[data-v-6219f126]{text-align:center}.clearfix[data-v-6219f126]{overflow:hidden}.fl[data-v-6219f126]{float:left}.fr[data-v-6219f126]{float:right}.avatar-uploader .el-upload[data-v-6219f126]{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-6219f126]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-6219f126]{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.avatar-uploader-icon[data-v-6219f126]:before{line-height:178px}.avatar[data-v-6219f126]{width:178px;height:178px;border:1px dashed #c0ccda;border-radius:6px;display:block}.cell-button[data-v-6219f126]{color:#0286df!important}.cell-del-button[data-v-6219f126]{color:#f60!important}.tableStyle[data-v-6219f126]{border-top:1px solid #e4e7ed;width:100%;margin-top:20px}.tabs-box .el-tabs .el-tabs__header[data-v-6219f126]{margin:0}.tabs-box .el-tabs__item .is-active[data-v-6219f126]{color:#0286df}.tabs-box .el-tabs__item[data-v-6219f126]{color:#333}.m-l-15[data-v-6219f126]{margin-left:15px!important}.m-l-20[data-v-6219f126]{margin-left:20px!important}.m-l-40[data-v-6219f126]{margin-left:40px!important}.pagination-box[data-v-6219f126]{text-align:center;font-size:16px}.pagination-box .el-pagination[data-v-6219f126]{margin-top:20px}.el-input__count[data-v-6219f126]{background:none!important;bottom:-10px!important}.el-link.el-link--primary[data-v-6219f126],.el-tabs__item.is-active[data-v-6219f126]{color:#0286df!important}.info2 .successinfo i[data-v-6219f126]{font-size:75px!important;color:#78c06e!important}.el-table__body tr.hover-row td[data-v-6219f126]{background-color:#f5f7fa!important}.el-pager li.active[data-v-6219f126]{color:#0286df!important}.el-loading-mask[data-v-6219f126]{z-index:9999}.el-icon-loading[data-v-6219f126]{font-size:40px}.el-button.is-loading .el-icon-loading[data-v-6219f126]{font-size:14px}.el-tooltip__popper[data-v-6219f126]{max-width:80%}li[data-v-6219f126],ul[data-v-6219f126]{list-style:none}a[data-v-6219f126]{outline:medium none;text-decoration:none}.colorff66[data-v-6219f126]{color:#f60}.color02[data-v-6219f126]{color:#0286df}.color33[data-v-6219f126]{color:#333}.colorff[data-v-6219f126]{color:#fff}.color00[data-v-6219f126]{color:#000}.color66[data-v-6219f126]{color:#666}.color96[data-v-6219f126]{color:#969696}.colorbf[data-v-6219f126]{color:#bfbfbf}.color59[data-v-6219f126]{color:#595959}.color5e[data-v-6219f126]{color:#5e5e5e}.colorcc[data-v-6219f126]{color:#ccc}.color6f[data-v-6219f126]{color:#6f6f6f}.color2c[data-v-6219f126]{color:#2c2c2b}.color8d[data-v-6219f126]{color:#8d8d8d}.h-green[data-v-6219f126]{color:#78c06e}.h-red[data-v-6219f126]{color:#f60}.h-orange[data-v-6219f126]{color:#f7ab01}.color-link[data-v-6219f126],.h-blue[data-v-6219f126]{color:#0286df}.bgf5[data-v-6219f126]{background:#f5f5f5}.bgc9[data-v-6219f126]{background:#c9c9c9}.bgff[data-v-6219f126]{background:#fff}.bg02[data-v-6219f126]{background:#0286df}.bg66[data-v-6219f126]{background:#666}.bgb3[data-v-6219f126]{background:#b3b3b3}.font10[data-v-6219f126]{font-size:10px}.font12[data-v-6219f126]{font-size:12px}.font14[data-v-6219f126]{font-size:14px}.font16[data-v-6219f126]{font-size:16px}.font18[data-v-6219f126]{font-size:18px}.font20[data-v-6219f126]{font-size:20px}.font22[data-v-6219f126]{font-size:22px}.font24[data-v-6219f126]{font-size:24px}.font28[data-v-6219f126]{font-size:28px}.font36[data-v-6219f126]{font-size:36px}.overflow[data-v-6219f126]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.border02[data-v-6219f126]{border:1px solid #0286df}.tc-1[data-v-6219f126]{width:100%;height:1px}.tc-2[data-v-6219f126]{width:100%;height:2px}.tc-3[data-v-6219f126]{width:100%;height:3px}.tc-4[data-v-6219f126]{width:100%;height:4px}.tc-5[data-v-6219f126]{width:100%;height:5px}.tc-6[data-v-6219f126]{width:100%;height:6px}.tc-7[data-v-6219f126]{width:100%;height:7px}.tc-8[data-v-6219f126]{width:100%;height:8px}.tc-9[data-v-6219f126]{width:100%;height:9px}.tc-10[data-v-6219f126]{width:100%;height:10px}.tc-13[data-v-6219f126]{width:100%;height:13px}.tc-15[data-v-6219f126]{width:100%;height:15px}.tc-20[data-v-6219f126]{width:100%;height:20px}.tc-30[data-v-6219f126]{width:100%;height:30px}.tc-40[data-v-6219f126]{width:100%;height:40px}.tc-45[data-v-6219f126]{width:100%;height:45px}.tc-50[data-v-6219f126]{width:100%;height:50px}.tc-70[data-v-6219f126]{width:100%;height:70px}.tc-80[data-v-6219f126]{width:100%;height:80px}.tc-100[data-v-6219f126]{width:100%;height:100px}.tc-200[data-v-6219f126]{width:100%;height:200px}.cursor[data-v-6219f126]{cursor:pointer}[data-v-6219f126]::-webkit-scrollbar{width:9px;height:9px}[data-v-6219f126]::-webkit-scrollbar-track{background-color:transparent;border-radius:2em}[data-v-6219f126]::-webkit-scrollbar-thumb{background-color:#e1e1e1;border-radius:2em}.p-l-no[data-v-6219f126]{padding-left:0}.el-button.h-btn-reset[data-v-6219f126]{margin-left:10px;padding:12px 10px}.h-search-form .el-input[data-v-6219f126]{width:200px}.h-search-form .el-date-editor--daterange.el-input__inner[data-v-6219f126]{width:240px}.h-search-form.el-form--inline .el-form-item[data-v-6219f126]{margin-right:10px}.btn-submit-box[data-v-6219f126]{margin-top:40px;text-align:center}.list-table-td-a[data-v-6219f126]{color:#0286df;cursor:pointer}.list-table-td-a[data-v-6219f126]:hover{color:#0286df;text-decoration:underline}.h-main-box[data-v-6219f126]{padding:10px}.h-main-box-tab[data-v-6219f126]{padding:5px}.h-tab-content[data-v-6219f126]{min-height:200px;padding:20px;border:1px solid #e4e7ed;margin-top:-16px}.h-divide-title[data-v-6219f126]{font-size:16px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin:20px 0}.h-divide-title>span[data-v-6219f126]{border-left:3px solid #0286df;padding-left:10px}.tableClass[data-v-6219f126]{float:left;position:relative;left:50%;padding:0}.tableClass .divCalss[data-v-6219f126]{float:left;position:relative;left:-50%}.el-table[data-v-6219f126] .printClass .cell:before{content:"\\6253\\5370";position:absolute;right:15px}.approveRemake[data-v-6219f126]{border:none;padding:5px;font-size:16px;vertical-align:middle}',""])},8693:function(e,t,n){var i=n("2b5b"),r=n("c6da");e.exports="process"==i(r.process)},"87a4":function(e,t,n){"use strict";var i=n("19aa")(!0);n("7745")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"885a":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
193
|
+
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,i){var r={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?n?"хвіліна":"хвіліну":"h"===i?n?"гадзіна":"гадзіну":e+" "+t(r[i],+e)}var i=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return i}))},8541:function(e,t,n){"use strict";function i(e){return void 0!==e&&null!==e}function r(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=i,t.isKorean=r},"855c":function(e,t,n){"use strict";var i="undefined"!==typeof Symbol&&Symbol,r=n("7f99");e.exports=function(){return"function"===typeof i&&("function"===typeof Symbol&&("symbol"===typeof i("foo")&&("symbol"===typeof Symbol("bar")&&r())))}},8693:function(e,t,n){var i=n("2b5b"),r=n("c6da");e.exports="process"==i(r.process)},"87a4":function(e,t,n){"use strict";var i=n("19aa")(!0);n("7745")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"885a":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
194
194
|
//! moment.js locale configuration
|
|
195
195
|
var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},n=e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,i=e>=100?100:null;return e+(t[e]||t[n]||t[i])},week:{dow:1,doy:7}});return n}))},"88b6":function(e,t,n){"use strict";var i=n("c025").IteratorPrototype,r=n("0572"),o=n("0252"),a=n("2c47"),s=n("3c07"),l=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=r(i,{next:o(1,n)}),a(e,u,!1,!0),s[u]=l,e}},8975:function(e,t,n){"use strict";n("a9b6"),n("3bdf"),n("35df"),n("57b6"),n("3fab"),n("ed02"),n("8372"),n("c8ba"),n("a678"),n("2690"),n("d4f9"),n("caaf")},"89cf":function(e,t,n){"use strict";var i=n("c3fb"),r=n("7faf"),o=n("e7ec"),a=n("7314"),s=n("4d08"),l=n("16bc"),u=n("41be"),c=n("4228"),d=n("3975"),h=n("568e"),f=n("78f8"),p=n("0e65"),m=n("9535"),v=n("c64f"),g=n("ba60"),y=n("8caa"),b=n("b68d"),_=y.UNSUPPORTED_Y,w=4294967295,x=Math.min,k=[].push,M=o(/./.exec),C=o(k),S=o("".slice),D=!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=f(u(this)),a=void 0===n?w:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!s(e))return r(t,o,e,a);var l,c,d,h=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,y=new RegExp(e.source,p+"g");while(l=r(g,y,o)){if(c=y.lastIndex,c>v&&(C(h,S(o,v,l.index)),l.length>1&&l.index<o.length&&i(k,h,m(l,1)),d=l[0].length,v=c,h.length>=a))break;y.lastIndex===l.index&&y.lastIndex++}return v===o.length?!d&&M(y,"")||C(h,""):C(h,S(o,v)),h.length>a?m(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t,[function(t,n){var i=u(this),a=void 0==t?void 0:p(t,e);return a?r(a,t,i,n):r(o,f(i),t,n)},function(e,i){var r=l(this),a=f(e),s=n(o,r,a,i,o!==t);if(s.done)return s.value;var u=c(r,RegExp),p=r.unicode,m=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(_?"g":"y"),g=new u(_?"^(?:"+r.source+")":r,m),y=void 0===i?w:i>>>0;if(0===y)return[];if(0===a.length)return null===v(g,a)?[a]:[];var b=0,k=0,M=[];while(k<a.length){g.lastIndex=_?0:k;var D,L=v(g,_?S(a,k):a);if(null===L||(D=x(h(g.lastIndex+(_?k:0)),a.length))===b)k=d(a,k,p);else{if(C(M,S(a,b,k)),M.length===y)return M;for(var T=1;T<=L.length-1;T++)if(C(M,L[T]),M.length===y)return M;k=b=D}}return C(M,S(a,b)),M}]}),!D,_)},"89f8":function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
196
196
|
//! moment.js locale configuration
|
|
@@ -261,7 +261,7 @@ var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n
|
|
|
261
261
|
//! moment.js locale configuration
|
|
262
262
|
var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"},n=e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var i=e%10,r=e%100-i,o=e>=100?100:null;return e+(t[i]||t[r]||t[o])}},week:{dow:1,doy:7}});return n}))},b3fe:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n("cf7c")},12:function(e,t){e.exports=n("b73c")},15:function(e,t){e.exports=n("72b8")},16:function(e,t){e.exports=n("1408")},18:function(e,t){e.exports=n("ca47")},21:function(e,t){e.exports=n("8541")},22:function(e,t){e.exports=n("2744")},3:function(e,t){e.exports=n("e57c")},31:function(e,t){e.exports=n("9f67")},33:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=u,d=n(0),h=Object(d["a"])(c,i,r,!1,null,null,null);h.options.__file="packages/select/src/option.vue";t["a"]=h.exports},37:function(e,t){e.exports=n("5ee1")},4:function(e,t){e.exports=n("990b")},5:function(e,t){e.exports=n("2a9a")},6:function(e,t){e.exports=n("8f7c")},61:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(22),l=n.n(s),u=n(6),c=n.n(u),d=n(10),h=n.n(d),f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},p=[];f._withStripped=!0;var m=n(5),v=n.n(m),g={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[v.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},y=g,b=n(0),_=Object(b["a"])(y,f,p,!1,null,null,null);_.options.__file="packages/select/src/select-dropdown.vue";var w=_.exports,x=n(33),k=n(37),M=n.n(k),C=n(15),S=n.n(C),D=n(18),L=n.n(D),T=n(12),E=n.n(T),P=n(16),O=n(31),j=n.n(O),I=n(3),Y={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},A=n(21),N={mixins:[a.a,c.a,l()("reference"),Y],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(I["isIE"])()&&!Object(I["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:w,ElOption:x["a"],ElTag:M.a,ElScrollbar:S.a},directives:{Clickoutside:E.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(I["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(A["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");j()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(I["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(I["getValueByPath"])(a.value,this.valueKey)===Object(I["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var l=n||i||r?"":String(e),u={value:e,currentLabel:l};return this.multiple&&(u.hitState=!1),u},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=i?Math.round(i.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(i?r+(r>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(e.value),this.$emit("input",i),this.emitChange(i),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(I["getValueByPath"])(e,i)===Object(I["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(I["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=L()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=L()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(P["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(P["removeResizeListener"])(this.$el,this.handleResize)}},R=N,H=Object(b["a"])(R,i,r,!1,null,null,null);H.options.__file="packages/select/src/select.vue";var F=H.exports;F.install=function(e){e.component(F.name,F)};t["default"]=F}})},b41d:function(e,t,n){var i=n("2595");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("5925").default;r("5f134c72",i,!0,{sourceMap:!1,shadowMode:!1})},b478:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
263
263
|
//! moment.js locale configuration
|
|
264
|
-
var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},b5e5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a9b6"),n("5961");function i(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}},b687:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",(function(){return i}))},b68d:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},b73c:function(e,t,n){"use strict";t.__esModule=!0;var i=n("8bbf"),r=a(i),o=n("aaf4");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",u=void 0,c=0;function d(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!r.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return u=e})),!r.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,u)}))})),t.default={bind:function(e,t,n){s.push(e);var i=c++;e[l]={id:i,documentHandler:d(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=d(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n<t;n++)if(s[n][l].id===e[l].id){s.splice(n,1);break}delete e[l]}}},b758:function(e,t,n){var i=n("a4cf").document;e.exports=i&&i.documentElement},b781:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
264
|
+
var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},b55d:function(e,t,n){"use strict";n("c302")},b5c6:function(e,t,n){t=e.exports=n("690e")(!1),t.i(n("b797"),""),t.push([e.i,'.from[data-v-c62b1364]{overflow:hidden;margin-bottom:20px}.from .fromitem[data-v-c62b1364]{float:left;margin-right:20px}.from .fromitem span[data-v-c62b1364]{text-align:right;vertical-align:middle;font-size:14px;color:#606266;line-height:40px;padding:0 12px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}.talent-box[data-v-c62b1364]{padding:15px 20px 20px}.talent-box .title[data-v-c62b1364]{font-size:18px;font-weight:400;margin-bottom:15px}.offer-root[data-v-c62b1364]{color:#666}.offer-root .projectForm[data-v-c62b1364]{padding:0 0 10px 0}.offer-root .projectForm .projectForm[data-v-c62b1364]{margin-top:10px}.offer-root .projectForm .el-form-item[data-v-c62b1364]{margin-bottom:0}.continue[data-v-c62b1364]{color:#0286df}.common-offer-dialog .dialog-footer[data-v-c62b1364],.offer-pagination[data-v-c62b1364]{text-align:center}.offer-pagination .el-pagination[data-v-c62b1364]{margin:20px 0}.re-form .el-cascader[data-v-c62b1364],.re-form .el-date-editor[data-v-c62b1364],.re-form .el-input-number[data-v-c62b1364],.re-form .el-range-editor[data-v-c62b1364],.re-form .el-select[data-v-c62b1364]{width:100%}.re-form .el-input-number .el-input__inner[data-v-c62b1364]{text-align:left}.re-form .input-number-icon.el-input-number .el-input[data-v-c62b1364]{display:-webkit-box;display:-ms-flexbox;display:flex}.re-form .input-number-icon.el-input-number .el-input .el-input__inner[data-v-c62b1364]{border-radius:4px 0 4px 0}.re-form .input-number-icon.el-input-number .el-input[data-v-c62b1364]:after{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 20px;height:38px;display:inline-block;background:#f5f7fa;text-align:center;border:1px solid #dcdfe6;border-left:0;border-radius:0 4px 4px 0;color:#909399}.re-form .number-yuan.el-input-number .el-input[data-v-c62b1364]:after{content:"\\5143"}.re-form .number-tian.el-input-number .el-input[data-v-c62b1364]:after{content:"\\5929"}.re-form .line-feed .el-form-item__label[data-v-c62b1364]{line-height:inherit!important}.el-submenu__icon-arrow[data-v-c62b1364]{position:absolute!important;top:50%!important;right:8px!important;margin-top:-7px!important;-webkit-transition:-webkit-transform .3s!important;transition:-webkit-transform .3s!important;transition:transform .3s!important;transition:transform .3s,-webkit-transform .3s!important;font-size:12px!important}.base-pagination[data-v-c62b1364]{text-align:center}.base-pagination .el-pagination[data-v-c62b1364]{margin:20px 0}.pointer[data-v-c62b1364]{cursor:pointer}.base-ellipsis[data-v-c62b1364]{display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btns-line[data-v-c62b1364]{margin-bottom:10px}.base-page-style[data-v-c62b1364]{padding:10px 10px}.base-page-style .btns-line[data-v-c62b1364]{margin-bottom:10px}.base-page-style .el-table .warning-row .cell[data-v-c62b1364]{color:red}.form-w100[data-v-c62b1364]{width:100%}.form-w100.el-input-number .el-input__inner[data-v-c62b1364]{text-align:left}.base-info-title[data-v-c62b1364]{font-size:18px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin-bottom:20px;position:relative}.base-info-title span[data-v-c62b1364]{border-left:3px solid #0286df;padding-left:10px}.base-info-title .append[data-v-c62b1364]{position:absolute;right:10px;top:0}.action-btns .btns[data-v-c62b1364]{margin-bottom:10px}.form-btns[data-v-c62b1364]{text-align:center}.text-danger[data-v-c62b1364]{color:#ff4949}.text-warning[data-v-c62b1364]{color:#f7ba2a}.text-blue[data-v-c62b1364]{color:#2e90fe}.clearboth[data-v-c62b1364]{clear:both}.noselect[data-v-c62b1364]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[data-v-c62b1364]::-webkit-input-safebox-button{display:none}body[data-v-c62b1364]{background-color:#f5f5f5;font-family:Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}.hover_02[data-v-c62b1364]:hover{color:#0286df!important}.color-default[data-v-c62b1364]{color:#0286df}.line-width[data-v-c62b1364]{background:#ededed;width:896px;height:1px}.bg-default[data-v-c62b1364]{background:#0286df}.hover-color-default[data-v-c62b1364]:hover{color:#0286df}.hover-bg-default[data-v-c62b1364]:hover{background:#ffeeea!important}.default-color[data-v-c62b1364]{color:#0286df}.page-left[data-v-c62b1364]{float:left}.page-right[data-v-c62b1364]{float:right}.colordefault[data-v-c62b1364]{color:#0286df}.colorgrey[data-v-c62b1364]{color:#ccc}.colortheme[data-v-c62b1364]{color:#ff8b00}.colorff4[data-v-c62b1364]{color:#ff4e00}.color-orange[data-v-c62b1364]{color:#f60}.p20[data-v-c62b1364]{padding:20px}.pl20[data-v-c62b1364]{padding-left:20px}.pb20[data-v-c62b1364]{padding-bottom:20px}.mt10[data-v-c62b1364]{margin-top:10px}.mt20[data-v-c62b1364]{margin-top:20px}.ml26[data-v-c62b1364]{margin-left:26px}.ml400[data-v-c62b1364]{margin-left:400px}.mb10[data-v-c62b1364]{margin-bottom:10px}.mb20[data-v-c62b1364]{margin-bottom:20px}.ml10[data-v-c62b1364]{margin-left:10px}.text-center[data-v-c62b1364]{text-align:center}.clearfix[data-v-c62b1364]{overflow:hidden}.fl[data-v-c62b1364]{float:left}.fr[data-v-c62b1364]{float:right}.avatar-uploader .el-upload[data-v-c62b1364]{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-c62b1364]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-c62b1364]{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.avatar-uploader-icon[data-v-c62b1364]:before{line-height:178px}.avatar[data-v-c62b1364]{width:178px;height:178px;border:1px dashed #c0ccda;border-radius:6px;display:block}.cell-button[data-v-c62b1364]{color:#0286df!important}.cell-del-button[data-v-c62b1364]{color:#f60!important}.tableStyle[data-v-c62b1364]{border-top:1px solid #e4e7ed;width:100%;margin-top:20px}.tabs-box .el-tabs .el-tabs__header[data-v-c62b1364]{margin:0}.tabs-box .el-tabs__item .is-active[data-v-c62b1364]{color:#0286df}.tabs-box .el-tabs__item[data-v-c62b1364]{color:#333}.m-l-15[data-v-c62b1364]{margin-left:15px!important}.m-l-20[data-v-c62b1364]{margin-left:20px!important}.m-l-40[data-v-c62b1364]{margin-left:40px!important}.pagination-box[data-v-c62b1364]{text-align:center;font-size:16px}.pagination-box .el-pagination[data-v-c62b1364]{margin-top:20px}.el-input__count[data-v-c62b1364]{background:none!important;bottom:-10px!important}.el-link.el-link--primary[data-v-c62b1364],.el-tabs__item.is-active[data-v-c62b1364]{color:#0286df!important}.info2 .successinfo i[data-v-c62b1364]{font-size:75px!important;color:#78c06e!important}.el-table__body tr.hover-row td[data-v-c62b1364]{background-color:#f5f7fa!important}.el-pager li.active[data-v-c62b1364]{color:#0286df!important}.el-loading-mask[data-v-c62b1364]{z-index:9999}.el-icon-loading[data-v-c62b1364]{font-size:40px}.el-button.is-loading .el-icon-loading[data-v-c62b1364]{font-size:14px}.el-tooltip__popper[data-v-c62b1364]{max-width:80%}li[data-v-c62b1364],ul[data-v-c62b1364]{list-style:none}a[data-v-c62b1364]{outline:medium none;text-decoration:none}.colorff66[data-v-c62b1364]{color:#f60}.color02[data-v-c62b1364]{color:#0286df}.color33[data-v-c62b1364]{color:#333}.colorff[data-v-c62b1364]{color:#fff}.color00[data-v-c62b1364]{color:#000}.color66[data-v-c62b1364]{color:#666}.color96[data-v-c62b1364]{color:#969696}.colorbf[data-v-c62b1364]{color:#bfbfbf}.color59[data-v-c62b1364]{color:#595959}.color5e[data-v-c62b1364]{color:#5e5e5e}.colorcc[data-v-c62b1364]{color:#ccc}.color6f[data-v-c62b1364]{color:#6f6f6f}.color2c[data-v-c62b1364]{color:#2c2c2b}.color8d[data-v-c62b1364]{color:#8d8d8d}.h-green[data-v-c62b1364]{color:#78c06e}.h-red[data-v-c62b1364]{color:#f60}.h-orange[data-v-c62b1364]{color:#f7ab01}.color-link[data-v-c62b1364],.h-blue[data-v-c62b1364]{color:#0286df}.bgf5[data-v-c62b1364]{background:#f5f5f5}.bgc9[data-v-c62b1364]{background:#c9c9c9}.bgff[data-v-c62b1364]{background:#fff}.bg02[data-v-c62b1364]{background:#0286df}.bg66[data-v-c62b1364]{background:#666}.bgb3[data-v-c62b1364]{background:#b3b3b3}.font10[data-v-c62b1364]{font-size:10px}.font12[data-v-c62b1364]{font-size:12px}.font14[data-v-c62b1364]{font-size:14px}.font16[data-v-c62b1364]{font-size:16px}.font18[data-v-c62b1364]{font-size:18px}.font20[data-v-c62b1364]{font-size:20px}.font22[data-v-c62b1364]{font-size:22px}.font24[data-v-c62b1364]{font-size:24px}.font28[data-v-c62b1364]{font-size:28px}.font36[data-v-c62b1364]{font-size:36px}.overflow[data-v-c62b1364]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.border02[data-v-c62b1364]{border:1px solid #0286df}.tc-1[data-v-c62b1364]{width:100%;height:1px}.tc-2[data-v-c62b1364]{width:100%;height:2px}.tc-3[data-v-c62b1364]{width:100%;height:3px}.tc-4[data-v-c62b1364]{width:100%;height:4px}.tc-5[data-v-c62b1364]{width:100%;height:5px}.tc-6[data-v-c62b1364]{width:100%;height:6px}.tc-7[data-v-c62b1364]{width:100%;height:7px}.tc-8[data-v-c62b1364]{width:100%;height:8px}.tc-9[data-v-c62b1364]{width:100%;height:9px}.tc-10[data-v-c62b1364]{width:100%;height:10px}.tc-13[data-v-c62b1364]{width:100%;height:13px}.tc-15[data-v-c62b1364]{width:100%;height:15px}.tc-20[data-v-c62b1364]{width:100%;height:20px}.tc-30[data-v-c62b1364]{width:100%;height:30px}.tc-40[data-v-c62b1364]{width:100%;height:40px}.tc-45[data-v-c62b1364]{width:100%;height:45px}.tc-50[data-v-c62b1364]{width:100%;height:50px}.tc-70[data-v-c62b1364]{width:100%;height:70px}.tc-80[data-v-c62b1364]{width:100%;height:80px}.tc-100[data-v-c62b1364]{width:100%;height:100px}.tc-200[data-v-c62b1364]{width:100%;height:200px}.cursor[data-v-c62b1364]{cursor:pointer}[data-v-c62b1364]::-webkit-scrollbar{width:9px;height:9px}[data-v-c62b1364]::-webkit-scrollbar-track{background-color:transparent;border-radius:2em}[data-v-c62b1364]::-webkit-scrollbar-thumb{background-color:#e1e1e1;border-radius:2em}.p-l-no[data-v-c62b1364]{padding-left:0}.el-button.h-btn-reset[data-v-c62b1364]{margin-left:10px;padding:12px 10px}.h-search-form .el-input[data-v-c62b1364]{width:200px}.h-search-form .el-date-editor--daterange.el-input__inner[data-v-c62b1364]{width:240px}.h-search-form.el-form--inline .el-form-item[data-v-c62b1364]{margin-right:10px}.btn-submit-box[data-v-c62b1364]{margin-top:40px;text-align:center}.list-table-td-a[data-v-c62b1364]{color:#0286df;cursor:pointer}.list-table-td-a[data-v-c62b1364]:hover{color:#0286df;text-decoration:underline}.h-main-box[data-v-c62b1364]{padding:10px}.h-main-box-tab[data-v-c62b1364]{padding:5px}.h-tab-content[data-v-c62b1364]{min-height:200px;padding:20px;border:1px solid #e4e7ed;margin-top:-16px}.h-divide-title[data-v-c62b1364]{font-size:16px;line-height:20px;color:#0286df;border-bottom:2px dotted #e4e7ed;padding-bottom:10px;margin:20px 0}.h-divide-title>span[data-v-c62b1364]{border-left:3px solid #0286df;padding-left:10px}.tableClass[data-v-c62b1364]{float:left;position:relative;left:50%;padding:0}.tableClass .divCalss[data-v-c62b1364]{float:left;position:relative;left:-50%}.el-table[data-v-c62b1364] .printClass .cell:before{content:"\\6253\\5370";position:absolute;right:15px}.approveRemake[data-v-c62b1364]{border:none;padding:5px;font-size:16px;vertical-align:middle}',""])},b5e5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a9b6"),n("5961");function i(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}},b687:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",(function(){return i}))},b68d:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},b73c:function(e,t,n){"use strict";t.__esModule=!0;var i=n("8bbf"),r=a(i),o=n("aaf4");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",u=void 0,c=0;function d(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!r.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return u=e})),!r.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,u)}))})),t.default={bind:function(e,t,n){s.push(e);var i=c++;e[l]={id:i,documentHandler:d(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=d(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n<t;n++)if(s[n][l].id===e[l].id){s.splice(n,1);break}delete e[l]}}},b758:function(e,t,n){var i=n("a4cf").document;e.exports=i&&i.documentElement},b781:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
265
265
|
//! moment.js locale configuration
|
|
266
266
|
function t(e,t,n,i){var r={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?r[n][0]:r[n][1]}var n=e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return n}))},b797:function(e,t,n){t=e.exports=n("690e")(!1),t.push([e.i,'@font-face{font-family:anticon;font-display:fallback;src:url(https://at.alicdn.com/t/font_148784_v4ggb6wrjmkotj4i.eot);src:url(https://at.alicdn.com/t/font_148784_v4ggb6wrjmkotj4i.woff) format("woff"),url(https://at.alicdn.com/t/font_148784_v4ggb6wrjmkotj4i.ttf) format("truetype"),url(https://at.alicdn.com/t/font_148784_v4ggb6wrjmkotj4i.svg#iconfont) format("svg")}.fd-nav-content{height:calc(100vh - 140px)}.anticon{display:inline-block;font-style:normal;vertical-align:baseline;text-align:center;text-transform:none;line-height:1;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.anticon:before{display:block;font-family:anticon!important}.anticon-close:before{content:"\\E633"}.anticon-right:before{content:"\\E61F"}.anticon-exclamation-circle:before{content:"\\E62C"}.anticon-left:before{content:"\\E620"}.anticon-close-circle:before{content:"\\E62E"}.ant-btn{line-height:1.5;display:inline-block;font-weight:400;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:0 15px;font-size:14px;border-radius:4px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);color:rgba(0,0,0,.65);background-color:#fff;border-color:#d9d9d9}.ant-btn>.anticon{line-height:1}.ant-btn,.ant-btn:active,.ant-btn:focus{outline:0}.ant-btn>a:only-child{color:currentColor}.ant-btn>a:only-child:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background:transparent}.ant-btn:focus,.ant-btn:hover{color:#40a9ff;background-color:#fff;border-color:#40a9ff}.ant-btn:focus>a:only-child,.ant-btn:hover>a:only-child{color:currentColor}.ant-btn:focus>a:only-child:after,.ant-btn:hover>a:only-child:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background:transparent}.ant-btn.active,.ant-btn:active{color:#096dd9;background-color:#fff;border-color:#096dd9}.ant-btn.active>a:only-child,.ant-btn:active>a:only-child{color:currentColor}.ant-btn.active>a:only-child:after,.ant-btn:active>a:only-child:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background:transparent}.ant-btn.active,.ant-btn:active,.ant-btn:focus,.ant-btn:hover{background:#fff;text-decoration:none}.ant-btn:before,.ant-btn>i,.ant-btn>span{pointer-events:none}.ant-btn:before{position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;background:#fff;opacity:.35;content:"";border-radius:inherit;z-index:1;-webkit-transition:opacity .2s;transition:opacity .2s;display:none}.ant-btn .anticon{-webkit-transition:margin-left .3s cubic-bezier(.645,.045,.355,1);transition:margin-left .3s cubic-bezier(.645,.045,.355,1)}.ant-btn:active>span,.ant-btn:focus>span{position:relative}.ant-btn>.anticon+span,.ant-btn>span+.anticon{margin-left:8px}.modalTips .el-dialog__body{padding-top:15px;padding-bottom:15px}.modalTips .el-dialog__body .anticon{margin-right:10px}.ant-confirm-body .ant-confirm-title{color:rgba(0,0,0,.85);font-weight:500;font-size:16px;line-height:1.4;display:block;overflow:hidden}.ant-confirm-body .ant-confirm-content{font-size:14px;color:rgba(0,0,0,.65);margin-top:8px}.ant-confirm-body>.anticon{font-size:22px;margin-right:16px;float:left}.fd-nav-container{display:inline-block;position:relative}.fd-nav-container .ghost-bar{position:absolute;width:150px;height:100%;left:0;background:#1583f2;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1)}.fd-nav-container .ghost-bar:after{content:"";position:absolute;bottom:0;left:50%;margin-left:-5px;width:0;height:0;border-style:solid;border-width:0 5px 6px;border-color:transparent transparent #f6f6f6}.fd-nav-item{position:relative;cursor:pointer;display:inline-block;line-height:60px;width:150px;text-align:center;white-space:nowrap}.fd-nav-item .order-num{display:inline-block;width:20px;height:20px;line-height:20px;border:1px solid #fff;border-radius:50%;margin-right:6px;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1)}.fd-nav-item.active .order-num{color:#1583f2;background:#fff}.ant-input{font-family:Chinese Quote,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-variant:tabular-nums;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;list-style:none;position:relative;display:inline-block;padding:4px 11px;width:100%;height:32px;font-size:14px;line-height:1.5;color:rgba(0,0,0,.65);background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:4px;-webkit-transition:all .3s;transition:all .3s}.ant-input::-moz-placeholder{color:#bfbfbf;opacity:1}.ant-input:-ms-input-placeholder{color:#bfbfbf}.ant-input::-webkit-input-placeholder{color:#bfbfbf}.ant-input:focus,.ant-input:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px rgba(24,144,255,.2)}textarea.ant-input{max-width:100%;height:auto;vertical-align:bottom;-webkit-transition:all .3s,height 0s;transition:all .3s,height 0s;min-height:32px}.wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}@font-face{font-family:IconFont;src:url(//at.alicdn.com/t/font_135284_ph2thxxbzgf.eot);src:url(//at.alicdn.com/t/font_135284_ph2thxxbzgf.eot#iefix) format("embedded-opentype"),url(//at.alicdn.com/t/font_135284_ph2thxxbzgf.woff) format("woff"),url(//at.alicdn.com/t/font_135284_ph2thxxbzgf.ttf) format("truetype"),url(//at.alicdn.com/t/font_135284_ph2thxxbzgf.svg#IconFont) format("svg")}.iconfont{font-family:IconFont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale}.sidePadding{padding:0 15px}.fd-nav{z-index:997;height:60px;font-size:14px;color:#333;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.fd-nav>*{-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%}.fd-nav .switch{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-right:10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.fd-nav .switch span:first-child{display:inline-block;min-width:95px;text-align:left}.fd-nav .fixWidth span:first-child{min-width:140px}.fd-nav .switch .tooltipContent{padding:0;border:0;margin:0 5px}.fd-nav .fd-nav-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.fd-nav .fd-nav-center{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center}.fd-nav .fd-nav-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;text-align:right}.fd-nav .fd-nav-back .anticon{line-height:60px}.fd-nav .fd-nav-title{width:100px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.fd-nav a{color:#fff;margin-left:12px}.fd-nav .button-publish{min-width:80px;margin-left:4px;margin-right:15px;color:#3296fa;border-color:#fff}.fd-nav .button-publish.ant-btn:focus,.fd-nav .button-publish.ant-btn:hover{color:#3296fa;border-color:#fff;-webkit-box-shadow:0 10px 20px 0 rgba(0,0,0,.3);box-shadow:0 10px 20px 0 rgba(0,0,0,.3)}.fd-nav .button-publish.ant-btn:active{color:#3296fa;background:#d6eaff;-webkit-box-shadow:none;box-shadow:none}.fd-nav .button-preview{min-width:80px;margin-left:16px;margin-right:4px;color:#fff;border-color:#fff;background:transparent}.fd-nav .button-preview.ant-btn:focus,.fd-nav .button-preview.ant-btn:hover{color:#fff;border-color:#fff;background:#59acfc}.fd-nav .button-preview.ant-btn:active{color:#fff;border-color:#fff;background:#2186ef}.fd-nav-content{z-index:1;overflow-x:scroll;overflow-y:auto;background-color:#f5f5f7}.error-modal-desc{font-size:13px;color:rgba(25,31,37,.56);line-height:22px;margin-bottom:14px}.error-modal-list{min-height:200px;overflow-y:auto;padding-right:0;width:100%}.error-modal-item{padding:10px 20px;line-height:21px;background:#f6f6f6;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:8px;border-radius:4px}.error-modal-item-label{-webkit-box-flex:0;-ms-flex:none;flex:none;font-size:15px;color:rgba(25,31,37,.56);padding-right:10px}.error-modal-item-content{text-align:right;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:13px;color:#191f25}#body.blur{-webkit-filter:blur(3px);filter:blur(3px)}.zoom{display:-webkit-box;display:-ms-flexbox;display:flex;position:fixed;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:40px;width:125px;right:40px;margin-top:30px;z-index:10}.zoom .zoom-in,.zoom .zoom-out{width:30px;height:30px;background:#fff;color:#c1c1cd;cursor:pointer;background-size:100%;background-repeat:no-repeat}.zoom .zoom-out{background-image:url(https://gw.alicdn.com/tfs/TB1s0qhBHGYBuNjy0FoXXciBFXa-90-90.png)}.zoom .zoom-out.disabled{opacity:.5}.zoom .zoom-in{background-image:url(https://gw.alicdn.com/tfs/TB1UIgJBTtYBeNjy1XdXXXXyVXa-90-90.png)}.zoom .zoom-in.disabled{opacity:.5}.auto-judge:hover .editable-title,.node-wrap-box:hover .editable-title{border-bottom:1px dashed #fff}.auto-judge:hover .editable-title.editing,.node-wrap-box:hover .editable-title.editing{text-decoration:none;border:1px solid #d9d9d9}.auto-judge:hover .editable-title{border-color:#15bc83}.editable-title{line-height:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px dashed transparent}.editable-title:before{content:"";position:absolute;top:0;left:0;bottom:0;right:40px}.editable-title:hover{border-bottom:1px dashed #fff}.editable-title-input{-webkit-box-flex:0;-ms-flex:none;flex:none;height:18px;padding-left:4px;text-indent:0;font-size:12px;line-height:18px;z-index:1}.editable-title-input:hover{text-decoration:none}.node-wrap-box{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;width:220px;min-height:72px;-ms-flex-negative:0;flex-shrink:0;background:#fff;border-radius:4px;cursor:pointer}.node-wrap-box:after{pointer-events:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;border-radius:4px;border:1px solid transparent;-webkit-transition:all .1s cubic-bezier(.645,.045,.355,1);transition:all .1s cubic-bezier(.645,.045,.355,1);-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.1);box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.node-wrap-box.active:after,.node-wrap-box:active:after,.node-wrap-box:hover:after{border:1px solid #3296fa;-webkit-box-shadow:0 0 6px 0 rgba(50,150,250,.3);box-shadow:0 0 6px 0 rgba(50,150,250,.3)}.node-wrap-box.active .close,.node-wrap-box:active .close,.node-wrap-box:hover .close{display:block}.node-wrap-box.error:after{border:1px solid #f25643;-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.1);box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.node-wrap-box .title{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:16px;padding-right:30px;height:24px;line-height:24px;font-size:12px;color:#fff;text-align:left;background:#576a95;border-radius:4px 4px 0 0}.node-wrap-box .title .iconfont{font-size:12px;margin-right:5px}.node-wrap-box .placeholder{color:#bfbfbf}.node-wrap-box .close{display:none;position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:20px;height:20px;font-size:14px;color:#fff;border-radius:50%;text-align:center;line-height:20px}.node-wrap-box .content{position:relative;font-size:14px;padding:16px;padding-right:30px}.node-wrap-box .content .text{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.node-wrap-box .content .arrow{position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:20px;height:14px;font-size:14px;color:#979797}.start-node.node-wrap-box .content .text{display:block;white-space:nowrap}.node-wrap-box:before{content:"";position:absolute;top:-12px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:0;height:4px;border-style:solid;border-width:8px 6px 4px;border-color:#cacaca transparent transparent;background:#f5f5f7}.node-wrap-box.start-node:before{content:none}.add-node-popover{min-height:160px}.add-node-popover-header{position:relative;margin-bottom:15px}.add-node-popover-close{cursor:pointer;position:absolute;top:5px;right:5px;color:rgba(0,0,0,.25)}.add-node-popover-body{display:-webkit-box;display:-ms-flexbox;display:flex}.add-node-popover-item{margin-right:10px;cursor:pointer;text-align:center;-webkit-box-flex:1;-ms-flex:1;flex:1;color:#191f25!important}.add-node-popover-item:last-child{margin-right:0}.add-node-popover-item .item-wrapper{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;width:80px;background:#fff;border:1px solid hsla(0,0%,88.6%,.7490196078431373);border-radius:4px;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);padding-bottom:10px}.add-node-popover-item .item-wrapper p{margin:0}.add-node-popover-item .iconfont{font-size:28px;line-height:45px}.add-node-popover-item.approver .item-wrapper{color:#ff943e}.add-node-popover-item.notifier .item-wrapper{color:#3296fa}.add-node-popover-item.condition .item-wrapper{color:#15bc83}.add-node-popover-item.auto .item-wrapper{color:#1059fb}.add-node-popover-item:hover .item-wrapper{background:#fff;-webkit-box-shadow:0 0 10px 0 hsla(0,0%,86.7%,.837);box-shadow:0 0 10px 0 hsla(0,0%,86.7%,.837);border:1px solid #e2e2e2}.add-node-popover-item .item-wrapper p{color:#222;font-size:14px}.add-node-popover-item:active .item-wrapper{-webkit-box-shadow:none;box-shadow:none;background:#eaeaea}.add-node-popover-item:active .iconfont{color:inherit}.top-left-cover-line{left:-1px}.top-left-cover-line,.top-right-cover-line{position:absolute;height:3px;width:50%;background-color:#f5f5f7;top:-2px}.top-right-cover-line{right:-1px}.bottom-left-cover-line{left:-1px}.bottom-left-cover-line,.bottom-right-cover-line{position:absolute;height:3px;width:50%;background-color:#f5f5f7;bottom:-2px}.bottom-right-cover-line{right:-1px}.dingflow-design{background-color:#f5f5f7}.dingflow-design .box-scale{-webkit-transform:scale(1);transform:scale(1);display:inline-block;position:relative;width:100%;padding:54.5px 0;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;background-color:#f5f5f7;-webkit-transform-origin:0 0 0;transform-origin:0 0 0}.dingflow-design .add-node-btn-box{width:240px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:1;-ms-flex-positive:1;position:relative}.dingflow-design .add-node-btn-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;margin:auto;width:2px;height:100%;background-color:#cacaca}.dingflow-design .node-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;position:relative}.dingflow-design .branch-wrap,.dingflow-design .node-wrap{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:100%}.dingflow-design .branch-box-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:270px;width:100%;-ms-flex-negative:0;flex-shrink:0}.dingflow-design .branch-box{display:-webkit-box;display:-ms-flexbox;display:flex;overflow:visible;min-height:180px;height:auto;border-bottom:2px solid #ccc;border-top:2px solid #ccc;position:relative;margin-top:15px}.dingflow-design .branch-box .col-box{background:#f5f5f7}.dingflow-design .branch-box .col-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;margin:auto;width:2px;height:100%;background-color:#cacaca}.dingflow-design .add-branch{border:none;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px;padding:0 10px;height:30px;line-height:30px;border-radius:15px;color:#3296fa;background:#fff;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.1);box-shadow:0 2px 4px 0 rgba(0,0,0,.1);position:absolute;top:-16px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transform-origin:center center;transform-origin:center center;cursor:pointer;z-index:1;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1)}.dingflow-design .add-branch:hover{-webkit-transform:translateX(-50%) scale(1.1);transform:translateX(-50%) scale(1.1);-webkit-box-shadow:0 8px 16px 0 rgba(0,0,0,.1);box-shadow:0 8px 16px 0 rgba(0,0,0,.1)}.dingflow-design .add-branch:active{-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-box-shadow:none;box-shadow:none}.dingflow-design .col-box{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.dingflow-design .condition-node{min-height:220px}.dingflow-design .condition-node,.dingflow-design .condition-node-box{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1}.dingflow-design .condition-node-box{padding-top:30px;padding-right:50px;padding-left:50px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative}.dingflow-design .condition-node-box:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:2px;height:100%;background-color:#cacaca}.dingflow-design .auto-judge{position:relative;width:220px;background:#fff;border-radius:4px;padding:14px 19px;cursor:pointer}.dingflow-design .auto-judge:after{pointer-events:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;border-radius:4px;border:1px solid transparent;-webkit-transition:all .1s cubic-bezier(.645,.045,.355,1);transition:all .1s cubic-bezier(.645,.045,.355,1);-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.1);box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.dingflow-design .auto-judge.active:after,.dingflow-design .auto-judge:active:after,.dingflow-design .auto-judge:hover:after{border:1px solid #3296fa;-webkit-box-shadow:0 0 6px 0 rgba(50,150,250,.3);box-shadow:0 0 6px 0 rgba(50,150,250,.3)}.dingflow-design .auto-judge.active .close,.dingflow-design .auto-judge:active .close,.dingflow-design .auto-judge:hover .close{display:block}.dingflow-design .auto-judge.error:after{border:1px solid #f25643;-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.1);box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.dingflow-design .auto-judge .title-wrapper{position:relative;font-size:12px;color:#15bc83;text-align:left;line-height:16px}.dingflow-design .auto-judge .title-wrapper .editable-title{display:inline-block;max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dingflow-design .auto-judge .title-wrapper .priority-title{display:inline-block;float:right;margin-right:10px;color:rgba(25,31,37,.56)}.dingflow-design .auto-judge .placeholder{color:#bfbfbf}.dingflow-design .auto-judge .close{display:none;position:absolute;right:-10px;top:-10px;width:20px;height:20px;font-size:14px;color:rgba(0,0,0,.25);border-radius:50%;text-align:center;line-height:20px;z-index:2}.dingflow-design .auto-judge .content{font-size:14px;color:#191f25;text-align:left;margin-top:6px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.dingflow-design .auto-judge .sort-left,.dingflow-design .auto-judge .sort-right{position:absolute;top:0;bottom:0;display:none;z-index:1}.dingflow-design .auto-judge .sort-left{left:0;border-right:1px solid #f6f6f6}.dingflow-design .auto-judge .sort-right{right:0;border-left:1px solid #f6f6f6}.dingflow-design .auto-judge:hover .sort-left,.dingflow-design .auto-judge:hover .sort-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.dingflow-design .auto-judge .sort-left:hover,.dingflow-design .auto-judge .sort-right:hover{background:#efefef}.dingflow-design .add-node-btn{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:240px;padding:20px 0 32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.dingflow-design .add-node-btn .btn{outline:none;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.1);box-shadow:0 2px 4px 0 rgba(0,0,0,.1);width:30px;height:30px;background:#3296fa;border-radius:50%;position:relative;border:none;line-height:30px;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1)}.dingflow-design .add-node-btn .btn .iconfont{color:#fff;font-size:16px}.dingflow-design .add-node-btn .btn:hover{-webkit-transform:scale(1.3);transform:scale(1.3);-webkit-box-shadow:0 13px 27px 0 rgba(0,0,0,.1);box-shadow:0 13px 27px 0 rgba(0,0,0,.1)}.dingflow-design .add-node-btn .btn:active{-webkit-transform:none;transform:none;background:#1e83e9;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.1);box-shadow:0 2px 4px 0 rgba(0,0,0,.1)}.dingflow-design .end-node{border-radius:50%;font-size:14px;color:rgba(25,31,37,.4);text-align:left}.dingflow-design .end-node .end-node-circle{width:10px;height:10px;margin:auto;border-radius:50%;background:#dbdcdc}.dingflow-design .end-node .end-node-text{margin-top:5px;text-align:center}.approval-setting{border-radius:2px;margin:20px 0;position:relative;background:#fff}.ant-btn{position:relative}',""])},b849:function(e,t,n){var i=n("597a").f,r=n("dce3"),o=n("eeeb")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},b8d7:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
267
267
|
//! moment.js locale configuration
|
|
@@ -275,7 +275,7 @@ function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%1
|
|
|
275
275
|
//! moment.js locale configuration
|
|
276
276
|
var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?o+(i(e)?"sekundy":"sekúnd"):o+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?o+(i(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(i(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?o+(i(e)?"dni":"dní"):o+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?o+(i(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?o+(i(e)?"roky":"rokov"):o+"rokmi"}}var o=e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},bfc9:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
277
277
|
//! moment.js locale configuration
|
|
278
|
-
var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},c025:function(e,t,n){"use strict";var i,r,o,a=n("b68d"),s=n("a9fd"),l=n("0572"),u=n("aba1"),c=n("a3e9"),d=n("d442"),h=n("a46b"),f=d("iterator"),p=!1;[].keys&&(o=[].keys(),"next"in o?(r=u(u(o)),r!==Object.prototype&&(i=r)):p=!0);var m=void 0==i||a((function(){var e={};return i[f].call(e)!==e}));m?i={}:h&&(i=l(i)),s(i[f])||c(i,f,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},c07d:function(e,t,n){var i=n("c6da"),r=n("7faf"),o=n("a9fd"),a=n("244f"),s=i.TypeError;e.exports=function(e,t){var n,i;if("string"===t&&o(n=e.toString)&&!a(i=r(n,e)))return i;if(o(n=e.valueOf)&&!a(i=r(n,e)))return i;if("string"!==t&&o(n=e.toString)&&!a(i=r(n,e)))return i;throw s("Can't convert object to primitive value")}},c07f:function(e,t,n){var i=n("490d"),r=n("e7ec"),o=n("1b92"),a=n("5eb2"),s=n("16bc"),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},c0fe:function(e,t,n){var i=n("352b");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},c1f9:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("b687");function r(e){if(Array.isArray(e))return Object(i["a"])(e)}n("49e9"),n("c2e6"),n("a9b6"),n("742a"),n("c8ba"),n("2690"),n("d4f9"),n("f4c5");function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n("de83");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||o(e)||Object(a["a"])(e)||s()}},c284:function(e,t,n){var i=n("c6da"),r=n("3ec5"),o=n("77bc"),a=n("6ead"),s=n("d28a"),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in r)r[u]&&l(i[u]&&i[u].prototype);l(o)},c2e6:function(e,t,n){"use strict";var i=n("a5ba"),r=n("93a7"),o=n("c6da"),a=n("e7ec"),s=n("12ed"),l=n("a9fd"),u=n("99a6"),c=n("78f8"),d=n("6f4d").f,h=n("9a56"),f=o.Symbol,p=f&&f.prototype;if(r&&l(f)&&(!("description"in p)||void 0!==f().description)){var m={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(m[t]=!0),t};h(v,f),v.prototype=p,p.constructor=v;var g="Symbol(test)"==String(f("test")),y=a(p.toString),b=a(p.valueOf),_=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),x=a("".slice);d(p,"description",{configurable:!0,get:function(){var e=b(this),t=y(e);if(s(m,e))return"";var n=g?x(t,7,-1):w(t,_,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:v})}},c3a6:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
278
|
+
var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},c025:function(e,t,n){"use strict";var i,r,o,a=n("b68d"),s=n("a9fd"),l=n("0572"),u=n("aba1"),c=n("a3e9"),d=n("d442"),h=n("a46b"),f=d("iterator"),p=!1;[].keys&&(o=[].keys(),"next"in o?(r=u(u(o)),r!==Object.prototype&&(i=r)):p=!0);var m=void 0==i||a((function(){var e={};return i[f].call(e)!==e}));m?i={}:h&&(i=l(i)),s(i[f])||c(i,f,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},c07d:function(e,t,n){var i=n("c6da"),r=n("7faf"),o=n("a9fd"),a=n("244f"),s=i.TypeError;e.exports=function(e,t){var n,i;if("string"===t&&o(n=e.toString)&&!a(i=r(n,e)))return i;if(o(n=e.valueOf)&&!a(i=r(n,e)))return i;if("string"!==t&&o(n=e.toString)&&!a(i=r(n,e)))return i;throw s("Can't convert object to primitive value")}},c07f:function(e,t,n){var i=n("490d"),r=n("e7ec"),o=n("1b92"),a=n("5eb2"),s=n("16bc"),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},c0fe:function(e,t,n){var i=n("352b");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},c1f9:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("b687");function r(e){if(Array.isArray(e))return Object(i["a"])(e)}n("49e9"),n("c2e6"),n("a9b6"),n("742a"),n("c8ba"),n("2690"),n("d4f9"),n("f4c5");function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n("de83");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||o(e)||Object(a["a"])(e)||s()}},c284:function(e,t,n){var i=n("c6da"),r=n("3ec5"),o=n("77bc"),a=n("6ead"),s=n("d28a"),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in r)r[u]&&l(i[u]&&i[u].prototype);l(o)},c2e6:function(e,t,n){"use strict";var i=n("a5ba"),r=n("93a7"),o=n("c6da"),a=n("e7ec"),s=n("12ed"),l=n("a9fd"),u=n("99a6"),c=n("78f8"),d=n("6f4d").f,h=n("9a56"),f=o.Symbol,p=f&&f.prototype;if(r&&l(f)&&(!("description"in p)||void 0!==f().description)){var m={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(m[t]=!0),t};h(v,f),v.prototype=p,p.constructor=v;var g="Symbol(test)"==String(f("test")),y=a(p.toString),b=a(p.valueOf),_=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),x=a("".slice);d(p,"description",{configurable:!0,get:function(){var e=b(this),t=y(e);if(s(m,e))return"";var n=g?x(t,7,-1):w(t,_,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:v})}},c302:function(e,t,n){var i=n("b5c6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("5925").default;r("558f69e8",i,!0,{sourceMap:!1,shadowMode:!1})},c3a6:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
279
279
|
//! moment.js locale configuration
|
|
280
280
|
var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1200?"上午":1200===i?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},c3fb:function(e,t){var n=Function.prototype,i=n.apply,r=n.bind,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},c427:function(e,t,n){"use strict";t.__esModule=!0;var i=i||{};i.Utils=i.Utils||{},i.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(i.Utils.attemptFocus(n)||i.Utils.focusFirstDescendant(n))return!0}return!1},i.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(i.Utils.attemptFocus(n)||i.Utils.focusLastDescendant(n))return!0}return!1},i.Utils.attemptFocus=function(e){if(!i.Utils.isFocusable(e))return!1;i.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return i.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},i.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},i.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return i.initEvent.apply(i,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},i.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=i.Utils},c4c8:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},c64f:function(e,t,n){var i=n("c6da"),r=n("7faf"),o=n("16bc"),a=n("a9fd"),s=n("2b5b"),l=n("ba60"),u=i.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var i=r(n,e,t);return null!==i&&o(i),i}if("RegExp"===s(e))return r(l,e,t);throw u("RegExp#exec called on incompatible receiver")}},c65b:function(e,t,n){var i,r;
|
|
281
281
|
/*!
|
|
@@ -308,7 +308,7 @@ function(e){var t,n,i,r,o,a,s,l,u,c,d,h,f,p,m,v,g,y,b,_="sizzle"+1*new Date,w=e.
|
|
|
308
308
|
//! momentjs.com
|
|
309
309
|
(function(t,n){e.exports=n()})(0,(function(){"use strict";var i,r;function o(){return i.apply(null,arguments)}function a(e){i=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function l(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function d(e){return void 0===e}function h(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function m(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function v(e,t,n,i){return Kn(e,t,n,i,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=g()),e._pf}function b(e){if(null==e._isValid){var t=y(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function _(e){var t=v(NaN);return null!=e?m(y(t),e):y(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var w=o.momentProperties=[],x=!1;function k(e,t){var n,i,r;if(d(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),d(t._i)||(e._i=t._i),d(t._f)||(e._f=t._f),d(t._l)||(e._l=t._l),d(t._strict)||(e._strict=t._strict),d(t._tzm)||(e._tzm=t._tzm),d(t._isUTC)||(e._isUTC=t._isUTC),d(t._offset)||(e._offset=t._offset),d(t._pf)||(e._pf=y(t)),d(t._locale)||(e._locale=t._locale),w.length>0)for(n=0;n<w.length;n++)i=w[n],r=t[i],d(r)||(e[i]=r);return e}function M(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,o.updateOffset(this),x=!1)}function C(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function S(e){!1===o.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return m((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var i,r,a,s=[];for(r=0;r<arguments.length;r++){if(i="","object"===typeof arguments[r]){for(a in i+="\n["+r+"] ",arguments[0])u(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[r];s.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var L,T={};function E(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),T[e]||(S(t),T[e]=!0)}function P(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)u(e,n)&&(t=e[n],P(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function j(e,t){var n,i=m({},e);for(n in t)u(t,n)&&(l(e[n])&&l(t[n])?(i[n]={},m(i[n],e[n]),m(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)u(e,n)&&!u(t,n)&&l(e[n])&&(i[n]=m({},i[n]));return i}function I(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,L=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var Y={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,t,n){var i=this._calendar[e]||this._calendar["sameElse"];return P(i)?i.call(t,n):i}function N(e,t,n){var i=""+Math.abs(e),r=t-i.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},z={};function $(e,t,n,i){var r=i;"string"===typeof i&&(r=function(){return this[i]()}),e&&(z[e]=r),t&&(z[t[0]]=function(){return N(r.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function W(e){var t,n,i=e.match(R);for(t=0,n=i.length;t<n;t++)z[i[t]]?i[t]=z[i[t]]:i[t]=B(i[t]);return function(t){var r,o="";for(r=0;r<n;r++)o+=P(i[r])?i[r].call(t,e):i[r];return o}}function V(e,t){return e.isValid()?(t=U(t,e.localeData()),F[t]=F[t]||W(t),F[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}H.lastIndex=0;while(n>=0&&H.test(e))e=e.replace(H,i),H.lastIndex=0,n-=1;return e}var q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var K="Invalid date";function J(){return this._invalidDate}var X="%d",Z=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var ee={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function te(e,t,n,i){var r=this._relativeTime[n];return P(r)?r(e,t,n,i):r.replace(/%d/i,e)}function ne(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)}var ie={};function re(e,t){var n=e.toLowerCase();ie[n]=ie[n+"s"]=ie[t]=e}function oe(e){return"string"===typeof e?ie[e]||ie[e.toLowerCase()]:void 0}function ae(e){var t,n,i={};for(n in e)u(e,n)&&(t=oe(n),t&&(i[t]=e[n]));return i}var se={};function le(e,t){se[e]=t}function ue(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:se[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ce(e){return e%4===0&&e%100!==0||e%400===0}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=de(t)),n}function fe(e,t){return function(n){return null!=n?(me(this,e,n),o.updateOffset(this,t),this):pe(this,e)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=he(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),tt(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ve(e){return e=oe(e),P(this[e])?this[e]():this}function ge(e,t){if("object"===typeof e){e=ae(e);var n,i=ue(e);for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(e=oe(e),P(this[e]))return this[e](t);return this}var ye,be=/\d/,_e=/\d\d/,we=/\d{3}/,xe=/\d{4}/,ke=/[+-]?\d{6}/,Me=/\d\d?/,Ce=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,De=/\d{1,3}/,Le=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Ee=/\d+/,Pe=/[+-]?\d+/,Oe=/Z|[+-]\d\d:?\d\d/gi,je=/Z|[+-]\d\d(?::?\d\d)?/gi,Ie=/[+-]?\d+(\.\d{1,3})?/,Ye=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ae(e,t,n){ye[e]=P(t)?t:function(e,i){return e&&n?n:t}}function Ne(e,t){return u(ye,e)?ye[e](t._strict,t._locale):new RegExp(Re(e))}function Re(e){return He(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r})))}function He(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Fe={};function ze(e,t){var n,i=t;for("string"===typeof e&&(e=[e]),h(t)&&(i=function(e,n){n[t]=he(e)}),n=0;n<e.length;n++)Fe[e[n]]=i}function $e(e,t){ze(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function Be(e,t,n){null!=t&&u(Fe,e)&&Fe[e](t,n._a,n,e)}var We,Ve=0,Ue=1,qe=2,Ge=3,Ke=4,Je=5,Xe=6,Ze=7,Qe=8;function et(e,t){return(e%t+t)%t}function tt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=et(t,12);return e+=(t-n)/12,1===n?ce(e)?29:28:31-n%7%2}We=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",(function(){return this.month()+1})),$("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),$("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),le("month",8),Ae("M",Me),Ae("MM",Me,_e),Ae("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ae("MMMM",(function(e,t){return t.monthsRegex(e)})),ze(["M","MM"],(function(e,t){t[Ue]=he(e)-1})),ze(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[Ue]=r:y(n).invalidMonth=e}));var nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Ye,at=Ye;function st(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months["standalone"]}function lt(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function ut(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=v([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(r=We.call(this._shortMonthsParse,a),-1!==r?r:null):(r=We.call(this._longMonthsParse,a),-1!==r?r:null):"MMM"===t?(r=We.call(this._shortMonthsParse,a),-1!==r?r:(r=We.call(this._longMonthsParse,a),-1!==r?r:null)):(r=We.call(this._longMonthsParse,a),-1!==r?r:(r=We.call(this._shortMonthsParse,a),-1!==r?r:null))}function ct(e,t,n){var i,r,o;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=v([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function dt(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=he(t);else if(t=e.localeData().monthsParse(t),!h(t))return e;return n=Math.min(e.date(),tt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ht(e){return null!=e?(dt(this,e),o.updateOffset(this,!0),this):pe(this,"Month")}function ft(){return tt(this.year(),this.month())}function pt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||vt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function mt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||vt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function vt(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=v([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=He(i[t]),r[t]=He(r[t]);for(t=0;t<24;t++)o[t]=He(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function gt(e){return ce(e)?366:365}$("Y",0,0,(function(){var e=this.year();return e<=9999?N(e,4):"+"+e})),$(0,["YY",2],0,(function(){return this.year()%100})),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),re("year","y"),le("year",1),Ae("Y",Pe),Ae("YY",Me,_e),Ae("YYYY",Le,xe),Ae("YYYYY",Te,ke),Ae("YYYYYY",Te,ke),ze(["YYYYY","YYYYYY"],Ve),ze("YYYY",(function(e,t){t[Ve]=2===e.length?o.parseTwoDigitYear(e):he(e)})),ze("YY",(function(e,t){t[Ve]=o.parseTwoDigitYear(e)})),ze("Y",(function(e,t){t[Ve]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var yt=fe("FullYear",!0);function bt(){return ce(this.year())}function _t(e,t,n,i,r,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function wt(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(e,t,n){var i=7+t-n,r=(7+wt(e,0,i).getUTCDay()-t)%7;return-r+i-1}function kt(e,t,n,i,r){var o,a,s=(7+n-i)%7,l=xt(e,i,r),u=1+7*(t-1)+s+l;return u<=0?(o=e-1,a=gt(o)+u):u>gt(e)?(o=e+1,a=u-gt(e)):(o=e,a=u),{year:o,dayOfYear:a}}function Mt(e,t,n){var i,r,o=xt(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+Ct(r,t,n)):a>Ct(e.year(),t,n)?(i=a-Ct(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ct(e,t,n){var i=xt(e,t,n),r=xt(e+1,t,n);return(gt(e)-i+r)/7}function St(e){return Mt(e,this._week.dow,this._week.doy).week}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),le("week",5),le("isoWeek",5),Ae("w",Me),Ae("ww",Me,_e),Ae("W",Me),Ae("WW",Me,_e),$e(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=he(e)}));var Dt={dow:0,doy:6};function Lt(){return this._week.dow}function Tt(){return this._week.doy}function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pt(e){var t=Mt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ot(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function jt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function It(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("d",0,"do","day"),$("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),$("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),$("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),le("day",11),le("weekday",11),le("isoWeekday",11),Ae("d",Me),Ae("e",Me),Ae("E",Me),Ae("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ae("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ae("dddd",(function(e,t){return t.weekdaysRegex(e)})),$e(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:y(n).invalidWeekday=e})),$e(["d","e","E"],(function(e,t,n,i){t[i]=he(e)}));var Yt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),At="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=Ye,Ht=Ye,Ft=Ye;function zt(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?It(n,this._week.dow):e?n[e.day()]:n}function $t(e){return!0===e?It(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bt(e){return!0===e?It(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Wt(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=v([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(r=We.call(this._weekdaysParse,a),-1!==r?r:null):"ddd"===t?(r=We.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=We.call(this._minWeekdaysParse,a),-1!==r?r:null):"dddd"===t?(r=We.call(this._weekdaysParse,a),-1!==r?r:(r=We.call(this._shortWeekdaysParse,a),-1!==r?r:(r=We.call(this._minWeekdaysParse,a),-1!==r?r:null))):"ddd"===t?(r=We.call(this._shortWeekdaysParse,a),-1!==r?r:(r=We.call(this._weekdaysParse,a),-1!==r?r:(r=We.call(this._minWeekdaysParse,a),-1!==r?r:null))):(r=We.call(this._minWeekdaysParse,a),-1!==r?r:(r=We.call(this._weekdaysParse,a),-1!==r?r:(r=We.call(this._shortWeekdaysParse,a),-1!==r?r:null)))}function Vt(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Wt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=v([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ot(e,this.localeData()),this.add(e-t,"d")):t}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Gt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=jt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Rt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Jt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ht),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=v([2e3,1]).day(t),i=He(this.weekdaysMin(n,"")),r=He(this.weekdaysShort(n,"")),o=He(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);a.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function en(){return this.hours()||24}function tn(e,t){$(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function nn(e,t){return t._meridiemParse}function rn(e){return"p"===(e+"").toLowerCase().charAt(0)}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Qt),$("k",["kk",2],0,en),$("hmm",0,0,(function(){return""+Qt.apply(this)+N(this.minutes(),2)})),$("hmmss",0,0,(function(){return""+Qt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),$("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),$("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),tn("a",!0),tn("A",!1),re("hour","h"),le("hour",13),Ae("a",nn),Ae("A",nn),Ae("H",Me),Ae("h",Me),Ae("k",Me),Ae("HH",Me,_e),Ae("hh",Me,_e),Ae("kk",Me,_e),Ae("hmm",Ce),Ae("hmmss",Se),Ae("Hmm",Ce),Ae("Hmmss",Se),ze(["H","HH"],Ge),ze(["k","kk"],(function(e,t,n){var i=he(e);t[Ge]=24===i?0:i})),ze(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ze(["h","hh"],(function(e,t,n){t[Ge]=he(e),y(n).bigHour=!0})),ze("hmm",(function(e,t,n){var i=e.length-2;t[Ge]=he(e.substr(0,i)),t[Ke]=he(e.substr(i)),y(n).bigHour=!0})),ze("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Ge]=he(e.substr(0,i)),t[Ke]=he(e.substr(i,2)),t[Je]=he(e.substr(r)),y(n).bigHour=!0})),ze("Hmm",(function(e,t,n){var i=e.length-2;t[Ge]=he(e.substr(0,i)),t[Ke]=he(e.substr(i))})),ze("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Ge]=he(e.substr(0,i)),t[Ke]=he(e.substr(i,2)),t[Je]=he(e.substr(r))}));var on=/[ap]\.?m?\.?/i,an=fe("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var ln,un={calendar:Y,longDateFormat:q,invalidDate:K,ordinal:X,dayOfMonthOrdinalParse:Z,relativeTime:ee,months:nt,monthsShort:it,week:Dt,weekdays:Yt,weekdaysMin:Nt,weekdaysShort:At,meridiemParse:on},cn={},dn={};function hn(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function pn(e){var t,n,i,r,o=0;while(o<e.length){r=fn(e[o]).split("-"),t=r.length,n=fn(e[o+1]),n=n?n.split("-"):null;while(t>0){if(i=mn(r.slice(0,t).join("-")),i)return i;if(n&&n.length>=t&&hn(r,n)>=t-1)break;t--}o++}return ln}function mn(i){var r=null;if(void 0===cn[i]&&"undefined"!==typeof e&&e&&e.exports)try{r=ln._abbr,t,n("aaf1")("./"+i),vn(r)}catch(o){cn[i]=null}return cn[i]}function vn(e,t){var n;return e&&(n=d(t)?bn(e):gn(e,t),n?ln=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ln._abbr}function gn(e,t){if(null!==t){var n,i=un;if(t.abbr=e,null!=cn[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])i=cn[t.parentLocale]._config;else{if(n=mn(t.parentLocale),null==n)return dn[t.parentLocale]||(dn[t.parentLocale]=[]),dn[t.parentLocale].push({name:e,config:t}),null;i=n._config}return cn[e]=new I(j(i,t)),dn[e]&&dn[e].forEach((function(e){gn(e.name,e.config)})),vn(e),cn[e]}return delete cn[e],null}function yn(e,t){if(null!=t){var n,i,r=un;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(j(cn[e]._config,t)):(i=mn(e),null!=i&&(r=i._config),t=j(r,t),null==i&&(t.abbr=e),n=new I(t),n.parentLocale=cn[e],cn[e]=n),vn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===vn()&&vn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ln;if(!s(e)){if(t=mn(e),t)return t;e=[e]}return pn(e)}function _n(){return L(cn)}function wn(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[qe]<1||n[qe]>tt(n[Ve],n[Ue])?qe:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[Ke]||0!==n[Je]||0!==n[Xe])?Ge:n[Ke]<0||n[Ke]>59?Ke:n[Je]<0||n[Je]>59?Je:n[Xe]<0||n[Xe]>999?Xe:-1,y(e)._overflowDayOfYear&&(t<Ve||t>qe)&&(t=qe),y(e)._overflowWeeks&&-1===t&&(t=Ze),y(e)._overflowWeekday&&-1===t&&(t=Qe),y(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mn=/Z|[+-]\d\d(?::?\d\d)?/,Cn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((-?\d+)/i,Ln=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function En(e){var t,n,i,r,o,a,s=e._i,l=xn.exec(s)||kn.exec(s);if(l){for(y(e).iso=!0,t=0,n=Cn.length;t<n;t++)if(Cn[t][1].exec(l[1])){r=Cn[t][0],i=!1!==Cn[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=Sn.length;t<n;t++)if(Sn[t][1].exec(l[3])){o=(l[2]||" ")+Sn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Mn.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(o||"")+(a||""),$n(e)}else e._isValid=!1}function Pn(e,t,n,i,r,o){var a=[On(e),it.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&a.push(parseInt(o,10)),a}function On(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function jn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(e,t,n){if(e){var i=At.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(i!==r)return y(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Yn(e,t,n){if(e)return Tn[e];if(t)return 0;var i=parseInt(n,10),r=i%100,o=(i-r)/100;return 60*o+r}function An(e){var t,n=Ln.exec(jn(e._i));if(n){if(t=Pn(n[4],n[3],n[2],n[5],n[6],n[7]),!In(n[1],t,e))return;e._a=t,e._tzm=Yn(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Nn(e){var t=Dn.exec(e._i);null===t?(En(e),!1===e._isValid&&(delete e._isValid,An(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Rn(e,t,n){return null!=e?e:null!=t?t:n}function Hn(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,i,r,o,a=[];if(!e._d){for(i=Hn(e),e._w&&null==e._a[qe]&&null==e._a[Ue]&&zn(e),null!=e._dayOfYear&&(o=Rn(e._a[Ve],i[Ve]),(e._dayOfYear>gt(o)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=wt(o,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[qe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ge]&&0===e._a[Ke]&&0===e._a[Je]&&0===e._a[Xe]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?wt:_t).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==r&&(y(e).weekdayMismatch=!0)}}function zn(e){var t,n,i,r,o,a,s,l,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,a=4,n=Rn(t.GG,e._a[Ve],Mt(Jn(),1,4).year),i=Rn(t.W,1),r=Rn(t.E,1),(r<1||r>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Mt(Jn(),o,a),n=Rn(t.gg,e._a[Ve],u.year),i=Rn(t.w,u.week),null!=t.d?(r=t.d,(r<0||r>6)&&(l=!0)):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o),i<1||i>Ct(n,o,a)?y(e)._overflowWeeks=!0:null!=l?y(e)._overflowWeekday=!0:(s=kt(n,i,r,o,a),e._a[Ve]=s.year,e._dayOfYear=s.dayOfYear)}function $n(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],y(e).empty=!0;var t,n,i,r,a,s,l=""+e._i,u=l.length,c=0;for(i=U(e._f,e._locale).match(R)||[],t=0;t<i.length;t++)r=i[t],n=(l.match(Ne(r,e))||[])[0],n&&(a=l.substr(0,l.indexOf(n)),a.length>0&&y(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),c+=n.length),z[r]?(n?y(e).empty=!1:y(e).unusedTokens.push(r),Be(r,n,e)):e._strict&&!n&&y(e).unusedTokens.push(r);y(e).charsLeftOver=u-c,l.length>0&&y(e).unusedInput.push(l),e._a[Ge]<=12&&!0===y(e).bigHour&&e._a[Ge]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Ge]=Bn(e._locale,e._a[Ge],e._meridiem),s=y(e).era,null!==s&&(e._a[Ve]=e._locale.erasConvertYear(s,e._a[Ve])),Fn(e),wn(e)}else An(e);else En(e)}function Bn(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function Wn(e){var t,n,i,r,o,a,s=!1;if(0===e._f.length)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)o=0,a=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],$n(t),b(t)&&(a=!0),o+=y(t).charsLeftOver,o+=10*y(t).unusedTokens.length,y(t).score=o,s?o<i&&(i=o,n=t):(null==i||o<i||a)&&(i=o,n=t,a&&(s=!0));m(e,n||t)}function Vn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Fn(e)}}function Un(e){var t=new M(wn(qn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function qn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new M(wn(t)):(f(t)?e._d=t:s(n)?Wn(e):n?$n(e):Gn(e),b(e)||(e._d=null),e))}function Gn(e){var t=e._i;d(t)?e._d=new Date(o.now()):f(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Nn(e):s(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):l(t)?Vn(e):h(t)?e._d=new Date(t):o.createFromInputFallback(e)}function Kn(e,t,n,i,r){var o={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(l(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=n,o._i=e,o._f=t,o._strict=i,Un(o)}function Jn(e,t,n,i){return Kn(e,t,n,i,!1)}o.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Xn=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()})),Zn=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}));function Qn(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function ei(){var e=[].slice.call(arguments,0);return Qn("isBefore",e)}function ti(){var e=[].slice.call(arguments,0);return Qn("isAfter",e)}var ni=function(){return Date.now?Date.now():+new Date},ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ri(e){var t,n,i=!1;for(t in e)if(u(e,t)&&(-1===We.call(ii,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<ii.length;++n)if(e[ii[n]]){if(i)return!1;parseFloat(e[ii[n]])!==he(e[ii[n]])&&(i=!0)}return!0}function oi(){return this._isValid}function ai(){return Ti(NaN)}function si(e){var t=ae(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=ri(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=bn(),this._bubble()}function li(e){return e instanceof si}function ui(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ci(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&he(e[i])!==he(t[i]))&&a++;return a+o}function di(e,t){$(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)}))}di("Z",":"),di("ZZ",""),Ae("Z",je),Ae("ZZ",je),ze(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fi(je,e)}));var hi=/([\+\-]|\d\d)/gi;function fi(e,t){var n,i,r,o=(t||"").match(e);return null===o?null:(n=o[o.length-1]||[],i=(n+"").match(hi)||["-",0,0],r=60*i[1]+he(i[2]),0===r?0:"+"===i[0]?r:-r)}function pi(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(C(e)||f(e)?e.valueOf():Jn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),o.updateOffset(n,!1),n):Jn(e).local()}function mi(e){return-Math.round(e._d.getTimezoneOffset())}function vi(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(e=fi(je,e),null===e)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mi(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Ii(this,Ti(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:mi(this)}function gi(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yi(e){return this.utcOffset(0,e)}function bi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mi(this),"m")),this}function _i(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=fi(Oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wi(e){return!!this.isValid()&&(e=e?Jn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function xi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ki(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),t=qn(t),t._a?(e=t._isUTC?v(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&ci(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Mi(){return!!this.isValid()&&!this._isUTC}function Ci(){return!!this.isValid()&&this._isUTC}function Si(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}o.updateOffset=function(){};var Di=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Li=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ti(e,t){var n,i,r,o=e,a=null;return li(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Di.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:he(a[qe])*n,h:he(a[Ge])*n,m:he(a[Ke])*n,s:he(a[Je])*n,ms:he(ui(1e3*a[Xe]))*n}):(a=Li.exec(e))?(n="-"===a[1]?-1:1,o={y:Ei(a[2],n),M:Ei(a[3],n),w:Ei(a[4],n),d:Ei(a[5],n),h:Ei(a[6],n),m:Ei(a[7],n),s:Ei(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(r=Oi(Jn(o.from),Jn(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new si(o),li(e)&&u(e,"_locale")&&(i._locale=e._locale),li(e)&&u(e,"_isValid")&&(i._isValid=e._isValid),i}function Ei(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Pi(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Oi(e,t){var n;return e.isValid()&&t.isValid()?(t=pi(t,e),e.isBefore(t)?n=Pi(e,t):(n=Pi(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ji(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),r=Ti(n,i),Ii(this,r,e),this}}function Ii(e,t,n,i){var r=t._milliseconds,a=ui(t._days),s=ui(t._months);e.isValid()&&(i=null==i||i,s&&dt(e,pe(e,"Month")+s*n),a&&me(e,"Date",pe(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&o.updateOffset(e,a||s))}Ti.fn=si.prototype,Ti.invalid=ai;var Yi=ji(1,"add"),Ai=ji(-1,"subtract");function Ni(e){return"string"===typeof e||e instanceof String}function Ri(e){return C(e)||f(e)||Ni(e)||h(e)||Fi(e)||Hi(e)||null===e||void 0===e}function Hi(e){var t,n,i=l(e)&&!c(e),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],r=r||u(e,n);return i&&r}function Fi(e){var t=s(e),n=!1;return t&&(n=0===e.filter((function(t){return!h(t)&&Ni(e)})).length),t&&n}function zi(e){var t,n,i=l(e)&&!c(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],r=r||u(e,n);return i&&r}function $i(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Bi(e,t){1===arguments.length&&(arguments[0]?Ri(arguments[0])?(e=arguments[0],t=void 0):zi(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Jn(),i=pi(n,this).startOf("day"),r=o.calendarFormat(this,i)||"sameElse",a=t&&(P(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,Jn(n)))}function Wi(){return new M(this)}function Vi(e,t){var n=C(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&(t=oe(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Ui(e,t){var n=C(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&(t=oe(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function qi(e,t,n,i){var r=C(e)?e:Jn(e),o=C(t)?t:Jn(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&(i=i||"()",("("===i[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n)))}function Gi(e,t){var n,i=C(e)?e:Jn(e);return!(!this.isValid()||!i.isValid())&&(t=oe(t)||"millisecond","millisecond"===t?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Ki(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ji(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xi(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(i=pi(e,this),!i.isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=oe(t),t){case"year":o=Zi(this,i)/12;break;case"month":o=Zi(this,i);break;case"quarter":o=Zi(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:de(o)}function Zi(e,t){if(e.date()<t.date())return-Zi(t,e);var n,i,r=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(r,"months");return t-o<0?(n=e.clone().add(r-1,"months"),i=(t-o)/(o-n)):(n=e.clone().add(r+1,"months"),i=(t-o)/(n-o)),-(r+i)||0}function Qi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=o+'[")]',this.format(e+t+n+i)}function nr(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)}function ir(e,t){return this.isValid()&&(C(e)&&e.isValid()||Jn(e).isValid())?Ti({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(e){return this.from(Jn(),e)}function or(e,t){return this.isValid()&&(C(e)&&e.isValid()||Jn(e).isValid())?Ti({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ar(e){return this.to(Jn(),e)}function sr(e){var t;return void 0===e?this._locale._abbr:(t=bn(e),null!=t&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ur(){return this._locale}var cr=1e3,dr=60*cr,hr=60*dr,fr=3506328*hr;function pr(e,t){return(e%t+t)%t}function mr(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fr:new Date(e,t,n).valueOf()}function vr(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fr:Date.UTC(e,t,n)}function gr(e){var t,n;if(e=oe(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vr:mr,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pr(t+(this._isUTC?0:this.utcOffset()*dr),hr);break;case"minute":t=this._d.valueOf(),t-=pr(t,dr);break;case"second":t=this._d.valueOf(),t-=pr(t,cr);break}return this._d.setTime(t),o.updateOffset(this,!0),this}function yr(e){var t,n;if(e=oe(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vr:mr,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hr-pr(t+(this._isUTC?0:this.utcOffset()*dr),hr)-1;break;case"minute":t=this._d.valueOf(),t+=dr-pr(t,dr)-1;break;case"second":t=this._d.valueOf(),t+=cr-pr(t,cr)-1;break}return this._d.setTime(t),o.updateOffset(this,!0),this}function br(){return this._d.valueOf()-6e4*(this._offset||0)}function _r(){return Math.floor(this.valueOf()/1e3)}function wr(){return new Date(this.valueOf())}function xr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function kr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Mr(){return this.isValid()?this.toISOString():null}function Cr(){return b(this)}function Sr(){return m({},y(this))}function Dr(){return y(this).overflow}function Lr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Tr(e,t){var n,i,r,a=this._eras||bn("en")._eras;for(n=0,i=a.length;n<i;++n){switch(typeof a[n].since){case"string":r=o(a[n].since).startOf("day"),a[n].since=r.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=o(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf();break}}return a}function Er(e,t,n){var i,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),a=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(s===e)return l[i];break}else if([o,a,s].indexOf(e)>=0)return l[i]}function Pr(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n}function Or(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""}function jr(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""}function Ir(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""}function Yr(){var e,t,n,i,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,i=this.clone().startOf("day").valueOf(),r[e].since<=i&&i<=r[e].until||r[e].until<=i&&i<=r[e].since)return(this.year()-o(r[e].since).year())*n+r[e].offset;return this.year()}function Ar(e){return u(this,"_erasNameRegex")||Br.call(this),e?this._erasNameRegex:this._erasRegex}function Nr(e){return u(this,"_erasAbbrRegex")||Br.call(this),e?this._erasAbbrRegex:this._erasRegex}function Rr(e){return u(this,"_erasNarrowRegex")||Br.call(this),e?this._erasNarrowRegex:this._erasRegex}function Hr(e,t){return t.erasAbbrRegex(e)}function Fr(e,t){return t.erasNameRegex(e)}function zr(e,t){return t.erasNarrowRegex(e)}function $r(e,t){return t._eraYearOrdinalRegex||Ee}function Br(){var e,t,n=[],i=[],r=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)i.push(He(a[e].name)),n.push(He(a[e].abbr)),r.push(He(a[e].narrow)),o.push(He(a[e].name)),o.push(He(a[e].abbr)),o.push(He(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Wr(e,t){$(0,[e,e.length],0,t)}function Vr(e){return Xr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ur(e){return Xr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qr(){return Ct(this.year(),1,4)}function Gr(){return Ct(this.isoWeekYear(),1,4)}function Kr(){var e=this.localeData()._week;return Ct(this.year(),e.dow,e.doy)}function Jr(){var e=this.localeData()._week;return Ct(this.weekYear(),e.dow,e.doy)}function Xr(e,t,n,i,r){var o;return null==e?Mt(this,i,r).year:(o=Ct(e,i,r),t>o&&(t=o),Zr.call(this,e,t,n,i,r))}function Zr(e,t,n,i,r){var o=kt(e,t,n,i,r),a=wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Qr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),Ae("N",Hr),Ae("NN",Hr),Ae("NNN",Hr),Ae("NNNN",Fr),Ae("NNNNN",zr),ze(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?y(n).era=r:y(n).invalidEra=e})),Ae("y",Ee),Ae("yy",Ee),Ae("yyy",Ee),Ae("yyyy",Ee),Ae("yo",$r),ze(["y","yy","yyy","yyyy"],Ve),ze(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ve]=n._locale.eraYearOrdinalParse(e,r):t[Ve]=parseInt(e,10)})),$(0,["gg",2],0,(function(){return this.weekYear()%100})),$(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wr("gggg","weekYear"),Wr("ggggg","weekYear"),Wr("GGGG","isoWeekYear"),Wr("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),le("weekYear",1),le("isoWeekYear",1),Ae("G",Pe),Ae("g",Pe),Ae("GG",Me,_e),Ae("gg",Me,_e),Ae("GGGG",Le,xe),Ae("gggg",Le,xe),Ae("GGGGG",Te,ke),Ae("ggggg",Te,ke),$e(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=he(e)})),$e(["gg","GG"],(function(e,t,n,i){t[i]=o.parseTwoDigitYear(e)})),$("Q",0,"Qo","quarter"),re("quarter","Q"),le("quarter",7),Ae("Q",be),ze("Q",(function(e,t){t[Ue]=3*(he(e)-1)})),$("D",["DD",2],"Do","date"),re("date","D"),le("date",9),Ae("D",Me),Ae("DD",Me,_e),Ae("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ze(["D","DD"],qe),ze("Do",(function(e,t){t[qe]=he(e.match(Me)[0])}));var eo=fe("Date",!0);function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}$("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),le("dayOfYear",4),Ae("DDD",De),Ae("DDDD",we),ze(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),$("m",["mm",2],0,"minute"),re("minute","m"),le("minute",14),Ae("m",Me),Ae("mm",Me,_e),ze(["m","mm"],Ke);var no=fe("Minutes",!1);$("s",["ss",2],0,"second"),re("second","s"),le("second",15),Ae("s",Me),Ae("ss",Me,_e),ze(["s","ss"],Je);var io,ro,oo=fe("Seconds",!1);for($("S",0,0,(function(){return~~(this.millisecond()/100)})),$(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),$(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),$(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),$(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),$(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),$(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),le("millisecond",16),Ae("S",De,be),Ae("SS",De,_e),Ae("SSS",De,we),io="SSSS";io.length<=9;io+="S")Ae(io,Ee);function ao(e,t){t[Xe]=he(1e3*("0."+e))}for(io="S";io.length<=9;io+="S")ze(io,ao);function so(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}ro=fe("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var uo=M.prototype;function co(e){return Jn(1e3*e)}function ho(){return Jn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Yi,uo.calendar=Bi,uo.clone=Wi,uo.diff=Xi,uo.endOf=yr,uo.format=nr,uo.from=ir,uo.fromNow=rr,uo.to=or,uo.toNow=ar,uo.get=ve,uo.invalidAt=Dr,uo.isAfter=Vi,uo.isBefore=Ui,uo.isBetween=qi,uo.isSame=Gi,uo.isSameOrAfter=Ki,uo.isSameOrBefore=Ji,uo.isValid=Cr,uo.lang=lr,uo.locale=sr,uo.localeData=ur,uo.max=Zn,uo.min=Xn,uo.parsingFlags=Sr,uo.set=ge,uo.startOf=gr,uo.subtract=Ai,uo.toArray=xr,uo.toObject=kr,uo.toDate=wr,uo.toISOString=er,uo.inspect=tr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Mr,uo.toString=Qi,uo.unix=_r,uo.valueOf=br,uo.creationData=Lr,uo.eraName=Or,uo.eraNarrow=jr,uo.eraAbbr=Ir,uo.eraYear=Yr,uo.year=yt,uo.isLeapYear=bt,uo.weekYear=Vr,uo.isoWeekYear=Ur,uo.quarter=uo.quarters=Qr,uo.month=ht,uo.daysInMonth=ft,uo.week=uo.weeks=Et,uo.isoWeek=uo.isoWeeks=Pt,uo.weeksInYear=Kr,uo.weeksInWeekYear=Jr,uo.isoWeeksInYear=qr,uo.isoWeeksInISOWeekYear=Gr,uo.date=eo,uo.day=uo.days=Ut,uo.weekday=qt,uo.isoWeekday=Gt,uo.dayOfYear=to,uo.hour=uo.hours=an,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=ro,uo.utcOffset=vi,uo.utc=yi,uo.local=bi,uo.parseZone=_i,uo.hasAlignedHourOffset=wi,uo.isDST=xi,uo.isLocal=Mi,uo.isUtcOffset=Ci,uo.isUtc=Si,uo.isUTC=Si,uo.zoneAbbr=so,uo.zoneName=lo,uo.dates=D("dates accessor is deprecated. Use date instead.",eo),uo.months=D("months accessor is deprecated. Use month instead",ht),uo.years=D("years accessor is deprecated. Use year instead",yt),uo.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gi),uo.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ki);var po=I.prototype;function mo(e,t,n,i){var r=bn(),o=v().set(i,t);return r[n](o,e)}function vo(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=mo(e,i,n,"month");return r}function go(e,t,n,i){"boolean"===typeof e?(h(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,h(t)&&(n=t,t=void 0),t=t||"");var r,o=bn(),a=e?o._week.dow:0,s=[];if(null!=n)return mo(t,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=mo(t,(r+a)%7,i,"day");return s}function yo(e,t){return vo(e,t,"months")}function bo(e,t){return vo(e,t,"monthsShort")}function _o(e,t,n){return go(e,t,n,"weekdays")}function wo(e,t,n){return go(e,t,n,"weekdaysShort")}function xo(e,t,n){return go(e,t,n,"weekdaysMin")}po.calendar=A,po.longDateFormat=G,po.invalidDate=J,po.ordinal=Q,po.preparse=fo,po.postformat=fo,po.relativeTime=te,po.pastFuture=ne,po.set=O,po.eras=Tr,po.erasParse=Er,po.erasConvertYear=Pr,po.erasAbbrRegex=Nr,po.erasNameRegex=Ar,po.erasNarrowRegex=Rr,po.months=st,po.monthsShort=lt,po.monthsParse=ct,po.monthsRegex=mt,po.monthsShortRegex=pt,po.week=St,po.firstDayOfYear=Tt,po.firstDayOfWeek=Lt,po.weekdays=zt,po.weekdaysMin=Bt,po.weekdaysShort=$t,po.weekdaysParse=Vt,po.weekdaysRegex=Kt,po.weekdaysShortRegex=Jt,po.weekdaysMinRegex=Xt,po.isPM=rn,po.meridiem=sn,vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=D("moment.lang is deprecated. Use moment.locale instead.",vn),o.langData=D("moment.langData is deprecated. Use moment.localeData instead.",bn);var ko=Math.abs;function Mo(){var e=this._data;return this._milliseconds=ko(this._milliseconds),this._days=ko(this._days),this._months=ko(this._months),e.milliseconds=ko(e.milliseconds),e.seconds=ko(e.seconds),e.minutes=ko(e.minutes),e.hours=ko(e.hours),e.months=ko(e.months),e.years=ko(e.years),this}function Co(e,t,n,i){var r=Ti(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function So(e,t){return Co(this,e,t,1)}function Do(e,t){return Co(this,e,t,-1)}function Lo(e){return e<0?Math.floor(e):Math.ceil(e)}function To(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Lo(Po(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=de(o/1e3),l.seconds=e%60,t=de(e/60),l.minutes=t%60,n=de(t/60),l.hours=n%24,a+=de(n/24),r=de(Eo(a)),s+=r,a-=Lo(Po(r)),i=de(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function Eo(e){return 4800*e/146097}function Po(e){return 146097*e/4800}function Oo(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(e=oe(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Eo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Po(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function jo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*he(this._months/12):NaN}function Io(e){return function(){return this.as(e)}}var Yo=Io("ms"),Ao=Io("s"),No=Io("m"),Ro=Io("h"),Ho=Io("d"),Fo=Io("w"),zo=Io("M"),$o=Io("Q"),Bo=Io("y");function Wo(){return Ti(this)}function Vo(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Uo(e){return function(){return this.isValid()?this._data[e]:NaN}}var qo=Uo("milliseconds"),Go=Uo("seconds"),Ko=Uo("minutes"),Jo=Uo("hours"),Xo=Uo("days"),Zo=Uo("months"),Qo=Uo("years");function ea(){return de(this.days()/7)}var ta=Math.round,na={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ia(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function ra(e,t,n,i){var r=Ti(e).abs(),o=ta(r.as("s")),a=ta(r.as("m")),s=ta(r.as("h")),l=ta(r.as("d")),u=ta(r.as("M")),c=ta(r.as("w")),d=ta(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d],h[2]=t,h[3]=+e>0,h[4]=i,ia.apply(null,h)}function oa(e){return void 0===e?ta:"function"===typeof e&&(ta=e,!0)}function aa(e,t){return void 0!==na[e]&&(void 0===t?na[e]:(na[e]=t,"s"===e&&(na.ss=t-1),!0))}function sa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=na;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(r=e),"object"===typeof t&&(o=Object.assign({},na,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),i=ra(this,!r,o,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var la=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,a,s,l=la(this._milliseconds)/1e3,u=la(this._days),c=la(this._months),d=this.asSeconds();return d?(e=de(l/60),t=de(e/60),l%=60,e%=60,n=de(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=ua(this._months)!==ua(d)?"-":"",a=ua(this._days)!==ua(d)?"-":"",s=ua(this._milliseconds)!==ua(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var da=si.prototype;return da.isValid=oi,da.abs=Mo,da.add=So,da.subtract=Do,da.as=Oo,da.asMilliseconds=Yo,da.asSeconds=Ao,da.asMinutes=No,da.asHours=Ro,da.asDays=Ho,da.asWeeks=Fo,da.asMonths=zo,da.asQuarters=$o,da.asYears=Bo,da.valueOf=jo,da._bubble=To,da.clone=Wo,da.get=Vo,da.milliseconds=qo,da.seconds=Go,da.minutes=Ko,da.hours=Jo,da.days=Xo,da.weeks=ea,da.months=Zo,da.years=Qo,da.humanize=sa,da.toISOString=ca,da.toString=ca,da.toJSON=ca,da.locale=sr,da.localeData=ur,da.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),da.lang=lr,$("X",0,0,"unix"),$("x",0,0,"valueOf"),Ae("x",Pe),Ae("X",Ie),ze("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ze("x",(function(e,t,n){n._d=new Date(he(e))})),
|
|
310
310
|
//! moment.js
|
|
311
|
-
o.version="2.29.1",a(Jn),o.fn=uo,o.min=ei,o.max=ti,o.now=ni,o.utc=v,o.unix=co,o.months=yo,o.isDate=f,o.locale=vn,o.invalid=_,o.duration=Ti,o.isMoment=C,o.weekdays=_o,o.parseZone=ho,o.localeData=bn,o.isDuration=li,o.monthsShort=bo,o.weekdaysMin=xo,o.defineLocale=gn,o.updateLocale=yn,o.locales=_n,o.weekdaysShort=wo,o.normalizeUnits=oe,o.relativeTimeRounding=oa,o.relativeTimeThreshold=aa,o.calendarFormat=$i,o.prototype=uo,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}))}).call(this,n("adb6")(e))},cb75:function(e,t,n){"use strict";var i=n("ad94"),r=n("4efb");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},cba8:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},cc26:function(e,t,n){"use strict";var i=n("cc5a");e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},cc5a:function(e,t,n){"use strict";var i=n("190f");e.exports=function(e,t,n,r,o){var a=new Error(e);return i(a,t,n,r,o)}},ccb5:function(e,t,n){var i=n("9332"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},
|
|
311
|
+
o.version="2.29.1",a(Jn),o.fn=uo,o.min=ei,o.max=ti,o.now=ni,o.utc=v,o.unix=co,o.months=yo,o.isDate=f,o.locale=vn,o.invalid=_,o.duration=Ti,o.isMoment=C,o.weekdays=_o,o.parseZone=ho,o.localeData=bn,o.isDuration=li,o.monthsShort=bo,o.weekdaysMin=xo,o.defineLocale=gn,o.updateLocale=yn,o.locales=_n,o.weekdaysShort=wo,o.normalizeUnits=oe,o.relativeTimeRounding=oa,o.relativeTimeThreshold=aa,o.calendarFormat=$i,o.prototype=uo,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}))}).call(this,n("adb6")(e))},cb75:function(e,t,n){"use strict";var i=n("ad94"),r=n("4efb");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},cba8:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},cc26:function(e,t,n){"use strict";var i=n("cc5a");e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},cc5a:function(e,t,n){"use strict";var i=n("190f");e.exports=function(e,t,n,r,o){var a=new Error(e);return i(a,t,n,r,o)}},ccb5:function(e,t,n){var i=n("9332"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},cd19:function(e,t,n){"use strict";var i=n("c6da"),r=n("9332"),o=n("78f8"),a=n("41be"),s=i.RangeError;e.exports=function(e){var t=o(a(this)),n="",i=r(e);if(i<0||i==1/0)throw s("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},cd23:function(e,t,n){"use strict";n("5a14")},cdd3:function(e,t,n){"use strict";n("44ad");var i=n("db04"),r=JSON.parse(localStorage.getItem("env"))||{},o=r.VUE_APP_API,a=r.VUE_APP_EMTERPRISE,s=r.VUE_APP_QIGUAN,l={getOrgsData:function(){return i["a"].get(o+a+"/v1/organization/getNewOrganizationAndContacts")},list:function(){return i["a"].get(o+a+"/v1/organization/getOrganizationAndContacts")},companylist:function(){return i["a"].get(o+a+"/v1/organization/getCompany")},deplist:function(e){return i["a"].get(o+a+"/v1/organization/getDep/".concat(e))},getId:function(e){return i["a"].get(o+a+"/v1/organization/getOrganization/".concat(e))},save:function(e){return i["a"].post(o+a+"/v1/organization/saveOrganization",e)},setSort:function(e){return i["a"].post(o+a+"/v1/organization/setSort",e)},setRoleSort:function(e){return i["a"].post(o+a+"/v1/organization/setRoleSort",e)},del:function(e){return i["a"].delete(o+a+"/v1/organization/delOrg/".concat(e))},delRole:function(e){return i["a"].delete(o+a+"/v1/organization/delRole/".concat(e))},getRole:function(){return i["a"].get(o+a+"/v1/organization/getRole")},saveRole:function(e){return i["a"].post(o+a+"/v1/organization/saveRole",e)},getUser:function(e){return i["a"].post(o+a+"/v1/organization/getUser",e)},getUserByParentId:function(e){return i["a"].get(o+a+"/v1/organization/getUserByParentId/".concat(e))},setUserSort:function(e){return i["a"].post(o+a+"/v1/organization/setUserSort",e)},saveContacts:function(e){return i["a"].post(o+a+"/v1/organization/saveContacts",e)},openIm:function(e){return i["a"].get(o+s+"/v1/app/common/openIm?mobile="+e)},getUserByPhone:function(e){return i["a"].post(o+a+"/v1/organization/getUserByPhone",e)},delUser:function(e){return i["a"].post(o+a+"/v1/organization/delUser",e)},getRoleId:function(e){return i["a"].get(o+a+"/v1/organization/getRoleById/".concat(e))},getMenu:function(){return i["a"].get(o+a+"/v1/organization/getMenu")},saveAuth:function(e){return i["a"].post(o+a+"/v1/organization/saveManagementAuth",e)},getAuth:function(e){return i["a"].get(o+a+"/v1/organization/getAuth/".concat(e))},auth:function(e,t){return i["a"].get(o+a+"/v1/organization/auth/".concat(e,"/").concat(t))},getCompanyByUser:function(e){return i["a"].post(o+a+"/v1/organization/getOrganizationCompanyByUser",e)},getDepByCompany:function(e){return i["a"].post(o+a+"/v1/organization/getOrganizationDepByUserAndParentId",e)},getUserByCompany:function(e){return i["a"].post(o+a+"/v1/organization/getAllUserByCompany",e)}};t["a"]=l},ce13:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
312
312
|
//! moment.js locale configuration
|
|
313
313
|
var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t}))},ce45:function(e,t,n){var i=n("a3e9");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},ce99:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},cf66:function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"a",(function(){return m}));var i=n("b5e5"),r=(n("e186"),n("db04")),o=n("7c78"),a=n.n(o),s=JSON.parse(localStorage.getItem("env"))||{},l=s.VUE_APP_API+"/sgb-meta-design";s.VUE_APP_API,s.VUE_APP_QIGUAN;console.log(l);var u=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].postHeaders("".concat(l,"/v1/pc/process/addProcess"),a.a.stringify(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].post("".concat(l,"/v1/pc/process/addProcessV1"),t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].postHeaders("".concat(l,"/v1/pc/process/updateProcess"),a.a.stringify(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].post("".concat(l,"/v1/pc/process/updateProcessV1"),t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].postHeaders("".concat(l,"/v1/pc/process/updateOldProcessToNewProcess"),a.a.stringify(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].post("".concat(l,"/v1/pc/process/queryProcessByType"),t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r["a"].get("".concat(l,"/v1/pc/process/directorLevelList")));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},cf7c:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=73)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},11:function(e,t){e.exports=n("0447")},21:function(e,t){e.exports=n("8541")},4:function(e,t){e.exports=n("990b")},73:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(11),l=n.n(s),u=void 0,c="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",d=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=d.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:i,borderSize:r,boxSizing:n}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var i=h(e),r=i.paddingSize,o=i.borderSize,a=i.boxSizing,s=i.contextStyle;u.setAttribute("style",s+";"+c),u.value=e.value||e.placeholder||"";var l=u.scrollHeight,d={};"border-box"===a?l+=o:"content-box"===a&&(l-=r),u.value="";var f=u.scrollHeight-r;if(null!==t){var p=f*t;"border-box"===a&&(p=p+r+o),l=Math.max(p,l),d.minHeight=p+"px"}if(null!==n){var m=f*n;"border-box"===a&&(m=m+r+o),l=Math.min(m,l)}return d.height=l+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,d}var p=n(9),m=n.n(p),v=n(21),g={name:"ElInput",componentName:"ElInput",mixins:[a.a,l.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return m()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=f(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:f(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(v["isKorean"])(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"},o=r[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},y=g,b=n(0),_=Object(b["a"])(y,i,r,!1,null,null,null);_.options.__file="packages/input/src/input.vue";var w=_.exports;w.install=function(e){e.component(w.name,w)};t["default"]=w},9:function(e,t){e.exports=n("f86a")}})},d053:function(e,t,n){"use strict";var i=n("7a07");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},d112:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
314
314
|
//! moment.js locale configuration
|
|
@@ -355,6 +355,6 @@ var t=e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_
|
|
|
355
355
|
//! moment.js locale configuration
|
|
356
356
|
var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],i=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],r=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],o=["Do","Lu","Má","Cé","Dé","A","Sa"],a=e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:i,weekdaysShort:r,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return a}))},fa17:function(e,t,n){var i=n("e7ec"),r=n("b68d"),o=n("a9fd"),a=n("4efb"),s=n("490d"),l=n("dbb4"),u=function(){},c=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=i(h.exec),p=!h.exec(u),m=function(e){if(!o(e))return!1;try{return d(u,c,e),!0}catch(t){return!1}},v=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p||!!f(h,l(e))};e.exports=!d||r((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?v:m},fa2c:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
357
357
|
//! moment.js locale configuration
|
|
358
|
-
function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",i;case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",i;case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",i;case"dd":return i+=1===e?"dan":"dana",i;case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",i;case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",i}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},fae0:function(e,t,n){var i=n("8f74"),r=n("b68d");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},fb45:function(e,t,n){"use strict";(function(e){var i=n("2004"),r=n("a158"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?i["a"].Buffer:void 0,u=l?l.isBuffer:void 0,c=u||r["a"];t["a"]=c}).call(this,n("2ffc")(e))},fb81:function(e,t,n){"use strict";var i=n("3cea");e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},fc08:function(e,t,n){var i=n("c6da"),r=i.String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},
|
|
358
|
+
function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",i;case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",i;case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",i;case"dd":return i+=1===e?"dan":"dana",i;case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",i;case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",i}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},fae0:function(e,t,n){var i=n("8f74"),r=n("b68d");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},fb45:function(e,t,n){"use strict";(function(e){var i=n("2004"),r=n("a158"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?i["a"].Buffer:void 0,u=l?l.isBuffer:void 0,c=u||r["a"];t["a"]=c}).call(this,n("2ffc")(e))},fb81:function(e,t,n){"use strict";var i=n("3cea");e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},fc08:function(e,t,n){var i=n("c6da"),r=i.String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},fd62:function(e,t,n){var i=n("93a7"),r=n("6f4d"),o=n("16bc"),a=n("50dd"),s=n("765d");e.exports=i?Object.defineProperties:function(e,t){o(e);var n,i=a(t),l=s(t),u=l.length,c=0;while(u>c)r.f(e,n=l[c++],i[n]);return e}},fdda:function(e,t,n){var i=n("c6da"),r=n("99a6"),o=i.TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},fe34:function(e,t,n){var i=n("e7ec");e.exports=i(1..valueOf)},fea0:function(e,t,n){(function(e,t){t(n("caaf"))})(0,(function(e){"use strict";
|
|
359
359
|
//! moment.js locale configuration
|
|
360
360
|
var t=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function n(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}return t}))},feaf:function(e,t,n){"use strict";n("b41d")}})}));
|