UNPKG

@antv/g6-pc

Version:

A Graph Visualization Framework in JavaScript

1 lines 1.69 MB
!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=273)}([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 S})),n.d(e,"getRange",(function(){return k})),n.d(e,"pull",(function(){return I})),n.d(e,"pullAt",(function(){return N})),n.d(e,"reduce",(function(){return P})),n.d(e,"remove",(function(){return D})),n.d(e,"sortBy",(function(){return R})),n.d(e,"union",(function(){return F})),n.d(e,"uniq",(function(){return B})),n.d(e,"valuesOfKey",(function(){return z})),n.d(e,"head",(function(){return G})),n.d(e,"last",(function(){return U})),n.d(e,"startsWith",(function(){return Y})),n.d(e,"endsWith",(function(){return V})),n.d(e,"filter",(function(){return o})),n.d(e,"every",(function(){return W})),n.d(e,"some",(function(){return X})),n.d(e,"group",(function(){return Z})),n.d(e,"groupBy",(function(){return q})),n.d(e,"groupToMap",(function(){return K})),n.d(e,"getWrapBehavior",(function(){return Q})),n.d(e,"wrapBehavior",(function(){return J})),n.d(e,"number2color",(function(){return tt})),n.d(e,"parseRadius",(function(){return et})),n.d(e,"clamp",(function(){return nt})),n.d(e,"fixedBase",(function(){return rt})),n.d(e,"isDecimal",(function(){return ot})),n.d(e,"isEven",(function(){return at})),n.d(e,"isInteger",(function(){return st})),n.d(e,"isNegative",(function(){return ut})),n.d(e,"isNumberEqual",(function(){return ct})),n.d(e,"isOdd",(function(){return lt})),n.d(e,"isPositive",(function(){return ft})),n.d(e,"max",(function(){return O})),n.d(e,"maxBy",(function(){return ht})),n.d(e,"min",(function(){return M})),n.d(e,"minBy",(function(){return dt})),n.d(e,"mod",(function(){return pt})),n.d(e,"toDegree",(function(){return vt})),n.d(e,"toInteger",(function(){return yt})),n.d(e,"toRadian",(function(){return bt})),n.d(e,"forIn",(function(){return xt})),n.d(e,"has",(function(){return wt})),n.d(e,"hasKey",(function(){return _t})),n.d(e,"hasValue",(function(){return St})),n.d(e,"keys",(function(){return g})),n.d(e,"isMatch",(function(){return v})),n.d(e,"values",(function(){return Et})),n.d(e,"lowerCase",(function(){return Mt})),n.d(e,"lowerFirst",(function(){return kt})),n.d(e,"substitute",(function(){return At})),n.d(e,"upperCase",(function(){return Ct})),n.d(e,"upperFirst",(function(){return Tt})),n.d(e,"getType",(function(){return jt})),n.d(e,"isArguments",(function(){return Nt})),n.d(e,"isArray",(function(){return f})),n.d(e,"isArrayLike",(function(){return r})),n.d(e,"isBoolean",(function(){return Pt})),n.d(e,"isDate",(function(){return Dt})),n.d(e,"isError",(function(){return Lt})),n.d(e,"isFunction",(function(){return c})),n.d(e,"isFinite",(function(){return Rt})),n.d(e,"isNil",(function(){return l})),n.d(e,"isNull",(function(){return Bt})),n.d(e,"isNumber",(function(){return it})),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 zt})),n.d(e,"isRegExp",(function(){return Gt})),n.d(e,"isString",(function(){return L})),n.d(e,"isType",(function(){return u})),n.d(e,"isUndefined",(function(){return Ut})),n.d(e,"isElement",(function(){return Yt})),n.d(e,"requestAnimationFrame",(function(){return Vt})),n.d(e,"clearAnimationFrame",(function(){return Wt})),n.d(e,"augment",(function(){return qt})),n.d(e,"clone",(function(){return Zt})),n.d(e,"debounce",(function(){return Qt})),n.d(e,"memoize",(function(){return Jt})),n.d(e,"deepMix",(function(){return te})),n.d(e,"each",(function(){return p})),n.d(e,"extend",(function(){return ee})),n.d(e,"indexOf",(function(){return ne})),n.d(e,"isEmpty",(function(){return ie})),n.d(e,"isEqual",(function(){return oe})),n.d(e,"isEqualWith",(function(){return ae})),n.d(e,"map",(function(){return se})),n.d(e,"mapValues",(function(){return ce})),n.d(e,"mix",(function(){return Ht})),n.d(e,"assign",(function(){return Ht})),n.d(e,"get",(function(){return le})),n.d(e,"set",(function(){return fe})),n.d(e,"pick",(function(){return de})),n.d(e,"omit",(function(){return pe})),n.d(e,"throttle",(function(){return ge})),n.d(e,"toArray",(function(){return ve})),n.d(e,"toString",(function(){return Ot})),n.d(e,"uniqueId",(function(){return me})),n.d(e,"noop",(function(){return be})),n.d(e,"identity",(function(){return xe})),n.d(e,"size",(function(){return we})),n.d(e,"measureTextWidth",(function(){return Se})),n.d(e,"getEllipsisText",(function(){return Oe})),n.d(e,"Cache",(function(){return Me}));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,n){if(void 0===n&&(n=[]),f(e))for(var r=0;r<e.length;r+=1)t(e[r],n);else n.push(e);return n},O=function(t){if(f(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},M=function(t){if(f(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},k=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:M(e),max:i}},A=Array.prototype,C=A.splice,T=A.indexOf,I=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=T.call(t,i))>-1;)C.call(t,o,1);return t},j=Array.prototype.splice,N=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,j.call(t,a,1))}return t},P=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},D=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 N(t,o),n},L=function(t){return u(t,"String")};var R=function(t,e){var n;if(c(e))n=function(t,n){return e(t)-e(n)};else{var r=[];L(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 B(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 F=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return B([].concat.apply([],t))},z=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 G(t){if(r(t))return t[0]}function U(t){if(r(t)){return t[t.length-1]}}var Y=function(t,e){return!(!f(t)&&!L(t))&&t[0]===e};var V=function(t,e){return!(!f(t)&&!L(t))&&t[t.length-1]===e},W=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},X=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},H=Object.prototype.hasOwnProperty;var q=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),H.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 q(t,e)}var Z=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 Q=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},$={};var tt=function(t){var e=$[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,$[t]=e}return e};var et=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}},nt=function(t,e,n){return t<e?e:t>n?n:t},rt=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))},it=function(t){return u(t,"Number")},ot=function(t){return it(t)&&t%1!=0},at=function(t){return it(t)&&t%2==0},st=Number.isInteger?Number.isInteger:function(t){return it(t)&&t%1==0},ut=function(t){return it(t)&&t<0};function ct(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var lt=function(t){return it(t)&&t%2!=0},ft=function(t){return it(t)&&t>0},ht=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}},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){return(t%e+e)%e},gt=180/Math.PI,vt=function(t){return gt*t},yt=parseInt,mt=Math.PI/180,bt=function(t){return mt*t},xt=p,wt=function(t,e){return t.hasOwnProperty(e)},_t=wt,Et=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},St=function(t,e){return i(Et(t),e)},Ot=function(t){return l(t)?"":t.toString()},Mt=function(t){return Ot(t).toLowerCase()},kt=function(t){var e=Ot(t);return e.charAt(0).toLowerCase()+e.substring(1)};var At=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},Ct=function(t){return Ot(t).toUpperCase()},Tt=function(t){var e=Ot(t);return e.charAt(0).toUpperCase()+e.substring(1)},It={}.toString,jt=function(t){return It.call(t).replace(/^\[object /,"").replace(/]$/,"")},Nt=function(t){return u(t,"Arguments")},Pt=function(t){return u(t,"Boolean")},Dt=function(t){return u(t,"Date")},Lt=function(t){return u(t,"Error")},Rt=function(t){return it(t)&&isFinite(t)},Bt=function(t){return null===t},Ft=Object.prototype,zt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ft)},Gt=function(t){return u(t,"RegExp")},Ut=function(t){return void 0===t},Yt=function(t){return t instanceof Element||t instanceof HTMLDocument};function Vt(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Wt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Xt(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Ht(t,e,n,r){return e&&Xt(t,e),n&&Xt(t,n),r&&Xt(t,r),t}var qt=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),Ht(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 Zt=function t(e){if("object"!==Kt(e)||null===e)return e;var n;if(f(e)){n=[];for(var r=0,i=e.length;r<i;r++)"object"===Kt(e[r])&&null!=e[r]?n[r]=t(e[r]):n[r]=e[r]}else for(var o in n={},e)"object"===Kt(e[o])&&null!=e[o]?n[o]=t(e[o]):n[o]=e[o];return n};var Qt=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)}},Jt=function(t,e){if(!c(t))throw new TypeError("Expected a function");var n=function n(){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 $t(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?$t(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 te=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)$t(t,e[r]);return t},ee=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=Ht(o,t.prototype),t.superclass=i(e.prototype,e),Ht(o,n),Ht(t,r),t},ne=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},re=Object.prototype.hasOwnProperty;var ie=function(t){if(l(t))return!0;if(r(t))return!t.length;var e=jt(t);if("Map"===e||"Set"===e)return!t.size;if(zt(t))return!Object.keys(t).length;for(var n in t)if(re.call(t,n))return!1;return!0},oe=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(L(e)||L(n))return!1;if(r(e)||r(n)){if(e.length!==n.length)return!1;for(var i=!0,o=0;o<e.length&&(i=t(e[o],n[o]));o++);return i}if(m(e)||m(n)){var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(i=!0,o=0;o<a.length&&(i=t(e[a[o]],n[a[o]]));o++);return i}return!1},ae=function(t,e,n){return c(n)?!!n(t,e):oe(t,e)},se=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},ue=function(t){return t},ce=function(t,e){void 0===e&&(e=ue);var n={};return d(t)&&!l(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},le=function(t,e,n){for(var r=0,i=L(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},fe=function(t,e,n){var r=t,i=L(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(d(r[t])||(r[t]=it(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},he=Object.prototype.hasOwnProperty,de=function(t,e){if(null===t||!b(t))return{};var n={};return p(e,(function(e){he.call(t,e)&&(n[e]=t[e])})),n},pe=function(t,e){return P(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},ge=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},ve=function(t){return r(t)?Array.prototype.slice.call(t):[]},ye={},me=function(t){return ye[t=t||"g"]?ye[t]+=1:ye[t]=1,t+ye[t]},be=function(){},xe=function(t){return t};function we(t){return l(t)?0:r(t)?t.length:Object.keys(t).length}var _e,Ee=n(1),Se=Jt((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return _e||(_e=document.createElement("canvas").getContext("2d")),_e.font=[o,a,i,n+"px",r].join(" "),_e.measureText(L(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(Ee.__spreadArrays)([t],Et(e)).join("")})),Oe=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Se(r,n),s=L(t)?t:Ot(t),u=e,c=[];if(Se(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=Se(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=Se(i,n))+a>u);)if(c.push(i),u-=o,!(s=s.substr(1)))return c.join("");return""+c.join("")+r},Me=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,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return g})),n.d(e,"__read",(function(){return v})),n.d(e,"__spread",(function(){return y})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__spreadArray",(function(){return b})),n.d(e,"__await",(function(){return x})),n.d(e,"__asyncGenerator",(function(){return w})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return E})),n.d(e,"__makeTemplateObject",(function(){return S})),n.d(e,"__importStar",(function(){return M})),n.d(e,"__importDefault",(function(){return k})),n.d(e,"__classPrivateFieldGet",(function(){return A})),n.d(e,"__classPrivateFieldSet",(function(){return C})),n.d(e,"__classPrivateFieldIn",(function(){return T}));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){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(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 h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}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 d=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 p(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||d(e,t,n)}function g(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 v(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 y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(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),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 b(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 x(t){return this instanceof x?(this.v=t,this):new x(t)}function w(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof x?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 _(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:x(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=g(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 S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var O=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function M(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&d(e,t,n);return O(e,t),e}function k(t){return t&&t.__esModule?t:{default:t}}function A(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 C(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 T(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(t,e,n){"use strict";n.d(e,"AST_TOKEN_TYPES",(function(){return u})),n.d(e,"STORAGE_CLASS",(function(){return l})),n.d(e,"Target",(function(){return f})),n.d(e,"DefineValuePlaceholder",(function(){return d}));n(114),n(16),n(68),n(70),n(55),n(56),n(57),n(58),n(59),n(60),n(39),n(62),n(63),n(64),n(65);var r=n(54);n.d(e,"createEntity",(function(){return r.b}));n(10),n(48),n(123);var i=n(124);n.d(e,"isSafari",(function(){return i.a}));var o=n(147);n.d(e,"ConfigService",(function(){return o.a}));n(148);var a=n(52);n.o(a,"gl")&&n.d(e,"gl",(function(){return a.gl}));var s=n(136);n.o(s,"gl")&&n.d(e,"gl",(function(){return s.gl}));var u,c,l,f,h=n(137);n.o(h,"gl")&&n.d(e,"gl",(function(){return h.gl})),n.o(a,"gl")&&n.d(e,"gl",(function(){return a.gl})),function(t){t.Void="Void",t.Boolean="Boolean",t.Float="Float",t.Uint32="Uint32",t.Int32="Int32",t.Vector="Vector",t.Vector2Float="vec2<f32>",t.Vector3Float="vec3<f32>",t.Vector4Float="vec4<f32>",t.Vector2Boolean="vec2<bool>",t.Vector3Boolean="vec3<bool>",t.Vector4Boolean="vec4<bool>",t.Vector2Uint="vec2<u32>",t.Vector3Uint="vec3<u32>",t.Vector4Uint="vec4<u32>",t.Vector2Int="vec2<i32>",t.Vector3Int="vec3<i32>",t.Vector4Int="vec4<i32>",t.Matrix="Matrix",t.Matrix3x3Float="mat3x3<f32>",t.Matrix4x4Float="mat4x4<i32>",t.Struct="Struct",t.FloatArray="Float[]",t.Vector4FloatArray="vec4<f32>[]"}(u||(u={})),function(t){t.Program="Program",t.Identifier="Identifier",t.VariableDeclaration="VariableDeclaration",t.BlockStatement="BlockStatement",t.ReturnStatement="ReturnStatement",t.FunctionDeclaration="FunctionDeclaration",t.VariableDeclarator="VariableDeclarator",t.AssignmentExpression="AssignmentExpression",t.LogicalExpression="LogicalExpression",t.BinaryExpression="BinaryExpression",t.ArrayExpression="ArrayExpression",t.UnaryExpression="UnaryExpression",t.UpdateExpression="UpdateExpression",t.FunctionExpression="FunctionExpression",t.MemberExpression="MemberExpression",t.ConditionalExpression="ConditionalExpression",t.ExpressionStatement="ExpressionStatement",t.CallExpression="CallExpression",t.NumThreadStatement="NumThreadStatement",t.StorageStatement="StorageStatement",t.DoWhileStatement="DoWhileStatement",t.WhileStatement="WhileStatement",t.ForStatement="ForStatement",t.BreakStatement="BreakStatement",t.ContinueStatement="ContinueStatement",t.IfStatement="IfStatement",t.ImportedFunctionStatement="ImportedFunctionStatement"}(c||(c={})),function(t){t.Input="Input",t.Output="Output",t.Uniform="Uniform",t.Workgroup="Workgroup",t.UniformConstant="UniformConstant",t.Image="Image",t.StorageBuffer="StorageBuffer",t.Private="Private",t.Function="Function"}(l||(l={})),function(t){t.GLSL100="GLSL100",t.GLSL450="GLSL450",t.WGSL="WGSL"}(f||(f={}));var d="__DefineValuePlaceholder__"},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 O})),n.d(r,"str",(function(){return M})),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 T})),n.d(r,"exactEquals",(function(){return I})),n.d(r,"equals",(function(){return j})),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 U})),n.d(i,"invert",(function(){return Y})),n.d(i,"determinant",(function(){return V})),n.d(i,"multiply",(function(){return W})),n.d(i,"rotate",(function(){return X})),n.d(i,"scale",(function(){return H})),n.d(i,"translate",(function(){return q})),n.d(i,"fromRotation",(function(){return K})),n.d(i,"fromScaling",(function(){return Z})),n.d(i,"fromTranslation",(function(){return Q})),n.d(i,"str",(function(){return J})),n.d(i,"frob",(function(){return $})),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 Ot})),n.d(o,"fromMat2d",(function(){return Mt})),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 Tt})),n.d(o,"frob",(function(){return It})),n.d(o,"add",(function(){return jt})),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 Ut})),n.d(a,"fromValues",(function(){return Yt})),n.d(a,"set",(function(){return Vt})),n.d(a,"identity",(function(){return Wt})),n.d(a,"transpose",(function(){return Xt})),n.d(a,"invert",(function(){return Ht})),n.d(a,"adjoint",(function(){return qt})),n.d(a,"determinant",(function(){return Kt})),n.d(a,"multiply",(function(){return Zt})),n.d(a,"translate",(function(){return Qt})),n.d(a,"scale",(function(){return Jt})),n.d(a,"rotate",(function(){return $t})),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 Oe})),n.d(a,"targetTo",(function(){return Me})),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 Te})),n.d(a,"multiplyScalar",(function(){return Ie})),n.d(a,"multiplyScalarAndAdd",(function(){return je})),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 Ue})),n.d(s,"add",(function(){return Ye})),n.d(s,"subtract",(function(){return Ve})),n.d(s,"multiply",(function(){return We})),n.d(s,"divide",(function(){return Xe})),n.d(s,"ceil",(function(){return He})),n.d(s,"floor",(function(){return qe})),n.d(s,"min",(function(){return Ke})),n.d(s,"max",(function(){return Ze})),n.d(s,"round",(function(){return Qe})),n.d(s,"scale",(function(){return Je})),n.d(s,"scaleAndAdd",(function(){return $e})),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 On})),n.d(s,"forEach",(function(){return Mn}));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 Tn})),n.d(u,"getAngle",(function(){return In})),n.d(u,"multiply",(function(){return jn})),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 Un})),n.d(u,"conjugate",(function(){return Yn})),n.d(u,"fromMat3",(function(){return Vn})),n.d(u,"fromEuler",(function(){return Wn})),n.d(u,"str",(function(){return Xn})),n.d(u,"clone",(function(){return $n})),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 Or})),n.d(c,"copy",(function(){return Mr})),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 Tr})),n.d(c,"setReal",(function(){return Ir})),n.d(c,"setDual",(function(){return jr})),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 Ur})),n.d(c,"mul",(function(){return Yr})),n.d(c,"scale",(function(){return Vr})),n.d(c,"dot",(function(){return Wr})),n.d(c,"lerp",(function(){return Xr})),n.d(c,"invert",(function(){return Hr})),n.d(c,"conjugate",(function(){return qr})),n.d(c,"length",(function(){return Kr})),n.d(c,"len",(function(){return Zr})),n.d(c,"squaredLength",(function(){return Qr})),n.d(c,"sqrLen",(function(){return Jr})),n.d(c,"normalize",(function(){return $r})),n.d(c,"str",(function(){return ti})),n.d(c,"exactEquals",(function(){return ei})),n.d(c,"equals",(function(){return ni}));var l=n(5);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 O(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function M(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 T(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 I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function j(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=e[0],s=e[1],u=e[2],c=e[3];return Math.abs(n-a)<=l.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=l.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=l.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-c)<=l.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))}function N(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}function P(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}var D=w,L=T;function R(){var t=new l.ARRAY_TYPE(6);return l.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t}function B(t){var e=new l.ARRAY_TYPE(6);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}function F(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}function z(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function G(t,e,n,r,i,o){var a=new l.ARRAY_TYPE(6);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a}function U(t,e,n,r,i,o,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t}function Y(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=n*o-r*i;return u?(u=1/u,t[0]=o*u,t[1]=-r*u,t[2]=-i*u,t[3]=n*u,t[4]=(i*s-o*a)*u,t[5]=(r*a-n*s)*u,t):null}function V(t){return t[0]*t[3]-t[1]*t[2]}function W(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=n[0],l=n[1],f=n[2],h=n[3],d=n[4],p=n[5];return t[0]=r*c+o*l,t[1]=i*c+a*l,t[2]=r*f+o*h,t[3]=i*f+a*h,t[4]=r*d+o*p+s,t[5]=i*d+a*p+u,t}function X(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*c,t[1]=i*l+a*c,t[2]=r*-c+o*l,t[3]=i*-c+a*l,t[4]=s,t[5]=u,t}function H(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=n[0],l=n[1];return t[0]=r*c,t[1]=i*c,t[2]=o*l,t[3]=a*l,t[4]=s,t[5]=u,t}function q(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=n[0],l=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=r*c+o*l+s,t[5]=i*c+a*l+u,t}function K(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[4]=0,t[5]=0,t}function Z(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t}function Q(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t}function J(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function $(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)}function tt(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}function et(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}function nt(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}function rt(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}function it(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]}function ot(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=e[0],c=e[1],f=e[2],h=e[3],d=e[4],p=e[5];return Math.abs(n-u)<=l.EPSILON*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-c)<=l.EPSILON*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(i-f)<=l.EPSILON*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(o-h)<=l.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-d)<=l.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(s-p)<=l.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))}var at=W,st=et;function ut(){var t=new l.ARRAY_TYPE(9);return l.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}function ct(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}function lt(t){var e=new l.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}function ft(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}function ht(t,e,n,r,i,o,a,s,u){var c=new l.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=r,c[4]=i,c[5]=o,c[6]=a,c[7]=s,c[8]=u,c}function dt(t,e,n,r,i,o,a,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t}function pt(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}function gt(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}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}function vt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=l*a-s*c,h=-l*o+s*u,d=c*o-a*u,p=n*f+r*h+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-l*r+i*c)*p,t[2]=(s*r-i*a)*p,t[3]=h*p,t[4]=(l*n-i*u)*p,t[5]=(-s*n+i*o)*p,t[6]=d*p,t[7]=(-c*n+r*u)*p,t[8]=(a*n-r*o)*p,t):null}function yt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=a*l-s*c,t[1]=i*c-r*l,t[2]=r*s-i*a,t[3]=s*u-o*l,t[4]=n*l-i*u,t[5]=i*o-n*s,t[6]=o*c-a*u,t[7]=r*u-n*c,t[8]=n*a-r*o,t}function mt(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8];return e*(c*o-a*u)+n*(-c*i+a*s)+r*(u*i-o*s)}function bt(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=n[0],d=n[1],p=n[2],g=n[3],v=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=h*r+d*a+p*c,t[1]=h*i+d*s+p*l,t[2]=h*o+d*u+p*f,t[3]=g*r+v*a+y*c,t[4]=g*i+v*s+y*l,t[5]=g*o+v*u+y*f,t[6]=m*r+b*a+x*c,t[7]=m*i+b*s+x*l,t[8]=m*o+b*u+x*f,t}function xt(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=h*r+d*a+c,t[7]=h*i+d*s+l,t[8]=h*o+d*u+f,t}function wt(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=Math.sin(n),d=Math.cos(n);return t[0]=d*r+h*a,t[1]=d*i+h*s,t[2]=d*o+h*u,t[3]=d*a-h*r,t[4]=d*s-h*i,t[5]=d*u-h*o,t[6]=c,t[7]=l,t[8]=f,t}function _t(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function Et(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}function St(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}function Ot(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}function Mt(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}function kt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,l=r*a,f=r*s,h=i*a,d=i*s,p=i*u,g=o*a,v=o*s,y=o*u;return t[0]=1-f-p,t[3]=l-y,t[6]=h+v,t[1]=l+y,t[4]=1-c-p,t[7]=d-g,t[2]=h-v,t[5]=d+g,t[8]=1-c-f,t}function At(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*a,b=n*u-i*a,x=n*c-o*a,w=r*u-i*s,_=r*c-o*s,E=i*c-o*u,S=l*g-f*p,O=l*v-h*p,M=l*y-d*p,k=f*v-h*g,A=f*y-d*g,C=h*y-d*v,T=m*C-b*A+x*k+w*M-_*O+E*S;return T?(T=1/T,t[0]=(s*C-u*A+c*k)*T,t[1]=(u*M-a*C-c*O)*T,t[2]=(a*A-s*M+c*S)*T,t[3]=(i*A-r*C-o*k)*T,t[4]=(n*C-i*M+o*O)*T,t[5]=(r*M-n*A-o*S)*T,t[6]=(g*E-v*_+y*w)*T,t[7]=(v*x-p*E-y*b)*T,t[8]=(p*_-g*x+y*m)*T,t):null}function Ct(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}function Tt(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function It(t){return Math.hypot(t[