gg-editor
Version:
A visual graph editor based on G6 and React
15 lines (13 loc) • 1.04 MB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],e):e((t=t||self).GGEditor={},t.React,t.ReactDOM)}(this,(function(t,e,n){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e){return t(e={exports:{}},e.exports),e.exports}var i,a=o((function(t,e){window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=522)}([function(t,e,n){n.r(e),n.d(e,"contains",(function(){return o})),n.d(e,"includes",(function(){return o})),n.d(e,"difference",(function(){return a})),n.d(e,"find",(function(){return x})),n.d(e,"findIndex",(function(){return w})),n.d(e,"firstValue",(function(){return _})),n.d(e,"flatten",(function(){return M})),n.d(e,"flattenDeep",(function(){return S})),n.d(e,"getRange",(function(){return O})),n.d(e,"pull",(function(){return C})),n.d(e,"pullAt",(function(){return A})),n.d(e,"reduce",(function(){return I})),n.d(e,"remove",(function(){return N})),n.d(e,"sortBy",(function(){return B})),n.d(e,"union",(function(){return R})),n.d(e,"uniq",(function(){return D})),n.d(e,"valuesOfKey",(function(){return L})),n.d(e,"head",(function(){return z})),n.d(e,"last",(function(){return F})),n.d(e,"startsWith",(function(){return G})),n.d(e,"endsWith",(function(){return Y})),n.d(e,"filter",(function(){return i})),n.d(e,"every",(function(){return q})),n.d(e,"some",(function(){return V})),n.d(e,"group",(function(){return H})),n.d(e,"groupBy",(function(){return W})),n.d(e,"groupToMap",(function(){return X})),n.d(e,"getWrapBehavior",(function(){return $})),n.d(e,"wrapBehavior",(function(){return Z})),n.d(e,"number2color",(function(){return Q})),n.d(e,"parseRadius",(function(){return J})),n.d(e,"clamp",(function(){return tt})),n.d(e,"fixedBase",(function(){return et})),n.d(e,"isDecimal",(function(){return rt})),n.d(e,"isEven",(function(){return ot})),n.d(e,"isInteger",(function(){return it})),n.d(e,"isNegative",(function(){return at})),n.d(e,"isNumberEqual",(function(){return ut})),n.d(e,"isOdd",(function(){return st})),n.d(e,"isPositive",(function(){return ct})),n.d(e,"maxBy",(function(){return ft})),n.d(e,"minBy",(function(){return ht})),n.d(e,"mod",(function(){return lt})),n.d(e,"toDegree",(function(){return pt})),n.d(e,"toInteger",(function(){return vt})),n.d(e,"toRadian",(function(){return yt})),n.d(e,"forIn",(function(){return mt})),n.d(e,"has",(function(){return bt})),n.d(e,"hasKey",(function(){return xt})),n.d(e,"hasValue",(function(){return _t})),n.d(e,"keys",(function(){return v})),n.d(e,"isMatch",(function(){return g})),n.d(e,"values",(function(){return wt})),n.d(e,"lowerCase",(function(){return St})),n.d(e,"lowerFirst",(function(){return Ot})),n.d(e,"substitute",(function(){return Et})),n.d(e,"upperCase",(function(){return jt})),n.d(e,"upperFirst",(function(){return kt})),n.d(e,"getType",(function(){return Pt})),n.d(e,"isArguments",(function(){return At})),n.d(e,"isArray",(function(){return h})),n.d(e,"isArrayLike",(function(){return r})),n.d(e,"isBoolean",(function(){return It})),n.d(e,"isDate",(function(){return Nt})),n.d(e,"isError",(function(){return Tt})),n.d(e,"isFunction",(function(){return c})),n.d(e,"isFinite",(function(){return Bt})),n.d(e,"isNil",(function(){return f})),n.d(e,"isNull",(function(){return Dt})),n.d(e,"isNumber",(function(){return nt})),n.d(e,"isObject",(function(){return d})),n.d(e,"isObjectLike",(function(){return m})),n.d(e,"isPlainObject",(function(){return b})),n.d(e,"isPrototype",(function(){return Lt})),n.d(e,"isRegExp",(function(){return zt})),n.d(e,"isString",(function(){return T})),n.d(e,"isType",(function(){return s})),n.d(e,"isUndefined",(function(){return Ft})),n.d(e,"isElement",(function(){return Gt})),n.d(e,"requestAnimationFrame",(function(){return Yt})),n.d(e,"clearAnimationFrame",(function(){return qt})),n.d(e,"augment",(function(){return Wt})),n.d(e,"clone",(function(){return Ht})),n.d(e,"debounce",(function(){return $t})),n.d(e,"memoize",(function(){return Zt})),n.d(e,"deepMix",(function(){return Qt})),n.d(e,"each",(function(){return p})),n.d(e,"extend",(function(){return Jt})),n.d(e,"indexOf",(function(){return te})),n.d(e,"isEmpty",(function(){return ne})),n.d(e,"isEqual",(function(){return re})),n.d(e,"isEqualWith",(function(){return oe})),n.d(e,"map",(function(){return ie})),n.d(e,"mapValues",(function(){return ue})),n.d(e,"mix",(function(){return Ut})),n.d(e,"assign",(function(){return Ut})),n.d(e,"get",(function(){return se})),n.d(e,"set",(function(){return ce})),n.d(e,"pick",(function(){return he})),n.d(e,"throttle",(function(){return le})),n.d(e,"toArray",(function(){return de})),n.d(e,"toString",(function(){return Mt})),n.d(e,"uniqueId",(function(){return ve})),n.d(e,"noop",(function(){return ge})),n.d(e,"identity",(function(){return ye})),n.d(e,"size",(function(){return me})),n.d(e,"Cache",(function(){return be}));var r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},o=function(t,e){return!!r(t)&&t.indexOf(e)>-1},i=function(t,e){if(!r(t))return t;for(var n=[],o=0;o<t.length;o++){var i=t[o];e(i,o)&&n.push(i)}return n},a=function(t,e){return void 0===e&&(e=[]),i(t,(function(t){return!o(e,t)}))},u={}.toString,s=function(t,e){return u.call(t)==="[object "+e+"]"},c=function(t){return s(t,"Function")},f=function(t){return null==t},h=function(t){return Array.isArray?Array.isArray(t):s(t,"Array")};function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var d=function(t){var e=l(t);return null!==t&&"object"===e||"function"===e},p=function(t,e){if(t)if(h(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(d(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break},v=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return p(t,(function(n,r){c(t)&&"prototype"===r||e.push(r)})),e},g=function(t,e){var n=v(e),r=n.length;if(f(t))return!r;for(var o=0;o<r;o+=1){var i=n[o];if(e[i]!==t[i]||!(i in t))return!1}return!0};function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=function(t){return"object"===y(t)&&null!==t},b=function(t){if(!m(t)||!s(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},x=function(t,e){if(!h(t))return null;var n;if(c(e)&&(n=e),b(e)&&(n=function(t){return g(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null},w=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1},_=function(t,e){for(var n=null,r=0;r<t.length;r++){var o=t[r][e];if(!f(o)){n=h(o)?o[0]:o;break}}return n},M=function(t){if(!h(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},S=function t(e,n){if(void 0===n&&(n=[]),h(e))for(var r=0;r<e.length;r+=1)t(e[r],n);else n.push(e);return n},O=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(h(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var o=Math.max.apply(null,e);return{min:Math.min.apply(null,e),max:o}},E=Array.prototype,j=E.splice,k=E.indexOf,C=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var o=e[r],i=-1;(i=k.call(t,o))>-1;)j.call(t,i,1);return t},P=Array.prototype.splice,A=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,o=n-1;n--;){var i=void 0,a=e[n];n!==o&&a===i||(i=a,P.call(t,a,1))}return t},I=function(t,e,n){if(!h(t)&&!b(t))return t;var r=n;return p(t,(function(t,n){r=e(r,t,n)})),r},N=function(t,e){var n=[];if(!r(t))return n;for(var o=-1,i=[],a=t.length;++o<a;){var u=t[o];e(u,o,t)&&(n.push(u),i.push(o))}return A(t,i),n},T=function(t){return s(t,"String")},B=function(t,e){var n;if(c(e))n=function(t,n){return e(t)-e(n)};else{var r=[];T(e)?r.push(e):h(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var o=r[n];if(t[o]>e[o])return 1;if(t[o]<e[o])return-1}return 0}}return t.sort(n),t},D=function(t){var e=[];return p(t,(function(t){o(e,t)||e.push(t)})),e},R=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return D([].concat.apply([],t))},L=function(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o][e];if(!f(i)){h(i)||(i=[i]);for(var a=0;a<i.length;a++){var u=i[a];r[u]||(n.push(u),r[u]=!0)}}}return n};function z(t){if(r(t))return t[0]}function F(t){if(r(t))return t[t.length-1]}var G=function(t,e){return!(!h(t)&&!T(t))&&t[0]===e},Y=function(t,e){return!(!h(t)&&!T(t))&&t[t.length-1]===e},q=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},V=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},U=Object.prototype.hasOwnProperty,W=function(t,e){if(!e||!h(t))return{};for(var n,r={},o=c(e)?e:function(t){return t[e]},i=0;i<t.length;i++){var a=t[i];n=o(a),U.call(r,n)?r[n].push(a):r[n]=[a]}return r},X=function(t,e){if(!e)return{0:t};if(!c(e)){var n=h(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,o=n.length;r<o;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return W(t,e)},H=function(t,e){if(!e)return[t];var n=X(t,e),r=[];for(var o in n)r.push(n[o]);return r},$=function(t,e){return t["_wrap_"+e]},Z=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},K={},Q=function(t){var e=K[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,K[t]=e}return e},J=function(t){var e=0,n=0,r=0,o=0;return h(t)?1===t.length?e=n=r=o=t[0]:2===t.length?(e=r=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],o=t[3]):e=n=r=o=t,{r1:e,r2:n,r3:r,r4:o}},tt=function(t,e,n){return t<e?e:t>n?n:t},et=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var o=n.substr(r+1).length;return o>20&&(o=20),parseFloat(t.toFixed(o))},nt=function(t){return s(t,"Number")},rt=function(t){return nt(t)&&t%1!=0},ot=function(t){return nt(t)&&t%2==0},it=Number.isInteger?Number.isInteger:function(t){return nt(t)&&t%1==0},at=function(t){return nt(t)&&t<0};function ut(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var st=function(t){return nt(t)&&t%2!=0},ct=function(t){return nt(t)&&t>0},ft=function(t,e){if(h(t)){var n,r,o=t[0];return n=c(e)?e(t[0]):t[0][e],p(t,(function(t){(r=c(e)?e(t):t[e])>n&&(o=t,n=r)})),o}},ht=function(t,e){if(h(t)){var n,r,o=t[0];return n=c(e)?e(t[0]):t[0][e],p(t,(function(t){(r=c(e)?e(t):t[e])<n&&(o=t,n=r)})),o}},lt=function(t,e){return(t%e+e)%e},dt=180/Math.PI,pt=function(t){return dt*t},vt=parseInt,gt=Math.PI/180,yt=function(t){return gt*t},mt=p,bt=function(t,e){return t.hasOwnProperty(e)},xt=bt,wt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return p(t,(function(n,r){c(t)&&"prototype"===r||e.push(n)})),e},_t=function(t,e){return o(wt(t),e)},Mt=function(t){return f(t)?"":t.toString()},St=function(t){return Mt(t).toLowerCase()},Ot=function(t){var e=Mt(t);return e.charAt(0).toLowerCase()+e.substring(1)},Et=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t},jt=function(t){return Mt(t).toUpperCase()},kt=function(t){var e=Mt(t);return e.charAt(0).toUpperCase()+e.substring(1)},Ct={}.toString,Pt=function(t){return Ct.call(t).replace(/^\[object /,"").replace(/]$/,"")},At=function(t){return s(t,"Arguments")},It=function(t){return s(t,"Boolean")},Nt=function(t){return s(t,"Date")},Tt=function(t){return s(t,"Error")},Bt=function(t){return nt(t)&&isFinite(t)},Dt=function(t){return null===t},Rt=Object.prototype,Lt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Rt)},zt=function(t){return s(t,"RegExp")},Ft=function(t){return void 0===t},Gt=function(t){return t instanceof Element||t instanceof HTMLDocument};function Yt(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function qt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Vt(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Ut(t,e,n,r){return e&&Vt(t,e),n&&Vt(t,n),r&&Vt(t,r),t}var Wt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var o=t[r];c(o)&&(o=o.prototype),Ut(n.prototype,o)}};function Xt(t){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ht=function t(e){if("object"!==Xt(e)||null===e)return e;var n;if(h(e)){n=[];for(var r=0,o=e.length;r<o;r++)"object"===Xt(e[r])&&null!=e[r]?n[r]=t(e[r]):n[r]=e[r]}else for(var i in n={},e)"object"===Xt(e[i])&&null!=e[i]?n[i]=t(e[i]):n[i]=e[i];return n},$t=function(t,e,n){var r;return function(){var o=this,i=arguments,a=function(){r=null,n||t.apply(o,i)},u=n&&!r;clearTimeout(r),r=setTimeout(a,e),u&&t.apply(o,i)}},Zt=function(t,e){if(!c(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var u=t.apply(this,r);return a.set(i,u),u};return n.cache=new Map,n};function Kt(t,e,n,r){for(var o in n=n||0,r=r||5,e)if(e.hasOwnProperty(o)){var i=e[o];null!==i&&b(i)?(b(t[o])||(t[o]={}),n<r?Kt(t[o],i,n+1,r):t[o]=e[o]):h(i)?(t[o]=[],t[o]=t[o].concat(i)):void 0!==i&&(t[o]=i)}}var Qt=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)Kt(t,e[r]);return t},Jt=function(t,e,n,r){c(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},i=o(e.prototype,t);return t.prototype=Ut(i,t.prototype),t.superclass=o(e.prototype,e),Ut(i,n),Ut(t,r),t},te=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var o=-1,i=0;i<t.length;i++)if(t[i]===e){o=i;break}return o},ee=Object.prototype.hasOwnProperty,ne=function(t){if(f(t))return!0;if(r(t))return!t.length;var e=Pt(t);if("Map"===e||"Set"===e)return!t.size;if(Lt(t))return!Object.keys(t).length;for(var n in t)if(ee.call(t,n))return!1;return!0},re=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(T(e)||T(n))return!1;if(r(e)||r(n)){if(e.length!==n.length)return!1;for(var o=!0,i=0;i<e.length&&(o=t(e[i],n[i]));i++);return o}if(m(e)||m(n)){var a=Object.keys(e),u=Object.keys(n);if(a.length!==u.length)return!1;for(o=!0,i=0;i<a.length&&(o=t(e[a[i]],n[a[i]]));i++);return o}return!1},oe=function(t,e,n){return c(n)?!!n(t,e):re(t,e)},ie=function(t,e){if(!r(t))return t;for(var n=[],o=0;o<t.length;o++){var i=t[o];n.push(e(i,o))}return n},ae=function(t){return t},ue=function(t,e){void 0===e&&(e=ae);var n={};return d(t)&&!f(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},se=function(t,e,n){for(var r=0,o=T(e)?e.split("."):e;t&&r<o.length;)t=t[o[r++]];return void 0===t||r<o.length?n:t},ce=function(t,e,n){var r=t,o=T(e)?e.split("."):e;return o.forEach((function(t,e){e<o.length-1?(d(r[t])||(r[t]=nt(o[e+1])?[]:{}),r=r[t]):r[t]=n})),t},fe=Object.prototype.hasOwnProperty,he=function(t,e){if(null===t||!b(t))return{};var n={};return p(e,(function(e){fe.call(t,e)&&(n[e]=t[e])})),n},le=function(t,e,n){var r,o,i,a,u=0;n||(n={});var s=function(){u=!1===n.leading?0:Date.now(),r=null,a=t.apply(o,i),r||(o=i=null)},c=function(){var c=Date.now();u||!1!==n.leading||(u=c);var f=e-(c-u);return o=this,i=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),u=c,a=t.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(s,f)),a};return c.cancel=function(){clearTimeout(r),u=0,r=o=i=null},c},de=function(t){return r(t)?Array.prototype.slice.call(t):[]},pe={},ve=function(t){return pe[t=t||"g"]?pe[t]+=1:pe[t]=1,t+pe[t]},ge=function(){},ye=function(t){return t};function me(t){return f(t)?0:r(t)?t.length:Object.keys(t).length}var be=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return a})),n.d(e,"__rest",(function(){return u})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return f})),n.d(e,"__awaiter",(function(){return h})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return v})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return y})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return x})),n.d(e,"__asyncDelegator",(function(){return w})),n.d(e,"__asyncValues",(function(){return _})),n.d(e,"__makeTemplateObject",(function(){return M})),n.d(e,"__importStar",(function(){return S})),n.d(e,"__importDefault",(function(){return O})),n.d(e,"__classPrivateFieldGet",(function(){return E})),n.d(e,"__classPrivateFieldSet",(function(){return j}));var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function u(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function s(t,e,n,o){var i,a=arguments.length,u=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(u=(a<3?i(u):a>3?i(e,n,u):i(e,n))||u);return a>3&&u&&Object.defineProperty(e,n,u),u}function c(t,e){return function(n,r){e(n,r,t)}}function f(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))}function l(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function d(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function v(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function x(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=o[t](e)).value instanceof b?Promise.resolve(n.value.v).then(s,c):f(i[0][2],n)}catch(t){f(i[0][3],t)}var n}function s(t){u("next",t)}function c(t){u("throw",t)}function f(t,e){t(e),i.shift(),i.length&&u(i[0][0],i[0][1])}}function w(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function _(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=v(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,o,(e=t[n](e)).done,e.value)}))}}}function M(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function O(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function j(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n(33);e.default=function(t,e){if(t)if(r.default(t))for(var n=0,i=t.length;n<i&&!1!==e(t[n],n);n++);else if(o.default(t))for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(25);e.default=function(t){return r.default(t,"String")}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(25);e.default=function(t){return Array.isArray?Array.isArray(t):r.default(t,"Array")}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n(36);function i(t,e,n,a){for(var u in n=n||0,a=a||5,e)if(e.hasOwnProperty(u)){var s=e[u];null!==s&&o.default(s)?(o.default(t[u])||(t[u]={}),n<a?i(t[u],s,n+1,a):t[u]=e[u]):r.default(s)?(t[u]=[],t[u]=t[u].concat(s)):void 0!==s&&(t[u]=s)}}e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)i(t,e[r]);return t}},function(t,e,n){n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return i}));var r=1e-6,o="undefined"!=typeof Float32Array?Float32Array:Array,i=Math.random;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(25);e.default=function(t){return r.default(t,"Number")}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null==t}},function(t,e,n){var r;try{r={cloneDeep:n(461),constant:n(111),defaults:n(462),each:n(173),filter:n(176),find:n(463),flatten:n(203),forEach:n(174),forIn:n(468),has:n(187),isUndefined:n(188),last:n(469),map:n(189),mapValues:n(470),max:n(471),merge:n(473),min:n(479),minBy:n(480),now:n(481),pick:n(482),range:n(487),reduce:n(191),sortBy:n(490),uniqueId:n(495),values:n(196),zipObject:n(496)}}catch(t){}r||(r=window._),t.exports=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(25);e.default=function(t){return r.default(t,"Function")}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(68);e.contains=r.default,e.includes=r.default;var o=n(223);e.difference=o.default;var i=n(224);e.find=i.default;var a=n(225);e.findIndex=a.default;var u=n(226);e.firstValue=u.default;var s=n(227);e.flatten=s.default;var c=n(228);e.flattenDeep=c.default;var f=n(229);e.getRange=f.default;var h=n(230);e.pull=h.default;var l=n(125);e.pullAt=l.default;var d=n(231);e.reduce=d.default;var p=n(232);e.remove=p.default;var v=n(233);e.sortBy=v.default;var g=n(234);e.union=g.default;var y=n(126);e.uniq=y.default;var m=n(235);e.valuesOfKey=m.default;var b=n(236);e.head=b.default;var x=n(237);e.last=x.default;var w=n(238);e.startsWith=w.default;var _=n(239);e.endsWith=_.default;var M=n(122);e.filter=M.default;var S=n(240);e.every=S.default;var O=n(241);e.some=O.default;var E=n(242);e.group=E.default;var j=n(65);e.groupBy=j.default;var k=n(127);e.groupToMap=k.default;var C=n(243);e.getWrapBehavior=C.default;var P=n(45);e.wrapBehavior=P.default;var A=n(244);e.number2color=A.default;var I=n(245);e.parseRadius=I.default;var N=n(246);e.clamp=N.default;var T=n(247);e.fixedBase=T.default;var B=n(248);e.isDecimal=B.default;var D=n(249);e.isEven=D.default;var R=n(250);e.isInteger=R.default;var L=n(251);e.isNegative=L.default;var z=n(92);e.isNumberEqual=z.default;var F=n(252);e.isOdd=F.default;var G=n(253);e.isPositive=G.default;var Y=n(254);e.maxBy=Y.default;var q=n(255);e.minBy=q.default;var V=n(63);e.mod=V.default;var U=n(256);e.toDegree=U.default;var W=n(257);e.toInteger=W.default;var X=n(64);e.toRadian=X.default;var H=n(258);e.forIn=H.default;var $=n(128);e.has=$.default;var Z=n(259);e.hasKey=Z.default;var K=n(260);e.hasValue=K.default;var Q=n(124);e.keys=Q.default;var J=n(123);e.isMatch=J.default;var tt=n(129);e.values=tt.default;var et=n(261);e.lowerCase=et.default;var nt=n(262);e.lowerFirst=nt.default;var rt=n(263);e.substitute=rt.default;var ot=n(264);e.upperCase=ot.default;var it=n(44);e.upperFirst=it.default;var at=n(130);e.getType=at.default;var ut=n(265);e.isArguments=ut.default;var st=n(4);e.isArray=st.default;var ct=n(19);e.isArrayLike=ct.default;var ft=n(266);e.isBoolean=ft.default;var ht=n(267);e.isDate=ht.default;var lt=n(268);e.isError=lt.default;var dt=n(10);e.isFunction=dt.default;var pt=n(269);e.isFinite=pt.default;var vt=n(8);e.isNil=vt.default;var gt=n(270);e.isNull=gt.default;var yt=n(7);e.isNumber=yt.default;var mt=n(33);e.isObject=mt.default;var bt=n(91);e.isObjectLike=bt.default;var xt=n(36);e.isPlainObject=xt.default;var wt=n(131);e.isPrototype=wt.default;var _t=n(271);e.isRegExp=_t.default;var Mt=n(3);e.isString=Mt.default;var St=n(25);e.isType=St.default;var Ot=n(272);e.isUndefined=Ot.default;var Et=n(273);e.isElement=Et.default;var jt=n(132);e.requestAnimationFrame=jt.default;var kt=n(133);e.clearAnimationFrame=kt.default;var Ct=n(274);e.augment=Ct.default;var Pt=n(39);e.clone=Pt.default;var At=n(275);e.debounce=At.default;var It=n(276);e.memoize=It.default;var Nt=n(5);e.deepMix=Nt.default;var Tt=n(2);e.each=Tt.default;var Bt=n(277);e.extend=Bt.default;var Dt=n(278);e.indexOf=Dt.default;var Rt=n(279);e.isEmpty=Rt.default;var Lt=n(89);e.isEqual=Lt.default;var zt=n(280);e.isEqualWith=zt.default;var Ft=n(281);e.map=Ft.default;var Gt=n(282);e.mapValues=Gt.default;var Yt=n(16);e.mix=Yt.default,e.assign=Yt.default;var qt=n(283);e.get=qt.default;var Vt=n(284);e.set=Vt.default;var Ut=n(285);e.pick=Ut.default;var Wt=n(286);e.throttle=Wt.default;var Xt=n(287);e.toArray=Xt.default;var Ht=n(54);e.toString=Ht.default;var $t=n(288);e.uniqueId=$t.default;var Zt=n(289);e.noop=Zt.default;var Kt=n(290);e.identity=Kt.default;var Qt=n(291);e.size=Qt.default;var Jt=n(292);e.Cache=Jt.default},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(134);e.mat3=r.default;var o=n(293);e.vec2=o.default;var i=n(294);e.vec3=i.default;var a=n(295);e.transform=a.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new r.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,o,i,a,u,s,c){var f=new r.ARRAY_TYPE(9);return f[0]=t,f[1]=e,f[2]=n,f[3]=o,f[4]=i,f[5]=a,f[6]=u,f[7]=s,f[8]=c,f},e.set=function(t,e,n,r,o,i,a,u,s,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=u,t[7]=s,t[8]=c,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],u=e[5],s=e[6],c=e[7],f=e[8],h=f*a-u*c,l=-f*i+u*s,d=c*i-a*s,p=n*h+r*l+o*d;return p?(p=1/p,t[0]=h*p,t[1]=(-f*r+o*c)*p,t[2]=(u*r-o*a)*p,t[3]=l*p,t[4]=(f*n-o*s)*p,t[5]=(-u*n+o*i)*p,t[6]=d*p,t[7]=(-c*n+r*s)*p,t[8]=(a*n-r*i)*p,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],u=e[5],s=e[6],c=e[7],f=e[8];return t[0]=a*f-u*c,t[1]=o*c-r*f,t[2]=r*u-o*a,t[3]=u*s-i*f,t[4]=n*f-o*s,t[5]=o*i-n*u,t[6]=i*c-a*s,t[7]=r*s-n*c,t[8]=n*a-r*i,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],a=t[5],u=t[6],s=t[7],c=t[8];return e*(c*i-a*s)+n*(-c*o+a*u)+r*(s*o-i*u)},e.multiply=o,e.translate=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],u=e[4],s=e[5],c=e[6],f=e[7],h=e[8],l=n[0],d=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=u,t[5]=s,t[6]=l*r+d*a+c,t[7]=l*o+d*u+f,t[8]=l*i+d*s+h,t},e.rotate=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],u=e[4],s=e[5],c=e[6],f=e[7],h=e[8],l=Math.sin(n),d=Math.cos(n);return t[0]=d*r+l*a,t[1]=d*o+l*u,t[2]=d*i+l*s,t[3]=d*a-l*r,t[4]=d*u-l*o,t[5]=d*s-l*i,t[6]=c,t[7]=f,t[8]=h,t},e.scale=function(t,e,n){var r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=n+n,u=r+r,s=o+o,c=n*a,f=r*a,h=r*u,l=o*a,d=o*u,p=o*s,v=i*a,g=i*u,y=i*s;return t[0]=1-h-p,t[3]=f-y,t[6]=l+g,t[1]=f+y,t[4]=1-c-p,t[7]=d-v,t[2]=l-g,t[5]=d+v,t[8]=1-c-h,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],u=e[5],s=e[6],c=e[7],f=e[8],h=e[9],l=e[10],d=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*u-r*a,b=n*s-o*a,x=n*c-i*a,w=r*s-o*u,_=r*c-i*u,M=o*c-i*s,S=f*v-h*p,O=f*g-l*p,E=f*y-d*p,j=h*g-l*v,k=h*y-d*v,C=l*y-d*g,P=m*C-b*k+x*j+w*E-_*O+M*S;return P?(P=1/P,t[0]=(u*C-s*k+c*j)*P,t[1]=(s*E-a*C-c*O)*P,t[2]=(a*k-u*E+c*S)*P,t[3]=(o*k-r*C-i*j)*P,t[4]=(n*C-o*E+i*O)*P,t[5]=(r*E-n*k-i*S)*P,t[6]=(v*M-g*_+y*w)*P,t[7]=(g*x-p*M-y*b)*P,t[8]=(p*_-v*x+y*m)*P,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=i,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],o=t[1],i=t[2],a=t[3],u=t[4],s=t[5],c=t[6],f=t[7],h=t[8],l=e[0],d=e[1],p=e[2],v=e[3],g=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-l)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(o-d)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(i-p)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-v)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-g)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(s-y)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(c-m)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(f-b)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(b))&&Math.abs(h-x)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(x))};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(93));function o(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],u=e[4],s=e[5],c=e[6],f=e[7],h=e[8],l=n[0],d=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=l*r+d*a+p*c,t[1]=l*o+d*u+p*f,t[2]=l*i+d*s+p*h,t[3]=v*r+g*a+y*c,t[4]=v*o+g*u+y*f,t[5]=v*i+g*s+y*h,t[6]=m*r+b*a+x*c,t[7]=m*o+b*u+x*f,t[8]=m*i+b*s+x*h,t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}e.mul=o,e.sub=i},function(t,e,n){function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,o){return e&&r(t,e),n&&r(t,n),o&&r(t,o),t}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},e.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},e.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(t,e,n){var r=n(9),o=n(28).Graph;function i(t,e,n,o){var i;do{i=r.uniqueId(o)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function a(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:i,simplify:function(t){var e=(new o).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},o=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,o=t.x,i=t.y,a=e.x-o,u=e.y-i,s=t.width/2,c=t.height/2;if(!a&&!u)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(u)*s>Math.abs(a)*c?(u<0&&(c=-c),n=c*a/u,r=c):(a<0&&(s=-s),n=s,r=s*u/a),{x:o+n,y:i+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var o=t.node(n),i=o.rank;r.isUndefined(i)||(e[i][o.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var o=t.node(n);r.has(o,"rank")&&(o.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var o=t.node(r).rank-e;n[o]||(n[o]=[]),n[o].push(r)}));var o=0,i=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%i!=0?--o:o&&r.forEach(e,(function(e){t.node(e).rank+=o}))}))},addBorderNode:function(t,e,n,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=r),i(t,"border",o,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getPixelRatio=function(){return window?window.devicePixelRatio:1},e.distance=function(t,e,n,r){var o=t-n,i=e-r;return Math.sqrt(o*o+i*i)},e.inBox=function(t,e,n,r,o,i){return o>=t&&o<=t+n&&i>=e&&i<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},e.mergeRegion=function(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e},e.isSamePoint=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var r=n(8);e.isNil=r.default;var o=n(3);e.isString=o.default;var i=n(10);e.isFunction=i.default;var a=n(4);e.isArray=a.default;var u=n(2);e.each=u.default;var s=n(64);e.toRadian=s.default;var c=n(63);e.mod=c.default;var f=n(92);e.isNumberEqual=f.default;var h=n(132);e.requestAnimationFrame=h.default;var l=n(133);e.clearAnimationFrame=l.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(43),i=n(56),a=n(27),u=n(99),s=n(17),c=n(100),f=n(152),h=n(138),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return f.default},e.prototype.onCanvasChange=function(t){u.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=h.getBBoxMethod(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,o=e.y,i=e.width,a=e.height,u=this.getHitLineWidth(),s=u/2,c=r-s,f=o-s;return{x:c,y:f,minX:c,minY:f,maxX:r+i+s,maxY:o+a+s,width:i+u,height:a+u}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||a.createDom(this),i.setClip(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,o=n.fillStyle,i=n.stroke,a=n.strokeStyle,u=n.fillOpacity,c=n.strokeOpacity,f=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",o):this._setColor(t,"fill",r||o),u&&h.setAttribute(s.SVG_ATTR_MAP.fillOpacity,u)),this.canStroke&&f>0&&(e?"stroke"in n?this._setColor(t,"stroke",i):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",i||a),c&&h.setAttribute(s.SVG_ATTR_MAP.strokeOpacity,c),f&&h.setAttribute(s.SVG_ATTR_MAP.lineWidth,f))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(o=t.find("gradient",n))||(o=t.addGradient(n)),r.setAttribute(s.SVG_ATTR_MAP[e],"url(#"+o+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var o;(o=t.find("pattern",n))||(o=t.addPattern(n)),r.setAttribute(s.SVG_ATTR_MAP[e],"url(#"+o+")")}else r.setAttribute(s.SVG_ATTR_MAP[e],n);else r.setAttribute(s.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,o=r.shadowOffsetX,a=r.shadowOffsetY,u=r.shadowBlur,s=r.shadowColor;(o||a||u||s)&&i.setShadow(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&i.setTransform(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),o=t+r.left,i=e+r.top,a=document.elementFromPoint(o,i);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o.AbstractShape);e.default=l},function(t,e,n){var r;try{r={clone:n(349),constant:n(111),each:n(173),filter:n(176),has:n(187),isArray:n(12),isEmpty:n(425),isFunction:n(58),isUndefined:n(188),keys:n(38),map:n(189),reduce:n(191),size:n(428),transform:n(434),union:n(435),values:n(196)}}catch(t){}r||(r=window._),t.exports=r},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=i,e.clone=function(t){var e=new o.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new o.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=a,e.multiply=u,e.divide=s,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=c,e.squaredDistance=f,e.length=h,e.squaredLength=l,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var o=e[0],i=e[1];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t},e.random=function(t,e){e=e||1;var n=2*o.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o,t[1]=n[1]*r+n[3]*o,t},e.transformMat2d=function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o+n[4],t[1]=n[1]*r+n[3]*o+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[3]*o+n[6],t[1]=n[1]*r+n[4]*o+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[4]*o+n[12],t[1]=n[1]*r+n[5]*o+n[13],t},e.rotate=function(t,e,n,r){var o=e[0]-n[0],i=e[1]-n[1],a=Math.sin(r),u=Math.cos(r);return t[0]=o*u-i*a+n[0],t[1]=o*a+i*u+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],o=e[0],i=e[1],a=n*n+r*r;a>0&&(a=1/Math.sqrt(a));var u=o*o+i*i;u>0&&(u=1/Math.sqrt(u));var s=(n*o+r*i)*a*u;return s>1?0:s<-1?Math.PI:Math.acos(s)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1];return Math.abs(n-i)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))};var r,o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(93));function i(){var t=new o.ARRAY_TYPE(2);return o.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function s(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}funct