From e9c98dfc6d2f6c8e73ddf78294940e59e77e11a5 Mon Sep 17 00:00:00 2001 From: Ajai Date: Sun, 2 Jul 2017 14:41:58 -0700 Subject: [PATCH] Adds built dist file + bumps version in package.json file --- dist/react-dag.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/react-dag.js b/dist/react-dag.js index 953bb41..c6cb6f9 100644 --- a/dist/react-dag.js +++ b/dist/react-dag.js @@ -1,6 +1,6 @@ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.reactDag=e(require("react")):t.reactDag=e(t.React)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function v(e){return+e!=e&&(e=0),t.alloc(+e)}function m(e,n){if(t.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(e).length;default:if(o)return X(e).length;n=(""+n).toLowerCase(),o=!0}}function y(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return O(this,e,n);case"latin1":case"binary":return k(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function b(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function _(e,n,i,o,r){if(0===e.length)return-1;if("string"==typeof i?(o=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof n&&(n=t.from(n,o)),t.isBuffer(n))return 0===n.length?-1:P(e,n,i,o,r);if("number"==typeof n)return n=255&n,t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,n,i):Uint8Array.prototype.lastIndexOf.call(e,n,i):P(e,[n],i,o,r);throw new TypeError("val must be string, number or Buffer")}function P(t,e,n,i,o){function r(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,u=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}var l;if(o){var c=-1;for(l=n;la&&(n=a-u),l=n;l>=0;l--){for(var h=!0,d=0;do&&(i=o)):i=o;var r=e.length;if(r%2!==0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var s=0;s239?4:r>223?3:r>191?2:1;if(o+a<=n){var u,l,c,h;switch(a){case 1:r<128&&(s=r);break;case 2:u=t[o+1],128===(192&u)&&(h=(31&r)<<6|63&u,h>127&&(s=h));break;case 3:u=t[o+1],l=t[o+2],128===(192&u)&&128===(192&l)&&(h=(15&r)<<12|(63&u)<<6|63&l,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:u=t[o+1],l=t[o+2],c=t[o+3],128===(192&u)&&128===(192&l)&&128===(192&c)&&(h=(15&r)<<18|(63&u)<<12|(63&l)<<6|63&c,h>65535&&h<1114112&&(s=h))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|1023&s),i.push(s),o+=a}return I(i)}function I(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var n="",i=0;ii)&&(n=i);for(var o="",r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function R(e,n,i,o,r,s){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>r||ne.length)throw new RangeError("Index out of range")}function N(t,e,n,i){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-n,2);o>>8*(i?o:1-o)}function B(t,e,n,i){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-n,4);o>>8*(i?o:3-o)&255}function U(t,e,n,i,o,r){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,i,o){return o||U(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,n,i,23,4),n+4}function G(t,e,n,i,o){return o||U(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,n,i,52,8),n+8}function Y(t){if(t=z(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){e=e||1/0;for(var n,i=t.length,o=null,r=[],s=0;s55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&r.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function W(t){for(var e=[],n=0;n>8,o=n%256,r.push(o),r.push(i);return r}function q(t){return K.toByteArray(Y(t))}function J(t,e,n,i){for(var o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function Z(t){return t!==t}var K=n(28),$=n(37),Q=n(38);e.Buffer=t,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=void 0!==i.TYPED_ARRAY_SUPPORT?i.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=r(),t.poolSize=8192,t._augment=function(e){return e.__proto__=t.prototype,e},t.from=function(t,e,n){return a(null,t,e,n)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0})),t.alloc=function(t,e,n){return l(null,t,e,n)},t.allocUnsafe=function(t){return c(null,t)},t.allocUnsafeSlow=function(t){return c(null,t)},t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var i=e.length,o=n.length,r=0,s=Math.min(i,o);r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},t.prototype.compare=function(e,n,i,o,r){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===i&&(i=e?e.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),n<0||i>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&n>=i)return 0;if(o>=r)return-1;if(n>=i)return 1;if(n>>>=0,i>>>=0,o>>>=0,r>>>=0,this===e)return 0;for(var s=r-o,a=i-n,u=Math.min(s,a),l=this.slice(o,r),c=e.slice(n,i),h=0;ho)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return j(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;t.prototype.slice=function(e,n){var i=this.length;e=~~e,n=void 0===n?i:~~n,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),n<0?(n+=i,n<0&&(n=0)):n>i&&(n=i),n0&&(o*=256);)i+=this[t+--e]*o;return i},t.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t=0|t,e=0|e,n||L(t,e,this.length);for(var i=this[t],o=1,r=0;++r=o&&(i-=Math.pow(2,8*e)),i},t.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||L(t,e,this.length);for(var i=e,o=1,r=this[t+--i];i>0&&(o*=256);)r+=this[t+--i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},t.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},t.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),$.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),$.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),$.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),$.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e=0|e,n=0|n,!i){var o=Math.pow(2,8*n)-1;R(this,t,e,n,o,0)}var r=1,s=0;for(this[e]=255&t;++s=0&&(s*=256);)this[e+r]=t/s&255;return e+n},t.prototype.writeUInt8=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},t.prototype.writeUInt16LE=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):N(this,e,n,!0),n+2},t.prototype.writeUInt16BE=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):N(this,e,n,!1),n+2},t.prototype.writeUInt32LE=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):B(this,e,n,!0),n+4},t.prototype.writeUInt32BE=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):B(this,e,n,!1),n+4},t.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e=0|e,!i){var o=Math.pow(2,8*n-1);R(this,t,e,n,o-1,-o)}var r=0,s=1,a=0;for(this[e]=255&t;++r>0)-a&255;return e+n},t.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e=0|e,!i){var o=Math.pow(2,8*n-1);R(this,t,e,n,o-1,-o)}var r=n-1,s=1,a=0;for(this[e+r]=255&t;--r>=0&&(s*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/s>>0)-a&255;return e+n},t.prototype.writeInt8=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},t.prototype.writeInt16LE=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):N(this,e,n,!0),n+2},t.prototype.writeInt16BE=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):N(this,e,n,!1),n+2},t.prototype.writeInt32LE=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):B(this,e,n,!0),n+4},t.prototype.writeInt32BE=function(e,n,i){return e=+e,n=0|n,i||R(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):B(this,e,n,!1),n+4},t.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},t.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},t.prototype.writeDoubleLE=function(t,e,n){return G(this,t,e,!0,n)},t.prototype.writeDoubleBE=function(t,e,n){return G(this,t,e,!1,n)},t.prototype.copy=function(e,n,i,o){if(i||(i=0),o||0===o||(o=this.length),n>=e.length&&(n=e.length),n||(n=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-n=0;--r)e[r+n]=this[r+i];else if(s<1e3||!t.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,e||(e=0);var s;if("number"==typeof e)for(s=n;s>>((3&e)<<3)&255;return i},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()")}}function a(){try{var t=n(31).randomBytes;p=d=t&&function(){return t(16)},d()}catch(e){}}function u(t,e,n){var i=e&&n||0,o=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){o<16&&(e[i+o++]=y[t])});o<16;)e[i+o++]=0;return e}function l(t,e){var n=e||0,i=m;return i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]}function c(t,e,n){var i=e&&n||0,o=e||[];t=t||{};var r=null!=t.clockseq?t.clockseq:E,s=null!=t.msecs?t.msecs:(new Date).getTime(),a=null!=t.nsecs?t.nsecs:C+1,u=s-x+(a-C)/1e4;if(u<0&&null==t.clockseq&&(r=r+1&16383),(u<0||s>x)&&null==t.nsecs&&(a=0),a>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");x=s,C=a,E=r,s+=122192928e5;var c=(1e4*(268435455&s)+a)%4294967296;o[i++]=c>>>24&255,o[i++]=c>>>16&255,o[i++]=c>>>8&255,o[i++]=255&c;var h=s/4294967296*1e4&268435455;o[i++]=h>>>8&255,o[i++]=255&h,o[i++]=h>>>24&15|16,o[i++]=h>>>16&255,o[i++]=r>>>8|128,o[i++]=255&r;for(var d=t.node||P,f=0;f<6;f++)o[i+f]=d[f];return e?e:l(o)}function h(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"===t?new v(16):null,t=null),t=t||{};var o=t.random||(t.rng||d)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var r=0;r<16;r++)e[i+r]=o[r];return e||l(o)}var d,f,p,g;r?s():a();for(var v="function"==typeof o?o:Array,m=[],y={},b=0;b<256;b++)m[b]=(b+256).toString(16).substr(1),y[m[b]]=b;var _=d(),P=[1|_[0],_[1],_[2],_[3],_[4],_[5]],E=16383&(_[6]<<8|_[7]),x=0,C=0,w=h;w.v1=c,w.v4=h,w.parse=u,w.unparse=l,w.BufferClass=v,w._rng=d,w._mathRNG=f,w._nodeRNG=p,w._whatwgRNG=g,"undefined"!=typeof t&&t.exports?t.exports=w:(i=function(){return w}.call(e,n,e,t),!(void 0!==i&&(t.exports=i)))}("undefined"!=typeof window?window:null)}).call(e,n(1).Buffer)},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function r(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){g&&f&&(g=!1,f.length?p=f.concat(p):v=-1,p.length&&a())}function a(){if(!g){var t=o(s);g=!0;for(var e=p.length;e;){for(f=p,p=[];++v1)for(var n=1;n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),g(n)?i.showHidden=n:n&&e._extend(i,n),P(i.showHidden)&&(i.showHidden=!1),P(i.depth)&&(i.depth=2),P(i.colors)&&(i.colors=!1),P(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=r),u(i,t,i.depth)}function r(t,e){var n=o.styles[e];return n?"["+o.colors[n][0]+"m"+t+"["+o.colors[n][1]+"m":t}function s(t,e){return t}function a(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function u(t,n,i){if(t.customInspect&&n&&j(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(i,t);return b(o)||(o=u(t,o,i)),o}var r=l(t,n);if(r)return r;var s=Object.keys(n),g=a(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),w(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return c(n);if(0===s.length){if(j(n)){var v=n.name?": "+n.name:"";return t.stylize("[Function"+v+"]","special")}if(E(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return c(n); -}var m="",y=!1,_=["{","}"];if(p(n)&&(y=!0,_=["[","]"]),j(n)){var P=n.name?": "+n.name:"";m=" [Function"+P+"]"}if(E(n)&&(m=" "+RegExp.prototype.toString.call(n)),C(n)&&(m=" "+Date.prototype.toUTCString.call(n)),w(n)&&(m=" "+c(n)),0===s.length&&(!y||0==n.length))return _[0]+m+_[1];if(i<0)return E(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var x;return x=y?h(t,n,i,g,s):s.map(function(e){return d(t,n,i,g,e,y)}),t.seen.pop(),f(x,m,_)}function l(t,e){if(P(e))return t.stylize("undefined","undefined");if(b(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,i,o){for(var r=[],s=0,a=e.length;s-1&&(a=r?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),P(s)){if(r&&o.match(/^\d+$/))return a;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function f(t,e,n){var i=0,o=t.reduce(function(t,e){return i++,e.indexOf("\n")>=0&&i++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function p(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function v(t){return null===t}function m(t){return null==t}function y(t){return"number"==typeof t}function b(t){return"string"==typeof t}function _(t){return"symbol"==typeof t}function P(t){return void 0===t}function E(t){return x(t)&&"[object RegExp]"===D(t)}function x(t){return"object"==typeof t&&null!==t}function C(t){return x(t)&&"[object Date]"===D(t)}function w(t){return x(t)&&("[object Error]"===D(t)||t instanceof Error)}function j(t){return"function"==typeof t}function S(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function D(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}function I(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),L[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var k=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],n=0;n=r)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return t}}),a=i[n];n=0&&b.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",r(t,e),e}function u(t){var e=document.createElement("link");return e.rel="stylesheet",r(t,e),e}function l(t,e){var n,i,o;if(e.singleton){var r=y++;n=m||(m=a(e)),i=c.bind(null,n,r,!1),o=c.bind(null,n,r,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),i=d.bind(null,n),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),i=h.bind(null,n),o=function(){s(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}function c(t,e,n,i){var o=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function h(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e){var n=e.css,i=e.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([n],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}var f={},p=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},g=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=p(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,y=0,b=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=g()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=o(t);return i(n,e),function(t){for(var r=[],s=0;s0&&void 0!==arguments[0]&&arguments[0],e={transformSource:{},transformSink:{}};return e=t?{"default":l,commonSettings:(0,s["default"])(f,d),source:(0,s["default"])(p,d),sink:(0,s["default"])(g,d),transformSource:{},transformSink:{}}:{"default":l,commonSettings:(0,s["default"])(f,h),source:(0,s["default"])(p,h),sink:(0,s["default"])(g,h),transformSource:{},transformSink:{}},e.transformSource=(0,u["default"])(e.source),e.transformSink=(0,u["default"])(e.sink),e.transformSource.anchor=[.5,1,1,0,26,-43,"transformAnchor"],e.transformSink.anchor=[.5,1,-1,0,-26,-43,"transformAnchor"],e}Object.defineProperty(e,"__esModule",{value:!0}),e.sinkSettings=e.sourceSettings=e.commonSettings=e.disabledConnectorOverlays=e.connectorOverlays=e.connectorStyle=e.defaultSettings=void 0,e.getSettings=o;var r=n(72),s=i(r),a=n(71),u=i(a),l=e.defaultSettings={Connector:["Flowchart",{gap:6,stub:[10,15],alwaysRespectStubs:!0}],ConnectionsDetachable:!0},c=e.connectorStyle={stroke:"black",strokeWidth:2,radius:5,lineWidth:2},h=e.connectorOverlays={connectorOverlays:[["Arrow",{location:1,length:12,width:12,height:10,foldback:1}]]},d=e.disabledConnectorOverlays={connectorOverlays:[["Arrow",{location:1,length:12,width:12,height:10,foldback:1}]]},f=e.commonSettings={endpoint:"Dot",maxConnections:-1,paintStyle:{stroke:"black",fill:"black",radius:5,lineWidth:3},anchors:["Static"]},p=e.sourceSettings=(0,s["default"])({isSource:!0,connectorStyle:c,anchor:[.5,1,1,0,26,-43,"sourceAnchor"]},f),g=e.sinkSettings=(0,s["default"])({isTarget:!0,anchor:[.5,1,-1,0,-26,-43,"sinkAnchor"],connectorStyle:c},f)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=(0,s.createStore)(p(e),t,s.compose.apply(null,[s.applyMiddleware.apply(null,n)].concat(i.map(function(t){return t()}))));return o}Object.defineProperty(e,"__esModule",{value:!0}),e.STOREACTIONS=void 0,e["default"]=r;var s=n(83),a=n(5),u=i(a),l={ADDNODE:"ADD_NODE",UPDATENODE:"UPDATE_NODE",REMOVENODE:"REMOVE_NODE",ADDCONNECTION:"ADD_CONNECTIONS",SETCONNECTIONS:"SET_CONNECTIONS",RESET:"RESET",GRAPHLOADING:"GRAPHLOADING"};e.STOREACTIONS=l;var c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e.type){case l.ADDNODE:return[].concat(o(t),[{id:u["default"].v4(),label:e.payload.label,type:e.payload.type}]);case l.UPDATENODE:return t.map(function(t){return t.id===e.payload.nodeId?(t.style=e.payload.style,t):t});case l.REMOVENODE:return t.filter(function(t){return t.id!==e.payload.nodeId});case l.RESET:return[];default:return t}},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e.type){case l.ADDCONNECTION:return[].concat(o(t),[{from:e.connection.from,to:e.connection.to}]);case l.SETCONNECTIONS:return[].concat(o(e.payload.connections));case l.RESET:return[];default:return t}},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e.type){case l.GRAPHLOADING:return Object.assign({},t,{loading:e.payload.loading});case l.RESET:return{};default:return t}},f=function(){return{nodes:[function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t}],graph:[function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t}],connections:[function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t}]}},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f(),e=f(),n=function(t,e,n){return Array.isArray(t[e])&&t[e].length>0?t[e]:n[e]},i=[c].concat(n(t,"nodes",e)),o=[d].concat(n(t,"graph",e)),r=[h].concat(n(t,"connections",e)),a=function(t,e,n){return t.length>1?t.reduce(function(t,i){return i.bind(null,t(e,n),n)})():t[0]()};return(0,s.combineReducers)({nodes:function(t,e){return a(i,t,e)},connections:function(t,e){return a(r,t,e)},graph:function(t,e){return a(o,t,e)}})}},function(t,e){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-n(t)}function o(t){var e,i,o,r,s,a,u=t.length;s=n(t),a=new c(3*u/4-s),o=s>0?u-4:u;var h=0;for(e=0,i=0;e>16&255,a[h++]=r>>8&255,a[h++]=255&r;return 2===s?(r=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,a[h++]=255&r):1===s&&(r=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,a[h++]=r>>8&255,a[h++]=255&r),a}function r(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function s(t,e,n){for(var i,o=[],s=e;sc?c:l+a));return 1===i?(e=t[n-1],o+=u[e>>2],o+=u[e<<4&63],o+="=="):2===i&&(e=(t[n-2]<<8)+t[n-1],o+=u[e>>10],o+=u[e>>4&63],o+=u[e<<2&63],o+="="),r.push(o),r.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=a;for(var u=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,f=h.length;ds?n=o(t).update(n).digest():n.length>5]|=128<>>9<<4)+14]=e;for(var n=1732584193,i=-271733879,o=-1732584194,c=271733878,h=0;h>16)+(e>>16)+(n>>16);return i<<16|65535&n}function c(t,e){return t<>>32-e}var h=n(30);t.exports=function(t){return h.hash(t,i,16)}},function(t,e,n){var i=n(79);t.exports=function(t,e){e=e||{};var n=i(t);return e.pbkdf2=n.pbkdf2,e.pbkdf2Sync=n.pbkdf2Sync,e}},function(t,e,n){(function(e,i){!function(){var o=("undefined"==typeof window?e:window)||{};_crypto=o.crypto||o.msCrypto||n(97),t.exports=function(t){if(_crypto.getRandomValues){var e=new i(t);return _crypto.getRandomValues(e),e}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(e,function(){return this}(),n(1).Buffer)},function(t,e,n){e=t.exports=n(11)(),e.push([t.id,".node .dag-node{position:relative}.node .dag-node .close-btn{cursor:pointer;position:absolute;top:-3px;right:3px}",""])},function(t,e,n){e=t.exports=n(11)(),e.push([t.id,".react-dag{display:block}.react-dag .jtk-endpoint svg{overflow:visible}.react-dag .jtk-endpoint circle{fill:#fff;r:2px;stroke-width:8px}.react-dag .jtk-endpoint-anchor-sourceAnchor circle{stroke:green}.react-dag .jtk-endpoint-anchor-transformAnchor circle{stroke:purple}.react-dag .jtk-endpoint-anchor-sinkAnchor circle{stroke:orange}.react-dag .diagram-container{position:relative;width:100%;height:80vh;background:#eee;overflow:hidden}.react-dag .diagram-container #dag-container{height:inherit;width:inherit;position:absolute;transform-origin:left center}.react-dag .diagram-container #dag-container .node{position:absolute;height:66px;width:105px;cursor:pointer}.react-dag .diagram-container #dag-container .node .dag-node{margin:0 auto;background-clip:border-box;height:46px;width:56px;border-radius:5px}.react-dag .diagram-container #dag-container .node .dag-node.source{border:2px solid green}.react-dag .diagram-container #dag-container .node .dag-node.source~.label{color:green}.react-dag .diagram-container #dag-container .node .dag-node.transform{border:2px solid purple}.react-dag .diagram-container #dag-container .node .dag-node.transform~.label{color:purple}.react-dag .diagram-container #dag-container .node .dag-node.sink{border:2px solid orange}.react-dag .diagram-container #dag-container .node .dag-node.sink~.label{color:orange}.react-dag .diagram-container #dag-container .node .label{font-size:12px}.react-dag .fa.fa-spin.fa-refresh{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}",""])},function(t,e){e.read=function(t,e,n,i,o){var r,s,a=8*o-i-1,u=(1<>1,c=-7,h=n?o-1:0,d=n?-1:1,f=t[e+h];for(h+=d,r=f&(1<<-c)-1,f>>=-c,c+=a;c>0;r=256*r+t[e+h],h+=d,c-=8);for(s=r&(1<<-c)-1,r>>=-c,c+=i;c>0;s=256*s+t[e+h],h+=d,c-=8);if(0===r)r=1-l;else{if(r===u)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,i),r-=l}return(f?-1:1)*s*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var s,a,u,l=8*r-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+h>=1?d/u:d*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,o),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;t[n+f]=255&a,f+=p,a/=256,o-=8);for(s=s<0;t[n+f]=255&s,f+=p,s/=256,l-=8);t[n+f-p]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var i,o;(function(){"undefined"==typeof Math.sgn&&(Math.sgn=function(t){return 0==t?0:t>0?1:-1});var t={subtract:function(t,e){return{x:t.x-e.x,y:t.y-e.y}},dotProduct:function(t,e){return t.x*e.x+t.y*e.y},square:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},scale:function(t,e){return{x:t.x*e,y:t.y*e}}},e=64,n=Math.pow(2,-e-1),i=function(e,n){for(var i=[],o=r(e,n),a=n.length-1,u=2*a-1,l=s(o,u,i,0),h=t.subtract(e,n[0]),d=t.square(h),f=0,p=0;p=e)return i[0]=(t[0].x+t[n].x)/2,1;if(u(t,n))return i[0]=l(t,n),1}c(t,n,.5,d,f), -r=s(d,n,p,o+1),h=s(f,n,g,o+1);for(var v=0;vb?b=P:P0?1:-1,a=null;o1&&(i.location=1),i.location<0&&(i.location=0),_(t,i.location)},E=function(t,e,n,i){i=null==i?0:i;var o=v(t,e,i),r=_(t,o.location),s=Math.atan(-1/r),a=n/2*Math.sin(s),u=n/2*Math.cos(s);return[{x:o.point.x+u,y:o.point.y+a},{x:o.point.x-u,y:o.point.y-a}]};this.jsBezier={distanceFromCurve:i,gradientAtPoint:_,gradientAtPointAlongCurveFrom:P,nearestPointOnCurve:o,pointOnCurve:f,pointAlongCurveFrom:y,perpendicularToCurveAt:E,locationAlongCurveFrom:b,getLength:m}}).call("undefined"!=typeof window?window:this),function(){"use strict";var t=this,e=t.Biltong={},n=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=function(t,e,i){return t=n(t)?t:[t.x,t.y],e=n(e)?e:[e.x,e.y],i(t,e)},o=e.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])})},r=(e.normal=function(t,e){return-1/o(t,e)},e.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))})},e.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=(e.theta=function(t,e){return i(t,e,function(t,e){var n=o(t,e),i=Math.atan(n),s=r(t,e);return 4!=s&&3!=s||(i+=Math.PI),i<0&&(i+=2*Math.PI),i})},e.intersects=function(t,e){var n=t.x,i=t.x+t.w,o=t.y,r=t.y+t.h,s=e.x,a=e.x+e.w,u=e.y,l=e.y+e.h;return n<=s&&s<=i&&o<=u&&u<=r||n<=a&&a<=i&&o<=u&&u<=r||n<=s&&s<=i&&o<=l&&l<=r||n<=a&&s<=i&&o<=l&&l<=r||s<=n&&n<=a&&u<=o&&o<=l||s<=i&&i<=a&&u<=o&&o<=l||s<=n&&n<=a&&u<=r&&r<=l||s<=i&&n<=a&&u<=r&&r<=l},e.encloses=function(t,e,n){var i=t.x,o=t.x+t.w,r=t.y,s=t.y+t.h,a=e.x,u=e.x+e.w,l=e.y,c=e.y+e.h,h=function(t,e,i,o){return n?t<=e&&i>=o:to};return h(i,a,o,u)&&h(r,l,s,c)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),a=[null,[-1,-1],[-1,1],[1,1],[1,-1]];e.pointOnLine=function(t,e,n){var i=o(t,e),u=r(t,e),l=n>0?s[u]:a[u],c=Math.atan(i),h=Math.abs(n*Math.sin(c))*l[1],d=Math.abs(n*Math.cos(c))*l[0];return{x:t.x+d,y:t.y+h}},e.perpendicularLineTo=function(t,e,n){var i=o(t,e),r=Math.atan(-1/i),s=n/2*Math.sin(r),a=n/2*Math.cos(r);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";var t=this,e={android:navigator.userAgent.toLowerCase().indexOf("android")>-1},n=function(t,e,n){n=n||t.parentNode;for(var i=n.querySelectorAll(e),o=0;o-1&&P<9,x=function(t,e){if(null==t)return[0,0];var n=D(t),i=S(n,0);return[i[e+"X"],i[e+"Y"]]},C=function(t){return null==t?[0,0]:E?[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop]:x(t,"page")},w=function(t){return x(t,"screen")},j=function(t){return x(t,"client")},S=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]},A=function(t){return D(t).length},I=function(t,e,n,i){if(u(t,e,n),i.__tauid=n.__tauid,t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent){var o=e+n.__tauid;t["e"+o]=n,t[o]=function(){t["e"+o]&&t["e"+o](window.event)},t.attachEvent("on"+e,t[o])}},O=function(t,e,n){null!=n&&k(t,function(){var o=i(this);if(l(o,e,n),null!=n.__tauid)if(o.removeEventListener)o.removeEventListener(e,n,!1),y&&_[e]&&o.removeEventListener(_[e],n,!1);else if(this.detachEvent){var r=e+n.__tauid;o[r]&&o.detachEvent("on"+e,o[r]),o[r]=null,o["e"+r]=null}n.__taTouchProxy&&O(t,n.__taTouchProxy[1],n.__taTouchProxy[0])})},k=function(t,e){if(null!=t){t="undefined"!=typeof Window&&"unknown"!=typeof t.top&&t==t.top?[t]:"string"!=typeof t&&null==t.tagName&&null!=t.length?t:"string"==typeof t?document.querySelectorAll(t):[t];for(var n=0;n-1&&a<9,h=9==a,d=function(t){if(c)return[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop];var e=p(t),n=f(e,0);return h?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},f=function(t,e){return t.item?t.item(e):t[e]},p=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]},g={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"},v="katavorio-drag-scope",m=["stop","start","drag","drop","over","out","beforeStart"],y=function(){},b=function(){return!0},_=function(t,e,n){for(var i=0;i1)for(var r=0;r0&&V&&e.setPosition(this.el,V);for(var o=0;o0},c=(this.getMatchingDroppables=function(t){for(var e=[],n={},i=0;i=0&&r.splice(i,1),l(t[e],n)&&E(t[e],function(t){t.destroy()}),delete t[e]}};this.elementRemoved=function(t){this.destroyDraggable(t),this.destroyDroppable(t)},this.destroyDraggable=function(t){j(t,"_katavorioDrag",this._dragsByScope)},this.destroyDroppable=function(t){j(t,"_katavorioDrop",this._dropsByScope)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},r=[],s={},S={}};var S={},D=function(t,n,i){var r=o(n)?n:n.id,s=!!o(n)||n.active!==!1,a=S[r]||function(){var t={name:r,members:[]};return S[r]=t,t}();return E(t,function(t){if(t._katavorioDrag){if(i&&null!=t._katavorioDrag.posseRoles[a.name])return;e(a.members,t._katavorioDrag),e(t._katavorioDrag.posses,a.name),t._katavorioDrag.posseRoles[a.name]=s}}),a};this.addToPosse=function(t,e){for(var n=[],i=1;i=r.length,u=function(){return o[s[1]]||function(){return o[s[1]]=[],o[s[1]]}()};if(a)s?u()[s[3]]=n:o[t]=n;else if(s){var l=u();o=l[s[3]]||function(){return l[s[3]]={},l[s[3]]}()}else o=o[t]||function(){return o[t]={},o[t]}()}),t}},functionChain:function(t,e,n){for(var i=0;i-1&&t.splice(n,1),n!=-1},remove:function(t,e){var n=t.indexOf(e);return n>-1&&t.splice(n,1),n!=-1},addWithFunction:function(t,e,n){c.jsPlumbUtil.findWithFunction(t,n)==-1&&t.push(e); +}var m="",y=!1,_=["{","}"];if(p(n)&&(y=!0,_=["[","]"]),j(n)){var P=n.name?": "+n.name:"";m=" [Function"+P+"]"}if(E(n)&&(m=" "+RegExp.prototype.toString.call(n)),C(n)&&(m=" "+Date.prototype.toUTCString.call(n)),w(n)&&(m=" "+c(n)),0===s.length&&(!y||0==n.length))return _[0]+m+_[1];if(i<0)return E(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var x;return x=y?h(t,n,i,g,s):s.map(function(e){return d(t,n,i,g,e,y)}),t.seen.pop(),f(x,m,_)}function l(t,e){if(P(e))return t.stylize("undefined","undefined");if(b(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,i,o){for(var r=[],s=0,a=e.length;s-1&&(a=r?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),P(s)){if(r&&o.match(/^\d+$/))return a;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function f(t,e,n){var i=0,o=t.reduce(function(t,e){return i++,e.indexOf("\n")>=0&&i++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function p(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function v(t){return null===t}function m(t){return null==t}function y(t){return"number"==typeof t}function b(t){return"string"==typeof t}function _(t){return"symbol"==typeof t}function P(t){return void 0===t}function E(t){return x(t)&&"[object RegExp]"===D(t)}function x(t){return"object"==typeof t&&null!==t}function C(t){return x(t)&&"[object Date]"===D(t)}function w(t){return x(t)&&("[object Error]"===D(t)||t instanceof Error)}function j(t){return"function"==typeof t}function S(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function D(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}function I(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),L[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var k=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],n=0;n=r)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return t}}),a=i[n];n=0&&b.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",r(t,e),e}function u(t){var e=document.createElement("link");return e.rel="stylesheet",r(t,e),e}function l(t,e){var n,i,o;if(e.singleton){var r=y++;n=m||(m=a(e)),i=c.bind(null,n,r,!1),o=c.bind(null,n,r,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),i=d.bind(null,n),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),i=h.bind(null,n),o=function(){s(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}function c(t,e,n,i){var o=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function h(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e){var n=e.css,i=e.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([n],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}var f={},p=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},g=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=p(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,y=0,b=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=g()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=o(t);return i(n,e),function(t){for(var r=[],s=0;s0&&void 0!==arguments[0]&&arguments[0],e={transformSource:{},transformSink:{}};return e=t?{"default":l,commonSettings:(0,s["default"])(f,d),source:(0,s["default"])(p,d),sink:(0,s["default"])(g,d),transformSource:{},transformSink:{}}:{"default":l,commonSettings:(0,s["default"])(f,h),source:(0,s["default"])(p,h),sink:(0,s["default"])(g,h),transformSource:{},transformSink:{}},e.transformSource=(0,u["default"])(e.source),e.transformSink=(0,u["default"])(e.sink),e.transformSource.anchor=[.5,1,1,0,26,-43,"transformAnchor"],e.transformSink.anchor=[.5,1,-1,0,-26,-43,"transformAnchor"],e}Object.defineProperty(e,"__esModule",{value:!0}),e.sinkSettings=e.sourceSettings=e.commonSettings=e.disabledConnectorOverlays=e.connectorOverlays=e.connectorStyle=e.defaultSettings=void 0,e.getSettings=o;var r=n(72),s=i(r),a=n(71),u=i(a),l=e.defaultSettings={Connector:["Flowchart",{gap:6,stub:[10,15],alwaysRespectStubs:!0}],ConnectionsDetachable:!0},c=e.connectorStyle={stroke:"black",strokeWidth:2,radius:5,lineWidth:2},h=e.connectorOverlays={connectorOverlays:[["Arrow",{location:1,length:12,width:12,height:10,foldback:1}]]},d=e.disabledConnectorOverlays={connectorOverlays:[["Arrow",{location:1,length:12,width:12,height:10,foldback:1}]]},f=e.commonSettings={endpoint:"Dot",maxConnections:-1,paintStyle:{stroke:"black",fill:"black",radius:5,lineWidth:3},anchors:["Static"]},p=e.sourceSettings=(0,s["default"])({isSource:!0,connectorStyle:c,anchor:[.5,1,1,0,26,-43,"sourceAnchor"]},f),g=e.sinkSettings=(0,s["default"])({isTarget:!0,anchor:[.5,1,-1,0,-26,-43,"sinkAnchor"],connectorStyle:c},f)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=(0,s.createStore)(p(e),t,s.compose.apply(null,[s.applyMiddleware.apply(null,n)].concat(i.map(function(t){return t()}))));return o}Object.defineProperty(e,"__esModule",{value:!0}),e.STOREACTIONS=void 0,e["default"]=r;var s=n(83),a=n(5),u=i(a),l={ADDNODE:"ADD_NODE",UPDATENODE:"UPDATE_NODE",REMOVENODE:"REMOVE_NODE",ADDCONNECTION:"ADD_CONNECTIONS",SETCONNECTIONS:"SET_CONNECTIONS",RESET:"RESET",GRAPHLOADING:"GRAPHLOADING"};e.STOREACTIONS=l;var c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e.type){case l.ADDNODE:return[].concat(o(t),[{id:u["default"].v4(),label:e.payload.label,type:e.payload.type}]);case l.UPDATENODE:return t.map(function(t){return t.id===e.payload.nodeId?(t.style=e.payload.style,t):t});case l.REMOVENODE:return t.filter(function(t){return t.id!==e.payload.nodeId});case l.RESET:return[];default:return t}},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e.type){case l.ADDCONNECTION:return[].concat(o(t),[{from:e.connection.from,to:e.connection.to}]);case l.SETCONNECTIONS:return[].concat(o(e.payload.connections));case l.RESET:return[];default:return t}},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e.type){case l.GRAPHLOADING:return Object.assign({},t,{loading:e.payload.loading});case l.RESET:return{};default:return t}},f=function(){return{nodes:[function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t}],graph:[function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t}],connections:[function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t}]}},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f(),e=f(),n=function(t,e,n){return Array.isArray(t[e])&&t[e].length>0?t[e]:n[e]},i=[c].concat(n(t,"nodes",e)),o=[d].concat(n(t,"graph",e)),r=[h].concat(n(t,"connections",e)),a=function(t,e,n){return t.length>1?t.reduce(function(t,i){return i.bind(null,t(e,n),n)})():t[0]()};return(0,s.combineReducers)({nodes:function(t,e){return a(i,t,e)},connections:function(t,e){return a(r,t,e)},graph:function(t,e){return a(o,t,e)}})}},function(t,e){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-n(t)}function o(t){var e,i,o,r,s,a,u=t.length;s=n(t),a=new c(3*u/4-s),o=s>0?u-4:u;var h=0;for(e=0,i=0;e>16&255,a[h++]=r>>8&255,a[h++]=255&r;return 2===s?(r=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,a[h++]=255&r):1===s&&(r=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,a[h++]=r>>8&255,a[h++]=255&r),a}function r(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function s(t,e,n){for(var i,o=[],s=e;sc?c:l+a));return 1===i?(e=t[n-1],o+=u[e>>2],o+=u[e<<4&63],o+="=="):2===i&&(e=(t[n-2]<<8)+t[n-1],o+=u[e>>10],o+=u[e>>4&63],o+=u[e<<2&63],o+="="),r.push(o),r.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=a;for(var u=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,f=h.length;ds?n=o(t).update(n).digest():n.length>5]|=128<>>9<<4)+14]=e;for(var n=1732584193,i=-271733879,o=-1732584194,c=271733878,h=0;h>16)+(e>>16)+(n>>16);return i<<16|65535&n}function c(t,e){return t<>>32-e}var h=n(30);t.exports=function(t){return h.hash(t,i,16)}},function(t,e,n){var i=n(79);t.exports=function(t,e){e=e||{};var n=i(t);return e.pbkdf2=n.pbkdf2,e.pbkdf2Sync=n.pbkdf2Sync,e}},function(t,e,n){(function(e,i){!function(){var o=("undefined"==typeof window?e:window)||{};_crypto=o.crypto||o.msCrypto||n(97),t.exports=function(t){if(_crypto.getRandomValues){var e=new i(t);return _crypto.getRandomValues(e),e}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(e,function(){return this}(),n(1).Buffer)},function(t,e,n){e=t.exports=n(11)(),e.push([t.id,".node .dag-node{position:relative}.node .dag-node .close-btn{cursor:pointer;position:absolute;top:-3px;right:3px}",""])},function(t,e,n){e=t.exports=n(11)(),e.push([t.id,".react-dag{display:block}.react-dag .jtk-endpoint svg{overflow:visible}.react-dag .jtk-endpoint circle{fill:#fff;r:2px;stroke-width:8px}.react-dag .jtk-endpoint-anchor-sourceAnchor circle{stroke:green}.react-dag .jtk-endpoint-anchor-transformAnchor circle{stroke:purple}.react-dag .jtk-endpoint-anchor-sinkAnchor circle{stroke:orange}.react-dag .diagram-container{position:relative;width:100%;height:80vh;background:#eee;overflow:hidden}.react-dag .diagram-container #dag-container{height:inherit;width:inherit;position:absolute;transform-origin:left center}.react-dag .diagram-container #dag-container .node{position:absolute;height:66px;width:105px;cursor:pointer}.react-dag .diagram-container #dag-container .node .dag-node{margin:0 auto;background-clip:border-box;height:46px;width:56px;border-radius:5px}.react-dag .diagram-container #dag-container .node .dag-node.source{border:2px solid green}.react-dag .diagram-container #dag-container .node .dag-node.source~.label{color:green}.react-dag .diagram-container #dag-container .node .dag-node.transform{border:2px solid purple}.react-dag .diagram-container #dag-container .node .dag-node.transform~.label{color:purple}.react-dag .diagram-container #dag-container .node .dag-node.sink{border:2px solid orange}.react-dag .diagram-container #dag-container .node .dag-node.sink~.label{color:orange}.react-dag .diagram-container #dag-container .node .label{font-size:12px}.react-dag .fa.fa-spin.fa-refresh{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}",""])},function(t,e){e.read=function(t,e,n,i,o){var r,s,a=8*o-i-1,u=(1<>1,c=-7,h=n?o-1:0,d=n?-1:1,f=t[e+h];for(h+=d,r=f&(1<<-c)-1,f>>=-c,c+=a;c>0;r=256*r+t[e+h],h+=d,c-=8);for(s=r&(1<<-c)-1,r>>=-c,c+=i;c>0;s=256*s+t[e+h],h+=d,c-=8);if(0===r)r=1-l;else{if(r===u)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,i),r-=l}return(f?-1:1)*s*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var s,a,u,l=8*r-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+h>=1?d/u:d*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,o),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;t[n+f]=255&a,f+=p,a/=256,o-=8);for(s=s<0;t[n+f]=255&s,f+=p,s/=256,l-=8);t[n+f-p]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var i,o;(function(){"undefined"==typeof Math.sgn&&(Math.sgn=function(t){return 0==t?0:t>0?1:-1});var t={subtract:function(t,e){return{x:t.x-e.x,y:t.y-e.y}},dotProduct:function(t,e){return t.x*e.x+t.y*e.y},square:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},scale:function(t,e){return{x:t.x*e,y:t.y*e}}},e=64,n=Math.pow(2,-e-1),i=function(e,n){for(var i=[],o=r(e,n),a=n.length-1,u=2*a-1,l=s(o,u,i,0),h=t.subtract(e,n[0]),d=t.square(h),f=0,p=0;p=e)return i[0]=(t[0].x+t[n].x)/2,1;if(u(t,n))return i[0]=l(t,n),1}c(t,n,.5,d,f),r=s(d,n,p,o+1),h=s(f,n,g,o+1); +for(var v=0;vb?b=P:P0?1:-1,a=null;o1&&(i.location=1),i.location<0&&(i.location=0),_(t,i.location)},E=function(t,e,n,i){i=null==i?0:i;var o=v(t,e,i),r=_(t,o.location),s=Math.atan(-1/r),a=n/2*Math.sin(s),u=n/2*Math.cos(s);return[{x:o.point.x+u,y:o.point.y+a},{x:o.point.x-u,y:o.point.y-a}]};this.jsBezier={distanceFromCurve:i,gradientAtPoint:_,gradientAtPointAlongCurveFrom:P,nearestPointOnCurve:o,pointOnCurve:f,pointAlongCurveFrom:y,perpendicularToCurveAt:E,locationAlongCurveFrom:b,getLength:m}}).call("undefined"!=typeof window?window:this),function(){"use strict";var t=this,e=t.Biltong={},n=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=function(t,e,i){return t=n(t)?t:[t.x,t.y],e=n(e)?e:[e.x,e.y],i(t,e)},o=e.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])})},r=(e.normal=function(t,e){return-1/o(t,e)},e.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))})},e.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=(e.theta=function(t,e){return i(t,e,function(t,e){var n=o(t,e),i=Math.atan(n),s=r(t,e);return 4!=s&&3!=s||(i+=Math.PI),i<0&&(i+=2*Math.PI),i})},e.intersects=function(t,e){var n=t.x,i=t.x+t.w,o=t.y,r=t.y+t.h,s=e.x,a=e.x+e.w,u=e.y,l=e.y+e.h;return n<=s&&s<=i&&o<=u&&u<=r||n<=a&&a<=i&&o<=u&&u<=r||n<=s&&s<=i&&o<=l&&l<=r||n<=a&&s<=i&&o<=l&&l<=r||s<=n&&n<=a&&u<=o&&o<=l||s<=i&&i<=a&&u<=o&&o<=l||s<=n&&n<=a&&u<=r&&r<=l||s<=i&&n<=a&&u<=r&&r<=l},e.encloses=function(t,e,n){var i=t.x,o=t.x+t.w,r=t.y,s=t.y+t.h,a=e.x,u=e.x+e.w,l=e.y,c=e.y+e.h,h=function(t,e,i,o){return n?t<=e&&i>=o:to};return h(i,a,o,u)&&h(r,l,s,c)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),a=[null,[-1,-1],[-1,1],[1,1],[1,-1]];e.pointOnLine=function(t,e,n){var i=o(t,e),u=r(t,e),l=n>0?s[u]:a[u],c=Math.atan(i),h=Math.abs(n*Math.sin(c))*l[1],d=Math.abs(n*Math.cos(c))*l[0];return{x:t.x+d,y:t.y+h}},e.perpendicularLineTo=function(t,e,n){var i=o(t,e),r=Math.atan(-1/i),s=n/2*Math.sin(r),a=n/2*Math.cos(r);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";var t=this,e={android:navigator.userAgent.toLowerCase().indexOf("android")>-1},n=function(t,e,n){n=n||t.parentNode;for(var i=n.querySelectorAll(e),o=0;o-1&&P<9,x=function(t,e){if(null==t)return[0,0];var n=D(t),i=S(n,0);return[i[e+"X"],i[e+"Y"]]},C=function(t){return null==t?[0,0]:E?[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop]:x(t,"page")},w=function(t){return x(t,"screen")},j=function(t){return x(t,"client")},S=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]},A=function(t){return D(t).length},I=function(t,e,n,i){if(u(t,e,n),i.__tauid=n.__tauid,t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent){var o=e+n.__tauid;t["e"+o]=n,t[o]=function(){t["e"+o]&&t["e"+o](window.event)},t.attachEvent("on"+e,t[o])}},O=function(t,e,n){null!=n&&k(t,function(){var o=i(this);if(l(o,e,n),null!=n.__tauid)if(o.removeEventListener)o.removeEventListener(e,n,!1),y&&_[e]&&o.removeEventListener(_[e],n,!1);else if(this.detachEvent){var r=e+n.__tauid;o[r]&&o.detachEvent("on"+e,o[r]),o[r]=null,o["e"+r]=null}n.__taTouchProxy&&O(t,n.__taTouchProxy[1],n.__taTouchProxy[0])})},k=function(t,e){if(null!=t){t="undefined"!=typeof Window&&"unknown"!=typeof t.top&&t==t.top?[t]:"string"!=typeof t&&null==t.tagName&&null!=t.length?t:"string"==typeof t?document.querySelectorAll(t):[t];for(var n=0;n-1&&a<9,h=9==a,d=function(t){if(c)return[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop];var e=p(t),n=f(e,0);return h?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},f=function(t,e){return t.item?t.item(e):t[e]},p=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]},g={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"},v="katavorio-drag-scope",m=["stop","start","drag","drop","over","out","beforeStart"],y=function(){},b=function(){return!0},_=function(t,e,n){for(var i=0;i1)for(var r=0;r0&&V&&e.setPosition(this.el,V);for(var o=0;o0},c=(this.getMatchingDroppables=function(t){for(var e=[],n={},i=0;i=0&&r.splice(i,1),l(t[e],n)&&E(t[e],function(t){t.destroy()}),delete t[e]}};this.elementRemoved=function(t){this.destroyDraggable(t),this.destroyDroppable(t)},this.destroyDraggable=function(t){j(t,"_katavorioDrag",this._dragsByScope)},this.destroyDroppable=function(t){j(t,"_katavorioDrop",this._dropsByScope)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},r=[],s={},S={}};var S={},D=function(t,n,i){var r=o(n)?n:n.id,s=!!o(n)||n.active!==!1,a=S[r]||function(){var t={name:r,members:[]};return S[r]=t,t}();return E(t,function(t){if(t._katavorioDrag){if(i&&null!=t._katavorioDrag.posseRoles[a.name])return;e(a.members,t._katavorioDrag),e(t._katavorioDrag.posses,a.name),t._katavorioDrag.posseRoles[a.name]=s}}),a};this.addToPosse=function(t,e){for(var n=[],i=1;i=r.length,u=function(){return o[s[1]]||function(){return o[s[1]]=[],o[s[1]]}()};if(a)s?u()[s[3]]=n:o[t]=n;else if(s){var l=u();o=l[s[3]]||function(){return l[s[3]]={},l[s[3]]}()}else o=o[t]||function(){return o[t]={},o[t]}()}),t}},functionChain:function(t,e,n){for(var i=0;i-1&&t.splice(n,1),n!=-1},remove:function(t,e){var n=t.indexOf(e);return n>-1&&t.splice(n,1),n!=-1},addWithFunction:function(t,e,n){c.jsPlumbUtil.findWithFunction(t,n)==-1&&t.push(e); },addToList:function(t,e,n,i){var o=t[e];return null==o&&(o=[],t[e]=o),o[i?"unshift":"push"](n),o},suggest:function(t,e,n){return t.indexOf(e)===-1&&(n?t.unshift(e):t.push(e),!0)},extend:function(e,n,i){var o;for(n=t(n)?n:[n],o=0;o2)for(o=2;o0)for(var t=0;t0){var r=Array.prototype.slice.call(arguments,1);try{for(var s=0,u=i.length;s0?t.indexOf(e)!=-1:!n)};this.getConnections=function(t,n){t?t.constructor==String&&(t={scope:t}):t={};for(var i=t.scope||e.getDefaultScope(),o=st(i,!0),r=st(t.source),s=st(t.target),a=!n&&o.length>1?{}:[],u=function(t,e){if(!n&&o.length>1){var i=a[t];null==i&&(i=a[t]=[]),i.push(e)}else a.push(e)},l=0,c=E.length;l0&&!g.isSource,m=d&&o.length>0&&!g.isTarget;if(v||m)continue t;s.push(g)}}}return dt(s)},this.getAllConnections=function(){return E},this.getDefaultScope=function(){return T},this.getEndpoint=B,this.getEndpoints=function(t){return x[d(t).id]},this.getDefaultEndpointType=function(){return P.Endpoint},this.getDefaultConnectionType=function(){return P.Connection},this.getId=K,this.appendElement=R;var ft=!1;this.isHoverSuspended=function(){return ft},this.setHoverSuspended=function(t){ft=t},this.hide=function(t,n){return V(t,"none",n),e},this.idstamp=L,this.connectorsInitialized=!1,this.registerConnectorType=function(t,e){s.push([t,e])};var pt=function(t){if(!g&&t){var n=e.getElement(t);n.offsetParent&&e.setContainer(n.offsetParent)}},gt=function(){e.Defaults.Container&&e.setContainer(e.Defaults.Container)},vt=e.manage=function(t,n,i){return w[t]||(w[t]={el:n,endpoints:[],connections:[]},w[t].info=mt({elId:t,timestamp:k}),i||e.fire("manageElement",{id:t,info:w[t].info,el:n})),w[t]},mt=this.updateOffset=function(t){var n,i=t.timestamp,o=t.recalc,r=t.offset,s=t.elId;return O&&!i&&(i=k),!o&&i&&i===S[s]?{o:t.offset||j[s],s:I[s]}:(o||!r&&null==j[s]?(n=w[s]?w[s].el:null,null!=n&&(I[s]=e.getSize(n),j[s]=e.getOffset(n),S[s]=i)):(j[s]=r||j[s],null==I[s]&&(n=w[s].el,null!=n&&(I[s]=e.getSize(n))),S[s]=i),j[s]&&!j[s].right&&(j[s].right=j[s].left+I[s][0],j[s].bottom=j[s].top+I[s][1],j[s].width=I[s][0],j[s].height=I[s][1],j[s].centerx=j[s].left+j[s].width/2,j[s].centery=j[s].top+j[s].height/2),{o:j[s],s:I[s]})};this.init=function(){n=r.jsPlumb.getRenderModes();var t=function(t,e,n){r.jsPlumb.Connectors[t][e]=function(){n.apply(this,arguments),r.jsPlumb.ConnectorRenderers[t].apply(this,arguments)},a.extend(r.jsPlumb.Connectors[t][e],[n,r.jsPlumb.ConnectorRenderers[t]])};if(!r.jsPlumb.connectorsInitialized){for(var i=0;i=4?[i[2],i[3]]:[0,0],offsets:i.length>=6?[i[4],i[5]]:[0,0],elementId:o,jsPlumbInstance:e,cssClass:7==i.length?i[6]:null};s=new r.jsPlumb.Anchor(u),s.clone=function(){return new r.jsPlumb.Anchor(u)}}return s.id||(s.id="anchor_"+L()),s},this.makeAnchors=function(t,n,i){for(var o=[],s=0,u=t.length;s0&&n>=t.def.maxConnections},element:t.el,elementId:t.id,isSource:o,isTarget:s,addClass:function(n){e.addClass(t.el,n)},removeClass:function(n){e.removeClass(t.el,n)},onDrop:function(t){var e=t.endpoints[0];e.anchor.locked=!1},isDropAllowed:function(){return u.isDropAllowed.apply(u,arguments)},isRedrop:function(e){return null!=e.suspendedElement&&null!=e.suspendedEndpoint&&e.suspendedEndpoint.element===t.el},getEndpoint:function(i){var o=t.def.endpoint;if(null==o||null==o._jsPlumb){var s=e.deriveEndpointAndAnchorSpec(i.getType().join(" "),!0),a=s.endpoints?r.jsPlumb.extend(n,{endpoint:t.def.def.endpoint||s.endpoints[1]}):n;s.anchors&&(a=r.jsPlumb.extend(a,{anchor:t.def.def.anchor||s.anchors[1]})),o=e.addEndpoint(t.el,a),o._mtNew=!0}if(n.uniqueEndpoint&&(t.def.endpoint=o),o._doNotDeleteOnDetach=!1,o._deleteOnDetach=!0,i.isDetachable()&&o.initDraggable(),null!=o.anchor.positionFinder){var u=e.getUIPosition(arguments,e.getZoom()),l=e.getOffset(t.el),c=e.getSize(t.el),h=null==u?[0,0]:o.anchor.positionFinder(u,l,c,o.anchor.constructorParams);o.anchor.x=h[0],o.anchor.y=h[1]}return o},maybeCleanup:function(t){t._mtNew&&0===t.connections.length?e.deleteObject({endpoint:t}):delete t._mtNew}}),c=r.jsPlumb.dragEvents.drop;return i.scope=i.scope||n.scope||e.Defaults.Scope,i[c]=a.wrap(i[c],l,!0),s&&(i[r.jsPlumb.dragEvents.over]=function(){return!0}),n.allowLoopback===!1&&(i.canDrop=function(e){var n=e.getDragElement()._jsPlumbRelatedElement;return n!=t.el}),e.initDroppable(t.el,i,"internal"),l};this.makeTarget=function(t,e,n){var i=r.jsPlumb.extend({_jsPlumb:this},n);r.jsPlumb.extend(i,e),yt(i,1,this);for(var o=(!(i.deleteEndpointsOnDetach===!1),i.maxConnections||-1),s=function(t){var e=d(t),n=e.id,s=r.jsPlumb.extend({},i.dropOptions||{}),a="default";this.targetEndpointDefinitions[n]=this.targetEndpointDefinitions[n]||{},pt(n);var u={def:r.jsPlumb.extend({},i),uniqueEndpoint:i.uniqueEndpoint,maxConnections:o,enabled:!0};e.def=u,this.targetEndpointDefinitions[n][a]=u,_t(e,i,s,i.isSource===!0,!0),e.el._katavorioDrop[e.el._katavorioDrop.length-1].targetDef=u}.bind(this),a=t.length&&t.constructor!=String?t:[t],u=0,l=a.length;u=0&&g>=d.maxConnections)return c&&c({element:t.el,maxConnections:l},u),!1;var v=r.jsPlumb.getPositionOnElement(u,i,h),b={};r.jsPlumb.extend(b,o),b.isTemporarySource=!0,b.anchor=[v[0],v[1],0,0],b.dragOptions=p,d.def.scope&&(b.scope=d.def.scope),m=this.addEndpoint(n,b),y=!0,m._doNotDeleteOnDetach=!1,m._deleteOnDetach=!0,d.uniqueEndpoint&&(d.endpoint?m.finalEndpoint=d.endpoint:(d.endpoint=m,m._deleteOnDetach=!1,m._doNotDeleteOnDetach=!0));var _=function(){e.off(m.canvas,"mouseup",_),e.off(t.el,"mouseup",_),y&&(y=!1,e.deleteEndpoint(m))};e.on(m.canvas,"mouseup",_),e.on(t.el,"mouseup",_);var P={};if(d.def.extract)for(var E in d.def.extract){var x=(u.srcElement||u.target).getAttribute(E);x&&(P[d.def.extract[E]]=x)}e.trigger(m.canvas,"mousedown",u,P),a.consume(u)}}}.bind(this);this.on(t.el,"mousedown",b),u.trigger=b,o.filter&&(a.isString(o.filter)||a.isFunction(o.filter))&&e.setDragFilter(t.el,o.filter);var _=r.jsPlumb.extend({},o.dropOptions||{});_t(t,o,_,!0,o.isTarget===!0)}.bind(this),p=t.length&&t.constructor!=String?t:[t],g=0,v=p.length;g0;)o(n.el.childNodes[0]);e||jt(n,i)}};return e.batch(function(){o(t,!0)},n===!1),e},this.reset=function(){e.silently(function(){ft=!1,e.removeAllGroups(),e.removeGroupManager(),e.deleteEveryEndpoint(),e.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},E.length=0,this.doReset&&this.doReset()}.bind(this))};var St=function(t){t.canvas&&t.canvas.parentNode&&t.canvas.parentNode.removeChild(t.canvas),t.cleanup(),t.destroy()};this.clear=function(){e.select().each(St),e.selectEndpoints().each(St),x={},C={}},this.setDefaultScope=function(t){return T=t,e},this.setDraggable=W,this.deriveEndpointAndAnchorSpec=function(t,n){for(var i=((n?"":"default ")+t).split(/[\s]/),o=null,r=null,s=null,a=null,u=0;u0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},u=function(t){var e={},n=[],i={},o={},r={};this.register=function(s){var a=t.getId(s),u=t.getOffset(s);e[a]||(e[a]=s,n.push(s),i[a]={});var l=function(e){if(e)for(var n=0;n0){var h=t.getOffset(s);i[a][c]={id:c,offset:{left:h.left-u.left,top:h.top-u.top}},r[c]=a}l(e.childNodes[n])}};l(s)},this.updateOffsets=function(e,n){if(null!=e){n=n||{};var o=jsPlumb.getElement(e),s=t.getId(o),a=i[s],u=t.getOffset(o);if(a)for(var l in a)if(a.hasOwnProperty(l)){var c=jsPlumb.getElement(l),h=n[l]||t.getOffset(c);if(null==c.offsetParent&&null!=i[s][l])continue;i[s][l]={id:l,offset:{left:h.left-u.left,top:h.top-u.top}},r[l]=s}}},this.endpointAdded=function(n,s){s=s||t.getId(n);var a=document.body,u=n.parentNode;for(o[s]=o[s]?o[s]+1:1;null!=u&&u!=a;){var l=t.getId(u,null,!0);if(l&&e[l]){var c=t.getOffset(u);if(null==i[l][s]){var h=t.getOffset(n);i[l][s]={id:s,offset:{left:h.left-c.left,top:h.top-c.top}},r[s]=l}break}u=u.parentNode}},this.endpointDeleted=function(t){if(o[t.elementId]&&(o[t.elementId]--,o[t.elementId]<=0))for(var e in i)i.hasOwnProperty(e)&&i[e]&&(delete i[e][t.elementId],delete r[t.elementId])},this.changeId=function(t,e){i[e]=i[t],i[t]={},r[e]=r[t],r[t]=null},this.getElementsForDraggable=function(t){return i[t]},this.elementRemoved=function(t){var e=r[t];e&&(delete i[e][t],delete r[t])},this.reset=function(){e={},n=[],i={},o={}},this.dragEnded=function(e){if(null!=e.offsetParent){var n=t.getId(e),i=r[n];i&&this.updateOffsets(i)}},this.setParent=function(e,n,o,s,a){var u=r[n];i[s]||(i[s]={});var l=t.getOffset(o),c=a||t.getOffset(e);u&&delete i[u][n],i[s][n]={id:n,offset:{left:c.left-l.left,top:c.top-l.top}},r[n]=s},this.clearParent=function(t,e){var n=r[e];n&&(delete i[n][e],delete r[e])},this.revalidateParent=function(e,n,i){var o=r[n];if(o){var s={};s[n]=i,this.updateOffsets(o,s),t.revalidate(o)}},this.getDragAncestor=function(e){var n=jsPlumb.getElement(e),i=t.getId(n),o=r[i];return o?jsPlumb.getElement(o):null}},l=function(t){return null==t?null:t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},c=function(t,e){e=l(e),"undefined"!=typeof t.className.baseVal?t.className.baseVal=e:t.className=e},h=function(t){return"undefined"==typeof t.className.baseVal?t.className:t.className.baseVal},d=function(t,n,i){n=null==n?[]:e.isArray(n)?n:n.split(/\s+/),i=null==i?[]:e.isArray(i)?i:i.split(/\s+/);var o=h(t),r=o.split(/\s+/),s=function(t,e){for(var n=0;n0||t.scrollLeft>0)&&(i.left-=t.scrollLeft,i.top-=t.scrollTop)}.bind(this);null!=o;)i.left+=o.offsetLeft,i.top+=o.offsetTop,r(o),o=e?o.offsetParent:o.offsetParent==n?null:o.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="undefined"!=typeof e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0,width:0,height:0},o=document.body,r=document.documentElement,s=window.pageYOffset||r.scrollTop||o.scrollTop,a=window.pageXOffset||r.scrollLeft||o.scrollLeft,u=r.clientTop||o.clientTop||0,l=r.clientLeft||o.clientLeft||0,c=0,h=0,d=i.top+s-u+c*n,f=i.left+a-l+h*n,p=jsPlumb.pageLocation(t),g=i.width||e.offsetWidth*n,v=i.height||e.offsetHeight*n,m=(p[0]-f)/g,y=(p[1]-d)/v;return[m,y]},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"}})}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i="__label",o=function(t,n){var o={cssClass:n.cssClass,labelStyle:t.labelStyle,id:i,component:t,_jsPlumb:t._jsPlumb.instance},r=e.extend(o,n);return new(e.Overlays[t._jsPlumb.instance.getRenderMode()].Label)(r)},r=function(t,i){var o=null;if(n.isArray(i)){var r=i[0],s=e.extend({component:t,_jsPlumb:t._jsPlumb.instance},i[1]);3==i.length&&e.extend(s,i[2]),o=new(e.Overlays[t._jsPlumb.instance.getRenderMode()][r])(s)}else o=i.constructor==String?new(e.Overlays[t._jsPlumb.instance.getRenderMode()][i])({component:t,_jsPlumb:t._jsPlumb.instance}):i;return o.id=o.id||n.uuid(),t.cacheTypeItem("overlay",o,o.id),t._jsPlumb.overlays[o.id]=o,o};e.OverlayCapableJsPlumbUIComponent=function(e){t.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.overlays={},this._jsPlumb.overlayPositions={},e.label&&(this.getDefaultType().overlays[i]=["Label",{label:e.label,location:e.labelLocation||this.defaultLabelLocation||.5,labelStyle:e.labelStyle||this._jsPlumb.instance.Defaults.LabelStyle,id:i}]),this.setListenerComponent=function(t){if(this._jsPlumb)for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].setListenerComponent(t)}},e.OverlayCapableJsPlumbUIComponent.applyType=function(t,e){if(e.overlays){var n,i={};for(n in e.overlays){var o=t._jsPlumb.overlays[e.overlays[n][1].id];if(o)o.updateFrom(e.overlays[n][1]),i[e.overlays[n][1].id]=!0;else{var r=t.getCachedTypeItem("overlay",e.overlays[n][1].id);null!=r?(r.reattach(t._jsPlumb.instance),r.setVisible(!0),r.updateFrom(e.overlays[n][1]),t._jsPlumb.overlays[r.id]=r):r=t.addOverlay(e.overlays[n],!0),i[r.id]=!0}}for(n in t._jsPlumb.overlays)null==i[t._jsPlumb.overlays[n].id]&&t.removeOverlay(t._jsPlumb.overlays[n].id,!0)}},n.extend(e.OverlayCapableJsPlumbUIComponent,t.jsPlumbUIComponent,{setHover:function(t,e){if(this._jsPlumb&&!this._jsPlumb.instance.isConnectionBeingDragged())for(var n in this._jsPlumb.overlays)this._jsPlumb.overlays[n][t?"addClass":"removeClass"](this._jsPlumb.instance.hoverClass)},addOverlay:function(t,e){var n=r(this,t);return e||this.repaint(),n},getOverlay:function(t){return this._jsPlumb.overlays[t]},getOverlays:function(){return this._jsPlumb.overlays},hideOverlay:function(t){var e=this.getOverlay(t);e&&e.hide()},hideOverlays:function(){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].hide()},showOverlay:function(t){var e=this.getOverlay(t);e&&e.show()},showOverlays:function(){for(var t in this._jsPlumb.overlays)this._jsPlumb.overlays[t].show()},removeAllOverlays:function(t){for(var e in this._jsPlumb.overlays)this._jsPlumb.overlays[e].cleanup&&this._jsPlumb.overlays[e].cleanup();this._jsPlumb.overlays={},this._jsPlumb.overlayPositions=null,t||this.repaint()},removeOverlay:function(t,e){var n=this._jsPlumb.overlays[t];n&&(n.setVisible(!1),!e&&n.cleanup&&n.cleanup(),delete this._jsPlumb.overlays[t],this._jsPlumb.overlayPositions&&delete this._jsPlumb.overlayPositions[t])},removeOverlays:function(){for(var t=0,e=arguments.length;t0)for(var e=0;e0?"add":"remove")+"Class"](u.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](u.endpointFullClass)},this.detachFromConnection=function(t,e,n){e=null==e?this.connections.indexOf(t):e,e>=0&&(this.connections.splice(e,1),this[(this.connections.length>0?"add":"remove")+"Class"](u.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](u.endpointFullClass)),(this._forceDeleteOnDetach||!n&&this._deleteOnDetach)&&0===this.connections.length&&u.deleteObject({ endpoint:this,fireEvent:!1,deleteAttachedObjects:n!==!0})},this.detach=function(t){var e=t.connectionIndex,n=t.connection,i=t.ignoreTarget,o=t.fireEvent,r=t.originalEvent,s=t.endpointBeingDeleted,a=t.forceDetach,l=null==e?this.connections.indexOf(n):e,c=!1;return o=o!==!1,l>=0&&(a||n._forceDetach||n.isDetachable()&&n.isDetachAllowed(n)&&this.isDetachAllowed(n)&&u.checkCondition("beforeDetach",n,s))&&(u.deleteObject({connection:n,fireEvent:!i&&o,originalEvent:r,deleteAttachedObjects:t.deleteAttachedObjects}),c=!0),c},this.detachAll=function(t,e){for(var n=[];this.connections.length>0;){var i=this.detach({connection:this.connections[0],ignoreTarget:!1,forceDetach:e===!0,fireEvent:t!==!1,originalEvent:null,endpointBeingDeleted:this,connectionIndex:0});i||(n.push(this.connections[0]),this.connections.splice(0,1))}return this.connections=n,this},this.detachFrom=function(t,e,n){for(var i=[],o=0;o0){var h=a(this,t.elementWithPrecedence),d=h.endpoints[0]==this?1:0,f=0===d?h.sourceId:h.targetId,p=u.getCachedData(f),g=p.o,v=p.s;c.txy=[g.left,g.top],c.twh=v,c.tElement=h.endpoints[d]}r=this.anchor.compute(c)}this.endpoint.compute(r,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,s||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=e;for(var m in this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(m)){var y=this._jsPlumb.overlays[m];y.isVisible()&&(this._jsPlumb.overlayPlacements[m]=y.draw(this.endpoint,this._jsPlumb.paintStyleInUse),y.paint(this._jsPlumb.overlayPlacements[m]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var p=!1;this.initDraggable=function(){if(!p&&e.isDragSupported(this.element)){var s,a={id:null,element:null},d=null,f=!1,g=null,v=i(this,a,u),m=t.dragOptions||{},y={},b=e.dragEvents.start,_=e.dragEvents.stop,P=e.dragEvents.drag,E=e.dragEvents.beforeStart,x=function(t){s=t.e.payload||{}},C=function(i){d=this.connectorSelector();var h=!0;this.isEnabled()||(h=!1),null!=d||this.isSource||this.isTemporarySource||(h=!1),!this.isSource||!this.isFull()||null!=d&&this.dragAllowedWhenFull||(h=!1),null==d||d.isDetachable(this)||(h=!1);var p=u.checkCondition(null==d?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:d});if(p===!1?h=!1:"object"==typeof p?e.extend(p,s||{}):p=s||{},h===!1)return u.stopDrag&&u.stopDrag(this.canvas),v.stopDrag(),!1;for(var m=0;m0}.bind(this),u.initDraggable(this.canvas,m,"internal"),this.canvas._jsPlumbRelatedElement=this.element,p=!0}};var g=t.endpoint||this._jsPlumb.instance.Defaults.Endpoint||e.Defaults.Endpoint;this.setEndpoint(g,!0);var v=t.anchor?t.anchor:t.anchors?t.anchors:u.Defaults.Anchor||"Top";this.setAnchor(v,!0);var m=["default",t.type||""].join(" ");this.addType(m,t.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var y=function(i,o,r,s){if(e.isDropSupported(this.element)){var a=t.dropOptions||u.Defaults.DropOptions||e.Defaults.DropOptions;a=e.extend({},a),a.scope=a.scope||this.scope;var l=e.dragEvents.drop,c=e.dragEvents.over,h=e.dragEvents.out,d=this,f=u.EndpointDropHandler({getEndpoint:function(){return d},jsPlumb:u,enabled:function(){return null==r||r.isEnabled()},isFull:function(){return r.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(t){d.addClass(t)},removeClass:function(t){d.removeClass(t)},isDropAllowed:function(){return d.isDropAllowed.apply(d,arguments)},reference:s,isRedrop:function(t,e){return t.suspendedEndpoint&&e.reference&&t.suspendedEndpoint.id===e.reference.id}});a[l]=n.wrap(a[l],f,!0),a[c]=n.wrap(a[c],function(){var t=e.getDragObject(arguments),n=u.getAttribute(e.getElement(t),"dragId"),i=u.floatingConnections[n];if(null!=i){var o=u.getFloatingAnchorIndex(i),r=this.isTarget&&0!==o||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id==i.suspendedEndpoint.id;if(r){var s=u.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[o],targetEndpoint:this,connection:i});this[(s?"add":"remove")+"Class"](u.endpointDropAllowedClass),this[(s?"remove":"add")+"Class"](u.endpointDropForbiddenClass),i.endpoints[o].anchor.over(this.anchor,this)}}}.bind(this)),a[h]=n.wrap(a[h],function(){var t=e.getDragObject(arguments),n=null==t?null:u.getAttribute(e.getElement(t),"dragId"),i=n?u.floatingConnections[n]:null;if(null!=i){var o=u.getFloatingAnchorIndex(i),r=this.isTarget&&0!==o||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id==i.suspendedEndpoint.id;r&&(this.removeClass(u.endpointDropAllowedClass),this.removeClass(u.endpointDropForbiddenClass),i.endpoints[o].anchor.out())}}.bind(this)),u.initDroppable(i,a,"internal",o)}}.bind(this);return this.anchor.isFloating||y(this.canvas,!(t._transient||this.anchor.isFloating),this,t.reference),this},n.extend(e.Endpoint,e.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;ie.dist?1:0});for(var p=c[0].source,g=c[0].target,v=0;vn[0][0],i===!1?-1:1}},m=function(t,e){var n=t[0][0]<0?-Math.PI-t[0][0]:Math.PI-t[0][0],i=e[0][0]<0?-Math.PI-e[0][0]:Math.PI-e[0][0];return n>i?1:-1},y={top:function(t,e){return t[0]>e[0]?1:-1},right:v(!0),bottom:v(!0),left:m},b=function(t,e){return t.sort(e)},_=function(t,e){var n=d.getCachedData(t),i=n.s,r=n.o,a=function(e,n,i,r,a,u,l){if(r.length>0)for(var c=b(r,y[e]),h="right"===e||"top"===e,d=g(e,n,i,c,a,u,h),f=function(t,e){o[t.id]=[e[0],e[1],e[2],e[3]],s[t.id]=l},p=0;p