@antv/g-svg 1.0.19 → 1.0.20-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("@antv/g"),require("mana-syringe")):"function"==typeof define&&define.amd?define(["@antv/g","mana-syringe"],n):"object"==typeof exports?exports.SVG=n(require("@antv/g"),require("mana-syringe")):(t.G=t.G||{},t.G.SVG=n(t.G,t.G.ManaSyringe))}(window,(function(t,n){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=11)}([function(n,e){n.exports=t},function(t,e){t.exports=n},,function(t,n,e){"use strict";(function(t){var e="object"==typeof t&&t&&t.Object===Object&&t;n.a=e}).call(this,e(9))},function(t,n,e){"use strict";(function(t){e.d(n,"a",(function(){return d}));var r=function(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))},o=function(t,n,e){this.name=t,this.version=n,this.os=e,this.type="browser"},i=function(n){this.version=n,this.type="node",this.name="node",this.os=t.platform},a=function(t,n,e,r){this.name=t,this.version=n,this.os=e,this.bot=r,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},c=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},s=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(n){return n?p(n):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!=typeof navigator?p(navigator.userAgent):void 0!==t&&t.version?new i(t.version.slice(1)):null}function h(t){return""!==t&&l.reduce((function(n,e){var r=e[0],o=e[1];if(n)return n;var i=o.exec(t);return!!i&&[r,i]}),!1)}function p(t){var n=h(t);if(!n)return null;var e=n[0],i=n[1];if("searchbot"===e)return new u;var c=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);c?c.length<3&&(c=r(r([],c,!0),function(t){for(var n=[],e=0;e<t;e++)n.push("0");return n}(3-c.length),!0)):c=[];var l=c.join("."),d=function(t){for(var n=0,e=f.length;n<e;n++){var r=f[n],o=r[0];if(r[1].exec(t))return o}return null}(t),p=s.exec(t);return p&&p[1]?new a(e,l,d,p[1]):new o(e,l,d)}}).call(this,e(10))},,,,,function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){var e,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&h())}function h(){if(!l){var t=u(d);l=!0;for(var n=s.length;n;){for(c=s,s=[];++f<n;)c&&c[f].run();f=-1,n=s.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(n){try{return r.call(null,t)}catch(n){return r.call(this,t)}}}(t)}}function p(t,n){this.fun=t,this.array=n}function v(){}o.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];s.push(new p(t,n)),1!==s.length||l||u(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,n,e){"use strict";e.r(n),e.d(n,"DomInteraction",(function(){return r})),e.d(n,"SVGRenderer",(function(){return u})),e.d(n,"SVGPicker",(function(){return c})),e.d(n,"Renderer",(function(){return ar}));var r={};e.r(r),e.d(r,"Plugin",(function(){return g}));var o={};e.r(o),e.d(o,"create",(function(){return Z})),e.d(o,"clone",(function(){return K})),e.d(o,"copy",(function(){return J})),e.d(o,"fromValues",(function(){return tt})),e.d(o,"set",(function(){return nt})),e.d(o,"identity",(function(){return et})),e.d(o,"transpose",(function(){return rt})),e.d(o,"invert",(function(){return ot})),e.d(o,"adjoint",(function(){return it})),e.d(o,"determinant",(function(){return at})),e.d(o,"multiply",(function(){return ut})),e.d(o,"translate",(function(){return ct})),e.d(o,"scale",(function(){return st})),e.d(o,"rotate",(function(){return lt})),e.d(o,"rotateX",(function(){return ft})),e.d(o,"rotateY",(function(){return dt})),e.d(o,"rotateZ",(function(){return ht})),e.d(o,"fromTranslation",(function(){return pt})),e.d(o,"fromScaling",(function(){return vt})),e.d(o,"fromRotation",(function(){return mt})),e.d(o,"fromXRotation",(function(){return bt})),e.d(o,"fromYRotation",(function(){return yt})),e.d(o,"fromZRotation",(function(){return gt})),e.d(o,"fromRotationTranslation",(function(){return Mt})),e.d(o,"fromQuat2",(function(){return St})),e.d(o,"getTranslation",(function(){return At})),e.d(o,"getScaling",(function(){return wt})),e.d(o,"getRotation",(function(){return xt})),e.d(o,"fromRotationTranslationScale",(function(){return Et})),e.d(o,"fromRotationTranslationScaleOrigin",(function(){return Ot})),e.d(o,"fromQuat",(function(){return Ct})),e.d(o,"frustum",(function(){return Tt})),e.d(o,"perspectiveNO",(function(){return jt})),e.d(o,"perspective",(function(){return Lt})),e.d(o,"perspectiveZO",(function(){return Pt})),e.d(o,"perspectiveFromFieldOfView",(function(){return Gt})),e.d(o,"orthoNO",(function(){return kt})),e.d(o,"ortho",(function(){return $t})),e.d(o,"orthoZO",(function(){return Rt})),e.d(o,"lookAt",(function(){return Nt})),e.d(o,"targetTo",(function(){return Wt})),e.d(o,"str",(function(){return Dt})),e.d(o,"frob",(function(){return Vt})),e.d(o,"add",(function(){return It})),e.d(o,"subtract",(function(){return qt})),e.d(o,"multiplyScalar",(function(){return _t})),e.d(o,"multiplyScalarAndAdd",(function(){return Bt})),e.d(o,"exactEquals",(function(){return Ft})),e.d(o,"equals",(function(){return Xt})),e.d(o,"mul",(function(){return Yt})),e.d(o,"sub",(function(){return Ht}));var i={};e.r(i),e.d(i,"create",(function(){return Ut})),e.d(i,"clone",(function(){return zt})),e.d(i,"length",(function(){return Qt})),e.d(i,"fromValues",(function(){return Zt})),e.d(i,"copy",(function(){return Kt})),e.d(i,"set",(function(){return Jt})),e.d(i,"add",(function(){return tn})),e.d(i,"subtract",(function(){return nn})),e.d(i,"multiply",(function(){return en})),e.d(i,"divide",(function(){return rn})),e.d(i,"ceil",(function(){return on})),e.d(i,"floor",(function(){return an})),e.d(i,"min",(function(){return un})),e.d(i,"max",(function(){return cn})),e.d(i,"round",(function(){return sn})),e.d(i,"scale",(function(){return ln})),e.d(i,"scaleAndAdd",(function(){return fn})),e.d(i,"distance",(function(){return dn})),e.d(i,"squaredDistance",(function(){return hn})),e.d(i,"squaredLength",(function(){return pn})),e.d(i,"negate",(function(){return vn})),e.d(i,"inverse",(function(){return mn})),e.d(i,"normalize",(function(){return bn})),e.d(i,"dot",(function(){return yn})),e.d(i,"cross",(function(){return gn})),e.d(i,"lerp",(function(){return Mn})),e.d(i,"hermite",(function(){return Sn})),e.d(i,"bezier",(function(){return An})),e.d(i,"random",(function(){return wn})),e.d(i,"transformMat4",(function(){return xn})),e.d(i,"transformMat3",(function(){return En})),e.d(i,"transformQuat",(function(){return On})),e.d(i,"rotateX",(function(){return Cn})),e.d(i,"rotateY",(function(){return Tn})),e.d(i,"rotateZ",(function(){return jn})),e.d(i,"angle",(function(){return Ln})),e.d(i,"zero",(function(){return Pn})),e.d(i,"str",(function(){return Gn})),e.d(i,"exactEquals",(function(){return kn})),e.d(i,"equals",(function(){return $n})),e.d(i,"sub",(function(){return Nn})),e.d(i,"mul",(function(){return Wn})),e.d(i,"div",(function(){return Dn})),e.d(i,"dist",(function(){return Vn})),e.d(i,"sqrDist",(function(){return In})),e.d(i,"len",(function(){return qn})),e.d(i,"sqrLen",(function(){return _n})),e.d(i,"forEach",(function(){return Bn}));var a={};e.r(a),e.d(a,"create",(function(){return Yn})),e.d(a,"identity",(function(){return Hn})),e.d(a,"setAxisAngle",(function(){return Un})),e.d(a,"getAxisAngle",(function(){return zn})),e.d(a,"getAngle",(function(){return Qn})),e.d(a,"multiply",(function(){return Zn})),e.d(a,"rotateX",(function(){return Kn})),e.d(a,"rotateY",(function(){return Jn})),e.d(a,"rotateZ",(function(){return te})),e.d(a,"calculateW",(function(){return ne})),e.d(a,"exp",(function(){return ee})),e.d(a,"ln",(function(){return re})),e.d(a,"pow",(function(){return oe})),e.d(a,"slerp",(function(){return ie})),e.d(a,"random",(function(){return ae})),e.d(a,"invert",(function(){return ue})),e.d(a,"conjugate",(function(){return ce})),e.d(a,"fromMat3",(function(){return se})),e.d(a,"fromEuler",(function(){return le})),e.d(a,"str",(function(){return fe})),e.d(a,"clone",(function(){return ge})),e.d(a,"fromValues",(function(){return Me})),e.d(a,"copy",(function(){return Se})),e.d(a,"set",(function(){return Ae})),e.d(a,"add",(function(){return we})),e.d(a,"mul",(function(){return xe})),e.d(a,"scale",(function(){return Ee})),e.d(a,"dot",(function(){return Oe})),e.d(a,"lerp",(function(){return Ce})),e.d(a,"length",(function(){return Te})),e.d(a,"len",(function(){return je})),e.d(a,"squaredLength",(function(){return Le})),e.d(a,"sqrLen",(function(){return Pe})),e.d(a,"normalize",(function(){return Ge})),e.d(a,"exactEquals",(function(){return ke})),e.d(a,"equals",(function(){return $e})),e.d(a,"rotationTo",(function(){return Re})),e.d(a,"sqlerp",(function(){return Ne})),e.d(a,"setAxes",(function(){return We}));var u={};e.r(u),e.d(u,"ElementSVG",(function(){return M})),e.d(u,"createSVGElement",(function(){return De})),e.d(u,"containerModule",(function(){return Ke})),e.d(u,"Plugin",(function(){return Je}));var c={};e.r(c),e.d(c,"Plugin",(function(){return er}));
1
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("@antv/g"),require("mana-syringe")):"function"==typeof define&&define.amd?define(["@antv/g","mana-syringe"],n):"object"==typeof exports?exports.SVG=n(require("@antv/g"),require("mana-syringe")):(t.G=t.G||{},t.G.SVG=n(t.G,t.G.ManaSyringe))}(window,(function(t,n){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=8)}([function(n,e){n.exports=t},function(t,e){t.exports=n},function(t,n,e){"use strict";(function(t){e.d(n,"a",(function(){return d}));var r=function(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))},o=function(t,n,e){this.name=t,this.version=n,this.os=e,this.type="browser"},i=function(n){this.version=n,this.type="node",this.name="node",this.os=t.platform},a=function(t,n,e,r){this.name=t,this.version=n,this.os=e,this.bot=r,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},c=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},s=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(n){return n?p(n):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!=typeof navigator?p(navigator.userAgent):void 0!==t&&t.version?new i(t.version.slice(1)):null}function h(t){return""!==t&&l.reduce((function(n,e){var r=e[0],o=e[1];if(n)return n;var i=o.exec(t);return!!i&&[r,i]}),!1)}function p(t){var n=h(t);if(!n)return null;var e=n[0],i=n[1];if("searchbot"===e)return new u;var c=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);c?c.length<3&&(c=r(r([],c,!0),function(t){for(var n=[],e=0;e<t;e++)n.push("0");return n}(3-c.length),!0)):c=[];var l=c.join("."),d=function(t){for(var n=0,e=f.length;n<e;n++){var r=f[n],o=r[0];if(r[1].exec(t))return o}return null}(t),p=s.exec(t);return p&&p[1]?new a(e,l,d,p[1]):new o(e,l,d)}}).call(this,e(7))},,,,,function(t,n){var e,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&h())}function h(){if(!l){var t=u(d);l=!0;for(var n=s.length;n;){for(c=s,s=[];++f<n;)c&&c[f].run();f=-1,n=s.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(n){try{return r.call(null,t)}catch(n){return r.call(this,t)}}}(t)}}function p(t,n){this.fun=t,this.array=n}function v(){}o.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];s.push(new p(t,n)),1!==s.length||l||u(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,n,e){"use strict";e.r(n),e.d(n,"DomInteraction",(function(){return r})),e.d(n,"SVGRenderer",(function(){return u})),e.d(n,"SVGPicker",(function(){return c})),e.d(n,"Renderer",(function(){return He}));var r={};e.r(r),e.d(r,"Plugin",(function(){return S}));var o={};e.r(o),e.d(o,"create",(function(){return D})),e.d(o,"clone",(function(){return I})),e.d(o,"copy",(function(){return V})),e.d(o,"fromValues",(function(){return q})),e.d(o,"set",(function(){return _})),e.d(o,"identity",(function(){return B})),e.d(o,"transpose",(function(){return F})),e.d(o,"invert",(function(){return X})),e.d(o,"adjoint",(function(){return Y})),e.d(o,"determinant",(function(){return H})),e.d(o,"multiply",(function(){return z})),e.d(o,"translate",(function(){return U})),e.d(o,"scale",(function(){return Q})),e.d(o,"rotate",(function(){return Z})),e.d(o,"rotateX",(function(){return K})),e.d(o,"rotateY",(function(){return J})),e.d(o,"rotateZ",(function(){return tt})),e.d(o,"fromTranslation",(function(){return nt})),e.d(o,"fromScaling",(function(){return et})),e.d(o,"fromRotation",(function(){return rt})),e.d(o,"fromXRotation",(function(){return ot})),e.d(o,"fromYRotation",(function(){return it})),e.d(o,"fromZRotation",(function(){return at})),e.d(o,"fromRotationTranslation",(function(){return ut})),e.d(o,"fromQuat2",(function(){return ct})),e.d(o,"getTranslation",(function(){return st})),e.d(o,"getScaling",(function(){return lt})),e.d(o,"getRotation",(function(){return ft})),e.d(o,"fromRotationTranslationScale",(function(){return dt})),e.d(o,"fromRotationTranslationScaleOrigin",(function(){return ht})),e.d(o,"fromQuat",(function(){return pt})),e.d(o,"frustum",(function(){return vt})),e.d(o,"perspectiveNO",(function(){return mt})),e.d(o,"perspective",(function(){return bt})),e.d(o,"perspectiveZO",(function(){return yt})),e.d(o,"perspectiveFromFieldOfView",(function(){return gt})),e.d(o,"orthoNO",(function(){return Mt})),e.d(o,"ortho",(function(){return St})),e.d(o,"orthoZO",(function(){return wt})),e.d(o,"lookAt",(function(){return At})),e.d(o,"targetTo",(function(){return xt})),e.d(o,"str",(function(){return Et})),e.d(o,"frob",(function(){return Ot})),e.d(o,"add",(function(){return Ct})),e.d(o,"subtract",(function(){return Tt})),e.d(o,"multiplyScalar",(function(){return Lt})),e.d(o,"multiplyScalarAndAdd",(function(){return jt})),e.d(o,"exactEquals",(function(){return Pt})),e.d(o,"equals",(function(){return kt})),e.d(o,"mul",(function(){return Gt})),e.d(o,"sub",(function(){return $t}));var i={};e.r(i),e.d(i,"create",(function(){return Rt})),e.d(i,"clone",(function(){return Nt})),e.d(i,"length",(function(){return Wt})),e.d(i,"fromValues",(function(){return Dt})),e.d(i,"copy",(function(){return It})),e.d(i,"set",(function(){return Vt})),e.d(i,"add",(function(){return qt})),e.d(i,"subtract",(function(){return _t})),e.d(i,"multiply",(function(){return Bt})),e.d(i,"divide",(function(){return Ft})),e.d(i,"ceil",(function(){return Xt})),e.d(i,"floor",(function(){return Yt})),e.d(i,"min",(function(){return Ht})),e.d(i,"max",(function(){return zt})),e.d(i,"round",(function(){return Ut})),e.d(i,"scale",(function(){return Qt})),e.d(i,"scaleAndAdd",(function(){return Zt})),e.d(i,"distance",(function(){return Kt})),e.d(i,"squaredDistance",(function(){return Jt})),e.d(i,"squaredLength",(function(){return tn})),e.d(i,"negate",(function(){return nn})),e.d(i,"inverse",(function(){return en})),e.d(i,"normalize",(function(){return rn})),e.d(i,"dot",(function(){return on})),e.d(i,"cross",(function(){return an})),e.d(i,"lerp",(function(){return un})),e.d(i,"hermite",(function(){return cn})),e.d(i,"bezier",(function(){return sn})),e.d(i,"random",(function(){return ln})),e.d(i,"transformMat4",(function(){return fn})),e.d(i,"transformMat3",(function(){return dn})),e.d(i,"transformQuat",(function(){return hn})),e.d(i,"rotateX",(function(){return pn})),e.d(i,"rotateY",(function(){return vn})),e.d(i,"rotateZ",(function(){return mn})),e.d(i,"angle",(function(){return bn})),e.d(i,"zero",(function(){return yn})),e.d(i,"str",(function(){return gn})),e.d(i,"exactEquals",(function(){return Mn})),e.d(i,"equals",(function(){return Sn})),e.d(i,"sub",(function(){return An})),e.d(i,"mul",(function(){return xn})),e.d(i,"div",(function(){return En})),e.d(i,"dist",(function(){return On})),e.d(i,"sqrDist",(function(){return Cn})),e.d(i,"len",(function(){return Tn})),e.d(i,"sqrLen",(function(){return Ln})),e.d(i,"forEach",(function(){return jn}));var a={};e.r(a),e.d(a,"create",(function(){return Gn})),e.d(a,"identity",(function(){return $n})),e.d(a,"setAxisAngle",(function(){return Rn})),e.d(a,"getAxisAngle",(function(){return Nn})),e.d(a,"getAngle",(function(){return Wn})),e.d(a,"multiply",(function(){return Dn})),e.d(a,"rotateX",(function(){return In})),e.d(a,"rotateY",(function(){return Vn})),e.d(a,"rotateZ",(function(){return qn})),e.d(a,"calculateW",(function(){return _n})),e.d(a,"exp",(function(){return Bn})),e.d(a,"ln",(function(){return Fn})),e.d(a,"pow",(function(){return Xn})),e.d(a,"slerp",(function(){return Yn})),e.d(a,"random",(function(){return Hn})),e.d(a,"invert",(function(){return zn})),e.d(a,"conjugate",(function(){return Un})),e.d(a,"fromMat3",(function(){return Qn})),e.d(a,"fromEuler",(function(){return Zn})),e.d(a,"str",(function(){return Kn})),e.d(a,"clone",(function(){return ae})),e.d(a,"fromValues",(function(){return ue})),e.d(a,"copy",(function(){return ce})),e.d(a,"set",(function(){return se})),e.d(a,"add",(function(){return le})),e.d(a,"mul",(function(){return fe})),e.d(a,"scale",(function(){return de})),e.d(a,"dot",(function(){return he})),e.d(a,"lerp",(function(){return pe})),e.d(a,"length",(function(){return ve})),e.d(a,"len",(function(){return me})),e.d(a,"squaredLength",(function(){return be})),e.d(a,"sqrLen",(function(){return ye})),e.d(a,"normalize",(function(){return ge})),e.d(a,"exactEquals",(function(){return Me})),e.d(a,"equals",(function(){return Se})),e.d(a,"rotationTo",(function(){return we})),e.d(a,"sqlerp",(function(){return Ae})),e.d(a,"setAxes",(function(){return xe}));var u={};e.r(u),e.d(u,"ElementSVG",(function(){return w})),e.d(u,"createSVGElement",(function(){return Ee})),e.d(u,"containerModule",(function(){return Ie})),e.d(u,"Plugin",(function(){return Ve}));var c={};e.r(c),e.d(c,"Plugin",(function(){return Be}));
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,4 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var s=function(t,n){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)};function l(t,n,e,r){var o,i=arguments.length,a=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a}function f(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}Object.create;function d(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}Object.create;var p=e(0),v=e(1),m=/mobile|tablet|ip(ad|hone|od)|android/i,b=function(){function t(){}var n;return n=t,t.prototype.apply=function(t){var e=this,r=this.renderingContext.root.ownerDocument.defaultView,o=r.supportTouchEvent&&m.test(navigator.userAgent),i=function(n){t.hooks.pointerMove.call(n)},a=function(n){t.hooks.pointerUp.call(n)},u=function(n){t.hooks.pointerDown.call(n)},c=function(n){t.hooks.pointerOver.call(n)},s=function(n){t.hooks.pointerOut.call(n)},l=function(n){t.hooks.pointerWheel.call(n)},f=function(t){t.addEventListener("touchstart",u,!0),t.addEventListener("touchend",a,!0),t.addEventListener("touchmove",i,!0)},d=function(t){globalThis.document.addEventListener("mousemove",i,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("mouseout",s,!0),t.addEventListener("mouseover",c,!0),globalThis.addEventListener("mouseup",a,!0)},h=function(t){t.removeEventListener("touchstart",u,!0),t.removeEventListener("touchend",a,!0),t.removeEventListener("touchmove",i,!0)},p=function(t){globalThis.document.removeEventListener("mousemove",i,!0),t.removeEventListener("mousedown",u,!0),t.removeEventListener("mouseout",s,!0),t.removeEventListener("mouseover",c,!0),globalThis.removeEventListener("mouseup",a,!0)};t.hooks.init.tap(n.tag,(function(){var t=e.contextService.getDomElement();r.supportPointerEvent?function(t){globalThis.document.addEventListener("pointermove",i,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("pointerleave",s,!0),t.addEventListener("pointerover",c,!0),globalThis.addEventListener("pointerup",a,!0)}(t):o?f(t):r.supportTouchEvent?(f(t),d(t)):d(t),t.addEventListener("wheel",l,{passive:!0,capture:!0})})),t.hooks.destroy.tap(n.tag,(function(){var t=e.contextService.getDomElement();r.supportPointerEvent?function(t){globalThis.document.removeEventListener("pointermove",i,!0),t.removeEventListener("pointerdown",u,!0),t.removeEventListener("pointerleave",s,!0),t.removeEventListener("pointerover",c,!0),globalThis.removeEventListener("pointerup",a,!0)}(t):o?h(t):r.supportTouchEvent?(h(t),p(t)):p(t),t.removeEventListener("wheel",l,!0)}))},t.tag="DOMInteractionPlugin",l([Object(v.inject)(p.ContextService),f("design:type",Object)],t.prototype,"contextService",void 0),l([Object(v.inject)(p.RenderingContext),f("design:type",Object)],t.prototype,"renderingContext",void 0),t=n=l([Object(v.singleton)({contrib:p.RenderingPluginContribution})],t)}(),y=Object(v.Module)((function(t){t(b)})),g=function(){function t(){}return t.prototype.init=function(t){t.load(y,!0)},t.prototype.destroy=function(t){t.unload(y)},t}(),M=function(){function t(){}return t.tag="c-svg-element",t}(),S=Array.isArray;function A(t){return t.toFixed(6).replace(".000000","")}function w(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&amp;":"<"===t?"&lt;":">"===t?"&gt;":'"'===t?"&quot;":"&apos;"}))}var x=function(){function t(){this.dependencies=["radius","width","height"]}return t.prototype.apply=function(t,n){var e=n.radius,r=n.width,o=n.height,i=e&&e.value||0,a=r.value,u=o.value,c="";if(i){var s=function(t){var n=0,e=0,r=0,o=0;return S(t)?1===t.length?n=e=r=o=t[0]:2===t.length?(n=r=t[0],e=o=t[1]):3===t.length?(n=t[0],e=o=t[1],r=t[2]):(n=t[0],e=t[1],r=t[2],o=t[3]):n=e=r=o=t,{r1:n,r2:e,r3:r,r4:o}}(i);S(i)?1===i.length?s.r1=s.r2=s.r3=s.r4=i[0]:2===i.length?(s.r1=s.r3=i[0],s.r2=s.r4=i[1]):3===i.length?(s.r1=i[0],s.r2=s.r4=i[1],s.r3=i[2]):(s.r1=i[0],s.r2=i[1],s.r3=i[2],s.r4=i[3]):s.r1=s.r2=s.r3=s.r4=i,c=[["M ".concat(s.r1,",0")],["l ".concat(a-s.r1-s.r2,",0")],["a ".concat(s.r2,",").concat(s.r2,",0,0,1,").concat(s.r2,",").concat(s.r2)],["l 0,".concat(u-s.r2-s.r3)],["a ".concat(s.r3,",").concat(s.r3,",0,0,1,").concat(-s.r3,",").concat(s.r3)],["l ".concat(s.r3+s.r4-a,",0")],["a ".concat(s.r4,",").concat(s.r4,",0,0,1,").concat(-s.r4,",").concat(-s.r4)],["l 0,".concat(s.r4+s.r1-u)],["a ".concat(s.r1,",").concat(s.r1,",0,0,1,").concat(s.r1,",").concat(-s.r1)],["z"]].join(" ")}else c="M 0,0 l ".concat(a,",0 l 0,").concat(u," l").concat(-a," 0 z");t.setAttribute("d",c)},t=l([Object(v.singleton)()],t)}(),E=e(3),O="object"==typeof self&&self&&self.Object===Object&&self,C=(E.a||O||Function("return this")()).Symbol,T=Object.prototype,j=T.hasOwnProperty,L=T.toString,P=C?C.toStringTag:void 0;var G=function(t){var n=j.call(t,P),e=t[P];try{t[P]=void 0;var r=!0}catch(t){}var o=L.call(t);return r&&(n?t[P]=e:delete t[P]),o},k=Object.prototype.toString;var $=function(t){return k.call(t)},R=C?C.toStringTag:void 0;var N=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?G(t):$(t)};var W=function(t){return null!=t&&"object"==typeof t};var D=function(t){return"string"==typeof t||!S(t)&&W(t)&&"[object String]"==N(t)},V=function(){function t(){this.dependencies=["img","width","height"]}return t.prototype.apply=function(t,n){var e=n.img,r=void 0===e?"":e,o=n.width,i=n.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),D(r))t.setAttribute("href",r);else if(r instanceof Image)o||t.setAttribute("width","".concat(r.width)),i||t.setAttribute("height","".concat(r.height)),t.setAttribute("href",r.src);else if(r instanceof HTMLElement&&D(r.nodeName)&&"CANVAS"===r.nodeName.toUpperCase())t.setAttribute("href",r.toDataURL());else if(r instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width","".concat(r.width)),a.setAttribute("height","".concat(r.height));var u=a.getContext("2d");u&&(u.putImageData(r,0,0),o||t.setAttribute("width","".concat(r.width)),i||t.setAttribute("height","".concat(r.height)),t.setAttribute("href",a.toDataURL()))}},t=l([Object(v.singleton)()],t)}(),I=function(){function t(){this.dependencies=["x1","y1","x2","y2"]}return t.prototype.apply=function(t,n){var e=n.x1,r=n.y1,o=n.x2,i=n.y2,a=n.defX,u=void 0===a?0:a,c=n.defY,s=void 0===c?0:c,l=n.stroke;t.setAttribute("x1","".concat(e.value-u)),t.setAttribute("y1","".concat(r.value-s)),t.setAttribute("x2","".concat(o.value-u)),r.value!==i.value||!l||l instanceof p.CSSRGB?t.setAttribute("y2","".concat(i.value-s)):t.setAttribute("y2","".concat(i.value-s+1e-5))},t=l([Object(v.singleton)()],t)}(),q=function(){function t(){this.dependencies=["points"]}return t.prototype.apply=function(t,n){var e=n.points,r=n.defX,o=void 0===r?0:r,i=n.defY,a=void 0===i?0:i;e&&e.points&&e.points.length>=2&&t.setAttribute("points",e.points.map((function(t){return"".concat(t[0]-o,",").concat(t[1]-a)})).join(" "))},t=l([Object(v.singleton)()],t)}(),_=e(4),B={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},F={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},X=function(){function t(){this.dependencies=["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","leading","textBaseline","textAlign","textTransform","whiteSpace","dx","dy"]}return t.prototype.apply=function(t,n){var e=n.textBaseline,r=n.lineWidth,o=n.metrics,i=n.dx,a=n.dy,u=Object(_.a)();u&&"firefox"===u.name?t.setAttribute("dominant-baseline",F[e.value]||"alphabetic"):(t.setAttribute("dominant-baseline",F[e.value]),t.setAttribute("alignment-baseline",B[e.value])),t.setAttribute("paint-order","stroke");var c=o.lines,s=o.lineHeight,l=o.height,f=c.length;t.setAttribute("style","transform:translate(".concat(i.toString(),", ").concat(a.toString(),");")),1===f?(t.innerHTML=w(c[0]),t.setAttribute("dx","".concat(r.value/2))):t.innerHTML=c.map((function(t,n){var o=r.value/2,i=0;return 0===n?"middle"===e.value?i=s/2-l/2:"top"===e.value||"hanging"===e.value?i=0:"bottom"!==e.value&&"alphabetic"!==e.value&&"ideographic"!==e.value||(i=-s*(f-1)):i=s,'<tspan x="0" dx="'.concat(o,'" dy="').concat(i,'">').concat(w(t),"</tspan>")})).join("")},t=l([Object(v.singleton)()],t)}(),Y=function(){function t(){this.dependencies=["path"]}return t.prototype.apply=function(t,n){var e=n.path,r=n.defX,o=void 0===r?0:r,i=n.defY,a=void 0===i?0:i;t.setAttribute("d",this.formatPath(e.absolutePath,o,a))},t.prototype.formatPath=function(t,n,e){var r=t.map((function(t){switch(t[0]){case"M":return"M ".concat(t[1]-n,",").concat(t[2]-e);case"L":return"L ".concat(t[1]-n,",").concat(t[2]-e);case"Q":return"Q ".concat(t[1]-n," ").concat(t[2]-e,",").concat(t[3]-n," ").concat(t[4]-e);case"C":return"C ".concat(t[1]-n," ").concat(t[2]-e,",").concat(t[3]-n," ").concat(t[4]-e,",").concat(t[5]-n," ").concat(t[6]-e);case"A":return"A ".concat(t[1]," ").concat(t[2]," ").concat(t[3]," ").concat(t[4]," ").concat(t[5]," ").concat(t[6]-n," ").concat(t[7]-e);case"Z":return"Z"}})).join(" ");return~r.indexOf("NaN")?"":r},t=l([Object(v.singleton)()],t)}(),H=v.Syringe.defineToken("ElementRendererFactory"),U=(v.Syringe.defineToken("ElementRenderer"),1e-6),z="undefined"!=typeof Float32Array?Float32Array:Array,Q=Math.random;Math.PI;function Z(){var t=new z(16);return z!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function K(t){var n=new z(16);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n}function J(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function tt(t,n,e,r,o,i,a,u,c,s,l,f,d,h,p,v){var m=new z(16);return m[0]=t,m[1]=n,m[2]=e,m[3]=r,m[4]=o,m[5]=i,m[6]=a,m[7]=u,m[8]=c,m[9]=s,m[10]=l,m[11]=f,m[12]=d,m[13]=h,m[14]=p,m[15]=v,m}function nt(t,n,e,r,o,i,a,u,c,s,l,f,d,h,p,v,m){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=u,t[7]=c,t[8]=s,t[9]=l,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=m,t}function et(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function rt(t,n){if(t===n){var e=n[1],r=n[2],o=n[3],i=n[6],a=n[7],u=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=i,t[11]=n[14],t[12]=o,t[13]=a,t[14]=u}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function ot(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],c=n[6],s=n[7],l=n[8],f=n[9],d=n[10],h=n[11],p=n[12],v=n[13],m=n[14],b=n[15],y=e*u-r*a,g=e*c-o*a,M=e*s-i*a,S=r*c-o*u,A=r*s-i*u,w=o*s-i*c,x=l*v-f*p,E=l*m-d*p,O=l*b-h*p,C=f*m-d*v,T=f*b-h*v,j=d*b-h*m,L=y*j-g*T+M*C+S*O-A*E+w*x;return L?(L=1/L,t[0]=(u*j-c*T+s*C)*L,t[1]=(o*T-r*j-i*C)*L,t[2]=(v*w-m*A+b*S)*L,t[3]=(d*A-f*w-h*S)*L,t[4]=(c*O-a*j-s*E)*L,t[5]=(e*j-o*O+i*E)*L,t[6]=(m*M-p*w-b*g)*L,t[7]=(l*w-d*M+h*g)*L,t[8]=(a*T-u*O+s*x)*L,t[9]=(r*O-e*T-i*x)*L,t[10]=(p*A-v*M+b*y)*L,t[11]=(f*M-l*A-h*y)*L,t[12]=(u*E-a*C-c*x)*L,t[13]=(e*C-r*E+o*x)*L,t[14]=(v*g-p*S-m*y)*L,t[15]=(l*S-f*g+d*y)*L,t):null}function it(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],c=n[6],s=n[7],l=n[8],f=n[9],d=n[10],h=n[11],p=n[12],v=n[13],m=n[14],b=n[15];return t[0]=u*(d*b-h*m)-f*(c*b-s*m)+v*(c*h-s*d),t[1]=-(r*(d*b-h*m)-f*(o*b-i*m)+v*(o*h-i*d)),t[2]=r*(c*b-s*m)-u*(o*b-i*m)+v*(o*s-i*c),t[3]=-(r*(c*h-s*d)-u*(o*h-i*d)+f*(o*s-i*c)),t[4]=-(a*(d*b-h*m)-l*(c*b-s*m)+p*(c*h-s*d)),t[5]=e*(d*b-h*m)-l*(o*b-i*m)+p*(o*h-i*d),t[6]=-(e*(c*b-s*m)-a*(o*b-i*m)+p*(o*s-i*c)),t[7]=e*(c*h-s*d)-a*(o*h-i*d)+l*(o*s-i*c),t[8]=a*(f*b-h*v)-l*(u*b-s*v)+p*(u*h-s*f),t[9]=-(e*(f*b-h*v)-l*(r*b-i*v)+p*(r*h-i*f)),t[10]=e*(u*b-s*v)-a*(r*b-i*v)+p*(r*s-i*u),t[11]=-(e*(u*h-s*f)-a*(r*h-i*f)+l*(r*s-i*u)),t[12]=-(a*(f*m-d*v)-l*(u*m-c*v)+p*(u*d-c*f)),t[13]=e*(f*m-d*v)-l*(r*m-o*v)+p*(r*d-o*f),t[14]=-(e*(u*m-c*v)-a*(r*m-o*v)+p*(r*c-o*u)),t[15]=e*(u*d-c*f)-a*(r*d-o*f)+l*(r*c-o*u),t}function at(t){var n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],u=t[6],c=t[7],s=t[8],l=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],m=t[15];return(n*a-e*i)*(f*m-d*v)-(n*u-r*i)*(l*m-d*p)+(n*c-o*i)*(l*v-f*p)+(e*u-r*a)*(s*m-d*h)-(e*c-o*a)*(s*v-f*h)+(r*c-o*u)*(s*p-l*h)}function ut(t,n,e){var r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],c=n[5],s=n[6],l=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],m=n[13],b=n[14],y=n[15],g=e[0],M=e[1],S=e[2],A=e[3];return t[0]=g*r+M*u+S*f+A*v,t[1]=g*o+M*c+S*d+A*m,t[2]=g*i+M*s+S*h+A*b,t[3]=g*a+M*l+S*p+A*y,g=e[4],M=e[5],S=e[6],A=e[7],t[4]=g*r+M*u+S*f+A*v,t[5]=g*o+M*c+S*d+A*m,t[6]=g*i+M*s+S*h+A*b,t[7]=g*a+M*l+S*p+A*y,g=e[8],M=e[9],S=e[10],A=e[11],t[8]=g*r+M*u+S*f+A*v,t[9]=g*o+M*c+S*d+A*m,t[10]=g*i+M*s+S*h+A*b,t[11]=g*a+M*l+S*p+A*y,g=e[12],M=e[13],S=e[14],A=e[15],t[12]=g*r+M*u+S*f+A*v,t[13]=g*o+M*c+S*d+A*m,t[14]=g*i+M*s+S*h+A*b,t[15]=g*a+M*l+S*p+A*y,t}function ct(t,n,e){var r,o,i,a,u,c,s,l,f,d,h,p,v=e[0],m=e[1],b=e[2];return n===t?(t[12]=n[0]*v+n[4]*m+n[8]*b+n[12],t[13]=n[1]*v+n[5]*m+n[9]*b+n[13],t[14]=n[2]*v+n[6]*m+n[10]*b+n[14],t[15]=n[3]*v+n[7]*m+n[11]*b+n[15]):(r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],c=n[5],s=n[6],l=n[7],f=n[8],d=n[9],h=n[10],p=n[11],t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=u,t[5]=c,t[6]=s,t[7]=l,t[8]=f,t[9]=d,t[10]=h,t[11]=p,t[12]=r*v+u*m+f*b+n[12],t[13]=o*v+c*m+d*b+n[13],t[14]=i*v+s*m+h*b+n[14],t[15]=a*v+l*m+p*b+n[15]),t}function st(t,n,e){var r=e[0],o=e[1],i=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*i,t[9]=n[9]*i,t[10]=n[10]*i,t[11]=n[11]*i,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function lt(t,n,e,r){var o,i,a,u,c,s,l,f,d,h,p,v,m,b,y,g,M,S,A,w,x,E,O,C,T=r[0],j=r[1],L=r[2],P=Math.hypot(T,j,L);return P<U?null:(T*=P=1/P,j*=P,L*=P,o=Math.sin(e),a=1-(i=Math.cos(e)),u=n[0],c=n[1],s=n[2],l=n[3],f=n[4],d=n[5],h=n[6],p=n[7],v=n[8],m=n[9],b=n[10],y=n[11],g=T*T*a+i,M=j*T*a+L*o,S=L*T*a-j*o,A=T*j*a-L*o,w=j*j*a+i,x=L*j*a+T*o,E=T*L*a+j*o,O=j*L*a-T*o,C=L*L*a+i,t[0]=u*g+f*M+v*S,t[1]=c*g+d*M+m*S,t[2]=s*g+h*M+b*S,t[3]=l*g+p*M+y*S,t[4]=u*A+f*w+v*x,t[5]=c*A+d*w+m*x,t[6]=s*A+h*w+b*x,t[7]=l*A+p*w+y*x,t[8]=u*E+f*O+v*C,t[9]=c*E+d*O+m*C,t[10]=s*E+h*O+b*C,t[11]=l*E+p*O+y*C,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t)}function ft(t,n,e){var r=Math.sin(e),o=Math.cos(e),i=n[4],a=n[5],u=n[6],c=n[7],s=n[8],l=n[9],f=n[10],d=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=i*o+s*r,t[5]=a*o+l*r,t[6]=u*o+f*r,t[7]=c*o+d*r,t[8]=s*o-i*r,t[9]=l*o-a*r,t[10]=f*o-u*r,t[11]=d*o-c*r,t}function dt(t,n,e){var r=Math.sin(e),o=Math.cos(e),i=n[0],a=n[1],u=n[2],c=n[3],s=n[8],l=n[9],f=n[10],d=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o-s*r,t[1]=a*o-l*r,t[2]=u*o-f*r,t[3]=c*o-d*r,t[8]=i*r+s*o,t[9]=a*r+l*o,t[10]=u*r+f*o,t[11]=c*r+d*o,t}function ht(t,n,e){var r=Math.sin(e),o=Math.cos(e),i=n[0],a=n[1],u=n[2],c=n[3],s=n[4],l=n[5],f=n[6],d=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o+s*r,t[1]=a*o+l*r,t[2]=u*o+f*r,t[3]=c*o+d*r,t[4]=s*o-i*r,t[5]=l*o-a*r,t[6]=f*o-u*r,t[7]=d*o-c*r,t}function pt(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function vt(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function mt(t,n,e){var r,o,i,a=e[0],u=e[1],c=e[2],s=Math.hypot(a,u,c);return s<U?null:(a*=s=1/s,u*=s,c*=s,r=Math.sin(n),i=1-(o=Math.cos(n)),t[0]=a*a*i+o,t[1]=u*a*i+c*r,t[2]=c*a*i-u*r,t[3]=0,t[4]=a*u*i-c*r,t[5]=u*u*i+o,t[6]=c*u*i+a*r,t[7]=0,t[8]=a*c*i+u*r,t[9]=u*c*i-a*r,t[10]=c*c*i+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function bt(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function yt(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function gt(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Mt(t,n,e){var r=n[0],o=n[1],i=n[2],a=n[3],u=r+r,c=o+o,s=i+i,l=r*u,f=r*c,d=r*s,h=o*c,p=o*s,v=i*s,m=a*u,b=a*c,y=a*s;return t[0]=1-(h+v),t[1]=f+y,t[2]=d-b,t[3]=0,t[4]=f-y,t[5]=1-(l+v),t[6]=p+m,t[7]=0,t[8]=d+b,t[9]=p-m,t[10]=1-(l+h),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function St(t,n){var e=new z(3),r=-n[0],o=-n[1],i=-n[2],a=n[3],u=n[4],c=n[5],s=n[6],l=n[7],f=r*r+o*o+i*i+a*a;return f>0?(e[0]=2*(u*a+l*r+c*i-s*o)/f,e[1]=2*(c*a+l*o+s*r-u*i)/f,e[2]=2*(s*a+l*i+u*o-c*r)/f):(e[0]=2*(u*a+l*r+c*i-s*o),e[1]=2*(c*a+l*o+s*r-u*i),e[2]=2*(s*a+l*i+u*o-c*r)),Mt(t,n,e),t}function At(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function wt(t,n){var e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],u=n[6],c=n[8],s=n[9],l=n[10];return t[0]=Math.hypot(e,r,o),t[1]=Math.hypot(i,a,u),t[2]=Math.hypot(c,s,l),t}function xt(t,n){var e=new z(3);wt(e,n);var r=1/e[0],o=1/e[1],i=1/e[2],a=n[0]*r,u=n[1]*o,c=n[2]*i,s=n[4]*r,l=n[5]*o,f=n[6]*i,d=n[8]*r,h=n[9]*o,p=n[10]*i,v=a+l+p,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(f-h)/m,t[1]=(d-c)/m,t[2]=(u-s)/m):a>l&&a>p?(m=2*Math.sqrt(1+a-l-p),t[3]=(f-h)/m,t[0]=.25*m,t[1]=(u+s)/m,t[2]=(d+c)/m):l>p?(m=2*Math.sqrt(1+l-a-p),t[3]=(d-c)/m,t[0]=(u+s)/m,t[1]=.25*m,t[2]=(f+h)/m):(m=2*Math.sqrt(1+p-a-l),t[3]=(u-s)/m,t[0]=(d+c)/m,t[1]=(f+h)/m,t[2]=.25*m),t}function Et(t,n,e,r){var o=n[0],i=n[1],a=n[2],u=n[3],c=o+o,s=i+i,l=a+a,f=o*c,d=o*s,h=o*l,p=i*s,v=i*l,m=a*l,b=u*c,y=u*s,g=u*l,M=r[0],S=r[1],A=r[2];return t[0]=(1-(p+m))*M,t[1]=(d+g)*M,t[2]=(h-y)*M,t[3]=0,t[4]=(d-g)*S,t[5]=(1-(f+m))*S,t[6]=(v+b)*S,t[7]=0,t[8]=(h+y)*A,t[9]=(v-b)*A,t[10]=(1-(f+p))*A,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function Ot(t,n,e,r,o){var i=n[0],a=n[1],u=n[2],c=n[3],s=i+i,l=a+a,f=u+u,d=i*s,h=i*l,p=i*f,v=a*l,m=a*f,b=u*f,y=c*s,g=c*l,M=c*f,S=r[0],A=r[1],w=r[2],x=o[0],E=o[1],O=o[2],C=(1-(v+b))*S,T=(h+M)*S,j=(p-g)*S,L=(h-M)*A,P=(1-(d+b))*A,G=(m+y)*A,k=(p+g)*w,$=(m-y)*w,R=(1-(d+v))*w;return t[0]=C,t[1]=T,t[2]=j,t[3]=0,t[4]=L,t[5]=P,t[6]=G,t[7]=0,t[8]=k,t[9]=$,t[10]=R,t[11]=0,t[12]=e[0]+x-(C*x+L*E+k*O),t[13]=e[1]+E-(T*x+P*E+$*O),t[14]=e[2]+O-(j*x+G*E+R*O),t[15]=1,t}function Ct(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,u=r+r,c=o+o,s=e*a,l=r*a,f=r*u,d=o*a,h=o*u,p=o*c,v=i*a,m=i*u,b=i*c;return t[0]=1-f-p,t[1]=l+b,t[2]=d-m,t[3]=0,t[4]=l-b,t[5]=1-s-p,t[6]=h+v,t[7]=0,t[8]=d+m,t[9]=h-v,t[10]=1-s-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Tt(t,n,e,r,o,i,a){var u=1/(e-n),c=1/(o-r),s=1/(i-a);return t[0]=2*i*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*c,t[6]=0,t[7]=0,t[8]=(e+n)*u,t[9]=(o+r)*c,t[10]=(a+i)*s,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*i*2*s,t[15]=0,t}function jt(t,n,e,r,o){var i,a=1/Math.tan(n/2);return t[0]=a/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(i=1/(r-o),t[10]=(o+r)*i,t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t}Math.hypot||(Math.hypot=function(){for(var t=0,n=arguments.length;n--;)t+=arguments[n]*arguments[n];return Math.sqrt(t)});var Lt=jt;function Pt(t,n,e,r,o){var i,a=1/Math.tan(n/2);return t[0]=a/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(i=1/(r-o),t[10]=o*i,t[14]=o*r*i):(t[10]=-1,t[14]=-r),t}function Gt(t,n,e,r){var o=Math.tan(n.upDegrees*Math.PI/180),i=Math.tan(n.downDegrees*Math.PI/180),a=Math.tan(n.leftDegrees*Math.PI/180),u=Math.tan(n.rightDegrees*Math.PI/180),c=2/(a+u),s=2/(o+i);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=-(a-u)*c*.5,t[9]=(o-i)*s*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t}function kt(t,n,e,r,o,i,a){var u=1/(n-e),c=1/(r-o),s=1/(i-a);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*s,t[11]=0,t[12]=(n+e)*u,t[13]=(o+r)*c,t[14]=(a+i)*s,t[15]=1,t}var $t=kt;function Rt(t,n,e,r,o,i,a){var u=1/(n-e),c=1/(r-o),s=1/(i-a);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=s,t[11]=0,t[12]=(n+e)*u,t[13]=(o+r)*c,t[14]=i*s,t[15]=1,t}function Nt(t,n,e,r){var o,i,a,u,c,s,l,f,d,h,p=n[0],v=n[1],m=n[2],b=r[0],y=r[1],g=r[2],M=e[0],S=e[1],A=e[2];return Math.abs(p-M)<U&&Math.abs(v-S)<U&&Math.abs(m-A)<U?et(t):(l=p-M,f=v-S,d=m-A,o=y*(d*=h=1/Math.hypot(l,f,d))-g*(f*=h),i=g*(l*=h)-b*d,a=b*f-y*l,(h=Math.hypot(o,i,a))?(o*=h=1/h,i*=h,a*=h):(o=0,i=0,a=0),u=f*a-d*i,c=d*o-l*a,s=l*i-f*o,(h=Math.hypot(u,c,s))?(u*=h=1/h,c*=h,s*=h):(u=0,c=0,s=0),t[0]=o,t[1]=u,t[2]=l,t[3]=0,t[4]=i,t[5]=c,t[6]=f,t[7]=0,t[8]=a,t[9]=s,t[10]=d,t[11]=0,t[12]=-(o*p+i*v+a*m),t[13]=-(u*p+c*v+s*m),t[14]=-(l*p+f*v+d*m),t[15]=1,t)}function Wt(t,n,e,r){var o=n[0],i=n[1],a=n[2],u=r[0],c=r[1],s=r[2],l=o-e[0],f=i-e[1],d=a-e[2],h=l*l+f*f+d*d;h>0&&(l*=h=1/Math.sqrt(h),f*=h,d*=h);var p=c*d-s*f,v=s*l-u*d,m=u*f-c*l;return(h=p*p+v*v+m*m)>0&&(p*=h=1/Math.sqrt(h),v*=h,m*=h),t[0]=p,t[1]=v,t[2]=m,t[3]=0,t[4]=f*m-d*v,t[5]=d*p-l*m,t[6]=l*v-f*p,t[7]=0,t[8]=l,t[9]=f,t[10]=d,t[11]=0,t[12]=o,t[13]=i,t[14]=a,t[15]=1,t}function Dt(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function Vt(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function It(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t}function qt(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function _t(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t}function Bt(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t}function Ft(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function Xt(t,n){var e=t[0],r=t[1],o=t[2],i=t[3],a=t[4],u=t[5],c=t[6],s=t[7],l=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],m=t[14],b=t[15],y=n[0],g=n[1],M=n[2],S=n[3],A=n[4],w=n[5],x=n[6],E=n[7],O=n[8],C=n[9],T=n[10],j=n[11],L=n[12],P=n[13],G=n[14],k=n[15];return Math.abs(e-y)<=U*Math.max(1,Math.abs(e),Math.abs(y))&&Math.abs(r-g)<=U*Math.max(1,Math.abs(r),Math.abs(g))&&Math.abs(o-M)<=U*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(i-S)<=U*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(a-A)<=U*Math.max(1,Math.abs(a),Math.abs(A))&&Math.abs(u-w)<=U*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(c-x)<=U*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(s-E)<=U*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(l-O)<=U*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-C)<=U*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(d-T)<=U*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-j)<=U*Math.max(1,Math.abs(h),Math.abs(j))&&Math.abs(p-L)<=U*Math.max(1,Math.abs(p),Math.abs(L))&&Math.abs(v-P)<=U*Math.max(1,Math.abs(v),Math.abs(P))&&Math.abs(m-G)<=U*Math.max(1,Math.abs(m),Math.abs(G))&&Math.abs(b-k)<=U*Math.max(1,Math.abs(b),Math.abs(k))}var Yt=ut,Ht=qt;function Ut(){var t=new z(3);return z!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function zt(t){var n=new z(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function Qt(t){var n=t[0],e=t[1],r=t[2];return Math.hypot(n,e,r)}function Zt(t,n,e){var r=new z(3);return r[0]=t,r[1]=n,r[2]=e,r}function Kt(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function Jt(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function tn(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function nn(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function en(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function rn(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function on(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t}function an(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t}function un(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function cn(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function sn(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t}function ln(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function fn(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function dn(t,n){var e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.hypot(e,r,o)}function hn(t,n){var e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function pn(t){var n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function vn(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function mn(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function bn(t,n){var e=n[0],r=n[1],o=n[2],i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i)),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t}function yn(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function gn(t,n,e){var r=n[0],o=n[1],i=n[2],a=e[0],u=e[1],c=e[2];return t[0]=o*c-i*u,t[1]=i*a-r*c,t[2]=r*u-o*a,t}function Mn(t,n,e,r){var o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function Sn(t,n,e,r,o,i){var a=i*i,u=a*(2*i-3)+1,c=a*(i-2)+i,s=a*(i-1),l=a*(3-2*i);return t[0]=n[0]*u+e[0]*c+r[0]*s+o[0]*l,t[1]=n[1]*u+e[1]*c+r[1]*s+o[1]*l,t[2]=n[2]*u+e[2]*c+r[2]*s+o[2]*l,t}function An(t,n,e,r,o,i){var a=1-i,u=a*a,c=i*i,s=u*a,l=3*i*u,f=3*c*a,d=c*i;return t[0]=n[0]*s+e[0]*l+r[0]*f+o[0]*d,t[1]=n[1]*s+e[1]*l+r[1]*f+o[1]*d,t[2]=n[2]*s+e[2]*l+r[2]*f+o[2]*d,t}function wn(t,n){n=n||1;var e=2*Q()*Math.PI,r=2*Q()-1,o=Math.sqrt(1-r*r)*n;return t[0]=Math.cos(e)*o,t[1]=Math.sin(e)*o,t[2]=r*n,t}function xn(t,n,e){var r=n[0],o=n[1],i=n[2],a=e[3]*r+e[7]*o+e[11]*i+e[15];return a=a||1,t[0]=(e[0]*r+e[4]*o+e[8]*i+e[12])/a,t[1]=(e[1]*r+e[5]*o+e[9]*i+e[13])/a,t[2]=(e[2]*r+e[6]*o+e[10]*i+e[14])/a,t}function En(t,n,e){var r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function On(t,n,e){var r=e[0],o=e[1],i=e[2],a=e[3],u=n[0],c=n[1],s=n[2],l=o*s-i*c,f=i*u-r*s,d=r*c-o*u,h=o*d-i*f,p=i*l-r*d,v=r*f-o*l,m=2*a;return l*=m,f*=m,d*=m,h*=2,p*=2,v*=2,t[0]=u+l+h,t[1]=c+f+p,t[2]=s+d+v,t}function Cn(t,n,e,r){var o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t}function Tn(t,n,e,r){var o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t}function jn(t,n,e,r){var o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t}function Ln(t,n){var e=t[0],r=t[1],o=t[2],i=n[0],a=n[1],u=n[2],c=Math.sqrt(e*e+r*r+o*o)*Math.sqrt(i*i+a*a+u*u),s=c&&yn(t,n)/c;return Math.acos(Math.min(Math.max(s,-1),1))}function Pn(t){return t[0]=0,t[1]=0,t[2]=0,t}function Gn(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function kn(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function $n(t,n){var e=t[0],r=t[1],o=t[2],i=n[0],a=n[1],u=n[2];return Math.abs(e-i)<=U*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-a)<=U*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-u)<=U*Math.max(1,Math.abs(o),Math.abs(u))}var Rn,Nn=nn,Wn=en,Dn=rn,Vn=dn,In=hn,qn=Qt,_n=pn,Bn=(Rn=Ut(),function(t,n,e,r,o,i){var a,u;for(n||(n=3),e||(e=0),u=r?Math.min(r*n+e,t.length):t.length,a=e;a<u;a+=n)Rn[0]=t[a],Rn[1]=t[a+1],Rn[2]=t[a+2],o(Rn,Rn,i),t[a]=Rn[0],t[a+1]=Rn[1],t[a+2]=Rn[2];return t});function Fn(t){var n=t[0],e=t[1],r=t[2],o=t[3];return Math.hypot(n,e,r,o)}function Xn(t){var n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}!function(){var t,n=(t=new z(4),z!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t)}();function Yn(){var t=new z(4);return z!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Hn(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function Un(t,n,e){e*=.5;var r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function zn(t,n){var e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>U?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function Qn(t,n){var e=Oe(t,n);return Math.acos(2*e*e-1)}function Zn(t,n,e){var r=n[0],o=n[1],i=n[2],a=n[3],u=e[0],c=e[1],s=e[2],l=e[3];return t[0]=r*l+a*u+o*s-i*c,t[1]=o*l+a*c+i*u-r*s,t[2]=i*l+a*s+r*c-o*u,t[3]=a*l-r*u-o*c-i*s,t}function Kn(t,n,e){e*=.5;var r=n[0],o=n[1],i=n[2],a=n[3],u=Math.sin(e),c=Math.cos(e);return t[0]=r*c+a*u,t[1]=o*c+i*u,t[2]=i*c-o*u,t[3]=a*c-r*u,t}function Jn(t,n,e){e*=.5;var r=n[0],o=n[1],i=n[2],a=n[3],u=Math.sin(e),c=Math.cos(e);return t[0]=r*c-i*u,t[1]=o*c+a*u,t[2]=i*c+r*u,t[3]=a*c-o*u,t}function te(t,n,e){e*=.5;var r=n[0],o=n[1],i=n[2],a=n[3],u=Math.sin(e),c=Math.cos(e);return t[0]=r*c+o*u,t[1]=o*c-r*u,t[2]=i*c+a*u,t[3]=a*c-i*u,t}function ne(t,n){var e=n[0],r=n[1],o=n[2];return t[0]=e,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-o*o)),t}function ee(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=Math.sqrt(e*e+r*r+o*o),u=Math.exp(i),c=a>0?u*Math.sin(a)/a:0;return t[0]=e*c,t[1]=r*c,t[2]=o*c,t[3]=u*Math.cos(a),t}function re(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=Math.sqrt(e*e+r*r+o*o),u=a>0?Math.atan2(a,i)/a:0;return t[0]=e*u,t[1]=r*u,t[2]=o*u,t[3]=.5*Math.log(e*e+r*r+o*o+i*i),t}function oe(t,n,e){return re(t,n),Ee(t,t,e),ee(t,t),t}function ie(t,n,e,r){var o,i,a,u,c,s=n[0],l=n[1],f=n[2],d=n[3],h=e[0],p=e[1],v=e[2],m=e[3];return(i=s*h+l*p+f*v+d*m)<0&&(i=-i,h=-h,p=-p,v=-v,m=-m),1-i>U?(o=Math.acos(i),a=Math.sin(o),u=Math.sin((1-r)*o)/a,c=Math.sin(r*o)/a):(u=1-r,c=r),t[0]=u*s+c*h,t[1]=u*l+c*p,t[2]=u*f+c*v,t[3]=u*d+c*m,t}function ae(t){var n=Q(),e=Q(),r=Q(),o=Math.sqrt(1-n),i=Math.sqrt(n);return t[0]=o*Math.sin(2*Math.PI*e),t[1]=o*Math.cos(2*Math.PI*e),t[2]=i*Math.sin(2*Math.PI*r),t[3]=i*Math.cos(2*Math.PI*r),t}function ue(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=e*e+r*r+o*o+i*i,u=a?1/a:0;return t[0]=-e*u,t[1]=-r*u,t[2]=-o*u,t[3]=i*u,t}function ce(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function se(t,n){var e,r=n[0]+n[4]+n[8];if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{var o=0;n[4]>n[0]&&(o=1),n[8]>n[3*o+o]&&(o=2);var i=(o+1)%3,a=(o+2)%3;e=Math.sqrt(n[3*o+o]-n[3*i+i]-n[3*a+a]+1),t[o]=.5*e,e=.5/e,t[3]=(n[3*i+a]-n[3*a+i])*e,t[i]=(n[3*i+o]+n[3*o+i])*e,t[a]=(n[3*a+o]+n[3*o+a])*e}return t}function le(t,n,e,r){var o=.5*Math.PI/180;n*=o,e*=o,r*=o;var i=Math.sin(n),a=Math.cos(n),u=Math.sin(e),c=Math.cos(e),s=Math.sin(r),l=Math.cos(r);return t[0]=i*c*l-a*u*s,t[1]=a*u*l+i*c*s,t[2]=a*c*s-i*u*l,t[3]=a*c*l+i*u*s,t}function fe(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var de,he,pe,ve,me,be,ye,ge=function(t){var n=new z(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},Me=function(t,n,e,r){var o=new z(4);return o[0]=t,o[1]=n,o[2]=e,o[3]=r,o},Se=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},Ae=function(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t},we=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t},xe=Zn,Ee=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t},Oe=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},Ce=function(t,n,e,r){var o=n[0],i=n[1],a=n[2],u=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=u+r*(e[3]-u),t},Te=Fn,je=Te,Le=Xn,Pe=Le,Ge=function(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a,t},ke=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},$e=function(t,n){var e=t[0],r=t[1],o=t[2],i=t[3],a=n[0],u=n[1],c=n[2],s=n[3];return Math.abs(e-a)<=U*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-u)<=U*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(o-c)<=U*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(i-s)<=U*Math.max(1,Math.abs(i),Math.abs(s))},Re=(de=Ut(),he=Zt(1,0,0),pe=Zt(0,1,0),function(t,n,e){var r=yn(n,e);return r<-.999999?(gn(de,he,n),qn(de)<1e-6&&gn(de,pe,n),bn(de,de),Un(t,de,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(gn(de,n,e),t[0]=de[0],t[1]=de[1],t[2]=de[2],t[3]=1+r,Ge(t,t))}),Ne=(ve=Yn(),me=Yn(),function(t,n,e,r,o,i){return ie(ve,n,o,i),ie(me,e,r,i),ie(t,ve,me,2*i*(1-i)),t}),We=(be=new z(9),z!=Float32Array&&(be[1]=0,be[2]=0,be[3]=0,be[5]=0,be[6]=0,be[7]=0),be[0]=1,be[4]=1,be[8]=1,ye=be,function(t,n,e,r){return ye[0]=e[0],ye[3]=e[1],ye[6]=e[2],ye[1]=r[0],ye[4]=r[1],ye[7]=r[2],ye[2]=-n[0],ye[5]=-n[1],ye[8]=-n[2],Ge(t,se(t,ye))});function De(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ve(t,n,e,r){var o="g-filter-"+n.entity,i=t.querySelectorAll("[name=".concat(o,"]"));if(i.length&&i.forEach((function(n){t.removeChild(n)})),0===r.length)null==e||e.removeAttribute("filter");else{var a=r.map((function(n,e){var r=n.name,i=n.params,a=De("filter");return"blur"===r?function(t,n){var e=De("feGaussianBlur");e.setAttribute("in","SourceGraphic"),e.setAttribute("stdDeviation","".concat(n[0].value)),t.appendChild(e)}(a,i):"brightness"===r?function(t,n){var e=Ie(n[0]);qe(t,{type:"linear",slope:e,intercept:0})}(a,i):"drop-shadow"===r?function(t,n){var e=n[0].value,r=n[1].value,o=n[2].value,i=n[3].formatted,a=De("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("stdDeviation","".concat(o)),t.appendChild(a);var u=De("feOffset");u.setAttribute("dx","".concat(e)),u.setAttribute("dy","".concat(r)),u.setAttribute("result","offsetblur"),t.appendChild(u);var c=De("feFlood");c.setAttribute("flood-color",i),t.appendChild(c);var s=De("feComposite");s.setAttribute("in2","offsetblur"),s.setAttribute("operator","in"),t.appendChild(s);var l=De("feMerge");t.appendChild(l);var f=De("feMergeNode"),d=De("feMergeNode");d.setAttribute("in","SourceGraphic"),l.appendChild(f),l.appendChild(d)}(a,i):"contrast"===r?function(t,n){var e=Ie(n[0]);qe(t,{type:"linear",slope:e,intercept:-.5*e+.5})}(a,i):"grayscale"===r?function(t,n){var e=Ie(n[0]);_e(t,[.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),0,0,.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),0,0,.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e),0,0,0,0,0,1,0])}(a,i):"sepia"===r?function(t,n){var e=Ie(n[0]);_e(t,[.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),0,0,.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),0,0,.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e),0,0,0,0,0,1,0])}(a,i):"saturate"===r?function(t,n){var e=Ie(n[0]),r=De("feColorMatrix");r.setAttribute("type","saturate"),r.setAttribute("values","".concat(e)),t.appendChild(r)}(a,i):"hue-rotate"===r?function(t,n){var e=De("feColorMatrix");e.setAttribute("type","hueRotate"),e.setAttribute("values","".concat(n[0].to(p.UnitType.kDegrees).value)),t.appendChild(e)}(a,i):"invert"===r&&function(t,n){var e=Ie(n[0]);qe(t,{type:"table",tableValues:"".concat(e," ").concat(1-e)})}(a,i),a.id="".concat(o,"-").concat(e),a.setAttribute("name",o),t.appendChild(a),a.id}));null==e||e.setAttribute("filter",a.map((function(t){return"url(#".concat(t,")")})).join(" "))}}function Ie(t){return t.unit===p.UnitType.kPercentage?t.value/100:t.value}function qe(t,n){var e=n.type,r=n.slope,o=n.intercept,i=n.tableValues,a=De("feComponentTransfer");[De("feFuncR"),De("feFuncG"),De("feFuncB")].forEach((function(t){t.setAttribute("type",e),"table"===e?t.setAttribute("tableValues","".concat(i)):(t.setAttribute("slope","".concat(r)),t.setAttribute("intercept","".concat(o))),a.appendChild(t)})),t.appendChild(a)}function _e(t,n){var e=De("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values",n.join(" ")),t.appendChild(e)}var Be={},Fe=0;function Xe(t,n,e,r,o){if(r){var i=function(t){var n="";if(t instanceof p.CSSGradientValue){var e=t.type;if(e===p.GradientPatternType.Pattern){var r=t.value.src;n=r}else if(e===p.GradientPatternType.LinearGradient||e===p.GradientPatternType.RadialGradient){var o=t.value,i=o.x0,a=o.y0,u=o.x1,c=o.y1,s=o.r1,l=o.steps;n="".concat(e).concat(i).concat(a).concat(u).concat(c).concat(s||0).concat(l.map((function(t){return t.join("")})).join(""))}n&&(Be[n]||(Be[n]="_pattern_".concat(e,"_").concat(Fe++)))}return Be[n]}(r),a=t.querySelector("#".concat(i));r instanceof p.CSSRGB?"currentColor"===n.style[o]?null==e||e.setAttribute(o,"currentColor"):null==e||e.setAttribute(o,r.isNone?"none":r.toString()):r.type===p.GradientPatternType.Pattern?(a||function(t,n,e){var r=n.value.src,o=De("pattern");o.setAttribute("patternUnits","userSpaceOnUse");var i=De("image");o.appendChild(i),o.id=e,t.appendChild(o),i.setAttribute("href",r);var a=new window.Image;r.match(/^data:/i)||(a.crossOrigin="Anonymous");function u(){o.setAttribute("width","".concat(a.width)),o.setAttribute("height","".concat(a.height))}a.src=r,a.complete?u():(a.onload=u,a.src=a.src)}(t,r,i),null==e||e.setAttribute(o,"url(#".concat(i,")"))):(a||function(t,n,e){var r=De(n.type===p.GradientPatternType.LinearGradient?"linearGradient":"radialGradient");if(n.type===p.GradientPatternType.LinearGradient){var o=n.value,i=o.x0,a=o.y0,u=o.x1,c=o.y1;r.setAttribute("x1","".concat(i)),r.setAttribute("y1","".concat(a)),r.setAttribute("x2","".concat(u)),r.setAttribute("y2","".concat(c))}else{var s=n.value,l=(i=s.x0,a=s.y0,s.r1);r.setAttribute("cx","".concat(i)),r.setAttribute("cy","".concat(a)),r.setAttribute("r","".concat(l/2))}var f="";n.value.steps.forEach((function(t){var n=h(t,2),e=n[0],r=n[1];f+='<stop offset="'.concat(e,'" stop-color="').concat(r,'"></stop>')})),r.innerHTML=f,r.id=e,t.appendChild(r)}(t,r,i),null==e||e.setAttribute(o,"url(#".concat(i,")")))}}var Ye;var He=((Ye={})[p.Shape.RECT]="path",Ye[p.Shape.CIRCLE]="circle",Ye[p.Shape.ELLIPSE]="ellipse",Ye[p.Shape.IMAGE]="image",Ye[p.Shape.GROUP]="g",Ye[p.Shape.LINE]="line",Ye[p.Shape.POLYLINE]="polyline",Ye[p.Shape.POLYGON]="polygon",Ye[p.Shape.TEXT]="text",Ye[p.Shape.PATH]="path",Ye[p.Shape.HTML]="foreignObject",Ye),Ue={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",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",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor"},ze={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},Qe={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit"},Ze=function(){function t(){this.renderQueue=[]}var n;return n=t,t.prototype.apply=function(t){var e=this,r=function(t){var n=t.target;e.createSVGDom(n,e.$camera)},o=function(t){var n=t.target;e.removeSVGDom(n)},i=function(t){var n,r,o=t.target,i=t.attrName;if("zIndex"===i){var a=o.parentNode,u=null===(r=null===(n=o.parentNode)||void 0===n?void 0:n.elementSVG)||void 0===r?void 0:r.$groupEl,c=((null==a?void 0:a.children)||[]).slice();u&&e.reorderChildren(u,c)}e.updateAttribute(o,i,o.parsedStyle[i])};t.hooks.init.tap(n.tag,(function(){e.$def=De("defs");var t=e.contextService.getContext();t.appendChild(e.$def),t.setAttribute("color-interpolation-filters","sRGB"),e.$camera=De("g"),e.$camera.id="".concat("g_svg","_camera"),e.applyTransform(e.$camera,e.camera.getOrthoMatrix()),t.appendChild(e.$camera),e.renderingContext.root.addEventListener(p.ElementEvent.MOUNTED,r),e.renderingContext.root.addEventListener(p.ElementEvent.UNMOUNTED,o),e.renderingContext.root.addEventListener(p.ElementEvent.ATTR_MODIFIED,i)})),t.hooks.destroy.tap(n.tag,(function(){e.renderingContext.root.removeEventListener(p.ElementEvent.MOUNTED,r),e.renderingContext.root.removeEventListener(p.ElementEvent.UNMOUNTED,o),e.renderingContext.root.removeEventListener(p.ElementEvent.ATTR_MODIFIED,i)})),t.hooks.render.tap(n.tag,(function(t){e.renderQueue.push(t)})),t.hooks.endFrame.tap(n.tag,(function(){e.renderingContext.renderReasons.has(p.RenderReason.CAMERA_CHANGED)&&e.applyTransform(e.$camera,e.camera.getOrthoMatrix()),e.renderQueue.forEach((function(t){var n,r,o=null===(n=t.elementSVG)||void 0===n?void 0:n.$el,i=null===(r=t.elementSVG)||void 0===r?void 0:r.$groupEl;if(o&&i){e.applyTransform(i,t.getLocalTransform());var a=((null==t?void 0:t.children)||[]).slice();e.reorderChildren(i,a||[]),t.renderable.dirty=!1}})),e.renderQueue=[]}))},t.prototype.reorderChildren=function(t,n){if(n.sort((function(t,n){return t.sortable.renderOrder-n.sortable.renderOrder})),n.length){var e=document.createDocumentFragment();n.forEach((function(t){var n=t.elementSVG.$groupEl;n&&e.appendChild(n)})),t.appendChild(e)}},t.prototype.applyTransform=function(t,n){var e=o.getTranslation(i.create(),n),r=o.getScaling(i.create(),n),u=o.getRotation(a.create(),n),c=h(e,2),s=c[0],l=c[1],f=h(r,2),d=f[0],v=f[1],m=h(Object(p.getEuler)(i.create(),u),3),b=m[0],y=(m[1],m[2]),g=Object(p.fromRotationTranslationScale)(b||y,s,l,d,v);t.setAttribute("transform","matrix(".concat(A(g[0]),",").concat(A(g[1]),",").concat(A(g[3]),",").concat(A(g[4]),",").concat(A(g[6]),",").concat(A(g[7]),")"))},t.prototype.applyAttributes=function(t){var n,e,r=null===(n=t.elementSVG)||void 0===n?void 0:n.$el,o=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;if(r&&o){var i=t.nodeName,a=t.attributes,u=t.parsedStyle;for(var c in r.setAttribute("fill","none"),i===p.Shape.IMAGE&&r.setAttribute("preserveAspectRatio","none"),a)this.updateAttribute(t,c,u[c],!0);var s=this.elementRendererFactory(i);s&&s.apply(r,u)}},t.prototype.updateAttribute=function(t,n,e,r){var o,i,a,u;void 0===r&&(r=!1);var c=null===(o=t.elementSVG)||void 0===o?void 0:o.$el,s=null===(i=t.elementSVG)||void 0===i?void 0:i.$groupEl,l=t.parsedStyle,f=t.computedStyle;if(Ue[n])if("fill"===n||"stroke"===n)Xe(this.$def,t,c,l[n],Ue[n]);else if("visibility"===n)null==s||s.setAttribute(Ue[n],"".concat(f.visibility.value));else if("clipPath"===n){var d=e;if(d){var h="clip-path-"+d.entity;if(!this.$def.querySelector("#".concat(h))){var v=De("clipPath");v.id=h,this.$def.appendChild(v),this.createSVGDom(d,v,!0),d.elementSVG.$groupEl=v}var m=null===(a=d.elementSVG)||void 0===a?void 0:a.$groupEl;m&&this.applyTransform(m,d.getLocalTransform()),this.applyAttributes(d),null==s||s.setAttribute("clip-path","url(#".concat(h,")"))}else null==s||s.removeAttribute("clip-path")}else if("shadowColor"===n||"shadowBlur"===n||"shadowOffsetX"===n||"shadowOffsetY"===n)!function(t,n,e,r){var o="filter-dropshadow-"+n.entity,i=t.querySelector("#".concat(o));if(!i){i=De("filter");var a=De("feDropShadow");a.setAttribute("dx","0"),a.setAttribute("dy","0"),i.appendChild(a),i.id=o,t.appendChild(i)}var u=i.children[0];if("shadowColor"===r){var c=n.parsedStyle[r];u.setAttribute("flood-color",c.toString())}else if("shadowBlur"===r){var s=n.parsedStyle[r];u.setAttribute("stdDeviation","".concat((s&&s.value||0)/2))}else if("shadowOffsetX"===r){var l=n.parsedStyle[r];u.setAttribute("dx","".concat((l&&l.value||0)/2))}else if("shadowOffsetY"===r){var f=n.parsedStyle[r];u.setAttribute("dy","".concat((f&&f.value||0)/2))}null==e||e.setAttribute("filter","url(#".concat(o,")"))}(this.$def,t,c,n);else if("filter"===n)Ve(this.$def,t,c,l[n]);else if("innerHTML"===n){var b=document.createElement("div");"string"==typeof e?b.innerHTML=e:b.appendChild(e),c.innerHTML="",c.appendChild(b)}else if(t.nodeName!==p.Shape.TEXT&&["width","height","r","rx","ry"].indexOf(n)>-1&&this.updateAnchorWithTransform(t),"anchor"!==n&&e){var y=e.toString();if(y!==Qe[n]){var g=(null===(u=ze[n])||void 0===u?void 0:u[y])||y;null==c||c.setAttribute(Ue[n],g)}}if(!r&&c){var M=this.elementRendererFactory(t.nodeName);M&&M.dependencies.indexOf(n)>-1&&M.apply(c,t.parsedStyle)}},t.prototype.createSVGDom=function(t,n,e){var r;void 0===e&&(e=!1),t.elementSVG=new M;var o=t.elementSVG,i=He[t.nodeName]||"g";if(i){var a=void 0,u=De(i);t.nodeName===p.Shape.HTML&&(t.parsedStyle.$el=u),u.id="".concat("g_svg","_").concat(t.nodeName,"_").concat(t.entity),"g"===i||e?a=u:(a=De("g")).appendChild(u),o.$el=u,o.$groupEl=a;var c=t.parentNode&&(null===(r=t.parentNode.elementSVG)||void 0===r?void 0:r.$groupEl)||n;c&&c.appendChild(a),this.applyAttributes(t)}},t.prototype.removeSVGDom=function(t){var n,e=null===(n=t.elementSVG)||void 0===n?void 0:n.$groupEl;e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.updateAnchorWithTransform=function(t){var n,e=t.getGeometryBounds(),r=e&&2*e.halfExtents[0]||0,o=e&&2*e.halfExtents[1]||0,i=(t.parsedStyle||{}).anchor,a=null===(n=t.elementSVG)||void 0===n?void 0:n.$el;null==a||a.setAttribute("transform","translate(-".concat(i[0].value*r,",-").concat(i[1].value*o,")")),t.nodeName!==p.Shape.CIRCLE&&t.nodeName!==p.Shape.ELLIPSE||(null==a||a.setAttribute("cx","".concat(r/2)),null==a||a.setAttribute("cy","".concat(o/2)))},t.tag="SVGRendererPlugin",l([Object(v.inject)(p.DefaultCamera),f("design:type",p.Camera)],t.prototype,"camera",void 0),l([Object(v.inject)(p.ContextService),f("design:type",Object)],t.prototype,"contextService",void 0),l([Object(v.inject)(p.RenderingContext),f("design:type",Object)],t.prototype,"renderingContext",void 0),l([Object(v.inject)(H),f("design:type",Function)],t.prototype,"elementRendererFactory",void 0),t=n=l([Object(v.singleton)({contrib:p.RenderingPluginContribution})],t)}(),Ke=Object(v.Module)((function(t){t(x),t(V),t(I),t(q),t(X),t(Y),t({token:H,useFactory:function(t){return function(n){return n===p.Shape.RECT?t.container.get(x):n===p.Shape.IMAGE?t.container.get(V):n===p.Shape.LINE?t.container.get(I):n===p.Shape.POLYLINE||n===p.Shape.POLYGON?t.container.get(q):n===p.Shape.TEXT?t.container.get(X):n===p.Shape.PATH?t.container.get(Y):null}}}),t(Ze)})),Je=function(){function t(){}return t.prototype.init=function(t){t.load(Ke,!0)},t.prototype.destroy=function(t){t.unload(Ke)},t}(),tr=function(){function t(){}var n;return n=t,t.prototype.apply=function(t){var e=this;t.hooks.pick.tap(n.tag,(function(t){var n,r,o=t.topmost,i=t.position,a=i.clientX,u=i.clientY;try{var c=[];try{for(var s=d(document.elementsFromPoint(a,u)),l=s.next();!l.done;l=s.next()){var f=l.value,h=f&&f.getAttribute("id");if(h&&h.startsWith("g_")){var p=h.lastIndexOf("_"),v=e.displayObjectPool.getByEntity(Number(h.substring(p+1)));if(v&&v.isInteractive()&&(c.push(v),o))return t.picked=c,t}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}t.picked=c}catch(n){t.picked=[]}return t}))},t.tag="SVGPickerPlugin",l([Object(v.inject)(p.SceneGraphService),f("design:type",Object)],t.prototype,"sceneGraphService",void 0),l([Object(v.inject)(p.DisplayObjectPool),f("design:type",p.DisplayObjectPool)],t.prototype,"displayObjectPool",void 0),t=n=l([Object(v.singleton)({contrib:p.RenderingPluginContribution})],t)}(),nr=Object(v.Module)((function(t){t(tr)})),er=function(){function t(){}return t.prototype.init=function(t){t.load(nr,!0)},t.prototype.destroy=function(t){t.unload(nr)},t}(),rr=function(){function t(){}return t.prototype.init=function(){var t=this.canvasConfig.container;if(this.$container=D(t)?document.getElementById(t):t,this.$container){this.$container.style.position||(this.$container.style.position="relative");var n=De("svg");n.setAttribute("width","".concat(this.canvasConfig.width)),n.setAttribute("height","".concat(this.canvasConfig.height)),this.$container.appendChild(n),this.$namespace=n}var e=window.devicePixelRatio||1;e=e>=1?Math.ceil(e):1,this.dpr=e},t.prototype.getDomElement=function(){return this.$namespace},t.prototype.getContext=function(){return this.$namespace},t.prototype.getDPR=function(){return this.dpr},t.prototype.getBoundingClientRect=function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()},t.prototype.destroy=function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)},t.prototype.resize=function(t,n){this.$namespace&&(this.$namespace.setAttribute("width","".concat(t)),this.$namespace.setAttribute("height","".concat(n)))},t.prototype.applyCursorStyle=function(t){this.$container&&(this.$container.style.cursor=t)},l([Object(v.inject)(p.CanvasConfig),f("design:type",Object)],t.prototype,"canvasConfig",void 0),t=l([Object(v.singleton)({token:p.ContextService})],t)}(),or=Object(v.Module)((function(t){t(rr)})),ir=function(){function t(){}return t.prototype.init=function(t){t.load(or,!0)},t.prototype.destroy=function(t){t.unload(or)},t}(),ar=function(t){function n(n){var e=t.call(this,n)||this;return e.registerPlugin(new ir),e.registerPlugin(new Je),e.registerPlugin(new g),e.registerPlugin(new er),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),n}(p.AbstractRenderer)}])}));
16
+ var s=function(t,n){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)};function l(t,n,e,r){var o,i=arguments.length,a=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a}function f(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}function d(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,u)}c((r=r.apply(t,n||[])).next())}))}function h(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}Object.create;function p(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}Object.create;var m=e(0),b=e(1),y=/mobile|tablet|ip(ad|hone|od)|android/i,g=function(){function t(){}return t.prototype.apply=function(t){var n=this,e=this.renderingContext.root.ownerDocument.defaultView,r=e.supportTouchEvent&&y.test(navigator.userAgent),o=function(n){t.hooks.pointerMove.call(n)},i=function(n){t.hooks.pointerUp.call(n)},a=function(n){t.hooks.pointerDown.call(n)},u=function(n){t.hooks.pointerOver.call(n)},c=function(n){t.hooks.pointerOut.call(n)},s=function(n){t.hooks.pointerCancel.call(n)},l=function(n){t.hooks.pointerWheel.call(n)},f=function(t){t.addEventListener("touchstart",a,!0),t.addEventListener("touchend",i,!0),t.addEventListener("touchmove",o,!0),t.addEventListener("touchcancel",s,!0)},p=function(t){globalThis.document.addEventListener("mousemove",o,!0),t.addEventListener("mousedown",a,!0),t.addEventListener("mouseout",c,!0),t.addEventListener("mouseover",u,!0),globalThis.addEventListener("mouseup",i,!0)},v=function(t){t.removeEventListener("touchstart",a,!0),t.removeEventListener("touchend",i,!0),t.removeEventListener("touchmove",o,!0)},m=function(t){globalThis.document.removeEventListener("mousemove",o,!0),t.removeEventListener("mousedown",a,!0),t.removeEventListener("mouseout",c,!0),t.removeEventListener("mouseover",u,!0),globalThis.removeEventListener("mouseup",i,!0)};t.hooks.init.tapPromise((function(){return d(n,void 0,void 0,(function(){var t;return h(this,(function(n){return t=this.contextService.getDomElement(),e.supportPointerEvent?function(t){globalThis.document.addEventListener("pointermove",o,!0),t.addEventListener("pointerdown",a,!0),t.addEventListener("pointerleave",c,!0),t.addEventListener("pointerover",u,!0),globalThis.addEventListener("pointerup",i,!0)}(t):r?f(t):e.supportTouchEvent?(f(t),p(t)):p(t),t.addEventListener("wheel",l,{passive:!0,capture:!0}),[2]}))}))})),t.hooks.destroy.tap((function(){var t=n.contextService.getDomElement();e.supportPointerEvent?function(t){globalThis.document.removeEventListener("pointermove",o,!0),t.removeEventListener("pointerdown",a,!0),t.removeEventListener("pointerleave",c,!0),t.removeEventListener("pointerover",u,!0),globalThis.removeEventListener("pointerup",i,!0)}(t):r?v(t):e.supportTouchEvent?(v(t),m(t)):m(t),t.removeEventListener("wheel",l,!0)}))},l([Object(b.inject)(m.ContextService),f("design:type",Object)],t.prototype,"contextService",void 0),l([Object(b.inject)(m.RenderingContext),f("design:type",Object)],t.prototype,"renderingContext",void 0),t=l([Object(b.singleton)({contrib:m.RenderingPluginContribution})],t)}(),M=Object(b.Module)((function(t){t(g)})),S=function(){function t(){}return t.prototype.init=function(t){t.load(M,!0)},t.prototype.destroy=function(t){t.unload(M)},t}(),w=function(){function t(){}return t.tag="c-svg-element",t}();function A(t){return t.toFixed(6).replace(".000000","")}function x(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&amp;":"<"===t?"&lt;":">"===t?"&gt;":'"'===t?"&quot;":"&apos;"}))}var E=function(){function t(){this.dependencies=["radius","width","height"]}return t.prototype.apply=function(t,n){var e=n.radius,r=n.width,o=n.height,i=e&&e.value||0,a=r.value,u=o.value,c="";if(i){var s=function(t){var n=0,e=0,r=0,o=0;return Array.isArray(t)?1===t.length?n=e=r=o=t[0]:2===t.length?(n=r=t[0],e=o=t[1]):3===t.length?(n=t[0],e=o=t[1],r=t[2]):(n=t[0],e=t[1],r=t[2],o=t[3]):n=e=r=o=t,{r1:n,r2:e,r3:r,r4:o}}(i);Array.isArray(i)?1===i.length?s.r1=s.r2=s.r3=s.r4=i[0]:2===i.length?(s.r1=s.r3=i[0],s.r2=s.r4=i[1]):3===i.length?(s.r1=i[0],s.r2=s.r4=i[1],s.r3=i[2]):(s.r1=i[0],s.r2=i[1],s.r3=i[2],s.r4=i[3]):s.r1=s.r2=s.r3=s.r4=i,c=[["M ".concat(s.r1,",0")],["l ".concat(a-s.r1-s.r2,",0")],["a ".concat(s.r2,",").concat(s.r2,",0,0,1,").concat(s.r2,",").concat(s.r2)],["l 0,".concat(u-s.r2-s.r3)],["a ".concat(s.r3,",").concat(s.r3,",0,0,1,").concat(-s.r3,",").concat(s.r3)],["l ".concat(s.r3+s.r4-a,",0")],["a ".concat(s.r4,",").concat(s.r4,",0,0,1,").concat(-s.r4,",").concat(-s.r4)],["l 0,".concat(s.r4+s.r1-u)],["a ".concat(s.r1,",").concat(s.r1,",0,0,1,").concat(s.r1,",").concat(-s.r1)],["z"]].join(" ")}else c="M 0,0 l ".concat(a,",0 l 0,").concat(u," l").concat(-a," 0 z");t.setAttribute("d",c)},t=l([Object(b.singleton)()],t)}(),O=function(){function t(){this.dependencies=["img","width","height"]}return t.prototype.apply=function(t,n){var e=n.img,r=void 0===e?"":e,o=n.width,i=n.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),Object(m.isString)(r))t.setAttribute("href",r);else if(r instanceof Image)o||t.setAttribute("width","".concat(r.width)),i||t.setAttribute("height","".concat(r.height)),t.setAttribute("href",r.src);else if(r instanceof HTMLElement&&Object(m.isString)(r.nodeName)&&"CANVAS"===r.nodeName.toUpperCase())t.setAttribute("href",r.toDataURL());else if(r instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width","".concat(r.width)),a.setAttribute("height","".concat(r.height));var u=a.getContext("2d");u&&(u.putImageData(r,0,0),o||t.setAttribute("width","".concat(r.width)),i||t.setAttribute("height","".concat(r.height)),t.setAttribute("href",a.toDataURL()))}},t=l([Object(b.singleton)()],t)}(),C=function(){function t(){this.dependencies=["x1","y1","x2","y2"]}return t.prototype.apply=function(t,n){var e=n.x1,r=n.y1,o=n.x2,i=n.y2,a=n.defX,u=void 0===a?0:a,c=n.defY,s=void 0===c?0:c,l=n.stroke;t.setAttribute("x1","".concat(e.value-u)),t.setAttribute("y1","".concat(r.value-s)),t.setAttribute("x2","".concat(o.value-u)),r.value!==i.value||!l||l instanceof m.CSSRGB?t.setAttribute("y2","".concat(i.value-s)):t.setAttribute("y2","".concat(i.value-s+1e-5))},t=l([Object(b.singleton)()],t)}(),T=function(){function t(){this.dependencies=["points"]}return t.prototype.apply=function(t,n){var e=n.points,r=n.defX,o=void 0===r?0:r,i=n.defY,a=void 0===i?0:i;e&&e.points&&e.points.length>=2&&t.setAttribute("points",e.points.map((function(t){return"".concat(t[0]-o,",").concat(t[1]-a)})).join(" "))},t=l([Object(b.singleton)()],t)}(),L=e(2),j={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},P={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},k=function(){function t(){this.dependencies=["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","leading","textBaseline","textAlign","textTransform","whiteSpace","dx","dy"]}return t.prototype.apply=function(t,n){var e=n.textBaseline,r=n.lineWidth,o=n.metrics,i=n.dx,a=n.dy,u=Object(L.a)();u&&"firefox"===u.name?t.setAttribute("dominant-baseline",P[e.value]||"alphabetic"):(t.setAttribute("dominant-baseline",P[e.value]),t.setAttribute("alignment-baseline",j[e.value])),t.setAttribute("paint-order","stroke");var c=o.lines,s=o.lineHeight,l=o.height,f=c.length;t.setAttribute("style","transform:translate(".concat(i.toString(),", ").concat(a.toString(),");")),1===f?(t.innerHTML=x(c[0]),t.setAttribute("dx","".concat(r.value/2))):t.innerHTML=c.map((function(t,n){var o=r.value/2,i=0;return 0===n?"middle"===e.value?i=s/2-l/2:"top"===e.value||"hanging"===e.value?i=0:"bottom"!==e.value&&"alphabetic"!==e.value&&"ideographic"!==e.value||(i=-s*(f-1)):i=s,'<tspan x="0" dx="'.concat(o,'" dy="').concat(i,'">').concat(x(t),"</tspan>")})).join("")},t=l([Object(b.singleton)()],t)}(),G=function(){function t(){this.dependencies=["path"]}return t.prototype.apply=function(t,n){var e=n.path,r=n.defX,o=void 0===r?0:r,i=n.defY,a=void 0===i?0:i;t.setAttribute("d",this.formatPath(e.absolutePath,o,a))},t.prototype.formatPath=function(t,n,e){var r=t.map((function(t){switch(t[0]){case"M":return"M ".concat(t[1]-n,",").concat(t[2]-e);case"L":return"L ".concat(t[1]-n,",").concat(t[2]-e);case"Q":return"Q ".concat(t[1]-n," ").concat(t[2]-e,",").concat(t[3]-n," ").concat(t[4]-e);case"C":return"C ".concat(t[1]-n," ").concat(t[2]-e,",").concat(t[3]-n," ").concat(t[4]-e,",").concat(t[5]-n," ").concat(t[6]-e);case"A":return"A ".concat(t[1]," ").concat(t[2]," ").concat(t[3]," ").concat(t[4]," ").concat(t[5]," ").concat(t[6]-n," ").concat(t[7]-e);case"Z":return"Z"}})).join(" ");return~r.indexOf("NaN")?"":r},t=l([Object(b.singleton)()],t)}(),$=b.Syringe.defineToken("ElementRendererFactory"),R=(b.Syringe.defineToken("ElementRenderer"),1e-6),N="undefined"!=typeof Float32Array?Float32Array:Array,W=Math.random;Math.PI;function D(){var t=new N(16);return N!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function I(t){var n=new N(16);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n}function V(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function q(t,n,e,r,o,i,a,u,c,s,l,f,d,h,p,v){var m=new N(16);return m[0]=t,m[1]=n,m[2]=e,m[3]=r,m[4]=o,m[5]=i,m[6]=a,m[7]=u,m[8]=c,m[9]=s,m[10]=l,m[11]=f,m[12]=d,m[13]=h,m[14]=p,m[15]=v,m}function _(t,n,e,r,o,i,a,u,c,s,l,f,d,h,p,v,m){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=u,t[7]=c,t[8]=s,t[9]=l,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=m,t}function B(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function F(t,n){if(t===n){var e=n[1],r=n[2],o=n[3],i=n[6],a=n[7],u=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=i,t[11]=n[14],t[12]=o,t[13]=a,t[14]=u}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function X(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],c=n[6],s=n[7],l=n[8],f=n[9],d=n[10],h=n[11],p=n[12],v=n[13],m=n[14],b=n[15],y=e*u-r*a,g=e*c-o*a,M=e*s-i*a,S=r*c-o*u,w=r*s-i*u,A=o*s-i*c,x=l*v-f*p,E=l*m-d*p,O=l*b-h*p,C=f*m-d*v,T=f*b-h*v,L=d*b-h*m,j=y*L-g*T+M*C+S*O-w*E+A*x;return j?(j=1/j,t[0]=(u*L-c*T+s*C)*j,t[1]=(o*T-r*L-i*C)*j,t[2]=(v*A-m*w+b*S)*j,t[3]=(d*w-f*A-h*S)*j,t[4]=(c*O-a*L-s*E)*j,t[5]=(e*L-o*O+i*E)*j,t[6]=(m*M-p*A-b*g)*j,t[7]=(l*A-d*M+h*g)*j,t[8]=(a*T-u*O+s*x)*j,t[9]=(r*O-e*T-i*x)*j,t[10]=(p*w-v*M+b*y)*j,t[11]=(f*M-l*w-h*y)*j,t[12]=(u*E-a*C-c*x)*j,t[13]=(e*C-r*E+o*x)*j,t[14]=(v*g-p*S-m*y)*j,t[15]=(l*S-f*g+d*y)*j,t):null}function Y(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],c=n[6],s=n[7],l=n[8],f=n[9],d=n[10],h=n[11],p=n[12],v=n[13],m=n[14],b=n[15];return t[0]=u*(d*b-h*m)-f*(c*b-s*m)+v*(c*h-s*d),t[1]=-(r*(d*b-h*m)-f*(o*b-i*m)+v*(o*h-i*d)),t[2]=r*(c*b-s*m)-u*(o*b-i*m)+v*(o*s-i*c),t[3]=-(r*(c*h-s*d)-u*(o*h-i*d)+f*(o*s-i*c)),t[4]=-(a*(d*b-h*m)-l*(c*b-s*m)+p*(c*h-s*d)),t[5]=e*(d*b-h*m)-l*(o*b-i*m)+p*(o*h-i*d),t[6]=-(e*(c*b-s*m)-a*(o*b-i*m)+p*(o*s-i*c)),t[7]=e*(c*h-s*d)-a*(o*h-i*d)+l*(o*s-i*c),t[8]=a*(f*b-h*v)-l*(u*b-s*v)+p*(u*h-s*f),t[9]=-(e*(f*b-h*v)-l*(r*b-i*v)+p*(r*h-i*f)),t[10]=e*(u*b-s*v)-a*(r*b-i*v)+p*(r*s-i*u),t[11]=-(e*(u*h-s*f)-a*(r*h-i*f)+l*(r*s-i*u)),t[12]=-(a*(f*m-d*v)-l*(u*m-c*v)+p*(u*d-c*f)),t[13]=e*(f*m-d*v)-l*(r*m-o*v)+p*(r*d-o*f),t[14]=-(e*(u*m-c*v)-a*(r*m-o*v)+p*(r*c-o*u)),t[15]=e*(u*d-c*f)-a*(r*d-o*f)+l*(r*c-o*u),t}function H(t){var n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],u=t[6],c=t[7],s=t[8],l=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],m=t[15];return(n*a-e*i)*(f*m-d*v)-(n*u-r*i)*(l*m-d*p)+(n*c-o*i)*(l*v-f*p)+(e*u-r*a)*(s*m-d*h)-(e*c-o*a)*(s*v-f*h)+(r*c-o*u)*(s*p-l*h)}function z(t,n,e){var r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],c=n[5],s=n[6],l=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],m=n[13],b=n[14],y=n[15],g=e[0],M=e[1],S=e[2],w=e[3];return t[0]=g*r+M*u+S*f+w*v,t[1]=g*o+M*c+S*d+w*m,t[2]=g*i+M*s+S*h+w*b,t[3]=g*a+M*l+S*p+w*y,g=e[4],M=e[5],S=e[6],w=e[7],t[4]=g*r+M*u+S*f+w*v,t[5]=g*o+M*c+S*d+w*m,t[6]=g*i+M*s+S*h+w*b,t[7]=g*a+M*l+S*p+w*y,g=e[8],M=e[9],S=e[10],w=e[11],t[8]=g*r+M*u+S*f+w*v,t[9]=g*o+M*c+S*d+w*m,t[10]=g*i+M*s+S*h+w*b,t[11]=g*a+M*l+S*p+w*y,g=e[12],M=e[13],S=e[14],w=e[15],t[12]=g*r+M*u+S*f+w*v,t[13]=g*o+M*c+S*d+w*m,t[14]=g*i+M*s+S*h+w*b,t[15]=g*a+M*l+S*p+w*y,t}function U(t,n,e){var r,o,i,a,u,c,s,l,f,d,h,p,v=e[0],m=e[1],b=e[2];return n===t?(t[12]=n[0]*v+n[4]*m+n[8]*b+n[12],t[13]=n[1]*v+n[5]*m+n[9]*b+n[13],t[14]=n[2]*v+n[6]*m+n[10]*b+n[14],t[15]=n[3]*v+n[7]*m+n[11]*b+n[15]):(r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],c=n[5],s=n[6],l=n[7],f=n[8],d=n[9],h=n[10],p=n[11],t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=u,t[5]=c,t[6]=s,t[7]=l,t[8]=f,t[9]=d,t[10]=h,t[11]=p,t[12]=r*v+u*m+f*b+n[12],t[13]=o*v+c*m+d*b+n[13],t[14]=i*v+s*m+h*b+n[14],t[15]=a*v+l*m+p*b+n[15]),t}function Q(t,n,e){var r=e[0],o=e[1],i=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*i,t[9]=n[9]*i,t[10]=n[10]*i,t[11]=n[11]*i,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function Z(t,n,e,r){var o,i,a,u,c,s,l,f,d,h,p,v,m,b,y,g,M,S,w,A,x,E,O,C,T=r[0],L=r[1],j=r[2],P=Math.hypot(T,L,j);return P<R?null:(T*=P=1/P,L*=P,j*=P,o=Math.sin(e),a=1-(i=Math.cos(e)),u=n[0],c=n[1],s=n[2],l=n[3],f=n[4],d=n[5],h=n[6],p=n[7],v=n[8],m=n[9],b=n[10],y=n[11],g=T*T*a+i,M=L*T*a+j*o,S=j*T*a-L*o,w=T*L*a-j*o,A=L*L*a+i,x=j*L*a+T*o,E=T*j*a+L*o,O=L*j*a-T*o,C=j*j*a+i,t[0]=u*g+f*M+v*S,t[1]=c*g+d*M+m*S,t[2]=s*g+h*M+b*S,t[3]=l*g+p*M+y*S,t[4]=u*w+f*A+v*x,t[5]=c*w+d*A+m*x,t[6]=s*w+h*A+b*x,t[7]=l*w+p*A+y*x,t[8]=u*E+f*O+v*C,t[9]=c*E+d*O+m*C,t[10]=s*E+h*O+b*C,t[11]=l*E+p*O+y*C,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t)}function K(t,n,e){var r=Math.sin(e),o=Math.cos(e),i=n[4],a=n[5],u=n[6],c=n[7],s=n[8],l=n[9],f=n[10],d=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=i*o+s*r,t[5]=a*o+l*r,t[6]=u*o+f*r,t[7]=c*o+d*r,t[8]=s*o-i*r,t[9]=l*o-a*r,t[10]=f*o-u*r,t[11]=d*o-c*r,t}function J(t,n,e){var r=Math.sin(e),o=Math.cos(e),i=n[0],a=n[1],u=n[2],c=n[3],s=n[8],l=n[9],f=n[10],d=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o-s*r,t[1]=a*o-l*r,t[2]=u*o-f*r,t[3]=c*o-d*r,t[8]=i*r+s*o,t[9]=a*r+l*o,t[10]=u*r+f*o,t[11]=c*r+d*o,t}function tt(t,n,e){var r=Math.sin(e),o=Math.cos(e),i=n[0],a=n[1],u=n[2],c=n[3],s=n[4],l=n[5],f=n[6],d=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o+s*r,t[1]=a*o+l*r,t[2]=u*o+f*r,t[3]=c*o+d*r,t[4]=s*o-i*r,t[5]=l*o-a*r,t[6]=f*o-u*r,t[7]=d*o-c*r,t}function nt(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function et(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function rt(t,n,e){var r,o,i,a=e[0],u=e[1],c=e[2],s=Math.hypot(a,u,c);return s<R?null:(a*=s=1/s,u*=s,c*=s,r=Math.sin(n),i=1-(o=Math.cos(n)),t[0]=a*a*i+o,t[1]=u*a*i+c*r,t[2]=c*a*i-u*r,t[3]=0,t[4]=a*u*i-c*r,t[5]=u*u*i+o,t[6]=c*u*i+a*r,t[7]=0,t[8]=a*c*i+u*r,t[9]=u*c*i-a*r,t[10]=c*c*i+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function ot(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function it(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function at(t,n){var e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ut(t,n,e){var r=n[0],o=n[1],i=n[2],a=n[3],u=r+r,c=o+o,s=i+i,l=r*u,f=r*c,d=r*s,h=o*c,p=o*s,v=i*s,m=a*u,b=a*c,y=a*s;return t[0]=1-(h+v),t[1]=f+y,t[2]=d-b,t[3]=0,t[4]=f-y,t[5]=1-(l+v),t[6]=p+m,t[7]=0,t[8]=d+b,t[9]=p-m,t[10]=1-(l+h),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function ct(t,n){var e=new N(3),r=-n[0],o=-n[1],i=-n[2],a=n[3],u=n[4],c=n[5],s=n[6],l=n[7],f=r*r+o*o+i*i+a*a;return f>0?(e[0]=2*(u*a+l*r+c*i-s*o)/f,e[1]=2*(c*a+l*o+s*r-u*i)/f,e[2]=2*(s*a+l*i+u*o-c*r)/f):(e[0]=2*(u*a+l*r+c*i-s*o),e[1]=2*(c*a+l*o+s*r-u*i),e[2]=2*(s*a+l*i+u*o-c*r)),ut(t,n,e),t}function st(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function lt(t,n){var e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],u=n[6],c=n[8],s=n[9],l=n[10];return t[0]=Math.hypot(e,r,o),t[1]=Math.hypot(i,a,u),t[2]=Math.hypot(c,s,l),t}function ft(t,n){var e=new N(3);lt(e,n);var r=1/e[0],o=1/e[1],i=1/e[2],a=n[0]*r,u=n[1]*o,c=n[2]*i,s=n[4]*r,l=n[5]*o,f=n[6]*i,d=n[8]*r,h=n[9]*o,p=n[10]*i,v=a+l+p,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(f-h)/m,t[1]=(d-c)/m,t[2]=(u-s)/m):a>l&&a>p?(m=2*Math.sqrt(1+a-l-p),t[3]=(f-h)/m,t[0]=.25*m,t[1]=(u+s)/m,t[2]=(d+c)/m):l>p?(m=2*Math.sqrt(1+l-a-p),t[3]=(d-c)/m,t[0]=(u+s)/m,t[1]=.25*m,t[2]=(f+h)/m):(m=2*Math.sqrt(1+p-a-l),t[3]=(u-s)/m,t[0]=(d+c)/m,t[1]=(f+h)/m,t[2]=.25*m),t}function dt(t,n,e,r){var o=n[0],i=n[1],a=n[2],u=n[3],c=o+o,s=i+i,l=a+a,f=o*c,d=o*s,h=o*l,p=i*s,v=i*l,m=a*l,b=u*c,y=u*s,g=u*l,M=r[0],S=r[1],w=r[2];return t[0]=(1-(p+m))*M,t[1]=(d+g)*M,t[2]=(h-y)*M,t[3]=0,t[4]=(d-g)*S,t[5]=(1-(f+m))*S,t[6]=(v+b)*S,t[7]=0,t[8]=(h+y)*w,t[9]=(v-b)*w,t[10]=(1-(f+p))*w,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function ht(t,n,e,r,o){var i=n[0],a=n[1],u=n[2],c=n[3],s=i+i,l=a+a,f=u+u,d=i*s,h=i*l,p=i*f,v=a*l,m=a*f,b=u*f,y=c*s,g=c*l,M=c*f,S=r[0],w=r[1],A=r[2],x=o[0],E=o[1],O=o[2],C=(1-(v+b))*S,T=(h+M)*S,L=(p-g)*S,j=(h-M)*w,P=(1-(d+b))*w,k=(m+y)*w,G=(p+g)*A,$=(m-y)*A,R=(1-(d+v))*A;return t[0]=C,t[1]=T,t[2]=L,t[3]=0,t[4]=j,t[5]=P,t[6]=k,t[7]=0,t[8]=G,t[9]=$,t[10]=R,t[11]=0,t[12]=e[0]+x-(C*x+j*E+G*O),t[13]=e[1]+E-(T*x+P*E+$*O),t[14]=e[2]+O-(L*x+k*E+R*O),t[15]=1,t}function pt(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,u=r+r,c=o+o,s=e*a,l=r*a,f=r*u,d=o*a,h=o*u,p=o*c,v=i*a,m=i*u,b=i*c;return t[0]=1-f-p,t[1]=l+b,t[2]=d-m,t[3]=0,t[4]=l-b,t[5]=1-s-p,t[6]=h+v,t[7]=0,t[8]=d+m,t[9]=h-v,t[10]=1-s-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function vt(t,n,e,r,o,i,a){var u=1/(e-n),c=1/(o-r),s=1/(i-a);return t[0]=2*i*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*c,t[6]=0,t[7]=0,t[8]=(e+n)*u,t[9]=(o+r)*c,t[10]=(a+i)*s,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*i*2*s,t[15]=0,t}function mt(t,n,e,r,o){var i,a=1/Math.tan(n/2);return t[0]=a/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(i=1/(r-o),t[10]=(o+r)*i,t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t}Math.hypot||(Math.hypot=function(){for(var t=0,n=arguments.length;n--;)t+=arguments[n]*arguments[n];return Math.sqrt(t)});var bt=mt;function yt(t,n,e,r,o){var i,a=1/Math.tan(n/2);return t[0]=a/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(i=1/(r-o),t[10]=o*i,t[14]=o*r*i):(t[10]=-1,t[14]=-r),t}function gt(t,n,e,r){var o=Math.tan(n.upDegrees*Math.PI/180),i=Math.tan(n.downDegrees*Math.PI/180),a=Math.tan(n.leftDegrees*Math.PI/180),u=Math.tan(n.rightDegrees*Math.PI/180),c=2/(a+u),s=2/(o+i);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=-(a-u)*c*.5,t[9]=(o-i)*s*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t}function Mt(t,n,e,r,o,i,a){var u=1/(n-e),c=1/(r-o),s=1/(i-a);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*s,t[11]=0,t[12]=(n+e)*u,t[13]=(o+r)*c,t[14]=(a+i)*s,t[15]=1,t}var St=Mt;function wt(t,n,e,r,o,i,a){var u=1/(n-e),c=1/(r-o),s=1/(i-a);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=s,t[11]=0,t[12]=(n+e)*u,t[13]=(o+r)*c,t[14]=i*s,t[15]=1,t}function At(t,n,e,r){var o,i,a,u,c,s,l,f,d,h,p=n[0],v=n[1],m=n[2],b=r[0],y=r[1],g=r[2],M=e[0],S=e[1],w=e[2];return Math.abs(p-M)<R&&Math.abs(v-S)<R&&Math.abs(m-w)<R?B(t):(l=p-M,f=v-S,d=m-w,o=y*(d*=h=1/Math.hypot(l,f,d))-g*(f*=h),i=g*(l*=h)-b*d,a=b*f-y*l,(h=Math.hypot(o,i,a))?(o*=h=1/h,i*=h,a*=h):(o=0,i=0,a=0),u=f*a-d*i,c=d*o-l*a,s=l*i-f*o,(h=Math.hypot(u,c,s))?(u*=h=1/h,c*=h,s*=h):(u=0,c=0,s=0),t[0]=o,t[1]=u,t[2]=l,t[3]=0,t[4]=i,t[5]=c,t[6]=f,t[7]=0,t[8]=a,t[9]=s,t[10]=d,t[11]=0,t[12]=-(o*p+i*v+a*m),t[13]=-(u*p+c*v+s*m),t[14]=-(l*p+f*v+d*m),t[15]=1,t)}function xt(t,n,e,r){var o=n[0],i=n[1],a=n[2],u=r[0],c=r[1],s=r[2],l=o-e[0],f=i-e[1],d=a-e[2],h=l*l+f*f+d*d;h>0&&(l*=h=1/Math.sqrt(h),f*=h,d*=h);var p=c*d-s*f,v=s*l-u*d,m=u*f-c*l;return(h=p*p+v*v+m*m)>0&&(p*=h=1/Math.sqrt(h),v*=h,m*=h),t[0]=p,t[1]=v,t[2]=m,t[3]=0,t[4]=f*m-d*v,t[5]=d*p-l*m,t[6]=l*v-f*p,t[7]=0,t[8]=l,t[9]=f,t[10]=d,t[11]=0,t[12]=o,t[13]=i,t[14]=a,t[15]=1,t}function Et(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function Ot(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function Ct(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t}function Tt(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function Lt(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t}function jt(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t}function Pt(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function kt(t,n){var e=t[0],r=t[1],o=t[2],i=t[3],a=t[4],u=t[5],c=t[6],s=t[7],l=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],m=t[14],b=t[15],y=n[0],g=n[1],M=n[2],S=n[3],w=n[4],A=n[5],x=n[6],E=n[7],O=n[8],C=n[9],T=n[10],L=n[11],j=n[12],P=n[13],k=n[14],G=n[15];return Math.abs(e-y)<=R*Math.max(1,Math.abs(e),Math.abs(y))&&Math.abs(r-g)<=R*Math.max(1,Math.abs(r),Math.abs(g))&&Math.abs(o-M)<=R*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(i-S)<=R*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(a-w)<=R*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(u-A)<=R*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(c-x)<=R*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(s-E)<=R*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(l-O)<=R*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-C)<=R*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(d-T)<=R*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-L)<=R*Math.max(1,Math.abs(h),Math.abs(L))&&Math.abs(p-j)<=R*Math.max(1,Math.abs(p),Math.abs(j))&&Math.abs(v-P)<=R*Math.max(1,Math.abs(v),Math.abs(P))&&Math.abs(m-k)<=R*Math.max(1,Math.abs(m),Math.abs(k))&&Math.abs(b-G)<=R*Math.max(1,Math.abs(b),Math.abs(G))}var Gt=z,$t=Tt;function Rt(){var t=new N(3);return N!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function Nt(t){var n=new N(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function Wt(t){var n=t[0],e=t[1],r=t[2];return Math.hypot(n,e,r)}function Dt(t,n,e){var r=new N(3);return r[0]=t,r[1]=n,r[2]=e,r}function It(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function Vt(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function qt(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function _t(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function Bt(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function Ft(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function Xt(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t}function Yt(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t}function Ht(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function zt(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function Ut(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t}function Qt(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function Zt(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function Kt(t,n){var e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.hypot(e,r,o)}function Jt(t,n){var e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function tn(t){var n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function nn(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function en(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function rn(t,n){var e=n[0],r=n[1],o=n[2],i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i)),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t}function on(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function an(t,n,e){var r=n[0],o=n[1],i=n[2],a=e[0],u=e[1],c=e[2];return t[0]=o*c-i*u,t[1]=i*a-r*c,t[2]=r*u-o*a,t}function un(t,n,e,r){var o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function cn(t,n,e,r,o,i){var a=i*i,u=a*(2*i-3)+1,c=a*(i-2)+i,s=a*(i-1),l=a*(3-2*i);return t[0]=n[0]*u+e[0]*c+r[0]*s+o[0]*l,t[1]=n[1]*u+e[1]*c+r[1]*s+o[1]*l,t[2]=n[2]*u+e[2]*c+r[2]*s+o[2]*l,t}function sn(t,n,e,r,o,i){var a=1-i,u=a*a,c=i*i,s=u*a,l=3*i*u,f=3*c*a,d=c*i;return t[0]=n[0]*s+e[0]*l+r[0]*f+o[0]*d,t[1]=n[1]*s+e[1]*l+r[1]*f+o[1]*d,t[2]=n[2]*s+e[2]*l+r[2]*f+o[2]*d,t}function ln(t,n){n=n||1;var e=2*W()*Math.PI,r=2*W()-1,o=Math.sqrt(1-r*r)*n;return t[0]=Math.cos(e)*o,t[1]=Math.sin(e)*o,t[2]=r*n,t}function fn(t,n,e){var r=n[0],o=n[1],i=n[2],a=e[3]*r+e[7]*o+e[11]*i+e[15];return a=a||1,t[0]=(e[0]*r+e[4]*o+e[8]*i+e[12])/a,t[1]=(e[1]*r+e[5]*o+e[9]*i+e[13])/a,t[2]=(e[2]*r+e[6]*o+e[10]*i+e[14])/a,t}function dn(t,n,e){var r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function hn(t,n,e){var r=e[0],o=e[1],i=e[2],a=e[3],u=n[0],c=n[1],s=n[2],l=o*s-i*c,f=i*u-r*s,d=r*c-o*u,h=o*d-i*f,p=i*l-r*d,v=r*f-o*l,m=2*a;return l*=m,f*=m,d*=m,h*=2,p*=2,v*=2,t[0]=u+l+h,t[1]=c+f+p,t[2]=s+d+v,t}function pn(t,n,e,r){var o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t}function vn(t,n,e,r){var o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t}function mn(t,n,e,r){var o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t}function bn(t,n){var e=t[0],r=t[1],o=t[2],i=n[0],a=n[1],u=n[2],c=Math.sqrt(e*e+r*r+o*o)*Math.sqrt(i*i+a*a+u*u),s=c&&on(t,n)/c;return Math.acos(Math.min(Math.max(s,-1),1))}function yn(t){return t[0]=0,t[1]=0,t[2]=0,t}function gn(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function Mn(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function Sn(t,n){var e=t[0],r=t[1],o=t[2],i=n[0],a=n[1],u=n[2];return Math.abs(e-i)<=R*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-a)<=R*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-u)<=R*Math.max(1,Math.abs(o),Math.abs(u))}var wn,An=_t,xn=Bt,En=Ft,On=Kt,Cn=Jt,Tn=Wt,Ln=tn,jn=(wn=Rt(),function(t,n,e,r,o,i){var a,u;for(n||(n=3),e||(e=0),u=r?Math.min(r*n+e,t.length):t.length,a=e;a<u;a+=n)wn[0]=t[a],wn[1]=t[a+1],wn[2]=t[a+2],o(wn,wn,i),t[a]=wn[0],t[a+1]=wn[1],t[a+2]=wn[2];return t});function Pn(t){var n=t[0],e=t[1],r=t[2],o=t[3];return Math.hypot(n,e,r,o)}function kn(t){var n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}!function(){var t,n=(t=new N(4),N!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t)}();function Gn(){var t=new N(4);return N!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function $n(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function Rn(t,n,e){e*=.5;var r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function Nn(t,n){var e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>R?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function Wn(t,n){var e=he(t,n);return Math.acos(2*e*e-1)}function Dn(t,n,e){var r=n[0],o=n[1],i=n[2],a=n[3],u=e[0],c=e[1],s=e[2],l=e[3];return t[0]=r*l+a*u+o*s-i*c,t[1]=o*l+a*c+i*u-r*s,t[2]=i*l+a*s+r*c-o*u,t[3]=a*l-r*u-o*c-i*s,t}function In(t,n,e){e*=.5;var r=n[0],o=n[1],i=n[2],a=n[3],u=Math.sin(e),c=Math.cos(e);return t[0]=r*c+a*u,t[1]=o*c+i*u,t[2]=i*c-o*u,t[3]=a*c-r*u,t}function Vn(t,n,e){e*=.5;var r=n[0],o=n[1],i=n[2],a=n[3],u=Math.sin(e),c=Math.cos(e);return t[0]=r*c-i*u,t[1]=o*c+a*u,t[2]=i*c+r*u,t[3]=a*c-o*u,t}function qn(t,n,e){e*=.5;var r=n[0],o=n[1],i=n[2],a=n[3],u=Math.sin(e),c=Math.cos(e);return t[0]=r*c+o*u,t[1]=o*c-r*u,t[2]=i*c+a*u,t[3]=a*c-i*u,t}function _n(t,n){var e=n[0],r=n[1],o=n[2];return t[0]=e,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-o*o)),t}function Bn(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=Math.sqrt(e*e+r*r+o*o),u=Math.exp(i),c=a>0?u*Math.sin(a)/a:0;return t[0]=e*c,t[1]=r*c,t[2]=o*c,t[3]=u*Math.cos(a),t}function Fn(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=Math.sqrt(e*e+r*r+o*o),u=a>0?Math.atan2(a,i)/a:0;return t[0]=e*u,t[1]=r*u,t[2]=o*u,t[3]=.5*Math.log(e*e+r*r+o*o+i*i),t}function Xn(t,n,e){return Fn(t,n),de(t,t,e),Bn(t,t),t}function Yn(t,n,e,r){var o,i,a,u,c,s=n[0],l=n[1],f=n[2],d=n[3],h=e[0],p=e[1],v=e[2],m=e[3];return(i=s*h+l*p+f*v+d*m)<0&&(i=-i,h=-h,p=-p,v=-v,m=-m),1-i>R?(o=Math.acos(i),a=Math.sin(o),u=Math.sin((1-r)*o)/a,c=Math.sin(r*o)/a):(u=1-r,c=r),t[0]=u*s+c*h,t[1]=u*l+c*p,t[2]=u*f+c*v,t[3]=u*d+c*m,t}function Hn(t){var n=W(),e=W(),r=W(),o=Math.sqrt(1-n),i=Math.sqrt(n);return t[0]=o*Math.sin(2*Math.PI*e),t[1]=o*Math.cos(2*Math.PI*e),t[2]=i*Math.sin(2*Math.PI*r),t[3]=i*Math.cos(2*Math.PI*r),t}function zn(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=e*e+r*r+o*o+i*i,u=a?1/a:0;return t[0]=-e*u,t[1]=-r*u,t[2]=-o*u,t[3]=i*u,t}function Un(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function Qn(t,n){var e,r=n[0]+n[4]+n[8];if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{var o=0;n[4]>n[0]&&(o=1),n[8]>n[3*o+o]&&(o=2);var i=(o+1)%3,a=(o+2)%3;e=Math.sqrt(n[3*o+o]-n[3*i+i]-n[3*a+a]+1),t[o]=.5*e,e=.5/e,t[3]=(n[3*i+a]-n[3*a+i])*e,t[i]=(n[3*i+o]+n[3*o+i])*e,t[a]=(n[3*a+o]+n[3*o+a])*e}return t}function Zn(t,n,e,r){var o=.5*Math.PI/180;n*=o,e*=o,r*=o;var i=Math.sin(n),a=Math.cos(n),u=Math.sin(e),c=Math.cos(e),s=Math.sin(r),l=Math.cos(r);return t[0]=i*c*l-a*u*s,t[1]=a*u*l+i*c*s,t[2]=a*c*s-i*u*l,t[3]=a*c*l+i*u*s,t}function Kn(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var Jn,te,ne,ee,re,oe,ie,ae=function(t){var n=new N(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},ue=function(t,n,e,r){var o=new N(4);return o[0]=t,o[1]=n,o[2]=e,o[3]=r,o},ce=function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},se=function(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t},le=function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t},fe=Dn,de=function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t},he=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]},pe=function(t,n,e,r){var o=n[0],i=n[1],a=n[2],u=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=u+r*(e[3]-u),t},ve=Pn,me=ve,be=kn,ye=be,ge=function(t,n){var e=n[0],r=n[1],o=n[2],i=n[3],a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a,t},Me=function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},Se=function(t,n){var e=t[0],r=t[1],o=t[2],i=t[3],a=n[0],u=n[1],c=n[2],s=n[3];return Math.abs(e-a)<=R*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-u)<=R*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(o-c)<=R*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(i-s)<=R*Math.max(1,Math.abs(i),Math.abs(s))},we=(Jn=Rt(),te=Dt(1,0,0),ne=Dt(0,1,0),function(t,n,e){var r=on(n,e);return r<-.999999?(an(Jn,te,n),Tn(Jn)<1e-6&&an(Jn,ne,n),rn(Jn,Jn),Rn(t,Jn,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(an(Jn,n,e),t[0]=Jn[0],t[1]=Jn[1],t[2]=Jn[2],t[3]=1+r,ge(t,t))}),Ae=(ee=Gn(),re=Gn(),function(t,n,e,r,o,i){return Yn(ee,n,o,i),Yn(re,e,r,i),Yn(t,ee,re,2*i*(1-i)),t}),xe=(oe=new N(9),N!=Float32Array&&(oe[1]=0,oe[2]=0,oe[3]=0,oe[5]=0,oe[6]=0,oe[7]=0),oe[0]=1,oe[4]=1,oe[8]=1,ie=oe,function(t,n,e,r){return ie[0]=e[0],ie[3]=e[1],ie[6]=e[2],ie[1]=r[0],ie[4]=r[1],ie[7]=r[2],ie[2]=-n[0],ie[5]=-n[1],ie[8]=-n[2],ge(t,Qn(t,ie))});function Ee(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Oe(t,n,e,r){var o="g-filter-"+n.entity,i=t.querySelectorAll("[name=".concat(o,"]"));if(i.length&&i.forEach((function(n){t.removeChild(n)})),0===r.length)null==e||e.removeAttribute("filter");else{var a=r.map((function(n,e){var r=n.name,i=n.params,a=Ee("filter");return"blur"===r?function(t,n){var e=Ee("feGaussianBlur");e.setAttribute("in","SourceGraphic"),e.setAttribute("stdDeviation","".concat(n[0].value)),t.appendChild(e)}(a,i):"brightness"===r?function(t,n){var e=Ce(n[0]);Te(t,{type:"linear",slope:e,intercept:0})}(a,i):"drop-shadow"===r?function(t,n){var e=n[0].value,r=n[1].value,o=n[2].value,i=n[3].formatted,a=Ee("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("stdDeviation","".concat(o)),t.appendChild(a);var u=Ee("feOffset");u.setAttribute("dx","".concat(e)),u.setAttribute("dy","".concat(r)),u.setAttribute("result","offsetblur"),t.appendChild(u);var c=Ee("feFlood");c.setAttribute("flood-color",i),t.appendChild(c);var s=Ee("feComposite");s.setAttribute("in2","offsetblur"),s.setAttribute("operator","in"),t.appendChild(s);var l=Ee("feMerge");t.appendChild(l);var f=Ee("feMergeNode"),d=Ee("feMergeNode");d.setAttribute("in","SourceGraphic"),l.appendChild(f),l.appendChild(d)}(a,i):"contrast"===r?function(t,n){var e=Ce(n[0]);Te(t,{type:"linear",slope:e,intercept:-.5*e+.5})}(a,i):"grayscale"===r?function(t,n){var e=Ce(n[0]);Le(t,[.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),0,0,.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),0,0,.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e),0,0,0,0,0,1,0])}(a,i):"sepia"===r?function(t,n){var e=Ce(n[0]);Le(t,[.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),0,0,.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),0,0,.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e),0,0,0,0,0,1,0])}(a,i):"saturate"===r?function(t,n){var e=Ce(n[0]),r=Ee("feColorMatrix");r.setAttribute("type","saturate"),r.setAttribute("values","".concat(e)),t.appendChild(r)}(a,i):"hue-rotate"===r?function(t,n){var e=Ee("feColorMatrix");e.setAttribute("type","hueRotate"),e.setAttribute("values","".concat(n[0].to(m.UnitType.kDegrees).value)),t.appendChild(e)}(a,i):"invert"===r&&function(t,n){var e=Ce(n[0]);Te(t,{type:"table",tableValues:"".concat(e," ").concat(1-e)})}(a,i),a.id="".concat(o,"-").concat(e),a.setAttribute("name",o),t.appendChild(a),a.id}));null==e||e.setAttribute("filter",a.map((function(t){return"url(#".concat(t,")")})).join(" "))}}function Ce(t){return t.unit===m.UnitType.kPercentage?t.value/100:t.value}function Te(t,n){var e=n.type,r=n.slope,o=n.intercept,i=n.tableValues,a=Ee("feComponentTransfer");[Ee("feFuncR"),Ee("feFuncG"),Ee("feFuncB")].forEach((function(t){t.setAttribute("type",e),"table"===e?t.setAttribute("tableValues","".concat(i)):(t.setAttribute("slope","".concat(r)),t.setAttribute("intercept","".concat(o))),a.appendChild(t)})),t.appendChild(a)}function Le(t,n){var e=Ee("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values",n.join(" ")),t.appendChild(e)}var je={},Pe=0;function ke(t,n,e,r,o){if(r){var i=function(t){var n="";if(t instanceof m.CSSGradientValue){var e=t.type;if(e===m.GradientPatternType.Pattern){var r=t.value.src;n=r}else if(e===m.GradientPatternType.LinearGradient||e===m.GradientPatternType.RadialGradient){var o=t.value,i=o.x0,a=o.y0,u=o.x1,c=o.y1,s=o.r1,l=o.steps;n="".concat(e).concat(i).concat(a).concat(u).concat(c).concat(s||0).concat(l.map((function(t){return t.join("")})).join(""))}n&&(je[n]||(je[n]="_pattern_".concat(e,"_").concat(Pe++)))}return je[n]}(r),a=t.querySelector("#".concat(i));r instanceof m.CSSRGB?"currentColor"===n.style[o]?null==e||e.setAttribute(o,"currentColor"):null==e||e.setAttribute(o,r.isNone?"none":r.toString()):r.type===m.GradientPatternType.Pattern?(a||function(t,n,e){var r=n.value.src,o=Ee("pattern");o.setAttribute("patternUnits","userSpaceOnUse");var i=Ee("image");o.appendChild(i),o.id=e,t.appendChild(o),i.setAttribute("href",r);var a=new window.Image;r.match(/^data:/i)||(a.crossOrigin="Anonymous");function u(){o.setAttribute("width","".concat(a.width)),o.setAttribute("height","".concat(a.height))}a.src=r,a.complete?u():(a.onload=u,a.src=a.src)}(t,r,i),null==e||e.setAttribute(o,"url(#".concat(i,")"))):(a||function(t,n,e){var r=Ee(n.type===m.GradientPatternType.LinearGradient?"linearGradient":"radialGradient");if(n.type===m.GradientPatternType.LinearGradient){var o=n.value,i=o.x0,a=o.y0,u=o.x1,c=o.y1;r.setAttribute("x1","".concat(i)),r.setAttribute("y1","".concat(a)),r.setAttribute("x2","".concat(u)),r.setAttribute("y2","".concat(c))}else{var s=n.value,l=(i=s.x0,a=s.y0,s.r1);r.setAttribute("cx","".concat(i)),r.setAttribute("cy","".concat(a)),r.setAttribute("r","".concat(l/2))}var f="";n.value.steps.forEach((function(t){var n=v(t,2),e=n[0],r=n[1];f+='<stop offset="'.concat(e,'" stop-color="').concat(r,'"></stop>')})),r.innerHTML=f,r.id=e,t.appendChild(r)}(t,r,i),null==e||e.setAttribute(o,"url(#".concat(i,")")))}}var Ge;var $e=((Ge={})[m.Shape.RECT]="path",Ge[m.Shape.CIRCLE]="circle",Ge[m.Shape.ELLIPSE]="ellipse",Ge[m.Shape.IMAGE]="image",Ge[m.Shape.GROUP]="g",Ge[m.Shape.LINE]="line",Ge[m.Shape.POLYLINE]="polyline",Ge[m.Shape.POLYGON]="polygon",Ge[m.Shape.TEXT]="text",Ge[m.Shape.PATH]="path",Ge[m.Shape.HTML]="foreignObject",Ge),Re={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",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",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor"},Ne={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},We={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit"},De=function(){function t(){this.renderQueue=[]}return t.prototype.apply=function(t){var n=this,e=function(t){var e=t.target;n.createSVGDom(e,n.$camera)},r=function(t){var e=t.target;n.removeSVGDom(e)},o=function(t){var e,r,o=t.target,i=t.attrName;if("zIndex"===i){var a=o.parentNode,u=null===(r=null===(e=o.parentNode)||void 0===e?void 0:e.elementSVG)||void 0===r?void 0:r.$groupEl,c=((null==a?void 0:a.children)||[]).slice();u&&n.reorderChildren(u,c)}n.updateAttribute(o,i,o.parsedStyle[i])};t.hooks.init.tapPromise((function(){return d(n,void 0,void 0,(function(){var t;return h(this,(function(n){return this.$def=Ee("defs"),(t=this.contextService.getContext()).appendChild(this.$def),t.setAttribute("color-interpolation-filters","sRGB"),this.$camera=Ee("g"),this.$camera.id="".concat("g_svg","_camera"),this.applyTransform(this.$camera,this.camera.getOrthoMatrix()),t.appendChild(this.$camera),this.renderingContext.root.addEventListener(m.ElementEvent.MOUNTED,e),this.renderingContext.root.addEventListener(m.ElementEvent.UNMOUNTED,r),this.renderingContext.root.addEventListener(m.ElementEvent.ATTR_MODIFIED,o),[2]}))}))})),t.hooks.destroy.tap((function(){n.renderingContext.root.removeEventListener(m.ElementEvent.MOUNTED,e),n.renderingContext.root.removeEventListener(m.ElementEvent.UNMOUNTED,r),n.renderingContext.root.removeEventListener(m.ElementEvent.ATTR_MODIFIED,o)})),t.hooks.render.tap((function(t){n.renderQueue.push(t)})),t.hooks.endFrame.tap((function(){n.renderingContext.renderReasons.has(m.RenderReason.CAMERA_CHANGED)&&n.applyTransform(n.$camera,n.camera.getOrthoMatrix()),n.renderQueue.forEach((function(t){var e,r,o=null===(e=t.elementSVG)||void 0===e?void 0:e.$el,i=null===(r=t.elementSVG)||void 0===r?void 0:r.$groupEl;if(o&&i){n.applyTransform(i,t.getLocalTransform());var a=((null==t?void 0:t.children)||[]).slice();n.reorderChildren(i,a||[]),t.renderable.dirty=!1}})),n.renderQueue=[]}))},t.prototype.reorderChildren=function(t,n){if(n.sort((function(t,n){return t.sortable.renderOrder-n.sortable.renderOrder})),n.length){var e=document.createDocumentFragment();n.forEach((function(t){var n=t.elementSVG.$groupEl;n&&e.appendChild(n)})),t.appendChild(e)}},t.prototype.applyTransform=function(t,n){var e=o.getTranslation(i.create(),n),r=o.getScaling(i.create(),n),u=o.getRotation(a.create(),n),c=v(e,2),s=c[0],l=c[1],f=v(r,2),d=f[0],h=f[1],p=v(Object(m.getEuler)(i.create(),u),3),b=p[0],y=(p[1],p[2]),g=Object(m.fromRotationTranslationScale)(b||y,s,l,d,h);t.setAttribute("transform","matrix(".concat(A(g[0]),",").concat(A(g[1]),",").concat(A(g[3]),",").concat(A(g[4]),",").concat(A(g[6]),",").concat(A(g[7]),")"))},t.prototype.applyAttributes=function(t){var n,e,r=null===(n=t.elementSVG)||void 0===n?void 0:n.$el,o=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;if(r&&o){var i=t.nodeName,a=t.attributes,u=t.parsedStyle;for(var c in r.setAttribute("fill","none"),i===m.Shape.IMAGE&&r.setAttribute("preserveAspectRatio","none"),a)this.updateAttribute(t,c,u[c],!0);var s=this.elementRendererFactory(i);s&&s.apply(r,u)}},t.prototype.updateAttribute=function(t,n,e,r){var o,i,a,u;void 0===r&&(r=!1);var c=null===(o=t.elementSVG)||void 0===o?void 0:o.$el,s=null===(i=t.elementSVG)||void 0===i?void 0:i.$groupEl,l=t.parsedStyle,f=t.computedStyle;if(Re[n])if("fill"===n||"stroke"===n)ke(this.$def,t,c,l[n],Re[n]);else if("visibility"===n)null==s||s.setAttribute(Re[n],"".concat(f.visibility.value));else if("clipPath"===n){var d=e;if(d){var h="clip-path-"+d.entity;if(!this.$def.querySelector("#".concat(h))){var p=Ee("clipPath");p.id=h,this.$def.appendChild(p),this.createSVGDom(d,p,!0),d.elementSVG.$groupEl=p}var v=null===(a=d.elementSVG)||void 0===a?void 0:a.$groupEl;v&&this.applyTransform(v,d.getLocalTransform()),this.applyAttributes(d),null==s||s.setAttribute("clip-path","url(#".concat(h,")"))}else null==s||s.removeAttribute("clip-path")}else if("shadowColor"===n||"shadowBlur"===n||"shadowOffsetX"===n||"shadowOffsetY"===n)!function(t,n,e,r){var o="filter-dropshadow-"+n.entity,i=t.querySelector("#".concat(o));if(!i){i=Ee("filter");var a=Ee("feDropShadow");a.setAttribute("dx","0"),a.setAttribute("dy","0"),i.appendChild(a),i.id=o,t.appendChild(i)}var u=i.children[0];if("shadowColor"===r){var c=n.parsedStyle[r];u.setAttribute("flood-color",c.toString())}else if("shadowBlur"===r){var s=n.parsedStyle[r];u.setAttribute("stdDeviation","".concat((s&&s.value||0)/2))}else if("shadowOffsetX"===r){var l=n.parsedStyle[r];u.setAttribute("dx","".concat((l&&l.value||0)/2))}else if("shadowOffsetY"===r){var f=n.parsedStyle[r];u.setAttribute("dy","".concat((f&&f.value||0)/2))}null==e||e.setAttribute("filter","url(#".concat(o,")"))}(this.$def,t,c,n);else if("filter"===n)Oe(this.$def,t,c,l[n]);else if("innerHTML"===n){var b=document.createElement("div");"string"==typeof e?b.innerHTML=e:b.appendChild(e),c.innerHTML="",c.appendChild(b)}else if(t.nodeName!==m.Shape.TEXT&&["width","height","r","rx","ry"].indexOf(n)>-1&&this.updateAnchorWithTransform(t),"anchor"!==n&&e){var y=e.toString();if(y!==We[n]){var g=(null===(u=Ne[n])||void 0===u?void 0:u[y])||y;null==c||c.setAttribute(Re[n],g)}}if(!r&&c){var M=this.elementRendererFactory(t.nodeName);M&&M.dependencies.indexOf(n)>-1&&M.apply(c,t.parsedStyle)}},t.prototype.createSVGDom=function(t,n,e){var r;void 0===e&&(e=!1),t.elementSVG=new w;var o=t.elementSVG,i=$e[t.nodeName]||"g";if(i){var a=void 0,u=Ee(i);t.nodeName===m.Shape.HTML&&(t.parsedStyle.$el=u),u.id="".concat("g_svg","_").concat(t.nodeName,"_").concat(t.entity),"g"===i||e?a=u:(a=Ee("g")).appendChild(u),o.$el=u,o.$groupEl=a;var c=t.parentNode&&(null===(r=t.parentNode.elementSVG)||void 0===r?void 0:r.$groupEl)||n;c&&c.appendChild(a),this.applyAttributes(t)}},t.prototype.removeSVGDom=function(t){var n,e=null===(n=t.elementSVG)||void 0===n?void 0:n.$groupEl;e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.updateAnchorWithTransform=function(t){var n,e=t.getGeometryBounds(),r=e&&2*e.halfExtents[0]||0,o=e&&2*e.halfExtents[1]||0,i=(t.parsedStyle||{}).anchor,a=null===(n=t.elementSVG)||void 0===n?void 0:n.$el;null==a||a.setAttribute("transform","translate(-".concat(i[0].value*r,",-").concat(i[1].value*o,")")),t.nodeName!==m.Shape.CIRCLE&&t.nodeName!==m.Shape.ELLIPSE||(null==a||a.setAttribute("cx","".concat(r/2)),null==a||a.setAttribute("cy","".concat(o/2)))},l([Object(b.inject)(m.DefaultCamera),f("design:type",m.Camera)],t.prototype,"camera",void 0),l([Object(b.inject)(m.ContextService),f("design:type",Object)],t.prototype,"contextService",void 0),l([Object(b.inject)(m.RenderingContext),f("design:type",Object)],t.prototype,"renderingContext",void 0),l([Object(b.inject)($),f("design:type",Function)],t.prototype,"elementRendererFactory",void 0),t=l([Object(b.singleton)({contrib:m.RenderingPluginContribution})],t)}(),Ie=Object(b.Module)((function(t){t(E),t(O),t(C),t(T),t(k),t(G),t({token:$,useFactory:function(t){return function(n){return n===m.Shape.RECT?t.container.get(E):n===m.Shape.IMAGE?t.container.get(O):n===m.Shape.LINE?t.container.get(C):n===m.Shape.POLYLINE||n===m.Shape.POLYGON?t.container.get(T):n===m.Shape.TEXT?t.container.get(k):n===m.Shape.PATH?t.container.get(G):null}}}),t(De)})),Ve=function(){function t(){}return t.prototype.init=function(t){t.load(Ie,!0)},t.prototype.destroy=function(t){t.unload(Ie)},t}(),qe=function(){function t(){}return t.prototype.apply=function(t){var n=this;t.hooks.pick.tapPromise((function(t){return d(n,void 0,void 0,(function(){var n,e,r,o,i,a,u,c,s,l,f,d,v;return h(this,(function(h){n=t.topmost,e=t.position,r=e.clientX,o=e.clientY;try{i=[];try{for(a=p(document.elementsFromPoint(r,o)),u=a.next();!u.done;u=a.next())if(c=u.value,(s=c&&c.getAttribute("id"))&&s.startsWith("g_")&&(l=s.lastIndexOf("_"),(f=this.displayObjectPool.getByEntity(Number(s.substring(l+1))))&&f.isInteractive()&&(i.push(f),n)))return t.picked=i,[2,t]}catch(t){d={error:t}}finally{try{u&&!u.done&&(v=a.return)&&v.call(a)}finally{if(d)throw d.error}}t.picked=i}catch(n){t.picked=[]}return[2,t]}))}))}))},l([Object(b.inject)(m.SceneGraphService),f("design:type",Object)],t.prototype,"sceneGraphService",void 0),l([Object(b.inject)(m.DisplayObjectPool),f("design:type",m.DisplayObjectPool)],t.prototype,"displayObjectPool",void 0),t=l([Object(b.singleton)({contrib:m.RenderingPluginContribution})],t)}(),_e=Object(b.Module)((function(t){t(qe)})),Be=function(){function t(){}return t.prototype.init=function(t){t.load(_e,!0)},t.prototype.destroy=function(t){t.unload(_e)},t}(),Fe=function(){function t(){}return t.prototype.init=function(){var t=this.canvasConfig.container;if(this.$container=Object(m.isString)(t)?document.getElementById(t):t,this.$container){this.$container.style.position||(this.$container.style.position="relative");var n=Ee("svg");n.setAttribute("width","".concat(this.canvasConfig.width)),n.setAttribute("height","".concat(this.canvasConfig.height)),this.$container.appendChild(n),this.$namespace=n}var e=window.devicePixelRatio||1;e=e>=1?Math.ceil(e):1,this.dpr=e},t.prototype.getDomElement=function(){return this.$namespace},t.prototype.getContext=function(){return this.$namespace},t.prototype.getDPR=function(){return this.dpr},t.prototype.getBoundingClientRect=function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()},t.prototype.destroy=function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)},t.prototype.resize=function(t,n){this.$namespace&&(this.$namespace.setAttribute("width","".concat(t)),this.$namespace.setAttribute("height","".concat(n)))},t.prototype.applyCursorStyle=function(t){this.$container&&(this.$container.style.cursor=t)},l([Object(b.inject)(m.CanvasConfig),f("design:type",Object)],t.prototype,"canvasConfig",void 0),t=l([Object(b.singleton)({token:m.ContextService})],t)}(),Xe=Object(b.Module)((function(t){t(Fe)})),Ye=function(){function t(){}return t.prototype.init=function(t){t.load(Xe,!0)},t.prototype.destroy=function(t){t.unload(Xe)},t}(),He=function(t){function n(n){var e=t.call(this,n)||this;return e.registerPlugin(new Ye),e.registerPlugin(new Ve),e.registerPlugin(new S),e.registerPlugin(new Be),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),n}(m.AbstractRenderer)}])}));
@@ -1,7 +1,6 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
- import { CanvasConfig, ContextService } from '@antv/g';
2
+ import { CanvasConfig, ContextService, isString } from '@antv/g';
3
3
  import { inject, singleton } from 'mana-syringe';
4
- import { isString } from 'lodash-es';
5
4
  import { createSVGElement } from '@antv/g-plugin-svg-renderer';
6
5
 
7
6
  var SVGContextService =
@@ -1,11 +1,10 @@
1
- import { isArray } from 'lodash-es';
2
1
  export function parseRadius(radius) {
3
2
  var r1 = 0;
4
3
  var r2 = 0;
5
4
  var r3 = 0;
6
5
  var r4 = 0;
7
6
 
8
- if (isArray(radius)) {
7
+ if (Array.isArray(radius)) {
9
8
  if (radius.length === 1) {
10
9
  r1 = r2 = r3 = r4 = radius[0];
11
10
  } else if (radius.length === 2) {
@@ -11,8 +11,6 @@ var _g = require("@antv/g");
11
11
 
12
12
  var _manaSyringe = require("mana-syringe");
13
13
 
14
- var _lodashEs = require("lodash-es");
15
-
16
14
  var _gPluginSvgRenderer = require("@antv/g-plugin-svg-renderer");
17
15
 
18
16
  var SVGContextService =
@@ -23,7 +21,7 @@ function () {
23
21
  SVGContextService.prototype.init = function () {
24
22
  var container = this.canvasConfig.container; // create container
25
23
 
26
- this.$container = (0, _lodashEs.isString)(container) ? document.getElementById(container) : container;
24
+ this.$container = (0, _g.isString)(container) ? document.getElementById(container) : container;
27
25
 
28
26
  if (this.$container) {
29
27
  if (!this.$container.style.position) {
@@ -5,15 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.parseRadius = parseRadius;
7
7
 
8
- var _lodashEs = require("lodash-es");
9
-
10
8
  function parseRadius(radius) {
11
9
  var r1 = 0;
12
10
  var r2 = 0;
13
11
  var r3 = 0;
14
12
  var r4 = 0;
15
13
 
16
- if ((0, _lodashEs.isArray)(radius)) {
14
+ if (Array.isArray(radius)) {
17
15
  if (radius.length === 1) {
18
16
  r1 = r2 = r3 = r4 = radius[0];
19
17
  } else if (radius.length === 2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g-svg",
3
- "version": "1.0.19",
3
+ "version": "1.0.20-alpha.0",
4
4
  "description": "A renderer implemented by SVG",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -37,10 +37,9 @@
37
37
  },
38
38
  "homepage": "https://github.com/antvis/g#readme",
39
39
  "dependencies": {
40
- "@antv/g-plugin-dom-interaction": "^1.0.19",
41
- "@antv/g-plugin-svg-picker": "^1.0.19",
42
- "@antv/g-plugin-svg-renderer": "^1.0.19",
43
- "lodash-es": "^4.17.21",
40
+ "@antv/g-plugin-dom-interaction": "^1.0.20-alpha.0",
41
+ "@antv/g-plugin-svg-picker": "^1.0.20-alpha.0",
42
+ "@antv/g-plugin-svg-renderer": "^1.0.20-alpha.0",
44
43
  "tslib": "^2.3.1"
45
44
  },
46
45
  "peerDependencies": {
@@ -50,5 +49,5 @@
50
49
  "scripts": {
51
50
  "umd": "webpack"
52
51
  },
53
- "gitHead": "a52a7c8d754925e5732baf3faea156332748365f"
52
+ "gitHead": "b382a7445d9fa350107dba29d20eb7e6d6da9e79"
54
53
  }