webpackJsonp([5],{1023:function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(654)),r=o(n(1103));function o(t){return t&&t.__esModule?t:{default:t}}e.default={name:"definition-details-index",components:{mDefinitionDetails:r.default,mSecondaryMenu:i.default}}},1024:function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(905)),r=l(n(646)),o=l(n(777)),s=l(n(642)),a=n(123);function l(t){return t&&t.__esModule?t:{default:t}}e.default={name:"definition-details",data:function(){return{isLoading:!0,releaseState:""}},mixins:[s.default],props:{},methods:Object.assign({},(0,a.mapMutations)("dag",["resetParams","setIsDetails"]),(0,a.mapActions)("dag",["getProcessList","getResourcesList","getProcessDetails"]),{init:function(){var t=this;this.isLoading=!0,this.resetParams(),Promise.all([this.getProcessDetails(this.$route.params.id),this.getProcessList(),this.getResourcesList()]).then(function(e){var n=e[0];t.setIsDetails("ONLINE"===n.releaseState),t.releaseState=n.releaseState,t.isLoading=!1,o.default.init(t.$root)}).catch(function(){t.isLoading=!1})},_reset:function(){var t=this;this.getProcessDetails(this.$route.params.id).then(function(e){var n=e;t.setIsDetails("ONLINE"===n.releaseState),t.releaseState=n.releaseState})}}),watch:{$route:{deep:!0,handler:function(){this.init()}}},created:function(){this.init()},mounted:function(){},components:{mDag:i.default,mSpin:r.default}}},1103:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1024),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1104),a=n(27)(r.a,s.a,!1,null,null,null);e.default=a.exports},1104:function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"home-main index-model"},[this.isLoading?this._e():e("m-dag",{attrs:{type:"definition","release-state":this.releaseState}}),this._v(" "),e("m-spin",{attrs:{"is-spin":this.isLoading}})],1)},staticRenderFns:[]};e.a=i},1105:function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"main-layout-box"},[e("m-secondary-menu",{attrs:{type:"projects"}}),this._v(" "),e("m-definition-details")],1)},staticRenderFns:[]};e.a=i},606:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1023),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1105),a=n(27)(r.a,s.a,!1,null,null,null);e.default=a.exports},639:function(t,e,n){"use strict";e.__esModule=!0,e.default={name:"spin",data:function(){return{}},props:{isSpin:{type:Boolean,default:!0},isLeft:{type:Boolean,default:!0}}}},641:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(659),o=(i=r)&&i.__esModule?i:{default:i};e.default={name:"secondary-menu",data:function(){return{menuList:(0,o.default)(this.type),index:0,id:this.$route.params.id,isTogHide:!1}},props:{type:String,className:String},watch:{isTogHide:function(t){var e=$(".main-layout-box");t?e.addClass("toggle"):e.removeClass("toggle")}},methods:{_toggleSubMenu:function(t){t.isOpen=!t.isOpen},_toggleMenu:function(){this.isTogHide=!this.isTogHide}},mounted:function(){}}},642:function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(91)),r=o(n(222));function o(t){return t&&t.__esModule?t:{default:t}}e.default={data:function(){return{router:r.default,store:i.default,isDetails:!1}},created:function(){this.isDetails=this.store.state.dag.isDetails},methods:{},computed:{_isDetails:function(){return this.isDetails?"icon-disabled":""}}}},644:function(t,e,n){var i;i=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),i=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),s=i||r||o,a=s&&(i?document.documentMode||6:+(o||r)[1]),l=!o&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!o&&/Chrome\//.test(t),d=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),f=/PhantomJS/.test(t),m=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),g=/Android/.test(t),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),b=m||/Mac/.test(e),y=/\bCrOS\b/.test(t),x=/win/i.test(e),_=d&&t.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(d=!1,l=!0);var w=b&&(c||d&&(null==_||_<12.11)),C=n||s&&a>=9;function k(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var P,S=function(t,e){var n=t.className,i=k(e).exec(n);if(i){var r=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function D(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function L(t,e){return D(t).appendChild(e)}function E(t,e,n,i){var r=document.createElement(t);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}m?O=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:s&&(O=function(t){try{t.select()}catch(t){}});var R=function(){this.id=null};function z(t,e){for(var n=0;n=e)return i+Math.min(s,e-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=e)return i}}var Y=[""];function V(t){for(;Y.length<=t;)Y.push(X(Y)+" ");return Y[t]}function X(t){return t[t.length-1]}function K(t,e){for(var n=[],i=0;i"€"&&(t.toUpperCase()!=t.toLowerCase()||Q.test(t))}function et(t,e){return e?!!(e.source.indexOf("\\w")>-1&&tt(t))||e.test(t):tt(t)}function nt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function rt(t){return t.charCodeAt(0)>=768&&it.test(t)}function ot(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var r=(e+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+i}}function at(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(e=t.first&&en?mt(n,at(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?mt(t.line,e):n<0?mt(t.line,0):t}(e,at(t,e.line).text.length)}function Ct(t,e){for(var n=[],i=0;i=e:o.to>e);(i||(i=[])).push(new St(s,o.from,a?null:o.to))}}return i}(n,r,s),l=function(t,e,n){var i;if(t)for(var r=0;r=e:o.to>e)||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from0&&a)for(var y=0;ye)&&(!n||Ot(n,o.marker)<0)&&(n=o.marker)}return n}function zt(t,e,n,i,r){var o=at(t,e),s=Pt&&o.markedSpans;if(s)for(var a=0;a=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?gt(c.to,n)>=0:gt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?gt(c.from,i)<=0:gt(c.from,i)<0)))return!0}}}function Ht(t){for(var e;e=$t(t);)t=e.find(-1,!0).line;return t}function Wt(t,e){var n=at(t,e),i=Ht(n);return n==i?e:dt(i)}function Bt(t,e){if(e>t.lastLine())return e;var n,i=at(t,e);if(!Ut(t,i))return e;for(;n=Ft(i);)i=n.find(1,!0).line;return dt(i)+1}function Ut(t,e){var n=Pt&&e.markedSpans;if(n)for(var i=void 0,r=0;re.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}var Xt=null;function Kt(t,e,n){var i;Xt=null;for(var r=0;re)return r;o.to==e&&(o.from!=o.to&&"before"==n?i=r:Xt=r),o.from==e&&(o.from!=o.to&&"before"!=n?i=r:Xt=r)}return null!=i?i:Xt}var Jt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,r=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function a(t,e,n){this.level=t,this.from=e,this.to=n}return function(l,c){var u="ltr"==c?"L":"R";if(0==l.length||"ltr"==c&&!n.test(l))return!1;for(var d,h=l.length,p=[],f=0;f-1&&(i[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function ie(t,e){var n=ee(t,e);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function ae(t){t.prototype.on=function(t,e){te(this,t,e)},t.prototype.off=function(t,e){ne(this,t,e)}}function le(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function ce(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function ue(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function de(t){le(t),ce(t)}function he(t){return t.target||t.srcElement}function pe(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),b&&t.ctrlKey&&1==e&&(e=3),e}var fe,me,ge=function(){if(s&&a<9)return!1;var t=E("div");return"draggable"in t||"dragDrop"in t}();function ve(t){if(null==fe){var e=E("span","​");L(t,E("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(fe=e.offsetWidth<=1&&e.offsetHeight>2&&!(s&&a<8))}var n=fe?E("span","​"):E("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function be(t){if(null!=me)return me;var e=L(t,document.createTextNode("AخA")),n=P(e,0,1).getBoundingClientRect(),i=P(e,1,2).getBoundingClientRect();return D(t),!(!n||n.left==n.right)&&(me=i.right-n.right<3)}var ye,xe=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],i=t.length;e<=i;){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var o=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=r+1)}return n}:function(t){return t.split(/\r\n?|\n/)},_e=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},we="oncopy"in(ye=E("div"))||(ye.setAttribute("oncopy","return;"),"function"==typeof ye.oncopy),Ce=null;var ke={},Pe={};function Se(t){if("string"==typeof t&&Pe.hasOwnProperty(t))t=Pe[t];else if(t&&"string"==typeof t.name&&Pe.hasOwnProperty(t.name)){var e=Pe[t.name];"string"==typeof e&&(e={name:e}),(t=Z(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Se("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Se("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function De(t,e){e=Se(e);var n=ke[e.name];if(!n)return De(t,"text/plain");var i=n(t,e);if(Le.hasOwnProperty(e.name)){var r=Le[e.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)i[s]=e.modeProps[s];return i}var Le={};function Ee(t,e){$(e,Le.hasOwnProperty(t)?Le[t]:Le[t]={})}function Te(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var i in e){var r=e[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Me(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Ie(t,e,n){return!t.startState||t.startState(e,n)}var Ae=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Ae.prototype.eol=function(){return this.pos>=this.string.length},Ae.prototype.sol=function(){return this.pos==this.lineStart},Ae.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ae.prototype.next=function(){if(this.pose},Ae.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Ae.prototype.skipToEnd=function(){this.pos=this.string.length},Ae.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Ae.prototype.backUp=function(t){this.pos-=t},Ae.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}var r=function(t){return n?t.toLowerCase():t};if(r(this.string.substr(this.pos,t.length))==r(t))return!1!==e&&(this.pos+=t.length),!0},Ae.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ae.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Ae.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Ae.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var je=function(t,e){this.state=t,this.lookAhead=e},Oe=function(t,e,n,i){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function Ne(t,e,n,i){var r=[t.state.modeGen],o={};qe(t,e.text,t.doc.mode,n,function(t,e){return r.push(t,e)},o,i);for(var s=n.state,a=function(i){n.baseTokens=r;var a=t.state.overlays[i],l=1,c=0;n.state=!0,qe(t,e.text,a.mode,n,function(t,e){for(var n=l;ct&&r.splice(l,1,t,r[l+1],i),l+=2,c=Math.min(t,i)}if(e)if(a.opaque)r.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;nt.options.maxHighlightLength&&Te(t.doc.mode,i.state),o=Ne(t,e,i);r&&(i.state=r),e.stateAfter=i.save(!r),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function Fe(t,e,n){var i=t.doc,r=t.display;if(!i.mode.startState)return new Oe(i,!0,e);var o=function(t,e,n){for(var i,r,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var l=at(o,a-1),c=l.stateAfter;if(c&&(!n||a+(c instanceof je?c.lookAhead:0)<=o.modeFrontier))return a;var u=F(l.text,null,t.options.tabSize);(null==r||i>u)&&(r=a-1,i=u)}return r}(t,e,n),s=o>i.first&&at(i,o-1).stateAfter,a=s?Oe.fromSaved(i,s,o):new Oe(i,Ie(i.mode),o);return i.iter(o,e,function(n){Re(t,n.text,a);var i=a.line;n.stateAfter=i==e-1||i%5==0||i>=r.viewFrom&&ie.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}Oe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},Oe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Oe.fromSaved=function(t,e,n){return e instanceof je?new Oe(t,Te(t.mode,e.state),n,e.lookAhead):new Oe(t,Te(t.mode,e),n)},Oe.prototype.save=function(t){var e=!1!==t?Te(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new je(e,this.maxLookAhead):e};var We=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function Be(t,e,n,i){var r,o,s=t.doc,a=s.mode,l=at(s,(e=wt(s,e)).line),c=Fe(t,e.line,n),u=new Ae(l.text,t.options.tabSize,c);for(i&&(o=[]);(i||u.post.options.maxHighlightLength?(a=!1,s&&Re(t,e,i,d.pos),d.pos=e.length,l=null):l=Ue(He(n,d,i.state,h),o),h){var p=h[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!a||u!=l){for(;c1&&!/ /.test(t))return t;for(var n=e,i="",r=0;rc&&d.from<=c);h++);if(d.to>=u)return t(n,i,r,o,s,a,l);t(n,i.slice(0,d.to-c),r,o,null,a,l),o=null,i=i.slice(d.to-c),c=d.to}}}function en(t,e,n,i){var r=!i&&n.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!i&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function nn(t,e,n){var i=t.markedSpans,r=t.text,o=0;if(i)for(var s,a,l,c,u,d,h,p=r.length,f=0,m=1,g="",v=0;;){if(v==f){l=c=u=a="",h=null,d=null,v=1/0;for(var b=[],y=void 0,x=0;xf||w.collapsed&&_.to==f&&_.from==f)){if(null!=_.to&&_.to!=f&&v>_.to&&(v=_.to,c=""),w.className&&(l+=" "+w.className),w.css&&(a=(a?a+";":"")+w.css),w.startStyle&&_.from==f&&(u+=" "+w.startStyle),w.endStyle&&_.to==v&&(y||(y=[])).push(w.endStyle,_.to),w.title&&((h||(h={})).title=w.title),w.attributes)for(var C in w.attributes)(h||(h={}))[C]=w.attributes[C];w.collapsed&&(!d||Ot(d.marker,w)<0)&&(d=_)}else _.from>f&&v>_.from&&(v=_.from)}if(y)for(var k=0;k=p)break;for(var S=Math.min(p,v);;){if(g){var D=f+g.length;if(!d){var L=D>S?g.slice(0,S-f):g;e.addToken(e,L,s?s+l:l,u,f+L.length==v?c:"",a,h)}if(D>=S){g=g.slice(S-f),f=S;break}f=D,u=""}g=r.slice(o,o=n[m++]),s=Ke(n[m++],e.cm.options)}}else for(var E=1;En)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}function Tn(t,e,n,i){return An(t,In(t,e),n,i)}function Mn(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&e2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,i){var r,o=Nn(e.map,n,i),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;c&&rt(e.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*i,bottom:e.bottom*i}}(t.display.measure,r))}else{var p;c>0&&(d=i="right"),r=t.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==i?p.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!c&&(!r||!r.left&&!r.right)){var f=l.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+ni(t.display),top:f.top,bottom:f.bottom}:On}for(var m=r.top-e.rect.top,g=r.bottom-e.rect.top,v=(m+g)/2,b=e.view.measure.heights,y=0;ye)&&(r=(o=l-a)-1,e>=l&&(s="right")),null!=r){if(i=t[c+2],a==l&&n==(i.insertLeft?"left":"right")&&(s=n),"left"==n&&0==r)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)i=t[2+(c-=3)],s="left";if("right"==n&&r==l-a)for(;c=0&&(n=t[r]).left==n.right;r--);return n}function Fn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e=i.text.length?(l=i.text.length,c="before"):l<=0&&(l=0,c="after"),!a)return s("before"==c?l-1:l,"before"==c);function u(t,e,n){var i=1==a[e].level;return s(n?t-1:t,i!=n)}var d=Kt(a,l,c),h=Xt,p=u(l,d,"before"==c);return null!=h&&(p.other=u(l,h,"before"!=c)),p}function Vn(t,e){var n=0;e=wt(t.doc,e),t.options.lineWrapping||(n=ni(t.display)*e.ch);var i=at(t.doc,e.line),r=Gt(i)+Cn(t.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Xn(t,e,n,i,r){var o=mt(t,e,n);return o.xRel=r,i&&(o.outside=!0),o}function Kn(t,e,n){var i=t.doc;if((n+=t.display.viewOffset)<0)return Xn(i.first,0,null,!0,-1);var r=ht(i,n),o=i.first+i.size-1;if(r>o)return Xn(i.first+i.size-1,at(i,o).text.length,null,!0,1);e<0&&(e=0);for(var s=at(i,r);;){var a=ti(t,s,r,e,n),l=Rt(s,a.ch+(a.xRel>0?1:0));if(!l)return a;var c=l.find(1);if(c.line==r)return c;s=at(i,r=c.line)}}function Jn(t,e,n,i){i-=Bn(e);var r=e.text.length,o=st(function(e){return An(t,n,e-1).bottom<=i},r,0);return{begin:o,end:r=st(function(e){return An(t,n,e).top>i},o,r)}}function Zn(t,e,n,i){return n||(n=In(t,e)),Jn(t,e,n,Un(t,e,An(t,n,i),"line").top)}function Qn(t,e,n,i){return!(t.bottom<=n)&&(t.top>n||(i?t.left:t.right)>e)}function ti(t,e,n,i,r){r-=Gt(e);var o=In(t,e),s=Bn(e),a=0,l=e.text.length,c=!0,u=Zt(e,t.doc.direction);if(u){var d=(t.options.lineWrapping?function(t,e,n,i,r,o,s){var a=Jn(t,e,i,s),l=a.begin,c=a.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h=c||p.to<=l)){var f=1!=p.level,m=An(t,i,f?Math.min(c,p.to)-1:Math.max(l,p.from)).right,g=mg)&&(u=p,d=g)}}u||(u=r[r.length-1]);u.fromc&&(u={from:u.from,to:c,level:u.level});return u}:function(t,e,n,i,r,o,s){var a=st(function(a){var l=r[a],c=1!=l.level;return Qn(Yn(t,mt(n,c?l.to:l.from,c?"before":"after"),"line",e,i),o,s,!0)},0,r.length-1),l=r[a];if(a>0){var c=1!=l.level,u=Yn(t,mt(n,c?l.from:l.to,c?"after":"before"),"line",e,i);Qn(u,o,s,!0)&&u.top>s&&(l=r[a-1])}return l})(t,e,n,o,u,i,r);a=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var h,p,f=null,m=null,g=st(function(e){var n=An(t,o,e);return n.top+=s,n.bottom+=s,!!Qn(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=e,m=n),!0)},a,l),v=!1;if(m){var b=i-m.left=x.bottom}return Xn(n,g=ot(e.text,g,1),p,v,i-h)}function ei(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==jn){jn=E("pre");for(var e=0;e<49;++e)jn.appendChild(document.createTextNode("x")),jn.appendChild(E("br"));jn.appendChild(document.createTextNode("x"))}L(t.measure,jn);var n=jn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),D(t.measure),n||1}function ni(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=E("span","xxxxxxxxxx"),n=E("pre",[e]);L(t.measure,n);var i=e.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(t.cachedCharWidth=r),r||10}function ii(t){for(var e=t.display,n={},i={},r=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s)n[t.options.gutters[s]]=o.offsetLeft+o.clientLeft+r,i[t.options.gutters[s]]=o.clientWidth;return{fixedPos:ri(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function ri(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function oi(t){var e=ei(t.display),n=t.options.lineWrapping,i=n&&Math.max(5,t.display.scroller.clientWidth/ni(t.display)-3);return function(r){if(Ut(t.doc,r))return 0;var o=0;if(r.widgets)for(var s=0;s=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,i=0;i=t.display.viewTo||a.to().linee||e==n&&s.to==e)&&(i(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),r=!0)}r||i(e,n,"ltr")}(m,n||0,null==i?h:i,function(t,e,r,d){var g="ltr"==r,v=p(t,g?"left":"right"),b=p(e-1,g?"right":"left"),y=null==n&&0==t,x=null==i&&e==h,_=0==d,w=!m||d==m.length-1;if(b.top-v.top<=3){var C=(c?x:y)&&w,k=(c?y:x)&&_?a:(g?v:b).left,P=C?l:(g?b:v).right;u(k,v.top,P-k,v.bottom)}else{var S,D,L,E;g?(S=c&&y&&_?a:v.left,D=c?l:f(t,r,"before"),L=c?a:f(e,r,"after"),E=c&&x&&w?l:b.right):(S=c?f(t,r,"before"):a,D=!c&&y&&_?l:v.right,L=!c&&x&&w?a:b.left,E=c?f(e,r,"after"):l),u(S,v.top,D-S,v.bottom),v.bottom0?e.blinker=setInterval(function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function mi(t){t.state.focused||(t.display.input.focus(),vi(t))}function gi(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,bi(t))},100)}function vi(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(ie(t,"focus",t,e),t.state.focused=!0,A(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),fi(t))}function bi(t,e){t.state.delayingBlurEvent||(t.state.focused&&(ie(t,"blur",t,e),t.state.focused=!1,S(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function yi(t){for(var e=t.display,n=e.lineDiv.offsetTop,i=0;i.005||h<-.005)&&(ut(r.line,l),xi(r.line),r.rest))for(var p=0;pt.display.sizerWidth){var f=Math.ceil(c/ni(t.display));f>t.display.maxLineLength&&(t.display.maxLineLength=f,t.display.maxLine=r.line,t.display.maxLineChanged=!0)}}}}function xi(t){if(t.widgets)for(var e=0;e=s&&(o=ht(e,Gt(at(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function wi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=ri(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,o=i+"px",s=0;so&&(e.bottom=e.top+o);var a=t.doc.height+kn(n),l=e.topa-i;if(e.topr+o){var u=Math.min(e.top,(c?a:e.bottom)-o);u!=r&&(s.scrollTop=u)}var d=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,h=Dn(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),p=e.right-e.left>h;return p&&(e.right=e.left+h),e.left<10?s.scrollLeft=0:e.lefth+d-3&&(s.scrollLeft=e.right+(p?0:10)-h),s}function Pi(t,e){null!=e&&(Li(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Si(t){Li(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Di(t,e,n){null==e&&null==n||Li(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Li(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Ei(t,Vn(t,e.from),Vn(t,e.to),e.margin))}function Ei(t,e,n,i){var r=ki(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-i,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+i});Di(t,r.scrollLeft,r.scrollTop)}function Ti(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||ar(t,{top:e}),Mi(t,e,!0),n&&ar(t),nr(t,100))}function Mi(t,e,n){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Ii(t,e,n,i){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,wi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Ai(t){var e=t.display,n=e.gutters.offsetWidth,i=Math.round(t.doc.height+kn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Sn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var ji=function(t,e,n){this.cm=n;var i=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,t(i),t(r),te(i,"scroll",function(){i.clientHeight&&e(i.scrollTop,"vertical")}),te(r,"scroll",function(){r.clientWidth&&e(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ji.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var r=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:e?i:0}},ji.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ji.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ji.prototype.zeroWidthHack=function(){var t=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},ji.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,function i(){var r=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,i)})},ji.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Oi=function(){};function Ni(t,e){e||(e=Ai(t));var n=t.display.barWidth,i=t.display.barHeight;$i(t,e);for(var r=0;r<4&&n!=t.display.barWidth||i!=t.display.barHeight;r++)n!=t.display.barWidth&&t.options.lineWrapping&&yi(t),$i(t,Ai(t)),n=t.display.barWidth,i=t.display.barHeight}function $i(t,e){var n=t.display,i=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Oi.prototype.update=function(){return{bottom:0,right:0}},Oi.prototype.setScrollLeft=function(){},Oi.prototype.setScrollTop=function(){},Oi.prototype.clear=function(){};var Fi={native:ji,null:Oi};function Ri(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&S(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Fi[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),te(e,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?Ii(t,e):Ti(t,e)},t),t.display.scrollbars.addClass&&A(t.display.wrapper,t.display.scrollbars.addClass)}var zi=0;function Hi(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zi},e=t.curOp,sn?sn.ops.push(e):e.ownsGroup=sn={ops:[e],delayedCallbacks:[]}}function Wi(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new rr(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Ui(t){var e=t.cm,n=e.display;t.updatedDisplay&&yi(e),t.barMeasure=Ai(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Tn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Sn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Dn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function qi(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!f){var o=E("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Cn(t.display))+"px;\n height: "+(e.bottom-e.top+Sn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(r),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,n,i){var r;null==i&&(i=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?mt(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?mt(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=Yn(t,e),l=n&&n!=e?Yn(t,n):a,c=ki(t,r={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-i,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+i}),u=t.doc.scrollTop,d=t.doc.scrollLeft;if(null!=c.scrollTop&&(Ti(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(s=!0)),null!=c.scrollLeft&&(Ii(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-d)>1&&(s=!0)),!s)break}return r}(e,wt(i,t.scrollToPos.from),wt(i,t.scrollToPos.to),t.scrollToPos.margin));var r=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(r)for(var s=0;se)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)Pt&&Wt(t.doc,e)r.viewFrom?Qi(t):(r.viewFrom+=i,r.viewTo+=i);else if(e<=r.viewFrom&&n>=r.viewTo)Qi(t);else if(e<=r.viewFrom){var o=tr(t,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):Qi(t)}else if(n>=r.viewTo){var s=tr(t,e,e,-1);s?(r.view=r.view.slice(0,s.index),r.viewTo=s.lineN):Qi(t)}else{var a=tr(t,e,e,-1),l=tr(t,n,n+i,1);a&&l?(r.view=r.view.slice(0,a.index).concat(on(t,a.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):Qi(t)}var c=r.externalMeasured;c&&(n=r.lineN&&e=i.viewTo)){var o=i.view[li(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==z(s,n)&&s.push(n)}}}function Qi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function tr(t,e,n,i){var r,o=li(t,e),s=t.display.view;if(!Pt||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,l=0;l0){if(o==s.length-1)return null;r=a+s[o].size-e,o++}else r=a-e;e+=r,n+=r}for(;Wt(t.doc,n)!=n;){if(o==(i<0?0:s.length-1))return null;n+=i*s[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function er(t){for(var e=t.display.view,n=0,i=0;i=t.display.viewTo)){var n=+new Date+t.options.workTime,i=Fe(t,e.highlightFrontier),r=[];e.iter(i.line,Math.min(e.first+e.size,t.display.viewTo+500),function(o){if(i.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Te(e.mode,i.state):null,l=Ne(t,o,i,!0);a&&(i.state=a),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!s||s.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&hn)return nr(t,t.options.workDelay),!0}),e.highlightFrontier=i.line,e.modeFrontier=Math.max(e.modeFrontier,i.line),r.length&&Yi(t,function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==er(t))return!1;Ci(t)&&(Qi(t),e.dims=ii(t));var r=i.first+i.size,o=Math.max(e.visible.from-t.options.viewportMargin,i.first),s=Math.min(r,e.visible.to+t.options.viewportMargin);n.viewFroms&&n.viewTo-s<20&&(s=Math.min(r,n.viewTo)),Pt&&(o=Wt(t.doc,o),s=Bt(t.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var i=t.display;0==i.view.length||e>=i.viewTo||n<=i.viewFrom?(i.view=on(t,e,n),i.viewFrom=e):(i.viewFrom>e?i.view=on(t,e,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,li(t,n)))),i.viewTo=n}(t,o,s),n.viewOffset=Gt(at(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=er(t);if(!a&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(t){if(t.hasFocus())return null;var e=I();if(!e||!M(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&M(t.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}(t);return c>4&&(n.lineDiv.style.display="none"),function(t,e,n){var i=t.display,r=t.options.lineNumbers,o=i.lineDiv,s=o.firstChild;function a(e){var n=e.nextSibling;return l&&b&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=i.view,u=i.viewFrom,d=0;d-1&&(p=!1),un(t,h,u,n)),p&&(D(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(ft(t.options,u)))),s=h.node.nextSibling}else{var f=vn(t,h,u,n);o.insertBefore(f,s)}u+=h.size}for(;s;)s=a(s)}(t,n.updateLineNumbers,e.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=I()&&(t.activeElt.focus(),t.anchorNode&&M(document.body,t.anchorNode)&&M(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(u),D(n.cursorDiv),D(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,nr(t,400)),n.updateLineNumbers=null,!0}function sr(t,e){for(var n=e.viewport,i=!0;(i&&t.options.lineWrapping&&e.oldDisplayWidth!=Dn(t)||(n&&null!=n.top&&(n={top:Math.min(t.doc.height+kn(t.display)-Ln(t),n.top)}),e.visible=_i(t.display,t.doc,n),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&or(t,e);i=!1){yi(t);var r=Ai(t);ci(t),Ni(t,r),cr(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function ar(t,e){var n=new rr(t,e);if(or(t,n)){yi(t),sr(t,n);var i=Ai(t);ci(t),Ni(t,i),cr(t,i),n.finish()}}function lr(t){var e=t.display.gutters.offsetWidth;t.display.sizer.style.marginLeft=e+"px"}function cr(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Sn(t)+"px"}function ur(t){var e=t.display.gutters,n=t.options.gutters;D(e);for(var i=0;i-1&&!t.lineNumbers&&(t.gutters=t.gutters.slice(0),t.gutters.splice(e,1))}rr.prototype.signal=function(t,e){se(t,e)&&this.events.push(arguments)},rr.prototype.finish=function(){for(var t=0;ta.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&c||o&&u){if(o&&b&&l)t:for(var h=e.target,p=s.view;h!=a;h=h.parentNode)for(var f=0;f=0&>(t,i.to())<=0)return n}return-1};var br=function(t,e){this.anchor=t,this.head=e};function yr(t,e,n){var i=t&&t.options.selectionsMayTouch,r=e[n];e.sort(function(t,e){return gt(t.from(),e.from())}),n=z(e,r);for(var o=1;o0:l>=0){var c=xt(a.from(),s.from()),u=yt(a.to(),s.to()),d=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,e.splice(--o,2,new br(d?u:c,d?c:u))}}return new vr(e,n)}function xr(t,e){return new vr([new br(t,e||t)],0)}function _r(t){return t.text?mt(t.from.line+t.text.length-1,X(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function wr(t,e){if(gt(t,e.from)<0)return t;if(gt(t,e.to)<=0)return _r(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=_r(e).ch-e.to.ch),mt(n,i)}function Cr(t,e){for(var n=[],i=0;i1&&t.remove(a.line+1,f-1),t.insert(a.line+1,v)}ln(t,"change",t,e)}function Er(t,e,n){!function t(i,r,o){if(i.linked)for(var s=0;sa-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(jr(t.done),X(t.done)):t.done.length&&!X(t.done).ranges?X(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),X(t.done)):void 0}(r,r.lastOp==i)))s=X(o.changes),0==gt(e.from,e.to)&&0==gt(e.from,s.to)?s.to=_r(e):o.changes.push(Ar(t,e));else{var l=X(r.done);for(l&&l.ranges||$r(t.sel,r.done),o={changes:[Ar(t,e)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=a,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=e.origin,s||ie(t,"historyAdded")}function Nr(t,e,n,i){var r=t.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||function(t,e,n,i){var r=e.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,X(r.done),e))?r.done[r.done.length-1]=e:$r(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&jr(r.undone)}function $r(t,e){var n=X(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Fr(t,e,n,i){var r=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,i),function(n){n.markedSpans&&((r||(r=e["spans_"+t.id]={}))[o]=n.markedSpans),++o})}function Rr(t){if(!t)return null;for(var e,n=0;n-1&&(X(a)[d]=c[d],delete c[d])}}}return i}function Wr(t,e,n,i){if(i){var r=t.anchor;if(n){var o=gt(e,r)<0;o!=gt(n,r)<0?(r=e,e=n):o!=gt(e,n)<0&&(e=n)}return new br(r,e)}return new br(n||e,e)}function Br(t,e,n,i,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),Vr(t,new vr([Wr(t.sel.primary(),e,n,r)],0),i)}function Ur(t,e,n){for(var i=[],r=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:a.to>e.ch))){if(r&&(ie(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var c=l.find(i<0?1:-1),u=void 0;if((i<0?l.inclusiveRight:l.inclusiveLeft)&&(c=eo(t,c,-i,c&&c.line==e.line?o:null)),c&&c.line==e.line&&(u=gt(c,n))&&(i<0?u<0:u>0))return Qr(t,c,e,i,r)}var d=l.find(i<0?-1:1);return(i<0?l.inclusiveLeft:l.inclusiveRight)&&(d=eo(t,d,i,d.line==e.line?o:null)),d?Qr(t,d,e,i,r):null}}return e}function to(t,e,n,i,r){var o=i||1,s=Qr(t,e,n,o,r)||!r&&Qr(t,e,n,o,!0)||Qr(t,e,n,-o,r)||!r&&Qr(t,e,n,-o,!0);return s||(t.cantEdit=!0,mt(t.first,0))}function eo(t,e,n,i){return n<0&&0==e.ch?e.line>t.first?wt(t,mt(e.line-1)):null:n>0&&e.ch==(i||at(t,e.line)).text.length?e.line0)){var u=[l,1],d=gt(c.from,a.from),h=gt(c.to,a.to);(d<0||!s.inclusiveLeft&&!d)&&u.push({from:c.from,to:a.from}),(h>0||!s.inclusiveRight&&!h)&&u.push({from:a.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}(t,e.from,e.to);if(i)for(var r=i.length-1;r>=0;--r)oo(t,{from:i[r].from,to:i[r].to,text:r?[""]:e.text,origin:e.origin});else oo(t,e)}}function oo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=gt(e.from,e.to)){var n=Cr(t,e);Or(t,e,n,t.cm?t.cm.curOp.id:NaN),lo(t,e,n,Et(t,e));var i=[];Er(t,function(t,n){n||-1!=z(i,t.history)||(po(t.history,e),i.push(t.history)),lo(t,e,null,Et(t,e))})}}function so(t,e,n){var i=t.cm&&t.cm.state.suppressEdits;if(!i||n){for(var r,o=t.history,s=t.sel,a="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,c=0;c=0;--p){var f=h(p);if(f)return f.v}}}}function ao(t,e){if(0!=e&&(t.first+=e,t.sel=new vr(K(t.sel.ranges,function(t){return new br(mt(t.anchor.line+e,t.anchor.ch),mt(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){Ji(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,i=n.viewFrom;it.lastLine())){if(e.from.lineo&&(e={from:e.from,to:mt(o,at(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=lt(t,e.from,e.to),n||(n=Cr(t,e)),t.cm?function(t,e,n){var i=t.doc,r=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=dt(Ht(at(i,o.line))),i.iter(l,s.line+1,function(t){if(t==r.maxLine)return a=!0,!0}));i.sel.contains(e.from,e.to)>-1&&oe(t);Lr(i,e,n,oi(t)),t.options.lineWrapping||(i.iter(l,o.line+e.text.length,function(t){var e=Yt(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0));(function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;i--){var r=at(t,i).stateAfter;if(r&&(!(r instanceof je)||i+r.lookAhead1||!(this.children[0]instanceof mo))){var a=[];this.collapse(a),this.children=[new mo(a)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var s=r.lines.length%25+25,a=s;a10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var i=0;i0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(zt(t,e.line,e,n,o)||e.line!=n.line&&zt(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pt=!0}o.addToHistory&&Or(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var a,l=e.line,c=t.cm;if(t.iter(l,n.line+1,function(t){c&&o.collapsed&&!c.options.lineWrapping&&Ht(t)==c.display.maxLine&&(a=!0),o.collapsed&&l!=e.line&&ut(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new St(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l}),o.collapsed&&t.iter(e.line,n.line+1,function(e){Ut(t,e)&&ut(e,0)}),o.clearOnEnter&&te(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(kt=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++yo,o.atomic=!0),c){if(a&&(c.curOp.updateMaxLine=!0),o.collapsed)Ji(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=e.line;u<=n.line;u++)Zi(c,u,"text");o.atomic&&Jr(c.doc),ln(c,"markerAdded",c,o)}return o}xo.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Hi(t),se(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&Ji(t,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Jr(t.doc)),t&&ln(t,"markerCleared",t,this,i,r),e&&Wi(t),this.parent&&this.parent.clear()}},xo.prototype.find=function(t,e){var n,i;null==t&&"bookmark"==this.type&&(t=1);for(var r=0;r=0;l--)ro(this,i[l]);a?Yr(this,a):this.cm&&Si(this.cm)}),undo:Ki(function(){so(this,"undo")}),redo:Ki(function(){so(this,"redo")}),undoSelection:Ki(function(){so(this,"undo",!0)}),redoSelection:Ki(function(){so(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,i=0;i=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,n){t=wt(this,t),e=wt(this,e);var i=[],r=t.line;return this.iter(t.line,e.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a=l.to||null==l.from&&r!=t.line||null!=l.from&&r==e.line&&l.from>=e.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var t=[];return this.iter(function(e){var n=e.markedSpans;if(n)for(var i=0;it)return e=t,!0;t-=o,++n}),wt(this,mt(n,e))},indexFromPos:function(t){var e=(t=wt(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout(function(){return e.display.input.focus()},20);try{var u=t.dataTransfer.getData("Text");if(u){var d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),Xr(e.doc,xr(n,n)),d)for(var h=0;h=0;e--)co(t.doc,"",i[e].from,i[e].to,"+delete");Si(t)})}function Yo(t,e,n){var i=ot(t.text,e+n,n);return i<0||i>t.text.length?null:i}function Vo(t,e,n){var i=Yo(t,e.ch,n);return null==i?null:new mt(e.line,i,n<0?"after":"before")}function Xo(t,e,n,i,r){if(t){var o=Zt(n,e.doc.direction);if(o){var s,a=r<0?X(o):o[0],l=r<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var c=In(e,n);s=r<0?n.text.length-1:0;var u=An(e,c,s).top;s=st(function(t){return An(e,c,t).top==u},r<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Yo(n,s,1))}else s=r<0?a.to:a.from;return new mt(i,s,l)}}return new mt(i,r<0?n.text.length:0,r<0?"before":"after")}Fo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fo.default=b?Fo.macDefault:Fo.pcDefault;var Ko={selectAll:no,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),B)},killLine:function(t){return Go(t,function(e){if(e.empty()){var n=at(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)r=new mt(r.line,r.ch+1),t.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),mt(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var s=at(t.doc,r.line-1).text;s&&(r=new mt(r.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),mt(r.line-1,s.length-1),r,"+transpose"))}n.push(new br(r,r))}t.setSelections(n)})},newlineAndIndent:function(t){return Yi(t,function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var i=0;i-1&&(gt((r=c.ranges[r]).from(),e)<0||e.xRel>0)&&(gt(r.to(),e)>0||e.xRel<0)?function(t,e,n,i){var r=t.display,o=!1,c=Vi(t,function(e){l&&(r.scroller.draggable=!1),t.state.draggingText=!1,ne(r.wrapper.ownerDocument,"mouseup",c),ne(r.wrapper.ownerDocument,"mousemove",u),ne(r.scroller,"dragstart",d),ne(r.scroller,"drop",c),o||(le(e),i.addNew||Br(t.doc,n,null,null,i.extend),l||s&&9==a?setTimeout(function(){r.wrapper.ownerDocument.body.focus(),r.input.focus()},20):r.input.focus())}),u=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},d=function(){return o=!0};l&&(r.scroller.draggable=!0);t.state.draggingText=c,c.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop();te(r.wrapper.ownerDocument,"mouseup",c),te(r.wrapper.ownerDocument,"mousemove",u),te(r.scroller,"dragstart",d),te(r.scroller,"drop",c),gi(t),setTimeout(function(){return r.input.focus()},20)}(t,i,e,o):function(t,e,n,i){var r=t.display,o=t.doc;le(e);var s,a,l=o.sel,c=l.ranges;i.addNew&&!i.extend?(a=o.sel.contains(n),s=a>-1?c[a]:new br(n,n)):(s=o.sel.primary(),a=o.sel.primIndex);if("rectangle"==i.unit)i.addNew||(s=new br(n,n)),n=ai(t,e,!0,!0),a=-1;else{var u=hs(t,n,i.unit);s=i.extend?Wr(s,u.anchor,u.head,i.extend):u}i.addNew?-1==a?(a=c.length,Vr(o,yr(t,c.concat([s]),a),{scroll:!1,origin:"*mouse"})):c.length>1&&c[a].empty()&&"char"==i.unit&&!i.extend?(Vr(o,yr(t,c.slice(0,a).concat(c.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):qr(o,a,s,U):(a=0,Vr(o,new vr([s],0),U),l=o.sel);var d=n;function h(e){if(0!=gt(d,e))if(d=e,"rectangle"==i.unit){for(var r=[],c=t.options.tabSize,u=F(at(o,n.line).text,n.ch,c),h=F(at(o,e.line).text,e.ch,c),p=Math.min(u,h),f=Math.max(u,h),m=Math.min(n.line,e.line),g=Math.min(t.lastLine(),Math.max(n.line,e.line));m<=g;m++){var v=at(o,m).text,b=G(v,p,c);p==f?r.push(new br(mt(m,b),mt(m,b))):v.length>b&&r.push(new br(mt(m,b),mt(m,G(v,f,c))))}r.length||r.push(new br(n,n)),Vr(o,yr(t,l.ranges.slice(0,a).concat(r),a),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var y,x=s,_=hs(t,e,i.unit),w=x.anchor;gt(_.anchor,w)>0?(y=_.head,w=xt(x.from(),_.anchor)):(y=_.anchor,w=yt(x.to(),_.head));var C=l.ranges.slice(0);C[a]=function(t,e){var n=e.anchor,i=e.head,r=at(t.doc,n.line);if(0==gt(n,i)&&n.sticky==i.sticky)return e;var o=Zt(r);if(!o)return e;var s=Kt(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var l,c=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==c||c==o.length)return e;if(i.line!=n.line)l=(i.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=Kt(o,i.ch,i.sticky),d=u-s||(i.ch-n.ch)*(1==a.level?-1:1);l=u==c-1||u==c?d<0:d>0}var h=o[c+(l?-1:0)],p=l==(1==h.level),f=p?h.from:h.to,m=p?"after":"before";return n.ch==f&&n.sticky==m?e:new br(new mt(n.line,f,m),i)}(t,new br(wt(o,w),y)),Vr(o,yr(t,C,a),U)}}var p=r.wrapper.getBoundingClientRect(),f=0;function m(e){t.state.selectingText=!1,f=1/0,le(e),r.input.focus(),ne(r.wrapper.ownerDocument,"mousemove",g),ne(r.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=Vi(t,function(e){0!==e.buttons&&pe(e)?function e(n){var s=++f;var a=ai(t,n,!0,"rectangle"==i.unit);if(!a)return;if(0!=gt(a,d)){t.curOp.focus=I(),h(a);var l=_i(r,o);(a.line>=l.to||a.linep.bottom?20:0;c&&setTimeout(Vi(t,function(){f==s&&(r.scroller.scrollTop+=c,e(n))}),50)}}(e):m(e)}),v=Vi(t,m);t.state.selectingText=v,te(r.wrapper.ownerDocument,"mousemove",g),te(r.wrapper.ownerDocument,"mouseup",v)}(t,i,e,o)}(e,i,o,t):he(t)==n.scroller&&le(t):2==r?(i&&Br(e.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(C?e.display.input.onContextMenu(t):gi(e)))}}function hs(t,e,n){if("char"==n)return new br(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new br(mt(e.line,0),wt(t.doc,mt(e.line+1,0)));var i=n(t,e);return new br(i.from,i.to)}function ps(t,e,n,i){var r,o;if(e.touches)r=e.touches[0].clientX,o=e.touches[0].clientY;else try{r=e.clientX,o=e.clientY}catch(e){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&le(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!se(t,n))return ue(e);o-=a.top-s.viewOffset;for(var l=0;l=r)return ie(t,n,t,ht(t.doc,o),t.options.gutters[l],e),ue(e)}}function fs(t,e){return ps(t,e,"gutterClick",!0)}function ms(t,e){wn(t.display,e)||function(t,e){if(!se(t,"gutterContextMenu"))return!1;return ps(t,e,"gutterContextMenu",!1)}(t,e)||re(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function gs(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(t)}us.prototype.compare=function(t,e,n){return this.time+400>t&&0==gt(e,this.pos)&&n==this.button};var vs={toString:function(){return"CodeMirror.Init"}},bs={},ys={};function xs(t){ur(t),Ji(t),wi(t)}function _s(t,e,n){if(!e!=!(n&&n!=vs)){var i=t.display.dragFunctions,r=e?te:ne;r(t.display.scroller,"dragstart",i.start),r(t.display.scroller,"dragenter",i.enter),r(t.display.scroller,"dragover",i.over),r(t.display.scroller,"dragleave",i.leave),r(t.display.scroller,"drop",i.drop)}}function ws(t){t.options.lineWrapping?(A(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(S(t.display.wrapper,"CodeMirror-wrap"),Vt(t)),si(t),Ji(t),zn(t),setTimeout(function(){return Ni(t)},100)}function Cs(t,e){var i=this;if(!(this instanceof Cs))return new Cs(t,e);this.options=e=e?$(e):{},$(bs,e,!1),dr(e);var r=e.value;"string"==typeof r?r=new So(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var o=new Cs.inputStyles[e.inputStyle](this),c=this.display=new function(t,e,i){var r=this;this.input=i,r.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=T("div",null,"CodeMirror-code"),r.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=E("div",null,"CodeMirror-cursors"),r.measure=E("div",null,"CodeMirror-measure"),r.lineMeasure=E("div",null,"CodeMirror-measure"),r.lineSpace=T("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var o=T("div",[r.lineSpace],"CodeMirror-lines");r.mover=E("div",[o],null,"position: relative"),r.sizer=E("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=E("div",null,null,"position: absolute; height: "+H+"px; width: 1px;"),r.gutters=E("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=E("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=E("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),s&&a<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),l||n&&v||(r.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(r.wrapper):t(r.wrapper)),r.viewFrom=r.viewTo=e.first,r.reportedViewFrom=r.reportedViewTo=e.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,i.init(r)}(t,r,o);for(var u in c.wrapper.CodeMirror=this,ur(this),gs(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ri(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},e.autofocus&&!v&&c.input.focus(),s&&a<11&&setTimeout(function(){return i.display.input.reset(!0)},20),function(t){var e=t.display;te(e.scroller,"mousedown",Vi(t,ds)),te(e.scroller,"dblclick",s&&a<11?Vi(t,function(e){if(!re(t,e)){var n=ai(t,e);if(n&&!fs(t,e)&&!wn(t.display,e)){le(e);var i=t.findWordAt(n);Br(t.doc,i.anchor,i.head)}}}):function(e){return re(t,e)||le(e)});te(e.scroller,"contextmenu",function(e){return ms(t,e)});var n,i={end:0};function r(){e.activeTouch&&(n=setTimeout(function(){return e.activeTouch=null},1e3),(i=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var n=e.left-t.left,i=e.top-t.top;return n*n+i*i>400}te(e.scroller,"touchstart",function(r){if(!re(t,r)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(r)&&!fs(t,r)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-i.end<=300?i:null},1==r.touches.length&&(e.activeTouch.left=r.touches[0].pageX,e.activeTouch.top=r.touches[0].pageY)}}),te(e.scroller,"touchmove",function(){e.activeTouch&&(e.activeTouch.moved=!0)}),te(e.scroller,"touchend",function(n){var i=e.activeTouch;if(i&&!wn(e,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var s,a=t.coordsChar(e.activeTouch,"page");s=!i.prev||o(i,i.prev)?new br(a,a):!i.prev.prev||o(i,i.prev.prev)?t.findWordAt(a):new br(mt(a.line,0),wt(t.doc,mt(a.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),le(n)}r()}),te(e.scroller,"touchcancel",r),te(e.scroller,"scroll",function(){e.scroller.clientHeight&&(Ti(t,e.scroller.scrollTop),Ii(t,e.scroller.scrollLeft,!0),ie(t,"scroll",t))}),te(e.scroller,"mousewheel",function(e){return gr(t,e)}),te(e.scroller,"DOMMouseScroll",function(e){return gr(t,e)}),te(e.wrapper,"scroll",function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0}),e.dragFunctions={enter:function(e){re(t,e)||de(e)},over:function(e){re(t,e)||(!function(t,e){var n=ai(t,e);if(n){var i=document.createDocumentFragment();di(t,n,i),t.display.dragCursor||(t.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),L(t.display.dragCursor,i)}}(t,e),de(e))},start:function(e){return function(t,e){if(s&&(!t.state.draggingText||+new Date-Do<100))de(e);else if(!re(t,e)&&!wn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!h)){var n=E("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(t,e)},drop:Vi(t,Lo),leave:function(e){re(t,e)||Eo(t)}};var l=e.input.getField();te(l,"keyup",function(e){return ss.call(t,e)}),te(l,"keydown",Vi(t,os)),te(l,"keypress",Vi(t,as)),te(l,"focus",function(e){return vi(t,e)}),te(l,"blur",function(e){return bi(t,e)})}(this),Io(),Hi(this),this.curOp.forceUpdate=!0,Tr(this,r),e.autofocus&&!v||this.hasFocus()?setTimeout(N(vi,this),20):bi(this),ys)ys.hasOwnProperty(u)&&ys[u](i,e[u],vs);Ci(this),e.finishInit&&e.finishInit(this);for(var p=0;p150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?F(at(o,e-1).text,null,s):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",h=0;if(t.options.indentWithTabs)for(var p=Math.floor(c/s);p;--p)h+=s,d+="\t";if(hs,l=xe(e),c=null;if(a&&i.ranges.length>1)if(Ss&&Ss.text.join("\n")==e){if(i.ranges.length%Ss.text.length==0){c=[];for(var u=0;u=0;h--){var p=i.ranges[h],f=p.from(),m=p.to();p.empty()&&(n&&n>0?f=mt(f.line,f.ch-n):t.state.overwrite&&!a?m=mt(m.line,Math.min(at(o,m.line).text.length,m.ch+X(l).length)):a&&Ss&&Ss.lineWise&&Ss.text.join("\n")==e&&(f=m=mt(f.line,0)));var g={from:f,to:m,text:c?c[h%c.length]:l,origin:r||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};ro(t.doc,g),ln(t,"inputRead",t,g)}e&&!a&&Ts(t,e),Si(t),t.curOp.updateInput<2&&(t.curOp.updateInput=d),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Es(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Yi(e,function(){return Ls(e,n,0,null,"paste")}),!0}function Ts(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=t.getModeAt(r.head),s=!1;if(o.electricChars){for(var a=0;a-1){s=Ps(t,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(at(t.doc,r.head.line).text.slice(0,r.head.ch))&&(s=Ps(t,r.head.line,"smart"));s&&ln(t,"electricInput",t,r.head.line)}}}function Ms(t){for(var e=[],n=[],i=0;i=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Kt(r,n.ch,n.sticky),s=r[o];if("ltr"==t.doc.direction&&s.level%2==0&&(i>0?s.to>n.ch:s.from=s.from&&h>=u.begin)){var p=d?"before":"after";return new mt(n.line,h,p)}}var f=function(t,e,i){for(var o=function(t,e){return e?new mt(n.line,l(t,1),"before"):new mt(n.line,t,"after")};t>=0&&t0==(1!=s.level),c=a?i.begin:l(i.end,-1);if(s.from<=c&&c0?u.end:l(u.begin,-1);return null==g||i>0&&g==e.text.length||!(m=f(i>0?0:r.length-1,i,c(g)))?null:m}(t.cm,a,e,n):Vo(a,e,n))){if(i||(s=e.line+n)=t.first+t.size||(e=new mt(s,e.ch,e.sticky),!(a=at(t,s))))return!1;e=Xo(r,t.cm,a,e.line,n)}else e=o;return!0}if("char"==i)l();else if("column"==i)l(!0);else if("word"==i||"group"==i)for(var c=null,u="group"==i,d=t.cm&&t.cm.getHelper(e,"wordChars"),h=!0;!(n<0)||l(!h);h=!1){var p=a.text.charAt(e.ch)||"\n",f=et(p,d)?"w":u&&"\n"==p?"n":!u||/\s/.test(p)?null:"p";if(!u||h||f||(f="s"),c&&c!=f){n<0&&(n=1,l(),e.sticky="after");break}if(f&&(c=f),n>0&&!l(!h))break}var m=to(t,e,o,s,!0);return vt(o,m)&&(m.hitSide=!0),m}function Os(t,e,n,i){var r,o,s=t.doc,a=e.left;if("page"==i){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*ei(t.display),3);r=(n>0?e.bottom:e.top)+n*c}else"line"==i&&(r=n>0?e.bottom+3:e.top-3);for(;(o=Kn(t,a,r)).outside;){if(n<0?r<=0:r>=s.height){o.hitSide=!0;break}r+=5*n}return o}var Ns=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function $s(t,e){var n=Mn(t,e.line);if(!n||n.hidden)return null;var i=at(t.doc,e.line),r=En(n,i,e.line),o=Zt(i,t.doc.direction),s="left";o&&(s=Kt(o,e.ch)%2?"right":"left");var a=Nn(r.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Fs(t,e){return e&&(t.bad=!0),t}function Rs(t,e,n){var i;if(e==t.display.lineDiv){if(!(i=t.display.lineDiv.childNodes[n]))return Fs(t.clipPos(mt(t.display.viewTo-1)),!0);e=null,n=0}else for(i=e;;i=i.parentNode){if(!i||i==t.display.lineDiv)return null;if(i.parentNode&&i.parentNode==t.display.lineDiv)break}for(var r=0;r=e.display.viewTo||o.line=e.display.viewFrom&&$s(e,r)||{node:l[0].measure.map[2],offset:0},u=o.linei.firstLine()&&(s=mt(s.line-1,at(i.doc,s.line-1).length)),a.ch==at(i.doc,a.line).text.length&&a.liner.viewTo-1)return!1;s.line==r.viewFrom||0==(t=li(i,s.line))?(e=dt(r.view[0].line),n=r.view[0].node):(e=dt(r.view[t].line),n=r.view[t-1].node.nextSibling);var l,c,u=li(i,a.line);if(u==r.view.length-1?(l=r.viewTo-1,c=r.lineDiv.lastChild):(l=dt(r.view[u+1].line)-1,c=r.view[u+1].node.previousSibling),!n)return!1;for(var d=i.doc.splitLines(function(t,e,n,i,r){var o="",s=!1,a=t.doc.lineSeparator(),l=!1;function c(){s&&(o+=a,l&&(o+=a),s=l=!1)}function u(t){t&&(c(),o+=t)}function d(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void u(n);var o,h=e.getAttribute("cm-marker");if(h){var p=t.findMarks(mt(i,0),mt(r+1,0),(g=+h,function(t){return t.id==g}));return void(p.length&&(o=p[0].find(0))&&u(lt(t.doc,o.from,o.to).join(a)))}if("false"==e.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;f&&c();for(var m=0;m1&&h.length>1;)if(X(d)==X(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),e++}for(var p=0,f=0,m=d[0],g=h[0],v=Math.min(m.length,g.length);ps.ch&&b.charCodeAt(b.length-f-1)==y.charCodeAt(y.length-f-1);)p--,f++;d[d.length-1]=b.slice(0,b.length-f).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var _=mt(e,p),w=mt(l,h.length?X(h).length-f:0);return d.length>1||d[0]||gt(_,w)?(co(i.doc,d,_,w,"+input"),!0):void 0},Ns.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ns.prototype.reset=function(){this.forceCompositionEnd()},Ns.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ns.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},Ns.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Yi(this.cm,function(){return Ji(t.cm)})},Ns.prototype.setUneditable=function(t){t.contentEditable="false"},Ns.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Vi(this.cm,Ls)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Ns.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Ns.prototype.onContextMenu=function(){},Ns.prototype.resetPosition=function(){},Ns.prototype.needsContentAttribute=!0;var Hs=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};Hs.prototype.init=function(t){var e=this,n=this,i=this.cm;this.createField(t);var r=this.textarea;function o(t){if(!re(i,t)){if(i.somethingSelected())Ds({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var e=Ms(i);Ds({lineWise:!0,text:e.text}),"cut"==t.type?i.setSelections(e.ranges,null,B):(n.prevInput="",r.value=e.text.join("\n"),O(r))}"cut"==t.type&&(i.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(r.style.width="0px"),te(r,"input",function(){s&&a>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()}),te(r,"paste",function(t){re(i,t)||Es(t,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())}),te(r,"cut",o),te(r,"copy",o),te(t.scroller,"paste",function(e){if(!wn(t,e)&&!re(i,e)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,r.dispatchEvent(o)}}),te(t.lineSpace,"selectstart",function(e){wn(t,e)||le(e)}),te(r,"compositionstart",function(){var t=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:i.markText(t,i.getCursor("to"),{className:"CodeMirror-composing"})}}),te(r,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Hs.prototype.createField=function(t){this.wrapper=As(),this.textarea=this.wrapper.firstChild},Hs.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,i=ui(t);if(t.options.moveInputWithCursor){var r=Yn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+s.top-o.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+s.left-o.left))}return i},Hs.prototype.showSelection=function(t){var e=this.cm.display;L(e.cursorDiv,t.cursors),L(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Hs.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&O(this.textarea),s&&a>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null))}},Hs.prototype.getField=function(){return this.textarea},Hs.prototype.supportsTouch=function(){return!1},Hs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||I()!=this.textarea))try{this.textarea.focus()}catch(t){}},Hs.prototype.blur=function(){this.textarea.blur()},Hs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Hs.prototype.receivedFocus=function(){this.slowPoll()},Hs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Hs.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))})},Hs.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!e.state.focused||_e(n)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=n.value;if(r==i&&!e.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===r||b&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(i.length,r.length);l1e3||r.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Hs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Hs.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},Hs.prototype.onContextMenu=function(t){var e=this,n=e.cm,i=n.display,r=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=ai(n,t),c=i.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Vi(n,Vr)(n.doc,xr(o),B);var u,h=r.style.cssText,p=e.wrapper.style.cssText,f=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-f.top-5)+"px; left: "+(t.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),i.input.focus(),l&&window.scrollTo(null,u),i.input.reset(),n.somethingSelected()||(r.value=e.prevInput=" "),e.contextMenuPending=v,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),s&&a>=9&&g(),C){de(t);var m=function(){ne(window,"mouseup",m),setTimeout(v,20)};te(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=r.selectionStart){var t=n.somethingSelected(),o="​"+(t?r.value:"");r.value="⇚",r.value=o,e.prevInput=t?"":"​",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,r.style.cssText=h,s&&a<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=r.selectionStart)){(!s||s&&a<9)&&g();var t=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"​"==e.prevInput?Vi(n,no)(n):t++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},Hs.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},Hs.prototype.setUneditable=function(){},Hs.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,i,r,o){t.defaults[n]=i,r&&(e[n]=o?function(t,e,n){n!=vs&&r(t,e,n)}:r)}t.defineOption=n,t.Init=vs,n("value","",function(t,e){return t.setValue(e)},!0),n("mode",null,function(t,e){t.doc.modeOption=e,Pr(t)},!0),n("indentUnit",2,Pr,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(t){Sr(t),zn(t),Ji(t)},!0),n("lineSeparator",null,function(t,e){if(t.doc.lineSep=e,e){var n=[],i=t.doc.first;t.doc.iter(function(t){for(var r=0;;){var o=t.text.indexOf(e,r);if(-1==o)break;r=o+e.length,n.push(mt(i,o))}i++});for(var r=n.length-1;r>=0;r--)co(t.doc,e,n[r],mt(n[r].line,n[r].ch+e.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=vs&&t.refresh()}),n("specialCharPlaceholder",Ze,function(t){return t.refresh()},!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),n("autocorrect",!1,function(t,e){return t.getInputField().autocorrect=e},!0),n("autocapitalize",!1,function(t,e){return t.getInputField().autocapitalize=e},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(t){gs(t),xs(t)},!0),n("keyMap","default",function(t,e,n){var i=qo(e),r=n!=vs&&qo(n);r&&r.detach&&r.detach(t,i),i.attach&&i.attach(t,r||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,ws,!0),n("gutters",[],function(t){dr(t.options),xs(t)},!0),n("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?ri(t.display)+"px":"0",t.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(t){return Ni(t)},!0),n("scrollbarStyle","native",function(t){Ri(t),Ni(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),n("lineNumbers",!1,function(t){dr(t.options),xs(t)},!0),n("firstLineNumber",1,xs,!0),n("lineNumberFormatter",function(t){return t},xs,!0),n("showCursorWhenSelecting",!1,ci,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(t,e){"nocursor"==e&&(bi(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),n("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),n("dragDrop",!0,_s),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,ci,!0),n("singleCursorHeightPerLine",!0,ci,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Sr,!0),n("addModeClass",!1,Sr,!0),n("pollInterval",100),n("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),n("historyEventDelay",1250),n("viewportMargin",10,function(t){return t.refresh()},!0),n("maxHighlightLength",1e4,Sr,!0),n("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),n("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),n("autofocus",null),n("direction","ltr",function(t,e){return t.doc.setDirection(e)},!0),n("phrases",null)}(Cs),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var i=this.options,r=i[t];i[t]==n&&"mode"!=t||(i[t]=n,e.hasOwnProperty(t)&&Vi(this,e[t])(this,n,r),ie(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](qo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;nn&&(Ps(this,r.head.line,t,!0),n=r.head.line,i==this.doc.sel.primIndex&&Si(this));else{var o=r.from(),s=r.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l0&&qr(this.doc,i,new br(o,c[i].to()),B)}}}),getTokenAt:function(t,e){return Be(this,t,e)},getLineTokens:function(t,e){return Be(this,mt(t),e,!0)},getTokenTypeAt:function(t){t=wt(this.doc,t);var e,n=$e(this,at(this.doc,t.line)),i=0,r=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=i+r>>1;if((s?n[2*s-1]:0)>=o)r=s;else{if(!(n[2*s+1]o&&(t=o,r=!0),i=at(this.doc,t)}else i=t;return Un(this,i,{top:0,left:0},e||"page",n||r).top+(r?this.doc.height-Gt(i):0)},defaultTextHeight:function(){return ei(this.display)},defaultCharWidth:function(){return ni(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,i,r){var o,s,a,l=this.display,c=(t=Yn(this,wt(this.doc,t))).bottom,u=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==i)c=t.top;else if("above"==i||"near"==i){var d=Math.max(l.wrapper.clientHeight,this.doc.height),h=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>d)&&t.top>e.offsetHeight?c=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=d&&(c=t.bottom),u+e.offsetWidth>h&&(u=h-e.offsetWidth)}e.style.top=c+"px",e.style.left=e.style.right="","right"==r?(u=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?u=0:"middle"==r&&(u=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=u+"px"),n&&(o=this,s={left:u,top:c,right:u+e.offsetWidth,bottom:c+e.offsetHeight},null!=(a=ki(o,s)).scrollTop&&Ti(o,a.scrollTop),null!=a.scrollLeft&&Ii(o,a.scrollLeft))},triggerOnKeyDown:Xi(os),triggerOnKeyPress:Xi(as),triggerOnKeyUp:ss,triggerOnMouseDown:Xi(ds),execCommand:function(t){if(Ko.hasOwnProperty(t))return Ko[t].call(null,this)},triggerElectric:Xi(function(t){Ts(this,t)}),findPosH:function(t,e,n,i){var r=1;e<0&&(r=-1,e=-e);for(var o=wt(this.doc,t),s=0;s0&&s(e.charAt(n-1));)--n;for(;i.5)&&si(this),ie(this,"refresh",this)}),swapDoc:Xi(function(t){var e=this.doc;return e.cm=null,Tr(this,t),zn(this),this.display.input.reset(),Di(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,e),e}),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ae(t),t.registerHelper=function(e,i,r){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][i]=r},t.registerGlobalHelper=function(e,i,r,o){t.registerHelper(e,i,o),n[e]._global.push({pred:r,val:o})}}(Cs);var Ws="iter insert remove copy getEditor constructor".split(" ");for(var Bs in So.prototype)So.prototype.hasOwnProperty(Bs)&&z(Ws,Bs)<0&&(Cs.prototype[Bs]=function(t){return function(){return t.apply(this.doc,arguments)}}(So.prototype[Bs]));return ae(So),Cs.inputStyles={textarea:Hs,contenteditable:Ns},Cs.defineMode=function(t){Cs.defaults.mode||"null"==t||(Cs.defaults.mode=t),function(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),ke[t]=e}.apply(this,arguments)},Cs.defineMIME=function(t,e){Pe[t]=e},Cs.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Cs.defineMIME("text/plain","null"),Cs.defineExtension=function(t,e){Cs.prototype[t]=e},Cs.defineDocExtension=function(t,e){So.prototype[t]=e},Cs.fromTextArea=function(t,e){if((e=e?$(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=I();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function i(){t.value=a.getValue()}var r;if(t.form&&(te(t.form,"submit",i),!e.leaveSubmitMethodAlone)){var o=t.form;r=o.submit;try{var s=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=s}}catch(t){}}e.finishInit=function(e){e.save=i,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,i(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(ne(t.form,"submit",i),"function"==typeof t.form.submit&&(t.form.submit=r))}},t.style.display="none";var a=Cs(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return a},function(t){t.off=ne,t.on=te,t.wheelEventPixels=mr,t.Doc=So,t.splitLines=xe,t.countColumn=F,t.findColumn=G,t.isWordChar=tt,t.Pass=W,t.signal=ie,t.Line=Ge,t.changeEnd=_r,t.scrollbarModel=Fi,t.Pos=mt,t.cmpPos=gt,t.modes=ke,t.mimeModes=Pe,t.resolveMode=Se,t.getMode=De,t.modeExtensions=Le,t.extendMode=Ee,t.copyState=Te,t.startState=Ie,t.innerMode=Me,t.commands=Ko,t.keyMap=Fo,t.keyName=Uo,t.isModifierKey=Wo,t.lookupKey=Ho,t.normalizeKeyMap=zo,t.StringStream=Ae,t.SharedTextMarker=wo,t.TextMarker=xo,t.LineWidget=vo,t.e_preventDefault=le,t.e_stopPropagation=ce,t.e_stop=de,t.addClass=A,t.contains=M,t.rmClass=S,t.keyNames=jo}(Cs),Cs.version="5.45.0",Cs},t.exports=i()},645:function(t,e,n){var i;i=function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",r="day",o="week",s="month",a="quarter",l="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,u=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},h={s:d,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+d(i,2,"0")+":"+d(r,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,s),r=e-i<0,o=t.clone().add(n+(r?-1:1),s);return Number(-(n+(e-i)/(r?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:s,y:l,w:o,d:r,h:i,m:n,s:e,ms:t,Q:a}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f="en",m={};m[f]=p;var g=function(t){return t instanceof x},v=function(t,e,n){var i;if(!t)return null;if("string"==typeof t)m[t]&&(i=t),e&&(m[t]=e,i=t);else{var r=t.name;m[r]=t,i=r}return n||(f=i),i},b=function(t,e,n){if(g(t))return t.clone();var i=e?"string"==typeof e?{format:e,pl:n}:e:{};return i.date=t,new x(i)},y=h;y.l=v,y.i=g,y.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u})};var x=function(){function d(t){this.$L=this.$L||v(t.locale,null,!0)||f,this.parse(t)}var h=d.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(c);if(i)return n?new Date(Date.UTC(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)):new Date(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return y},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var n=b(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return b(t).secondary-menu-model{left:-200px}.secondary-menu-model{position:fixed;left:0;top:0;width:200px;background:#41444c;height:100%;padding-top:80px}.secondary-menu-model .toogle-box{position:absolute;right:-1px;top:calc(50% - 50px)}.secondary-menu-model .toogle-box .tog-close{width:12px;height:102px;background:url("+i(n(657))+") no-repeat;display:inline-block}.secondary-menu-model .toogle-box .tog-open{width:12px;height:102px;background:url("+i(n(658))+") no-repeat;display:inline-block;position:absolute;right:-12px;top:0}.secondary-menu-model .leven-1 .name a{height:40px;line-height:40px;display:block;position:relative;padding-left:12px}.secondary-menu-model .leven-1 .name a>.icon{vertical-align:middle;font-size:15px;width:20px;text-align:center;color:#fff}.secondary-menu-model .leven-1 .name a>span{vertical-align:middle;padding-left:2px;font-size:14px;color:#fff}.secondary-menu-model .leven-1 .name a>.angle{position:absolute;right:12px;top:14px}.secondary-menu-model .leven-1 ul li{height:36px;line-height:36px;cursor:pointer;padding-left:39px;color:#fff}.secondary-menu-model .leven-1 ul li a{font-size:14px}.secondary-menu-model .leven-1 ul li.active{border-right:2px solid #2d8cf0;background:#2c2f39}.secondary-menu-model .leven-1 ul li.active span{font-weight:700;color:#2d8cf0}.secondary-menu-model .leven-1 .router-link-active,.secondary-menu-model .leven-1>.router-link-exact-active{background:#f0f6fb}.secondary-menu-model .leven-1 .router-link-active .name,.secondary-menu-model .leven-1>.router-link-exact-active .name{border-right:2px solid #2d8cf0;background:#2b2e38}.secondary-menu-model .leven-1 .router-link-active .name a span,.secondary-menu-model .leven-1>.router-link-exact-active .name a span{color:#2d8cf0;font-weight:700}.secondary-menu-model .leven-1 .router-link-active .name a .fa,.secondary-menu-model .leven-1>.router-link-exact-active .name a .fa{color:#2d8cf0}",""])},657:function(t,e,n){t.exports=n.p+"images/close.png?02806e641df25c1b4dbff4cb0af3984d"},658:function(t,e,n){t.exports=n.p+"images/open.png?97ec0726c7acab8a2a48282d68cea631"},659:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(36),o=(i=r)&&i.__esModule?i:{default:i};var s={projects:[{name:""+o.default.$t("项目首页"),id:1,path:"projects-index",isOpen:!0,icon:"fa-home",children:[]},{name:""+o.default.$t("工作流"),id:2,path:"",isOpen:!0,icon:"fa-gear",children:[{name:""+o.default.$t("工作流定义"),path:"definition",id:1},{name:""+o.default.$t("工作流实例"),path:"instance",id:2},{name:""+o.default.$t("任务实例"),path:"task-instance-list",id:3}]}],security:[{name:""+o.default.$t("租户管理"),id:1,path:"tenement-manage",isOpen:!0,icon:"fa-users",children:[]},{name:""+o.default.$t("用户管理"),id:1,path:"users-manage",isOpen:!0,icon:"fa-user-circle",children:[]},{name:""+o.default.$t("告警组管理"),id:1,path:"warning-groups-manage",isOpen:!0,icon:"fa-warning",children:[]},{name:""+o.default.$t("队列管理"),id:1,path:"queue-manage",isOpen:!0,icon:"fa-recycle",children:[]},{name:""+o.default.$t("服务管理"),id:1,path:"",isOpen:!0,icon:"fa-server",children:[{name:"master",path:"servers-master",id:1},{name:"worker",path:"servers-worker",id:2}]}],resource:[{name:""+o.default.$t("文件管理"),id:1,path:"file",isOpen:!0,icon:"fa-files-o",children:[],disabled:!1},{name:""+o.default.$t("UDF管理"),id:1,path:"",isOpen:!0,icon:"fa-file-text",disabled:!1,children:[{name:""+o.default.$t("资源管理"),path:"resource-udf-resource",id:1},{name:""+o.default.$t("函数管理"),path:"resource-udf-function",id:2}]}],user:[{name:""+o.default.$t("用户信息"),id:1,path:"account",isOpen:!0,icon:"fa-user",children:[],disabled:!1},{name:""+o.default.$t("修改密码"),id:1,path:"password",isOpen:!0,icon:"fa-key",children:[],disabled:!1}]};e.default=function(t){return s[t]}},660:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"secondary-menu-model",class:t.className},[n("div",{staticClass:"toogle-box"},[t.isTogHide?t._e():n("a",{staticClass:"tog-close",attrs:{href:"javascript:"},on:{click:t._toggleMenu}}),t._v(" "),t.isTogHide?n("a",{staticClass:"tog-open",attrs:{href:"javascript:"},on:{click:t._toggleMenu}}):t._e()]),t._v(" "),t._l(t.menuList,function(e,i){return n("div",{staticClass:"leven-1"},[e.path?[n("router-link",{attrs:{to:{name:e.path}}},[n("div",{staticClass:"name",on:{click:function(n){return t._toggleSubMenu(e)}}},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa icon",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))]),t._v(" "),e.children.length?n("i",{staticClass:"fa angle",class:e.isOpen?"fa-angle-down":"fa-angle-right"}):t._e()])])])]:t._e(),t._v(" "),e.path?t._e():[n("div",{staticClass:"name",on:{click:function(n){return t._toggleSubMenu(e)}}},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa icon",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))]),t._v(" "),e.children.length?n("i",{staticClass:"fa angle",class:e.isOpen?"fa-angle-down":"fa-angle-right"}):t._e()])])],t._v(" "),e.isOpen&&e.children.length?n("ul",t._l(e.children,function(e,i){return n("router-link",{attrs:{to:{name:e.path},tag:"li","active-class":"active"}},[n("span",[t._v(t._s(e.name))])])}),1):t._e()],2)})],2)},staticRenderFns:[]};e.a=i},661:function(t,e,n){"use strict";e.__esModule=!0,e.formatDate=void 0;var i,r=n(645),o=(i=r)&&i.__esModule?i:{default:i};e.formatDate=function(t,e){return e=e||"YYYY-MM-DD HH:mm:ss",(0,o.default)(t).format(e)}},675:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(776),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(925);var a=function(t){n(923)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},676:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(781),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(939);var a=function(t){n(937)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},682:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(644),o=(i=r)&&i.__esModule?i:{default:i};n(724),n(725),n(726),n(727),n(728),n(683),n(729),n(730),n(731),n(732),n(733),e.default=function(t,e){return o.default.fromTextArea(document.getElementById(t),Object.assign({lineNumbers:!0,theme:"mdn-like",readOnly:!0},{},e))}},683:function(t,e,n){(function(t){"use strict";function e(t){for(var e;null!=(e=t.next());)if("`"==e&&!t.eat("`"))return"variable-2";return t.backUp(t.current().length-1),t.eatWhile(/\w/)?"variable-2":null}function n(t){return t.eat("@")&&(t.match(/^session\./),t.match(/^local\./),t.match(/^global\./)),t.eat("'")?(t.match(/^.*'/),"variable-2"):t.eat('"')?(t.match(/^.*"/),"variable-2"):t.eat("`")?(t.match(/^.*`/),"variable-2"):t.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function i(t){return t.eat("N")?"atom":t.match(/^[a-zA-Z.#!?]/)?"variable-2":null}t.defineMode("sql",function(e,n){var i=n.client||{},a=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||o(s),c=n.keywords||o(r),u=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,d=n.support||{},h=n.hooks||{},p=n.dateSQL||{date:!0,time:!0,timestamp:!0},f=!1!==n.backslashStringEscapes,m=n.brackets||/^[\{}\(\)\[\]]/,g=n.punctuation||/^[;.,:]/;function v(t,e){var n,r=t.next();if(h[r]){var o=h[r](t,e);if(!1!==o)return o}if(d.hexNumber&&("0"==r&&t.match(/^[xX][0-9a-fA-F]+/)||("x"==r||"X"==r)&&t.match(/^'[0-9a-fA-F]+'/)))return"number";if(d.binaryNumber&&(("b"==r||"B"==r)&&t.match(/^'[01]+'/)||"0"==r&&t.match(/^b[01]+/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return t.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),d.decimallessFloat&&t.match(/^\.(?!\.)/),"number";if("?"==r&&(t.eatSpace()||t.eol()||t.eat(";")))return"variable-3";if("'"==r||'"'==r&&d.doubleQuote)return e.tokenize=(n=r,function(t,e){for(var i,r=!1;null!=(i=t.next());){if(i==n&&!r){e.tokenize=v;break}r=f&&!r&&"\\"==i}return"string"}),e.tokenize(t,e);if((d.nCharCast&&("n"==r||"N"==r)||d.charsetCast&&"_"==r&&t.match(/[a-z][a-z0-9]*/i))&&("'"==t.peek()||'"'==t.peek()))return"keyword";if(d.commentSlashSlash&&"/"==r&&t.eat("/"))return t.skipToEnd(),"comment";if(d.commentHash&&"#"==r||"-"==r&&t.eat("-")&&(!d.commentSpaceRequired||t.eat(" ")))return t.skipToEnd(),"comment";if("/"==r&&t.eat("*"))return e.tokenize=function t(e){return function(n,i){var r=n.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?i.tokenize=t(e+1):i.tokenize=e>1?t(e-1):v:n.skipToEnd(),"comment"}}(1),e.tokenize(t,e);if("."!=r){if(u.test(r))return t.eatWhile(u),"operator";if(m.test(r))return"bracket";if(g.test(r))return t.eatWhile(g),"punctuation";if("{"==r&&(t.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||t.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";t.eatWhile(/^[_\w\d]/);var s=t.current().toLowerCase();return p.hasOwnProperty(s)&&(t.match(/^( )+'[^']*'/)||t.match(/^( )+"[^"]*"/))?"number":a.hasOwnProperty(s)?"atom":l.hasOwnProperty(s)?"builtin":c.hasOwnProperty(s)?"keyword":i.hasOwnProperty(s)?"string-2":null}return d.zerolessFloat&&t.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":t.match(/^\.+/)?null:d.ODBCdotTable&&t.match(/^[\w\d_]+/)?"variable-2":void 0}function b(t,e,n){e.context={prev:e.context,indent:t.indentation(),col:t.column(),type:n}}return{startState:function(){return{tokenize:v,context:null}},token:function(t,e){if(t.sol()&&e.context&&null==e.context.align&&(e.context.align=!1),e.tokenize==v&&t.eatSpace())return null;var n=e.tokenize(t,e);if("comment"==n)return n;e.context&&null==e.context.align&&(e.context.align=!0);var i=t.current();return"("==i?b(t,e,")"):"["==i?b(t,e,"]"):e.context&&e.context.type==i&&function(t){t.indent=t.context.indent,t.context=t.context.prev}(e),n},indent:function(n,i){var r=n.context;if(!r)return t.Pass;var o=i.charAt(0)==r.type;return r.align?r.col+(o?0:1):r.indent+(o?0:e.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});var r="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function o(t){for(var e={},n=t.split(" "),i=0;i!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),t.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(r+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":e,"\\":i}}),t.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(r+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":e,"\\":i}}),t.defineMIME("text/x-sqlite",{name:"sql",client:o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:o(r+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:o("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':function(t){for(var e;null!=(e=t.next());)if('"'==e&&!t.eat('"'))return"variable-2";return t.backUp(t.current().length-1),t.eatWhile(/\w/)?"variable-2":null},"`":e}}),t.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),t.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),t.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),t.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),keywords:o(r+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),t.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),t.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),t.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote zerolessFloat")}),t.defineMIME("text/x-esper",{name:"sql",client:o("source"),keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")})})(n(644))},684:function(t,e,n){"use strict";e.__esModule=!0,e.fuzzyQuery=e.isEmial=e.warningTypeList=void 0;var i,r=n(36),o=(i=r)&&i.__esModule?i:{default:i};var s=[{id:"NONE",code:""+o.default.$t("都不发")},{id:"SUCCESS",code:""+o.default.$t("成功发")},{id:"FAILURE",code:""+o.default.$t("失败发")},{id:"ALL",code:""+o.default.$t("成功或失败都发")}];e.warningTypeList=s,e.isEmial=function(t){return/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(t)},e.fuzzyQuery=function(t,e){for(var n=t.length,i=[],r=new RegExp(e),o=0;o'+e.unicode+""},_onChange:function(t){this.value=t.value,this.$emit("priorityEvent",t.value)}},created:function(){},mounted:function(){},components:{}}},698:function(t,e,n){"use strict";e.__esModule=!0,e.rtBantpl=e.allNodesId=e.setSvgColor=e.isNameExDag=e.tasksAll=e.rtTasksTpl=e.saveTargetarr=e.rtTargetarrArr=void 0;var i=a(n(28)),r=a(n(71)),o=a(n(36)),s=a(n(91));function a(t){return t&&t.__esModule?t:{default:t}}var l=function(){return''},c=function(){var t=[];return(0,r.default)("#canvas .w").each(function(e,n){var i=(0,r.default)(n);t.push({id:i.attr("id"),name:i.find(".name-p").text(),targetarr:i.attr("data-targetarr")||"",x:parseInt(i.css("left"),10),y:parseInt(i.css("top"),10)})}),t};e.rtTargetarrArr=function(t){var e=(0,r.default)("#"+t).attr("data-targetarr");return e?e.split(","):[]},e.saveTargetarr=function(t,e){var n=(0,r.default)("#"+e),i=n.attr("data-targetarr")?n.attr("data-targetarr")+","+t:""+t;n.attr("data-targetarr",i)},e.rtTasksTpl=function(t){var e=t.id,n=t.name,i=t.x,r=t.y,o=t.targetarr,s=t.isAttachment,a=t.taskType,c=t.runFlag,u="";return u+='
',u+="
",u+='
',u+='
',u+=''+n+"",u+="
",u+='
',u+='
',"FORBIDDEN"===c&&(u+=l()),u+="
",u+="
"},e.tasksAll=c,e.isNameExDag=function(t,e){return"dom"===e?-1!==i.default.findIndex(c(),function(e){return e.name===t}):-1!==i.default.findIndex(s.default.state.dag.tasks,function(e){return e.name===t})},e.setSvgColor=function(t,e){(0,r.default)(".jtk-connector").each(function(t,e){i.default.map((0,r.default)(e)[0].childNodes,function(t){(0,r.default)(t).attr("fill","#555").attr("stroke","#555").attr("stroke-width",2)})}),i.default.map((0,r.default)(t.canvas)[0].childNodes,function(t,n){(0,r.default)(t).attr("fill",e).attr("stroke",e),(0,r.default)(t).attr("class")&&(0,r.default)(t).attr("stroke-width",2)})},e.allNodesId=function(){var t=[];return(0,r.default)(".w").each(function(e,n){var i=(0,r.default)(n),o=i.find(".name-p").text();o&&t.push({id:i.attr("id"),name:o})}),t},e.rtBantpl=l},699:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(782),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(942);var a=function(t){n(940)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},700:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(686),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(742);var a=function(t){n(740)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},701:function(t,e,n){"use strict";e.__esModule=!0,e.downloadFile=void 0;var i,r=n(36),o=(i=r)&&i.__esModule?i:{default:i};e.downloadFile=function(t,e){var n={url:t,obj:e};if(n.url){var i,r;$('
'+(i=n.obj,r="",Object.keys(i).forEach(function(t){r+=""}),r)+"
").appendTo("body").submit().remove()}else(void 0).$message.warning(""+o.default.$t("无下载url无法下载"))}},702:function(t,e,n){"use strict";e.__esModule=!0;var i=c(n(28)),r=c(n(645)),o=c(n(734)),s=c(n(91)),a=n(684),l=c(n(700));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"start-process",data:function(){return{store:s.default,processDefinitionId:0,failureStrategy:"CONTINUE",warningTypeList:a.warningTypeList,warningType:{},notifyGroupList:[],warningGroupId:{},scheduleTime:"",spinnerLoading:!1,execType:!1,taskDependType:"TASK_POST",receivers:[],receiversCc:[],runMode:"RUN_MODE_SERIAL",processInstancePriority:"MEDIUM"}},props:{item:Object,startNodeList:{type:String,default:""},sourceType:String},methods:{_datepicker:function(t){this.scheduleTime=t},_start:function(){var t=this;this.spinnerLoading=!0;var e={processDefinitionId:this.item.id,scheduleTime:this.scheduleTime.length&&this.scheduleTime.join(",")||"",failureStrategy:this.failureStrategy,warningType:this.warningType.id,warningGroupId:i.default.isEmpty(this.warningGroupId)?0:this.warningGroupId.id,execType:this.execType?"COMPLEMENT_DATA":null,startNodeList:this.startNodeList,taskDependType:this.taskDependType,runMode:this.runMode,processInstancePriority:this.processInstancePriority,receivers:this.receivers.join(",")||"",receiversCc:this.receiversCc.join(",")||""};"contextmenu"===this.sourceType&&(e.taskDependType=this.taskDependType),this.store.dispatch("dag/processStart",e).then(function(e){t.$message.success(e.msg),t.$emit("onUpdate"),setTimeout(function(){t.spinnerLoading=!1,t.close()},500)}).catch(function(e){t.$message.error(e.msg||""),t.spinnerLoading=!1})},_getNotifyGroupList:function(){var t=this;return new Promise(function(e,n){var r=i.default.cloneDeep(t.store.state.dag.notifyGroupListS)||[];r.length?(t.notifyGroupList=r,e()):t.store.dispatch("dag/getNotifyGroupList").then(function(n){t.notifyGroupList=n,e()})})},_getReceiver:function(){var t=this;this.store.dispatch("dag/getReceiver",{processDefinitionId:this.item.id}).then(function(e){t.receivers=e.receivers&&e.receivers.split(",")||[],t.receiversCc=e.receiversCc&&e.receiversCc.split(",")||[]})},ok:function(){this._start()},close:function(){this.$emit("close")}},watch:{execType:function(t){this.scheduleTime=t?[(0,r.default)().format("YYYY-MM-DD 00:00:00"),(0,r.default)().format("YYYY-MM-DD 00:00:00")]:""}},created:function(){this.warningType=this.warningTypeList[0],this._getReceiver()},mounted:function(){var t=this;this._getNotifyGroupList().then(function(){t.$nextTick(function(){t.warningGroupId={id:0}})})},computed:{},components:{mEmail:o.default,mPriority:l.default}}},721:function(t,e,n){(function(){void 0===Math.sgn&&(Math.sgn=function(t){return 0==t?0:t>0?1:-1});var t=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},n=function(t,e){return t.x*e.x+t.y*e.y},i=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r=function(t,e){return{x:t.x*e,y:t.y*e}},o=Math.pow(2,-65),s=function(e,n){for(var r=[],o=a(e,n),s=n.length-1,c=l(o,2*s-1,r,0),u=t(e,n[0]),d=i(u),p=0,f=0;f=64)return n[0]=(t[0].x+t[e].x)/2,1;if(u(t,e))return n[0]=d(t,e),1}h(t,e,.5,s,a),r=l(s,e,p,i+1),o=l(a,e,f,i+1);for(var m=0;mu?u=p:p0?1:-1,a=null;r=0)r=_(u+Math.sqrt(d))*Math.pow(Math.abs(u+Math.sqrt(d)),1/3),o=_(u-Math.sqrt(d))*Math.pow(Math.abs(u-Math.sqrt(d)),1/3),h[0]=-s/3+(r+o),h[1]=-s/3-(r+o)/2,h[2]=-s/3-(r+o)/2,0!==Math.abs(Math.sqrt(3)*(r-o)/2)&&(h[1]=-1,h[2]=-1);else{var p=Math.acos(u/Math.sqrt(-Math.pow(c,3)));h[0]=2*Math.sqrt(-c)*Math.cos(p/3)-s/3,h[1]=2*Math.sqrt(-c)*Math.cos((p+2*Math.PI)/3)-s/3,h[2]=2*Math.sqrt(-c)*Math.cos((p+4*Math.PI)/3)-s/3}for(var f=0;f<3;f++)(h[f]<0||h[f]>1)&&(h[f]=-1);return h}.apply(null,c),d=[];if(null!=u)for(var h=0;h<3;h++){var p,f=u[h],m=Math.pow(f,2),g=Math.pow(f,3),v=[l[0][0]*g+l[0][1]*m+l[0][2]*f+l[0][3],l[1][0]*g+l[1][1]*m+l[1][2]*f+l[1][3]];p=n-t!=0?(v[0]-t)/(n-t):(v[1]-e)/(i-e),f>=0&&f<=1&&p>=0&&p<=1&&d.push(v)}return d};function x(t,e){return[-t[0][e]+3*t[1][e]+-3*t[2][e]+t[3][e],3*t[0][e]-6*t[1][e]+3*t[2][e],-3*t[0][e]+3*t[1][e],t[0][e]]}function _(t){return t<0?-1:t>0?1:0}var w=this.jsBezier={distanceFromCurve:s,gradientAtPoint:b,gradientAtPointAlongCurveFrom:function(t,e,n){var i=v(t,e,n);return i.location>1&&(i.location=1),i.location<0&&(i.location=0),b(t,i.location)},nearestPointOnCurve:function(t,e){var n=s(t,e);return{point:h(e,e.length-1,n.location,null,null),location:n.location}},pointOnCurve:f,pointAlongCurveFrom:function(t,e,n){return v(t,e,n).point},perpendicularToCurveAt:function(t,e,n,i){var r=v(t,e,i=null==i?0:i),o=b(t,r.location),s=Math.atan(-1/o),a=n/2*Math.sin(s),l=n/2*Math.cos(s);return[{x:r.point.x+l,y:r.point.y+a},{x:r.point.x-l,y:r.point.y-a}]},locationAlongCurveFrom:function(t,e,n){return v(t,e,n).location},getLength:function(t){if(g(t))return 0;for(var e=f(t,0),n=0,i=0,r=null;i<1;)r=f(t,i+=.005),n+=m(r,e),e=r;return n},lineIntersection:y,boxIntersection:function(t,e,n,i,r){var o=[];return o.push.apply(o,y(t,e,t+n,e,r)),o.push.apply(o,y(t+n,e,t+n,e+i,r)),o.push.apply(o,y(t+n,e+i,t,e+i,r)),o.push.apply(o,y(t,e+i,t,e,r)),o},boundingBoxIntersection:function(t,e){var n=[];return n.push.apply(n,y(t.x,t.y,t.x+t.w,t.y,e)),n.push.apply(n,y(t.x+t.w,t.y,t.x+t.w,t.y+t.h,e)),n.push.apply(n,y(t.x+t.w,t.y+t.h,t.x,t.y+t.h,e)),n.push.apply(n,y(t.x,t.y+t.h,t.x,t.y,e)),n},version:"0.9.0"};e.jsBezier=w}).call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.Biltong={version:"0.4.0"};e.Biltong=t;var n=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=function(t,e,i){return i(t=n(t)?t:[t.x,t.y],e=n(e)?e:[e.x,e.y])},r=t.gradient=function(t,e){return i(t,e,function(t,e){return e[0]==t[0]?e[1]>t[1]?1/0:-1/0:e[1]==t[1]?e[0]>t[0]?0:-0:(e[1]-t[1])/(e[0]-t[0])})},o=(t.normal=function(t,e){return-1/r(t,e)},t.lineLength=function(t,e){return i(t,e,function(t,e){return Math.sqrt(Math.pow(e[1]-t[1],2)+Math.pow(e[0]-t[0],2))})},t.quadrant=function(t,e){return i(t,e,function(t,e){return e[0]>t[0]?e[1]>t[1]?2:1:e[0]==t[0]?e[1]>t[1]?2:1:e[1]>t[1]?3:4})}),s=(t.theta=function(t,e){return i(t,e,function(t,e){var n=r(t,e),i=Math.atan(n),s=o(t,e);return 4!=s&&3!=s||(i+=Math.PI),i<0&&(i+=2*Math.PI),i})},t.intersects=function(t,e){var n=t.x,i=t.x+t.w,r=t.y,o=t.y+t.h,s=e.x,a=e.x+e.w,l=e.y,c=e.y+e.h;return n<=s&&s<=i&&r<=l&&l<=o||n<=a&&a<=i&&r<=l&&l<=o||n<=s&&s<=i&&r<=c&&c<=o||n<=a&&s<=i&&r<=c&&c<=o||s<=n&&n<=a&&l<=r&&r<=c||s<=i&&i<=a&&l<=r&&r<=c||s<=n&&n<=a&&l<=o&&o<=c||s<=i&&n<=a&&l<=o&&o<=c},t.encloses=function(t,e,n){var i=t.x,r=t.x+t.w,o=t.y,s=t.y+t.h,a=e.x,l=e.x+e.w,c=e.y,u=e.y+e.h,d=function(t,e,i,r){return n?t<=e&&i>=r:tr};return d(i,a,r,l)&&d(o,c,s,u)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),a=[null,[-1,-1],[-1,1],[1,1],[1,-1]];t.pointOnLine=function(t,e,n){var i=r(t,e),l=o(t,e),c=n>0?s[l]:a[l],u=Math.atan(i),d=Math.abs(n*Math.sin(u))*c[1],h=Math.abs(n*Math.cos(u))*c[0];return{x:t.x+h,y:t.y+d}},t.perpendicularLineTo=function(t,e,n){var i=r(t,e),o=Math.atan(-1/i),s=n/2*Math.sin(o),a=n/2*Math.cos(o);return[{x:e.x+a,y:e.y+s},{x:e.x-a,y:e.y-s}]}}.call("undefined"!=typeof window?window:this),function(){"use strict";function t(t,e,n,i,r,o,s,a){return function(){var t=[];return Array.prototype.push.apply(t,arguments),t.item=function(t){return this[t]},t}(function(t,e,n,i,r,o,s,a){return new Touch({target:e,identifier:D(),pageX:n,pageY:i,screenX:r,screenY:o,clientX:s||r,clientY:a||o})}.apply(null,arguments))}var n=function(t,e,n){for(var i=(n=n||t.parentNode).querySelectorAll(e),r=0;r-1&&v<9,y=function(t,e){if(null==t)return[0,0];var n=w(t),i=_(n,0);return[i[e+"X"],i[e+"Y"]]},x=function(t){return null==t?[0,0]:b?[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop]:y(t,"page")},_=function(t,e){return t.item?t.item(e):t[e]},w=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},C=function(t){return w(t).length},k=function(t,e,n,i){if(l(t,e,n),i.__tauid=n.__tauid,t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent){var r=e+n.__tauid;t["e"+r]=n,t[r]=function(){t["e"+r]&&t["e"+r](window.event)},t.attachEvent("on"+e,t[r])}},P=function(t,e,n){null!=n&&S(t,function(){var r=i(this);if(function(t,e,n){if(t.__ta&&t.__ta[e]&&delete t.__ta[e][n.__tauid],n.__taExtra){for(var i=0;i-1&&o<9,a=9===o,l=function(t){if(s)return[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop];var e=u(t),n=c(e,0);return a?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},c=function(t,e){return t.item?t.item(e):t[e]},u=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},d={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"},h=["stop","start","drag","drop","over","out","beforeStart"],p=function(){},f=function(){return!0},m=function(t,e,n){for(var i=0;i1)for(var o=0;o0&&B&&e.setPosition(M,B),H.sort(P);for(var r=0;re.rank?-1:0},S=function(t){return null==t?null:null==(t="string"==typeof t||t.constructor===String?document.getElementById(t):t)?null:(t._katavorio=t._katavorio||k(),t)};this.Katavorio=function(e){var r=[],o={};this._dragsByScope={},this._dropsByScope={};var s=1,a=function(t,e){v(t,function(t){for(var n=0;n0},c=(this.getMatchingDroppables=function(t){for(var e=[],n={},i=0;i=0&&r.splice(i,1),l(t[e],n)&&v(t[e],function(t){t.destroy()}),delete t[e]}},L=function(t,e,n,i){(t=S(t))[e]&&t[e].off(n,i)};this.elementRemoved=function(t){this.destroyDraggable(t),this.destroyDroppable(t)},this.destroyDraggable=function(t,e,n){1===arguments.length?D(t,"_katavorioDrag",this._dragsByScope):L(t,"_katavorioDrag",e,n)},this.destroyDroppable=function(t,e,n){1===arguments.length?D(t,"_katavorioDrop",this._dropsByScope):L(t,"_katavorioDrop",e,n)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},r=[],o={},E={}};var E={},T=function(e,n,r){var o,s=i(n)?n:n.id,a=!!i(n)||!1!==n.active,l=E[s]||(o={name:s,members:[]},E[s]=o,o);return v(e,function(e){if(e._katavorioDrag){if(r&&null!=e._katavorioDrag.posseRoles[l.name])return;t(l.members,e._katavorioDrag),t(e._katavorioDrag.posses,l.name),e._katavorioDrag.posseRoles[l.name]=a}}),l};this.addToPosse=function(t,e){for(var n=[],i=1;i-1&&t.splice(n,1),-1!==n}function h(t,e,n,i){var r=t[e];return null==r&&(r=[],t[e]=r),r[i?"unshift":"push"](n),r}function p(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function f(){for(var e=[],n=0;n0},t.isEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},t.clone=l,t.merge=c,t.replace=function(t,e,n){if(null!=t){var i=t;return e.replace(/([^\.])+/g,function(t,e,r,o){var s=t.match(/([^\[0-9]+){1}(\[)([0-9+])/),a=function(){return i[s[1]]||(i[s[1]]=[],i[s[1]])};if(r+t.length>=o.length)s?a()[s[3]]=n:i[t]=n;else if(s){var l=a();i=l[s[3]]||(l[s[3]]={},l[s[3]])}else i=i[t]||(i[t]={},i[t]);return""}),t}},t.functionChain=function(t,e,n){for(var i=0;i-1&&t.splice(n,1),-1!==n},t.remove=d,t.addWithFunction=function(t,e,n){-1===u(t,n)&&t.push(e)},t.addToList=h,t.suggest=function(t,e,n){return-1===t.indexOf(e)&&(n?t.unshift(e):t.push(e),!0)},t.extend=function(t,e,i){var r;e=n(e)?e:[e];var o=function(e){for(var n=e.__proto__;null!=n;)if(null!=n.prototype){for(var i in n.prototype)n.prototype.hasOwnProperty(i)&&!t.prototype.hasOwnProperty(i)&&(t.prototype[i]=n.prototype[i]);n=n.prototype.__proto__}else n=null};for(r=0;r2)for(r=2;r0)for(var t=0;t0){var s=Array.prototype.slice.call(arguments,1);try{for(var a=0,l=i.length;a0?-1!==t.indexOf(e):!n)};this.getConnections=function(t,e){t?t.constructor===String&&(t={scope:t}):t={};for(var n=t.scope||r.getDefaultScope(),i=V(n,!0),o=V(t.source),s=V(t.target),a=!e&&i.length>1?{}:[],l=function(t,n){if(!e&&i.length>1){var r=a[t];null==r&&(r=a[t]=[]),r.push(n)}else a.push(n)},c=0,u=y.length;c0&&!m.isSource,v=h&&r.length>0&&!m.isTarget;if(g||v)continue t;s.push(m)}}}return Z(s)},this.getAllConnections=function(){return y},this.getDefaultScope=function(){return E},this.getEndpoint=j,this.getEndpoints=function(t){return x[h(t).id]||[]},this.getDefaultEndpointType=function(){return p.Endpoint},this.getDefaultConnectionType=function(){return p.Connection},this.getId=H,this.draw=A,this.info=h,this.appendElement=I;var Q=!1;this.isHoverSuspended=function(){return Q},this.setHoverSuspended=function(t){Q=t},this.hide=function(t,e){return z(t,"none",e),r},this.idstamp=M;var tt=function(t){if(!m&&t){var e=r.getElement(t);e.offsetParent&&r.setContainer(e.offsetParent)}},et=r.manage=function(t,e,n){return w[t]||(w[t]={el:e,endpoints:[],connections:[]},w[t].info=nt({elId:t,timestamp:L}),r.addClass(e,"jtk-managed"),n||r.fire("manageElement",{id:t,info:w[t].info,el:e})),w[t]},nt=(r.unmanage=function(t){w[t]&&(r.removeClass(w[t].el,"jtk-managed"),delete w[t],r.fire("unmanageElement",t))},function(t){var e,n=t.timestamp,i=t.recalc,o=t.offset,s=t.elId;return D&&!n&&(n=L),!i&&n&&n===k[s]?{o:t.offset||C[s],s:S[s]}:(i||!o&&null==C[s]?null!=(e=w[s]?w[s].el:null)&&(S[s]=r.getSize(e),C[s]=r.getOffset(e),k[s]=n):(C[s]=o||C[s],null==S[s]&&null!=(e=w[s].el)&&(S[s]=r.getSize(e)),k[s]=n),C[s]&&!C[s].right&&(C[s].right=C[s].left+S[s][0],C[s].bottom=C[s].top+S[s][1],C[s].width=S[s][0],C[s].height=S[s][1],C[s].centerx=C[s].left+C[s].width/2,C[s].centery=C[s].top+C[s].height/2),{o:C[s],s:S[s]})});this.updateOffset=nt,this.init=function(){b||(r.Defaults.Container&&r.setContainer(r.Defaults.Container),r.anchorManager=new t.jsPlumb.AnchorManager({jsPlumbInstance:r}),b=!0,r.fire("ready",r))}.bind(this),this.log=v,this.jsPlumbUIComponent=c,this.makeAnchor=function(){var e,i=function(e,n){if(t.jsPlumb.Anchors[e])return new t.jsPlumb.Anchors[e](n);if(!r.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+e+"'"}};if(0===arguments.length)return null;var o=arguments[0],s=arguments[1],a=(arguments[2],null);if(o.compute&&o.getOrientation)return o;if("string"==typeof o)a=i(arguments[0],{elementId:s,jsPlumbInstance:r});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])?(e=t.jsPlumb.extend({elementId:s,jsPlumbInstance:r},o[1]),a=i(o[0],e)):(e=t.jsPlumb.extend({elementId:s,jsPlumbInstance:r,anchors:o[0]},o[1]),a=new t.jsPlumb.DynamicAnchor(e)):a=new p.DynamicAnchor({anchors:o,selector:null,elementId:s,jsPlumbInstance:r});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:s,jsPlumbInstance:r,cssClass:7===o.length?o[6]:null};(a=new t.jsPlumb.Anchor(l)).clone=function(){return new t.jsPlumb.Anchor(l)}}return a.id||(a.id="anchor_"+M()),a},this.makeAnchors=function(e,i,o){for(var s=[],a=0,l=e.length;a0&&t>=e.def.maxConnections},element:e.el,elementId:e.id,isSource:s,isTarget:a,addClass:function(t){r.addClass(e.el,t)},removeClass:function(t){r.removeClass(e.el,t)},onDrop:function(t){t.endpoints[0].anchor.unlock()},isDropAllowed:function(){return l.isDropAllowed.apply(l,arguments)},isRedrop:function(t){return null!=t.suspendedElement&&null!=t.suspendedEndpoint&&t.suspendedEndpoint.element===e.el},getEndpoint:function(n){var o=e.def.endpoint;if(null==o||null==o._jsPlumb){var s=r.deriveEndpointAndAnchorSpec(n.getType().join(" "),!0),a=s.endpoints?t.jsPlumb.extend(i,{endpoint:e.def.def.endpoint||s.endpoints[1]}):i;s.anchors&&(a=t.jsPlumb.extend(a,{anchor:e.def.def.anchor||s.anchors[1]})),(o=r.addEndpoint(e.el,a))._mtNew=!0}if(i.uniqueEndpoint&&(e.def.endpoint=o),o.setDeleteOnEmpty(!0),n.isDetachable()&&o.initDraggable(),null!=o.anchor.positionFinder){var l=r.getUIPosition(arguments,r.getZoom()),c=r.getOffset(e.el),u=r.getSize(e.el),d=null==l?[0,0]:o.anchor.positionFinder(l,c,u,o.anchor.constructorParams);o.anchor.x=d[0],o.anchor.y=d[1]}return o},maybeCleanup:function(t){t._mtNew&&0===t.connections.length?r.deleteObject({endpoint:t}):delete t._mtNew}}),d=t.jsPlumb.dragEvents.drop;return o.scope=o.scope||i.scope||r.Defaults.Scope,o[d]=n.wrap(o[d],u,!0),o.rank=i.rank||0,a&&(o[t.jsPlumb.dragEvents.over]=function(){return!0}),!1===i.allowLoopback&&(o.canDrop=function(t){return t.getDragElement()._jsPlumbRelatedElement!==e.el}),r.initDroppable(e.el,o,"internal"),u};this.makeTarget=function(e,n,i){var o=t.jsPlumb.extend({_jsPlumb:this},i);t.jsPlumb.extend(o,n);for(var s=o.maxConnections||-1,a=function(e){var n=h(e),i=n.id,a=t.jsPlumb.extend({},o.dropOptions||{}),l=o.connectionType||"default";this.targetEndpointDefinitions[i]=this.targetEndpointDefinitions[i]||{},tt(i),n.el._isJsPlumbGroup&&null==a.rank&&(a.rank=-1);var c={def:t.jsPlumb.extend({},o),uniqueEndpoint:o.uniqueEndpoint,maxConnections:s,enabled:!0};o.createEndpoint&&(c.uniqueEndpoint=!0,c.endpoint=r.addEndpoint(e,c.def),c.endpoint.setDeleteOnEmpty(!1)),n.def=c,this.targetEndpointDefinitions[i][l]=c,it(n,o,a,!0===o.isSource,!0),n.el._katavorioDrop[n.el._katavorioDrop.length-1].targetDef=c}.bind(this),l=e.length&&e.constructor!==String?e:[e],c=0,u=l.length;c=0&&p>=h.maxConnections)return d&&d({element:i.el,maxConnections:c},e),!1;var f=t.jsPlumb.getPositionOnElement(e,l,u),g={};t.jsPlumb.extend(g,s),g.isTemporarySource=!0,g.anchor=[f[0],f[1],0,0],g.dragOptions=m,h.def.scope&&(g.scope=h.def.scope),b=this.addEndpoint(o,g),y=!0,b.setDeleteOnEmpty(!0),h.uniqueEndpoint&&(h.endpoint?b.finalEndpoint=h.endpoint:(h.endpoint=b,b.setDeleteOnEmpty(!1)));var v=function(){r.off(b.canvas,"mouseup",v),r.off(i.el,"mouseup",v),y&&(y=!1,r.deleteEndpoint(b))};r.on(b.canvas,"mouseup",v),r.on(i.el,"mouseup",v);var x={};if(h.def.extract)for(var _ in h.def.extract){var w=(e.srcElement||e.target).getAttribute(_);w&&(x[h.def.extract[_]]=w)}r.trigger(b.canvas,"mousedown",e,x),n.consume(e)}}}.bind(this);this.on(i.el,"mousedown",x),h.trigger=x,s.filter&&(n.isString(s.filter)||n.isFunction(s.filter))&&r.setDragFilter(i.el,s.filter);var _=t.jsPlumb.extend({},s.dropOptions||{});it(i,s,_,!0,!0===s.isTarget)}.bind(this),f=e.length&&e.constructor!==String?e:[e],m=0,g=f.length;m0;)i(r.el.childNodes[0]);e||ct(r,n)}};return r.batch(function(){i(t,!0)},!1===e),r},this.reset=function(t){r.silently(function(){Q=!1,r.removeAllGroups(),r.removeGroupManager(),r.deleteEveryEndpoint(),t||r.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},y.length=0,this.doReset&&this.doReset()}.bind(this))};var ut=function(t){t.canvas&&t.canvas.parentNode&&t.canvas.parentNode.removeChild(t.canvas),t.cleanup(),t.destroy()};this.clear=function(){r.select().each(ut),r.selectEndpoints().each(ut),x={},_={}},this.setDefaultScope=function(t){return E=t,r},this.deriveEndpointAndAnchorSpec=function(t,e){for(var n=((e?"":"default ")+t).split(/[\s]/),i=null,o=null,s=null,a=null,l=0;l0)for(var e=0;e0?"add":"remove")+"Class"](r.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](r.endpointFullClass)},this.detachFromConnection=function(t,e,n){(e=null==e?this.connections.indexOf(t):e)>=0&&(this.connections.splice(e,1),this[(this.connections.length>0?"add":"remove")+"Class"](r.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](r.endpointFullClass)),!n&&a&&0===this.connections.length&&r.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:!0!==n})},this.deleteEveryConnection=function(t){for(var e=this.connections.length,n=0;n0){var u=function(t,e){var n=0;if(null!=e)for(var i=0;i0&&(c.connection=this.connections[0]);s=this.anchor.compute(c)}for(var g in this.endpoint.compute(s,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,a||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=e,this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(g)){var v=this._jsPlumb.overlays[g];v.isVisible()&&(this._jsPlumb.overlayPlacements[g]=v.draw(this.endpoint,this._jsPlumb.paintStyleInUse),v.paint(this._jsPlumb.overlayPlacements[g]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var u=!1;this.initDraggable=function(){if(!u&&t.isDragSupported(this.element)){var n,a={id:null,element:null},l=null,c=!1,d=null,h=function(t,e,n){var i=!1;return{drag:function(){if(i)return i=!1,!0;if(e.element){var r=n.getUIPosition(arguments,n.getZoom());null!=r&&n.setPosition(e.element,r),n.repaint(e.element,r),t.paint({anchorPoint:t.anchor.getCurrentLocation({element:t})})}},stopDrag:function(){i=!0}}}(this,a,r),p=i.dragOptions||{},f=t.dragEvents.start,m=t.dragEvents.stop,g=t.dragEvents.drag,v=t.dragEvents.beforeStart,b=function(e){l=this.connectorSelector();var u=!0;this.isEnabled()||(u=!1),null!=l||this.isSource||this.isTemporarySource||(u=!1),!this.isSource||!this.isFull()||null!=l&&this.dragAllowedWhenFull||(u=!1),null==l||l.isDetachable(this)||(this.isFull()?u=!1:l=null);var p=r.checkCondition(null==l?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:l});if(!1===p?u=!1:"object"==typeof p?t.extend(p,n||{}):p=n||{},!1===u)return r.stopDrag&&r.stopDrag(this.canvas),h.stopDrag(),!1;for(var f=0;f0&&!1!==this.connectionsDetachable}.bind(this),r.initDraggable(this.canvas,p,"internal"),this.canvas._jsPlumbRelatedElement=this.element,u=!0}};var d=i.endpoint||this._jsPlumb.instance.Defaults.Endpoint||t.Defaults.Endpoint;this.setEndpoint(d,!0);var h=i.anchor?i.anchor:i.anchors?i.anchors:r.Defaults.Anchor||"Top";this.setAnchor(h,!0);var p=["default",i.type||""].join(" ");this.addType(p,i.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var f=function(n,o,s,a){if(t.isDropSupported(this.element)){var l=i.dropOptions||r.Defaults.DropOptions||t.Defaults.DropOptions;(l=t.extend({},l)).scope=l.scope||this.scope;var c=t.dragEvents.drop,u=t.dragEvents.over,d=t.dragEvents.out,h=this,p=r.EndpointDropHandler({getEndpoint:function(){return h},jsPlumb:r,enabled:function(){return null==s||s.isEnabled()},isFull:function(){return s.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(t){h.addClass(t)},removeClass:function(t){h.removeClass(t)},isDropAllowed:function(){return h.isDropAllowed.apply(h,arguments)},reference:a,isRedrop:function(t,e){return t.suspendedEndpoint&&e.reference&&t.suspendedEndpoint.id===e.reference.id}});l[c]=e.wrap(l[c],p,!0),l[u]=e.wrap(l[u],function(){var e=t.getDragObject(arguments),n=r.getAttribute(t.getElement(e),"dragId"),i=r.getFloatingConnectionFor(n);if(null!=i){var o=r.getFloatingAnchorIndex(i);if(this.isTarget&&0!==o||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id){var s=r.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[o],targetEndpoint:this,connection:i});this[(s?"add":"remove")+"Class"](r.endpointDropAllowedClass),this[(s?"remove":"add")+"Class"](r.endpointDropForbiddenClass),i.endpoints[o].anchor.over(this.anchor,this)}}}.bind(this)),l[d]=e.wrap(l[d],function(){var e=t.getDragObject(arguments),n=null==e?null:r.getAttribute(t.getElement(e),"dragId"),i=n?r.getFloatingConnectionFor(n):null;if(null!=i){var o=r.getFloatingAnchorIndex(i);(this.isTarget&&0!==o||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id)&&(this.removeClass(r.endpointDropAllowedClass),this.removeClass(r.endpointDropForbiddenClass),i.endpoints[o].anchor.out())}}.bind(this)),r.initDroppable(n,l,"internal",o)}}.bind(this);return this.anchor.isFloating||f(this.canvas,!(i._transient||this.anchor.isFloating),this,i.reference),this},e.extend(t.Endpoint,t.OverlayCapableJsPlumbUIComponent,{setVisible:function(t,e,n){if(this._jsPlumb.visible=t,this.canvas&&(this.canvas.style.display=t?"block":"none"),this[t?"showOverlays":"hideOverlays"](),!e)for(var i=0;in[0][0])?-1:1}},h={top:function(t,e){return t[0]>e[0]?1:-1},right:d(!0),bottom:d(!0),left:function(t,e){return(t[0][0]<0?-Math.PI-t[0][0]:Math.PI-t[0][0])>(e[0][0]<0?-Math.PI-e[0][0]:Math.PI-e[0][0])?1:-1}},p=function(t,e){var n=c.getCachedData(t),i=n.s,s=n.o,a=function(e,n,i,s,a,l,c){if(s.length>0)for(var u=function(t,e,n,i,r,o,s){for(var a=[],l=e[r?0:1]/(i.length+1),c=0;c-1&&(s[i].splice(l,1),t.addToList(s,r,[o,o.endpoints[0],o.endpoints[0].anchor.constructor===e.DynamicAnchor])),o.updateConnectedClass()},this.sourceChanged=function(n,i,r,o){if(n!==i){r.sourceId=i,r.source=o,t.removeWithFunction(s[n],function(t){return t[0].id===r.id});var a=t.findWithFunction(s[r.targetId],function(t){return t[0].id===r.id});a>-1&&(s[r.targetId][a][0]=r,s[r.targetId][a][1]=r.endpoints[0],s[r.targetId][a][2]=r.endpoints[0].anchor.constructor===e.DynamicAnchor),t.addToList(s,i,[r,r.endpoints[1],r.endpoints[1].anchor.constructor===e.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()}},this.rehomeEndpoint=function(t,e,n){var r=i[e]||[],o=c.getId(n);if(o!==e){var s=r.indexOf(t);if(s>-1){var l=r.splice(s,1)[0];a.add(l,o)}}for(var u=0;ue.dist?1:0});for(var p=c[0].source,f=c[0].target,m=0;m0?this.anchors[0]:null,a=s,l=this,c=function(t,e,n,i,r){var o=i[0]+t.x*r[0],s=i[1]+t.y*r[1],a=i[0]+r[0]/2,l=i[1]+r[1]/2;return Math.sqrt(Math.pow(e-o,2)+Math.pow(n-s,2))+Math.sqrt(Math.pow(a-o,2)+Math.pow(l-s,2))},u=t.selector||function(t,e,n,i,r){for(var o=n[0]+i[0]/2,s=n[1]+i[1]/2,a=-1,l=1/0,u=0;u0?t:n+t:t*n;return i.pointOnLine({x:s,y:l},{x:a,y:c},r)}return{x:a,y:c}}return{x:s,y:l}},this.gradientAtPoint=function(t){return r},this.pointAlongPathFrom=function(t,e,n){var r=this.pointOnPath(t,n),o=e<=0?{x:s,y:l}:{x:a,y:c};return e<=0&&Math.abs(e)>1&&(e*=-1),i.pointOnLine(r,o,e)};var u=function(t,e,n){return n>=Math.min(t,e)&&n<=Math.max(t,e)},d=function(t,e,n){return Math.abs(n-t)e?e<=t&&t<=n:e>=t&&t>=n};this.lineIntersection=function(t,e,n,o){var u=Math.abs(i.gradient({x:t,y:e},{x:n,y:o})),d=Math.abs(r),p=d===1/0?s:l-d*s,f=[],m=u===1/0?t:e-u*t;if(u!==d)if(u===1/0&&0===d)h(t,s,a)&&h(l,e,o)&&(f=[t,l]);else if(0===u&&d===1/0)h(e,l,c)&&h(s,t,n)&&(f=[s,e]);else{var g,v;u===1/0?h(g=t,s,a)&&h(v=d*t+p,e,o)&&(f=[g,v]):0===u?h(v=e,l,c)&&h(g=(e-p)/d,t,n)&&(f=[g,v]):(v=d*(g=(m-p)/(d-u))+p,h(g,s,a)&&h(v,l,c)&&(f=[g,v]))}return f},this.boxIntersection=function(t,e,n,i){var r=[];return r.push.apply(r,this.lineIntersection(t,e,t+n,e)),r.push.apply(r,this.lineIntersection(t+n,e,t+n,e+i)),r.push.apply(r,this.lineIntersection(t+n,e+i,t,e+i)),r.push.apply(r,this.lineIntersection(t,e+i,t,e)),r},this.boundingBoxIntersection=function(t){return this.boxIntersection(t.x,t.y,t.w,t.h)}},Arc:function(t){e.Segments.AbstractSegment.apply(this,arguments);var n=function(e,n){return i.theta([t.cx,t.cy],[e,n])},r=2*Math.PI;this.radius=t.r,this.anticlockwise=t.ac,this.type="Arc",t.startAngle&&t.endAngle?(this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.x1=t.cx+this.radius*Math.cos(t.startAngle),this.y1=t.cy+this.radius*Math.sin(t.startAngle),this.x2=t.cx+this.radius*Math.cos(t.endAngle),this.y2=t.cy+this.radius*Math.sin(t.endAngle)):(this.startAngle=n(t.x1,t.y1),this.endAngle=n(t.x2,t.y2),this.x1=t.x1,this.y1=t.y1,this.x2=t.x2,this.y2=t.y2),this.endAngle<0&&(this.endAngle+=r),this.startAngle<0&&(this.startAngle+=r);var o=this.endAngle0?0:1,n)),n};this.pointOnPath=function(e,n){return e=i(this.curve,e,n),t.jsBezier.pointOnCurve(this.curve,e)},this.gradientAtPoint=function(e,n){return e=i(this.curve,e,n),t.jsBezier.gradientAtPoint(this.curve,e)},this.pointAlongPathFrom=function(e,n,r){return e=i(this.curve,e,r),t.jsBezier.pointAlongCurveFrom(this.curve,e,n)},this.getLength=function(){return t.jsBezier.getLength(this.curve)},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(e,n){var i=t.jsBezier.nearestPointOnCurve({x:e,y:n},this.curve);return{d:Math.sqrt(Math.pow(i.point.x-e,2)+Math.pow(i.point.y-n,2)),x:i.point.x,y:i.point.y,l:i.location,s:this}},this.lineIntersection=function(e,n,i,r){return t.jsBezier.lineIntersection(e,n,i,r,this.curve)}}},e.SegmentRenderer={getPath:function(t,e){return{Straight:function(e){var n=t.getCoordinates();return(e?"M "+n.x1+" "+n.y1+" ":"")+"L "+n.x2+" "+n.y2},Bezier:function(e){var n=t.params;return(e?"M "+n.x2+" "+n.y2+" ":"")+"C "+n.cp2x+" "+n.cp2y+" "+n.cp1x+" "+n.cp1y+" "+n.x1+" "+n.y1},Arc:function(e){var n=t.params,i=t.sweep>Math.PI?1:0,r=t.anticlockwise?0:1;return(e?"M"+t.x1+" "+t.y1+" ":"")+"A "+t.radius+" "+n.r+" 0 "+i+","+r+" "+t.x2+" "+t.y2}}[t.type](e)}};var r=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}},this.resetBounds()};e.Connectors.AbstractConnector=function(t){r.apply(this,arguments);var o=[],s=0,a=[],l=[],c=t.stub||0,u=n.isArray(c)?c[0]:c,d=n.isArray(c)?c[1]:c,h=t.gap||0,p=n.isArray(h)?h[0]:h,f=n.isArray(h)?h[1]:h,m=null,g=null;this.getPathData=function(){for(var t="",n=0;n0?t/s:(s+t)/s);for(var n=a.length-1,i=1,r=0;r=t){n=r,i=1===t?1:0===t?0:(t-a[r][0])/l[r];break}return{segment:o[n],proportion:i,index:n}};this.setSegments=function(t){m=[],s=0;for(var e=0;em?0:1,v=[1,0][g];a=[],(s=[])[g]=t.sourcePos[g]>t.targetPos[g]?-1:1,a[g]=t.sourcePos[g]>t.targetPos[g]?1:-1,s[v]=0,a[v]=0}var b=n?h+p*s[0]:p*s[0],y=r?m+p*s[1]:p*s[1],x=n?f*a[0]:h+f*a[0],_=r?f*a[1]:m+f*a[1],w=s[0]*a[0]+s[1]*a[1],C={sx:b,sy:y,tx:x,ty:_,lw:o,xSpan:Math.abs(x-b),ySpan:Math.abs(_-y),mx:(b+x)/2,my:(y+_)/2,so:s,to:a,x:l,y:c,w:h,h:m,segment:e,startStubX:b+s[0]*u,startStubY:y+s[1]*u,endStubX:x+a[0]*d,endStubY:_+a[1]*d,isXGreaterThanStubTimes2:Math.abs(b-x)>u+d,isYGreaterThanStubTimes2:Math.abs(y-_)>u+d,opposite:-1===w,perpendicular:0===w,orthogonal:1===w,sourceAxis:0===s[0]?"y":"x",points:[l,c,h,m,b,y,x,_],stubs:[u,d]};return C.anchorOrientation=C.opposite?"opposite":C.orthogonal?"orthogonal":"perpendicular",C};this.getSegments=function(){return o},this.updateBounds=function(t){var e=t.getBounds();this.bounds.minX=Math.min(this.bounds.minX,e.minX),this.bounds.maxX=Math.max(this.bounds.maxX,e.maxX),this.bounds.minY=Math.min(this.bounds.minY,e.minY),this.bounds.maxY=Math.max(this.bounds.maxY,e.maxY)};return this.pointOnPath=function(t,e){var n=v(t,e);return n.segment&&n.segment.pointOnPath(n.proportion,!1)||[0,0]},this.gradientAtPoint=function(t,e){var n=v(t,e);return n.segment&&n.segment.gradientAtPoint(n.proportion,!1)||0},this.pointAlongPathFrom=function(t,e,n){var i=v(t,n);return i.segment&&i.segment.pointAlongPathFrom(i.proportion,e,!1)||[0,0]},this.compute=function(t){g=b.call(this,t),s=o.length=a.length=l.length=0,this._compute(g,t),this.x=g.points[0],this.y=g.points[1],this.w=g.points[2],this.h=g.points[3],this.segment=g.segment,function(){for(var t=0,e=0;e1||this.loc<0){var d=parseInt(this.loc,10),h=this.loc<0?1:0;r=t.pointAlongPathFrom(h,d,!1),s=t.pointAlongPathFrom(h,d-o*this.length/2,!1),c=i.pointOnLine(r,s,this.length)}else if(1===this.loc){if(r=t.pointOnPath(this.loc),s=t.pointAlongPathFrom(this.loc,-this.length),c=i.pointOnLine(r,s,this.length),-1===o){var p=c;c=r,r=p}}else if(0===this.loc){if(c=t.pointOnPath(this.loc),s=t.pointAlongPathFrom(this.loc,this.length),r=i.pointOnLine(c,s,this.length),-1===o){var f=c;c=r,r=f}}else r=t.pointAlongPathFrom(this.loc,o*this.length/2),s=t.pointOnPath(this.loc),c=i.pointOnLine(r,s,this.length);var m={hxy:r,tail:u=i.perpendicularLineTo(r,c,this.width),cxy:i.pointOnLine(r,c,l*this.length)},g=a.stroke||e.stroke,v=a.fill||e.stroke;return{component:t,d:m,"stroke-width":a.strokeWidth||e.strokeWidth,stroke:g,fill:v,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:t,minX:0,maxX:0,minY:0,maxY:0}}},n.extend(e.Overlays.Arrow,s,{updateFrom:function(t){this.length=t.length||this.length,this.width=t.width||this.width,this.direction=null!=t.direction?t.direction:this.direction,this.foldback=t.foldback||this.foldback},cleanup:function(){this.path&&this.canvas&&this.canvas.removeChild(this.path)}}),e.Overlays.PlainArrow=function(t){t=t||{};var n=e.extend(t,{foldback:1});e.Overlays.Arrow.call(this,n),this.type="PlainArrow"},n.extend(e.Overlays.PlainArrow,e.Overlays.Arrow),e.Overlays.Diamond=function(t){var n=(t=t||{}).length||40,i=e.extend(t,{length:n/2,foldback:2});e.Overlays.Arrow.call(this,i),this.type="Diamond"},n.extend(e.Overlays.Diamond,e.Overlays.Arrow);var a=function(t,e){return(null==t._jsPlumb.cachedDimensions||e)&&(t._jsPlumb.cachedDimensions=t.getDimensions()),t._jsPlumb.cachedDimensions},l=function(t){e.jsPlumbUIComponent.apply(this,arguments),s.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=t.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=t.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=t.create,this._jsPlumb.initiallyInvisible=!1===t.visible,this.getElement=function(){if(null==this._jsPlumb.div){var n=this._jsPlumb.div=e.getElement(this._jsPlumb.create(this._jsPlumb.component));n.style.position="absolute",jsPlumb.addClass(n,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:t.cssClass?t.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===t.visible&&(n.style.display="none")}return this._jsPlumb.div},this.draw=function(t,e,i){var r=a(this);if(null!=r&&2===r.length){var o={x:0,y:0};if(i)o={x:i[0],y:i[1]};else if(t.pointOnPath){var s=this.loc,l=!1;(n.isString(this.loc)||this.loc<0||this.loc>1)&&(s=parseInt(this.loc,10),l=!0),o=t.pointOnPath(s,l)}else{var c=this.loc.constructor===Array?this.loc:this.endpointLoc;o={x:c[0]*t.w,y:c[1]*t.h}}var u=o.x-r[0]/2,d=o.y-r[1]/2;return{component:t,d:{minx:u,miny:d,td:r,cxy:o},minX:u,maxX:u+r[0],minY:d,maxY:d+r[1]}}return{minX:0,maxX:0,minY:0,maxY:0}}};n.extend(l,[e.jsPlumbUIComponent,s],{getDimensions:function(){return[1,1]},setVisible:function(t){this._jsPlumb.div&&(this._jsPlumb.div.style.display=t?"block":"none",t&&this._jsPlumb.initiallyInvisible&&(a(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(t){t?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(t,e){null!=this._jsPlumb.div&&t.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var t=a(this);return Math.max(t[0],t[1])},paint:function(t,e){this._jsPlumb.initialised||(this.getElement(),t.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=t.component.x+t.d.minx+"px",this._jsPlumb.div.style.top=t.component.y+t.d.miny+"px"}}),e.Overlays.Custom=function(t){this.type="Custom",l.apply(this,arguments)},n.extend(e.Overlays.Custom,l),e.Overlays.GuideLines=function(){var t=this;t.length=50,t.strokeWidth=5,this.type="GuideLines",s.apply(this,arguments),e.jsPlumbUIComponent.apply(this,arguments),this.draw=function(e,n){var r=e.pointAlongPathFrom(t.loc,t.length/2),o=e.pointOnPath(t.loc),s=i.pointOnLine(r,o,t.length),a=i.perpendicularLineTo(r,s,40),l=i.perpendicularLineTo(s,r,20);return{connector:e,head:r,tail:s,headLine:l,tailLine:a,minX:Math.min(r.x,s.x,l[0].x,l[1].x),minY:Math.min(r.y,s.y,l[0].y,l[1].y),maxX:Math.max(r.x,s.x,l[0].x,l[1].x),maxY:Math.max(r.y,s.y,l[0].y,l[1].y)}}},e.Overlays.Label=function(t){this.labelStyle=t.labelStyle;this.cssClass=null!=this.labelStyle?this.labelStyle.cssClass:null;var n=e.extend({create:function(){return e.createElement("div")}},t);if(e.Overlays.Custom.call(this,n),this.type="Label",this.label=t.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(e.Overlays.Label,e.Overlays.Custom,{cleanup:function(t){t&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(t){this.label=t,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 t=this.label(this);this.getElement().innerHTML=t.replace(/\r\n/g,"
")}else null==this.labelText&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"
"))},updateFrom:function(t){null!=t.label&&this.setLabel(t.label)}})}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumbUtil,n=t.jsPlumbInstance,i="stop",r="revert",o="_jsPlumbGroup",s="show",a="hide",l=function(t){var n={},i={},r={},l=this;function c(e,n){for(var i=e.getMembers(),r=0;r0?t[0]:l},u=!0===s.ghost,d=u||!0===s.constrain,h=!1!==s.revert,p=!0===s.orphan,f=!0===s.prune,m=!0===s.dropOverride,g=!1!==s.proxied,v=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(t,e){return s.anchor||"Continuous"},this.getEndpoint=function(t,e){return s.endpoint||["Dot",{radius:10}]},this.collapsed=!1,!1!==s.draggable){var b={stop:function(t){n.fire("groupDragStop",jsPlumb.extend(t,{group:a}))},scope:"_jsPlumbGroupDrag"};s.dragOptions&&t.jsPlumb.extend(b,s.dragOptions),n.draggable(s.el,b)}!1!==s.droppable&&n.droppable(s.el,{drop:function(t){var e=t.drag.el;if(!e._isJsPlumbGroup){var i=e._jsPlumbGroup;if(i!==a){if(null!=i&&i.overrideDrop(e,a))return;n.getGroupManager().addToGroup(a,e,!1)}}}});var y=function(t,e){for(var n=null==t.nodeType?t:[t],i=0;i0&&s0&&ln.endStubX&&n.tx>n.startStubX||n.sx>n.endStubX&&n.tx>n.sx)||-1===n.so[i]&&(n.startStubXn.endStubY&&n.ty>n.startStubY||n.sy>n.endStubY&&n.ty>n.sy)||-1===n.so[i]&&(n.startStubYl[e][0],f=i[e][d][0],m=i[e][d][1],g={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]]]}[e][d][h];return n.segment===g[3]||n.segment===g[2]&&p?r[e]:n.segment===g[2]&&m=f||n.segment===g[1]&&!p?a[e]:n.segment===g[0]||n.segment===g[1]&&p?s[e]:void 0},orthogonal:function(e,n,i,r,o){var s=t,a={x:-1===s.so[0]?Math.min(n,r):Math.max(n,r),y:-1===s.so[1]?Math.min(n,r):Math.max(n,r)}[e];return{x:[[a,i],[a,o],[r,o]],y:[[i,a],[o,a],[o,r]]}[e]},opposite:function(n,r,o,s){var a=t,l={x:"y",y:"x"}[n],c={x:"height",y:"width"}[n],u=a["is"+n.toUpperCase()+"GreaterThanStubTimes2"];if(e.sourceEndpoint.elementId===e.targetEndpoint.elementId){var d=o+(1-e.sourceEndpoint.anchor[l])*e.sourceInfo[c]+i.maxStub;return{x:[[r,d],[s,d]],y:[[d,r],[d,s]]}[n]}return!u||1===a.so[m]&&r>s||-1===a.so[m]&&rs?{x:[[_,a.sy],[_,a.ty]],y:[[a.sx,w],[a.tx,w]]}[n]:void 0}}[t.anchorOrientation](t.sourceAxis,v,b,y,x);if(k)for(var P=0;P0&&a[4]!==r[4]){var d=Math.min(h(a),h(r)),f=Math.min(l,d/2);a[2]-=o[0]*f,a[3]-=o[1]*f,r[0]+=s[0]*f,r[1]+=s[1]*f;var m=o[1]===s[0]&&1===s[0]||o[1]===s[0]&&0===s[0]&&o[0]!==s[1]||o[1]===s[0]&&-1===s[0],g=(r[1]>a[3]?1:-1)==(r[0]>a[2]?1:-1),v=g&&m||!g&&!m?r[0]:a[2],b=g&&m||!g&&!m?a[3]:r[1];i.addSegment(t,"Straight",{x1:a[0],y1:a[1],x2:a[2],y2:a[3]}),i.addSegment(t,"Arc",{r:f,x1:a[2],y1:a[3],x2:r[0],y2:r[1],cx:v,cy:b,ac:m})}else{var y=a[2]===a[0]?0:a[2]>a[0]?n.lw/2:-n.lw/2,x=a[3]===a[1]?0:a[3]>a[1]?n.lw/2:-n.lw/2;i.addSegment(t,"Straight",{x1:a[0]-y,y1:a[1]-x,x2:a[2]+y,y2:a[3]+x})}a=r}null!=r&&i.addSegment(t,"Straight",{x1:r[0],y1:r[1],x2:r[2],y2:r[3]})}(this,n,t)}},e.extend(t.Connectors.Flowchart,t.Connectors.AbstractConnector)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil;t.Connectors.AbstractBezierConnector=function(e){var n,i=!1!==(e=e||{}).showLoopback,r=(e.curviness,e.margin||5),o=(e.proximityLimit,e.orientation&&"clockwise"===e.orientation),s=e.loopbackRadius||25;return this._compute=function(t,e){var a=e.sourcePos,l=e.targetPos,c=Math.abs(a[0]-l[0]),u=Math.abs(a[1]-l[1]);if(i&&e.sourceEndpoint.elementId===e.targetEndpoint.elementId){!0;var d=e.sourcePos[0],h=e.sourcePos[1]-r,p=d,f=h-s,m=p-s,g=f-s;c=2*s,u=2*s,t.points[0]=m,t.points[1]=g,t.points[2]=c,t.points[3]=u,n.addSegment(this,"Arc",{loopback:!0,x1:d-m+4,y1:h-g,startAngle:0,endAngle:2*Math.PI,r:s,ac:!o,x2:d-m-4,y2:h-g,cx:p-m,cy:f-g})}else!1,this._computeBezier(t,e,a,l,c,u)},n=t.Connectors.AbstractConnector.apply(this,arguments)},e.extend(t.Connectors.AbstractBezierConnector,t.Connectors.AbstractConnector);var n=function(e){e=e||{},this.type="Bezier";var n=t.Connectors.AbstractBezierConnector.apply(this,arguments),i=e.curviness||150;this.getCurviness=function(){return i},this._findControlPoint=function(t,e,n,r,o,s,a){var l=[];return s[0]!==a[0]||s[1]===a[1]?(0===a[0]?l.push(n[0]=x?3:4),S=Math.sqrt(Math.pow(p-d,2)+Math.pow(f-h,2));m=(n=function(t,e,n,i,r,o,s,a,l){return a<=l?[t,e]:1===n?i[3]<=0&&r[3]>=1?[t+(i[2]<.5?-1*o:o),e]:i[2]>=1&&r[2]<=0?[t,e+(i[3]<.5?-1*s:s)]:[t+-1*o,e+-1*s]:2===n?i[3]>=1&&r[3]<=0?[t+(i[2]<.5?-1*o:o),e]:i[2]>=1&&r[2]<=0?[t,e+(i[3]<.5?-1*s:s)]:[t+o,e+-1*s]:3===n?i[3]>=1&&r[3]<=0?[t+(i[2]<.5?-1*o:o),e]:i[2]<=0&&r[2]>=1?[t,e+(i[3]<.5?-1*s:s)]:[t+-1*o,e+-1*s]:4===n?i[3]<=0&&r[3]>=1?[t+(i[2]<.5?-1*o:o),e]:i[2]<=0&&r[2]>=1?[t,e+(i[3]<.5?-1*s:s)]:[t+o,e+-1*s]:void 0}(C,k,P,e.sourcePos,e.targetPos,r,r,S,s))[0],g=n[0],v=n[1],b=n[1],i.addSegment(this,"Bezier",{x1:p,y1:f,x2:d,y2:h,cp1x:m,cp1y:v,cp2x:g,cp2y:b})}};t.Connectors.StateMachine=n,e.extend(n,t.Connectors.AbstractBezierConnector)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil,n=function(e){this.type="Straight";var n=t.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(t,e){n.addSegment(this,"Straight",{x1:t.sx,y1:t.sy,x2:t.startStubX,y2:t.startStubY}),n.addSegment(this,"Straight",{x1:t.startStubX,y1:t.startStubY,x2:t.endStubX,y2:t.endStubY}),n.addSegment(this,"Straight",{x1:t.endStubX,y1:t.endStubY,x2:t.tx,y2:t.ty})}};t.Connectors.Straight=n,e.extend(n,t.Connectors.AbstractConnector)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil,n={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},i="http://www.w3.org/2000/svg",r=function(t,e){for(var n in e)t.setAttribute(n,""+e[n])},o=function(e,n){return(n=n||{}).version="1.1",n.xmlns=i,t.createElementNS(i,e,null,null,n)},s=function(t){return"position:absolute;left:"+t[0]+"px;top:"+t[1]+"px"},a=function(t){for(var e=t.querySelectorAll(" defs,linearGradient,radialGradient"),n=0;nn?t.insertBefore(e,t.childNodes[n]):t.appendChild(e)};e.svg={node:o,attr:r,pos:s};var u=function(n){var i=n.pointerEventsSpec||"all",a={};t.jsPlumbUIComponent.apply(this,n.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var l=n.cssClass+" "+(n.originalArgs[0].cssClass||""),c={style:"",width:0,height:0,"pointer-events":i,position:"absolute"};this.svg=o("svg",c),n.useDivWrapper?(this.canvas=t.createElement("div",{position:"absolute"}),e.sizeElement(this.canvas,0,0,1,1),this.canvas.className=l):(r(this.svg,{class:l}),this.canvas=this.svg),n._jsPlumb.appendElement(this.canvas,n.originalArgs[0].parent),n.useDivWrapper&&this.canvas.appendChild(this.svg);var u=[this.canvas];return this.getDisplayElements=function(){return u},this.appendDisplayElement=function(t){u.push(t)},this.paint=function(t,i,o){if(null!=t){var l,c=[this.x,this.y],u=[this.w,this.h];null!=o&&(o.xmin<0&&(c[0]+=o.xmin),o.ymin<0&&(c[1]+=o.ymin),u[0]=o.xmax+(o.xmin<0?-o.xmin:0),u[1]=o.ymax+(o.ymin<0?-o.ymin:0)),n.useDivWrapper?(e.sizeElement(this.canvas,c[0],c[1],u[0],u[1]),c[0]=0,c[1]=0,l=s([0,0])):l=s([c[0],c[1]]),a.paint.apply(this,arguments),r(this.svg,{style:l,width:u[0]||0,height:u[1]||0})}},{renderer:a}};e.extend(u,t.jsPlumbUIComponent,{cleanup:function(t){t||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.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(t){var e=t.getContainer();this.canvas&&null==this.canvas.parentNode&&e.appendChild(this.canvas),this.bgCanvas&&null==this.bgCanvas.parentNode&&e.appendChild(this.bgCanvas)},setVisible:function(t){this.canvas&&(this.canvas.style.display=t?"block":"none")}}),t.ConnectorRenderers.svg=function(e){var n=this;u.apply(this,[{cssClass:e._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:e._jsPlumb}]).renderer.paint=function(i,s,a){var u=n.getSegments(),d=[0,0];if(a.xmin<0&&(d[0]=-a.xmin),a.ymin<0&&(d[1]=-a.ymin),u.length>0){var h={d:n.getPathData(),transform:"translate("+d[0]+","+d[1]+")","pointer-events":e["pointer-events"]||"visibleStroke"},p=null;n.x,n.y,n.w,n.h;if(i.outlineStroke){var f=i.outlineWidth||1,m=i.strokeWidth+2*f;delete(p=t.extend({},i)).gradient,p.stroke=i.outlineStroke,p.strokeWidth=m,null==n.bgPath?(n.bgPath=o("path",h),t.addClass(n.bgPath,t.connectorOutlineClass),c(n.svg,n.bgPath,0)):r(n.bgPath,h),l(n.svg,n.bgPath,p,0,n)}null==n.path?(n.path=o("path",h),c(n.svg,n.path,i.outlineStroke?1:0)):r(n.path,h),l(n.svg,n.path,i,0,n)}}},e.extend(t.ConnectorRenderers.svg,u);var d=t.SvgEndpoint=function(e){u.apply(this,[{cssClass:e._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:e._jsPlumb}]).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),l(this.svg,this.node,n,(this.x,this.y,this.w,this.h),this),s(this.node,(this.x,this.y))}.bind(this)};e.extend(d,u),t.Endpoints.svg.Dot=function(){t.Endpoints.Dot.apply(this,arguments),d.apply(this,arguments),this.makeNode=function(t){return o("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(t){r(t,{cx:this.w/2,cy:this.h/2,r:this.radius})}},e.extend(t.Endpoints.svg.Dot,[t.Endpoints.Dot,d]),t.Endpoints.svg.Rectangle=function(){t.Endpoints.Rectangle.apply(this,arguments),d.apply(this,arguments),this.makeNode=function(t){return o("rect",{width:this.w,height:this.h})},this.updateNode=function(t){r(t,{width:this.w,height:this.h})}},e.extend(t.Endpoints.svg.Rectangle,[t.Endpoints.Rectangle,d]),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 h=function(e,n){e.apply(this,n),t.jsPlumbUIComponent.apply(this,n),this.isAppendedAtTopLevel=!1;this.path=null,this.paint=function(t,e){if(t.component.svg&&e){null==this.path&&(this.path=o("path",{"pointer-events":"all"}),t.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,t.component),this.canvas=t.component.svg);var s=n&&1===n.length&&n[0].cssClass||"",a=[0,0];e.xmin<0&&(a[0]=-e.xmin),e.ymin<0&&(a[1]=-e.ymin),r(this.path,{d:i(t.d),class:s,stroke:t.stroke?t.stroke:null,fill:t.fill?t.fill:null,transform:"translate("+a[0]+","+a[1]+")"})}};var i=function(t){return isNaN(t.cxy.x)||isNaN(t.cxy.y)?"":"M"+t.hxy.x+","+t.hxy.y+" L"+t.tail[0].x+","+t.tail[0].y+" L"+t.cxy.x+","+t.cxy.y+" L"+t.tail[1].x+","+t.tail[1].y+" L"+t.hxy.x+","+t.hxy.y};this.transfer=function(t){t.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),t.canvas.appendChild(this.path))}};e.extend(h,[t.jsPlumbUIComponent,t.Overlays.AbstractOverlay],{cleanup:function(t){null!=this.path&&(t?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(t,e){this.path&&e.canvas&&e.canvas.appendChild(this.path)},setVisible:function(t){null!=this.path&&(this.path.style.display=t?"block":"none")}}),t.Overlays.svg.Arrow=function(){h.apply(this,[t.Overlays.Arrow,arguments])},e.extend(t.Overlays.svg.Arrow,[t.Overlays.Arrow,h]),t.Overlays.svg.PlainArrow=function(){h.apply(this,[t.Overlays.PlainArrow,arguments])},e.extend(t.Overlays.svg.PlainArrow,[t.Overlays.PlainArrow,h]),t.Overlays.svg.Diamond=function(){h.apply(this,[t.Overlays.Diamond,arguments])},e.extend(t.Overlays.svg.Diamond,[t.Overlays.Diamond,h]),t.Overlays.svg.GuideLines=function(){var e,n,i=null,s=this;t.Overlays.GuideLines.apply(this,arguments),this.paint=function(t,l){null==i&&(i=o("path"),t.connector.svg.appendChild(i),s.attachListeners(i,t.connector),s.attachListeners(i,s),e=o("path"),t.connector.svg.appendChild(e),s.attachListeners(e,t.connector),s.attachListeners(e,s),n=o("path"),t.connector.svg.appendChild(n),s.attachListeners(n,t.connector),s.attachListeners(n,s));var c=[0,0];l.xmin<0&&(c[0]=-l.xmin),l.ymin<0&&(c[1]=-l.ymin),r(i,{d:a(t.head,t.tail),stroke:"red",fill:null,transform:"translate("+c[0]+","+c[1]+")"}),r(e,{d:a(t.tailLine[0],t.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+c[0]+","+c[1]+")"}),r(n,{d:a(t.headLine[0],t.headLine[1]),stroke:"green",fill:null,transform:"translate("+c[0]+","+c[1]+")"})};var a=function(t,e){return"M "+t.x+","+t.y+" L"+e.x+","+e.y}},e.extend(t.Overlays.svg.GuideLines,t.Overlays.GuideLines)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=t.Katavorio,r=t.Biltong,o=function(t,n){var o="_katavorio_"+(n=n||"main"),s=t[o],a=t.getEventManager();return s||((s=new i({bind:a.on,unbind:a.off,getSize:e.getSize,getConstrainingRectangle:function(t){return[t.parentNode.scrollWidth,t.parentNode.scrollHeight]},getPosition:function(e,n){var i=t.getOffset(e,n,e._katavorioDrag?e.offsetParent:null);return[i.left,i.top]},setPosition:function(t,e){t.style.left=e[0]+"px",t.style.top=e[1]+"px"},addClass:e.addClass,removeClass:e.removeClass,intersects:r.intersects,indexOf:function(t,e){return t.indexOf(e)},scope:t.getDefaultScope(),css:{noSelect:t.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"}})).setZoom(t.getZoom()),t[o]=s,t.bind("zoom",s.setZoom)),s},s=function(t,e){if(null==e)return[0,0];var n=d(e),i=u(n,0);return[i[t+"X"],i[t+"Y"]]},a=s.bind(this,"page"),l=s.bind(this,"screen"),c=s.bind(this,"client"),u=function(t,e){return t.item?t.item(e):t[e]},d=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},h=function(t,e,i){e=n.fastTrim(e),void 0!==t.className.baseVal?t.className.baseVal=e:t.className=e;try{var r=t.classList;if(null!=r){for(;r.length>0;)r.remove(r.item(0));for(var o=0;o0){a||(a=t.getOffset(s));var h=t.getOffset(u);i[l][d]={id:d,offset:{left:h.left-a.left,top:h.top-a.top}},o[d]=l}c(e.childNodes[n])}};c(s)},this.updateOffsets=function(e,n){if(null!=e){n=n||{};var r,s=jsPlumb.getElement(e),a=t.getId(s),l=i[a];if(l)for(var c in l)if(l.hasOwnProperty(c)){var u=jsPlumb.getElement(c),d=n[c]||t.getOffset(u);if(null==u.offsetParent&&null!=i[a][c])continue;r||(r=t.getOffset(s)),i[a][c]={id:c,offset:{left:d.left-r.left,top:d.top-r.top}},o[c]=a}}},this.endpointAdded=function(n,s){s=s||t.getId(n);var a=document.body,l=n.parentNode;for(r[s]=r[s]?r[s]+1:1;null!=l&&l!==a;){var c=t.getId(l,null,!0);if(c&&e[c]){var u=t.getOffset(l);if(null==i[c][s]){var d=t.getOffset(n);i[c][s]={id:s,offset:{left:d.left-u.left,top:d.top-u.top}},o[s]=c}break}l=l.parentNode}},this.endpointDeleted=function(t){if(r[t.elementId]&&(r[t.elementId]--,r[t.elementId]<=0))for(var e in i)i.hasOwnProperty(e)&&i[e]&&(delete i[e][t.elementId],delete o[t.elementId])},this.changeId=function(t,e){i[e]=i[t],i[t]={},o[e]=o[t],o[t]=null},this.getElementsForDraggable=function(t){return i[t]},this.elementRemoved=function(t){var e=o[t];e&&(delete i[e][t],delete o[t])},this.reset=function(){e={},n=[],i={},r={}},this.dragEnded=function(e){if(null!=e.offsetParent){var n=t.getId(e),i=o[n];i&&this.updateOffsets(i)}},this.setParent=function(e,n,r,s,a){var l=o[n];i[s]||(i[s]={});var c=t.getOffset(r),u=a||t.getOffset(e);l&&i[l]&&delete i[l][n],i[s][n]={id:n,offset:{left:u.left-c.left,top:u.top-c.top}},o[n]=s},this.clearParent=function(t,e){var n=o[e];n&&(delete i[n][e],delete o[e])},this.revalidateParent=function(e,n,i){var r=o[n];if(r){var s={};s[n]=i,this.updateOffsets(r,s),t.revalidate(r)}},this.getDragAncestor=function(e){var n=jsPlumb.getElement(e),i=t.getId(n),r=o[i];return r?jsPlumb.getElement(r):null}}(this)),this.dragManager},recalculateOffsets:function(t){this.getDragManager().updateOffsets(t)},createElement:function(t,e,n,i){return this.createElementNS(null,t,e,n,i)},createElementNS:function(t,e,n,i,r){var o,s=null==t?document.createElement(e):document.createElementNS(t,e);for(o in n=n||{})s.style[o]=n[o];for(o in i&&(s.className=i),r=r||{})s.setAttribute(o,""+r[o]);return s},getAttribute:function(t,e){return null!=t.getAttribute?t.getAttribute(e):null},setAttribute:function(t,e,n){null!=t.setAttribute&&t.setAttribute(e,n)},setAttributes:function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])},appendToRoot:function(t){document.body.appendChild(t)},getRenderModes:function(){return["svg"]},getClass:p,addClass:function(t,e){jsPlumb.each(t,function(t){f(t,e)})},hasClass:function(t,e){return(t=jsPlumb.getElement(t)).classList?t.classList.contains(e):-1!==p(t).indexOf(e)},removeClass:function(t,e){jsPlumb.each(t,function(t){f(t,null,e)})},toggleClass:function(t,e){jsPlumb.hasClass(t,e)?jsPlumb.removeClass(t,e):jsPlumb.addClass(t,e)},updateClasses:function(t,e,n){jsPlumb.each(t,function(t){f(t,e,n)})},setClass:function(t,e){null!=e&&jsPlumb.each(t,function(t){h(t,e,e.split(/\s+/))})},setPosition:function(t,e){t.style.left=e.left+"px",t.style.top=e.top+"px"},getPosition:function(t){var e=function(e){var n=t.style[e];return n?n.substring(0,n.length-2):0};return{left:e("left"),top:e("top")}},getStyle:function(t,e){return void 0!==window.getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.currentStyle[e]},getSelector:function(t,e){return 1===arguments.length?null!=t.nodeType?t:document.querySelectorAll(t):t.querySelectorAll(e)},getOffset:function(t,e,n){t=jsPlumb.getElement(t),n=n||this.getContainer();for(var i={left:t.offsetLeft,top:t.offsetTop},r=e||null!=n&&t!==n&&t.offsetParent!==n?t.offsetParent:null,o=function(t){null!=t&&t!==document.body&&(t.scrollTop>0||t.scrollLeft>0)&&(i.left-=t.scrollLeft,i.top-=t.scrollTop)}.bind(this);null!=r;)i.left+=r.offsetLeft,i.top+=r.offsetTop,o(r),r=e?r.offsetParent:r.offsetParent===n?null:r.offsetParent;if(null!=n&&!e&&(n.scrollTop>0||n.scrollLeft>0)){var s=null!=t.offsetParent?this.getStyle(t.offsetParent,"position"):"static",a=this.getStyle(t,"position");"absolute"!==a&&"fixed"!==a&&"absolute"!==s&&"fixed"!==s&&(i.left-=n.scrollLeft,i.top-=n.scrollTop)}return i},getPositionOnElement:function(t,e,n){var i=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0,width:0,height:0},r=document.body,o=document.documentElement,s=window.pageYOffset||o.scrollTop||r.scrollTop,a=window.pageXOffset||o.scrollLeft||r.scrollLeft,l=o.clientTop||r.clientTop||0,c=o.clientLeft||r.clientLeft||0,u=i.top+s-l+0*n,d=i.left+a-c+0*n,h=jsPlumb.pageLocation(t),p=i.width||e.offsetWidth*n,f=i.height||e.offsetHeight*n;return[(h[0]-d)/p,(h[1]-u)/f]},getAbsolutePosition:function(t){var e=function(e){var n=t.style[e];if(n)return parseFloat(n.substring(0,n.length-2))};return[e("left"),e("top")]},setAbsolutePosition:function(t,e,n,i){n?this.animate(t,{left:"+="+(e[0]-n[0]),top:"+="+(e[1]-n[1])},i):(t.style.left=e[0]+"px",t.style.top=e[1]+"px")},getSize:function(t){return[t.offsetWidth,t.offsetHeight]},getWidth:function(t){return t.offsetWidth},getHeight:function(t){return t.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],Array.prototype.slice.call(t).forEach(function(t){(i=this.info(t)).el&&this._initDraggableIfNecessary(i.el,!0,e,i.id,!0)}.bind(this)),this},initDraggable:function(t,e,n){o(this,n).draggable(t,e),t._jsPlumbDragOptions=e},destroyDraggable:function(t,e){o(this,e).destroyDraggable(t),delete t._jsPlumbDragOptions},unbindDraggable:function(t,e,n,i){o(this,i).destroyDraggable(t,e,n)},setDraggable:function(t,e){return jsPlumb.each(t,function(t){this.isDragSupported(t)&&(this._draggableStates[this.getAttribute(t,"id")]=e,this.setElementDraggable(t,e))}.bind(this))},_draggableStates:{},toggleDraggable:function(t){var e;return jsPlumb.each(t,function(t){var n=this.getAttribute(t,"id");return e=!(e=null!=this._draggableStates[n]&&this._draggableStates[n]),this._draggableStates[n]=e,this.setDraggable(t,e),e}.bind(this)),e},_initDraggableIfNecessary:function(t,e,i,r,o){if(!jsPlumb.headless&&(null!=e&&e&&jsPlumb.isDragSupported(t,this))){var s=i||this.Defaults.DragOptions;if(s=jsPlumb.extend({},s),jsPlumb.isAlreadyDraggable(t,this))i.force&&this.initDraggable(t,s);else{var a=jsPlumb.dragEvents.drag,l=jsPlumb.dragEvents.stop,c=jsPlumb.dragEvents.start;this.manage(r,t),s[c]=n.wrap(s[c],function(t){var e=t.el._jsPlumbDragOptions,n=!0;return e.canDrag&&(n=e.canDrag()),n&&(this.setHoverSuspended(!0),this.select({source:t.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:t.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),n}.bind(this)),s[a]=n.wrap(s[a],function(t){var e=this.getUIPosition(arguments,this.getZoom());if(null!=e){var n=t.el._jsPlumbDragOptions;this.draw(t.el,e,null,!0),n._dragging&&this.addClass(t.el,"jtk-dragged"),n._dragging=!0}}.bind(this)),s[l]=n.wrap(s[l],function(t){for(var e,n=t.selection,i=function(t){null!=t[1]&&(e=this.getUIPosition([{el:t[2].el,pos:[t[1].left,t[1].top]}]),this.draw(t[2].el,e)),delete t[0]._jsPlumbDragOptions._dragging,this.removeClass(t[0],"jtk-dragged"),this.select({source:t[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:t[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.getDragManager().dragEnded(t[2].el)}.bind(this),r=0;r=u&&(window.clearInterval(f),null!=r.complete&&r.complete())},15)},destroyDroppable:function(t,e){o(this,e).destroyDroppable(t)},unbindDroppable:function(t,e,n,i){o(this,i).destroyDroppable(t,e,n)},droppable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],(e=e||{}).allowLoopback=!1,Array.prototype.slice.call(t).forEach(function(t){(i=this.info(t)).el&&this.initDroppable(i.el,e)}.bind(this)),this},initDroppable:function(t,e,n){o(this,n).droppable(t,e)},isAlreadyDraggable:function(t){return null!=t._katavorioDrag},isDragSupported:function(t,e){return!0},isDropSupported:function(t,e){return!0},isElementDraggable:function(t){return(t=e.getElement(t))._katavorioDrag&&t._katavorioDrag.isEnabled()},getDragObject:function(t){return t[0].drag.getDragElement()},getDragScope:function(t){return t._katavorioDrag&&t._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(t){return t[0].e},getUIPosition:function(t,e){var n=t[0].el;if(null==n.offsetParent)return null;var i=t[0].finalPos||t[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(t,e,n){t._katavorioDrag&&t._katavorioDrag.setFilter(e,n)},setElementDraggable:function(t,n){(t=e.getElement(t))._katavorioDrag&&t._katavorioDrag.setEnabled(n)},setDragScope:function(t,e){t._katavorioDrag&&t._katavorioDrag.k.setDragScope(t,e)},setDropScope:function(t,e){t._katavorioDrop&&t._katavorioDrop.length>0&&t._katavorioDrop[0].k.setDropScope(t,e)},addToPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,function(t){(t=[e.getElement(t)]).push.apply(t,i),r.addToPosse.apply(r,t)})},setPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,function(t){(t=[e.getElement(t)]).push.apply(t,i),r.setPosse.apply(r,t)})},removeFromPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,function(t){(t=[e.getElement(t)]).push.apply(t,i),r.removeFromPosse.apply(r,t)})},removeFromAllPosses:function(t){var n=o(this);e.each(t,function(t){n.removeFromAllPosses(e.getElement(t))})},setPosseState:function(t,n,i){var r=o(this);e.each(t,function(t){r.setPosseState(e.getElement(t),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(t){t._katavorioDrag&&t._katavorioDrag.abort()},addToDragSelection:function(t){o(this).select(t)},removeFromDragSelection:function(t){o(this).deselect(t)},clearDragSelection:function(){o(this).deselectAll()},trigger:function(t,e,n,i){this.getEventManager().trigger(t,e,n,i)},doReset:function(){for(var t in this)0===t.indexOf("_katavorio_")&&this[t].reset()},getEventManager:function(){return(n=(e=this)._mottle)||(n=e._mottle=new t.Mottle),n;var e,n},on:function(t,e,n){return this.getEventManager().on.apply(this,arguments),this},off:function(t,e,n){return this.getEventManager().off.apply(this,arguments),this}});var m,g;m=e.init,(g=function(){/complete|loaded|interactive/.test(document.readyState)&&void 0!==document.body&&null!=document.body?m():setTimeout(g,9)})()}.call("undefined"!=typeof window?window:this)},722:function(t,e,n){"use strict";e.__esModule=!0,e.sqlTypeList=e.directList=e.typeList=e.dateValueList=e.cycleList=void 0;var i,r=n(36),o=(i=r)&&i.__esModule?i:{default:i};var s=[{value:"month",label:""+o.default.$t("月")},{value:"week",label:""+o.default.$t("周")},{value:"day",label:""+o.default.$t("日")},{value:"hour",label:""+o.default.$t("时")}],a={hour:[{value:"last1Hour",label:""+o.default.$t("前1小时")},{value:"last2Hours",label:""+o.default.$t("前2小时")},{value:"last3Hours",label:""+o.default.$t("前3小时")}],day:[{value:"last1Days",label:""+o.default.$t("昨天")},{value:"last2Days",label:""+o.default.$t("前两天")},{value:"last3Days",label:""+o.default.$t("前三天")},{value:"last7Days",label:""+o.default.$t("前七天")}],week:[{value:"lastWeek",label:""+o.default.$t("上周")},{value:"lastMonday",label:""+o.default.$t("上周一")},{value:"lastTuesday",label:""+o.default.$t("上周二")},{value:"lastWednesday",label:""+o.default.$t("上周三")},{value:"lastThursday",label:""+o.default.$t("上周四")},{value:"lastFriday",label:""+o.default.$t("上周五")},{value:"lastSaturday",label:""+o.default.$t("上周六")},{value:"lastSunday",label:""+o.default.$t("上周日")}],month:[{value:"lastMonth",label:""+o.default.$t("上月")},{value:"lastMonthBegin",label:""+o.default.$t("上月初")},{value:"lastMonthEnd",label:""+o.default.$t("上月末")}]},l=[{id:0,code:""+o.default.$t("查询")},{id:1,code:""+o.default.$t("非查询")}];e.cycleList=s,e.dateValueList=a,e.typeList=[{id:1,code:"VARCHAR",disabled:!1},{id:2,code:"INTEGER",disabled:!1},{id:3,code:"LONG",disabled:!1},{id:4,code:"FLOAT",disabled:!1},{id:5,code:"DOUBLE",disabled:!1},{id:6,code:"DATE",disabled:!1},{id:7,code:"TIME",disabled:!1},{id:8,code:"TIMESTAMP",disabled:!1},{id:9,code:"BOOLEAN",disabled:!1}],e.directList=[{id:1,code:"IN",disabled:!1},{id:2,code:"OUT",disabled:!1}],e.sqlTypeList=l},723:function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(28)),r=l(n(36)),o=l(n(91)),s=l(n(222)),a=n(701);function l(t){return t&&t.__esModule?t:{default:t}}var c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return $("body").find(".tooltip.fade.top.in").remove(),$(".textarea-ft").css({height:$(".content-log-box").height()-t+"px"})},u="";e.default={name:"log",data:function(){return{store:o.default,router:s.default,isLog:!1,stateId:$("#"+this.item.id).attr("data-state-id")||null,isScreen:!1,loadingIndex:0,isData:!0,loading:!1}},props:{item:{type:Object,default:{}},source:{type:String,default:"from"},logId:Number},methods:{_refreshLog:function(){var t=this;this.loading=!0,this.store.dispatch("dag/getLog",this._rtParam).then(function(e){setTimeout(function(){t.loading=!1,e.data?t.$message.success(""+r.default.$t("更新日志成功")):t.$message.warning(""+r.default.$t("暂无更多日志"))},1500),c().html("").text(e.data||""+r.default.$t("暂无日志"))}).catch(function(e){t.$message.error(e.msg||""),t.loading=!1})},_ckLog:function(){var t=this;this.isLog=!0,this.store.dispatch("dag/getLog",this._rtParam).then(function(e){t.$message.destroy(),e.data?(t.isData=!0,u=e.data,c().html("").text(u||""+r.default.$t("暂无日志")),setTimeout(function(){$("#textarea").scrollTop(2)},800)):(t.isData=!1,setTimeout(function(){t.$message.warning(""+r.default.$t("暂无更多日志"))},1e3),c().html("").text(u||""+r.default.$t("暂无日志")))}).catch(function(e){t.$message.error(e.msg||""),t.$message.destroy()})},_screenOpen:function(){this.isScreen=!0;var t=$(".log-box"),e=$(window).width()-40,n=$(window).height()-40;t.css({width:e,height:n,marginLeft:"-"+parseInt(e/2)+"px",marginTop:"-"+parseInt(n/2)+"px"}),t.find(".content").animate({scrollTop:0},0),c().html("").text(u)},_screenClose:function(){this.isScreen=!1;var t=$(".log-box");t.attr("style",""),t.find(".content").animate({scrollTop:0},0),c().html("").text(u)},_downloadLog:function(){(0,a.downloadFile)("/escheduler/log/download-log",{taskInstId:this.stateId||this.logId})},_onUp:i.default.debounce(function(){this.loadingIndex=this.loadingIndex-1,this._ckLog()},1e3,{leading:!1,trailing:!0}),_onDown:i.default.debounce(function(){this.loadingIndex=this.loadingIndex+1,this._ckLog()},1e3,{leading:!1,trailing:!0}),_onTextareaScroll:function(){var t=this;$("#textarea-log").scroll(function(){var e=$(this);e.scrollTop()+e.height()===e.height()&&t.loadingIndex>0&&(t.$message.loading({content:""+r.default.$t("正在努力请求日志中..."),duration:0,closable:!1}),t._onUp()),e.get(0).scrollHeight===e.height()+e.scrollTop()&&t.isData&&(t.$message.loading({content:""+r.default.$t("正在努力请求日志中..."),duration:0,closable:!1}),t._onDown())})},close:function(){$("body").find(".tooltip.fade.top.in").remove(),this.isScreen=!1,this.isLog=!1,u="",this.$emit("close")}},watch:{},created:function(){"list"===this.source&&(this.$message.loading({content:""+r.default.$t("正在努力请求日志中..."),duration:0,closable:!1}),this._ckLog())},mounted:function(){this._onTextareaScroll()},updated:function(){},computed:{_rtParam:function(){return{taskInstId:this.stateId||this.logId,skipLineNum:parseInt(""+(this.loadingIndex?this.loadingIndex+"0000":0)),limit:parseInt((this.loadingIndex?this.loadingIndex+1:1)+"0000")}}},components:{}}},724:function(t,e){},725:function(t,e,n){(function(t){"use strict";var e="CodeMirror-hint",n="CodeMirror-hint-active";function i(t,e){this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var i={hint:e};if(n)for(var r in n)i[r]=n[r];return t.showHint(i)},t.defineExtension("showHint",function(e){e=function(t,e,n){var i=t.options.hintOptions,r={};for(var o in u)r[o]=u[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);r.hint.resolve&&(r.hint=r.hint.resolve(t,e));return r}(this,this.getCursor("start"),e);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var r=0;rd.clientHeight+1,D=l.getScrollInfo();if(P>0){var L=k.bottom-k.top;if(b.top-(b.bottom-k.top)-L>0)d.style.top=(x=b.top-L)+"px",_=!1;else if(L>C){d.style.height=C-5+"px",d.style.top=(x=b.bottom-k.top)+"px";var E=l.getCursor();r.from.ch!=E.ch&&(b=l.cursorCoords(E),d.style.left=(y=b.left)+"px",k=d.getBoundingClientRect())}}var T,M=k.right-w;if(M>0&&(k.right-k.left>w&&(d.style.width=w-5+"px",M-=k.right-k.left-w),d.style.left=(y=b.left-M)+"px"),S)for(var I=d.firstChild;I;I=I.nextSibling)I.style.paddingRight=l.display.nativeBarWidth+"px";(l.addKeyMap(this.keyMap=function(t,e){var n={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){e.moveFocus(-1)},n["Ctrl-N"]=function(){e.moveFocus(1)});var i=t.options.customKeys,r=i?{}:n;function o(t,i){var o;o="string"!=typeof i?function(t){return i(t,e)}:n.hasOwnProperty(i)?n[i]:i,r[t]=o}if(i)for(var s in i)i.hasOwnProperty(s)&&o(s,i[s]);var a=t.options.extraKeys;if(a)for(var s in a)a.hasOwnProperty(s)&&o(s,a[s]);return r}(i,{moveFocus:function(t,e){o.changeActive(o.selectedHint+t,e)},setFocus:function(t){o.changeActive(t)},menuSize:function(){return o.screenAmount()},length:p.length,close:function(){i.close()},pick:function(){o.pick()},data:r})),i.options.closeOnUnfocus)&&(l.on("blur",this.onBlur=function(){T=setTimeout(function(){i.close()},100)}),l.on("focus",this.onFocus=function(){clearTimeout(T)}));return l.on("scroll",this.onScroll=function(){var t=l.getScrollInfo(),e=l.getWrapperElement().getBoundingClientRect(),n=x+D.top-t.top,r=n-(u.pageYOffset||(c.documentElement||c.body).scrollTop);if(_||(r+=d.offsetHeight),r<=e.top||r>=e.bottom)return i.close();d.style.top=n+"px",d.style.left=y+D.left-t.left+"px"}),t.on(d,"dblclick",function(t){var e=a(d,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),o.pick())}),t.on(d,"click",function(t){var e=a(d,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),i.options.completeOnSingleClick&&o.pick())}),t.on(d,"mousedown",function(){setTimeout(function(){l.focus()},20)}),t.signal(r,"select",p[this.selectedHint],d.childNodes[this.selectedHint]),!0}function c(t,e,n,i){if(t.async)t(e,i,n);else{var r=t(e,n);r&&r.then?r.then(i):i(r)}}i.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var i=e.list[n];i.hint?i.hint(this.cm,e,i):this.cm.replaceRange(s(i),i.from||e.from,i.to||e.to,"complete"),t.signal(e,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var t=this.cm.getCursor(),e=this.cm.getLine(t.line);if(t.line!=this.startPos.line||e.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?e=i?this.data.list.length-1:0:e<0&&(e=i?0:this.data.list.length-1),this.selectedHint!=e){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" "+n,"")),(r=this.hints.childNodes[this.selectedHint=e]).className+=" "+n,r.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),t.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:function(e,n){var i,r=e.getHelpers(n,"hint");if(r.length){var o=function(t,e,n){var i=function(t,e){if(!t.somethingSelected())return e;for(var n=[],i=0;i0?e(t):r(o+1)})}(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:i})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}}),t.registerHelper("hint","fromList",function(e,n){var i,r=e.getCursor(),o=e.getTokenAt(r),s=t.Pos(r.line,o.start),a=r;o.start,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)})(n(644))},726:function(t,e,n){(function(t){"use strict";var e,n,i,r,o={QUERY_DIV:";",ALIAS_KEYWORD:"AS"},s=t.Pos,a=t.cmpPos;function l(t){return"[object Array]"==Object.prototype.toString.call(t)}function c(t){return"string"==typeof t?t:t.text}function u(t,e){return l(e)&&(e={columns:e}),e.text||(e.text=t),e}function d(t){return e[t.toUpperCase()]}function h(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function p(t,e){var n=t.length,i=c(e).substr(0,n);return t.toUpperCase()===i.toUpperCase()}function f(t,e,n,i){if(l(n))for(var r=0;r0)&&a(m,u[g])<=0){h={start:f,end:u[g]};break}f=u[g]}if(h.start){var b=n.getRange(h.start,h.end,!1);for(g=0;g=0;n--){var i=t[n];e[c(i).toUpperCase()]=u(c(i),i)}else if(t)for(var r in t)e[r.toUpperCase()]=u(r,t[r]);return e}(a&&a.tables);var p=a&&a.defaultTable,v=a&&a.disableKeywords;n=p&&d(p),i=function(e){var n=e.doc.modeOption;return"sql"===n&&(n="text/x-sql"),t.resolveMode(n).keywords}(o),r=function(e){var n=e.doc.modeOption;return"sql"===n&&(n="text/x-sql"),t.resolveMode(n).identifierQuote||"`"}(o),p&&!n&&(n=b(p,o)),(n=n||[]).columns&&(n=n.columns);var y,x,_,w=o.getCursor(),C=[],k=o.getTokenAt(w);if(k.end>w.ch&&(k.end=w.ch,k.string=k.string.slice(0,w.ch-k.start)),k.string.match(/^[.`"\w@]\w*$/)?(_=k.string,y=k.start,x=k.end):(y=x=w.ch,_=""),"."==_.charAt(0)||_.charAt(0)==r)y=function(t,i,o,a){for(var l=!1,c=[],u=i.start,p=!0;p;)p="."==i.string.charAt(0),l=l||i.string.charAt(0)==r,u=i.start,c.unshift(m(i.string)),"."==(i=a.getTokenAt(s(t.line,i.start))).string&&(p=!0,i=a.getTokenAt(s(t.line,i.start)));var v=c.join(".");f(o,v,e,function(t){return l?g(t):t}),f(o,v,n,function(t){return l?g(t):t}),v=c.pop();var y=c.join("."),x=!1,_=y;if(!d(y)){var w=y;(y=b(y,a))!==w&&(x=!0)}var C=d(y);return C&&C.columns&&(C=C.columns),C&&f(o,v,C,function(t){var e=y;return 1==x&&(e=_),"string"==typeof t?t=e+"."+t:(t=h(t)).text=e+"."+t.text,l?g(t):t}),u}(w,k,C,o);else{var P=function(t,e){return"object"==typeof t?t.className=e:t={text:t,className:e},t};f(C,_,n,function(t){return P(t,"CodeMirror-hint-table CodeMirror-hint-default-table")}),f(C,_,e,function(t){return P(t,"CodeMirror-hint-table")}),v||f(C,_,i,function(t){return P(t.toUpperCase(),"CodeMirror-hint-keyword")})}return{list:C,from:s(w.line,y),to:s(w.line,x)}})})(n(644),n(683))},727:function(t,e,n){(function(t){"use strict";var e=t.Pos;function n(t,e,n){return n?t.indexOf(e)>=0:0==t.lastIndexOf(e,0)}t.registerHelper("hint","xml",function(i,r){var o=r&&r.schemaInfo,s=r&&r.quoteChar||'"',a=r&&r.matchInMiddle;if(o){var l=i.getCursor(),c=i.getTokenAt(l);c.end>l.ch&&(c.end=l.ch,c.string=c.string.slice(0,l.ch-c.start));var u=t.innerMode(i.getMode(),c.state);if("xml"==u.mode.name){var d,h,p=[],f=!1,m=/\btag\b/.test(c.type)&&!/>$/.test(c.string),g=m&&/^\w/.test(c.string);if(g){var v=i.getLine(l.line).slice(Math.max(0,c.start-2),c.start),b=/<\/$/.test(v)?"close":/<$/.test(v)?"open":null;b&&(h=c.start-("close"==b?2:1))}else m&&"<"==c.string?b="open":m&&"")}else{var k=(x=o[u.state.tagName])&&x.attrs,P=o["!attrs"];if(!k&&!P)return;if(k){if(P){var S={};for(var D in P)P.hasOwnProperty(D)&&(S[D]=P[D]);for(var D in k)k.hasOwnProperty(D)&&(S[D]=k[D]);k=S}}else k=P;if("string"==c.type||"="==c.string){var L,E=(v=i.getRange(e(l.line,Math.max(0,l.ch-60)),e(l.line,"string"==c.type?c.start:c.end))).match(/([^\s\u00a0=<>\"\']+)=$/);if(!E||!k.hasOwnProperty(E[1])||!(L=k[E[1]]))return;if("function"==typeof L&&(L=L.call(this,i)),"string"==c.type){d=c.string;var T=0;/['"]/.test(c.string.charAt(0))&&(s=c.string.charAt(0),d=c.string.slice(1),T++);var M=c.string.length;/['"]/.test(c.string.charAt(M-1))&&(s=c.string.charAt(M-1),d=c.string.substr(T,M-2)),f=!0}for(w=0;w=]+|\/\/=?|\*\*=?|!=|[~!@])/],d=0;di?w(e):r0&&C(t,e)&&(s+=" "+l),s}return _(t,e)}function _(t,e){if(t.eatSpace())return null;if(t.match(/^#.*/))return"comment";if(t.match(/^[0-9\.]/,!1)){var i=!1;if(t.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),t.match(/^[\d_]+\.\d*/)&&(i=!0),t.match(/^\.\d+/)&&(i=!0),i)return t.eat(/J/i),"number";var r=!1;if(t.match(/^0x[0-9a-f_]+/i)&&(r=!0),t.match(/^0b[01_]+/i)&&(r=!0),t.match(/^0o[0-7_]+/i)&&(r=!0),t.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(t.eat(/J/i),r=!0),t.match(/^0(?![\dx])/i)&&(r=!0),r)return t.eat(/L/i),"number"}if(t.match(v))return-1!==t.current().toLowerCase().indexOf("f")?(e.tokenize=function(t,e){for(;"rubf".indexOf(t.charAt(0).toLowerCase())>=0;)t=t.substr(1);var n=1==t.length,i="string";function r(t){return function(e,n){var i=_(e,n);return"punctuation"==i&&("{"==e.current()?n.tokenize=r(t+1):"}"==e.current()&&(n.tokenize=t>1?r(t-1):o)),i}}function o(o,s){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),n&&o.eol())return i}else{if(o.match(t))return s.tokenize=e,i;if(o.match("{{"))return i;if(o.match("{",!1))return s.tokenize=r(0),o.current()?i:s.tokenize(o,s);if(o.match("}}"))return i;if(o.match("}"))return l;o.eat(/['"]/)}if(n){if(a.singleLineStringErrors)return l;s.tokenize=e}return i}return o.isString=!0,o}(t.current(),e.tokenize),e.tokenize(t,e)):(e.tokenize=function(t,e){for(;"rubf".indexOf(t.charAt(0).toLowerCase())>=0;)t=t.substr(1);var n=1==t.length,i="string";function r(r,o){for(;!r.eol();)if(r.eatWhile(/[^'"\\]/),r.eat("\\")){if(r.next(),n&&r.eol())return i}else{if(r.match(t))return o.tokenize=e,i;r.eat(/['"]/)}if(n){if(a.singleLineStringErrors)return l;o.tokenize=e}return i}return r.isString=!0,r}(t.current(),e.tokenize),e.tokenize(t,e));for(var o=0;o1&&o(e).offset>n;){if("py"!=o(e).type)return!0;e.scopes.pop()}return o(e).offset!=n}function k(t,e){t.sol()&&(e.beginningOfLine=!0);var n=e.tokenize(t,e),i=t.current();if(e.beginningOfLine&&"@"==i)return t.match(g,!1)?"meta":m?"operator":l;if(/\S/.test(i)&&(e.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=e.lastToken||(n="meta"),"pass"!=i&&"return"!=i||(e.dedent+=1),"lambda"==i&&(e.lambda=!0),":"!=i||e.lambda||"py"!=o(e).type||w(e),1==i.length&&!/string|comment/.test(n)){var r="[({".indexOf(i);if(-1!=r&&function(t,e,n){var i=t.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:t.column()+1;e.scopes.push({offset:e.indent+h,type:n,align:i})}(t,e,"])}".slice(r,r+1)),-1!=(r="])}".indexOf(i))){if(o(e).type!=i)return l;e.indent=e.scopes.pop().offset-h}}return e.dedent>0&&t.eol()&&"py"==o(e).type&&(e.scopes.length>1&&e.scopes.pop(),e.dedent-=1),n}return{startState:function(t){return{tokenize:x,scopes:[{offset:t||0,type:"py",align:null}],indent:t||0,lastToken:null,lambda:!1,dedent:0}},token:function(t,e){var n=e.errorToken;n&&(e.errorToken=!1);var i=k(t,e);return i&&"comment"!=i&&(e.lastToken="keyword"==i||"punctuation"==i?t.current():i),"punctuation"==i&&(i=null),t.eol()&&e.lambda&&(e.lambda=!1),n?i+" "+l:i},indent:function(e,n){if(e.tokenize!=x)return e.tokenize.isString?t.Pass:0;var i=o(e),r=i.type==n.charAt(0);return null!=i.align?i.align-(r?1:0):i.offset-(r?h:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}}),t.defineMIME("text/x-python","python");var s;t.defineMIME("text/x-cython",{name:"python",extra_keywords:(s="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",s.split(" "))})})(n(644))},729:function(t,e,n){(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(i,r){var o,s,a=i.indentUnit,l={},c=r.htmlMode?e:n;for(var u in c)l[u]=c[u];for(var u in r)l[u]=r[u];function d(t,e){function n(n){return e.tokenize=n,n(t,e)}var i=t.next();return"<"==i?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(p("atom","]]>")):null:t.match("--")?n(p("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(e){return function(n,i){for(var r;null!=(r=n.next());){if("<"==r)return i.tokenize=t(e+1),i.tokenize(n,i);if(">"==r){if(1==e){i.tokenize=d;break}return i.tokenize=t(e-1),i.tokenize(n,i)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=p("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=h,"tag bracket"):"&"==i?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function h(t,e){var n,i,r=t.next();if(">"==r||"/"==r&&t.eat(">"))return e.tokenize=d,o=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return o="equals",null;if("<"==r){e.tokenize=d,e.state=g,e.tagName=e.tagStart=null;var s=e.tokenize(t,e);return s?s+" tag error":"tag error"}return/[\'\"]/.test(r)?(e.tokenize=(n=r,(i=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=h;break}return"string"}).isInAttribute=!0,i),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(t,e){return function(n,i){for(;!n.eol();){if(n.match(e)){i.tokenize=d;break}n.next()}return t}}function f(t){t.context&&(t.context=t.context.prev)}function m(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(e))return;f(t)}}function g(t,e,n){return"openTag"==t?(n.tagStart=e.column(),v):"closeTag"==t?b:g}function v(t,e,n){return"word"==t?(n.tagName=e.current(),s="tag",_):l.allowMissingTagName&&"endTag"==t?(s="tag bracket",_(t,e,n)):(s="error",v)}function b(t,e,n){if("word"==t){var i=e.current();return n.context&&n.context.tagName!=i&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==i||!1===l.matchClosing?(s="tag",y):(s="tag error",x)}return l.allowMissingTagName&&"endTag"==t?(s="tag bracket",y(t,e,n)):(s="error",x)}function y(t,e,n){return"endTag"!=t?(s="error",y):(f(n),g)}function x(t,e,n){return s="error",y(t,0,n)}function _(t,e,n){if("word"==t)return s="attribute",w;if("endTag"==t||"selfcloseTag"==t){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(i)?m(n,i):(m(n,i),n.context=new function(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}(n,i,r==n.indented)),g}return s="error",_}function w(t,e,n){return"equals"==t?C:(l.allowMissing||(s="error"),_(t,0,n))}function C(t,e,n){return"string"==t?k:"word"==t&&l.allowUnquoted?(s="string",_):(s="error",_(t,0,n))}function k(t,e,n){return"string"==t?k:_(t,0,n)}return d.isInText=!0,{startState:function(t){var e={tokenize:d,state:g,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(s=null,e.state=e.state(o||n,t,e),s&&(n="error"==s?n+" error":s)),n},indent:function(e,n,i){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+a;if(r&&r.noIndent)return t.Pass;if(e.tokenize!=h&&e.tokenize!=d)return i?i.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+a*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==C&&(t.state=_)}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})(n(644))},730:function(t,e,n){(function(t){"use strict";var e={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};function n(t,n,o){if("_"===o)return t.eat("_")?i(t,n,"italic",/__/,2):i(t,n,"em",/_/,1);if("*"===o)return t.eat("*")?i(t,n,"bold",/\*\*/,2):i(t,n,"strong",/\*/,1);if("["===o)return t.match(/\d+\]/)&&(n.footCite=!0),r(n);if("("===o&&t.match(/^(r|tm|c)\)/))return s(n,e.specialChar);if("<"===o&&t.match(/(\w+)[^>]+>[^<]+<\/\1>/))return s(n,e.html);if("?"===o&&t.eat("?"))return i(t,n,"cite",/\?\?/,2);if("="===o&&t.eat("="))return i(t,n,"notextile",/==/,2);if("-"===o&&!t.eat("-"))return i(t,n,"deletion",/-/,1);if("+"===o)return i(t,n,"addition",/\+/,1);if("~"===o)return i(t,n,"sub",/~/,1);if("^"===o)return i(t,n,"sup",/\^/,1);if("%"===o)return i(t,n,"span",/%/,1);if("@"===o)return i(t,n,"code",/@/,1);if("!"===o){var a=i(t,n,"image",/(?:\([^\)]+\))?!/,1);return t.match(/^:\S+/),a}return r(n)}function i(t,e,n,i,o){var s=t.pos>o?t.string.charAt(t.pos-o-1):null,a=t.peek();if(e[n]){if((!a||/\W/.test(a))&&s&&/\S/.test(s)){var l=r(e);return e[n]=!1,l}}else(!s||/\W/.test(s))&&a&&/\S/.test(a)&&t.match(new RegExp("^.*\\S"+i.source+"(?:\\W|$)"),!1)&&(e[n]=!0,e.mode=u.attributes);return r(e)}function r(t){var n=o(t);if(n)return n;var i=[];return t.layoutType&&i.push(e[t.layoutType]),i=i.concat(function(t){for(var n=[],i=1;i]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(t){switch(t){case"drawTable":return l.makeRe("^",l.single.drawTable,"$");case"html":return l.makeRe("^",l.single.html,"(?:",l.single.html,")*","$");case"linkDefinition":return l.makeRe("^",l.single.linkDefinition,"$");case"listLayout":return l.makeRe("^",l.single.list,c("allAttributes"),"*\\s+");case"tableCellAttributes":return l.makeRe("^",l.choiceRe(l.single.tableCellAttributes,c("allAttributes")),"+\\.");case"type":return l.makeRe("^",c("allTypes"));case"typeLayout":return l.makeRe("^",c("allTypes"),c("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return l.makeRe("^",c("allAttributes"),"+");case"allTypes":return l.choiceRe(l.single.div,l.single.foot,l.single.header,l.single.bc,l.single.bq,l.single.notextile,l.single.pre,l.single.table,l.single.para);case"allAttributes":return l.choiceRe(l.attributes.selector,l.attributes.css,l.attributes.lang,l.attributes.align,l.attributes.pad);default:return l.makeRe("^",l.single[t])}},makeRe:function(){for(var t="",e=0;e1&&t.eat("$");var n=t.next();return/['"({]/.test(n)?(e.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),c(t,e)):(/\d/.test(n)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function c(t,n){return(n.tokens[0]||function(t,n){if(t.eatSpace())return null;var i=t.sol(),r=t.next();if("\\"===r)return t.next(),null;if("'"===r||'"'===r||"`"===r)return n.tokens.unshift(s(r,"`"===r?"quote":"string")),c(t,n);if("#"===r)return i&&t.eat("!")?(t.skipToEnd(),"meta"):(t.skipToEnd(),"comment");if("$"===r)return n.tokens.unshift(l),c(t,n);if("+"===r||"="===r)return"operator";if("-"===r)return t.eat("-"),t.eatWhile(/\w/),"attribute";if(/\d/.test(r)&&(t.eatWhile(/\d/),t.eol()||!/\w/.test(t.peek())))return"number";t.eatWhile(/[\w-]/);var o=t.current();return"="===t.peek()&&/\w+/.test(o)?"def":e.hasOwnProperty(o)?e[o]:null})(t,n)}return{startState:function(){return{tokens:[]}},token:function(t,e){return c(t,e)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),t.defineMIME("text/x-sh","shell"),t.defineMIME("application/x-sh","shell")})(n(644))},732:function(t,e){},733:function(t,e){},734:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(685),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(739);var a=function(t){n(736)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},736:function(t,e,n){var i=n(737);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("76c18d50",i,!0,{})},737:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".email-model{width:688px}.email-model .input-element{min-height:32px;padding:1px 8px}.email-model .input-element .tag-wrapper{display:inline-block;height:22px;margin:3px 8px 3px 0;padding:0 10px;background:#ebf8ff;border-radius:2px;cursor:default}.email-model .input-element .tag-wrapper.active{background:#e2eff9}.email-model .input-element .tag-wrapper .tag-text{margin-right:8px;font-size:12px;line-height:22px;color:#666;cursor:text}.email-model .input-element .tag-wrapper .remove-tag{font-size:12px;-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8);color:#666;cursor:pointer}.email-model .input-element .tag-wrapper .remove-tag:hover{color:#000}.email-model .input-element .label-wrapper{margin-left:-6px}.email-model .input-element .label-wrapper input{height:29px;line-height:29px;border:0;padding-left:4px}.email-list-model{margin:-10px -13px}.email-list-model .ans-scroller{width:230px;overflow-y:scroll}.email-list-model .ans-scroller .default-option-class{width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-list-model .ans-option .default-option-class.active{background:#ebf8ff}",""])},738:function(t,e,n){"use strict";e.__esModule=!0,e.default=["test@analysys.com.cn"]},739:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ans-input email-model"},[n("div",{staticClass:"clearfix input-element"},[t._l(t.activeList,function(e,i){return n("span",{staticClass:"tag-wrapper",class:t.activeIndex===i?"active":""},[n("span",{staticClass:"tag-text"},[t._v(t._s(e))]),t._v(" "),n("i",{staticClass:"remove-tag ans-icon-close",on:{click:function(e){return t._del(i)}}})])}),t._v(" "),n("x-poptip",{attrs:{placement:"bottom-start","append-to-body":!0,"visible-arrow":!1,trigger:"manual"},model:{value:t.isEmail,callback:function(e){t.isEmail=e},expression:"isEmail"}},[n("div",{staticClass:"email-list-model"},[n("div",{staticClass:"ans-scroller",staticStyle:{"max-height":"300px"}},[n("div",{staticClass:"scroll-area-wrapper scroll-transition"},[n("ul",{staticClass:"dropdown-container"},t._l(t.emailList,function(e,i){return n("li",{staticClass:"ans-option",on:{click:function(e){return t._selectEmail(i+1)}}},[n("span",{staticClass:"default-option-class",class:t.index===i+1?"active":""},[t._v(t._s(e))])])}),0)])])]),t._v(" "),n("span",{staticClass:"label-wrapper",attrs:{slot:"reference"},slot:"reference"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],ref:"emailInput",staticClass:"email-input",style:{width:t.emailWidth+"px"},attrs:{type:"text",placeholder:t.$t("请输入邮箱")},domProps:{value:t.email},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t._emailTab(e)},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t._emailDelete(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t._emailEnter(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t._emailKeyup("up")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t._emailKeyup("down")}],input:function(e){e.target.composing||(t.email=e.target.value)}}})])])],2)])},staticRenderFns:[]};e.a=i},740:function(t,e,n){var i=n(741);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("d5e83532",i,!0,{})},741:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".priority-model .ans-option-listp>span{font-weight:400}.priority-model .ans-option-listp>span>.iconfont{padding-right:2px}.priority-model .ans-input .input-element{cursor:pointer;height:32px;line-height:30px;position:relative;font-weight:400}.priority-model .ans-input .input-element .ans-icon-arrow-down{position:absolute;right:8px;top:0;font-size:12px;color:#888;cursor:pointer}.priority-model .ans-input .input-element span{vertical-align:middle}.priority-model .ans-input .input-element span.label-p{margin-top:-4px;display:inline-block}",""])},742:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"priority-model"},[n("x-select",{staticStyle:{width:"130px"},attrs:{disabled:t.isDetails},on:{"on-change":t._onChange},scopedSlots:t._u([{key:"trigger",fn:function(e){var i=e.selectedModel;return n("div",{staticClass:"ans-input"},[n("div",{staticClass:"input-element",class:t.isDetails?"disabled":""},[n("span",{domProps:{innerHTML:t._s(t._rtUnicode(i?i.label:"MEDIUM"))}}),t._v(" "),n("span",{staticClass:"label-p"},[t._v(t._s(i?i.label:"MEDIUM"))]),t._v(" "),n("i",{staticClass:"ans-icon-arrow-down"})])])}}]),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[t._v(" "),t._l(t.priorityList,function(e){return n("x-option",{key:e.code,attrs:{value:e.code,label:e.code}},[n("li",{staticClass:"ans-option ans-option-listp"},[n("span",{staticClass:"default-option-class"},[n("i",{staticClass:"iconfont",style:{color:e.color},domProps:{innerHTML:t._s(e.unicode)}}),t._v("\n "+t._s(e.code)+"\n ")])])])})],2)],1)},staticRenderFns:[]};e.a=i},773:function(t,e,n){"use strict";e.__esModule=!0;var i=m(n(28)),r=m(n(917)),o=m(n(920)),s=m(n(36)),a=n(721),l=n(698),c=n(225),u=m(n(931)),d=n(661),h=n(125),p=m(n(642)),f=n(123);function m(t){return t&&t.__esModule?t:{default:t}}var g=void 0;e.default={name:"dag-chart",data:function(){return{tasksTypeList:c.tasksType,toolOperList:(0,c.toolOper)(this),dagBarId:null,toolOperCode:"",spinnerLoading:!1,urlParam:{id:this.$route.params.id||null},isRtTasks:!1,isRefresh:!1,isLoading:!1,taskId:null}},mixins:[p.default],props:{type:String,releaseState:String},methods:Object.assign({},(0,f.mapActions)("dag",["saveDAGchart","updateInstance","updateDefinition","getTaskState"]),(0,f.mapMutations)("dag",["addTasks","resetParams","setIsEditDag","setName"]),{init:function(){var t=this;this.tasks.length?(r.default.backfill(),"instance"===this.type&&(this._getTaskState(!1).then(function(t){}),this.setIntervalP=setInterval(function(){t._getTaskState(!0).then(function(t){})},9e4))):r.default.create()},_getTaskState:function(t){var e=this;return new Promise(function(n,r){e.getTaskState(e.urlParam.id).then(function(r){var o=r.list,a=r.processInstanceState,c=r.taskList,u=(0,l.allNodesId)();o.forEach(function(t){u.forEach(function(e){if(e.name===t.name){var n=$("#"+e.id),r=n.find(".state-p");n.attr("data-state-id",t.stateId),n.attr("data-dependent-result",t.dependentResult||""),r.html(""),r.append(''+t.icoUnicode+""),r.find("b").attr("title",(o=e,a=t.desc,l=i.default.filter(c,function(t){return t.name===o.name})[0],'
'+s.default.$t("名称")+":"+l.name+"
"+s.default.$t("状态")+":"+a+"
"+s.default.$t("类型")+":"+l.taskType+"
"+s.default.$t("host")+":"+(l.host||"-")+"
"+s.default.$t("重试次数")+":"+l.retryTimes+"
"+s.default.$t("提交时间")+":"+(0,d.formatDate)(l.submitTime)+"
"+s.default.$t("开始时间")+":"+(0,d.formatDate)(l.startTime)+"
"+s.default.$t("结束时间")+":"+(l.endTime?(0,d.formatDate)(l.endTime):"-")+"
"))}var o,a,l})}),"PAUSE"!==a&&"STOP"!==a&&"FAILURE"!==a&&"SUCCESS"!==e.state||t&&(0,h.findComponentDownward)(e.$root,e.type+"-details")._reset(),n()})})},_getDagId:function(t){this.isDetails||(this.dagBarId=t)},_ckOperation:function(t){var e=!0,n="";t.disable&&(this.toolOperCode===t.code?(this.toolOperCode="",n=t.code,e=!1):(this.toolOperCode=t.code,n=this.toolOperCode,e=!0),r.default.toolbarEvent({item:t,code:n,is:e}))},_operationClass:function(t){return t.disable?this.toolOperCode===t.code?"active":"":"disable"},_save:function(t){var e=this;return new Promise(function(n,i){e.spinnerLoading=!0,r.default.saveStore().then(function(r){e.urlParam.id?e["instance"===e.type?"updateInstance":"updateDefinition"](e.urlParam.id).then(function(t){e.$message.success(t.msg),e.spinnerLoading=!1,n()}).catch(function(t){e.$message.error(t.msg||""),e.spinnerLoading=!1,i(t)}):e.saveDAGchart().then(function(i){e.$message.success(i.msg),e.spinnerLoading=!1,"affirm"!==t&&e.$router.push({name:"projects-definition-list"}),n()}).catch(function(t){e.$message.error(t.msg||""),e.setName(""),e.spinnerLoading=!1,i(t)})})})},_udpTopFloorPop:function(){var t=this;return new Promise(function(e,n){var i=t.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(t){return t(o.default,{on:{onUdp:function(){i.remove(),e()},close:function(){i.remove()}}})}})})},_saveChart:function(){var t=this;this.tasks.length?this._udpTopFloorPop().then(function(){return t._save()}):this.$message.warning(""+s.default.$t("未创建节点保存失败"))},_rtNodesDag:function(){var t=this.$route.query.subProcessIds.split(","),e=t.slice(0,t.length-1),n=t[t.length-1],i={};n!==t[0]&&(i={subProcessIds:e.join(",")});var r=this.$route.name.split("-");this.$router.push({path:"/"+r[0]+"/"+r[1]+"/list/"+n,query:i})},_subProcessHandle:function(t){var e=[],n=this.$route.query.subProcessIds;if(n){var i=n.split(",");i.push(this.urlParam.id),e=i}else e.push(this.urlParam.id);var r=this.$route.name.split("-");this.$router.push({path:"/"+r[0]+"/"+r[1]+"/list/"+t,query:{subProcessIds:e.join(",")}})},_refresh:function(){var t=this;this.isRefresh=!0,this._getTaskState(!1).then(function(e){setTimeout(function(){t.isRefresh=!1,t.$message.success(""+s.default.$t("刷新状态成功"))},2200)})},_toggleView:function(){(0,h.findComponentDownward)(this.$root,"assist-dag-index")._toggleView()},_createNodes:function(t){var e=t.id,n=t.type,i=this;g&&g.remove();var r=function(t){t.$destroy(),g.remove()};this.taskId=e,g=this.$drawer({closable:!1,direction:"right",escClose:!0,render:function(t){return t(u.default,{on:{addTaskInfo:function(t){var e=t.item,n=t.fromThis;i.addTasks(e),setTimeout(function(){r(n)},100)},close:function(t){var n=t.flag,i=t.fromThis;n&&a.jsPlumb.remove(e),r(i)},onSubProcess:function(t){var e=t.subProcessId,n=t.fromThis;r(n),i._subProcessHandle(e)}},props:{id:e,taskType:n||i.dagBarId,self:i}})}})}}),watch:{tasks:{deep:!0,handler:function(){this.setIsEditDag(!0)}}},created:function(){this.setIsEditDag(!1),this.$route.query.subProcessIds&&(this.isRtTasks=!0),r.default.init({dag:this,instance:a.jsPlumb.getInstance({Endpoint:["Dot",{radius:1,cssClass:"dot-style"}],Connector:"Straight",PaintStyle:{lineWidth:2,stroke:"#456"},ConnectionOverlays:[["Arrow",{location:1,id:"arrow",length:12,foldback:.8}]],Container:"canvas"})})},mounted:function(){this.init()},beforeDestroy:function(){this.resetParams(),clearInterval(this.setIntervalP)},destroyed:function(){},computed:Object.assign({},(0,f.mapState)("dag",["tasks","locations","connects","isEditDag","name"])),components:{}}},774:function(t,e,n){"use strict";e.__esModule=!0;var i=m(n(29)),r=m(n(71)),o=m(n(28)),s=m(n(36)),a=n(721),l=m(n(918)),c=m(n(91)),u=m(n(222)),d=m(n(126)),h=n(125),p=n(698),f=m(n(798));function m(t){return t&&t.__esModule?t:{default:t}}var g=function(){this.dag={},this.selectedElement={},this.config={isDrag:!0,isAttachment:!1,isNewNodes:!0,isDblclick:!0,isContextmenu:!0,isClick:!1}};g.prototype.init=function(t){var e=this,n=t.dag,i=t.instance;this.dag=n,this.JspInstance=i,this.JspInstance.registerConnectionType("basic",{anchor:"Continuous",connector:"Straight"}),this.setConfig({isDrag:!c.default.state.dag.isDetails,isAttachment:!1,isNewNodes:!1!==d.default.getAuth()&&!c.default.state.dag.isDetails,isDblclick:!0,isContextmenu:!0,isClick:!1}),this.JspInstance.bind("click",function(t){e.config.isClick&&e.connectClick(t)}),this.config.isNewNodes&&l.default.init()},g.prototype.setConfig=function(t){this.config=Object.assign(this.config,{},t)},g.prototype.tasksEvent=function(t){var e=this,n=(0,r.default)("#"+t);n.on("contextmenu",function(t){return e.tasksContextmenu(t),!1}),n.find(".icos").bind("dblclick",function(t){e.tasksDblclick(t)}),n.on("click",function(t){e.tasksClick(t)})},g.prototype.draggable=function(){if(this.config.isNewNodes){var t=void 0,e=this;(0,r.default)(".toolbar-btn .roundedRect").draggable({scope:"plant",helper:"clone",containment:(0,r.default)(".dag-model"),stop:function(n,i){e.tasksEvent(t),(0,r.default)("#"+t).html()&&(0,h.findComponentDownward)(e.dag.$root,"dag-chart")._createNodes({id:t})},drag:function(){(0,r.default)("body").find(".tooltip.fade.top.in").remove()}}),(0,r.default)("#canvas").droppable({scope:"plant",drop:function(n,i){var o="tasks-"+Math.ceil(1e5*Math.random()),s=parseInt(i.offset.left-(0,r.default)(this).offset().left),l=parseInt(i.offset.top-(0,r.default)(this).offset().top)-10;l<25&&(l=25),(0,r.default)("#canvas").append((0,p.rtTasksTpl)({id:o,name:o,x:s,y:l,isAttachment:e.config.isAttachment,taskType:(0,h.findComponentDownward)(e.dag.$root,"dag-chart").dagBarId}));var c=a.jsPlumb.getSelector(".statemachine-demo .w");e.JspInstance.batch(function(){e.initNode(c[c.length-1])}),t=o}})}},g.prototype.jsonHandle=function(t){var e=this,n=t.largeJson,i=t.locations;o.default.map(n,function(t){(0,r.default)("#canvas").append((0,p.rtTasksTpl)({id:t.id,name:t.name,x:i[t.id].x,y:i[t.id].y,targetarr:i[t.id].targetarr,isAttachment:e.config.isAttachment,taskType:t.type,runFlag:t.runFlag})),(0,r.default)("#"+t.id).on("contextmenu",function(t){return e.tasksContextmenu(t),!1}),(0,r.default)("#"+t.id).find(".icos").bind("dblclick",function(t){e.tasksDblclick(t)}),(0,r.default)("#"+t.id).bind("click",function(t){e.tasksClick(t)})})},g.prototype.initNode=function(t){this.config.isDrag&&this.JspInstance.draggable(t,{containment:"dag-container"}),this.JspInstance.makeSource(t,{filter:".ep",anchor:"Continuous",connectorStyle:{stroke:"#555",strokeWidth:2,outlineStroke:"transparent",outlineWidth:4},extract:{action:"the-action"},maxConnections:-1}),this.JspInstance.makeTarget(t,{dropOptions:{hoverClass:"dragHover"},anchor:"Continuous",allowLoopback:!1}),this.JspInstance.fire("jsPlumbDemoNodeAdded",t)},g.prototype.tasksContextmenu=function(t){var e=this;if(this.config.isContextmenu){var n="projects-definition-details"===u.default.history.current.name&&"NOT_RELEASE"!==this.dag.releaseState,o=c.default.state.dag.isDetails,a=[''+s.default.$t("开始运行")+"",''+s.default.$t("编辑节点")+"",''+s.default.$t("复制节点")+"",''+s.default.$t("删除节点")+""],l=t,d=l.currentTarget.id,p=(0,r.default)("#contextmenu"),m=(0,r.default)("#"+d).find(".name-p").text(),g=l.pageX+document.body.scrollLeft-5,v=l.pageY+document.body.scrollTop-5;p.css({left:g,top:v,visibility:"visible"}),p.html("").append(function(){return a.splice(",")}),n&&(0,r.default)("#startRunning").on("click",function(){var t=u.default.history.current.params.id;c.default.dispatch("dag/getStartCheck",{processDefinitionId:t}).then(function(e){var n=i.default.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(e){return e(f.default,{on:{onUpdate:function(){n.remove()},close:function(){n.remove()}},props:{item:{id:t},startNodeList:m,sourceType:"contextmenu"}})}})}).catch(function(t){i.default.$message.error(t.msg||"")})}),o||((0,r.default)("#editNodes").click(function(t){(0,h.findComponentDownward)(e.dag.$root,"dag-chart")._createNodes({id:d,type:(0,r.default)("#"+d).attr("data-tasks-type")})}),(0,r.default)("#removeNodes").click(function(t){e.removeNodes(d)}),(0,r.default)("#copyNodes").click(function(t){e.copyNodes(d)}))}},g.prototype.tasksDblclick=function(t){if(this.config.isDblclick){var e=(0,r.default)(t.currentTarget.offsetParent).attr("id");(0,h.findComponentDownward)(this.dag.$root,"dag-chart")._createNodes({id:e,type:(0,r.default)("#"+e).attr("data-tasks-type")})}},g.prototype.tasksClick=function(t){var e=void 0,n=this,i=(0,r.default)("body");if(this.config.isClick){var o=this.selectedElement.connect;(0,r.default)(".w").removeClass("jtk-tasks-active"),(0,r.default)(t.currentTarget).addClass("jtk-tasks-active"),o&&((0,p.setSvgColor)(o,"#555"),this.selectedElement.connect=null),this.selectedElement.id=(0,r.default)(t.currentTarget).attr("id"),i.unbind("copy").unbind("paste"),e=n.selectedElement.id,i.bind({copy:function(){e=n.selectedElement.id},paste:function(){e&&n.copyNodes(e)}})}},g.prototype.removePaste=function(){(0,r.default)("body").unbind("copy").unbind("paste"),this.selectedElement.id=null,(0,r.default)(".w").removeClass("jtk-tasks-active")},g.prototype.connectClick=function(t){(0,p.setSvgColor)(t,"#0097e0");var e=this.selectedElement.id;e&&((0,r.default)("#"+e).removeClass("jtk-tasks-active"),this.selectedElement.id=null),this.selectedElement.connect=t},g.prototype.handleEventPointer=function(t){var e=(0,r.default)(".w");this.setConfig({isClick:t,isAttachment:!1}),e.removeClass("jtk-ep"),t||(e.removeClass("jtk-tasks-active"),this.selectedElement={},o.default.map((0,r.default)("#canvas svg"),function(t){(0,r.default)(t).attr("class")&&o.default.map((0,r.default)(t).find("path"),function(t){(0,r.default)(t).attr("fill","#555"),(0,r.default)(t).attr("stroke","#555")})}))},g.prototype.handleEventLine=function(t){var e=(0,r.default)(".w");this.setConfig({isAttachment:t}),t?e.addClass("jtk-ep"):e.removeClass("jtk-ep")},g.prototype.handleEventRemove=function(){var t=this.selectedElement.id||null,e=this.selectedElement.connect||null;t?this.removeNodes(this.selectedElement.id):this.removeConnect(e),c.default.commit("dag/setIsEditDag",!0)},g.prototype.removeNodes=function(t){o.default.map((0,p.tasksAll)(),function(e){var n=e.targetarr.split(",");if(n.length){var i=o.default.filter(n,function(e){return e!==t});(0,r.default)("#"+e.id).attr("data-targetarr",i.toString())}}),this.JspInstance.remove(t)},g.prototype.removeConnect=function(t){if(t){var e=t.targetId,n=t.sourceId,i=(0,p.rtTargetarrArr)(e);i.length&&(i=o.default.filter(i,function(t){return t!==n}),(0,r.default)("#"+e).attr("data-targetarr",i.toString())),this.JspInstance.deleteConnection(t),this.selectedElement={}}},g.prototype.copyNodes=function(t){var e,n=this,i=o.default.cloneDeep(o.default.find(c.default.state.dag.tasks,function(e){return e.id===t})),s=c.default.state.dag.locations[t];if(s){var l=""+((0,h.uuid)()+(0,h.uuid)()),u=i.id.length>8?i.id.substr(0,7):i.id,d=i.name.length>8?i.name.substr(0,7):i.name,f=(u||"")+"-"+l,m=(d||"")+"-"+l,g=s.x+100,v=s.y+40;(0,r.default)("#canvas").append((0,p.rtTasksTpl)({id:f,name:m,x:g,y:v,isAttachment:this.config.isAttachment,taskType:i.type}));var b=a.jsPlumb.getSelector(".statemachine-demo .w");i=Object.assign(i,{id:f,name:m}),c.default.commit("dag/addTasks",i),c.default.commit("dag/setLocations",((e={})[f]={name:m,targetarr:"",x:g,y:v},e)),this.JspInstance.batch(function(){n.initNode(b[b.length-1]),n.tasksEvent(f)})}},g.prototype.handleEventScreen=function(t){var e=t.item,n=!0;t.is?(e.icon="",n=!0):(e.icon="",n=!1);var i=(0,r.default)(".main-layout-model");n?i.addClass("dag-screen"):i.removeClass("dag-screen")},g.prototype.saveStore=function(){var t=this;return new Promise(function(e,n){var i=[],s={},a=[];o.default.map(o.default.cloneDeep(c.default.state.dag.tasks),function(t){if(function(t){return!!o.default.filter((0,p.tasksAll)(),function(e){return e.id===t}).length}(t.id)){var e=[],n=(0,r.default)("#"+t.id),i=n.attr("data-targetarr")?n.attr("data-targetarr").split(","):[];i.length&&o.default.map(i,function(t){e.push((0,r.default)("#"+t).find(".name-p").text())});var s=o.default.assign(t,{preTasks:e});"SUB_PROCESS"===t.type&&(s=o.default.omit(s,["maxRetryTimes","retryInterval"])),a.push(s)}}),o.default.map(t.JspInstance.getConnections(),function(t){i.push({endPointSourceId:t.sourceId,endPointTargetId:t.targetId})}),o.default.map((0,p.tasksAll)(),function(t){s[t.id]={name:t.name,targetarr:t.targetarr,x:t.x,y:t.y}}),c.default.commit("dag/setTasks",a),c.default.commit("dag/setLocations",s),c.default.commit("dag/setConnects",i),e({connects:i,tasks:a,locations:s})})},g.prototype.handleEvent=function(){this.JspInstance.bind("beforeDrop",function(t){var e=t.sourceId,n=t.targetId,i=void 0;return-1===o.default.findIndex((0,p.rtTargetarrArr)(n),function(t){return t===e})&&(!function t(e,n){for(var r in e)if(e[r]===n)i=n;else{var o=(0,p.rtTargetarrArr)(e[r]);if(!o.length)return t(n);t(o,n)}return i}((0,p.rtTargetarrArr)(e),n)&&((0,p.saveTargetarr)(e,n),c.default.commit("dag/setIsEditDag",!0),!0))})},g.prototype.jspBackfill=function(t){var e=this,n=t.connects,i=t.locations,r=t.largeJson;this.jsonHandle({largeJson:r,locations:i});var s=a.jsPlumb.getSelector(".statemachine-demo .w");this.JspInstance.batch(function(){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];return new Promise(function(r,o){n?e.store.dispatch("dag/getProcessTasksList",{processDefinitionId:t}).then(function(t){r(["ALL"].concat(i.default.map(t,function(t){return t.name})))}):e.store.dispatch("dag/getTaskListDefIdAll",{processDefinitionIdList:t}).then(function(t){r(t)})})},_onChangeDefinitionId:function(t){var e=this,n=t.value;this._getDependItemList(n).then(function(t){var i=e.dependItemList[e.itemIndex];i.depTasks="ALL",e.$set(e.dependItemList,e.itemIndex,e._rtOldParams(n,t,i))})},_onChangeCycle:function(t){var e=t.value,n=i.default.cloneDeep(r.dateValueList[e]);this.$set(this.dependItemList[this.itemIndex],"dateValue",n[0].value),this.$set(this.dependItemList[this.itemIndex],"dateValueList",n)},_rtNewParams:function(t,e){return{definitionId:t,depTasks:"ALL",depTasksList:e,cycle:"day",dateValue:"last1Days",dateValueList:i.default.cloneDeep(r.dateValueList.day),state:""}},_rtOldParams:function(t,e,n){return{definitionId:t,depTasks:n.depTasks||"ALL",depTasksList:e,cycle:n.cycle,dateValue:n.dateValue,dateValueList:i.default.cloneDeep(r.dateValueList[n.cycle]),state:n.state}},_removeTip:function(){$("body").find(".tooltip.fade.top.in").remove()}},watch:{},beforeCreate:function(){},created:function(){var t=this;this.isInstance="projects-instance-details"===this.router.history.current.name,this._getProcessList().then(function(){if(t.dependItemList.length){var e=i.default.map(t.dependItemList,function(t){return t.definitionId}).join(",");t._getDependItemList(e,!1).then(function(e){i.default.map(t.dependItemList,function(n,r){t.$set(t.dependItemList,r,t._rtOldParams(n.definitionId,["ALL"].concat(i.default.map(e[n.definitionId]||[],function(t){return t.name})),n))})})}else{var n=t.definitionList[0].value;t._getDependItemList(n).then(function(e){t.$emit("dependItemListEvent",i.default.concat(t.dependItemList,t._rtNewParams(n,e)))})}})},mounted:function(){},components:{}}},794:function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(28)),r=s(n(36)),o=s(n(642));function s(t){return t&&t.__esModule?t:{default:t}}e.default={name:"sub_process",data:function(){return{processDefinitionList:[],wdiCurr:null}},mixins:[o.default],props:{backfillItem:Object},methods:{_verification:function(){return this.wdiCurr?(this.$emit("on-params",{processDefinitionId:this.wdiCurr}),!0):(this.$message.warning(""+r.default.$t("请选择子工作流")),!1)},_handleWdiChanged:function(t){this.$emit("on-set-process-name",this._handleName(t.value))},_handleName:function(t){return i.default.filter(this.processDefinitionList,function(e){return t===e.id})[0].code}},watch:{},created:function(){var t,e=i.default.cloneDeep(this.store.state.dag.processListS),n=this.router.history.current.params.id||null;this.processDefinitionList=(t=i.default.map(e,function(t){return{id:t.id,code:t.name,disabled:!1}}),i.default.filter(t,function(t){return+t.id!=+n}));var r=this.backfillItem;i.default.isEmpty(r)?this.processDefinitionList.length&&(this.wdiCurr=this.processDefinitionList[0].id,this.$emit("on-set-process-name",this._handleName(this.wdiCurr))):this.wdiCurr=r.params.processDefinitionId},mounted:function(){}}},795:function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(28)),r=s(n(36)),o=s(n(642));function s(t){return t&&t.__esModule?t:{default:t}}e.default={name:"select-input",data:function(){return{isIconState:!1,isInput:!0}},mixins:[o.default],props:{value:String,list:Array},model:{prop:"value",event:"valueEvent"},methods:{_onChange:function(t){this.$emit("valueEvent",+t.value),this._setIconState(+t.value)},_setIconState:function(t){this.isIconState=i.default.includes(this.list,parseInt(t))},_ckIcon:function(){var t=this;this.isDetails||(this.isInput=!1,this.$emit("valueEvent",+this.list[0]),this.isIconState=!0,setTimeout(function(){t.isInput=!0},1))},_onBlur:function(){var t=$(this.$refs.input.$el).find("input")[0].value;this._validation(t)&&(this.$emit("valueEvent",t),this._setIconState(t))},_validation:function(t){return"0"===t||(!!/(^[0-9]*[1-9][0-9]*$)/.test(t)||(this.$message.warning(""+r.default.$t("请输入正整数")),this._ckIcon(),!1))}},watch:{},created:function(){this._setIconState(this.value)},mounted:function(){},components:{}}},796:function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(28)),r=o(n(642));function o(t){return t&&t.__esModule?t:{default:t}}e.default={name:"timeout-alarm",data:function(){return{enable:!1,strategy:[],interval:null}},mixins:[r.default],props:{backfillItem:Object},methods:{_onSwitch:function(t){this.strategy=t?["WARN"]:[],this.interval=t?30:null},_verification:function(){var t,e=this;return this.enable&&!this.strategy.length?(this.$message.warning(""+this.$t("超时策略必须选一个")),!1):!this.enable||parseInt(this.interval)||i.default.isInteger(this.interval)?(this.$emit("on-timeout",{strategy:(t=e.strategy,2===t.length&&"FAILED"===t[0]?[t[1],t[0]].join(","):t.join(",")),interval:parseInt(this.interval),enable:this.enable}),!0):(this.$message.warning(""+this.$t("超时时长必须为正整数")),!1)}},watch:{},created:function(){var t=this.backfillItem;!i.default.isEmpty(t)&&t.timeout&&(this.enable=t.timeout.enable||!1,this.strategy=i.default.split(t.timeout.strategy,",")||["WARN"],this.interval=t.timeout.interval||null)},mounted:function(){},components:{}}},798:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(702),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(801);var a=function(t){n(799)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},799:function(t,e,n){var i=n(800);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("57207148",i,!0,{})},800:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".start-process-model{width:860px;min-height:300px;background:#fff;border-radius:3px}.start-process-model .title-box{margin-bottom:18px}.start-process-model .title-box span{padding-left:30px;font-size:16px;padding-top:29px;display:block}.start-process-model .list{margin-bottom:14px}.start-process-model .list .text{width:140px;float:left;text-align:right;line-height:32px;padding-right:8px}.start-process-model .list .cont{width:350px;float:left}.start-process-model .list .cont .add-email-model{padding:20px}.start-process-model .submit{text-align:right;padding-right:30px;padding-top:10px;padding-bottom:30px}",""])},801:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"start-process-model"},[n("div",{staticClass:"title-box"},[n("span",[t._v(t._s(t.$t("启动前请先设置参数")))])]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("失败策略"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-radio-group",{staticStyle:{"margin-top":"7px"},model:{value:t.failureStrategy,callback:function(e){t.failureStrategy=e},expression:"failureStrategy"}},[n("x-radio",{attrs:{label:"CONTINUE"}},[t._v(t._s(t.$t("继续")))]),t._v(" "),n("x-radio",{attrs:{label:"END"}},[t._v(t._s(t.$t("结束")))])],1)],1)]),t._v(" "),"contextmenu"===t.sourceType?n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("节点执行"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-radio-group",{model:{value:t.taskDependType,callback:function(e){t.taskDependType=e},expression:"taskDependType"}},[n("x-radio",{attrs:{label:"TASK_POST"}},[t._v(t._s(t.$t("向后执行")))]),t._v(" "),n("x-radio",{attrs:{label:"TASK_PRE"}},[t._v(t._s(t.$t("向前执行")))]),t._v(" "),n("x-radio",{attrs:{label:"TASK_ONLY"}},[t._v(t._s(t.$t("仅执行当前节点")))])],1)],1)]):t._e(),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("通知策略"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-select",{staticStyle:{width:"200px"},model:{value:t.warningType,callback:function(e){t.warningType=e},expression:"warningType"}},t._l(t.warningTypeList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})}),1)],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("流程优先级"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("m-priority",{model:{value:t.processInstancePriority,callback:function(e){t.processInstancePriority=e},expression:"processInstancePriority"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("通知组"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-select",{staticStyle:{width:"200px"},attrs:{disabled:!t.notifyGroupList.length},scopedSlots:t._u([{key:"trigger",fn:function(e){var i=e.selectedModel;return n("x-input",{staticStyle:{width:"200px"},attrs:{readonly:"",placeholder:t.$t("请选择通知组"),value:i?i.label:""},on:{"on-click-icon":function(e){e.stopPropagation(),t.warningGroupId={}}}},[n("i",{directives:[{name:"show",rawName:"v-show",value:t.warningGroupId.id,expression:"warningGroupId.id"}],staticClass:"fa fa-times-circle",staticStyle:{"font-size":"15px",cursor:"pointer"},attrs:{slot:"suffix"},slot:"suffix"}),t._v(" "),n("i",{directives:[{name:"show",rawName:"v-show",value:!t.warningGroupId.id,expression:"!warningGroupId.id"}],staticClass:"ans-icon-arrow-down",staticStyle:{"font-size":"12px"},attrs:{slot:"suffix"},slot:"suffix"})])}}]),model:{value:t.warningGroupId,callback:function(e){t.warningGroupId=e},expression:"warningGroupId"}},[t._v(" "),t._l(t.notifyGroupList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})})],2)],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("收件人"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("m-email",{attrs:{"repeat-data":t.receiversCc},model:{value:t.receivers,callback:function(e){t.receivers=e},expression:"receivers"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("抄送人"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("m-email",{attrs:{"repeat-data":t.receivers},model:{value:t.receiversCc,callback:function(e){t.receiversCc=e},expression:"receiversCc"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("补数"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("div",{staticStyle:{"padding-top":"6px"}},[n("x-checkbox",{model:{value:t.execType,callback:function(e){t.execType=e},expression:"execType"}},[t._v(t._s(t.$t("是否补数")))])],1)])]),t._v(" "),t.execType?[n("div",{staticClass:"clearfix list",staticStyle:{margin:"-6px 0 16px 0"}},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("执行方式"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-radio-group",{staticStyle:{"margin-top":"7px"},model:{value:t.runMode,callback:function(e){t.runMode=e},expression:"runMode"}},[n("x-radio",{attrs:{label:"RUN_MODE_SERIAL"}},[t._v(t._s(t.$t("串行执行")))]),t._v(" "),n("x-radio",{attrs:{label:"RUN_MODE_PARALLEL"}},[t._v(t._s(t.$t("并行执行")))])],1)],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("时间"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-datepicker",{staticStyle:{width:"360px"},attrs:{"panel-num":2,placement:"bottom-start",value:t.scheduleTime,type:"daterange",placeholder:t.$t("选择日期区间"),format:"YYYY-MM-DD HH:mm:ss"},on:{"on-change":t._datepicker}})],1)])]:t._e(),t._v(" "),n("div",{staticClass:"submit"},[n("x-button",{attrs:{type:"text"},on:{click:function(e){return t.close()}}},[t._v(" "+t._s(t.$t("取消"))+" ")]),t._v(" "),n("x-button",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}],attrs:{type:"primary",shape:"circle",loading:t.spinnerLoading},on:{click:function(e){return t.ok()}}},[t._v(t._s(t.spinnerLoading?"Loading...":t.$t("启动"))+" ")])],1)],2)},staticRenderFns:[]};e.a=i},803:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(723),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(806);var a=function(t){n(804)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},804:function(t,e,n){var i=n(805);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("2edcb0af",i,!0,{})},805:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,'.log-pop{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.4);z-index:10}.log-pop .log-box{width:660px;height:520px;background:#fff;border-radius:3px;position:absolute;left:50%;top:50%;margin-left:-340px;margin-top:-250px}.log-pop .log-box .title{height:50px;border-bottom:1px solid #dcdedc}.log-pop .log-box .title span{font-size:16px;color:#333;padding-left:20px;display:inline-block;padding-top:16px}.log-pop .log-box .title .full-screen{position:absolute;right:20px;top:12px}.log-pop .log-box .title .full-screen a{color:#0097e0;font-size:12px;margin-left:10px}.log-pop .log-box .title .full-screen a i{vertical-align:middle}.log-pop .log-box .title .full-screen .clock>i{font-size:20px;vertical-align:middle;transform:scale(1)}.log-pop .log-box .title .full-screen .refresh-log>i{font-size:24px;vertical-align:middle;transform:scale(1)}.log-pop .log-box .title .full-screen .refresh-log.active>i{-webkit-transition-property:-webkit-transform;-webkit-transition-duration:1s;-moz-transition-property:-moz-transform;-moz-transition-duration:1s;-webkit-animation:rotateloading .4s linear infinite;-moz-animation:rotateloading .4s linear infinite;-o-animation:rotateloading .4s linear infinite;animation:rotateloading .4s linear infinite;transform:scale(.4);color:#999}.log-pop .log-box .content{height:calc(100% - 100px);background:#002a35;padding:6px 2px}.log-pop .log-box .content .content-log-box{width:100%;height:100%;word-break:break-all}.log-pop .log-box .content .content-log-box textarea{background:none;color:#9cabaf;border:0;font-family:"Microsoft Yahei,Arial,Hiragino Sans GB,tahoma,SimSun,sans-serif";font-weight:700;resize:none;line-height:1.6;padding:6px}.log-pop .log-box .operation{text-align:right;height:50px;line-height:44px;border-top:1px solid #dcdedc;padding-right:20px;background:#fff;position:relative}',""])},806:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"log-model"},[t.stateId&&"SUB_PROCESS"!==t.item.type?n("span",[t._t("history"),t._v(" "),n("span",{on:{click:t._ckLog}},[t._t("log")],2)],2):t._e(),t._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isLog||"list"===t.source,expression:"isLog || source === 'list'"}],staticClass:"log-pop"},[n("div",{staticClass:"log-box"},[n("div",{staticClass:"title"},[n("span",[t._v(t._s(t.$t("查看日志")))]),t._v(" "),n("div",{staticClass:"full-screen"},[n("a",{attrs:{href:"javascript:","data-container":"body","data-toggle":"tooltip",title:t.$t("下载日志")},on:{click:t._downloadLog}},[n("i",{staticClass:"iconfont",staticStyle:{"font-size":"20px"}},[t._v("")])]),t._v(" "),n("a",{staticClass:"refresh-log",class:t.loading?"active":"",attrs:{href:"javascript:","data-container":"body","data-toggle":"tooltip",title:t.$t("刷新日志")},on:{click:function(e){!t.loading&&t._refreshLog()}}},[n("i",{staticClass:"fa iconfont"},[t._v("")])]),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:!t.isScreen,expression:"!isScreen"}],attrs:{href:"javascript:","data-container":"body","data-toggle":"tooltip",title:t.$t("进入全屏")},on:{click:t._screenOpen}},[n("i",{staticClass:"iconfont"},[t._v("")])]),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:t.isScreen,expression:"isScreen"}],attrs:{href:"javascript:","data-container":"body","data-toggle":"tooltip",title:t.$t("取消全屏")},on:{click:t._screenClose}},[n("i",{staticClass:"iconfont"},[t._v("")])])])]),t._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"content-log-box"},[n("textarea",{staticClass:"textarea-ft",staticStyle:{width:"100%"},attrs:{id:"textarea-log",spellcheck:"false"}})])]),t._v(" "),n("div",{staticClass:"operation"},[n("x-button",{attrs:{type:"primary",shape:"circle"},on:{click:t.close}},[t._v(" "+t._s(t.$t("关闭"))+" ")])],1)])])])],1)},staticRenderFns:[]};e.a=i},905:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(773),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(981);var a=function(t){n(906)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},906:function(t,e,n){var i=n(907);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("4e643ae0",i,!0,{})},907:function(t,e,n){var i=n(124);(t.exports=n(34)(!1)).push([t.i,".dag-model{background:url("+i(n(908))+");height:calc(100vh - 100px)}.dag-model ::selection{background:transparent}.dag-model ::-moz-selection{background:transparent}.dag-model ::-webkit-selection{background:transparent}.dag-model .jsplumb-connector{z-index:1}.dag-model .endpoint-tasks{margin-top:22px}.dag-model .draggable>span{text-align:center;display:block;margin-top:-4px;padding:0 4px;width:200px;margin-left:-81px;position:absolute;left:0;bottom:-12px}.dag-model .draggable .fa{position:absolute;right:-8px;top:-8px;z-index:2}.dag-model .draggable .fa,.dag-model .draggable .icos{display:inline-block;cursor:pointer}.dag-model .draggable.active-tasks span{color:#0296df}.dag-model .icos{width:32px;height:32px;margin:2px;border-radius:3px;position:relative;z-index:9}.dag-model .icos-SHELL{background:url("+i(n(909))+") no-repeat 50% 50%}.dag-model .icos-SUB_PROCESS{background:url("+i(n(910))+") no-repeat 50% 50%}.dag-model .icos-PROCEDURE{background:url("+i(n(911))+") no-repeat 50% 50%}.dag-model .icos-SQL{background:url("+i(n(912))+") no-repeat 50% 50%}.dag-model .icos-SPARK{background:url("+i(n(913))+") no-repeat 50% 50%}.dag-model .icos-MR{background:url("+i(n(914))+") no-repeat 50% 50%}.dag-model .icos-PYTHON{background:url("+i(n(915))+") no-repeat 50% 50%}.dag-model .icos-DEPENDENT{background:url("+i(n(916))+") no-repeat 50% 50%}.dag-model .toolbar{width:60px;height:100%;background:#f2f3f7;float:left;border-radius:0 0 0 3px}.dag-model .toolbar .title{height:40px;line-height:40px;background:#40434c;text-align:center;border-radius:3px 0 0 0}.dag-model .toolbar .title span{font-size:14px;color:#fff;font-weight:700}.dag-model .toolbar .toolbar-btn{overflow:hidden;padding:11px 11px 0}.dag-model .toolbar .toolbar-btn .bar-box{width:36px;height:36px;float:left;margin-bottom:11px;border-radius:3px}.dag-model .toolbar .toolbar-btn .bar-box .disabled .icos{opacity:.6;-webkit-filter:grayscale(100%);-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray}.dag-model .toolbar .toolbar-btn .bar-box:nth-child(odd){margin-right:6px}.dag-model .toolbar .toolbar-btn .bar-box.active{background:#e1e2e3}.dag-model .dag-contect{float:left;width:calc(100% - 60px);height:100%}.dag-model .dag-contect .dag-toolbar{height:40px;background:#f2f3f7;position:relative;border-radius:0 3px 0 0}.dag-model .dag-contect .dag-toolbar .assist-btn{position:absolute;left:10px;top:8px}.dag-model .dag-contect .dag-toolbar .assist-btn>.name{padding-left:6px;vertical-align:middle}.dag-model .dag-contect .dag-toolbar .save-btn{position:absolute;right:8px;top:6px}.dag-model .dag-contect .dag-toolbar .save-btn .operation{overflow:hidden;display:inline-block;margin-right:10px}.dag-model .dag-contect .dag-toolbar .save-btn .operation a{float:left;width:28px;height:28px;text-align:center;line-height:28px;margin-left:6px;border-radius:3px;vertical-align:middle}.dag-model .dag-contect .dag-toolbar .save-btn .operation a i{color:#333}.dag-model .dag-contect .dag-toolbar .save-btn .operation a.active{background:#e1e2e3}.dag-model .dag-contect .dag-toolbar .save-btn .operation a.active i{color:#2d8cf0}.dag-model .dag-contect .dag-toolbar .save-btn .operation a.disable i{color:#bbb}.dag-model .dag-contect .dag-container{height:calc(100% - 40px);overflow-x:auto}.dag-model .dag-contect .dag-container::-webkit-scrollbar{width:9px}.dag-model .tools-model{height:60px;background:#f4f5f4;border-radius:3px 3px 0 0}.v-modal-custom-log{z-index:101}svg path:hover{cursor:pointer}#chart-container .ui-selected span,#chart-container .ui-selecting span{color:#0296df}.contextmenu{position:fixed;width:90px;background:#fff;border-radius:3px;box-shadow:0 2px 4px 1px rgba(0,0,0,.1);padding:4px 0;visibility:hidden}.contextmenu a{height:30px;line-height:28px;display:block}.contextmenu a i{font-size:16px;vertical-align:middle;margin-left:10px}.contextmenu a span{vertical-align:middle;font-size:12px;color:#666;padding-left:2px}.contextmenu a:hover{background:#f6faff}.contextmenu a#startRunning i{color:#35cd75}.contextmenu a#editNodes i{color:#0097e0}.contextmenu a#removeNodes i{color:#f04d4e}.contextmenu a#copyNodes i{color:#fabc05}.contextmenu a.disbled i,.contextmenu a.disbled span{color:#aaa!important}.jtk-demo{width:8000px;height:5000px;position:relative}.jtk-demo svg:not(:root){z-index:11}.jtk-demo-canvas{height:100%}.jtk-bootstrap{min-height:100vh;display:flex;flex-direction:column}.jtk-bootstrap .jtk-page-container{display:flex;width:100vw;justify-content:center;flex:1}.jtk-bootstrap .jtk-container{width:60%;max-width:800px}.jtk-bootstrap-wide .jtk-container{width:80%;max-width:1187px}.jtk-demo-main{position:relative;margin-top:98px}.jtk-demo-main .description{font-size:13px;margin-top:25px;padding:13px;margin-bottom:22px;background-color:#f4f5ef}.jtk-demo-main .description li{list-style-type:disc!important}.jtk-demo-canvas{display:flex}.canvas-wide{padding-top:10px;margin-left:0;-ms-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-webkit-transition:all .1s ease-out;-o-transition:all .1s ease-out}.jtk-demo-dataset{text-align:left;max-height:600px;overflow:auto}.demo-title{float:left;font-size:18px}.controls{top:25px;color:#fff;margin-right:10px;position:absolute;left:25px;z-index:1}.controls i{background-color:#3e7e9c;border-radius:4px;cursor:pointer;margin-right:0;padding:4px}.w{position:absolute;z-index:4;font-size:11px;-webkit-transition:background-color .25s ease-in;-moz-transition:background-color .25s ease-in;transition:background-color .25s ease-in;border:7px solid transparent;border-bottom:30px solid transparent}.w .icos{width:50px;height:50px;box-shadow:2px 2px 19px #e0e0e0;-o-box-shadow:2px 2px 19px #e0e0e0;-webkit-box-shadow:2px 2px 19px #e0e0e0;-moz-box-shadow:2px 2px 19px #e0e0e0;-moz-border-radius:8px;border-radius:8px;opacity:.8;cursor:move;background-color:#fff}.w .name-p{position:absolute;left:50%;bottom:-24px;width:200px;text-align:center;margin-left:-100px}.w .ban-p{position:absolute;left:-4px;top:36px;z-index:21}.w .ban-p i{font-size:18px;color:red;cursor:pointer}.w .state-p{width:20px;height:20px;position:absolute;top:-20px;left:18px;text-align:center;cursor:pointer}.w .state-p b{font-weight:400}.aLabel{-webkit-transition:background-color .25s ease-in;-moz-transition:background-color .25s ease-in;transition:background-color .25s ease-in}.aLabel.jtk-hover .icos,.jtk-source-hover .icos,.jtk-target-hover .icos{background-color:#333;color:#333}.aLabel.jtk-hover .icos,.jtk-source-hover .icos,.jtk-target-hover .icos,.jtk-tasks-active .icos{-ms-transition:all .6s ease-out;-moz-transition:all .6s ease-out;-webkit-transition:all .6s ease-out;-o-transition:all .6s ease-out}.jtk-tasks-active .icos{background-color:#2db7f5;color:#0097e0}.aLabel{background-color:#fff;opacity:.8;padding:.3em;border-radius:.5em;border:1px solid #346789;cursor:pointer}.jtk-ep .ep{display:block}.ep{position:absolute;top:-4%;right:-1px;width:1em;height:1em;z-index:12;background-color:orange;cursor:pointer;box-shadow:0 0 2px #000;-webkit-transition:-webkit-box-shadow .25s ease-in;-moz-transition:-moz-box-shadow .25s ease-in;transition:box-shadow .25s ease-in;border-radius:100%;display:none}.ep:hover{box-shadow:0 0 6px #000}.statemachine-demo .jtk-endpoint{z-index:3}#canvas .dot-style{opacity:0}.from-mirror{width:100%;position:relative;z-index:0}.from-mirror .CodeMirror{height:auto;min-height:72px}.from-mirror .CodeMirror-scroll{height:auto;min-height:72px;overflow-y:hidden;overflow-x:auto}.ans-drawer.ans-drawer-right{width:628px;left:auto}",""])},908:function(t,e,n){t.exports=n.p+"images/dag_bg.png?6a0c3839385c7d50f21acf06989addf4"},909:function(t,e,n){t.exports=n.p+"images/toolbar_SHELL.png?249b36a2f0687b942c0dc26e85bf5c5d"},910:function(t,e,n){t.exports=n.p+"images/toolbar_SUB_PROCESS.png?a5d6b24489e0142c643821cb30f0fa16"},911:function(t,e,n){t.exports=n.p+"images/toolbar_PROCEDURE.png?9418236aaa8d10bda2ba72ff70b4cd94"},912:function(t,e,n){t.exports=n.p+"images/toolbar_SQL.png?ffd333b2d8f16967463a90dc431ce604"},913:function(t,e,n){t.exports=n.p+"images/toolbar_SPARK.png?4fb1f1c7acb1fcbe5ffd39bf99cf2453"},914:function(t,e,n){t.exports=n.p+"images/toolbar_MR.png?835bcf5a478ab55c8fe7510ad6c4ee7e"},915:function(t,e,n){t.exports=n.p+"images/toolbar_PYTHON.png?b2f3d6aa01059c43b4d6dff6a37f8bc4"},916:function(t,e,n){t.exports=n.p+"images/toolbar_DEPENDENT.png?392311ad751588b7dd0e5f842d217254"},917:function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(28)),r=n(721),o=l(n(774)),s=l(n(919)),a=l(n(91));function l(t){return t&&t.__esModule?t:{default:t}}var c=function(){this.dag={},this.instance={}};c.prototype.init=function(t){var e=t.dag,n=t.instance;this.dag=e,this.instance=n},c.prototype.setConfig=function(t){o.default.setConfig(t)},c.prototype.create=function(){var t=this;r.jsPlumb.ready(function(){o.default.init({dag:t.dag,instance:t.instance}),o.default.handleEvent(),o.default.draggable()})},c.prototype.toolbarEvent=function(t){var e=t.item,n=t.code,i=t.is;switch(n){case"pointer":o.default.handleEventPointer(i);break;case"line":o.default.handleEventLine(i);break;case"remove":o.default.handleEventRemove();break;case"screen":o.default.handleEventScreen({item:e,is:i});break;case"download":s.default.download({dagThis:this.dag})}},c.prototype.backfill=function(){var t=this;r.jsPlumb.ready(function(){o.default.init({dag:t.dag,instance:t.instance}),o.default.jspBackfill({connects:i.default.cloneDeep(a.default.state.dag.connects),locations:i.default.cloneDeep(a.default.state.dag.locations),largeJson:i.default.cloneDeep(a.default.state.dag.tasks)})})},c.prototype.saveStore=function(){return o.default.saveStore()},e.default=new c},918:function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(71)),r=o(n(597));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){this.element={},this.zoom={},this.scale=1};s.prototype.init=function(){var t=this,e=(0,i.default)("#canvas");this.element=r.default.select("#canvas"),this.zoom=r.default.behavior.zoom().scaleExtent([.5,2]).on("zoom",function(){t.scale=r.default.event.scale,e.css("transform","translate("+r.default.event.translate[0]+"px,"+r.default.event.translate[1]+"px) scale("+t.scale+")"),e.css("transform-origin","0 0")}),this.element.call(this.zoom).on("dblclick.zoom",null)},e.default=new s},919:function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(28)),r=l(n(598)),o=n(698),s=l(n(599)),a=n(125);function l(t){return t&&t.__esModule?t:{default:t}}var c=function(){this.dag={}};c.prototype.maxVal=function(){return new Promise(function(t,e){var n=(0,o.tasksAll)(),r=$(".dag-container"),s=parseInt(i.default.maxBy(n,"y").y+60),a=parseInt(i.default.maxBy(n,"x").x+100);t({width:a>600?a:r.width(),height:(s>500?s:r.height())+100})})},c.prototype.download=function(t){var e=this,n=t.dagThis;this.dag=n,this.maxVal().then(function(t){var n=t.width,i=t.height,o=$("#canvas"),l=[],c=[];o.find("svg").each(function(t,e){var n=e.parentNode,i=e.outerHTML.trim(),o=document.createElement("canvas");(0,r.default)(o,i),e.style.position&&(o.style.position+=e.style.position,o.style.left+=e.style.left,o.style.top+=e.style.top),l.push({parent:n,child:e}),n.removeChild(e),c.push({parent:n,child:o}),n.appendChild(o)});var u=document.createElement("canvas");u.width=1*n,u.height=1*i;var d=u.getContext("2d");d.scale(1,1);var h=o.get(0).getBoundingClientRect();d.translate(-h.left,-h.top),(0,s.default)(o[0],{dpi:2*window.devicePixelRatio,scale:1,width:n,canvas:u,heigth:i,useCORS:!0}).then(function(t){var n=e.dag.name+".png",i=t.toDataURL("image/png",1);setTimeout(function(){var t=$("").attr("href",i).attr("download",n).appendTo("body");t[0].click(),t.remove()},100),setTimeout(function(){(0,a.findComponentDownward)(e.dag.$root,e.dag.type+"-details").init()},500)})})},e.default=new c},920:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(775),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(930);var a=function(t){n(921)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},921:function(t,e,n){var i=n(922);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("943b2760",i,!0,{})},922:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".udp-model{width:616px;min-height:326px;background:#fff;border-radius:3px;padding:20px 0;position:relative}.udp-model .contpi-boxt{max-height:600px;overflow-y:scroll;padding:0 20px}.udp-model .title{line-height:36px;padding-bottom:10px}.udp-model .title span{font-size:16px;color:#333}.udp-model .bottom{position:absolute;bottom:0;left:0;width:100%;text-align:right;height:56px;line-height:56px;border-top:1px solid #dcdedc;background:#fff}.udp-model .bottom .submit{padding-right:20px;margin-top:-4px}.udp-model .bottom .lint-pt{position:absolute;left:20px;top:-2px}.udp-model .bottom .lint-pt>label{font-weight:400}.udp-model .content{padding-bottom:50px}",""])},923:function(t,e,n){var i=n(924);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("65e782c4",i,!0,{})},924:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".user-def-params-model .select-listpp{margin-bottom:6px}.user-def-params-model .select-listpp .lt-add{padding-left:4px}.user-def-params-model .select-listpp .lt-add a .iconfont{font-size:18px;vertical-align:middle;margin-bottom:-2px;display:inline-block}.user-def-params-model .add a .iconfont{font-size:18px;vertical-align:middle;display:inline-block;margin-top:1px}",""])},925:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user-def-params-model"},[t._l(t.localParamsList,function(e,i){return n("div",{key:e.id,staticClass:"select-listpp",on:{click:function(e){return t._getIndex(i)}}},[n("x-input",{staticStyle:{width:"164px"},attrs:{disabled:t.isDetails,type:"text",placeholder:t.$t("prop(必填)"),maxlength:"64"},on:{"on-blur":function(e){return t._verifProp()}},model:{value:t.localParamsList[i].prop,callback:function(e){t.$set(t.localParamsList[i],"prop",e)},expression:"localParamsList[$index].prop"}}),t._v(" "),n("x-select",{staticStyle:{width:"80px"},attrs:{disabled:t.isDetails||!t.hide},on:{change:t._handleDirectChanged},model:{value:t.localParamsList[i].direct,callback:function(e){t.$set(t.localParamsList[i],"direct",e)},expression:"localParamsList[$index].direct"}},t._l(t.directList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1),t._v(" "),n("x-select",{staticStyle:{width:"118px"},attrs:{disabled:t.isDetails||!t.hide},on:{change:t._handleTypeChanged},model:{value:t.localParamsList[i].type,callback:function(e){t.$set(t.localParamsList[i],"type",e)},expression:"localParamsList[$index].type"}},t._l(t.typeList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1),t._v(" "),n("x-input",{staticStyle:{width:"150px",position:"relative","margin-bottom":"-2px"},attrs:{disabled:t.isDetails,type:"text",placeholder:t.$t("value(选填)"),maxlength:"64"},on:{"on-blur":function(e){return t._handleValue()}},model:{value:t.localParamsList[i].value,callback:function(e){t.$set(t.localParamsList[i],"value",e)},expression:"localParamsList[$index].value"}}),t._v(" "),n("span",{staticClass:"lt-add"},[n("a",{staticStyle:{color:"red"},attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._removeUdp(i)}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip",title:t.$t("删除")}},[t._v("")])])]),t._v(" "),i===t.localParamsList.length-1?n("span",{staticClass:"add"},[n("a",{attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._addUdp()}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip",title:t.$t("添加")}},[t._v("")])])]):t._e()],1)}),t._v(" "),t.localParamsList.length?t._e():n("span",{staticClass:"add"},[n("a",{attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._addUdp()}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip",title:t.$t("添加")}},[t._v("")])])])],2)},staticRenderFns:[]};e.a=i},926:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(778),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(929);var a=function(t){n(927)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},927:function(t,e,n){var i=n(928);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("6b10ab61",i,!0,{})},928:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".affirm-model .popup-model .top-p{height:50px}.affirm-model .popup-model .content-p{min-height:0;min-width:250px}",""])},929:function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"affirm-model"},[e("m-popup",{attrs:{"ok-text":this.$t("确认保存"),nameText:this.$t("是否保存DAG图")},on:{close:this._close,ok:this._ok}})],1)},staticRenderFns:[]};e.a=i},930:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"udp-model"},[n("div",{staticClass:"scrollbar contpi-boxt"},[n("div",{staticClass:"title"},[n("span",[t._v(t._s(t.$t("设置DAG图名称")))])]),t._v(" "),n("div",[n("x-input",{attrs:{type:"text",disabled:"projects-instance-details"===t.router.history.current.name,placeholder:t.$t("请输入name(必填)")},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),t._v(" "),"projects-instance-details"!==t.router.history.current.name?[n("div",{staticStyle:{"padding-top":"12px"}},[n("x-input",{attrs:{type:"textarea",autosize:{minRows:2},placeholder:t.$t("请输入desc(选填)"),autocomplete:"off"},model:{value:t.desc,callback:function(e){t.desc=e},expression:"desc"}})],1)]:t._e(),t._v(" "),n("div",{staticClass:"title",staticStyle:{"padding-top":"6px"}},[n("span",[t._v(t._s(t.$t("设置全局")))])]),t._v(" "),n("div",{staticClass:"content"},[n("div",[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.udpList,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],2),t._v(" "),n("div",{staticClass:"bottom"},[n("div",{staticClass:"submit"},["projects-instance-details"===t.router.history.current.name?[n("div",{staticClass:"lint-pt"},[n("x-checkbox",{model:{value:t.syncDefine,callback:function(e){t.syncDefine=e},expression:"syncDefine"}},[t._v(t._s(t.$t("是否更新流程定义")))])],1)]:t._e(),t._v(" "),n("x-button",{attrs:{type:"text"},on:{click:function(e){return t.close()}}},[t._v(" "+t._s(t.$t("取消"))+" ")]),t._v(" "),n("x-button",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}],attrs:{type:"primary",shape:"circle"},on:{click:function(e){return t.ok()}}},[t._v(t._s(t.$t("添加")))])],2)])])},staticRenderFns:[]};e.a=i},931:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(779),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(980);var a=function(t){n(932)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},932:function(t,e,n){var i=n(933);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("12da3a93",i,!0,{})},933:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".form-model-model{width:720px;position:relative}.form-model-model .title-box{height:61px;border-bottom:1px solid #dcdedc;position:relative}.form-model-model .title-box .name{position:absolute;left:24px;top:18px;font-size:16px}.form-model-model .title-box .go-subtask{position:absolute;right:30px;top:17px}.form-model-model .title-box .go-subtask a{font-size:14px;color:#0097e0;margin-left:10px}.form-model-model .title-box .go-subtask a i.iconfont{font-size:18px;vertical-align:middle}.form-model-model .title-box .go-subtask a em{color:#333;font-style:normal;vertical-align:middle;padding-left:2px}.form-model-model .title-box .go-subtask a:hover em{text-decoration:underline}.form-model-model .bottom-box{position:absolute;bottom:0;left:0;width:100%;text-align:right;height:60px;line-height:60px;border-top:1px solid #dcdedc;background:#fff}.form-model-model .bottom-box .submit{padding-right:20px;position:relative;z-index:9}.form-model-model .content-box{overflow-y:scroll;height:calc(100vh - 61px);padding-bottom:60px}.from-model{padding-top:26px}.from-model>div{clear:both}.from-model .list{position:relative;margin-bottom:10px}.from-model .list .text-box{width:110px;float:left;text-align:right;margin-right:10px}.from-model .list .text-box>span{font-size:14px;color:#777;display:inline-block;padding-top:6px}.from-model .list .cont-box{width:580px;float:left}.from-model .list .cont-box .label-box{width:100%}.from-model .list .cont-box .text-b{font-size:14px;color:#777;display:inline-block;padding:0 6px 0 20px}.from-model .list .add{line-height:32px}.from-model .list .add a{color:#0097e0}.from-model .list .list-t{width:50%;float:left}",""])},934:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(780),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(943);var a=function(t){n(935)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},935:function(t,e,n){var i=n(936);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("0e2ba7fa",i,!0,{})},936:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".spark-model .list-box-4p .list{margin-bottom:14px}.spark-model .list-box-4p .list .sp1{float:left;width:112px;text-align:right;margin-right:10px;font-size:14px;color:#777;display:inline-block;padding-top:6px}.spark-model .list-box-4p .list .sp2{float:left;margin-right:4px}",""])},937:function(t,e,n){var i=n(938);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("5fa6a761",i,!0,{})},938:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".cont-box .label-box .ans-radio-group{margin-top:7px}.v-checkbox-wrapper.v-checkbox-wrapper-disabled{color:#999}.v-checkbox-wrapper.v-checkbox-wrapper-disabled .v-checkbox .v-checkbox-inner{border-color:#dddee1;background:#f7f7f7;color:#bbbec4}.v-checkbox-wrapper.v-checkbox-wrapper-disabled .v-checkbox .v-checkbox-inner:after{border:2px solid #ddd;border-top:0;border-left:0}",""])},939:function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"clearfix list"},[e("div",{staticClass:"text-box"},[e("span",[this._t("text")],2)]),this._v(" "),e("div",{staticClass:"cont-box"},[e("div",{staticClass:"label-box"},[this._t("content")],2)])])},staticRenderFns:[]};e.a=i},940:function(t,e,n){var i=n(941);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("5e8391b0",i,!0,{})},941:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".resource-list-model .select-listpp{margin-bottom:6px}.resource-list-model .select-listpp .lt-add{padding-left:4px}.resource-list-model .select-listpp .lt-add a .iconfont{font-size:18px;vertical-align:middle;margin-bottom:-2px;display:inline-block}.resource-list-model>.add a .iconfont{font-size:18px;vertical-align:middle;display:inline-block;margin-top:1px}",""])},942:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"resource-list-model"},[n("x-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",disabled:t.isDetails,placeholder:t.$t("请选择资源")},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.resList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)},staticRenderFns:[]};e.a=i},943:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"spark-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("程序类型")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-select",{staticStyle:{width:"100px"},attrs:{disabled:t.isDetails},model:{value:t.programType,callback:function(e){t.programType=e},expression:"programType"}},t._l(t.programTypeList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)]),t._v(" "),"PYTHON"!==t.programType?n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("主函数的class")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("请输入mainClass"),autocomplete:"off"},model:{value:t.mainClass,callback:function(e){t.mainClass=e},expression:"mainClass"}})],1)]):t._e(),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("主jar包")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("请选择主jar包"),filterable:"",disabled:t.isDetails},model:{value:t.mainJar,callback:function(e){t.mainJar=e},expression:"mainJar"}},t._l(t.mainJarList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("命令行参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{autosize:{minRows:2},disabled:t.isDetails,type:"textarea",placeholder:t.$t("请输入命令行参数"),autocomplete:"off"},model:{value:t.mainArgs,callback:function(e){t.mainArgs=e},expression:"mainArgs"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("其他参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,autosize:{minRows:2},type:"textarea",placeholder:t.$t("请输入其他参数"),autocomplete:"off"},model:{value:t.others,callback:function(e){t.others=e},expression:"others"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("资源")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-resources",{ref:"refResources",attrs:{"resource-list":t.resourceList},on:{"on-resourcesData":t._onResourcesData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("自定义参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},944:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(783),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(952),a=n(27)(r.a,s.a,!1,null,null,null);e.default=a.exports},945:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(784),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(948);var a=function(t){n(946)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},946:function(t,e,n){var i=n(947);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("323d7c56",i,!0,{})},947:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".udfs-model .add-udfs{color:#0097e0}.udfs-model .t-list{margin-bottom:14px}.udfs-model .t-list .v-btn{width:208px}.udfs-model .t-list .delect-btn{display:inline-block;width:54px!important;vertical-align:middle;background:red;border-color:red}.udfs-model .t-list .delect-btn span{vertical-align:middle!important}",""])},948:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"udfs-model"},[n("x-select",{staticStyle:{width:"100%"},attrs:{multiple:"",disabled:t.isDetails},model:{value:t.udfsStr,callback:function(e){t.udfsStr=e},expression:"udfsStr"}},t._l(t.udfsList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})}),1)],1)},staticRenderFns:[]};e.a=i},949:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(785),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(950),a=n(27)(r.a,s.a,!1,null,null,null);e.default=a.exports},950:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sql-type-model"},[n("x-select",{staticStyle:{width:"90px"},attrs:{disabled:t.isDetails},on:{"on-change":t._handleSqlTypeChanged},model:{value:t.sqlTypeId,callback:function(e){t.sqlTypeId=e},expression:"sqlTypeId"}},t._l(t.sqlTypeList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})}),1)],1)},staticRenderFns:[]};e.a=i},951:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datasource-model"},[n("div",{staticClass:"select-listpp"},[n("x-select",{staticStyle:{width:"160px"},attrs:{disabled:t.isDetails},on:{"on-change":t._handleTypeChanged},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(t.typeList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1),t._v(" "),n("x-select",{staticStyle:{width:"288px"},attrs:{placeholder:t.$t("请选择数据源"),disabled:t.isDetails},model:{value:t.datasource,callback:function(e){t.datasource=e},expression:"datasource"}},t._l(t.datasourceList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})}),1)],1)])},staticRenderFns:[]};e.a=i},952:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sql-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("数据源")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-datasource",{ref:"refDs",attrs:{data:{type:t.type,datasource:t.datasource}},on:{"on-dsData":t._onDsData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("sql类型")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticStyle:{display:"inline-block"}},[n("m-sql-type",{attrs:{"sql-type":t.sqlType},on:{"on-sqlType":t._onSqlType}})],1),t._v(" "),t.sqlType?t._e():n("div",{staticStyle:{display:"inline-block","padding-left":"10px","margin-top":"2px"}},[n("x-checkbox-group",{model:{value:t.showType,callback:function(e){t.showType=e},expression:"showType"}},[n("x-checkbox",{attrs:{label:"TABLE",disabled:t.isDetails}},[t._v(t._s(t.$t("表格")))]),t._v(" "),n("x-checkbox",{attrs:{label:"ATTACHMENT",disabled:t.isDetails}},[t._v(t._s(t.$t("附件")))])],1)],1)])]),t._v(" "),n("m-list-box",{directives:[{name:"show",rawName:"v-show",value:"HIVE"===t.type,expression:"type === 'HIVE'"}]},[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("sql参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("请输入格式为")+" key1=value1;key2=value2...",autocomplete:"off"},model:{value:t.connParams,callback:function(e){t.connParams=e},expression:"connParams"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("sql语句")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticClass:"from-mirror"},[n("textarea",{staticStyle:{opacity:"0"},attrs:{id:"code-sql-mirror",name:"code-sql-mirror"}})])])]),t._v(" "),"HIVE"===t.type?n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("UDF函数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-udfs",{ref:"refUdfs",attrs:{udfs:t.udfs,type:t.type},on:{"on-udfsData":t._onUdfsData}})],1)]):t._e(),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("自定义参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams},on:{"on-udpData":t._onUdpData}})],1)])],1)},staticRenderFns:[]};e.a=i},953:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(788),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(954),a=n(27)(r.a,s.a,!1,null,null,null);e.default=a.exports},954:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"shell-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("脚本")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticClass:"from-mirror"},[n("textarea",{staticStyle:{opacity:"0"},attrs:{id:"code-shell-mirror",name:"code-shell-mirror"}})])])]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("资源")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-resources",{ref:"refResources",attrs:{"resource-list":t.resourceList},on:{"on-resourcesData":t._onResourcesData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("自定义参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},955:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(789),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(958);var a=function(t){n(956)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},956:function(t,e,n){var i=n(957);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("0c78d5d0",i,!0,{})},957:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".spark-model .list-box-4p .list{margin-bottom:14px}.spark-model .list-box-4p .list .sp1{float:left;width:112px;text-align:right;margin-right:10px;font-size:14px;color:#777;display:inline-block;padding-top:6px}.spark-model .list-box-4p .list .sp2{float:left;margin-right:4px}.spark-model .list-box-4p .list .sp3{width:176px}",""])},958:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"spark-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("程序类型")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-select",{staticStyle:{width:"130px"},attrs:{disabled:t.isDetails},model:{value:t.programType,callback:function(e){t.programType=e},expression:"programType"}},t._l(t.programTypeList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)]),t._v(" "),"PYTHON"!==t.programType?n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("主函数的class")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("请输入mainClass"),autocomplete:"off"},model:{value:t.mainClass,callback:function(e){t.mainClass=e},expression:"mainClass"}})],1)]):t._e(),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("主jar包")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("请选择主jar包"),filterable:"",disabled:t.isDetails},model:{value:t.mainJar,callback:function(e){t.mainJar=e},expression:"mainJar"}},t._l(t.mainJarList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("部署方式")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-radio-group",{model:{value:t.deployMode,callback:function(e){t.deployMode=e},expression:"deployMode"}},[n("x-radio",{attrs:{label:"cluster",disabled:t.isDetails}}),t._v(" "),n("x-radio",{attrs:{label:"client",disabled:t.isDetails}}),t._v(" "),n("x-radio",{attrs:{label:"local",disabled:t.isDetails}})],1)],1)]),t._v(" "),n("div",{staticClass:"list-box-4p"},[n("div",{staticClass:"clearfix list"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.$t("Driver内核数")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"200px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("请输入Driver内核数"),autocomplete:"off"},model:{value:t.driverCores,callback:function(e){t.driverCores=e},expression:"driverCores"}})],1),t._v(" "),n("span",{staticClass:"sp1 sp3"},[t._v(t._s(t.$t("Driver内存数")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"186px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("请输入Driver内存数"),autocomplete:"off"},model:{value:t.driverMemory,callback:function(e){t.driverMemory=e},expression:"driverMemory"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.$t("Executor数量")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"200px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("请输入Executor数量"),autocomplete:"off"},model:{value:t.numExecutors,callback:function(e){t.numExecutors=e},expression:"numExecutors"}})],1),t._v(" "),n("span",{staticClass:"sp1 sp3"},[t._v(t._s(t.$t("Executor内存数")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"186px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("请输入Executor内存数"),autocomplete:"off"},model:{value:t.executorMemory,callback:function(e){t.executorMemory=e},expression:"executorMemory"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.$t("Executor内核数")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"200px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("请输入Executor内核数"),autocomplete:"off"},model:{value:t.executorCores,callback:function(e){t.executorCores=e},expression:"executorCores"}})],1)])]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("命令行参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{autosize:{minRows:2},disabled:t.isDetails,type:"textarea",placeholder:t.$t("请输入命令行参数"),autocomplete:"off"},model:{value:t.mainArgs,callback:function(e){t.mainArgs=e},expression:"mainArgs"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("其他参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,autosize:{minRows:2},type:"textarea",placeholder:t.$t("请输入其他参数")},model:{value:t.others,callback:function(e){t.others=e},expression:"others"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("资源")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-resources",{ref:"refResources",attrs:{"resource-list":t.resourceList},on:{"on-resourcesData":t._onResourcesData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("自定义参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},959:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(790),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(960),a=n(27)(r.a,s.a,!1,null,null,null);e.default=a.exports},960:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"shell-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("脚本")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticClass:"from-mirror"},[n("textarea",{staticStyle:{opacity:"0"},attrs:{id:"code-python-mirror",name:"code-python-mirror"}})])])]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("资源")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-resources",{ref:"refResources",attrs:{"resource-list":t.resourceList},on:{"on-resourcesData":t._onResourcesData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("自定义参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},961:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(791),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(964);var a=function(t){n(962)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},962:function(t,e,n){var i=n(963);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("2f56b82a",i,!0,{})},963:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,"",""])},964:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"procedure-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("数据源")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-datasource",{ref:"refDs",attrs:{supportType:["MYSQL","POSTGRESQL"],data:{type:t.type,datasource:t.datasource}},on:{"on-dsData":t._onDsData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("方法")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{type:"input",disabled:t.isDetails,placeholder:t.$t("请输入method(选填)"),autocomplete:"off"},model:{value:t.method,callback:function(e){t.method=e},expression:"method"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("自定义参数")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},965:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(792),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(972);var a=function(t){n(966)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},966:function(t,e,n){var i=n(967);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("cd1033ee",i,!0,{})},967:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".dependence-model{margin-top:-10px}.dependence-model .dep-opt{margin-bottom:10px;padding-top:3px;line-height:24px}.dependence-model .dep-opt .add-dep{color:#0097e0;margin-right:10px}.dependence-model .dep-opt .add-dep i{font-size:18px;vertical-align:middle}.dependence-model .dep-list{margin-bottom:16px;position:relative;border-left:1px solid #eee;padding-left:16px;margin-left:-16px;transition:all .2s ease-out;padding-bottom:20px}.dependence-model .dep-list:hover{border-left:1px solid #0097e0;transition:all .2s ease-out}.dependence-model .dep-list:hover .dep-line-pie{transition:all .2s ease-out;border:1px solid #0097e0;background:#0097e0;color:#fff}.dependence-model .dep-list .dep-line-pie{transition:all .2s ease-out;position:absolute;width:20px;height:20px;border:1px solid #e2e2e2;text-align:center;top:50%;margin-top:-20px;z-index:1;left:-10px;border-radius:10px;background:#fff;font-size:12px;cursor:pointer}.dependence-model .dep-list .dep-line-pie::selection{background:transparent}.dependence-model .dep-list .dep-line-pie::-moz-selection{background:transparent}.dependence-model .dep-list .dep-line-pie::-webkit-selection{background:transparent}.dependence-model .dep-list .dep-delete{position:absolute;bottom:-6px;left:14px;font-size:18px;color:red;cursor:pointer}.dependence-model .dep-box{border-left:4px solid #eee;margin-left:-46px;padding-left:42px;position:relative}.dependence-model .dep-box .dep-relation{position:absolute;width:20px;height:20px;border:1px solid #e2e2e2;text-align:center;top:50%;margin-top:-10px;z-index:1;left:-12px;border-radius:10px;background:#fff;font-size:12px;cursor:pointer}.dependence-model .dep-box .dep-relation::selection{background:transparent}.dependence-model .dep-box .dep-relation::-moz-selection{background:transparent}.dependence-model .dep-box .dep-relation::-webkit-selection{background:transparent}",""])},968:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(793),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(971);var a=function(t){n(969)},l=n(27)(r.a,s.a,!1,a,null,null);e.default=l.exports},969:function(t,e,n){var i=n(970);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("3fb67eba",i,!0,{})},970:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".dep-list-model{position:relative;min-height:32px}.dep-list-model .list{margin-bottom:6px}.dep-list-model .list .operation{padding-left:4px}.dep-list-model .list .operation a i{font-size:18px;vertical-align:middle}.dep-list-model .list .operation .delete{color:red}.dep-list-model .list .operation .add{color:#0097e0}.dep-list-model .instance-state{display:inline-block;width:24px}.dep-list-model .instance-state .iconfont{font-size:20px;vertical-align:middle;cursor:pointer;margin-left:6px}.dep-list-model .instance-state .iconfont.icon-SUCCESS{color:#3c0}.dep-list-model .instance-state .iconfont.icon-WAITING{color:#888}.dep-list-model .instance-state .iconfont.icon-FAILED{color:#f31322}",""])},971:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dep-list-model"},t._l(t.dependItemList,function(e,i){return n("div",{staticClass:"list",on:{click:function(e){t.itemIndex=i}}},[n("x-select",{style:{width:t.isInstance?"140px":"162px"},attrs:{filterable:"",disabled:t.isDetails},on:{"on-change":t._onChangeDefinitionId},model:{value:e.definitionId,callback:function(n){t.$set(e,"definitionId",n)},expression:"el.definitionId"}},t._l(t.definitionList,function(t){return n("x-option",{key:t.value,attrs:{value:t.value,label:t.label}})}),1),t._v(" "),n("x-select",{style:{width:t.isInstance?"144px":"156px"},attrs:{filterable:"",disabled:t.isDetails},model:{value:e.depTasks,callback:function(n){t.$set(e,"depTasks",n)},expression:"el.depTasks"}},t._l(e.depTasksList||[],function(t){return n("x-option",{key:t,attrs:{value:t,label:t}})}),1),t._v(" "),n("x-select",{staticStyle:{width:"80px"},attrs:{disabled:t.isDetails},on:{"on-change":t._onChangeCycle},model:{value:e.cycle,callback:function(n){t.$set(e,"cycle",n)},expression:"el.cycle"}},t._l(t.cycleList,function(t){return n("x-option",{key:t.value,attrs:{value:t.value,label:t.label}})}),1),t._v(" "),n("x-select",{staticStyle:{width:"116px"},attrs:{disabled:t.isDetails},model:{value:e.dateValue,callback:function(n){t.$set(e,"dateValue",n)},expression:"el.dateValue"}},t._l(e.dateValueList||[],function(t){return n("x-option",{key:t.value,attrs:{value:t.value,label:t.label}})}),1),t._v(" "),t.isInstance?[n("span",{staticClass:"instance-state"},["SUCCESS"===e.state?n("i",{staticClass:"iconfont",class:"icon-"+e.state,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("成功")}},[t._v("")]):t._e(),t._v(" "),"WAITING"===e.state?n("i",{staticClass:"iconfont",class:"icon-"+e.state,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("等待")}},[t._v("")]):t._e(),t._v(" "),"FAILED"===e.state?n("i",{staticClass:"iconfont",class:"icon-"+e.state,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("失败")}},[t._v("")]):t._e()])]:t._e(),t._v(" "),n("span",{staticClass:"operation"},[n("a",{staticClass:"delete",attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._remove(i)}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("删除")}},[t._v("")])]),t._v(" "),i===t.dependItemList.length-1?n("a",{staticClass:"add",attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._add()}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("添加")}},[t._v("")])]):t._e()])],2)}),0)},staticRenderFns:[]};e.a=i},972:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dependence-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("添加依赖")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticClass:"dep-opt"},[n("a",{staticClass:"add-dep",attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._addDep()}}},[t.isLoading?t._e():n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip",title:t.$t("添加")}},[t._v("\n \n ")]),t._v(" "),t.isLoading?n("i",{staticClass:"iconfont fa fa-spin",attrs:{"data-toggle":"tooltip",title:t.$t("添加")}},[t._v("\n \n ")]):t._e()])]),t._v(" "),n("div",{staticClass:"dep-box"},[t.dependTaskList.length?n("span",{staticClass:"dep-relation",on:{click:function(e){!t.isDetails&&t._setGlobalRelation()}}},[t._v("\n "+t._s("AND"===t.relation?t.$t("且"):t.$t("或"))+"\n ")]):t._e(),t._v(" "),t._l(t.dependTaskList,function(e,i){return n("div",{staticClass:"dep-list"},[e.dependItemList.length?n("span",{staticClass:"dep-line-pie",on:{click:function(e){!t.isDetails&&t._setRelation(i)}}},[t._v("\n "+t._s("AND"===e.relation?t.$t("且"):t.$t("或"))+"\n ")]):t._e(),t._v(" "),n("i",{staticClass:"iconfont dep-delete",class:t._isDetails,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("删除")},on:{click:function(e){!t.isDetails&&t._deleteDep(i)}}},[t._v("\n \n ")]),t._v(" "),n("m-depend-item-list",{attrs:{index:i},on:{"on-delete-all":t._onDeleteAll},model:{value:e.dependItemList,callback:function(n){t.$set(e,"dependItemList",n)},expression:"el.dependItemList"}})],1)})],2)])])],1)},staticRenderFns:[]};e.a=i},973:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(794),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(974),a=n(27)(r.a,s.a,!1,null,null,null);e.default=a.exports},974:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sub_process-model"},[n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("子节点")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("div",{staticClass:"label-box"},[n("x-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:t.isDetails},on:{"on-change":t._handleWdiChanged},model:{value:t.wdiCurr,callback:function(e){t.wdiCurr=e},expression:"wdiCurr"}},t._l(t.processDefinitionList,function(t){return n("x-option",{key:t.code,attrs:{value:t.id,label:t.code}})}),1)],1)])])])},staticRenderFns:[]};e.a=i},975:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(795),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(976),a=n(27)(r.a,s.a,!1,null,null,null);e.default=a.exports},976:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-select",{staticStyle:{width:"170px"},attrs:{disabled:t.isDetails},on:{"on-change":t._onChange},scopedSlots:t._u([{key:"trigger",fn:function(e){var i=e.selectedModel;return t.isInput?n("x-input",{ref:"input",staticStyle:{width:"100%"},attrs:{disabled:t.isDetails,maxlength:"4",placeholder:t.$t("请选择"),value:null===i?"0":i.value},on:{"on-blur":t._onBlur,"on-click-icon":function(e){return e.stopPropagation(),t._ckIcon(e)}}},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.isIconState,expression:"!isIconState"}],staticClass:"fa fa-times-circle",staticStyle:{"font-size":"15px",cursor:"pointer"},attrs:{slot:"suffix"},slot:"suffix"}),t._v(" "),n("i",{directives:[{name:"show",rawName:"v-show",value:t.isIconState,expression:"isIconState"}],staticClass:"ans-icon-arrow-down",staticStyle:{"font-size":"12px"},attrs:{slot:"suffix"},slot:"suffix"})]):t._e()}}],null,!0),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[t._v(" "),t._l(t.list,function(t){return n("x-option",{key:t,attrs:{value:t,label:t}})})],2)},staticRenderFns:[]};e.a=i},977:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(796),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(978),a=n(27)(r.a,s.a,!1,null,null,null);e.default=a.exports},978:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeout-alarm-model"},[n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("任务超时告警")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("div",{staticStyle:{"padding-top":"5px"}},[n("x-switch",{attrs:{disabled:t.isDetails},on:{"on-click":t._onSwitch},model:{value:t.enable,callback:function(e){t.enable=e},expression:"enable"}})],1)])])]),t._v(" "),t.enable?n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("超时策略")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("div",{staticStyle:{"padding-top":"6px"}},[n("x-checkbox-group",{model:{value:t.strategy,callback:function(e){t.strategy=e},expression:"strategy"}},[n("x-checkbox",{attrs:{label:"WARN",disabled:t.isDetails}},[t._v(t._s(t.$t("超时告警")))]),t._v(" "),n("x-checkbox",{attrs:{label:"FAILED",disabled:t.isDetails}},[t._v(t._s(t.$t("超时失败")))])],1)],1)])])]):t._e(),t._v(" "),t.enable?n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("超时时长")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("x-input",{staticStyle:{width:"128px"},attrs:{disabled:t.isDetails},model:{value:t.interval,callback:function(e){t.interval=e},expression:"interval"}},[n("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$t("分")))])])],1)])]):t._e()])},staticRenderFns:[]};e.a=i},979:function(t,e,n){"use strict";e.__esModule=!0;e.default={bind:function(t,e,n){var i=function(i){if(!n.context||t.contains(i.target))return!1;e.expression?n.context[t["@@clickoutsideContext"].methodName](i):t["@@clickoutsideContext"].bindingFn(i)};t["@@clickoutsideContext"]={documentHandler:i,methodName:e.expression,bindingFn:e.value},setTimeout(function(){document.addEventListener("click",i)},0)},update:function(t,e){t["@@clickoutsideContext"].methodName=e.expression,t["@@clickoutsideContext"].bindingFn=e.value},unbind:function(t){document.removeEventListener("click",t["@@clickoutsideContext"].documentHandler)}}},980:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t._handleClose,expression:"_handleClose"}],staticClass:"form-model-model"},[n("div",{staticClass:"title-box"},[n("span",{staticClass:"name"},[t._v(t._s(t.$t("当前节点设置")))]),t._v(" "),n("span",{staticClass:"go-subtask"},[n("m-log",{attrs:{item:t.backfillItem}},[n("template",{slot:"history"},[n("a",{attrs:{href:"javascript:"},on:{click:t._seeHistory}},[n("i",{staticClass:"iconfont"},[t._v("")]),n("em",[t._v(t._s(t.$t("查看历史")))])])]),t._v(" "),n("template",{slot:"log"},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"iconfont"},[t._v("")]),n("em",[t._v(t._s(t.$t("查看日志")))])])])],2),t._v(" "),t._isGoSubProcess?n("a",{attrs:{href:"javascript:"},on:{click:t._goSubProcess}},[n("i",{staticClass:"iconfont"},[t._v("")]),n("em",[t._v(t._s(t.$t("进入该子节点")))])]):t._e()],1)]),t._v(" "),t.isContentBox?n("div",{staticClass:"content-box"},[n("div",{staticClass:"from-model"},[n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("节点名称")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("x-input",{attrs:{type:"text",disabled:t.isDetails,placeholder:t.$t("请输入name(必填)"),maxlength:"100",autocomplete:"off"},on:{"on-blur":function(e){return t._verifName()}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1)])]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("运行标志")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("x-radio-group",{model:{value:t.runFlag,callback:function(e){t.runFlag=e},expression:"runFlag"}},[n("x-radio",{attrs:{label:"NORMAL",disabled:t.isDetails}},[t._v(t._s(t.$t("正常")))]),t._v(" "),n("x-radio",{attrs:{label:"FORBIDDEN",disabled:t.isDetails}},[t._v(t._s(t.$t("禁止执行")))])],1)],1)])]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("描述")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("x-input",{attrs:{resize:"",autosize:{minRows:2},type:"textarea",disabled:t.isDetails,placeholder:t.$t("请输入desc"),autocomplete:"off"},model:{value:t.desc,callback:function(e){t.desc=e},expression:"desc"}})],1)])]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("任务优先级")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("m-priority",{staticStyle:{width:"180px"},model:{value:t.taskInstancePriority,callback:function(e){t.taskInstancePriority=e},expression:"taskInstancePriority"}})],1)])]),t._v(" "),"SUB_PROCESS"!==t.taskType?n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("失败重试次数")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("m-select-input",{attrs:{list:[0,1,2,3,4]},model:{value:t.maxRetryTimes,callback:function(e){t.maxRetryTimes=e},expression:"maxRetryTimes"}}),t._v(" "),n("span",[t._v("("+t._s(t.$t("次"))+")")]),t._v(" "),n("span",{staticClass:"text-b"},[t._v(t._s(t.$t("失败重试间隔")))]),t._v(" "),n("m-select-input",{attrs:{list:[1,10,30,60,120]},model:{value:t.retryInterval,callback:function(e){t.retryInterval=e},expression:"retryInterval"}}),t._v(" "),n("span",[t._v("("+t._s(t.$t("分"))+")")])],1)]):t._e(),t._v(" "),n("m-timeout-alarm",{ref:"timeout",attrs:{"backfill-item":t.backfillItem},on:{"on-timeout":t._onTimeout}}),t._v(" "),"SHELL"===t.taskType?n("m-shell",{ref:"SHELL",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"SUB_PROCESS"===t.taskType?n("m-sub-process",{ref:"SUB_PROCESS",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams,"on-set-process-name":t._onSetProcessName}}):t._e(),t._v(" "),"PROCEDURE"===t.taskType?n("m-procedure",{ref:"PROCEDURE",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"SQL"===t.taskType?n("m-sql",{ref:"SQL",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"SPARK"===t.taskType?n("m-spark",{ref:"SPARK",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"MR"===t.taskType?n("m-mr",{ref:"MR",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"PYTHON"===t.taskType?n("m-python",{ref:"PYTHON",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"DEPENDENT"===t.taskType?n("m-dependent",{ref:"DEPENDENT",attrs:{"backfill-item":t.backfillItem},on:{"on-dependent":t._onDependent}}):t._e()],1)]):t._e(),t._v(" "),n("div",{staticClass:"bottom-box"},[n("div",{staticClass:"submit",staticStyle:{background:"#fff"}},[n("x-button",{attrs:{type:"text"},on:{click:function(e){return t.close()}}},[t._v(" "+t._s(t.$t("取消"))+" ")]),t._v(" "),n("x-button",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}],attrs:{type:"primary",shape:"circle",loading:t.spinnerLoading,disabled:t.isDetails},on:{click:function(e){return t.ok()}}},[t._v(t._s(t.spinnerLoading?"Loading...":t.$t("确认添加"))+" ")])],1)])])},staticRenderFns:[]};e.a=i},981:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"clearfix dag-model"},[n("div",{staticClass:"toolbar"},[n("div",{staticClass:"title"},[n("span",[t._v(t._s(t.$t("工具栏")))])]),t._v(" "),n("div",{staticClass:"toolbar-btn"},t._l(t.tasksTypeList,function(e,i){return n("div",{staticClass:"bar-box roundedRect jtk-draggable jtk-droppable jtk-endpoint-anchor jtk-connected",class:i===t.dagBarId?"active":"",attrs:{id:i},on:{mousedown:function(e){return t._getDagId(i)}}},[n("div",{class:t._isDetails,attrs:{"data-toggle":"tooltip",title:e.desc}},[n("div",{staticClass:"icos",class:"icos-"+i})])])}),0)]),t._v(" "),n("div",{staticClass:"dag-contect"},[n("div",{staticClass:"dag-toolbar"},[n("div",{staticClass:"assist-btn"},[n("x-button",{staticStyle:{"vertical-align":"middle"},attrs:{"data-toggle":"tooltip",title:t.$t("查看变量"),"data-container":"body",type:"primary",size:"xsmall",disabled:"projects-instance-details"!==t.$route.name,icon:"fa fa-code"},on:{click:t._toggleView}}),t._v(" "),n("span",{staticClass:"name"},[t._v(t._s(t.name))])],1),t._v(" "),n("div",{staticClass:"save-btn"},[n("div",{staticClass:"operation",staticStyle:{"vertical-align":"middle"}},t._l(t.toolOperList,function(e,i){return n("a",{class:t._operationClass(e),attrs:{href:"javascript:",id:e.code},on:{click:function(n){return t._ckOperation(e,n)}}},[n("i",{staticClass:"iconfont",attrs:{"data-toggle":"tooltip",title:e.desc},domProps:{innerHTML:t._s(e.icon)}})])}),0),t._v(" "),"instance"===t.type?n("x-button",{staticStyle:{"vertical-align":"middle"},attrs:{"data-toggle":"tooltip",title:t.$t("刷新DAG状态"),"data-container":"body",icon:"fa fa-refresh",type:"primary",loading:t.isRefresh,size:"xsmall"},on:{click:function(e){!t.isRefresh&&t._refresh()}}}):t._e(),t._v(" "),t.isRtTasks?n("x-button",{staticStyle:{"vertical-align":"middle"},attrs:{type:"primary",size:"xsmall",icon:"fa fa-reply"},on:{click:t._rtNodesDag}},[t._v("\n "+t._s(t.$t("返回上一节点"))+"\n ")]):t._e(),t._v(" "),n("x-button",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}],staticStyle:{"vertical-align":"middle"},attrs:{type:"primary",size:"xsmall",loading:t.spinnerLoading,icon:"fa fa-save",disabled:t.isDetails},on:{click:t._saveChart}},[t._v("\n "+t._s(t.spinnerLoading?"Loading...":t.$t("保存"))+"\n ")])],1)]),t._v(" "),t._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"scrollbar dag-container"},[e("div",{staticClass:"jtk-demo",attrs:{id:"jtk-demo"}},[e("div",{staticClass:"jtk-demo-canvas canvas-wide statemachine-demo jtk-surface jtk-surface-nopan jtk-draggable",attrs:{id:"canvas"}})])])}]};e.a=i}}); //# sourceMappingURL=5.995cbec.js.map