@antv/g6-pc
Version:
A Graph Visualization Framework in JavaScript
1 lines • 1.57 MB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G6=e():t.G6=e()}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));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=212)}([function(t,e,n){"use strict";n.r(e),n.d(e,"contains",(function(){return i})),n.d(e,"includes",(function(){return i})),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 E})),n.d(e,"flattenDeep",(function(){return M})),n.d(e,"getRange",(function(){return A})),n.d(e,"pull",(function(){return T})),n.d(e,"pullAt",(function(){return P})),n.d(e,"reduce",(function(){return D})),n.d(e,"remove",(function(){return L})),n.d(e,"sortBy",(function(){return B})),n.d(e,"union",(function(){return z})),n.d(e,"uniq",(function(){return F})),n.d(e,"valuesOfKey",(function(){return G})),n.d(e,"head",(function(){return Y})),n.d(e,"last",(function(){return U})),n.d(e,"startsWith",(function(){return X})),n.d(e,"endsWith",(function(){return W})),n.d(e,"filter",(function(){return o})),n.d(e,"every",(function(){return V})),n.d(e,"some",(function(){return H})),n.d(e,"group",(function(){return Q})),n.d(e,"groupBy",(function(){return Z})),n.d(e,"groupToMap",(function(){return K})),n.d(e,"getWrapBehavior",(function(){return $})),n.d(e,"wrapBehavior",(function(){return J})),n.d(e,"number2color",(function(){return et})),n.d(e,"parseRadius",(function(){return nt})),n.d(e,"clamp",(function(){return rt})),n.d(e,"fixedBase",(function(){return it})),n.d(e,"isDecimal",(function(){return at})),n.d(e,"isEven",(function(){return st})),n.d(e,"isInteger",(function(){return ut})),n.d(e,"isNegative",(function(){return ct})),n.d(e,"isNumberEqual",(function(){return lt})),n.d(e,"isOdd",(function(){return ft})),n.d(e,"isPositive",(function(){return ht})),n.d(e,"max",(function(){return O})),n.d(e,"maxBy",(function(){return dt})),n.d(e,"min",(function(){return k})),n.d(e,"minBy",(function(){return pt})),n.d(e,"mod",(function(){return gt})),n.d(e,"toDegree",(function(){return yt})),n.d(e,"toInteger",(function(){return mt})),n.d(e,"toRadian",(function(){return xt})),n.d(e,"forIn",(function(){return wt})),n.d(e,"has",(function(){return _t})),n.d(e,"hasKey",(function(){return Et})),n.d(e,"hasValue",(function(){return Mt})),n.d(e,"keys",(function(){return g})),n.d(e,"isMatch",(function(){return v})),n.d(e,"values",(function(){return St})),n.d(e,"lowerCase",(function(){return kt})),n.d(e,"lowerFirst",(function(){return At})),n.d(e,"substitute",(function(){return Ct})),n.d(e,"upperCase",(function(){return jt})),n.d(e,"upperFirst",(function(){return It})),n.d(e,"getType",(function(){return Nt})),n.d(e,"isArguments",(function(){return Pt})),n.d(e,"isArray",(function(){return f})),n.d(e,"isArrayLike",(function(){return r})),n.d(e,"isBoolean",(function(){return Dt})),n.d(e,"isDate",(function(){return Lt})),n.d(e,"isError",(function(){return Rt})),n.d(e,"isFunction",(function(){return c})),n.d(e,"isFinite",(function(){return Bt})),n.d(e,"isNil",(function(){return l})),n.d(e,"isNull",(function(){return Ft})),n.d(e,"isNumber",(function(){return ot})),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 Gt})),n.d(e,"isRegExp",(function(){return Yt})),n.d(e,"isString",(function(){return R})),n.d(e,"isType",(function(){return u})),n.d(e,"isUndefined",(function(){return Ut})),n.d(e,"isElement",(function(){return Xt})),n.d(e,"requestAnimationFrame",(function(){return Wt})),n.d(e,"clearAnimationFrame",(function(){return Vt})),n.d(e,"augment",(function(){return Zt})),n.d(e,"clone",(function(){return $t})),n.d(e,"debounce",(function(){return Jt})),n.d(e,"memoize",(function(){return te})),n.d(e,"deepMix",(function(){return ne})),n.d(e,"each",(function(){return p})),n.d(e,"extend",(function(){return re})),n.d(e,"indexOf",(function(){return ie})),n.d(e,"isEmpty",(function(){return ae})),n.d(e,"isEqual",(function(){return ue})),n.d(e,"isEqualWith",(function(){return ce})),n.d(e,"map",(function(){return le})),n.d(e,"mapValues",(function(){return he})),n.d(e,"mix",(function(){return qt})),n.d(e,"assign",(function(){return qt})),n.d(e,"get",(function(){return de})),n.d(e,"set",(function(){return pe})),n.d(e,"pick",(function(){return ve})),n.d(e,"omit",(function(){return ye})),n.d(e,"throttle",(function(){return me})),n.d(e,"toArray",(function(){return be})),n.d(e,"toString",(function(){return Ot})),n.d(e,"uniqueId",(function(){return we})),n.d(e,"noop",(function(){return _e})),n.d(e,"identity",(function(){return Ee})),n.d(e,"size",(function(){return Se})),n.d(e,"measureTextWidth",(function(){return ke})),n.d(e,"getEllipsisText",(function(){return Ae})),n.d(e,"Cache",(function(){return Ce}));var r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},i=function(t,e){return!!r(t)&&t.indexOf(e)>-1},o=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n},a=function(t,e){return void 0===e&&(e=[]),o(t,(function(t){return!i(e,t)}))},s={}.toString,u=function(t,e){return s.call(t)==="[object "+e+"]"},c=function(t){return u(t,"Function")},l=function(t){return null==t},f=function(t){return Array.isArray?Array.isArray(t):u(t,"Array")};function h(t){return(h="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=h(t);return null!==t&&"object"===e||"function"===e};var p=function(t,e){if(t)if(f(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(d(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break},g=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};var v=function(t,e){var n=g(e),r=n.length;if(l(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o 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)||!u(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};var x=function(t,e){if(!f(t))return null;var n;if(c(e)&&(n=e),b(e)&&(n=function(t){return v(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null};var 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 i=t[r][e];if(!l(i)){n=f(i)?i[0]:i;break}}return n},E=function(t){if(!f(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},S=function(t,e){if(void 0===e&&(e=[]),f(t))for(var n=0;n<t.length;n+=1)S(t[n],e);else e.push(t);return e},M=S,O=function(t){if(f(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},k=function(t){if(f(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},A=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(f(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=O(e);return{min:k(e),max:i}},C=Array.prototype,j=C.splice,I=C.indexOf,T=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 i=e[r],o=-1;(o=I.call(t,i))>-1;)j.call(t,o,1);return t},N=Array.prototype.splice,P=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,N.call(t,a,1))}return t},D=function(t,e,n){if(!f(t)&&!b(t))return t;var r=n;return p(t,(function(t,n){r=e(r,t,n)})),r},L=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++i<a;){var s=t[i];e(s,i,t)&&(n.push(s),o.push(i))}return P(t,o),n},R=function(t){return u(t,"String")};var B=function(t,e){var n;if(c(e))n=function(t,n){return e(t)-e(n)};else{var r=[];R(e)?r.push(e):f(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t};function F(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var z=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return F([].concat.apply([],t))},G=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i][e];if(!l(o)){f(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];r[s]||(n.push(s),r[s]=!0)}}}return n};function Y(t){if(r(t))return t[0]}function U(t){if(r(t)){return t[t.length-1]}}var X=function(t,e){return!(!f(t)&&!R(t))&&t[0]===e};var W=function(t,e){return!(!f(t)&&!R(t))&&t[t.length-1]===e},V=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},H=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},q=Object.prototype.hasOwnProperty;var Z=function(t,e){if(!e||!f(t))return{};for(var n,r={},i=c(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=i(a),q.call(r,n)?r[n].push(a):r[n]=[a]}return r};function K(t,e){if(!e)return{0:t};if(!c(e)){var n=f(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return Z(t,e)}var Q=function(t,e){if(!e)return[t];var n=K(t,e),r=[];for(var i in n)r.push(n[i]);return r};var $=function(t,e){return t["_wrap_"+e]};var J=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},tt={};var et=function(t){var e=tt[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,tt[t]=e}return e};var nt=function(t){var e=0,n=0,r=0,i=0;return f(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}},rt=function(t,e,n){return t<e?e:t>n?n:t},it=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},ot=function(t){return u(t,"Number")},at=function(t){return ot(t)&&t%1!=0},st=function(t){return ot(t)&&t%2==0},ut=Number.isInteger?Number.isInteger:function(t){return ot(t)&&t%1==0},ct=function(t){return ot(t)&&t<0};function lt(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var ft=function(t){return ot(t)&&t%2!=0},ht=function(t){return ot(t)&&t>0},dt=function(t,e){if(f(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=c(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},pt=function(t,e){if(f(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=c(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},gt=function(t,e){return(t%e+e)%e},vt=180/Math.PI,yt=function(t){return vt*t},mt=parseInt,bt=Math.PI/180,xt=function(t){return bt*t},wt=p,_t=function(t,e){return t.hasOwnProperty(e)},Et=_t,St=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},Mt=function(t,e){return i(St(t),e)},Ot=function(t){return l(t)?"":t.toString()},kt=function(t){return Ot(t).toLowerCase()},At=function(t){var e=Ot(t);return e.charAt(0).toLowerCase()+e.substring(1)};var Ct=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 Ot(t).toUpperCase()},It=function(t){var e=Ot(t);return e.charAt(0).toUpperCase()+e.substring(1)},Tt={}.toString,Nt=function(t){return Tt.call(t).replace(/^\[object /,"").replace(/]$/,"")},Pt=function(t){return u(t,"Arguments")},Dt=function(t){return u(t,"Boolean")},Lt=function(t){return u(t,"Date")},Rt=function(t){return u(t,"Error")},Bt=function(t){return ot(t)&&isFinite(t)},Ft=function(t){return null===t},zt=Object.prototype,Gt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||zt)},Yt=function(t){return u(t,"RegExp")},Ut=function(t){return void 0===t},Xt=function(t){return t instanceof Element||t instanceof HTMLDocument};function Wt(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Vt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Ht(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function qt(t,e,n,r){return e&&Ht(t,e),n&&Ht(t,n),r&&Ht(t,r),t}var Zt=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 i=t[r];c(i)&&(i=i.prototype),qt(n.prototype,i)}};function Kt(t){return(Kt="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 Qt=function(t){if("object"!==Kt(t)||null===t)return t;var e;if(f(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"===Kt(t[n])&&null!=t[n]?e[n]=Qt(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"===Kt(t[i])&&null!=t[i]?e[i]=Qt(t[i]):e[i]=t[i];return e},$t=Qt;var Jt=function(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}},te=function(t,e){if(!c(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n};function ee(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&b(o)?(b(t[i])||(t[i]={}),n<r?ee(t[i],o,n+1,r):t[i]=e[i]):f(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var ne=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)ee(t,e[r]);return t},re=function(t,e,n,r){c(e)||(n=e,e=t,t=function(){});var i=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},o=i(e.prototype,t);return t.prototype=qt(o,t.prototype),t.superclass=i(e.prototype,e),qt(o,n),qt(t,r),t},ie=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i},oe=Object.prototype.hasOwnProperty;var ae=function(t){if(l(t))return!0;if(r(t))return!t.length;var e=Nt(t);if("Map"===e||"Set"===e)return!t.size;if(Gt(t))return!Object.keys(t).length;for(var n in t)if(oe.call(t,n))return!1;return!0},se=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(R(t)||R(e))return!1;if(r(t)||r(e)){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length&&(n=se(t[i],e[i]));i++);return n}if(m(t)||m(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(n=!0,i=0;i<o.length&&(n=se(t[o[i]],e[o[i]]));i++);return n}return!1},ue=se,ce=function(t,e,n){return c(n)?!!n(t,e):ue(t,e)},le=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n},fe=function(t){return t},he=function(t,e){void 0===e&&(e=fe);var n={};return d(t)&&!l(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},de=function(t,e,n){for(var r=0,i=R(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},pe=function(t,e,n){var r=t,i=R(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(d(r[t])||(r[t]=ot(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},ge=Object.prototype.hasOwnProperty,ve=function(t,e){if(null===t||!b(t))return{};var n={};return p(e,(function(e){ge.call(t,e)&&(n[e]=t[e])})),n},ye=function(t,e){return D(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},me=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return i=this,o=arguments,l<=0||l>e?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},be=function(t){return r(t)?Array.prototype.slice.call(t):[]},xe={},we=function(t){return xe[t=t||"g"]?xe[t]+=1:xe[t]=1,t+xe[t]},_e=function(){},Ee=function(t){return t};function Se(t){return l(t)?0:r(t)?t.length:Object.keys(t).length}var Me,Oe=n(1),ke=te((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Me||(Me=document.createElement("canvas").getContext("2d")),Me.font=[o,a,i,n+"px",r].join(" "),Me.measureText(R(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(Oe.__spreadArrays)([t],St(e)).join("")})),Ae=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=ke(r,n),s=R(t)?t:Ot(t),u=e,c=[];if(ke(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=ke(i,n))+a>u&&o>u);)if(c.push(i),u-=o,!(s=s.substr(16)))return c.join("");for(;i=s.substr(0,1),!((o=ke(i,n))+a>u);)if(c.push(i),u-=o,!(s=s.substr(1)))return c.join("");return""+c.join("")+r},Ce=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){"use strict";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)}n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return a})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return u})),n.d(e,"__param",(function(){return c})),n.d(e,"__esDecorate",(function(){return l})),n.d(e,"__runInitializers",(function(){return f})),n.d(e,"__propKey",(function(){return h})),n.d(e,"__setFunctionName",(function(){return d})),n.d(e,"__metadata",(function(){return p})),n.d(e,"__awaiter",(function(){return g})),n.d(e,"__generator",(function(){return v})),n.d(e,"__createBinding",(function(){return y})),n.d(e,"__exportStar",(function(){return m})),n.d(e,"__values",(function(){return b})),n.d(e,"__read",(function(){return x})),n.d(e,"__spread",(function(){return w})),n.d(e,"__spreadArrays",(function(){return _})),n.d(e,"__spreadArray",(function(){return E})),n.d(e,"__await",(function(){return S})),n.d(e,"__asyncGenerator",(function(){return M})),n.d(e,"__asyncDelegator",(function(){return O})),n.d(e,"__asyncValues",(function(){return k})),n.d(e,"__makeTemplateObject",(function(){return A})),n.d(e,"__importStar",(function(){return I})),n.d(e,"__importDefault",(function(){return T})),n.d(e,"__classPrivateFieldGet",(function(){return N})),n.d(e,"__classPrivateFieldSet",(function(){return P})),n.d(e,"__classPrivateFieldIn",(function(){return D})),n.d(e,"__addDisposableResource",(function(){return L})),n.d(e,"__disposeResources",(function(){return B})),n.d(e,"__rewriteRelativeImportExtension",(function(){return F}));var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(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 i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(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 i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function u(t,e,n,i){var o,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,r){e(n,r,t)}}function l(t,e,n,i,o,a){function s(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var u,c=i.kind,l="getter"===c?"get":"setter"===c?"set":"value",f=!e&&t?i.static?t:t.prototype:null,h=e||(f?Object.getOwnPropertyDescriptor(f,i.name):{}),d=!1,p=n.length-1;p>=0;p--){var g={};for(var v in i)g[v]="access"===v?{}:i[v];for(var v in i.access)g.access[v]=i.access[v];g.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(t||null))};var y=(0,n[p])("accessor"===c?{get:h.get,set:h.set}:h[l],g);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!==r(y))throw new TypeError("Object expected");(u=s(y.get))&&(h.get=u),(u=s(y.set))&&(h.set=u),(u=s(y.init))&&o.unshift(u)}else(u=s(y))&&("field"===c?o.unshift(u):h[l]=u)}f&&Object.defineProperty(f,i.name,h),d=!0}function f(t,e,n){for(var r=arguments.length>2,i=0;i<e.length;i++)n=r?e[i].call(t,n):e[i].call(t);return r?n:void 0}function h(t){return"symbol"===r(t)?t:"".concat(t)}function d(t,e,n){return"symbol"===r(e)&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function p(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function g(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function v(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var y=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function m(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||y(e,t,n)}function b(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 x(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(x(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function E(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function S(t){return this instanceof S?(this.v=t,this):new S(t)}function M(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(t){return function(e){return Promise.resolve(e).then(t,c)}})),r[Symbol.asyncIterator]=function(){return this},r;function a(t,e){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))},e&&(r[t]=e(r[t])))}function s(t,e){try{(n=i[t](e)).value instanceof S?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(t){l(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function O(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,i){e[r]=t[r]?function(e){return(n=!n)?{value:S(t[r](e)),done:!1}:i?i(e):e}:i}}function k(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=b(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,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function A(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var C=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},j=function(t){return(j=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e})(t)};function I(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=j(t),r=0;r<n.length;r++)"default"!==n[r]&&y(e,t,n[r]);return C(e,t),e}function T(t){return t&&t.__esModule?t:{default:t}}function N(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function P(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function D(t,e){if(null===e||"object"!==r(e)&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function L(t,e,n){if(null!=e){if("object"!==r(e)&&"function"!=typeof e)throw new TypeError("Object expected.");var i,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=e[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=e[Symbol.dispose],n&&(o=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");o&&(i=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:i,async:n})}else n&&t.stack.push({async:!0});return e}var R="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function B(t){function e(e){t.error=t.hasError?new R(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,(function(t){return e(t),i()}))}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}function F(t,e){return"string"==typeof t&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(t,n,r,i,o){return n?e?".jsx":".js":!r||i&&o?r+i+"."+o.toLowerCase()+"js":t})):t}e.default={__extends:o,__assign:a,__rest:s,__decorate:u,__param:c,__esDecorate:l,__runInitializers:f,__propKey:h,__setFunctionName:d,__metadata:p,__awaiter:g,__generator:v,__createBinding:y,__exportStar:m,__values:b,__read:x,__spread:w,__spreadArrays:_,__spreadArray:E,__await:S,__asyncGenerator:M,__asyncDelegator:O,__asyncValues:k,__makeTemplateObject:A,__importStar:I,__importDefault:T,__classPrivateFieldGet:N,__classPrivateFieldSet:P,__classPrivateFieldIn:D,__addDisposableResource:L,__disposeResources:B,__rewriteRelativeImportExtension:F}},function(t,e,n){"use strict";n.r(e),n.d(e,"EPSILON",(function(){return r})),n.d(e,"ARRAY_TYPE",(function(){return i})),n.d(e,"RANDOM",(function(){return o})),n.d(e,"setMatrixArrayType",(function(){return a})),n.d(e,"toRadian",(function(){return u})),n.d(e,"equals",(function(){return c}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;function a(t){i=t}var s=Math.PI/180;function u(t){return t*s}function c(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}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){var r=n(97);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.d(e,"b",(function(){return i.mat3})),n.d(e,"c",(function(){return i.vec2})),n.d(e,"d",(function(){return i.vec3})),n.d(e,"a",(function(){return r}));var r={};n.r(r),n.d(r,"leftTranslate",(function(){return o})),n.d(r,"leftRotate",(function(){return a})),n.d(r,"leftScale",(function(){return s})),n.d(r,"transform",(function(){return u})),n.d(r,"direction",(function(){return c})),n.d(r,"angleTo",(function(){return l})),n.d(r,"vertical",(function(){return f}));var i=n(9);function o(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.mat3.fromTranslation(r,n),i.mat3.multiply(t,r,e)}function a(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.mat3.fromRotation(r,n),i.mat3.multiply(t,r,e)}function s(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.mat3.fromScaling(r,n),i.mat3.multiply(t,r,e)}function u(t,e){for(var n,r,u,c=t?[].concat(t):[1,0,0,0,1,0,0,0,1],l=0,f=e.length;l<f;l++){var h=e[l];switch(h[0]){case"t":o(c,c,[h[1],h[2]]);break;case"s":s(c,c,[h[1],h[2]]);break;case"r":a(c,c,h[1]);break;case"m":n=c,r=c,u=h[1],i.mat3.multiply(n,u,r)}}return c}function c(t,e){return t[0]*e[1]-e[0]*t[1]}function l(t,e,n){var r=i.vec2.angle(t,e),o=c(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}function f(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"l",(function(){return u})),n.d(e,"j",(function(){return c}));var r=n(0);function i(){return window?window.devicePixelRatio:1}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function s(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function u(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}function c(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",(function(){return r.isNil})),n.d(e,"k",(function(){return r.isString})),n.d(e,"h",(function(){return r.isFunction})),n.d(e,"g",(function(){return r.isArray})),n.d(e,"c",(function(){return r.each})),n.d(e,"o",(function(){return r.toRadian})),n.d(e,"m",(function(){return r.mod})),n.d(e,"n",(function(){return r.requestAnimationFrame})),n.d(e,"a",(function(){return r.clearAnimationFrame}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},i={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"}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var o=n(79);Object.defineProperty(e,"registerLayout",{enumerable:!0,get:function(){return o.registerLayout}}),Object.defineProperty(e,"unRegisterLayout",{enumerable:!0,get:function(){return o.unRegisterLayout}}),Object.defineProperty(e,"getLayoutByName",{enumerable:!0,get:function(){return o.getLayoutByName}}),i(n(82),e)},function(t,e,n){"use strict";var r=n(28);n.d(e,"PathUtil",(function(){return r}));var i=n(69);n.o(i,"ICanvas")&&n.d(e,"ICanvas",(function(){return i.ICanvas})),n.o(i,"IGroup")&&n.d(e,"IGroup",(function(){return i.IGroup})),n.o(i,"IShape")&&n.d(e,"IShape",(function(){return i.IShape}));var o=n(70);n.o(o,"ICanvas")&&n.d(e,"ICanvas",(function(){return o.ICanvas})),n.o(o,"IGroup")&&n.d(e,"IGroup",(function(){return o.IGroup})),n.o(o,"IShape")&&n.d(e,"IShape",(function(){return o.IShape}));var a=n(48);n.d(e,"Event",(function(){return a.a}));n(49);var s=n(111);n.d(e,"AbstractCanvas",(function(){return s.a}));var u=n(71);n.d(e,"AbstractGroup",(function(){return u.a}));var c=n(72);n.d(e,"AbstractShape",(function(){return c.a}));var l=n(67);n.d(e,"getBBoxMethod",(function(){return l.a}));var f=n(32);n.d(e,"getTextHeight",(function(){return f.b})),n.d(e,"assembleFont",(function(){return f.a}));var h=n(10);n.d(e,"isAllowCapture",(function(){return h.b}));var d=n(22);n.d(e,"multiplyVec2",(function(){return d.c})),n.d(e,"invert",(function(){return d.a}));var p=n(50);n.d(e,"getOffScreenContext",(function(){return p.a}));n(51)},function(t,e,n){"use strict";n.r(e),n.d(e,"glMatrix",(function(){return l})),n.d(e,"mat2",(function(){return r})),n.d(e,"mat2d",(function(){return i})),n.d(e,"mat3",(function(){return o})),n.d(e,"mat4",(function(){return a})),n.d(e,"quat",(function(){return u})),n.d(e,"quat2",(function(){return c})),n.d(e,"vec2",(function(){return ri})),n.d(e,"vec3",(function(){return Re})),n.d(e,"vec4",(function(){return s}));var r={};n.r(r),n.d(r,"create",(function(){return f})),n.d(r,"clone",(function(){return h})),n.d(r,"copy",(function(){return d})),n.d(r,"identity",(function(){return p})),n.d(r,"fromValues",(function(){return g})),n.d(r,"set",(function(){return v})),n.d(r,"transpose",(function(){return y})),n.d(r,"invert",(function(){return m})),n.d(r,"adjoint",(function(){return b})),n.d(r,"determinant",(function(){return x})),n.d(r,"multiply",(function(){return w})),n.d(r,"rotate",(function(){return _})),n.d(r,"scale",(function(){return E})),n.d(r,"fromRotation",(function(){return S})),n.d(r,"fromScaling",(function(){return M})),n.d(r,"str",(function(){return O})),n.d(r,"frob",(function(){return k})),n.d(r,"LDU",(function(){return A})),n.d(r,"add",(function(){return C})),n.d(r,"subtract",(function(){return j})),n.d(r,"exactEquals",(function(){return I})),n.d(r,"equals",(function(){return T})),n.d(r,"multiplyScalar",(function(){return N})),n.d(r,"multiplyScalarAndAdd",(function(){return P})),n.d(r,"mul",(function(){return D})),n.d(r,"sub",(function(){return L}));var i={};n.r(i),n.d(i,"create",(function(){return R})),n.d(i,"clone",(function(){return B})),n.d(i,"copy",(function(){return F})),n.d(i,"identity",(function(){return z})),n.d(i,"fromValues",(function(){return G})),n.d(i,"set",(function(){return Y})),n.d(i,"invert",(function(){return U})),n.d(i,"determinant",(function(){return X})),n.d(i,"multiply",(function(){return W})),n.d(i,"rotate",(function(){return V})),n.d(i,"scale",(function(){return H})),n.d(i,"translate",(function(){return q})),n.d(i,"fromRotation",(function(){return Z})),n.d(i,"fromScaling",(function(){return K})),n.d(i,"fromTranslation",(function(){return Q})),n.d(i,"str",(function(){return $})),n.d(i,"frob",(function(){return J})),n.d(i,"add",(function(){return tt})),n.d(i,"subtract",(function(){return et})),n.d(i,"multiplyScalar",(function(){return nt})),n.d(i,"multiplyScalarAndAdd",(function(){return rt})),n.d(i,"exactEquals",(function(){return it})),n.d(i,"equals",(function(){return ot})),n.d(i,"mul",(function(){return at})),n.d(i,"sub",(function(){return st}));var o={};n.r(o),n.d(o,"create",(function(){return ut})),n.d(o,"fromMat4",(function(){return ct})),n.d(o,"clone",(function(){return lt})),n.d(o,"copy",(function(){return ft})),n.d(o,"fromValues",(function(){return ht})),n.d(o,"set",(function(){return dt})),n.d(o,"identity",(function(){return pt})),n.d(o,"transpose",(function(){return gt})),n.d(o,"invert",(function(){return vt})),n.d(o,"adjoint",(function(){return yt})),n.d(o,"determinant",(function(){return mt})),n.d(o,"multiply",(function(){return bt})),n.d(o,"translate",(function(){return xt})),n.d(o,"rotate",(function(){return wt})),n.d(o,"scale",(function(){return _t})),n.d(o,"fromTranslation",(function(){return Et})),n.d(o,"fromRotation",(function(){return St})),n.d(o,"fromScaling",(function(){return Mt})),n.d(o,"fromMat2d",(function(){return Ot})),n.d(o,"fromQuat",(function(){return kt})),n.d(o,"normalFromMat4",(function(){return At})),n.d(o,"projection",(function(){return Ct})),n.d(o,"str",(function(){return jt})),n.d(o,"frob",(function(){return It})),n.d(o,"add",(function(){return Tt})),n.d(o,"subtract",(function(){return Nt})),n.d(o,"multiplyScalar",(function(){return Pt})),n.d(o,"multiplyScalarAndAdd",(function(){return Dt})),n.d(o,"exactEquals",(function(){return Lt})),n.d(o,"equals",(function(){return Rt})),n.d(o,"mul",(function(){return Bt})),n.d(o,"sub",(function(){return Ft}));var a={};n.r(a),n.d(a,"create",(function(){return zt})),n.d(a,"clone",(function(){return Gt})),n.d(a,"copy",(function(){return Yt})),n.d(a,"fromValues",(function(){return Ut})),n.d(a,"set",(function(){return Xt})),n.d(a,"identity",(function(){return Wt})),n.d(a,"transpose",(function(){return Vt})),n.d(a,"invert",(function(){return Ht})),n.d(a,"adjoint",(function(){return qt})),n.d(a,"determinant",(function(){return Zt})),n.d(a,"multiply",(function(){return Kt})),n.d(a,"translate",(function(){return Qt})),n.d(a,"scale",(function(){return $t})),n.d(a,"rotate",(function(){return Jt})),n.d(a,"rotateX",(function(){return te})),n.d(a,"rotateY",(function(){return ee})),n.d(a,"rotateZ",(function(){return ne})),n.d(a,"fromTranslation",(function(){return re})),n.d(a,"fromScaling",(function(){return ie})),n.d(a,"fromRotation",(function(){return oe})),n.d(a,"fromXRotation",(function(){return ae})),n.d(a,"fromYRotation",(function(){return se})),n.d(a,"fromZRotation",(function(){return ue})),n.d(a,"fromRotationTranslation",(function(){return ce})),n.d(a,"fromQuat2",(function(){return le})),n.d(a,"getTranslation",(function(){return fe})),n.d(a,"getScaling",(function(){return he})),n.d(a,"getRotation",(function(){return de})),n.d(a,"fromRotationTranslationScale",(function(){return pe})),n.d(a,"fromRotationTranslationScaleOrigin",(function(){return ge})),n.d(a,"fromQuat",(function(){return ve})),n.d(a,"frustum",(function(){return ye})),n.d(a,"perspectiveNO",(function(){return me})),n.d(a,"perspective",(function(){return be})),n.d(a,"perspectiveZO",(function(){return xe})),n.d(a,"perspectiveFromFieldOfView",(function(){return we})),n.d(a,"orthoNO",(function(){return _e})),n.d(a,"ortho",(function(){return Ee})),n.d(a,"orthoZO",(function(){return Se})),n.d(a,"lookAt",(function(){return Me})),n.d(a,"targetTo",(function(){return Oe})),n.d(a,"str",(function(){return ke})),n.d(a,"frob",(function(){return Ae})),n.d(a,"add",(function(){return Ce})),n.d(a,"subtract",(function(){return je})),n.d(a,"multiplyScalar",(function(){return Ie})),n.d(a,"multiplyScalarAndAdd",(function(){return Te})),n.d(a,"exactEquals",(function(){return Ne})),n.d(a,"equals",(function(){return Pe})),n.d(a,"mul",(function(){return De})),n.d(a,"sub",(function(){return Le}));var s={};n.r(s),n.d(s,"create",(function(){return Be})),n.d(s,"clone",(function(){return Fe})),n.d(s,"fromValues",(function(){return ze})),n.d(s,"copy",(function(){return Ge})),n.d(s,"set",(function(){return Ye})),n.d(s,"add",(function(){return Ue})),n.d(s,"subtract",(function(){return Xe})),n.d(s,"multiply",(function(){return We})),n.d(s,"divide",(function(){return Ve})),n.d(s,"ceil",(function(){return He})),n.d(s,"floor",(function(){return qe})),n.d(s,"min",(function(){return Ze})),n.d(s,"max",(function(){return Ke})),n.d(s,"round",(function(){return Qe})),n.d(s,"scale",(function(){return $e})),n.d(s,"scaleAndAdd",(function(){return Je})),n.d(s,"distance",(function(){return tn})),n.d(s,"squaredDistance",(function(){return en})),n.d(s,"length",(function(){return nn})),n.d(s,"squaredLength",(function(){return rn})),n.d(s,"negate",(function(){return on})),n.d(s,"inverse",(function(){return an})),n.d(s,"normalize",(function(){return sn})),n.d(s,"dot",(function(){return un})),n.d(s,"cross",(function(){return cn})),n.d(s,"lerp",(function(){return ln})),n.d(s,"random",(function(){return fn})),n.d(s,"transformMat4",(function(){return hn})),n.d(s,"transformQuat",(function(){return dn})),n.d(s,"zero",(function(){return pn})),n.d(s,"str",(function(){return gn})),n.d(s,"exactEquals",(function(){return vn})),n.d(s,"equals",(function(){return yn})),n.d(s,"sub",(function(){return bn})),n.d(s,"mul",(function(){return xn})),n.d(s,"div",(function(){return wn})),n.d(s,"dist",(function(){return _n})),n.d(s,"sqrDist",(function(){return En})),n.d(s,"len",(function(){return Sn})),n.d(s,"sqrLen",(function(){return Mn})),n.d(s,"forEach",(function(){return On}));var u={};n.r(u),n.d(u,"create",(function(){return kn})),n.d(u,"identity",(function(){return An})),n.d(u,"setAxisAngle",(function(){return Cn})),n.d(u,"getAxisAngle",(function(){return jn})),n.d(u,"getAngle",(function(){return In})),n.d(u,"multiply",(function(){return Tn})),n.d(u,"rotateX",(function(){return Nn})),n.d(u,"rotateY",(function(){return Pn})),n.d(u,"rotateZ",(function(){return Dn})),n.d(u,"calculateW",(function(){return Ln})),n.d(u,"exp",(function(){return Rn})),n.d(u,"ln",(function(){return Bn})),n.d(u,"pow",(function(){return Fn})),n.d(u,"slerp",(function(){return zn})),n.d(u,"random",(function(){return Gn})),n.d(u,"invert",(function(){return Yn})),n.d(u,"conjugate",(function(){return Un})),n.d(u,"fromMat3",(function(){return Xn})),n.d(u,"fromEuler",(function(){return Wn})),n.d(u,"str",(function(){return Vn})),n.d(u,"clone",(function(){return Jn})),n.d(u,"fromValues",(function(){return tr})),n.d(u,"copy",(function(){return er})),n.d(u,"set",(function(){return nr})),n.d(u,"add",(function(){return rr})),n.d(u,"mul",(function(){return ir})),n.d(u,"scale",(function(){return or})),n.d(u,"dot",(function(){return ar})),n.d(u,"lerp",(function(){return sr})),n.d(u,"length",(function(){return ur})),n.d(u,"len",(function(){return cr})),n.d(u,"squaredLength",(function(){return lr})),n.d(u,"sqrLen",(function(){return fr})),n.d(u,"normalize",(function(){return hr})),n.d(u,"exactEquals",(function(){return dr})),n.d(u,"equals",(function(){return pr})),n.d(u,"rotationTo",(function(){return gr})),n.d(u,"sqlerp",(function(){return vr})),n.d(u,"setAxes",(function(){return yr}));var c={};n.r(c),n.d(c,"create",(function(){return mr})),n.d(c,"clone",(function(){return br})),n.d(c,"fromValues",(function(){return xr})),n.d(c,"fromRotationTranslationValues",(function(){return wr})),n.d(c,"fromRotationTranslation",(function(){return _r})),n.d(c,"fromTranslation",(function(){return Er})),n.d(c,"fromRotation",(function(){return Sr})),n.d(c,"fromMat4",(function(){return Mr})),n.d(c,"copy",(function(){return Or})),n.d(c,"identity",(function(){return kr})),n.d(c,"set",(function(){return Ar})),n.d(c,"getReal",(function(){return Cr})),n.d(c,"getDual",(function(){return jr})),n.d(c,"setReal",(function(){return Ir})),n.d(c,"setDual",(function(){return Tr})),n.d(c,"getTranslation",(function(){return Nr})),n.d(c,"translate",(function(){return Pr})),n.d(c,"rotateX",(function(){return Dr})),n.d(c,"rotateY",(function(){return Lr})),n.d(c,"rotateZ",(function(){return Rr})),n.d(c,"rotateByQuatAppend",(function(){return Br})),n.d(c,"rotateByQuatPrepend",(function(){return Fr})),n.d(c,"rotateAroundAxis",(function(){return zr})),n.d(c,"add",(function(){return Gr})),n.d(c,"multiply",(function(){return Yr})),n.d(c,"mul",(function(){return Ur})),n.d(c,"scale",(function(){return Xr})),n.d(c,"dot",(function(){return Wr})),n.d(c,"lerp",(function(){return Vr})),n.d(c,"invert",(function(){return Hr})),n.d(c,"conjugate",(function(){return qr})),n.d(c,"length",(function(){return Zr})),n.d(c,"len",(function(){return Kr})),n.d(c,"squaredLength",(function(){return Qr})),n.d(c,"sqrLen",(function(){return $r})),n.d(c,"normalize",(function(){return Jr})),n.d(c,"str",(function(){return ti})),n.d(c,"exactEquals",(function(){return ei})),n.d(c,"equals",(function(){return ni}));var l=n(2);function f(){var t=new l.ARRAY_TYPE(4);return l.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function h(t){var e=new l.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function p(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function g(t,e,n,r){var i=new l.ARRAY_TYPE(4);return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}function v(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function y(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t}function m(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*o-i*r;return a?(a=1/a,t[0]=o*a,t[1]=-r*a,t[2]=-i*a,t[3]=n*a,t):null}function b(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t}function x(t){return t[0]*t[3]-t[2]*t[1]}function w(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],c=n[2],l=n[3];return t[0]=r*s+o*u,t[1]=i*s+a*u,t[2]=r*c+o*l,t[3]=i*c+a*l,t}function _(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*s,t[1]=i*u+a*s,t[2]=r*-s+o*u,t[3]=i*-s+a*u,t}function E(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1];return t[0]=r*s,t[1]=i*s,t[2]=o*u,t[3]=a*u,t}function S(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t}function M(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function O(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function k(t){return Math.hypot(t[0],t[1],t[2],t[3])}function A(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n]}function C(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}function j(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]-