text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.spritejs=e():t.spritejs=e()}(this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/js/",r(r.s=270)}([function(t,e,r){"use strict";r.r(e),r.d(e,"glMatrix",(function(){return n})),r.d(e,"mat2",(function(){return i})),r.d(e,"mat2d",(function(){return o})),r.d(e,"mat3",(function(){return a})),r.d(e,"mat4",(function(){return s})),r.d(e,"quat",(function(){return l})),r.d(e,"quat2",(function(){return f})),r.d(e,"vec2",(function(){return h})),r.d(e,"vec3",(function(){return u})),r.d(e,"vec4",(function(){return c}));var n={};r.r(n),r.d(n,"EPSILON",(function(){return d})),r.d(n,"ARRAY_TYPE",(function(){return p})),r.d(n,"RANDOM",(function(){return v})),r.d(n,"setMatrixArrayType",(function(){return g})),r.d(n,"toRadian",(function(){return m})),r.d(n,"equals",(function(){return b}));var i={};r.r(i),r.d(i,"create",(function(){return x})),r.d(i,"clone",(function(){return w})),r.d(i,"copy",(function(){return M})),r.d(i,"identity",(function(){return k})),r.d(i,"fromValues",(function(){return S})),r.d(i,"set",(function(){return A})),r.d(i,"transpose",(function(){return R})),r.d(i,"invert",(function(){return _})),r.d(i,"adjoint",(function(){return E})),r.d(i,"determinant",(function(){return O})),r.d(i,"multiply",(function(){return T})),r.d(i,"rotate",(function(){return C})),r.d(i,"scale",(function(){return L})),r.d(i,"fromRotation",(function(){return D})),r.d(i,"fromScaling",(function(){return P})),r.d(i,"str",(function(){return j})),r.d(i,"frob",(function(){return I})),r.d(i,"LDU",(function(){return q})),r.d(i,"add",(function(){return N})),r.d(i,"subtract",(function(){return F})),r.d(i,"exactEquals",(function(){return U})),r.d(i,"equals",(function(){return B})),r.d(i,"multiplyScalar",(function(){return V})),r.d(i,"multiplyScalarAndAdd",(function(){return z})),r.d(i,"mul",(function(){return G})),r.d(i,"sub",(function(){return H}));var o={};r.r(o),r.d(o,"create",(function(){return W})),r.d(o,"clone",(function(){return Y})),r.d(o,"copy",(function(){return X})),r.d(o,"identity",(function(){return J})),r.d(o,"fromValues",(function(){return Q})),r.d(o,"set",(function(){return Z})),r.d(o,"invert",(function(){return $})),r.d(o,"determinant",(function(){return K})),r.d(o,"multiply",(function(){return tt})),r.d(o,"rotate",(function(){return et})),r.d(o,"scale",(function(){return rt})),r.d(o,"translate",(function(){return nt})),r.d(o,"fromRotation",(function(){return it})),r.d(o,"fromScaling",(function(){return ot})),r.d(o,"fromTranslation",(function(){return at})),r.d(o,"str",(function(){return st})),r.d(o,"frob",(function(){return ut})),r.d(o,"add",(function(){return ct})),r.d(o,"subtract",(function(){return lt})),r.d(o,"multiplyScalar",(function(){return ft})),r.d(o,"multiplyScalarAndAdd",(function(){return ht})),r.d(o,"exactEquals",(function(){return dt})),r.d(o,"equals",(function(){return pt})),r.d(o,"mul",(function(){return vt})),r.d(o,"sub",(function(){return gt}));var a={};r.r(a),r.d(a,"create",(function(){return yt})),r.d(a,"fromMat4",(function(){return mt})),r.d(a,"clone",(function(){return bt})),r.d(a,"copy",(function(){return xt})),r.d(a,"fromValues",(function(){return wt})),r.d(a,"set",(function(){return Mt})),r.d(a,"identity",(function(){return kt})),r.d(a,"transpose",(function(){return St})),r.d(a,"invert",(function(){return At})),r.d(a,"adjoint",(function(){return Rt})),r.d(a,"determinant",(function(){return _t})),r.d(a,"multiply",(function(){return Et})),r.d(a,"translate",(function(){return Ot})),r.d(a,"rotate",(function(){return Tt})),r.d(a,"scale",(function(){return Ct})),r.d(a,"fromTranslation",(function(){return Lt})),r.d(a,"fromRotation",(function(){return Dt})),r.d(a,"fromScaling",(function(){return Pt})),r.d(a,"fromMat2d",(function(){return jt})),r.d(a,"fromQuat",(function(){return It})),r.d(a,"normalFromMat4",(function(){return qt})),r.d(a,"projection",(function(){return Nt})),r.d(a,"str",(function(){return Ft})),r.d(a,"frob",(function(){return Ut})),r.d(a,"add",(function(){return Bt})),r.d(a,"subtract",(function(){return Vt})),r.d(a,"multiplyScalar",(function(){return zt})),r.d(a,"multiplyScalarAndAdd",(function(){return Gt})),r.d(a,"exactEquals",(function(){return Ht})),r.d(a,"equals",(function(){return Wt})),r.d(a,"mul",(function(){return Yt})),r.d(a,"sub",(function(){return Xt}));var s={};r.r(s),r.d(s,"create",(function(){return Jt})),r.d(s,"clone",(function(){return Qt})),r.d(s,"copy",(function(){return Zt})),r.d(s,"fromValues",(function(){return $t})),r.d(s,"set",(function(){return Kt})),r.d(s,"identity",(function(){return te})),r.d(s,"transpose",(function(){return ee})),r.d(s,"invert",(function(){return re})),r.d(s,"adjoint",(function(){return ne})),r.d(s,"determinant",(function(){return ie})),r.d(s,"multiply",(function(){return oe})),r.d(s,"translate",(function(){return ae})),r.d(s,"scale",(function(){return se})),r.d(s,"rotate",(function(){return ue})),r.d(s,"rotateX",(function(){return ce})),r.d(s,"rotateY",(function(){return le})),r.d(s,"rotateZ",(function(){return fe})),r.d(s,"fromTranslation",(function(){return he})),r.d(s,"fromScaling",(function(){return de})),r.d(s,"fromRotation",(function(){return pe})),r.d(s,"fromXRotation",(function(){return ve})),r.d(s,"fromYRotation",(function(){return ge})),r.d(s,"fromZRotation",(function(){return ye})),r.d(s,"fromRotationTranslation",(function(){return me})),r.d(s,"fromQuat2",(function(){return be})),r.d(s,"getTranslation",(function(){return xe})),r.d(s,"getScaling",(function(){return we})),r.d(s,"getRotation",(function(){return Me})),r.d(s,"fromRotationTranslationScale",(function(){return ke})),r.d(s,"fromRotationTranslationScaleOrigin",(function(){return Se})),r.d(s,"fromQuat",(function(){return Ae})),r.d(s,"frustum",(function(){return Re})),r.d(s,"perspective",(function(){return _e})),r.d(s,"perspectiveFromFieldOfView",(function(){return Ee})),r.d(s,"ortho",(function(){return Oe})),r.d(s,"lookAt",(function(){return Te})),r.d(s,"targetTo",(function(){return Ce})),r.d(s,"str",(function(){return Le})),r.d(s,"frob",(function(){return De})),r.d(s,"add",(function(){return Pe})),r.d(s,"subtract",(function(){return je})),r.d(s,"multiplyScalar",(function(){return Ie})),r.d(s,"multiplyScalarAndAdd",(function(){return qe})),r.d(s,"exactEquals",(function(){return Ne})),r.d(s,"equals",(function(){return Fe})),r.d(s,"mul",(function(){return Ue})),r.d(s,"sub",(function(){return Be}));var u={};r.r(u),r.d(u,"create",(function(){return Ve})),r.d(u,"clone",(function(){return ze})),r.d(u,"length",(function(){return Ge})),r.d(u,"fromValues",(function(){return He})),r.d(u,"copy",(function(){return We})),r.d(u,"set",(function(){return Ye})),r.d(u,"add",(function(){return Xe})),r.d(u,"subtract",(function(){return Je})),r.d(u,"multiply",(function(){return Qe})),r.d(u,"divide",(function(){return Ze})),r.d(u,"ceil",(function(){return $e})),r.d(u,"floor",(function(){return Ke})),r.d(u,"min",(function(){return tr})),r.d(u,"max",(function(){return er})),r.d(u,"round",(function(){return rr})),r.d(u,"scale",(function(){return nr})),r.d(u,"scaleAndAdd",(function(){return ir})),r.d(u,"distance",(function(){return or})),r.d(u,"squaredDistance",(function(){return ar})),r.d(u,"squaredLength",(function(){return sr})),r.d(u,"negate",(function(){return ur})),r.d(u,"inverse",(function(){return cr})),r.d(u,"normalize",(function(){return lr})),r.d(u,"dot",(function(){return fr})),r.d(u,"cross",(function(){return hr})),r.d(u,"lerp",(function(){return dr})),r.d(u,"hermite",(function(){return pr})),r.d(u,"bezier",(function(){return vr})),r.d(u,"random",(function(){return gr})),r.d(u,"transformMat4",(function(){return yr})),r.d(u,"transformMat3",(function(){return mr})),r.d(u,"transformQuat",(function(){return br})),r.d(u,"rotateX",(function(){return xr})),r.d(u,"rotateY",(function(){return wr})),r.d(u,"rotateZ",(function(){return Mr})),r.d(u,"angle",(function(){return kr})),r.d(u,"zero",(function(){return Sr})),r.d(u,"str",(function(){return Ar})),r.d(u,"exactEquals",(function(){return Rr})),r.d(u,"equals",(function(){return _r})),r.d(u,"sub",(function(){return Or})),r.d(u,"mul",(function(){return Tr})),r.d(u,"div",(function(){return Cr})),r.d(u,"dist",(function(){return Lr})),r.d(u,"sqrDist",(function(){return Dr})),r.d(u,"len",(function(){return Pr})),r.d(u,"sqrLen",(function(){return jr})),r.d(u,"forEach",(function(){return Ir}));var c={};r.r(c),r.d(c,"create",(function(){return qr})),r.d(c,"clone",(function(){return Nr})),r.d(c,"fromValues",(function(){return Fr})),r.d(c,"copy",(function(){return Ur})),r.d(c,"set",(function(){return Br})),r.d(c,"add",(function(){return Vr})),r.d(c,"subtract",(function(){return zr})),r.d(c,"multiply",(function(){return Gr})),r.d(c,"divide",(function(){return Hr})),r.d(c,"ceil",(function(){return Wr})),r.d(c,"floor",(function(){return Yr})),r.d(c,"min",(function(){return Xr})),r.d(c,"max",(function(){return Jr})),r.d(c,"round",(function(){return Qr})),r.d(c,"scale",(function(){return Zr})),r.d(c,"scaleAndAdd",(function(){return $r})),r.d(c,"distance",(function(){return Kr})),r.d(c,"squaredDistance",(function(){return tn})),r.d(c,"length",(function(){return en})),r.d(c,"squaredLength",(function(){return rn})),r.d(c,"negate",(function(){return nn})),r.d(c,"inverse",(function(){return on})),r.d(c,"normalize",(function(){return an})),r.d(c,"dot",(function(){return sn})),r.d(c,"cross",(function(){return un})),r.d(c,"lerp",(function(){return cn})),r.d(c,"random",(function(){return ln})),r.d(c,"transformMat4",(function(){return fn})),r.d(c,"transformQuat",(function(){return hn})),r.d(c,"zero",(function(){return dn})),r.d(c,"str",(function(){return pn})),r.d(c,"exactEquals",(function(){return vn})),r.d(c,"equals",(function(){return gn})),r.d(c,"sub",(function(){return yn})),r.d(c,"mul",(function(){return mn})),r.d(c,"div",(function(){return bn})),r.d(c,"dist",(function(){return xn})),r.d(c,"sqrDist",(function(){return wn})),r.d(c,"len",(function(){return Mn})),r.d(c,"sqrLen",(function(){return kn})),r.d(c,"forEach",(function(){return Sn}));var l={};r.r(l),r.d(l,"create",(function(){return An})),r.d(l,"identity",(function(){return Rn})),r.d(l,"setAxisAngle",(function(){return _n})),r.d(l,"getAxisAngle",(function(){return En})),r.d(l,"getAngle",(function(){return On})),r.d(l,"multiply",(function(){return Tn})),r.d(l,"rotateX",(function(){return Cn})),r.d(l,"rotateY",(function(){return Ln})),r.d(l,"rotateZ",(function(){return Dn})),r.d(l,"calculateW",(function(){return Pn})),r.d(l,"exp",(function(){return jn})),r.d(l,"ln",(function(){return In})),r.d(l,"pow",(function(){return qn})),r.d(l,"slerp",(function(){return Nn})),r.d(l,"random",(function(){return Fn})),r.d(l,"invert",(function(){return Un})),r.d(l,"conjugate",(function(){return Bn})),r.d(l,"fromMat3",(function(){return Vn})),r.d(l,"fromEuler",(function(){return zn})),r.d(l,"str",(function(){return Gn})),r.d(l,"clone",(function(){return Zn})),r.d(l,"fromValues",(function(){return $n})),r.d(l,"copy",(function(){return Kn})),r.d(l,"set",(function(){return ti})),r.d(l,"add",(function(){return ei})),r.d(l,"mul",(function(){return ri})),r.d(l,"scale",(function(){return ni})),r.d(l,"dot",(function(){return ii})),r.d(l,"lerp",(function(){return oi})),r.d(l,"length",(function(){return ai})),r.d(l,"len",(function(){return si})),r.d(l,"squaredLength",(function(){return ui})),r.d(l,"sqrLen",(function(){return ci})),r.d(l,"normalize",(function(){return li})),r.d(l,"exactEquals",(function(){return fi})),r.d(l,"equals",(function(){return hi})),r.d(l,"rotationTo",(function(){return di})),r.d(l,"sqlerp",(function(){return pi})),r.d(l,"setAxes",(function(){return vi}));var f={};r.r(f),r.d(f,"create",(function(){return gi})),r.d(f,"clone",(function(){return yi})),r.d(f,"fromValues",(function(){return mi})),r.d(f,"fromRotationTranslationValues",(function(){return bi})),r.d(f,"fromRotationTranslation",(function(){return xi})),r.d(f,"fromTranslation",(function(){return wi})),r.d(f,"fromRotation",(function(){return Mi})),r.d(f,"fromMat4",(function(){return ki})),r.d(f,"copy",(function(){return Si})),r.d(f,"identity",(function(){return Ai})),r.d(f,"set",(function(){return Ri})),r.d(f,"getReal",(function(){return _i})),r.d(f,"getDual",(function(){return Ei})),r.d(f,"setReal",(function(){return Oi})),r.d(f,"setDual",(function(){return Ti})),r.d(f,"getTranslation",(function(){return Ci})),r.d(f,"translate",(function(){return Li})),r.d(f,"rotateX",(function(){return Di})),r.d(f,"rotateY",(function(){return Pi})),r.d(f,"rotateZ",(function(){return ji})),r.d(f,"rotateByQuatAppend",(function(){return Ii})),r.d(f,"rotateByQuatPrepend",(function(){return qi})),r.d(f,"rotateAroundAxis",(function(){return Ni})),r.d(f,"add",(function(){return Fi})),r.d(f,"multiply",(function(){return Ui})),r.d(f,"mul",(function(){return Bi})),r.d(f,"scale",(function(){return Vi})),r.d(f,"dot",(function(){return zi})),r.d(f,"lerp",(function(){return Gi})),r.d(f,"invert",(function(){return Hi})),r.d(f,"conjugate",(function(){return Wi})),r.d(f,"length",(function(){return Yi})),r.d(f,"len",(function(){return Xi})),r.d(f,"squaredLength",(function(){return Ji})),r.d(f,"sqrLen",(function(){return Qi})),r.d(f,"normalize",(function(){return Zi})),r.d(f,"str",(function(){return $i})),r.d(f,"exactEquals",(function(){return Ki})),r.d(f,"equals",(function(){return to}));var h={};r.r(h),r.d(h,"create",(function(){return eo})),r.d(h,"clone",(function(){return ro})),r.d(h,"fromValues",(function(){return no})),r.d(h,"copy",(function(){return io})),r.d(h,"set",(function(){return oo})),r.d(h,"add",(function(){return ao})),r.d(h,"subtract",(function(){return so})),r.d(h,"multiply",(function(){return uo})),r.d(h,"divide",(function(){return co})),r.d(h,"ceil",(function(){return lo})),r.d(h,"floor",(function(){return fo})),r.d(h,"min",(function(){return ho})),r.d(h,"max",(function(){return po})),r.d(h,"round",(function(){return vo})),r.d(h,"scale",(function(){return go})),r.d(h,"scaleAndAdd",(function(){return yo})),r.d(h,"distance",(function(){return mo})),r.d(h,"squaredDistance",(function(){return bo})),r.d(h,"length",(function(){return xo})),r.d(h,"squaredLength",(function(){return wo})),r.d(h,"negate",(function(){return Mo})),r.d(h,"inverse",(function(){return ko})),r.d(h,"normalize",(function(){return So})),r.d(h,"dot",(function(){return Ao})),r.d(h,"cross",(function(){return Ro})),r.d(h,"lerp",(function(){return _o})),r.d(h,"random",(function(){return Eo})),r.d(h,"transformMat2",(function(){return Oo})),r.d(h,"transformMat2d",(function(){return To})),r.d(h,"transformMat3",(function(){return Co})),r.d(h,"transformMat4",(function(){return Lo})),r.d(h,"rotate",(function(){return Do})),r.d(h,"angle",(function(){return Po})),r.d(h,"zero",(function(){return jo})),r.d(h,"str",(function(){return Io})),r.d(h,"exactEquals",(function(){return qo})),r.d(h,"equals",(function(){return No})),r.d(h,"len",(function(){return Fo})),r.d(h,"sub",(function(){return Uo})),r.d(h,"mul",(function(){return Bo})),r.d(h,"div",(function(){return Vo})),r.d(h,"dist",(function(){return zo})),r.d(h,"sqrDist",(function(){return Go})),r.d(h,"sqrLen",(function(){return Ho})),r.d(h,"forEach",(function(){return Wo}));var d=1e-6,p="undefined"!=typeof Float32Array?Float32Array:Array,v=Math.random;function g(t){p=t}var y=Math.PI/180;function m(t){return t*y}function b(t,e){return Math.abs(t-e)<=d*Math.max(1,Math.abs(t),Math.abs(e))}function x(){var t=new p(4);return p!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function w(t){var e=new p(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function k(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function S(t,e,r,n){var i=new p(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}function A(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function R(t,e){if(t===e){var r=e[1];t[1]=e[2],t[2]=r}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t}function _(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=r*o-i*n;return a?(a=1/a,t[0]=o*a,t[1]=-n*a,t[2]=-i*a,t[3]=r*a,t):null}function E(t,e){var r=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=r,t}function O(t){return t[0]*t[3]-t[2]*t[1]}function T(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=r[0],u=r[1],c=r[2],l=r[3];return t[0]=n*s+o*u,t[1]=i*s+a*u,t[2]=n*c+o*l,t[3]=i*c+a*l,t}function C(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*s,t[1]=i*u+a*s,t[2]=n*-s+o*u,t[3]=i*-s+a*u,t}function L(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=r[0],u=r[1];return t[0]=n*s,t[1]=i*s,t[2]=o*u,t[3]=a*u,t}function D(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t}function P(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function j(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function I(t){return Math.hypot(t[0],t[1],t[2],t[3])}function q(t,e,r,n){return t[2]=n[2]/n[0],r[0]=n[0],r[1]=n[1],r[3]=n[3]-t[2]*r[1],[t,e,r]}function N(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function F(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function B(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=e[0],s=e[1],u=e[2],c=e[3];return Math.abs(r-a)<=d*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-s)<=d*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=d*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-c)<=d*Math.max(1,Math.abs(o),Math.abs(c))}function V(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function z(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var G=T,H=F;function W(){var t=new p(6);return p!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t}function Y(t){var e=new p(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function X(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function J(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Q(t,e,r,n,i,o){var a=new p(6);return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a[4]=i,a[5]=o,a}function Z(t,e,r,n,i,o,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t}function $(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=r*o-n*i;return u?(u=1/u,t[0]=o*u,t[1]=-n*u,t[2]=-i*u,t[3]=r*u,t[4]=(i*s-o*a)*u,t[5]=(n*a-r*s)*u,t):null}function K(t){return t[0]*t[3]-t[1]*t[2]}function tt(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=r[0],l=r[1],f=r[2],h=r[3],d=r[4],p=r[5];return t[0]=n*c+o*l,t[1]=i*c+a*l,t[2]=n*f+o*h,t[3]=i*f+a*h,t[4]=n*d+o*p+s,t[5]=i*d+a*p+u,t}function et(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=Math.sin(r),l=Math.cos(r);return t[0]=n*l+o*c,t[1]=i*l+a*c,t[2]=n*-c+o*l,t[3]=i*-c+a*l,t[4]=s,t[5]=u,t}function rt(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=r[0],l=r[1];return t[0]=n*c,t[1]=i*c,t[2]=o*l,t[3]=a*l,t[4]=s,t[5]=u,t}function nt(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=r[0],l=r[1];return t[0]=n,t[1]=i,t[2]=o,t[3]=a,t[4]=n*c+o*l+s,t[5]=i*c+a*l+u,t}function it(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t[4]=0,t[5]=0,t}function ot(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t}function at(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t}function st(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function ut(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)}function ct(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t}function lt(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t}function ft(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t}function ht(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t}function dt(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]}function pt(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=e[0],c=e[1],l=e[2],f=e[3],h=e[4],p=e[5];return Math.abs(r-u)<=d*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-c)<=d*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(i-l)<=d*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-f)<=d*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-h)<=d*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(s-p)<=d*Math.max(1,Math.abs(s),Math.abs(p))}var vt=tt,gt=lt;function yt(){var t=new p(9);return p!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function mt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function bt(t){var e=new p(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function xt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function wt(t,e,r,n,i,o,a,s,u){var c=new p(9);return c[0]=t,c[1]=e,c[2]=r,c[3]=n,c[4]=i,c[5]=o,c[6]=a,c[7]=s,c[8]=u,c}function Mt(t,e,r,n,i,o,a,s,u,c){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t}function kt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function St(t,e){if(t===e){var r=e[1],n=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function At(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=l*a-s*c,h=-l*o+s*u,d=c*o-a*u,p=r*f+n*h+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-l*n+i*c)*p,t[2]=(s*n-i*a)*p,t[3]=h*p,t[4]=(l*r-i*u)*p,t[5]=(-s*r+i*o)*p,t[6]=d*p,t[7]=(-c*r+n*u)*p,t[8]=(a*r-n*o)*p,t):null}function Rt(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=a*l-s*c,t[1]=i*c-n*l,t[2]=n*s-i*a,t[3]=s*u-o*l,t[4]=r*l-i*u,t[5]=i*o-r*s,t[6]=o*c-a*u,t[7]=n*u-r*c,t[8]=r*a-n*o,t}function _t(t){var e=t[0],r=t[1],n=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8];return e*(c*o-a*u)+r*(-c*i+a*s)+n*(u*i-o*s)}function Et(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=r[0],d=r[1],p=r[2],v=r[3],g=r[4],y=r[5],m=r[6],b=r[7],x=r[8];return t[0]=h*n+d*a+p*c,t[1]=h*i+d*s+p*l,t[2]=h*o+d*u+p*f,t[3]=v*n+g*a+y*c,t[4]=v*i+g*s+y*l,t[5]=v*o+g*u+y*f,t[6]=m*n+b*a+x*c,t[7]=m*i+b*s+x*l,t[8]=m*o+b*u+x*f,t}function Ot(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=r[0],d=r[1];return t[0]=n,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=h*n+d*a+c,t[7]=h*i+d*s+l,t[8]=h*o+d*u+f,t}function Tt(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=Math.sin(r),d=Math.cos(r);return t[0]=d*n+h*a,t[1]=d*i+h*s,t[2]=d*o+h*u,t[3]=d*a-h*n,t[4]=d*s-h*i,t[5]=d*u-h*o,t[6]=c,t[7]=l,t[8]=f,t}function Ct(t,e,r){var n=r[0],i=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function Lt(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function Dt(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function Pt(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function jt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function It(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=r+r,s=n+n,u=i+i,c=r*a,l=n*a,f=n*s,h=i*a,d=i*s,p=i*u,v=o*a,g=o*s,y=o*u;return t[0]=1-f-p,t[3]=l-y,t[6]=h+g,t[1]=l+y,t[4]=1-c-p,t[7]=d-v,t[2]=h-g,t[5]=d+v,t[8]=1-c-f,t}function qt(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=r*s-n*a,b=r*u-i*a,x=r*c-o*a,w=n*u-i*s,M=n*c-o*s,k=i*c-o*u,S=l*v-f*p,A=l*g-h*p,R=l*y-d*p,_=f*g-h*v,E=f*y-d*v,O=h*y-d*g,T=m*O-b*E+x*_+w*R-M*A+k*S;return T?(T=1/T,t[0]=(s*O-u*E+c*_)*T,t[1]=(u*R-a*O-c*A)*T,t[2]=(a*E-s*R+c*S)*T,t[3]=(i*E-n*O-o*_)*T,t[4]=(r*O-i*R+o*A)*T,t[5]=(n*R-r*E-o*S)*T,t[6]=(v*k-g*M+y*w)*T,t[7]=(g*x-p*k-y*b)*T,t[8]=(p*M-v*x+y*m)*T,t):null}function Nt(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function Ft(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function Ut(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function Bt(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t}function Vt(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}function zt(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t}function Gt(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t}function Ht(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function Wt(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=e[0],h=e[1],p=e[2],v=e[3],g=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(r-f)<=d*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(n-h)<=d*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-p)<=d*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-v)<=d*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(a-g)<=d*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-y)<=d*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-m)<=d*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-b)<=d*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(l-x)<=d*Math.max(1,Math.abs(l),Math.abs(x))}var Yt=Et,Xt=Vt;function Jt(){var t=new p(16);return p!=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 Qt(t){var e=new p(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Zt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function $t(t,e,r,n,i,o,a,s,u,c,l,f,h,d,v,g){var y=new p(16);return y[0]=t,y[1]=e,y[2]=r,y[3]=n,y[4]=i,y[5]=o,y[6]=a,y[7]=s,y[8]=u,y[9]=c,y[10]=l,y[11]=f,y[12]=h,y[13]=d,y[14]=v,y[15]=g,y}function Kt(t,e,r,n,i,o,a,s,u,c,l,f,h,d,p,v,g){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=d,t[13]=p,t[14]=v,t[15]=g,t}function te(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 ee(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function re(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=r*s-n*a,b=r*u-i*a,x=r*c-o*a,w=n*u-i*s,M=n*c-o*s,k=i*c-o*u,S=l*v-f*p,A=l*g-h*p,R=l*y-d*p,_=f*g-h*v,E=f*y-d*v,O=h*y-d*g,T=m*O-b*E+x*_+w*R-M*A+k*S;return T?(T=1/T,t[0]=(s*O-u*E+c*_)*T,t[1]=(i*E-n*O-o*_)*T,t[2]=(v*k-g*M+y*w)*T,t[3]=(h*M-f*k-d*w)*T,t[4]=(u*R-a*O-c*A)*T,t[5]=(r*O-i*R+o*A)*T,t[6]=(g*x-p*k-y*b)*T,t[7]=(l*k-h*x+d*b)*T,t[8]=(a*E-s*R+c*S)*T,t[9]=(n*R-r*E-o*S)*T,t[10]=(p*M-v*x+y*m)*T,t[11]=(f*x-l*M-d*m)*T,t[12]=(s*A-a*_-u*S)*T,t[13]=(r*_-n*A+i*S)*T,t[14]=(v*b-p*w-g*m)*T,t[15]=(l*w-f*b+h*m)*T,t):null}function ne(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(h*y-d*g)-f*(u*y-c*g)+v*(u*d-c*h),t[1]=-(n*(h*y-d*g)-f*(i*y-o*g)+v*(i*d-o*h)),t[2]=n*(u*y-c*g)-s*(i*y-o*g)+v*(i*c-o*u),t[3]=-(n*(u*d-c*h)-s*(i*d-o*h)+f*(i*c-o*u)),t[4]=-(a*(h*y-d*g)-l*(u*y-c*g)+p*(u*d-c*h)),t[5]=r*(h*y-d*g)-l*(i*y-o*g)+p*(i*d-o*h),t[6]=-(r*(u*y-c*g)-a*(i*y-o*g)+p*(i*c-o*u)),t[7]=r*(u*d-c*h)-a*(i*d-o*h)+l*(i*c-o*u),t[8]=a*(f*y-d*v)-l*(s*y-c*v)+p*(s*d-c*f),t[9]=-(r*(f*y-d*v)-l*(n*y-o*v)+p*(n*d-o*f)),t[10]=r*(s*y-c*v)-a*(n*y-o*v)+p*(n*c-o*s),t[11]=-(r*(s*d-c*f)-a*(n*d-o*f)+l*(n*c-o*s)),t[12]=-(a*(f*g-h*v)-l*(s*g-u*v)+p*(s*h-u*f)),t[13]=r*(f*g-h*v)-l*(n*g-i*v)+p*(n*h-i*f),t[14]=-(r*(s*g-u*v)-a*(n*g-i*v)+p*(n*u-i*s)),t[15]=r*(s*h-u*f)-a*(n*h-i*f)+l*(n*u-i*s),t}function ie(t){var e=t[0],r=t[1],n=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],h=t[11],d=t[12],p=t[13],v=t[14],g=t[15];return(e*a-r*o)*(f*g-h*v)-(e*s-n*o)*(l*g-h*p)+(e*u-i*o)*(l*v-f*p)+(r*s-n*a)*(c*g-h*d)-(r*u-i*a)*(c*v-f*d)+(n*u-i*s)*(c*p-l*d)}function oe(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=e[9],d=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=r[0],x=r[1],w=r[2],M=r[3];return t[0]=b*n+x*s+w*f+M*v,t[1]=b*i+x*u+w*h+M*g,t[2]=b*o+x*c+w*d+M*y,t[3]=b*a+x*l+w*p+M*m,b=r[4],x=r[5],w=r[6],M=r[7],t[4]=b*n+x*s+w*f+M*v,t[5]=b*i+x*u+w*h+M*g,t[6]=b*o+x*c+w*d+M*y,t[7]=b*a+x*l+w*p+M*m,b=r[8],x=r[9],w=r[10],M=r[11],t[8]=b*n+x*s+w*f+M*v,t[9]=b*i+x*u+w*h+M*g,t[10]=b*o+x*c+w*d+M*y,t[11]=b*a+x*l+w*p+M*m,b=r[12],x=r[13],w=r[14],M=r[15],t[12]=b*n+x*s+w*f+M*v,t[13]=b*i+x*u+w*h+M*g,t[14]=b*o+x*c+w*d+M*y,t[15]=b*a+x*l+w*p+M*m,t}function ae(t,e,r){var n,i,o,a,s,u,c,l,f,h,d,p,v=r[0],g=r[1],y=r[2];return e===t?(t[12]=e[0]*v+e[4]*g+e[8]*y+e[12],t[13]=e[1]*v+e[5]*g+e[9]*y+e[13],t[14]=e[2]*v+e[6]*g+e[10]*y+e[14],t[15]=e[3]*v+e[7]*g+e[11]*y+e[15]):(n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=e[9],d=e[10],p=e[11],t[0]=n,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=c,t[7]=l,t[8]=f,t[9]=h,t[10]=d,t[11]=p,t[12]=n*v+s*g+f*y+e[12],t[13]=i*v+u*g+h*y+e[13],t[14]=o*v+c*g+d*y+e[14],t[15]=a*v+l*g+p*y+e[15]),t}function se(t,e,r){var n=r[0],i=r[1],o=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function ue(t,e,r,n){var i,o,a,s,u,c,l,f,h,p,v,g,y,m,b,x,w,M,k,S,A,R,_,E,O=n[0],T=n[1],C=n[2],L=Math.hypot(O,T,C);return L<d?null:(O*=L=1/L,T*=L,C*=L,i=Math.sin(r),a=1-(o=Math.cos(r)),s=e[0],u=e[1],c=e[2],l=e[3],f=e[4],h=e[5],p=e[6],v=e[7],g=e[8],y=e[9],m=e[10],b=e[11],x=O*O*a+o,w=T*O*a+C*i,M=C*O*a-T*i,k=O*T*a-C*i,S=T*T*a+o,A=C*T*a+O*i,R=O*C*a+T*i,_=T*C*a-O*i,E=C*C*a+o,t[0]=s*x+f*w+g*M,t[1]=u*x+h*w+y*M,t[2]=c*x+p*w+m*M,t[3]=l*x+v*w+b*M,t[4]=s*k+f*S+g*A,t[5]=u*k+h*S+y*A,t[6]=c*k+p*S+m*A,t[7]=l*k+v*S+b*A,t[8]=s*R+f*_+g*E,t[9]=u*R+h*_+y*E,t[10]=c*R+p*_+m*E,t[11]=l*R+v*_+b*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function ce(t,e,r){var n=Math.sin(r),i=Math.cos(r),o=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+c*n,t[5]=a*i+l*n,t[6]=s*i+f*n,t[7]=u*i+h*n,t[8]=c*i-o*n,t[9]=l*i-a*n,t[10]=f*i-s*n,t[11]=h*i-u*n,t}function le(t,e,r){var n=Math.sin(r),i=Math.cos(r),o=e[0],a=e[1],s=e[2],u=e[3],c=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-c*n,t[1]=a*i-l*n,t[2]=s*i-f*n,t[3]=u*i-h*n,t[8]=o*n+c*i,t[9]=a*n+l*i,t[10]=s*n+f*i,t[11]=u*n+h*i,t}function fe(t,e,r){var n=Math.sin(r),i=Math.cos(r),o=e[0],a=e[1],s=e[2],u=e[3],c=e[4],l=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+c*n,t[1]=a*i+l*n,t[2]=s*i+f*n,t[3]=u*i+h*n,t[4]=c*i-o*n,t[5]=l*i-a*n,t[6]=f*i-s*n,t[7]=h*i-u*n,t}function he(t,e){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]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function de(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function pe(t,e,r){var n,i,o,a=r[0],s=r[1],u=r[2],c=Math.hypot(a,s,u);return c<d?null:(a*=c=1/c,s*=c,u*=c,n=Math.sin(e),o=1-(i=Math.cos(e)),t[0]=a*a*o+i,t[1]=s*a*o+u*n,t[2]=u*a*o-s*n,t[3]=0,t[4]=a*s*o-u*n,t[5]=s*s*o+i,t[6]=u*s*o+a*n,t[7]=0,t[8]=a*u*o+s*n,t[9]=s*u*o-a*n,t[10]=u*u*o+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function ve(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ge(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ye(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,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 me(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=n+n,u=i+i,c=o+o,l=n*s,f=n*u,h=n*c,d=i*u,p=i*c,v=o*c,g=a*s,y=a*u,m=a*c;return t[0]=1-(d+v),t[1]=f+m,t[2]=h-y,t[3]=0,t[4]=f-m,t[5]=1-(l+v),t[6]=p+g,t[7]=0,t[8]=h+y,t[9]=p-g,t[10]=1-(l+d),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function be(t,e){var r=new p(3),n=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=n*n+i*i+o*o+a*a;return f>0?(r[0]=2*(s*a+l*n+u*o-c*i)/f,r[1]=2*(u*a+l*i+c*n-s*o)/f,r[2]=2*(c*a+l*o+s*i-u*n)/f):(r[0]=2*(s*a+l*n+u*o-c*i),r[1]=2*(u*a+l*i+c*n-s*o),r[2]=2*(c*a+l*o+s*i-u*n)),me(t,e,r),t}function xe(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function we(t,e){var r=e[0],n=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],c=e[9],l=e[10];return t[0]=Math.hypot(r,n,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(u,c,l),t}function Me(t,e){var r=new p(3);we(r,e);var n=1/r[0],i=1/r[1],o=1/r[2],a=e[0]*n,s=e[1]*i,u=e[2]*o,c=e[4]*n,l=e[5]*i,f=e[6]*o,h=e[8]*n,d=e[9]*i,v=e[10]*o,g=a+l+v,y=0;return g>0?(y=2*Math.sqrt(g+1),t[3]=.25*y,t[0]=(f-d)/y,t[1]=(h-u)/y,t[2]=(s-c)/y):a>l&&a>v?(y=2*Math.sqrt(1+a-l-v),t[3]=(f-d)/y,t[0]=.25*y,t[1]=(s+c)/y,t[2]=(h+u)/y):l>v?(y=2*Math.sqrt(1+l-a-v),t[3]=(h-u)/y,t[0]=(s+c)/y,t[1]=.25*y,t[2]=(f+d)/y):(y=2*Math.sqrt(1+v-a-l),t[3]=(s-c)/y,t[0]=(h+u)/y,t[1]=(f+d)/y,t[2]=.25*y),t}function ke(t,e,r,n){var i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,c=o+o,l=a+a,f=i*u,h=i*c,d=i*l,p=o*c,v=o*l,g=a*l,y=s*u,m=s*c,b=s*l,x=n[0],w=n[1],M=n[2];return t[0]=(1-(p+g))*x,t[1]=(h+b)*x,t[2]=(d-m)*x,t[3]=0,t[4]=(h-b)*w,t[5]=(1-(f+g))*w,t[6]=(v+y)*w,t[7]=0,t[8]=(d+m)*M,t[9]=(v-y)*M,t[10]=(1-(f+p))*M,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function Se(t,e,r,n,i){var o=e[0],a=e[1],s=e[2],u=e[3],c=o+o,l=a+a,f=s+s,h=o*c,d=o*l,p=o*f,v=a*l,g=a*f,y=s*f,m=u*c,b=u*l,x=u*f,w=n[0],M=n[1],k=n[2],S=i[0],A=i[1],R=i[2],_=(1-(v+y))*w,E=(d+x)*w,O=(p-b)*w,T=(d-x)*M,C=(1-(h+y))*M,L=(g+m)*M,D=(p+b)*k,P=(g-m)*k,j=(1-(h+v))*k;return t[0]=_,t[1]=E,t[2]=O,t[3]=0,t[4]=T,t[5]=C,t[6]=L,t[7]=0,t[8]=D,t[9]=P,t[10]=j,t[11]=0,t[12]=r[0]+S-(_*S+T*A+D*R),t[13]=r[1]+A-(E*S+C*A+P*R),t[14]=r[2]+R-(O*S+L*A+j*R),t[15]=1,t}function Ae(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=r+r,s=n+n,u=i+i,c=r*a,l=n*a,f=n*s,h=i*a,d=i*s,p=i*u,v=o*a,g=o*s,y=o*u;return t[0]=1-f-p,t[1]=l+y,t[2]=h-g,t[3]=0,t[4]=l-y,t[5]=1-c-p,t[6]=d+v,t[7]=0,t[8]=h+g,t[9]=d-v,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Re(t,e,r,n,i,o,a){var s=1/(r-e),u=1/(i-n),c=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*u,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0,t}function _e(t,e,r,n,i){var o,a=1/Math.tan(e/2);return t[0]=a/r,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!=i&&i!==1/0?(o=1/(n-i),t[10]=(i+n)*o,t[14]=2*i*n*o):(t[10]=-1,t[14]=-2*n),t}function Ee(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),c=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(i-o)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}function Oe(t,e,r,n,i,o,a){var s=1/(e-r),u=1/(n-i),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*u,t[14]=(a+o)*c,t[15]=1,t}function Te(t,e,r,n){var i,o,a,s,u,c,l,f,h,p,v=e[0],g=e[1],y=e[2],m=n[0],b=n[1],x=n[2],w=r[0],M=r[1],k=r[2];return Math.abs(v-w)<d&&Math.abs(g-M)<d&&Math.abs(y-k)<d?te(t):(l=v-w,f=g-M,h=y-k,i=b*(h*=p=1/Math.hypot(l,f,h))-x*(f*=p),o=x*(l*=p)-m*h,a=m*f-b*l,(p=Math.hypot(i,o,a))?(i*=p=1/p,o*=p,a*=p):(i=0,o=0,a=0),s=f*a-h*o,u=h*i-l*a,c=l*o-f*i,(p=Math.hypot(s,u,c))?(s*=p=1/p,u*=p,c*=p):(s=0,u=0,c=0),t[0]=i,t[1]=s,t[2]=l,t[3]=0,t[4]=o,t[5]=u,t[6]=f,t[7]=0,t[8]=a,t[9]=c,t[10]=h,t[11]=0,t[12]=-(i*v+o*g+a*y),t[13]=-(s*v+u*g+c*y),t[14]=-(l*v+f*g+h*y),t[15]=1,t)}function Ce(t,e,r,n){var i=e[0],o=e[1],a=e[2],s=n[0],u=n[1],c=n[2],l=i-r[0],f=o-r[1],h=a-r[2],d=l*l+f*f+h*h;d>0&&(l*=d=1/Math.sqrt(d),f*=d,h*=d);var p=u*h-c*f,v=c*l-s*h,g=s*f-u*l;return(d=p*p+v*v+g*g)>0&&(p*=d=1/Math.sqrt(d),v*=d,g*=d),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-h*v,t[5]=h*p-l*g,t[6]=l*v-f*p,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t}function Le(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 De(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 Pe(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t}function je(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function Ie(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t}function qe(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t}function Ne(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function Fe(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=t[9],h=t[10],p=t[11],v=t[12],g=t[13],y=t[14],m=t[15],b=e[0],x=e[1],w=e[2],M=e[3],k=e[4],S=e[5],A=e[6],R=e[7],_=e[8],E=e[9],O=e[10],T=e[11],C=e[12],L=e[13],D=e[14],P=e[15];return Math.abs(r-b)<=d*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(n-x)<=d*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(i-w)<=d*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(o-M)<=d*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-k)<=d*Math.max(1,Math.abs(a),Math.abs(k))&&Math.abs(s-S)<=d*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(u-A)<=d*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(c-R)<=d*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(l-_)<=d*Math.max(1,Math.abs(l),Math.abs(_))&&Math.abs(f-E)<=d*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(h-O)<=d*Math.max(1,Math.abs(h),Math.abs(O))&&Math.abs(p-T)<=d*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(v-C)<=d*Math.max(1,Math.abs(v),Math.abs(C))&&Math.abs(g-L)<=d*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-D)<=d*Math.max(1,Math.abs(y),Math.abs(D))&&Math.abs(m-P)<=d*Math.max(1,Math.abs(m),Math.abs(P))}var Ue=oe,Be=je;function Ve(){var t=new p(3);return p!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function ze(t){var e=new p(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Ge(t){var e=t[0],r=t[1],n=t[2];return Math.hypot(e,r,n)}function He(t,e,r){var n=new p(3);return n[0]=t,n[1]=e,n[2]=r,n}function We(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Ye(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function Xe(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function Je(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function Qe(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function Ze(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function $e(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function Ke(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function tr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function er(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function rr(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function nr(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function ir(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function or(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.hypot(r,n,i)}function ar(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}function sr(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function ur(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function cr(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function lr(t,e){var r=e[0],n=e[1],i=e[2],o=r*r+n*n+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function fr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function hr(t,e,r){var n=e[0],i=e[1],o=e[2],a=r[0],s=r[1],u=r[2];return t[0]=i*u-o*s,t[1]=o*a-n*u,t[2]=n*s-i*a,t}function dr(t,e,r,n){var i=e[0],o=e[1],a=e[2];return t[0]=i+n*(r[0]-i),t[1]=o+n*(r[1]-o),t[2]=a+n*(r[2]-a),t}function pr(t,e,r,n,i,o){var a=o*o,s=a*(2*o-3)+1,u=a*(o-2)+o,c=a*(o-1),l=a*(3-2*o);return t[0]=e[0]*s+r[0]*u+n[0]*c+i[0]*l,t[1]=e[1]*s+r[1]*u+n[1]*c+i[1]*l,t[2]=e[2]*s+r[2]*u+n[2]*c+i[2]*l,t}function vr(t,e,r,n,i,o){var a=1-o,s=a*a,u=o*o,c=s*a,l=3*o*s,f=3*u*a,h=u*o;return t[0]=e[0]*c+r[0]*l+n[0]*f+i[0]*h,t[1]=e[1]*c+r[1]*l+n[1]*f+i[1]*h,t[2]=e[2]*c+r[2]*l+n[2]*f+i[2]*h,t}function gr(t,e){e=e||1;var r=2*v()*Math.PI,n=2*v()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}function yr(t,e,r){var n=e[0],i=e[1],o=e[2],a=r[3]*n+r[7]*i+r[11]*o+r[15];return a=a||1,t[0]=(r[0]*n+r[4]*i+r[8]*o+r[12])/a,t[1]=(r[1]*n+r[5]*i+r[9]*o+r[13])/a,t[2]=(r[2]*n+r[6]*i+r[10]*o+r[14])/a,t}function mr(t,e,r){var n=e[0],i=e[1],o=e[2];return t[0]=n*r[0]+i*r[3]+o*r[6],t[1]=n*r[1]+i*r[4]+o*r[7],t[2]=n*r[2]+i*r[5]+o*r[8],t}function br(t,e,r){var n=r[0],i=r[1],o=r[2],a=r[3],s=e[0],u=e[1],c=e[2],l=i*c-o*u,f=o*s-n*c,h=n*u-i*s,d=i*h-o*f,p=o*l-n*h,v=n*f-i*l,g=2*a;return l*=g,f*=g,h*=g,d*=2,p*=2,v*=2,t[0]=s+l+d,t[1]=u+f+p,t[2]=c+h+v,t}function xr(t,e,r,n){var i=[],o=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],o[0]=i[0],o[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),o[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t}function wr(t,e,r,n){var i=[],o=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],o[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),o[1]=i[1],o[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t}function Mr(t,e,r,n){var i=[],o=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],o[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),o[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),o[2]=i[2],t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t}function kr(t,e){var r=t[0],n=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=Math.sqrt(r*r+n*n+i*i)*Math.sqrt(o*o+a*a+s*s),c=u&&fr(t,e)/u;return Math.acos(Math.min(Math.max(c,-1),1))}function Sr(t){return t[0]=0,t[1]=0,t[2]=0,t}function Ar(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function Rr(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function _r(t,e){var r=t[0],n=t[1],i=t[2],o=e[0],a=e[1],s=e[2];return Math.abs(r-o)<=d*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-a)<=d*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=d*Math.max(1,Math.abs(i),Math.abs(s))}var Er,Or=Je,Tr=Qe,Cr=Ze,Lr=or,Dr=ar,Pr=Ge,jr=sr,Ir=(Er=Ve(),function(t,e,r,n,i,o){var a,s;for(e||(e=3),r||(r=0),s=n?Math.min(n*e+r,t.length):t.length,a=r;a<s;a+=e)Er[0]=t[a],Er[1]=t[a+1],Er[2]=t[a+2],i(Er,Er,o),t[a]=Er[0],t[a+1]=Er[1],t[a+2]=Er[2];return t});function qr(){var t=new p(4);return p!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function Nr(t){var e=new p(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function Fr(t,e,r,n){var i=new p(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}function Ur(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Br(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Vr(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function zr(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function Gr(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function Hr(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function Wr(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t}function Yr(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t}function Xr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function Jr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function Qr(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function Zr(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function $r(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}function Kr(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.hypot(r,n,i,o)}function tn(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return r*r+n*n+i*i+o*o}function en(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.hypot(e,r,n,i)}function rn(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}function nn(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function on(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}function an(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=r*r+n*n+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=r*a,t[1]=n*a,t[2]=i*a,t[3]=o*a,t}function sn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function un(t,e,r,n){var i=r[0]*n[1]-r[1]*n[0],o=r[0]*n[2]-r[2]*n[0],a=r[0]*n[3]-r[3]*n[0],s=r[1]*n[2]-r[2]*n[1],u=r[1]*n[3]-r[3]*n[1],c=r[2]*n[3]-r[3]*n[2],l=e[0],f=e[1],h=e[2],d=e[3];return t[0]=f*c-h*u+d*s,t[1]=-l*c+h*a-d*o,t[2]=l*u-f*a+d*i,t[3]=-l*s+f*o-h*i,t}function cn(t,e,r,n){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=o+n*(r[1]-o),t[2]=a+n*(r[2]-a),t[3]=s+n*(r[3]-s),t}function ln(t,e){var r,n,i,o,a,s;e=e||1;do{a=(r=2*v()-1)*r+(n=2*v()-1)*n}while(a>=1);do{s=(i=2*v()-1)*i+(o=2*v()-1)*o}while(s>=1);var u=Math.sqrt((1-a)/s);return t[0]=e*r,t[1]=e*n,t[2]=e*i*u,t[3]=e*o*u,t}function fn(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*a,t[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*a,t[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*a,t[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*a,t}function hn(t,e,r){var n=e[0],i=e[1],o=e[2],a=r[0],s=r[1],u=r[2],c=r[3],l=c*n+s*o-u*i,f=c*i+u*n-a*o,h=c*o+a*i-s*n,d=-a*n-s*i-u*o;return t[0]=l*c+d*-a+f*-u-h*-s,t[1]=f*c+d*-s+h*-a-l*-u,t[2]=h*c+d*-u+l*-s-f*-a,t[3]=e[3],t}function dn(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function pn(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function vn(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function gn(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=e[0],s=e[1],u=e[2],c=e[3];return Math.abs(r-a)<=d*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-s)<=d*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=d*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-c)<=d*Math.max(1,Math.abs(o),Math.abs(c))}var yn=zr,mn=Gr,bn=Hr,xn=Kr,wn=tn,Mn=en,kn=rn,Sn=function(){var t=qr();return function(e,r,n,i,o,a){var s,u;for(r||(r=4),n||(n=0),u=i?Math.min(i*r+n,e.length):e.length,s=n;s<u;s+=r)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}}();function An(){var t=new p(4);return p!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Rn(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function _n(t,e,r){r*=.5;var n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function En(t,e){var r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>d?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function On(t,e){var r=ii(t,e);return Math.acos(2*r*r-1)}function Tn(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=r[0],u=r[1],c=r[2],l=r[3];return t[0]=n*l+a*s+i*c-o*u,t[1]=i*l+a*u+o*s-n*c,t[2]=o*l+a*c+n*u-i*s,t[3]=a*l-n*s-i*u-o*c,t}function Cn(t,e,r){r*=.5;var n=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+a*s,t[1]=i*u+o*s,t[2]=o*u-i*s,t[3]=a*u-n*s,t}function Ln(t,e,r){r*=.5;var n=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u-o*s,t[1]=i*u+a*s,t[2]=o*u+n*s,t[3]=a*u-i*s,t}function Dn(t,e,r){r*=.5;var n=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+i*s,t[1]=i*u-n*s,t[2]=o*u+a*s,t[3]=a*u-o*s,t}function Pn(t,e){var r=e[0],n=e[1],i=e[2];return t[0]=r,t[1]=n,t[2]=i,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),t}function jn(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=Math.sqrt(r*r+n*n+i*i),s=Math.exp(o),u=a>0?s*Math.sin(a)/a:0;return t[0]=r*u,t[1]=n*u,t[2]=i*u,t[3]=s*Math.cos(a),t}function In(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=Math.sqrt(r*r+n*n+i*i),s=a>0?Math.atan2(a,o)/a:0;return t[0]=r*s,t[1]=n*s,t[2]=i*s,t[3]=.5*Math.log(r*r+n*n+i*i+o*o),t}function qn(t,e,r){return In(t,e),ni(t,t,r),jn(t,t),t}function Nn(t,e,r,n){var i,o,a,s,u,c=e[0],l=e[1],f=e[2],h=e[3],p=r[0],v=r[1],g=r[2],y=r[3];return(o=c*p+l*v+f*g+h*y)<0&&(o=-o,p=-p,v=-v,g=-g,y=-y),1-o>d?(i=Math.acos(o),a=Math.sin(i),s=Math.sin((1-n)*i)/a,u=Math.sin(n*i)/a):(s=1-n,u=n),t[0]=s*c+u*p,t[1]=s*l+u*v,t[2]=s*f+u*g,t[3]=s*h+u*y,t}function Fn(t){var e=v(),r=v(),n=v(),i=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t}function Un(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=r*r+n*n+i*i+o*o,s=a?1/a:0;return t[0]=-r*s,t[1]=-n*s,t[2]=-i*s,t[3]=o*s,t}function Bn(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function Vn(t,e){var r,n=e[0]+e[4]+e[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;r=Math.sqrt(e[3*i+i]-e[3*o+o]-e[3*a+a]+1),t[i]=.5*r,r=.5/r,t[3]=(e[3*o+a]-e[3*a+o])*r,t[o]=(e[3*o+i]+e[3*i+o])*r,t[a]=(e[3*a+i]+e[3*i+a])*r}return t}function zn(t,e,r,n){var i=.5*Math.PI/180;e*=i,r*=i,n*=i;var o=Math.sin(e),a=Math.cos(e),s=Math.sin(r),u=Math.cos(r),c=Math.sin(n),l=Math.cos(n);return t[0]=o*u*l-a*s*c,t[1]=a*s*l+o*u*c,t[2]=a*u*c-o*s*l,t[3]=a*u*l+o*s*c,t}function Gn(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var Hn,Wn,Yn,Xn,Jn,Qn,Zn=Nr,$n=Fr,Kn=Ur,ti=Br,ei=Vr,ri=Tn,ni=Zr,ii=sn,oi=cn,ai=en,si=ai,ui=rn,ci=ui,li=an,fi=vn,hi=gn,di=(Hn=Ve(),Wn=He(1,0,0),Yn=He(0,1,0),function(t,e,r){var n=fr(e,r);return n<-.999999?(hr(Hn,Wn,e),Pr(Hn)<1e-6&&hr(Hn,Yn,e),lr(Hn,Hn),_n(t,Hn,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(hr(Hn,e,r),t[0]=Hn[0],t[1]=Hn[1],t[2]=Hn[2],t[3]=1+n,li(t,t))}),pi=(Xn=An(),Jn=An(),function(t,e,r,n,i,o){return Nn(Xn,e,i,o),Nn(Jn,r,n,o),Nn(t,Xn,Jn,2*o*(1-o)),t}),vi=(Qn=yt(),function(t,e,r,n){return Qn[0]=r[0],Qn[3]=r[1],Qn[6]=r[2],Qn[1]=n[0],Qn[4]=n[1],Qn[7]=n[2],Qn[2]=-e[0],Qn[5]=-e[1],Qn[8]=-e[2],li(t,Vn(t,Qn))});function gi(){var t=new p(8);return p!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t}function yi(t){var e=new p(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e}function mi(t,e,r,n,i,o,a,s){var u=new p(8);return u[0]=t,u[1]=e,u[2]=r,u[3]=n,u[4]=i,u[5]=o,u[6]=a,u[7]=s,u}function bi(t,e,r,n,i,o,a){var s=new p(8);s[0]=t,s[1]=e,s[2]=r,s[3]=n;var u=.5*i,c=.5*o,l=.5*a;return s[4]=u*n+c*r-l*e,s[5]=c*n+l*t-u*r,s[6]=l*n+u*e-c*t,s[7]=-u*t-c*e-l*r,s}function xi(t,e,r){var n=.5*r[0],i=.5*r[1],o=.5*r[2],a=e[0],s=e[1],u=e[2],c=e[3];return t[0]=a,t[1]=s,t[2]=u,t[3]=c,t[4]=n*c+i*u-o*s,t[5]=i*c+o*a-n*u,t[6]=o*c+n*s-i*a,t[7]=-n*a-i*s-o*u,t}function wi(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t}function Mi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function ki(t,e){var r=An();Me(r,e);var n=new p(3);return xe(n,e),xi(t,r,n),t}function Si(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}function Ai(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function Ri(t,e,r,n,i,o,a,s,u){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t}var _i=Kn;function Ei(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t}var Oi=Kn;function Ti(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t}function Ci(t,e){var r=e[4],n=e[5],i=e[6],o=e[7],a=-e[0],s=-e[1],u=-e[2],c=e[3];return t[0]=2*(r*c+o*a+n*u-i*s),t[1]=2*(n*c+o*s+i*a-r*u),t[2]=2*(i*c+o*u+r*s-n*a),t}function Li(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=.5*r[0],u=.5*r[1],c=.5*r[2],l=e[4],f=e[5],h=e[6],d=e[7];return t[0]=n,t[1]=i,t[2]=o,t[3]=a,t[4]=a*s+i*c-o*u+l,t[5]=a*u+o*s-n*c+f,t[6]=a*c+n*u-i*s+h,t[7]=-n*s-i*u-o*c+d,t}function Di(t,e,r){var n=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=s*a+l*n+u*o-c*i,h=u*a+l*i+c*n-s*o,d=c*a+l*o+s*i-u*n,p=l*a-s*n-u*i-c*o;return Cn(t,e,r),n=t[0],i=t[1],o=t[2],a=t[3],t[4]=f*a+p*n+h*o-d*i,t[5]=h*a+p*i+d*n-f*o,t[6]=d*a+p*o+f*i-h*n,t[7]=p*a-f*n-h*i-d*o,t}function Pi(t,e,r){var n=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=s*a+l*n+u*o-c*i,h=u*a+l*i+c*n-s*o,d=c*a+l*o+s*i-u*n,p=l*a-s*n-u*i-c*o;return Ln(t,e,r),n=t[0],i=t[1],o=t[2],a=t[3],t[4]=f*a+p*n+h*o-d*i,t[5]=h*a+p*i+d*n-f*o,t[6]=d*a+p*o+f*i-h*n,t[7]=p*a-f*n-h*i-d*o,t}function ji(t,e,r){var n=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=s*a+l*n+u*o-c*i,h=u*a+l*i+c*n-s*o,d=c*a+l*o+s*i-u*n,p=l*a-s*n-u*i-c*o;return Dn(t,e,r),n=t[0],i=t[1],o=t[2],a=t[3],t[4]=f*a+p*n+h*o-d*i,t[5]=h*a+p*i+d*n-f*o,t[6]=d*a+p*o+f*i-h*n,t[7]=p*a-f*n-h*i-d*o,t}function Ii(t,e,r){var n=r[0],i=r[1],o=r[2],a=r[3],s=e[0],u=e[1],c=e[2],l=e[3];return t[0]=s*a+l*n+u*o-c*i,t[1]=u*a+l*i+c*n-s*o,t[2]=c*a+l*o+s*i-u*n,t[3]=l*a-s*n-u*i-c*o,s=e[4],u=e[5],c=e[6],l=e[7],t[4]=s*a+l*n+u*o-c*i,t[5]=u*a+l*i+c*n-s*o,t[6]=c*a+l*o+s*i-u*n,t[7]=l*a-s*n-u*i-c*o,t}function qi(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=r[0],u=r[1],c=r[2],l=r[3];return t[0]=n*l+a*s+i*c-o*u,t[1]=i*l+a*u+o*s-n*c,t[2]=o*l+a*c+n*u-i*s,t[3]=a*l-n*s-i*u-o*c,s=r[4],u=r[5],c=r[6],l=r[7],t[4]=n*l+a*s+i*c-o*u,t[5]=i*l+a*u+o*s-n*c,t[6]=o*l+a*c+n*u-i*s,t[7]=a*l-n*s-i*u-o*c,t}function Ni(t,e,r,n){if(Math.abs(n)<d)return Si(t,e);var i=Math.hypot(r[0],r[1],r[2]);n*=.5;var o=Math.sin(n),a=o*r[0]/i,s=o*r[1]/i,u=o*r[2]/i,c=Math.cos(n),l=e[0],f=e[1],h=e[2],p=e[3];t[0]=l*c+p*a+f*u-h*s,t[1]=f*c+p*s+h*a-l*u,t[2]=h*c+p*u+l*s-f*a,t[3]=p*c-l*a-f*s-h*u;var v=e[4],g=e[5],y=e[6],m=e[7];return t[4]=v*c+m*a+g*u-y*s,t[5]=g*c+m*s+y*a-v*u,t[6]=y*c+m*u+v*s-g*a,t[7]=m*c-v*a-g*s-y*u,t}function Fi(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t}function Ui(t,e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=r[4],u=r[5],c=r[6],l=r[7],f=e[4],h=e[5],d=e[6],p=e[7],v=r[0],g=r[1],y=r[2],m=r[3];return t[0]=n*m+a*v+i*y-o*g,t[1]=i*m+a*g+o*v-n*y,t[2]=o*m+a*y+n*g-i*v,t[3]=a*m-n*v-i*g-o*y,t[4]=n*l+a*s+i*c-o*u+f*m+p*v+h*y-d*g,t[5]=i*l+a*u+o*s-n*c+h*m+p*g+d*v-f*y,t[6]=o*l+a*c+n*u-i*s+d*m+p*y+f*g-h*v,t[7]=a*l-n*s-i*u-o*c+p*m-f*v-h*g-d*y,t}var Bi=Ui;function Vi(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t}var zi=ii;function Gi(t,e,r,n){var i=1-n;return zi(e,r)<0&&(n=-n),t[0]=e[0]*i+r[0]*n,t[1]=e[1]*i+r[1]*n,t[2]=e[2]*i+r[2]*n,t[3]=e[3]*i+r[3]*n,t[4]=e[4]*i+r[4]*n,t[5]=e[5]*i+r[5]*n,t[6]=e[6]*i+r[6]*n,t[7]=e[7]*i+r[7]*n,t}function Hi(t,e){var r=Ji(e);return t[0]=-e[0]/r,t[1]=-e[1]/r,t[2]=-e[2]/r,t[3]=e[3]/r,t[4]=-e[4]/r,t[5]=-e[5]/r,t[6]=-e[6]/r,t[7]=e[7]/r,t}function Wi(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=e[7],t}var Yi=ai,Xi=Yi,Ji=ui,Qi=Ji;function Zi(t,e){var r=Ji(e);if(r>0){r=Math.sqrt(r);var n=e[0]/r,i=e[1]/r,o=e[2]/r,a=e[3]/r,s=e[4],u=e[5],c=e[6],l=e[7],f=n*s+i*u+o*c+a*l;t[0]=n,t[1]=i,t[2]=o,t[3]=a,t[4]=(s-n*f)/r,t[5]=(u-i*f)/r,t[6]=(c-o*f)/r,t[7]=(l-a*f)/r}return t}function $i(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"}function Ki(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]}function to(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],l=e[0],f=e[1],h=e[2],p=e[3],v=e[4],g=e[5],y=e[6],m=e[7];return Math.abs(r-l)<=d*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(n-f)<=d*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-h)<=d*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(o-p)<=d*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-v)<=d*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(s-g)<=d*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-y)<=d*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-m)<=d*Math.max(1,Math.abs(c),Math.abs(m))}function eo(){var t=new p(2);return p!=Float32Array&&(t[0]=0,t[1]=0),t}function ro(t){var e=new p(2);return e[0]=t[0],e[1]=t[1],e}function no(t,e){var r=new p(2);return r[0]=t,r[1]=e,r}function io(t,e){return t[0]=e[0],t[1]=e[1],t}function oo(t,e,r){return t[0]=e,t[1]=r,t}function ao(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function so(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function uo(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function co(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function lo(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function fo(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function ho(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function po(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}function vo(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function go(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function yo(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function mo(t,e){var r=e[0]-t[0],n=e[1]-t[1];return Math.hypot(r,n)}function bo(t,e){var r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function xo(t){var e=t[0],r=t[1];return Math.hypot(e,r)}function wo(t){var e=t[0],r=t[1];return e*e+r*r}function Mo(t,e){return t[0]=-e[0],t[1]=-e[1],t}function ko(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function So(t,e){var r=e[0],n=e[1],i=r*r+n*n;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function Ao(t,e){return t[0]*e[0]+t[1]*e[1]}function Ro(t,e,r){var n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t}function _o(t,e,r,n){var i=e[0],o=e[1];return t[0]=i+n*(r[0]-i),t[1]=o+n*(r[1]-o),t}function Eo(t,e){e=e||1;var r=2*v()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t}function Oo(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i,t[1]=r[1]*n+r[3]*i,t}function To(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Co(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[3]*i+r[6],t[1]=r[1]*n+r[4]*i+r[7],t}function Lo(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t}function Do(t,e,r,n){var i=e[0]-r[0],o=e[1]-r[1],a=Math.sin(n),s=Math.cos(n);return t[0]=i*s-o*a+r[0],t[1]=i*a+o*s+r[1],t}function Po(t,e){var r=t[0],n=t[1],i=e[0],o=e[1],a=Math.sqrt(r*r+n*n)*Math.sqrt(i*i+o*o),s=a&&(r*i+n*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function jo(t){return t[0]=0,t[1]=0,t}function Io(t){return"vec2("+t[0]+", "+t[1]+")"}function qo(t,e){return t[0]===e[0]&&t[1]===e[1]}function No(t,e){var r=t[0],n=t[1],i=e[0],o=e[1];return Math.abs(r-i)<=d*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-o)<=d*Math.max(1,Math.abs(n),Math.abs(o))}var Fo=xo,Uo=so,Bo=uo,Vo=co,zo=mo,Go=bo,Ho=wo,Wo=function(){var t=eo();return function(e,r,n,i,o,a){var s,u;for(r||(r=2),n||(n=0),u=i?Math.min(i*r+n,e.length):e.length,s=n;s<u;s+=r)t[0]=e[s],t[1]=e[s+1],o(t,t,a),e[s]=t[0],e[s+1]=t[1];return e}}()},function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(e)}t.exports=r},function(t,e,r){var n=r(108),i=r(158),o=r(79),a=r(110);t.exports=function(t,e){return n(t)||i(t,e)||o(t,e)||a()}},function(t,e,r){var n=r(159),i=r(111),o=r(79),a=r(160);t.exports=function(t){return n(t)||i(t)||o(t)||a()}},function(t,e,r){"use strict";function n(t,e){var r=t.trim().match(/^([\d.]+)(px|pt|pc|in|cm|mm|em|ex|rem|q|vw|vh|vmax|vmin)$/),i=t=r?{size:parseFloat(r[1]),unit:r[2]}:{size:parseFloat(t),unit:"px"},o=i.size,a=i.unit;if("pt"===a)o/=.75;else if("pc"===a)o*=16;else if("in"===a)o*=96;else if("cm"===a)o*=96/2.54;else if("mm"===a)o*=96/25.4;else if("em"===a||"rem"===a||"ex"===a){if(!e&&"function"==typeof getComputedStyle&&"undefined"!=typeof document){var s=getComputedStyle(document.documentElement).fontSize;e=s?n(s,16):16}o*=e,"ex"===a&&(o/=2)}else if("q"===a)o*=96/25.4/4;else if("vw"===a||"vh"===a){if("undefined"!=typeof document)o*=("vw"===a?window.innerWidth||document.documentElement.clientWidth:window.innerHeight||document.documentElement.clientHeight)/100}else if(("vmax"===a||"vmin"===a)&&"undefined"!=typeof document){var u=window.innerWidth||document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight;o*="vmax"===a?Math.max(u,c)/100:Math.min(u,c)/100}return o}function i(t){return null==t?t:String(t)}function o(t){if(null==t)return t;if("string"==typeof t&&(t=n(t)),!Number.isFinite(t))throw new TypeError("Invalid value");return t}function a(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return""===t?null:("string"==typeof t&&(t=t.split(/[\s,]+/g)),Array.isArray(t)&&(e&&(t=t.map(o)),1===t.length)?t[0]:t)}function s(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return null==t&&null==e||t===e}r.d(e,"b",(function(){return n})),r.d(e,"e",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return s})),r(0).glMatrix.setMatrixArrayType(Array)},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},function(t,e,r){var n=r(46),i=r(36);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?i(t):e}},function(t,e,r){var n=r(80);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},function(t,e,r){var n=r(112);function i(e,r,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=i=Reflect.get:t.exports=i=function(t,e,r){var i=n(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(r):o.value}},i(e,r,o||e)}t.exports=i},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";r.r(e),r.d(e,"create",(function(){return o})),r.d(e,"clone",(function(){return i})),r.d(e,"copy",(function(){return a})),r.d(e,"scaleAndAdd",(function(){return s})),r.d(e,"dot",(function(){return u})),r.d(e,"rotate",(function(){return c})),r.d(e,"cross",(function(){return l})),r.d(e,"sub",(function(){return f})),r.d(e,"add",(function(){return h})),r.d(e,"computeMiter",(function(){return g})),r.d(e,"normal",(function(){return y})),r.d(e,"direction",(function(){return m}));var n=r(0);function i(t){return[t[0],t[1]]}function o(){return[0,0]}r(0).glMatrix.setMatrixArrayType(Array);var a=n.vec2.copy,s=n.vec2.scaleAndAdd,u=n.vec2.dot,c=n.vec2.rotate,l=n.vec2.cross,f=n.vec2.sub,h=n.vec2.add,d=n.vec2.normalize,p=n.vec2.set,v=[0,0];function g(t,e,r,n,i){return h(t,r,n),d(t,t),p(e,-t[1],t[0]),p(v,-r[1],r[0]),i/u(e,v)}function y(t,e){return p(t,-e[1],e[0]),t}function m(t,e,r){return f(t,e,r),d(t,t),t}},function(t,e,r){"use strict";r(0).glMatrix.setMatrixArrayType(Array);var n=new Map;function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t=t.toLowerCase();var i=n.get(t);if(!i)throw new TypeError("Invalid node: ".concat(t));var o=new i(e);return r.forEach((function(t){o.appendChild(t)})),o}var o={registerNode:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;if(e=e.toLowerCase(),n.has(e))throw new TypeError("Cannot registerNode, ".concat(e," has been taken."));n.set(e,t),Object.defineProperties(t.prototype,{nodeType:{value:r},tagName:{value:e.toUpperCase()},nodeName:{value:e},ownerDocument:{value:o},namespaceURI:{value:"http://spritejs.org/".concat(e)}})},createElement:i,createElementNS:function(t,e){return i(e)},isSpriteNode:function(t){return n.has(t.toLowerCase())}};e.a=o},function(t,e,r){"use strict";r.d(e,"e",(function(){return Ve})),r.d(e,"b",(function(){return jt})),r.d(e,"c",(function(){return Me})),r.d(e,"d",(function(){return et})),r.d(e,"f",(function(){return b.a})),r.d(e,"a",(function(){return y.a}));var n=r(2),i=r.n(n),o=r(3),a=r.n(o),s=r(5),u=r.n(s),c=r(6),l=r.n(c),f=r(77),h=r(0),d=r(15),p=r.n(d),v=r(25),g=r.n(v),y=r(32),m=r(27),b=r(51);function x(t,e,r){return t*(1-r)+e*r}function w(t,e){var r=i()(t,2),n=r[0],o=r[1];return[n*e[0]+o*e[2]+e[4],n*e[1]+o*e[3]+e[5]]}function M(t,e){var r=t.canvas;t.save(),t.filter=e,t.drawImage(r,0,0,r.width,r.height),t.restore()}function k(t,e){var r=/rgba\((\d+),(\d+),(\d+),(\d+)\)/;t=t.match(r).slice(1,5).map(Number);for(var n=[],i=(e=e.match(r).slice(1,5).map(Number))[3],o=0;o<4;o++)n[o]=x(t[o],e[o],i);return"rgba(".concat(n.join(),")")}function S(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;e.save();var u=!1,c=!1;if(e.globalAlpha=t.getOpacity(),t._updateMatrix){var l=t.transformScale/t.contours.scale;l>1.5&&t.accurate(t.transformScale)}if(t.lineWidth){var f=t.gradient&&t.gradient.stroke;if(f){var d=f,p=d.vector,v=d.colors;if(6===p.length)f=e.createRadialGradient.apply(e,a()(p));else if(4===p.length)f=e.createLinearGradient.apply(e,a()(p));else{if(3!==p.length)throw new TypeError("Invalid vector dimension.");f=e.createCircularGradient.apply(e,a()(p))}v.forEach((function(t){var e=t.offset,r=t.color,n=Object(m.a)(r);i&&(n=k(n,i)),f.addColorStop(e,n)})),e.strokeStyle=f,u=!0}else t.strokeStyle&&(e.strokeStyle=i?k(t.strokeStyle,i):t.strokeStyle,u=!0)}u&&(e.lineWidth=t.lineWidth,e.lineJoin=t.lineJoin,e.lineCap=t.lineCap,e.miterLimit=t.miterLimit,t.lineDash&&(e.setLineDash(t.lineDash),t.lineDashOffset&&(e.lineDashOffset=t.lineDashOffset)));var g=t.gradient&&t.gradient.fill;if(g){var y=g,x=y.vector,w=y.colors;if(6===x.length)g=e.createRadialGradient.apply(e,a()(x));else if(4===x.length)g=e.createLinearGradient.apply(e,a()(x));else{if(3!==x.length)throw new TypeError("Invalid vector dimension.");g=e.createCircularGradient.apply(e,a()(x))}w.forEach((function(t){var e=t.offset,r=t.color,n=Object(m.a)(r);i&&(n=k(n,i)),g.addColorStop(e,n)})),e.fillStyle=g,c=!0}else t.fillStyle&&(e.fillStyle=n?k(t.fillStyle,n):t.fillStyle,c=!0);if(s&&e.transform.apply(e,a()(s)),e.transform.apply(e,a()(t.transformMatrix)),t.clipPath){var S=t.clipPath,A=new Path2D(S);e.clip(A)}var R=t.contours.length;if(t.contours.forEach((function(r,n){var i=r.length,s=i>1&&h.vec2.equals(r[0],r[i-1]),l=n===R-1&&t.texture;if(r&&i>0){if(c||u||l){e.beginPath(),e.moveTo.apply(e,a()(r[0]));for(var f=1;f<i;f++)f===i-1&&s?e.closePath():e.lineTo.apply(e,a()(r[f]))}if(c&&e.fill(t.fillRule),l){e.save(),e.clip();var d=t.texture,p=d.image,v=d.options;if(o&&(p=o),v.repeat&&console.warn("Context 2D not supported image repeat yet."),p.font){v.scale&&console.warn("Context 2D not supported text scale yet."),v.srcRect&&console.warn("Context 2D not supported text srcRect yet.");var g=p,y=g.font,x=g.fillColor,w=g.strokeColor,M=g.strokeWidth,k=g.text;x||w||(x="#000"),Array.isArray(x)&&(x=Object(m.a)(x)),Array.isArray(w)&&(w=Object(m.a)(w)),e.font=y;var S=e.measureText(k).width,A=Object(b.a)(y),_=Math.max(A.pxLineHeight,1.13*A.pxHeight);e.textAlign="center",e.textBaseline="middle";var E=v.rect,O=E[0]+.5*_+.06*A.pxHeight,T=E[1]+.5*S;null!=E[2]&&e.scale(E[2]/S,E[3]/_),x&&(e.fillStyle=x,e.fillText(k,T,O)),w&&(e.lineWidth=M,e.strokeStyle=w,e.strokeText(k,T,O))}else{var C=v.rect,L=v.srcRect;v.scale&&(C=[0,0,e.canvas.width,e.canvas.height]),v.rotated&&C&&(C=[-C[1],C[0],C[3],C[2]]),L&&(C=C||[0,0,L[2],L[3]]),v.rotated&&(e.translate(0,C?C[2]:p.width),e.rotate(-.5*Math.PI)),L?e.drawImage.apply(e,[p].concat(a()(L),a()(C))):C?e.drawImage.apply(e,[p].concat(a()(C))):e.drawImage(p,0,0)}e.restore()}u&&e.stroke()}})),e.restore(),r){var _=t.filter;_&&M(e,_)}}r(0).glMatrix.setMatrixArrayType(Array),r(0).glMatrix.setMatrixArrayType(Array),r(0).glMatrix.setMatrixArrayType(Array);var A=Symbol("transform"),R=function(){function t(e,r){u()(this,t),this.context=e.getContext("2d"),this.options=r,this[A]=[1,0,0,1,0,0]}var e;return l()(t,[{key:"createTexture",value:function(t){return{_img:t}}},{key:"loadTexture",value:(e=g()(p.a.mark((function t(e){var r;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,y.a.loadImage(e,{useImageBitmap:!1});case 2:return r=t.sent,t.abrupt("return",this.createTexture(r));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"deleteTexture",value:function(t){return t}},{key:"clear",value:function(t,e,r,n){var i=this.context;t=t||0,e=e||0,r=r||i.canvas.width-t,n=n||i.canvas.height-e,i.clearRect(t,e,r,n)}},{key:"drawMeshCloud",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.clear,n=void 0!==r&&r,i=[],o=0;o<t.amount;o++){var a=t.getTransform(o),s=t.getTextureFrame(o);s&&(s=s._img);var u=t.getFilter(o),c=t.getCloudRGBA(o),l=c.fill,f=c.stroke;i.push({mesh:t.mesh,_cloudOptions:[l,f,s,a,u]})}t.beforeRender&&t.beforeRender(this.context,t),this.drawMeshes(i,{clear:n,hook:!1}),t.afterRender&&t.afterRender(this.context,t)}},{key:"drawMeshes",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.clear,o=void 0!==n&&n,s=r.hook,u=void 0===s||s,c=this.context;o&&c.clearRect(0,0,c.canvas.width,c.canvas.height);var l=null,f=c.canvas,h=f.width,d=f.height,p=t.length;t.forEach((function(t,r){var n,o,s,f,v;if(u&&t.beforeRender&&t.beforeRender(c,t),t._cloudOptions){var g=i()(t._cloudOptions,5);n=g[0],o=g[1],s=g[2],f=g[3],v=g[4],t=t.mesh}var m,b=t.filter;if(v&&(b=b?"".concat(b," ").concat(v):v),b&&!e.filterBuffer&&!1!==e.filterBuffer){var x=y.a.createCanvas(h,d);e.filterBuffer=!!x&&x.getContext("2d")}(l&&l!==b&&(M(e.filterBuffer,l),c.drawImage(e.filterBuffer.canvas,0,0,h,d),e.filterBuffer.clearRect(0,0,h,d),l=null),b&&e.filterBuffer)?(e.filterBuffer.save(),(m=e.filterBuffer).transform.apply(m,a()(e[A])),S(t,e.filterBuffer,!1,n,o,s,f),e.filterBuffer.restore(),r===p-1?(M(e.filterBuffer,b),c.drawImage(e.filterBuffer.canvas,0,0,h,d),e.filterBuffer.clearRect(0,0,h,d)):l=b):(c.save(),c.transform.apply(c,a()(e[A])),S(t,c,!1,n,o,s,f),c.restore());u&&t.afterRender&&t.afterRender(c,t)}))}},{key:"setTransform",value:function(t){this[A]=t}}]),t}();r(0).glMatrix.setMatrixArrayType(Array);var _={UNSIGNED_BYTE:Uint8Array,UNSIGNED_SHORT:Uint16Array,BYTE:Int8Array,SHORT:Int16Array,FLOAT:Float32Array};function E(t,e){var r=[],n=[],o=[],s=[],u=[],c=[],l=0,f=0,h=t[0]&&t[0].uniforms||{},d=t[0]?t[0].program:null;e&&(!function(t,e){for(var r=0,n=0,o=0,a=0,s=0,u=0,c=0,l=t[0].program,f=0;f<t.length;f++){var h=t[f].meshData;if(h){c+=h.positions.length;var d=h.positions[0].length;r+=h.positions.length*d,n+=3*h.cells.length,u+=4*h.attributes.a_color.length;var p=h.textureCoord;p&&(o+=p.length*p[0].length);var v=h.attributes.a_sourceRect;v&&(a+=4*v.length);var g=h.attributes.a_clipUV;g&&(s+=2*g.length)}}if((!e.positions||e.positions.length<r)&&(e.positions=new Float32Array(r)),(!e.cells||e.cells.length<n)&&(e.cells=new Uint16Array(n)),o&&(!e.textureCoord||e.textureCoord.length<o)&&(e.textureCoord=new Float32Array(o)),(!e.a_color||e.a_color.length<u)&&(e.a_color=new Uint8Array(u)),a&&(!e.a_sourceRect||e.a_sourceRect.length<a)&&(e.a_sourceRect=new Float32Array(a)),s&&(!e.a_clipUV||e.a_clipUV.length<s)&&(e.a_clipUV=new Float32Array(s)),l)for(var y=Object.entries(l._attribute),m=l._attribOpts||{},b=0;b<y.length;b++){var x=i()(y[b],2),w=x[0],M=x[1];if("a_color"!==w&&"a_sourceRect"!==w&&"ignored"!==M){var k=m[w]?m[w].type:"FLOAT",S=_[k],A=M.size*c;(!e[w]||e[w].length<A)&&(e[w]=new S(A))}}}(t,e),n=e.cells,r=e.positions,o=e.textureCoord,s=e.a_color,u=e.a_sourceRect,c=e.a_clipUV);for(var p=!1,v=!1,g={},y=0;y<t.length;y++){var m=t[y];if(m){var b;if(m.meshData&&(m=m.meshData),e)for(var x=m.positions,w=0;w<x.length;w++)for(var M=x[w],k=3*(l+w),S=0;S<M.length;S++)r[k+S]=M[S];else(b=r).push.apply(b,a()(m.positions));for(var A,R,E,O,T=m.cells,C=0;C<T.length;C++){var L=T[C];if(e){var D=3*(f+C);n[D]=L[0]+l,n[D+1]=L[1]+l,n[D+2]=L[2]+l}else n.push([L[0]+l,L[1]+l,L[2]+l])}if(e)for(var P=m.attributes.a_color,j=0;j<P.length;j++){var I=P[j],q=4*(l+j);s[q]=I[0],s[q+1]=I[1],s[q+2]=I[2],s[q+3]=I[3]}else(A=s).push.apply(A,a()(m.attributes.a_color));if(m.attributes.a_sourceRect)if(p=!0,e)for(var N=m.attributes.a_sourceRect,F=0;F<N.length;F++){var U=N[F],B=4*(l+F);u[B]=U[0],u[B+1]=U[1],u[B+2]=U[2],u[B+3]=U[3]}else(R=u).push.apply(R,a()(m.attributes.a_sourceRect));if(m.attributes.a_clipUV)if(v=!0,e)for(var V=m.attributes.a_clipUV,z=0;z<V.length;z++){var G=V[z],H=2*(l+z);c[H]=G[0],c[H+1]=G[1]}else(E=c).push.apply(E,a()(m.attributes.a_clipUV));if(m.textureCoord)if(e)for(var W=m.textureCoord,Y=0;Y<W.length;Y++)for(var X=W[Y],J=3*(l+Y),Q=0;Q<X.length;Q++)o[J+Q]=X[Q];else(O=o).push.apply(O,a()(m.textureCoord));if(d)for(var Z=Object.entries(d._attribute),$=0;$<Z.length;$++){var K=i()(Z[$],2),tt=K[0],et=K[1];if("a_color"!==tt&&"a_sourceRect"!==tt&&"ignored"!==et)if(g[tt]=[],e){g[tt]=e[tt];for(var rt=m.attributes[tt],nt=rt[0].length,it=0;it<rt.length;it++)for(var ot=rt[it],at=nt*(l+it),st=0;st<ot.length;st++)g[tt][at+st]=ot[st]}else{var ut;(ut=g[tt]).push.apply(ut,a()(m.attributes[tt]))}}l+=m.positions.length,f+=m.cells.length}}g.a_color=s,p&&u&&u.length>0&&(g.a_sourceRect=u);var ct={positions:r,cells:n,attributes:g,uniforms:h,cellsCount:3*f,program:d};return o&&o.length&&(ct.textureCoord=o),v&&c.length>0&&(g.a_clipUV=c),ct}var O=r(10),T=r.n(O);function C(t,e){var r=[],n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],h=t[9],d=t[10],p=t[11],v=t[12],g=t[13],y=t[14],m=t[15],b=t[16],x=t[17],w=t[18],M=t[19],k=e[0],S=e[1],A=e[2],R=e[3],_=e[4];return r[0]=k*n+S*u+A*d+R*m,r[1]=k*i+S*c+A*p+R*b,r[2]=k*o+S*l+A*v+R*x,r[3]=k*a+S*f+A*g+R*w,r[4]=k*s+S*h+A*y+R*M+_,k=e[5],S=e[6],A=e[7],R=e[8],_=e[9],r[5]=k*n+S*u+A*d+R*m,r[6]=k*i+S*c+A*p+R*b,r[7]=k*o+S*l+A*v+R*x,r[8]=k*a+S*f+A*g+R*w,r[9]=k*s+S*h+A*y+R*M+_,k=e[10],S=e[11],A=e[12],R=e[13],_=e[14],r[10]=k*n+S*u+A*d+R*m,r[11]=k*i+S*c+A*p+R*b,r[12]=k*o+S*l+A*v+R*x,r[13]=k*a+S*f+A*g+R*w,r[14]=k*s+S*h+A*y+R*M+_,k=e[15],S=e[16],A=e[17],R=e[18],_=e[19],r[15]=k*n+S*u+A*d+R*m,r[16]=k*i+S*c+A*p+R*b,r[17]=k*o+S*l+A*v+R*x,r[18]=k*a+S*f+A*g+R*w,r[19]=k*s+S*h+A*y+R*M+_,r}function L(t){var e=.2126*(t=function(t,e,r){if(e>r){var n=[r,e];e=n[0],r=n[1]}return t<e?e:t>r?r:t}(0,1,t)),r=.7152*t,n=.0722*t;return[e+1-t,r,n,0,0,e,r+1-t,n,0,0,e,r,n+1-t,0,0,0,0,0,1,0]}function D(t){return[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0]}function P(t){var e=.2126*(1-t),r=.7152*(1-t),n=.0722*(1-t);return[e+t,r,n,0,0,e,r+t,n,0,0,e,r,n+t,0,0,0,0,0,1,0]}function j(t){var e=.5*(1-t);return[t,0,0,0,e,0,t,0,0,e,0,0,t,0,e,0,0,0,1,0]}function I(t){var e=1-2*t;return[e,0,0,0,t,0,e,0,0,t,0,0,e,0,t,0,0,0,1,0]}function q(t){return[1-.607*t,.769*t,.189*t,0,0,.349*t,1-.314*t,.168*t,0,0,.272*t,.534*t,1-.869*t,0,0,0,0,0,1,0]}function N(t){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,t,0]}function F(t){var e=t/180*Math.PI,r=Math.cos(e),n=Math.sin(e),i=.2126,o=.7152,a=.0722;return[i+r*(1-i)+n*-i,o+r*-o+n*-o,a+r*-a+n*(1-a),0,0,i+r*-i+.143*n,o+r*(1-o)+.14*n,a+r*-a+-.283*n,0,0,i+r*-i+-.7874*n,o+r*-o+n*o,a+r*(1-a)+n*a,0,0,0,0,0,1,0]}r(0).glMatrix.setMatrixArrayType(Array);var U=r(35),B=r.n(U);function V(t){var e=B()(t);if(!e||!e.length)throw new TypeError("Invalid color value.");return[e[0]/255,e[1]/255,e[2]/255,e[3]]}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function G(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z(Object(r),!0).forEach((function(e){T()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r(0).glMatrix.setMatrixArrayType(Array),r(0).glMatrix.setMatrixArrayType(Array);var H=Symbol("mesh"),W=Symbol("count"),Y=Symbol("blend"),X=Symbol("filter"),J=Symbol("textures"),Q=Symbol("textureOptions"),Z=Symbol("cloudColor"),$=Symbol("cloudFilter"),K=Symbol("buffer");function tt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=new Float32Array(3*t),n=new Float32Array(3*t),i=new Float32Array(4*t),o=new Float32Array(4*t),a=new Float32Array(4*t),s=new Float32Array(4*t),u=new Float32Array(4*t),c=new Uint8Array(t),l=new Uint8Array(4*t),f=new Uint8Array(4*t);return e&&(r.set(e.transform0,0),n.set(e.transform1,0),i.set(e.color0,0),o.set(e.color1,0),a.set(e.color2,0),s.set(e.color3,0),u.set(e.color4,0),c.set(e.frameIndex,0),l.set(e.fillColor,0),f.set(e.strokeColor,0)),{bufferSize:t,transform0:r,transform1:n,color0:i,color1:o,color2:a,color3:s,color4:u,frameIndex:c,fillColor:l,strokeColor:f}}var et=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.buffer,o=void 0===i?1e3:i;u()(this,t),o=Math.max(o,r),this[W]=r,this[H]=e,this[K]=tt(o),this[J]=[],this[X]=[],this[Z]=!1,this[$]=!1,this[Y]=!1,this.initBuffer()}return l()(t,[{key:"initBuffer",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this[W],r=t;r<e;r++)this[K].transform0.set([1,0,0],3*r),this[K].transform1.set([0,1,0],3*r),this[K].frameIndex.set([-1],r),this[K].fillColor.set([0,0,0,0],4*r),this[K].strokeColor.set([0,0,0,0],4*r),this.setColorTransform(r,null)}},{key:"_getFilter",value:function(t){return this[X][t]=this[X][t]||[],this[X][t]}},{key:"getFilter",value:function(t){return this._getFilter(t).join(" ")}},{key:"canIgnore",value:function(){return this[H].canIgnore()}},{key:"delete",value:function(t){if(t>=this[W]||t<0)throw new Error("Out of range.");var e=this[K],r=e.transform0,n=e.transform1,i=e.color0,o=e.color1,a=e.color2,s=e.color3,u=e.color4,c=e.frameIndex,l=e.fillColor,f=e.strokeColor;for(var h in r.set(r.subarray(3*(t+1)),3*t),n.set(n.subarray(3*(t+1)),3*t),i.set(i.subarray(4*(t+1)),4*t),o.set(o.subarray(4*(t+1)),4*t),a.set(a.subarray(4*(t+1)),4*t),s.set(s.subarray(4*(t+1)),4*t),u.set(u.subarray(4*(t+1)),4*t),c.set(c.subarray(t+1),t),l.set(l.subarray(4*(t+1)),4*t),f.set(f.subarray(4*(t+1)),4*t),this[X])h===t?delete this[X][h]:h>t&&(this[X][h-1]=this[X][h],delete this[X][h]);this[W]--}},{key:"setColorTransform",value:function(t,e){if(t>=this[W]||t<0)throw new Error("Out of range.");t*=4;var r=this[K],n=r.color0,i=r.color1,o=r.color2,a=r.color3,s=r.color4;return null!=e?(n.set([e[0],e[5],e[10],e[15]],t),i.set([e[1],e[6],e[11],e[16]],t),o.set([e[2],e[7],e[12],e[17]],t),a.set([e[3],e[8],e[13],e[18]],t),s.set([e[4],e[9],e[14],e[19]],t),this[Y]=this[Y]||e[18]<1,this[$]=!0):(n.set([1,0,0,0],t),i.set([0,1,0,0],t),o.set([0,0,1,0],t),a.set([0,0,0,1],t),s.set([0,0,0,0],t)),this}},{key:"getColorTransform",value:function(t){if(t>=this[W]||t<0)throw new Error("Out of range.");t*=4;var e=this[K],r=e.color0,n=e.color1,i=e.color2,o=e.color3,a=e.color4;return[r[t],n[t],i[t],o[t],a[t],r[t+1],n[t+1],i[t+1],o[t+1],a[t+1],r[t+2],n[t+2],i[t+2],o[t+2],a[t+2],r[t+3],n[t+3],i[t+3],o[t+3],a[t+3]]}},{key:"transformColor",value:function(t,e){var r=this.getColorTransform(t);return r=C(r,e),this.setColorTransform(t,r),this}},{key:"setFillColor",value:function(t,e){if(t>=this[W]||t<0)throw new Error("Out of range.");"string"==typeof e&&(e=V(e)),e[3]>0&&(this[Z]=!0),this[K].fillColor.set(e.map((function(t){return Math.round(255*t)})),4*t)}},{key:"setStrokeColor",value:function(t,e){if(t>=this[W]||t<0)throw new Error("Out of range.");"string"==typeof e&&(e=V(e)),e[3]>0&&(this[Z]=!0),this[K].strokeColor.set(e.map((function(t){return Math.round(255*t)})),4*t)}},{key:"getCloudRGBA",value:function(t){if(t>=this[W]||t<0)throw new Error("Out of range.");t*=4;var e=this[K],r=e.fillColor,n=e.strokeColor,i=[r[t],r[t+1],r[t+2],r[t+3]],o=[n[t],n[t+1],n[t+2],n[t+3]];return i[3]/=255,o[3]/=255,{fill:"rgba(".concat(i.join(),")"),stroke:"rgba(".concat(o.join(),")")}}},{key:"grayscale",value:function(t,e){this.transformColor(t,L(e)),this._getFilter(t).push("grayscale(".concat(100*e,"%)"))}},{key:"brightness",value:function(t,e){this.transformColor(t,D(e)),this._getFilter(t).push("brightness(".concat(100*e,"%)"))}},{key:"saturate",value:function(t,e){this.transformColor(t,P(e)),this._getFilter(t).push("saturate(".concat(100*e,"%)"))}},{key:"contrast",value:function(t,e){this.transformColor(t,j(e)),this._getFilter(t).push("contrast(".concat(100*e,"%)"))}},{key:"invert",value:function(t,e){this.transformColor(t,I(e)),this._getFilter(t).push("invert(".concat(100*e,"%)"))}},{key:"sepia",value:function(t,e){this.transformColor(t,q(e)),this._getFilter(t).push("sepia(".concat(100*e,"%)"))}},{key:"opacity",value:function(t,e){this.transformColor(t,N(e)),this._getFilter(t).push("opacity(".concat(100*e,"%)"))}},{key:"hueRotate",value:function(t,e){this.transformColor(t,F(e)),this._getFilter(t).push("hue-rotate(".concat(e,"deg)"))}},{key:"setTransform",value:function(t,e){if(t>=this[W]||t<0)throw new Error("Out of range.");t*=3,null==e&&(e=[1,0,0,1,0,0]);var r=this[K],n=r.transform0,i=r.transform1;return n.set([e[0],e[2],e[4]],t),i.set([e[1],e[3],e[5]],t),this}},{key:"getTransform",value:function(t){if(t>=this[W]||t<0)throw new Error("Out of range.");t*=3;var e=this[K],r=e.transform0,n=e.transform1;return[r[t],n[t],r[t+1],n[t+1],r[t+2],n[t+2]]}},{key:"getTextureFrame",value:function(t){return this[J][this[K].frameIndex[t]]}},{key:"setTextureFrames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.length>12)throw new Error("Max frames exceed. Allow 12 frames.");if(t.length){var r=this[H];r.setTexture(t[0],e)}this[J]=t,this[Q]=e}},{key:"setFrameIndex",value:function(t,e){if(t>=this[W]||t<0)throw new Error("Out of range.");var r=this[J].length;if(r<=0)throw new Error("No frames");this[K].frameIndex[t]=e%r}},{key:"setProgram",value:function(t){this[H].setProgram(t)}},{key:"transform",value:function(t,e){var r=this.getTransform(t);return e=h.mat2d.multiply(Array.of(0,0,0,0,0,0),r,e),this.setTransform(t,e),this}},{key:"translate",value:function(t,e){var r=i()(e,2),n=r[0],o=r[1],a=h.mat2d.create();return a=h.mat2d.translate(Array.of(0,0,0,0,0,0),a,[n,o]),this.transform(t,a)}},{key:"rotate",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],n=i()(r,2),o=n[0],a=n[1],s=h.mat2d.create();return s=h.mat2d.translate(Array.of(0,0,0,0,0,0),s,[o,a]),s=h.mat2d.rotate(Array.of(0,0,0,0,0,0),s,e),s=h.mat2d.translate(Array.of(0,0,0,0,0,0),s,[-o,-a]),this.transform(t,s)}},{key:"scale",value:function(t,e){var r=i()(e,2),n=r[0],o=r[1],a=void 0===o?n:o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],u=i()(s,2),c=u[0],l=u[1],f=h.mat2d.create();return f=h.mat2d.translate(Array.of(0,0,0,0,0,0),f,[c,l]),f=h.mat2d.scale(Array.of(0,0,0,0,0,0),f,[n,a]),f=h.mat2d.translate(Array.of(0,0,0,0,0,0),f,[-c,-l]),this.transform(t,f)}},{key:"skew",value:function(t,e){var r=i()(e,2),n=r[0],o=r[1],a=void 0===o?n:o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],u=i()(s,2),c=u[0],l=u[1],f=h.mat2d.create();return f=h.mat2d.translate(Array.of(0,0,0,0,0,0),f,[c,l]),f=h.mat2d.multiply(Array.of(0,0,0,0,0,0),f,h.mat2d.fromValues(1,Math.tan(a),Math.tan(n),1,0,0)),f=h.mat2d.translate(Array.of(0,0,0,0,0,0),f,[-c,-l]),this.transform(t,f)}},{key:"isPointCollision",value:function(t,e){var r,n=i()(e,2),o=n[0],s=n[1],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"both",c=this.getTransform(t),l=w([o,s],h.mat2d.invert(Array.of(0,0,0,0,0,0),c));return(r=this[H]).isPointCollision.apply(r,a()(l).concat([u]))}},{key:"isPointInFill",value:function(t,e){var r=i()(e,2),n=r[0],o=r[1];return this.isPointCollision(t,[n,o],"fill")}},{key:"isPointInStroke",value:function(t,e){var r=i()(e,2),n=r[0],o=r[1];return this.isPointCollision(t,[n,o],"stroke")}},{key:"bufferSize",get:function(){return this[K].bufferSize}},{key:"mesh",get:function(){return this[H]},set:function(t){this[H]=t,this[J]&&this.setTextureFrames(this[J],this[Q])}},{key:"hasCloudColor",get:function(){return this[Z]}},{key:"hasCloudFilter",get:function(){return this[$]}},{key:"enableBlend",get:function(){return this[H].enableBlend||this[Y]}},{key:"amount",get:function(){return this[W]},set:function(t){var e=this[W];t!==e&&(t>this[K].bufferSize&&(this[K]=tt(Math.max(t,this[K].bufferSize+1e3),this[K])),this[W]=t,t>e&&this.initBuffer(e))}},{key:"meshData",get:function(){var t=this[H].meshData,e=t.attributes,r=t.cells,n=t.positions,i=t.textureCoord,o=t.uniforms,a=this[J],s={attributes:G({},e),cells:r,positions:n,textureCoord:i,uniforms:G({},o),instanceCount:this[W],enableBlend:this.enableBlend};a.length&&a.forEach((function(t,e){s.uniforms["u_texFrame".concat(e)]=t}));var u=this[K],c=u.transform0,l=u.transform1,f=u.color0,h=u.color1,d=u.color2,p=u.color3,v=u.color4,g=u.fillColor,y=u.strokeColor,m=u.frameIndex;return this[H].uniforms.u_texSampler&&(s.attributes.a_frameIndex={data:m,divisor:1}),s.attributes.a_transform0={data:c,divisor:1},s.attributes.a_transform1={data:l,divisor:1},s.attributes.a_colorCloud0={data:f,divisor:1},s.attributes.a_colorCloud1={data:h,divisor:1},s.attributes.a_colorCloud2={data:d,divisor:1},s.attributes.a_colorCloud3={data:p,divisor:1},s.attributes.a_colorCloud4={data:v,divisor:1},this.hasCloudColor&&(s.attributes.a_fillCloudColor={data:g,divisor:1},s.attributes.a_strokeCloudColor={data:y,divisor:1}),s}},{key:"program",get:function(){return this[H].program}}]),t}();r(0).glMatrix.setMatrixArrayType(Array);var rt=p.a.mark(at);function nt(t,e,r){var n=t.uniforms||{},i=e.uniforms||{};if(n.u_texSampler&&i.u_texSampler&&n.u_texSampler!==i.u_texSampler)return!1;var o=Object.keys(n),a=Object.keys(i),s=o.indexOf("u_texSampler"),u=a.indexOf("u_texSampler");if(s>=0&&o.splice(s,1),u>=0&&a.splice(u,1),o.length!==a.length)return!1;var c=o.every((function(t){var e=n[t],r=i[t];if(e===r)return!0;if(e.length&&r.length&&e.length===r.length){for(var o=0;o<e.length;o++)if(e[o]!==r[o])return!1;return!0}return!1}));if(c)if(n.u_texSampler&&!i.u_texSampler)e.setTexture(n.u_texSampler,{hidden:!0});else if(!n.u_texSampler&&i.u_texSampler)for(var l=0;l<r.length;l++)r[l].setTexture(i.u_texSampler,{hidden:!0});return c}var it={};function ot(t,e){if(t.length){var r=E(t,it);return r.enableBlend=e,t[0].filterCanvas&&(r.filterCanvas=!0),r.packIndex=t[0].packIndex,r.packLength=t.length,r.beforeRender=t[0].beforeRender,r.pass=t[0].pass,r.afterRender=t[t.length-1].afterRender,t.length=0,r}}function at(t,e){var r,n,i,o,a,s,u,c,l,f,h,d,v=arguments;return p.a.wrap((function(p){for(;;)switch(p.prev=p.next){case 0:r=v.length>2&&void 0!==v[2]&&v[2],n=[],i=t.options.bufferSize,o=0,a=!1,s=0;case 6:if(!(s<e.length)){p.next=50;break}if(!((u=e[s])instanceof et)){p.next=18;break}if(!n.length){p.next=12;break}return p.next=12,ot(n,a);case 12:return o=0,a=!1,p.next=16,u;case 16:p.next=47;break;case 18:if((c=u.meshData).clipPath&&!c.uniforms.u_clipSampler&&(l=t.createTexture(c.clipPath),c.uniforms.u_clipSampler=l),f=0,r&&u.canIgnore()||!c||!c.positions.length){p.next=43;break}if(u.packIndex=s,h=u.filterCanvas,f=c.positions.length,!(h||o+f>i)){p.next=33;break}if(!n.length){p.next=29;break}return p.next=29,ot(n,a);case 29:o=0,a=!1,p.next=40;break;case 33:if(!o){p.next=40;break}if(!(d=n[n.length-1])||!(d.filterCanvas||d.afterRender||u.beforeRender||d.pass.length||u.pass.length||d.program!==u.program)&&nt(d,u,n)){p.next=40;break}return p.next=38,ot(n,a);case 38:o=0,a=!1;case 40:n.push(u),a=a||u.enableBlend,o+=f;case 43:if(s!==e.length-1){p.next=47;break}if(!n.length){p.next=47;break}return p.next=47,ot(n,a);case 47:s++,p.next=6;break;case 50:case"end":return p.stop()}}),rt)}var st=r(156),ut=r.n(st),ct=r(104),lt=r.n(ct),ft=r(66),ht=r.n(ft),dt=r(105),pt=r.n(dt);r(0).glMatrix.setMatrixArrayType(Array);var vt=2*Math.PI;function gt(t,e,r,n){var i=t*r+e*n;return i>1&&(i=1),i<-1&&(i=-1),(t*n-e*r<0?-1:1)*Math.acos(i)}function yt(t,e){var r=4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[n,i,n-i*r,i+n*r,o+a*r,a-o*r,o,a]}function mt(t,e,r,n,i,o,a,s,u){var c=Math.sin(u*vt/360),l=Math.cos(u*vt/360),f=l*(t-r)/2+c*(e-n)/2,h=-c*(t-r)/2+l*(e-n)/2;if(0===f&&0===h)return[];if(0===a||0===s)return[];a=Math.abs(a),s=Math.abs(s);var d=f*f/(a*a)+h*h/(s*s);d>1&&(a*=Math.sqrt(d),s*=Math.sqrt(d));var p=function(t,e,r,n,i,o,a,s,u,c){var l=c*(t-r)/2+u*(e-n)/2,f=-u*(t-r)/2+c*(e-n)/2,h=a*a,d=s*s,p=l*l,v=f*f,g=h*d-h*v-d*p;g<0&&(g=0),g/=h*v+d*p;var y=(g=Math.sqrt(g)*(i===o?-1:1))*a/s*f,m=g*-s/a*l,b=c*y-u*m+(t+r)/2,x=u*y+c*m+(e+n)/2,w=(l-y)/a,M=(f-m)/s,k=(-l-y)/a,S=(-f-m)/s,A=gt(1,0,w,M),R=gt(w,M,k,S);return 0===o&&R>0&&(R-=vt),1===o&&R<0&&(R+=vt),[b,x,A,R]}(t,e,r,n,i,o,a,s,c,l),v=[],g=p[2],y=p[3],m=Math.max(Math.ceil(Math.abs(y)/(vt/4)),1);y/=m;for(var b=0;b<m;b++)v.push(yt(g,y)),g+=y;return v.map((function(t){for(var e=0;e<t.length;e+=2){var r=t[e+0],n=t[e+1],i=l*(r*=a)-c*(n*=s),o=c*r+l*n;t[e+0]=i+p[0],t[e+1]=o+p[1]}return t}))}function bt(t){for(var e,r=[],n=0,o=0,a=0,s=0,u=null,c=null,l=0,f=0,h=0,d=t.length;h<d;h++){var p=t[h],v=p[0];switch(v){case"M":a=p[1],s=p[2];break;case"A":var g=mt(l,f,p[6],p[7],p[4],p[5],p[1],p[2],p[3]);if(!g.length)continue;g=g.map((function(t){var e=i()(t,8);e[0],e[1];return{x1:e[2],y1:e[3],x2:e[4],y2:e[5],x:e[6],y:e[7]}}));for(var y,m=0;m<g.length;m++)p=["C",(y=g[m]).x1,y.y1,y.x2,y.y2,y.x,y.y],m<g.length-1&&r.push(p);break;case"S":var b=l,x=f;"C"!=e&&"S"!=e||(b+=b-n,x+=x-o),p=["C",b,x,p[1],p[2],p[3],p[4]];break;case"T":"Q"==e||"T"==e?(u=2*l-u,c=2*f-c):(u=l,c=f),p=wt(l,f,u,c,p[1],p[2]);break;case"Q":u=p[1],c=p[2],p=wt(l,f,p[1],p[2],p[3],p[4]);break;case"L":p=xt(l,f,p[1],p[2]);break;case"H":p=xt(l,f,p[1],f);break;case"V":p=xt(l,f,l,p[1]);break;case"Z":p=xt(l,f,a,s)}e=v,l=p[p.length-2],f=p[p.length-1],p.length>4?(n=p[p.length-4],o=p[p.length-3]):(n=l,o=f),r.push(p)}return r}function xt(t,e,r,n){return["C",t,e,r,n,r,n]}function wt(t,e,r,n,i,o){return["C",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,o/3+2/3*n,i,o]}r(0).glMatrix.setMatrixArrayType(Array);var Mt=r(73),kt=r.n(Mt);function St(t,e){var r=i()(t,3),n=r[0],o=r[1],a=r[2],s=void 0===a?0:a,u=i()(e,3),c=u[0],l=u[1],f=u[2],h=void 0===f?0:f;return Math.hypot(c-n,l-o,h-s)}function At(t){if(null!=t.totalLength)return t.totalLength;var e=0;return t.forEach((function(t){for(var r=t[0],n=1;n<t.length;n++){var i=t[n];e+=St(r,i),r=i}})),t.totalLength=e,e}function Rt(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e=Number(e),!Number.isFinite(e))throw new TypeError("Failed to execute 'getPointAtLength' on figure: The provided float value is non-finite.");if(e<=0)throw new TypeError("Length must > 0");var n=At(t);if(e>=n){var i=t[t.length-1],o=i[i.length-2],s=i[i.length-1],u=Math.atan2(s[1]-o[1],s[0]-o[0]);return{current:t.map((function(t){return a()(t)})),point:{x:s[0],y:s[1],angle:u}}}for(var c=[],l=0;l<t.length;l++){c[l]=[];for(var f=t[l],h=f[0],d=1;d<f.length;d++){var p=f[d],v=St(h,p);if(e<v){var g=e/v,y=Math.atan2(p[1]-h[1],p[0]-h[0]),m={x:h[0]*(1-g)+p[0]*g,y:h[1]*(1-g)+p[1]*g,angle:y};if(c[l].push(h),e>0&&c[l].push([m.x,m.y]),!r)return{current:c,point:m};for(var b=[],x=l;l<t.length;l++){for(b[l-x]=[],l===x&&b[0].push([m.x,m.y]);d<f.length;d++)b[l-x].push(f[d]);d=0}return{current:c,point:m,rest:b}}e-=v,c[l].push(h),h=p}}}function _t(t,e){if(e=Number(e),!Number.isFinite(e))throw new TypeError("Failed to execute 'getPointAtLength' on figure: The provided float value is non-finite.");if(t.length<=0)return{x:0,y:0,angle:0};if(e<=0){var r=t[0][0],n=t[0][1],i=Math.atan2(n[1]-r[1],n[0]-r[0]);return{x:r[0],y:r[1],angle:i}}return Rt(t,e,!1).point}r(0).glMatrix.setMatrixArrayType(Array),r(0).glMatrix.setMatrixArrayType(Array),r(0).glMatrix.setMatrixArrayType(Array);var Et=2*Math.PI;function Ot(t,e,r,n,i){(i%=Et)<0&&(i+=Et);var o=Math.tan(i);if(Math.abs(o)<1e5){var a=e-o*t,s=1/Math.pow(r,2)+Math.pow(o,2)/Math.pow(n,2),u=-1;(i<=Math.PI/2||i>3*Math.PI/2)&&(u=1);var c=u*Math.sqrt(1/s)+t;return[c,o*c+a]}return i<Math.PI?[t,e+n]:[t,e-n]}r(0).glMatrix.setMatrixArrayType(Array);var Tt=Symbol("contours"),Ct=Symbol("path"),Lt=Symbol("simplify"),Dt=Symbol("scale"),Pt=2*Math.PI,jt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t),"string"==typeof e&&(e={path:e}),e.path?this[Ct]=lt()(e.path):this[Ct]=[],this[Tt]=null,this[Lt]=null!=e.simplify?e.simplify:0,this[Dt]=null!=e.scale?e.scale:2}return l()(t,[{key:"normalize",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=bt(pt()(this[Ct])).map((function(t){for(var n=ut()(t),i=n[0],o=n.slice(1),a=[i],s=0;s<o.length;s+=2){var u=o[s]-e,c=o[s+1]-r;a.push(u,c)}return a}));return this.beginPath(),(t=this[Ct]).push.apply(t,a()(n)),this}},{key:"getPointAtLength",value:function(t){return this.contours?_t(this[Tt],t):null}},{key:"getTotalLength",value:function(){return this.contours?At(this[Tt]):0}},{key:"addPath",value:function(t){var e;this[Tt]=null,"string"==typeof t&&(t=lt()(t)),(e=this[Ct]).push.apply(e,a()(t))}},{key:"beginPath",value:function(){this[Ct]=[],this[Tt]=null}},{key:"clear",value:function(){this.beginPath()}},{key:"ellipse",value:function(t,e,r,n,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;if(o+=i,a+=i,!(r<=0||n<=0||a===o)){a<o&&(a=o+Pt+(a-o)%Pt),a-o>Pt&&(a=o+Pt);var u=a-o;u>=Pt&&(a-=.001);var c=this[Ct].length>0&&u<Pt?"L":"M",l=Ot(t,e,r,n,o),f=Ot(t,e,r,n,a),h=Number(!s),d=u>Math.PI?1:0;s&&(d=1-d),c+=l.join(" "),c+="A".concat(r," ").concat(n," 0 ").concat(d," ").concat(h," ").concat(f.join(" ")),u>=Pt&&(c+="Z"),this.addPath(c)}}},{key:"arc",value:function(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return this.ellipse(t,e,r,r,0,n,i,o)}},{key:"arcTo",value:function(t,e,r,n,i,o,a){this[Tt]=null,this[Ct].push(["A",t,e,r,n,i,o,a])}},{key:"moveTo",value:function(t,e){this[Tt]=null,this[Ct].push(["M",t,e])}},{key:"lineTo",value:function(t,e){this[Tt]=null,this[Ct].push(["L",t,e])}},{key:"bezierCurveTo",value:function(t,e,r,n,i,o){this[Tt]=null,this[Ct].push(["C",t,e,r,n,i,o])}},{key:"quadraticCurveTo",value:function(t,e,r,n){this[Tt]=null,this[Ct].push(["Q",t,e,r,n])}},{key:"rect",value:function(t,e,r,n){var i="M".concat(t," ").concat(e,"L").concat(t+r," ").concat(e,"L").concat(t+r," ").concat(e+n,"L").concat(t," ").concat(e+n,"Z");this.addPath(i)}},{key:"closePath",value:function(){this[Tt]=null;var t=[],e=this[Ct].length;e>0&&(t=this[Ct][e-1]),"Z"!==t[0]&&"z"!==t[0]&&this[Ct].push(["Z"])}},{key:"contours",get:function(){var t=null;if(!this[Tt]&&this[Ct]){var e=bt(pt()(this[Ct]));this[Tt]=kt()(e,this[Dt],this[Lt]),this[Tt].path=e,this[Tt].simplify=this[Lt],this[Tt].scale=this[Dt]}return this[Tt]&&((t=this[Tt].map((function(t){return a()(t)}))).path=this[Tt].path,t.simplify=this[Tt].simplify,t.scale=this[Tt].scale),t}},{key:"path",get:function(){return this[Ct]}},{key:"simplify",get:function(){return this[Lt]}},{key:"boundingBox",get:function(){var t=this.contours;if(t&&t.length){var e=t.reduce((function(t,e){return[].concat(a()(t),a()(e))}));return ht()(e)}return[[0,0],[0,0]]}},{key:"boundingCenter",get:function(){var t=this.boundingBox;return t?[.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])]:[0,0]}}]),t}(),It=r(52),qt=r.n(It),Nt=r(11);r(0).glMatrix.setMatrixArrayType(Array);var Ft=Object(Nt.create)(),Ut=Object(Nt.create)(),Bt=Object(Nt.create)(),Vt=Object(Nt.create)(),zt=Object(Nt.create)(),Gt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.lineWidth,n=void 0===r?1:r,i=e.lineJoin,o=void 0===i?"miter":i,a=e.miterLimit,s=void 0===a?10:a,c=e.lineCap,l=void 0===c?"butt":c,f=e.roundSegments,h=void 0===f?20:f;u()(this,t),this.lineWidth=n,this.lineJoin=o,this.miterLimit=s,this.lineCap=l,this.roundSegments=h,this._normal=null}return l()(t,[{key:"build",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.length;if(t=a()(t),r<2)return t;e&&(t[0][0]===t[r-1][0]&&t[0][1]===t[r-1][1]||t.push(a()(t[0])),t.push(a()(t[1]))),r=t.length,this._normal=null;var n={left:[],right:[]},i=this.lineWidth/2,o=this.lineCap;if(!e&&"square"===o){Object(Nt.direction)(Ut,t[0],t[1]),Object(Nt.scaleAndAdd)(t[0],t[0],Ut,i);var s=t.length-1;Object(Nt.direction)(Ut,t[s],t[s-1]),Object(Nt.scaleAndAdd)(t[s],t[s],Ut,i)}for(var u=1;u<r;u++){var c=t[u-1],l=t[u],f=t[u+1];this._seg(n,c,l,f,i,e)}e||"round"!==o||Yt(n,this.roundSegments);var h=[].concat(a()(n.left),a()(n.right.reverse()));return h}},{key:"_seg",value:function(t,e,r,n,i,o){var a="bevel"===this.lineJoin,s="round"===this.lineJoin;if(Object(Nt.direction)(Ut,r,e),this._normal||(this._normal=Object(Nt.create)(),Object(Nt.normal)(this._normal,Ut)),t.left.length||Wt(t,e,this._normal,i),n){Object(Nt.direction)(Bt,n,r);var u=Object(Nt.computeMiter)(Vt,zt,Ut,Bt,i);u=Math.min(u,1e20);var c=Object(Nt.dot)(Vt,this._normal)<0?-1:1,l=a||s;if(!l&&"miter"===this.lineJoin)u/i>this.miterLimit&&(l=!0);if(l){Object(Nt.scaleAndAdd)(Ft,r,this._normal,-i*c),Ht(t,Ft,c);var f=1/0;e&&(f=Math.min(f,Math.hypot(r[0]-e[0],r[1]-e[1]))),n&&(f=Math.min(f,Math.hypot(n[0]-r[0],n[1]-r[1])));var h=Math.max(i,Math.min(u,f));if(Object(Nt.scaleAndAdd)(Ft,r,zt,h*c),Ht(t,Ft,-c),n)if(Object(Nt.normal)(Ft,Bt),Object(Nt.copy)(this._normal,Ft),Object(Nt.scaleAndAdd)(Ft,r,Ft,-i*c),s){for(var d=Object(Nt.clone)(Ft),p=c>0?t.left[t.left.length-1]:t.right[t.right.length-1],v=Object(Nt.clone)(r),g=Object(Nt.sub)(Object(Nt.create)(),p,v),y=Object(Nt.sub)(Object(Nt.create)(),d,v),m=Math.PI/this.roundSegments,b=0;b<this.roundSegments&&(Object(Nt.rotate)(g,g,[0,0],c*m),Math.sign(Object(Nt.cross)(Ft,g,y)[2])===c);b++)Object(Nt.add)(Ft,g,v),Ht(t,Ft,c);Ht(t,d,c)}else Ht(t,Ft,c)}else Wt(t,r,zt,u),Object(Nt.copy)(this._normal,zt)}else Object(Nt.normal)(this._normal,Ut),Wt(t,o?e:r,this._normal,i)}}]),t}();function Ht(t,e,r){r>0?t.left.push(Object(Nt.clone)(e)):t.right.push(Object(Nt.clone)(e))}function Wt(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;Object(Nt.scaleAndAdd)(Ft,e,r,-n),Ht(t,Ft,-i),Object(Nt.scaleAndAdd)(Ft,e,r,n),Ht(t,Ft,i)}function Yt(t,e){var r=t.left,n=t.right,i=Object(Nt.create)(),o=Object(Nt.create)(),a=r[0],s=n[0],u=[.5*(a[0]+s[0]),.5*(a[1]+s[1])];Object(Nt.sub)(o,a,u);for(var c=1;c<=e;c++){var l=-1*Math.PI*c/e;Object(Nt.rotate)(i,o,[0,0],l),Object(Nt.add)(Ft,u,i),r.unshift(Object(Nt.clone)(Ft))}a=n[n.length-1],s=r[r.length-1],u=[.5*(a[0]+s[0]),.5*(a[1]+s[1])],Object(Nt.sub)(o,a,u);for(var f=1;f<=e;f++){var h=-1*Math.PI*f/e;Object(Nt.rotate)(i,o,[0,0],h),Object(Nt.add)(Ft,u,i),n.push(Object(Nt.clone)(Ft))}}r(0).glMatrix.setMatrixArrayType(Array);var Xt=Gt;function Jt(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]}r(0).glMatrix.setMatrixArrayType(Array);var Qt=r(106),Zt=r.n(Qt);r(0).glMatrix.setMatrixArrayType(Array);var $t=Symbol("mesh"),Kt=Symbol("contours"),te=Symbol("stroke"),ee=Symbol("fill"),re=Symbol("strokeColor"),ne=Symbol("fillColor"),ie=Symbol("transform"),oe=Symbol("invertTransform"),ae=Symbol("uniforms"),se=Symbol("texOptions"),ue=Symbol("blend"),ce=Symbol("applyTexture"),le=Symbol("applyTransform"),fe=Symbol("applyGradientTransform"),he=Symbol("applyProgram"),de=Symbol("gradient"),pe=Symbol("filter"),ve=Symbol("opacity"),ge=Symbol("program"),ye=Symbol("attributes"),me=Symbol("pass"),be=Symbol("clipContext"),xe=Symbol("applyClipPath");function we(t,e){for(var r=t[1][0]-t[0][0],n=t[1][1]-t[0][1],i=[],o=0;o<e.length;o++){var a=e[o],s=[(a[0]-t[0][0])/r,1-(a[1]-t[0][1])/n];i.push(s)}return i}var Me=function(){function t(e){u()(this,t),this[te]=null,this[ee]=null,this[ie]=[1,0,0,1,0,0],this[ve]=1,this[ae]={},this[pe]=[],this[ue]=null,this[se]={},this.contours=e.contours,this[ge]=null,this[ye]={},this[me]=[]}return l()(t,[{key:"setProgram",value:function(t){this[ge]=t,this[$t]&&this[he](t)}},{key:"setAttribute",value:function(t,e){null==e?delete this[ye][t]:this[ye][t]=e}},{key:"getOpacity",value:function(){return this[ve]}},{key:"setOpacity",value:function(t){if(t<0||t>1)throw new TypeError("Invalid opacity value.");this[$t]&&this[$t].positions.forEach((function(e){e[2]=1/e[2]>0?t:-t})),this[ve]=t}},{key:"setClipPath",value:function(t){this.clipPath=t,this[ae].u_clipSampler&&this[ae].u_clipSampler.delete(),this.setUniforms({u_clipSampler:null}),this[$t]&&delete this[$t].attributes.a_clipUV,t&&this[$t]&&this[xe]()}},{key:xe,value:function(){if(this.clipPath){this[be]||(this[be]=y.a.createCanvas(1,1));var t=i()(this.boundingBox,2),e=i()(t[0],2),r=e[0],n=e[1],o=i()(t[1],2),a=o[0],s=o[1];a&&s&&(this[be].width=a-r,this[be].height=s-n);var u=this[be].getContext("2d"),c=new Path2D(this.clipPath);u.clearRect(0,0,this[be].width,this[be].height),u.save(),u.translate(-r,-n),u.fillStyle="white",u.fill(c),u.restore(),this[$t].clipPath=this[be];var l=we(this.boundingBox,this[$t].position0);this[$t].attributes.a_clipUV=l}}},{key:"getPointAtLength",value:function(t){return _t(this[Kt],t)}},{key:"getTotalLength",value:function(){return At(this[Kt])}},{key:he,value:function(t){for(var e=this[ye],r=this[$t].position0,n=Object.entries(t._attribute),o=0;o<n.length;o++){var a=i()(n[o],2),s=a[0],u=a[1];if("a_color"!==s&&"a_sourceRect"!==s&&"ignored"!==u){var c=e[s];if("uv"!==s||c){this[$t].attributes[s]=[];for(var l=0;l<r.length;l++){var f=r[l];this[$t].attributes[s].push(c?c(f,o,r):Array(u.size).fill(0))}}else{var h=this[$t].boundingBox||ht()(r);this[$t].attributes[s]=we(h,r)}}}}},{key:le,value:function(t,e){for(var r=t.positions,n=t.position0,o=0;o<r.length;o++){var a=i()(n[o],2),s=a[0],u=a[1],c=r[o];c[0]=s*e[0]+u*e[2]+e[4],c[1]=s*e[1]+u*e[3]+e[5]}this._updateMatrix=!1}},{key:fe,value:function(){var t=this[ie],e=a()(this._radialGradientVector);if(e){var r=i()(e,5),n=r[0],o=r[1],s=r[3],u=r[4];e[0]=n*t[0]+o*t[2]+t[4],e[1]=n*t[1]+o*t[3]+t[5],e[3]=s*t[0]+u*t[2]+t[4],e[4]=s*t[1]+u*t[3]+t[5],this[ae].u_radialGradientVector=e}}},{key:ce,value:function(t,e){var r=this[ae].u_texSampler;if(r){var n,o,a=r._img,s=a.width,u=a.height,c=e.srcRect,l=e.rect||[0,0];if(e.rotated&&(l=[-l[1],l[0],l[3],l[2]]),null==l[2]&&(l[2]=c?c[2]:s),null==l[3]&&(l[3]=c?c[3]:u),e.hidden)t.textureCoord=t.positions.map((function(){return[-1,-1,-1]}));else if(!(t.textureCoord&&(n=this[se].rect,o=e.rect,null==n&&null==o||null!=n&&null!=o&&n[0]===o[0]&&n[1]===o[1]&&n[2]===o[2]&&n[3]===o[3])&&this[se].hidden===e.hidden&&this[se].rotated===e.rotated)){var f=null;e.rotated&&(f=h.mat2d.rotate(Array.of(0,0,0,0,0,0),h.mat2d.fromValues(1,0,0,1,0,0),.5*Math.PI),f=h.mat2d.translate(Array.of(0,0,0,0,0,0),f,[0,-l[2]])),t.textureCoord=t.position0.map((function(t){var r=i()(t,3),n=r[0],o=r[1];if(1/r[2]>0){if(e.rotated){var a=n*f[0]+o*f[2]+f[4],s=n*f[1]+o*f[3]+f[5];n=a,o=s}var u=function(t,e,r){var n=i()(t,2),o=n[0],a=n[1],s=i()(e,4),u=s[0],c=s[1],l=s[2],f=s[3];return r.scale||(o/=l,a=1-a/f,o-=u,a+=c),[o,a,0]}([n,o],[l[0]/l[2],l[1]/l[3],l[2],l[3]],e);return e.repeat&&(u[2]=1),u}return[-1,-1,-1]}))}if(c){var d=[c[0]/s,c[1]/u,c[2]/s,c[3]/u];t.attributes.a_sourceRect=t.positions.map((function(){return[].concat(d)}))}else t.attributes.a_sourceRect=t.positions.map((function(){return[0,0,0,0]}))}}},{key:"accurate",value:function(t){if(this.contours&&this.contours.path){var e=this.contours.simplify,r=function(t,e,r){var n=kt()(t,e,r);return n.path=t,n.simplify=r,n.scale=e,n}(this.contours.path,2*t,e);this[$t]=null,this[Kt]=r}}},{key:"canIgnore",value:function(){var t=null==this[te]||0===this[te].lineWidth||0===this[re][3],e=null==this[ee]||0===this[ne][3],r=null==this[ae].u_radialGradientVector,n=null==this[ae].u_texSampler;return 0===this[ve]||null==this[ge]&&t&&e&&r&&n&&!this.beforeRender&&!this.afterRender}},{key:"setStroke",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.thickness,r=void 0===e?1:e,n=t.cap,i=void 0===n?"butt":n,o=t.join,a=void 0===o?"miter":o,s=t.miterLimit,u=void 0===s?10:s,c=t.color,l=void 0===c?[0,0,0,0]:c,f=t.lineDash,h=void 0===f?null:f,d=t.lineDashOffset,p=void 0===d?0:d,v=t.roundSegments,g=void 0===v?20:v;return this[$t]=null,this[te]=new Xt({lineWidth:r,lineCap:i,lineJoin:a,miterLimit:u,roundSegments:g}),"string"==typeof l&&(l=V(l)),this[re]=l,this[te].lineDash=h,this[te].lineDashOffset=p,this}},{key:"setFill",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.rule,r=void 0===e?this.fillRule:e,n=t.color,i=void 0===n?[0,0,0,0]:n;return this[$t]=null,this[ee]={rule:r},"string"==typeof i&&(i=V(i)),this[ne]=i,this}},{key:"setTexture",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.image){var r=t,n=r.image,i=r.rect;if(t=n,e.rect)for(var o=0;o<e.rect.length;o++)i[o]=e.rect[o];e.rect=i}return this[ee]||this.setFill(),this.setUniforms({u_texSampler:t}),this[$t]&&this[ce](this[$t],e),this[se]=e,this}},{key:"setCircularGradient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.vector,r=t.colors,n=t.type,i=void 0===n?"fill":n;if(3!==e.length)throw new TypeError("Invalid linearGradient.");this.setGradient({vector:e,colors:r,type:i})}},{key:"setLinearGradient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.vector,r=t.colors,n=t.type,i=void 0===n?"fill":n;if(4!==e.length)throw new TypeError("Invalid linearGradient.");this.setGradient({vector:e,colors:r,type:i})}},{key:"setRadialGradient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.vector,r=t.colors,n=t.type,i=void 0===n?"fill":n;if(6!==e.length)throw new TypeError("Invalid radialGradient.");this.setGradient({vector:e,colors:r,type:i})}},{key:"setGradient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.vector,r=t.colors,n=t.type,i=void 0===n?"fill":n;r=r.map((function(t){var e=t.offset,r=t.color;return"string"==typeof r&&(r=V(r)),{offset:e,color:r}})),this[de]=this[de]||{},this[de][i]={vector:e,colors:r},r.sort((function(t,e){return t.offset-e.offset}));var o,s=[];if(r.forEach((function(t){var e=t.offset,r=t.color;s.push.apply(s,[e].concat(a()(r)))})),o=4===e.length?[e[0],e[1],0,e[2],e[3],0]:a()(e),s.length<40&&s.push(-1),s.length>40)throw new Error("Too many colors, should be less than 8 colors");return this._radialGradientVector=o,this[ae].u_colorSteps=s,this[ae].u_gradientType="fill"===i?1:0,this[fe](),this}},{key:"setUniforms",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(this[ae],t),this}},{key:"setTransform",value:function(){for(var t=this[ie],e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return h.mat2d.equals(r,t)||(this[ie]=r,delete this[oe],this._updateMatrix=!0),this}},{key:"transform",value:function(){for(var t=this[ie],e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this[ie]=h.mat2d.multiply(Array.of(0,0,0,0,0,0),t,r),delete this[oe],this._updateMatrix=!0,this}},{key:"translate",value:function(t,e){var r=h.mat2d.create();return r=h.mat2d.translate(Array.of(0,0,0,0,0,0),r,[t,e]),this.transform.apply(this,a()(r))}},{key:"rotate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0],r=i()(e,2),n=r[0],o=r[1],s=h.mat2d.create();return s=h.mat2d.translate(Array.of(0,0,0,0,0,0),s,[n,o]),s=h.mat2d.rotate(Array.of(0,0,0,0,0,0),s,t),s=h.mat2d.translate(Array.of(0,0,0,0,0,0),s,[-n,-o]),this.transform.apply(this,a()(s))}},{key:"scale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],n=i()(r,2),o=n[0],s=n[1],u=h.mat2d.create();return u=h.mat2d.translate(Array.of(0,0,0,0,0,0),u,[o,s]),u=h.mat2d.scale(Array.of(0,0,0,0,0,0),u,[t,e]),u=h.mat2d.translate(Array.of(0,0,0,0,0,0),u,[-o,-s]),this.transform.apply(this,a()(u))}},{key:"skew",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],n=i()(r,2),o=n[0],s=n[1],u=h.mat2d.create();return u=h.mat2d.translate(Array.of(0,0,0,0,0,0),u,[o,s]),u=h.mat2d.multiply(Array.of(0,0,0,0,0,0),u,h.mat2d.fromValues(1,Math.tan(e),Math.tan(t),1,0,0)),u=h.mat2d.translate(Array.of(0,0,0,0,0,0),u,[-o,-s]),this.transform.apply(this,a()(u))}},{key:"clearFilter",value:function(){return this.setColorTransform(null),this[pe].length=0,this}},{key:"setColorTransform",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return null===e[0]?this.setUniforms({u_filterFlag:0,u_colorMatrix:0}):this.setUniforms({u_filterFlag:1,u_colorMatrix:e}),this}},{key:"transformColor",value:function(){for(var t=this.uniforms.u_colorMatrix,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=t?C(t,r):r,this.setColorTransform.apply(this,a()(t)),this}},{key:"blur",value:function(t){return this[pe].push("blur(".concat(t,"px)")),this}},{key:"brightness",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this[pe].push("brightness(".concat(100*t,"%)")),this.transformColor.apply(this,a()(D(t)))}},{key:"contrast",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this[pe].push("contrast(".concat(100*t,"%)")),this.transformColor.apply(this,a()(j(t)))}},{key:"dropShadow",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[0,0,0,1];return Array.isArray(n)&&(n=Object(m.a)(n)),this[pe].push("drop-shadow(".concat(t,"px ").concat(e,"px ").concat(r,"px ").concat(n,")")),this}},{key:"grayscale",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this[pe].push("grayscale(".concat(100*t,"%)")),this.transformColor.apply(this,a()(L(t)))}},{key:"hueRotate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this[pe].push("hue-rotate(".concat(t,"deg)")),this.transformColor.apply(this,a()(F(t)))}},{key:"invert",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this[pe].push("invert(".concat(100*t,"%)")),this.transformColor.apply(this,a()(I(t)))}},{key:"opacity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this[pe].push("opacity(".concat(100*t,"%)")),this.transformColor.apply(this,a()(N(t)))}},{key:"saturate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this[pe].push("saturate(".concat(100*t,"%)")),this.transformColor.apply(this,a()(P(t)))}},{key:"sepia",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this[pe].push("sepia(".concat(100*t,"%)")),this.transformColor.apply(this,a()(q(t)))}},{key:"url",value:function(t){return this[pe].push("url(".concat(t,")")),this}},{key:"isPointCollision",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"both",n=this.meshData,o=n.positions,a=n.cells,s=this.invertMatrix,u=s[0]*t+s[2]*e+s[4],c=s[1]*t+s[3]*e+s[5],l=this.boundingBox;if(u<l[0][0]||u>l[1][0]||c<l[0][1]||c>l[1][1])return!1;function f(t,e,r){var n=i()(t,2),o=n[0],a=n[1],s=i()(e,2),u=s[0],c=s[1],l=i()(r,2),f=l[0]-u,h=l[1]-c,d=((o-u)*f+(a-c)*h)/(Math.pow(f,2)+Math.pow(h,2));return d>=0&&d<=1}for(var h=0;h<a.length;h++){var d=a[h];if("fill"===r&&d[0]>=n.fillPointCount)break;if(!("stroke"===r&&d[0]<n.fillPointCount)){var p=d.map((function(t){return o[t]})),v=i()(p,3),g=i()(v[0],2),y=g[0],m=g[1],b=i()(v[1],2),x=b[0],w=b[1],M=i()(v[2],2),k=M[0],S=M[1],A=Math.sign((t-y)*(w-m)-(x-y)*(e-m));if(0===A&&f([t,e],[y,m],[x,w]))return!0;var R=Math.sign((t-x)*(S-w)-(k-x)*(e-w));if(0===R&&f([t,e],[x,w],[k,S]))return!0;var _=Math.sign((t-k)*(m-S)-(y-k)*(e-S));if(0===_&&f([t,e],[k,S],[y,m]))return!0;if(1===A&&1===R&&1===_||-1===A&&-1===R&&-1===_)return!0}}return!1}},{key:"isPointInFill",value:function(t,e){return this.isPointCollision(t,e,"fill")}},{key:"isPointInStroke",value:function(t,e){return this.isPointCollision(t,e,"stroke")}},{key:"addPass",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=r.height,o=qt()(r,["width","height"]),a=new jt;a.rect(0,0,n,i);var s=new t(a,{width:n,height:i});s.setUniforms(o),s.setProgram(e),this[me].push(s)}},{key:"contours",get:function(){return this[Kt]},set:function(t){this[$t]=null,this[Kt]=t;var e=t.scale;this.transformScale/e>1.5&&this.accurate(this.transformScale)}},{key:"program",get:function(){return this[ge]}},{key:"blend",get:function(){return null==this[ue]?"auto":this[ue]},set:function(t){this[ue]=t,this[$t]&&(this[$t].enableBlend=this.enableBlend)}},{key:"boundingBox",get:function(){if(this[$t]&&this[$t].boundingBox)return this[$t].boundingBox;var t=this.meshData;if(t){var e=t.position0;return e.length?(t.boundingBox=ht()(e),t.boundingBox):[[0,0],[0,0]]}return[[0,0],[0,0]]}},{key:"boundingCenter",get:function(){var t=this.boundingBox;return t?[.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])]:[0,0]}},{key:"fillRule",get:function(){return this[ee]?this[ee].rule:"nonzero"}},{key:"lineWidth",get:function(){return this[te]?this[te].lineWidth:0}},{key:"lineCap",get:function(){return this[te]?this[te].lineCap:""}},{key:"lineJoin",get:function(){return this[te]?this[te].lineJoin:""}},{key:"miterLimit",get:function(){return this[te]?this[te].miterLimit:0}},{key:"strokeStyle",get:function(){return this[re]&&0!==this[re][3]?Object(m.a)(this[re]):""}},{key:"lineDash",get:function(){return this[te]?this[te].lineDash:null}},{key:"lineDashOffset",get:function(){return this[te]?this[te].lineDashOffset:0}},{key:"fillStyle",get:function(){return this[ne]&&0!==this[ne][3]?Object(m.a)(this[ne]):""}},{key:"gradient",get:function(){return this[de]}},{key:"texture",get:function(){return this[ae].u_texSampler?{image:this[ae].u_texSampler._img,options:this[se]}:null}},{key:"enableBlend",get:function(){return!0===this[ue]||!1===this[ue]?this[ue]:this[ve]<1||null!=this[re]&&this[re][3]<1||null!=this[ne]&&this[ne][3]<1||null!=this[ae].u_colorMatrix&&this[ae].u_colorMatrix[18]<1||null!=this[ae].u_radialGradientVector||this.beforeRender||this.afterRender}},{key:"filterCanvas",get:function(){return/blur|drop-shadow|url/.test(this.filter)}},{key:"filter",get:function(){return this[pe].join(" ")}},{key:"transformMatrix",get:function(){return this[ie]}},{key:"invertMatrix",get:function(){if(!this[oe]){var t=h.mat2d.invert(Array.of(0,0,0,0,0,0),this[ie]);this[oe]=t}return this[oe]}},{key:"transformScale",get:function(){var t=this[ie];return Math.max(Math.hypot(t[0],t[1]),Math.hypot(t[2],t[3]))}},{key:"uniforms",get:function(){return this[ae]}},{key:"pass",get:function(){return this[me]}},{key:"meshData",get:function(){var t=this;this._updateMatrix&&(this.transformScale/this.contours.scale>1.5&&this.accurate(this.transformScale));if(!this[$t]){this[ee]||this[te]||this.setFill();var e=this[Kt],r={};if(e&&e.length){if(this[ee])try{var n=Zt()(e,this[ee]);n.positions=n.positions.map((function(e){return e.push(t[ve]),e})),n.attributes={a_color:Array.from({length:n.positions.length}).map((function(){return t[ne].map((function(t){return Math.round(255*t)}))}))},r.fill=n}catch(t){}if(this[te]){var o=this[te].lineDash,s=e;if(o)s=function(t,e,r){var n=0,i=e[0],o=t,s=[],u=e.length;if(r>0){do{r-=e[n%u],n++}while(r>0);r<0&&(i=-r,n--)}else if(r<0){n=-1;do{r+=e[n%u+u-1],n--}while(r<0);r>=0&&(i=e[++n%u+u-1]-r)}do{var c=Rt(o,i);o=c.rest,++n%2&&s.push.apply(s,a()(c.current));var l=n%u;l<0&&(l+=u),i=e[l]}while(o);return s}(e,o,this[te].lineDashOffset);var u=s.map((function(e,r){var n=e.length>1&&h.vec2.equals(e[0],e[e.length-1]),i=t[te].build(e,n);return Zt()([i])}));u.forEach((function(e){e.positions=e.positions.map((function(e){return e.push(-t[ve]),e})),e.attributes={a_color:Array.from({length:e.positions.length}).map((function(){return t[re].map((function(t){return Math.round(255*t)}))}))}})),r.stroke=E(u)}}var c=E([r.fill,r.stroke]);c.fillPointCount=r.fill?r.fill.positions.length:0,c.enableBlend=this.enableBlend,c.position0=c.positions.map((function(t){var e=i()(t,3);return[e[0],e[1],e[2]]})),c.uniforms=this[ae],this[$t]=c,this[ae].u_texSampler&&this[ce](c,this[se]);var l=this[ie];Jt(l)||(this[le](c,l),this[ae].u_radialGradientVector&&this[fe]()),this.clipPath&&this[xe](),this[ge]&&this[he](this[ge])}return this._updateMatrix&&(this[$t].matrix=this[ie],this[le](this[$t],this[ie]),this[ae].u_radialGradientVector&&this[fe]()),this[$t]}}]),t}();r(0).glMatrix.setMatrixArrayType(Array);var ke=Symbol("shaders");function Se(t){t[ke]=[];for(var e=0;e<16;e++){var r=[],n=!!(1&e),i=!!(2&e),o=!!(4&e),a=!!(8&e);n&&r.push("#define TEXTURE 1"),i&&r.push("#define FILTER 1"),o&&r.push("#define GRADIENT 1"),a&&r.push("#define CLIPPATH 1");var s="".concat(r.join("\n"),"\n"),u=[];n&&u.push("uniform sampler2D u_texSampler;"),a&&u.push("uniform sampler2D u_clipSampler;"),t[ke][e]=[s+u.join("\n")+"precision mediump float;\n\nvarying vec4 vColor;\nvarying float flagBackground;\n\n#ifdef TEXTURE\nvarying vec3 vTextureCoord;\nvarying vec4 vSourceRect;\n#endif\n\n#ifdef CLIPPATH\nvarying vec2 vClipUV;\n#endif\n\n#ifdef FILTER\nuniform int u_filterFlag;\nuniform float u_colorMatrix[20];\n#endif\n\n#ifdef GRADIENT\nvarying vec3 vGradientVector1;\nvarying vec3 vGradientVector2;\nuniform float u_colorSteps[40];\nuniform int u_gradientType;\n// uniform float u_radialGradientVector[6];\n\nvoid gradient(inout vec4 color, vec3 gv1, vec3 gv2, float colorSteps[40]) {\n  float t;\n  // center circle radius\n  float cr = gv1.z;\n  // focal circle radius\n  float fr = gv2.z;\n\n  if(cr > 0.0 || fr > 0.0) {\n    // radial gradient\n    vec2 center = gv1.xy;\n    vec2 focal = gv2.xy;\n    float x = focal.x - gl_FragCoord.x;\n    float y = focal.y - gl_FragCoord.y;\n    float dx = focal.x - center.x;\n    float dy = focal.y - center.y;\n    float dr = cr - fr;\n    float a = dx * dx + dy * dy - dr * dr;\n    float b = -2.0 * (y * dy + x * dx + fr * dr);\n    float c = x * x + y * y - fr * fr;\n    t = 1.0 - 0.5 * (1.0 / a) * (-b + sqrt(b * b - 4.0 * a * c));\n  } else {\n    // linear gradient\n    vec2 v1 = gl_FragCoord.xy - gv1.xy;\n    vec2 v2 = gv2.xy - gv1.xy;\n    t = (v1.x * v2.x + v1.y * v2.y) / (v2.x * v2.x + v2.y * v2.y);\n  }\n\n  vec4 colors[8];\n  colors[0] = vec4(colorSteps[1], colorSteps[2], colorSteps[3], colorSteps[4]);\n  colors[1] = vec4(colorSteps[6], colorSteps[7], colorSteps[8], colorSteps[9]);\n  colors[2] = vec4(colorSteps[11], colorSteps[12], colorSteps[13], colorSteps[14]);\n  colors[3] = vec4(colorSteps[16], colorSteps[17], colorSteps[18], colorSteps[19]);\n  colors[4] = vec4(colorSteps[21], colorSteps[22], colorSteps[23], colorSteps[24]);\n  colors[5] = vec4(colorSteps[26], colorSteps[27], colorSteps[28], colorSteps[29]);\n  colors[6] = vec4(colorSteps[31], colorSteps[32], colorSteps[33], colorSteps[34]);\n  colors[7] = vec4(colorSteps[36], colorSteps[37], colorSteps[38], colorSteps[39]);\n  \n  float steps[8];\n  steps[0] = colorSteps[0];\n  steps[1] = colorSteps[5];\n  steps[2] = colorSteps[10];\n  steps[3] = colorSteps[15];\n  steps[4] = colorSteps[20];\n  steps[5] = colorSteps[25];\n  steps[6] = colorSteps[30];\n  steps[7] = colorSteps[35];\n\n  color = colors[0];\n  for (int i = 1; i < 8; i++) {\n    if (steps[i] < 0.0 || steps[i] > 1.0) {\n      break;\n    }\n    if(steps[i] == steps[i - 1]) {\n      color = colors[i];\n    } else {\n      color = mix(color, colors[i], clamp((t - steps[i - 1]) / (steps[i] - steps[i - 1]), 0.0, 1.0));\n    }\n    if (steps[i] >= t) {\n      break;\n    }\n  }\n}\n#endif\n\n#ifdef FILTER\nvoid transformColor(inout vec4 color, in float colorMatrix[20]) {\n  float r = color.r, g = color.g, b = color.b, a = color.a;\n  color[0] = colorMatrix[0] * r + colorMatrix[1] * g + colorMatrix[2] * b + colorMatrix[3] * a + colorMatrix[4];\n  color[1] = colorMatrix[5] * r + colorMatrix[6] * g + colorMatrix[7] * b + colorMatrix[8] * a + colorMatrix[9];\n  color[2] = colorMatrix[10] * r + colorMatrix[11] * g + colorMatrix[12] * b + colorMatrix[13] * a + colorMatrix[14];\n  color[3] = colorMatrix[15] * r + colorMatrix[16] * g + colorMatrix[17] * b + colorMatrix[18] * a + colorMatrix[19];\n}\n#endif\n\nvoid main() {\n  vec4 color = vColor;\n  float opacity = abs(flagBackground);\n\n#ifdef GRADIENT\n  if(u_gradientType > 0 && flagBackground > 0.0 || u_gradientType == 0 && flagBackground <= 0.0) {\n    gradient(color, vGradientVector1, vGradientVector2, u_colorSteps);\n  }\n#endif\n\n  if(opacity < 1.0) {\n    color.a *= opacity;\n  }\n\n#ifdef TEXTURE\n  if(flagBackground > 0.0) {\n    vec3 texCoord = vTextureCoord;\n\n    if(texCoord.z == 1.0) {\n      texCoord = fract(texCoord);\n    }\n\n    if(texCoord.x <= 1.0 && texCoord.x >= 0.0\n      && texCoord.y <= 1.0 && texCoord.y >= 0.0) {\n      if(vSourceRect.z > 0.0) {\n        texCoord.x = vSourceRect.x + texCoord.x * vSourceRect.z;\n        texCoord.y = 1.0 - (vSourceRect.y + (1.0 - texCoord.y) * vSourceRect.w);\n      }\n      vec4 texColor = texture2D(u_texSampler, texCoord.xy);\n      float alpha = texColor.a;\n      if(opacity < 1.0) {\n        texColor.a *= opacity;\n        alpha *= mix(0.465, 1.0, opacity);\n      }\n      // color = mix(color, texColor, texColor.a);\n      color.rgb = mix(color.rgb, texColor.rgb, alpha);\n      // color.rgb = mix(texColor.rgb, color.rgb, color.a);\n      color.rgb = mix(texColor.rgb, color.rgb, clamp(color.a / max(0.0001, texColor.a), 0.0, 1.0));\n      color.a = texColor.a + (1.0 - texColor.a) * color.a;\n    }\n  }\n#endif\n\n#ifdef FILTER\n  if(u_filterFlag > 0) {\n    transformColor(color, u_colorMatrix);\n  }\n#endif\n\n#ifdef CLIPPATH\n  float clip = texture2D(u_clipSampler, vClipUV).r;\n  color *= clip;\n#endif\n\n  gl_FragColor = color;\n}",s+"attribute vec3 a_vertexPosition;\nattribute vec4 a_color;\nvarying vec4 vColor;\nvarying float flagBackground;\nuniform vec2 u_resolution;\nuniform mat3 viewMatrix;\nuniform mat3 projectionMatrix;\n\n#ifdef TEXTURE\nattribute vec3 a_vertexTextureCoord;\nvarying vec3 vTextureCoord;\nattribute vec4 a_sourceRect;\nvarying vec4 vSourceRect;\n#endif\n\n#ifdef CLIPPATH\nattribute vec2 a_clipUV;\nvarying vec2 vClipUV;\n#endif\n\n#ifdef GRADIENT\nuniform float u_radialGradientVector[6];\nvarying vec3 vGradientVector1;\nvarying vec3 vGradientVector2;\n#endif\n\nvoid main() {\n  gl_PointSize = 1.0;\n\n  vec3 pos = projectionMatrix * viewMatrix * vec3(a_vertexPosition.xy, 1.0);\n  gl_Position = vec4(pos.xy, 1.0, 1.0);\n\n#ifdef GRADIENT\n  vec3 vg1 = viewMatrix * vec3(u_radialGradientVector[0], u_radialGradientVector[1], 1.0);\n  vec3 vg2 = viewMatrix * vec3(u_radialGradientVector[3], u_radialGradientVector[4], 1.0);\n  float h = u_resolution.y;\n  vg1.y = h - vg1.y;\n  vg2.y = h - vg2.y;\n  vGradientVector1 = vec3(vg1.xy, u_radialGradientVector[2]);\n  vGradientVector2 = vec3(vg2.xy, u_radialGradientVector[5]);\n#endif\n  \n  flagBackground = a_vertexPosition.z;\n  vColor = a_color;\n\n#ifdef TEXTURE\n  vTextureCoord = a_vertexTextureCoord;\n  vSourceRect = a_sourceRect;\n#endif\n\n#ifdef CLIPPATH\n  vClipUV = a_clipUV;\n#endif\n}"]}}function Ae(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.hasTexture,n=void 0!==r&&r,i=e.hasFilter,o=void 0!==i&&i,s=e.hasGradient,u=void 0!==s&&s,c=e.hasClipPath,l=void 0!==c&&c,f=n|o<<1|u<<2|l<<3,h=t[ke][f];Array.isArray(h)&&(h=t.createProgram.apply(t,a()(h)),t[ke][f]=h),t.program!==h&&t.useProgram(h,{a_color:{type:"UNSIGNED_BYTE",normalize:!0}})}var Re=[];function _e(t){for(var e=0;e<64;e++){var r=[],n=!!(1&e),i=!!(2&e),o=!!(4&e),a=!!(8&e),s=!!(16&e),u=!!(32&e);n&&r.push("#define TEXTURE 1"),i&&r.push("#define FILTER 1"),o&&r.push("#define GRADIENT 1"),a&&r.push("#define CLOUDCOLOR 1"),s&&r.push("#define CLOUDFILTER 1"),u&&r.push("#define CLIPPATH 1");var c="".concat(r.join("\n"),"\n"),l=[];if(n){l.push("uniform sampler2D u_texSampler;");for(var f=0;f<12;f++)l.push("uniform sampler2D u_texFrame".concat(f,";"))}u&&l.push("uniform sampler2D u_clipSampler;"),Re[e]=[c+l.join("\n")+"precision mediump float;\n\nvarying vec4 vColor;\nvarying float flagBackground;\n\n#ifdef TEXTURE\nvarying float frameIndex;\nvarying vec3 vTextureCoord;\nvarying vec4 vSourceRect;\n#endif\n\n#ifdef CLIPPATH\nvarying vec2 vClipUV;\n#endif\n\n#ifdef FILTER\nuniform int u_filterFlag;\nuniform float u_colorMatrix[20];\n#endif\n\n#ifdef CLOUDFILTER\nvarying vec4 colorCloud0;\nvarying vec4 colorCloud1;\nvarying vec4 colorCloud2;\nvarying vec4 colorCloud3;\nvarying vec4 colorCloud4;\n#endif\n\n#ifdef GRADIENT\nvarying vec3 vGradientVector1;\nvarying vec3 vGradientVector2;\nuniform float u_colorSteps[40];\nuniform int u_gradientType;\n\nvoid gradient(inout vec4 color, vec3 gv1, vec3 gv2, float colorSteps[40]) {\n  float t;\n  // center circle radius\n  float cr = gv1.z;\n  // focal circle radius\n  float fr = gv2.z;\n\n  if(cr > 0.0 || fr > 0.0) {\n    // radial gradient\n    vec2 center = gv1.xy;\n    vec2 focal = gv2.xy;\n    float x = focal.x - gl_FragCoord.x;\n    float y = focal.y - gl_FragCoord.y;\n    float dx = focal.x - center.x;\n    float dy = focal.y - center.y;\n    float dr = cr - fr;\n    float a = dx * dx + dy * dy - dr * dr;\n    float b = -2.0 * (y * dy + x * dx + fr * dr);\n    float c = x * x + y * y - fr * fr;\n    t = 1.0 - 0.5 * (1.0 / a) * (-b + sqrt(b * b - 4.0 * a * c));\n  } else {\n    // linear gradient\n    vec2 v1 = gl_FragCoord.xy - gv1.xy;\n    vec2 v2 = gv2.xy - gv1.xy;\n    t = (v1.x * v2.x + v1.y * v2.y) / (v2.x * v2.x + v2.y * v2.y);\n  }\n\n  vec4 colors[8];\n  colors[0] = vec4(colorSteps[1], colorSteps[2], colorSteps[3], colorSteps[4]);\n  colors[1] = vec4(colorSteps[6], colorSteps[7], colorSteps[8], colorSteps[9]);\n  colors[2] = vec4(colorSteps[11], colorSteps[12], colorSteps[13], colorSteps[14]);\n  colors[3] = vec4(colorSteps[16], colorSteps[17], colorSteps[18], colorSteps[19]);\n  colors[4] = vec4(colorSteps[21], colorSteps[22], colorSteps[23], colorSteps[24]);\n  colors[5] = vec4(colorSteps[26], colorSteps[27], colorSteps[28], colorSteps[29]);\n  colors[6] = vec4(colorSteps[31], colorSteps[32], colorSteps[33], colorSteps[34]);\n  colors[7] = vec4(colorSteps[36], colorSteps[37], colorSteps[38], colorSteps[39]);\n  \n  float steps[8];\n  steps[0] = colorSteps[0];\n  steps[1] = colorSteps[5];\n  steps[2] = colorSteps[10];\n  steps[3] = colorSteps[15];\n  steps[4] = colorSteps[20];\n  steps[5] = colorSteps[25];\n  steps[6] = colorSteps[30];\n  steps[7] = colorSteps[35];\n\n  color = colors[0];\n  for (int i = 1; i < 8; i++) {\n    if (steps[i] < 0.0 || steps[i] > 1.0) {\n      break;\n    }\n    if(steps[i] == steps[i - 1]) {\n      color = colors[i];\n    } else {\n      color = mix(color, colors[i], clamp((t - steps[i - 1]) / (steps[i] - steps[i - 1]), 0.0, 1.0));\n    }\n    if (steps[i] >= t) {\n      break;\n    }\n  }\n}\n#endif\n\nvoid transformColor(inout vec4 color, in float colorMatrix[20]) {\n  float r = color.r, g = color.g, b = color.b, a = color.a;\n  color[0] = colorMatrix[0] * r + colorMatrix[1] * g + colorMatrix[2] * b + colorMatrix[3] * a + colorMatrix[4];\n  color[1] = colorMatrix[5] * r + colorMatrix[6] * g + colorMatrix[7] * b + colorMatrix[8] * a + colorMatrix[9];\n  color[2] = colorMatrix[10] * r + colorMatrix[11] * g + colorMatrix[12] * b + colorMatrix[13] * a + colorMatrix[14];\n  color[3] = colorMatrix[15] * r + colorMatrix[16] * g + colorMatrix[17] * b + colorMatrix[18] * a + colorMatrix[19];\n}\n\n#ifdef CLOUDFILTER\nvoid buildCloudColor(inout float colorCloudMatrix[20]) {\n  colorCloudMatrix[0] = colorCloud0[0];\n  colorCloudMatrix[1] = colorCloud1[0];\n  colorCloudMatrix[2] = colorCloud2[0];\n  colorCloudMatrix[3] = colorCloud3[0];\n  colorCloudMatrix[4] = colorCloud4[0];\n\n  colorCloudMatrix[5] = colorCloud0[1];\n  colorCloudMatrix[6] = colorCloud1[1];\n  colorCloudMatrix[7] = colorCloud2[1];\n  colorCloudMatrix[8] = colorCloud3[1];\n  colorCloudMatrix[9] = colorCloud4[1];\n\n  colorCloudMatrix[10] = colorCloud0[2];\n  colorCloudMatrix[11] = colorCloud1[2];\n  colorCloudMatrix[12] = colorCloud2[2];\n  colorCloudMatrix[13] = colorCloud3[2];\n  colorCloudMatrix[14] = colorCloud4[2];\n\n  colorCloudMatrix[15] = colorCloud0[3];\n  colorCloudMatrix[16] = colorCloud1[3];\n  colorCloudMatrix[17] = colorCloud2[3];\n  colorCloudMatrix[18] = colorCloud3[3];\n  colorCloudMatrix[19] = colorCloud4[3];\n}\n#endif\n\nvoid main() {\n  vec4 color = vColor;\n  float opacity = abs(flagBackground);\n\n#ifdef GRADIENT\n  if(u_gradientType > 0 && flagBackground > 0.0 || u_gradientType == 0 && flagBackground <= 0.0) {\n    gradient(color, vGradientVector1, vGradientVector2, u_colorSteps);\n  }\n#endif\n\n  if(opacity < 1.0) {\n    color.a *= opacity;\n  }\n\n#ifdef TEXTURE\n  if(flagBackground > 0.0) {\n    vec3 texCoord = vTextureCoord;\n\n    if(texCoord.z == 1.0) {\n      texCoord = fract(texCoord);\n    }\n\n    if(texCoord.x <= 1.0 && texCoord.x >= 0.0\n      && texCoord.y <= 1.0 && texCoord.y >= 0.0) {\n      if(vSourceRect.z > 0.0) {\n        texCoord.x = vSourceRect.x + texCoord.x * vSourceRect.z;\n        texCoord.y = 1.0 - (vSourceRect.y + (1.0 - texCoord.y) * vSourceRect.w);\n      }\n      if(frameIndex < 0.0) {\n        vec4 texColor = texture2D(u_texSampler, texCoord.xy);\n        color = mix(color, texColor, texColor.a);\n      } else {\n        int index = int(floor(clamp(0.0, 11.0, frameIndex)));\n        vec4 texColor;\n        if(index == 0) texColor = texture2D(u_texFrame0, texCoord.xy);\n        else if(index == 1) texColor = texture2D(u_texFrame1, texCoord.xy);\n        else if(index == 2) texColor = texture2D(u_texFrame2, texCoord.xy);\n        else if(index == 3) texColor = texture2D(u_texFrame3, texCoord.xy);\n        else if(index == 4) texColor = texture2D(u_texFrame4, texCoord.xy);\n        else if(index == 5) texColor = texture2D(u_texFrame5, texCoord.xy);\n        else if(index == 6) texColor = texture2D(u_texFrame6, texCoord.xy);\n        else if(index == 7) texColor = texture2D(u_texFrame7, texCoord.xy);\n        else if(index == 8) texColor = texture2D(u_texFrame8, texCoord.xy);\n        else if(index == 9) texColor = texture2D(u_texFrame9, texCoord.xy);\n        else if(index == 10) texColor = texture2D(u_texFrame10, texCoord.xy);\n        else texColor = texture2D(u_texFrame11, texCoord.xy);\n        float alpha = texColor.a;\n        if(opacity < 1.0) {\n          texColor.a *= opacity;\n          alpha *= mix(0.465, 1.0, opacity);\n        }\n        // color = mix(color, texColor, texColor.a);\n        color.rgb = mix(color.rgb, texColor.rgb, alpha);\n        // color.rgb = mix(texColor.rgb, color.rgb, color.a);\n        color.rgb = mix(texColor.rgb, color.rgb, clamp(color.a / max(0.0001, texColor.a), 0.0, 1.0));\n        color.a = texColor.a + (1.0 - texColor.a) * color.a;\n      }\n    }\n  }\n#endif\n\n#ifdef FILTER\n  if(u_filterFlag > 0) {\n    transformColor(color, u_colorMatrix);\n  }\n#endif\n\n#ifdef CLOUDFILTER\n  float colorCloudMatrix[20];\n  buildCloudColor(colorCloudMatrix);\n  transformColor(color, colorCloudMatrix);\n#endif\n\n#ifdef CLIPPATH\n  float clip = texture2D(u_clipSampler, vClipUV).r;\n  color *= clip;\n#endif\n\n  gl_FragColor = color;\n}",c+"attribute vec3 a_vertexPosition;\nattribute vec4 a_color;\nvarying vec4 vColor;\nvarying float flagBackground;\nattribute vec3 a_transform0;\nattribute vec3 a_transform1;\nuniform vec2 u_resolution;\nuniform mat3 viewMatrix;\nuniform mat3 projectionMatrix;\n\n#ifdef TEXTURE\nattribute vec3 a_vertexTextureCoord;\nvarying vec3 vTextureCoord;\nattribute float a_frameIndex;\nvarying float frameIndex;\nattribute vec4 a_sourceRect;\nvarying vec4 vSourceRect;\n#endif\n\n#ifdef CLIPPATH\nattribute vec2 a_clipUV;\nvarying vec2 vClipUV;\n#endif\n\n#ifdef CLOUDFILTER\nattribute vec4 a_colorCloud0;\nattribute vec4 a_colorCloud1;\nattribute vec4 a_colorCloud2;\nattribute vec4 a_colorCloud3;\nattribute vec4 a_colorCloud4;\nvarying vec4 colorCloud0;\nvarying vec4 colorCloud1;\nvarying vec4 colorCloud2;\nvarying vec4 colorCloud3;\nvarying vec4 colorCloud4;\n#endif\n\n#ifdef CLOUDCOLOR\nattribute vec4 a_fillCloudColor;\nattribute vec4 a_strokeCloudColor;\n#endif\n\n#ifdef GRADIENT\nuniform float u_radialGradientVector[6];\nvarying vec3 vGradientVector1;\nvarying vec3 vGradientVector2;\n#endif\n\nvoid main() {\n  gl_PointSize = 1.0;\n\n  mat3 modelMatrix = mat3(\n    a_transform0.x, a_transform1.x, 0, \n    a_transform0.y, a_transform1.y, 0,\n    a_transform0.z, a_transform1.z, 1\n  );\n\n  vec3 pos = projectionMatrix * viewMatrix * modelMatrix * vec3(a_vertexPosition.xy, 1.0);\n  gl_Position = vec4(pos.xy, 1.0, 1.0);\n\n#ifdef GRADIENT\n  vec3 vg1 = viewMatrix * vec3(u_radialGradientVector[0], u_radialGradientVector[1], 1.0);\n  vec3 vg2 = viewMatrix * vec3(u_radialGradientVector[3], u_radialGradientVector[4], 1.0);\n  float h = u_resolution.y;\n  vg1.y = h - vg1.y;\n  vg2.y = h - vg2.y;\n  vGradientVector1 = vec3(vg1.xy, u_radialGradientVector[2]);\n  vGradientVector2 = vec3(vg2.xy, u_radialGradientVector[5]);\n#endif\n  \n  flagBackground = a_vertexPosition.z;\n\n#ifdef CLOUDCOLOR\n  if(flagBackground > 0.0) {\n    vColor = mix(a_color, a_fillCloudColor, a_fillCloudColor.a);\n  } else {\n    vColor = mix(a_color, a_strokeCloudColor, a_strokeCloudColor.a);\n  }\n#else\n  vColor = a_color;\n#endif\n\n#ifdef TEXTURE\n  vTextureCoord = a_vertexTextureCoord;\n  frameIndex = a_frameIndex;\n  vSourceRect = a_sourceRect;\n#endif\n\n#ifdef CLIPPATH\n  vClipUV = a_clipUV;\n#endif\n\n#ifdef CLOUDFILTER\n  colorCloud0 = a_colorCloud0;\n  colorCloud1 = a_colorCloud1;\n  colorCloud2 = a_colorCloud2;\n  colorCloud3 = a_colorCloud3;\n  colorCloud4 = a_colorCloud4;\n#endif\n}"]}}function Ee(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.hasTexture,n=void 0!==r&&r,i=e.hasFilter,o=void 0!==i&&i,s=e.hasGradient,u=void 0!==s&&s,c=e.hasCloudColor,l=void 0!==c&&c,f=e.hasCloudFilter,h=void 0!==f&&f,d=e.hasClipPath,p=void 0!==d&&d,v=n|o<<1|u<<2|l<<3|h<<4|p<<5,g=Re[v];Array.isArray(g)&&(g=t.createProgram.apply(t,a()(g)),Re[v]=g),t.program!==g&&t.useProgram(g,{a_color:{type:"UNSIGNED_BYTE",normalize:!0},a_fillCloudColor:{type:"UNSIGNED_BYTE",normalize:!0},a_strokeCloudColor:{type:"UNSIGNED_BYTE",normalize:!0},a_frameIndex:{type:"UNSIGNED_BYTE",normalize:!1}})}function Oe(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Te(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Te(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Te(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(0).glMatrix.setMatrixArrayType(Array);var Ce={autoUpdate:!1,preserveDrawingBuffer:!1,bufferSize:1500},Le="attribute vec3 a_vertexPosition;\nattribute vec3 a_vertexTextureCoord;\nvarying vec3 vTextureCoord;\nuniform mat3 viewMatrix;\nuniform mat3 projectionMatrix;\n\nvoid main() {\n  gl_PointSize = 1.0;\n  vec3 pos = projectionMatrix * viewMatrix * vec3(a_vertexPosition.xy, 1.0);\n  gl_Position = vec4(pos.xy, 1.0, 1.0);    \n  vTextureCoord = a_vertexTextureCoord;              \n}\n",De="precision mediump float;\nvarying vec3 vTextureCoord;\nuniform sampler2D u_texSampler;\nvoid main() {\n  gl_FragColor = texture2D(u_texSampler, vTextureCoord.xy);\n}\n",Pe=Symbol("glRenderer"),je=Symbol("canvasRenderer"),Ie=Symbol("options"),qe=Symbol("globalTransform"),Ne=Symbol("applyGlobalTransform"),Fe=Symbol("canvas");function Ue(t){var e=t.gl,r=t.fbo;r&&e.bindFramebuffer(e.FRAMEBUFFER,r),t._draw(),r&&e.bindFramebuffer(e.FRAMEBUFFER,null)}function Be(t,e,r,n){var i=t.createTexture(e.canvas),o=[[[0,0],[r,0],[r,n],[0,n],[0,0]]];o.closed=!0;var a=new Me({contours:o});a.setTexture(i),t.setMeshData([a.meshData]),Ue(t),i.delete(),e.clearRect(0,0,r,n),delete e._filter}var Ve=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u()(this,t);var n=r.contextType;if(n||(n="function"==typeof WebGL2RenderingContext?"webgl2":"function"==typeof WebGLRenderingContext?"webgl":"2d"),!e.getContext){var i=e;e={getContext:function(){return i},width:r.width,height:r.height},i.canvas=e,n="2d"}if(this[Fe]=e,"webgl"!==n&&"webgl2"!==n&&"2d"!==n)throw new Error("Unknown context type ".concat(n));if(r.contextType=n,this[Ie]=Object.assign({},Ce,r),"webgl"===n||"webgl2"===n){"webgl2"===n&&(this[Ie].webgl2=!0);var o=new f.a(e,this[Ie]);"webgl2"!==n||o.isWebGL2||(r.contextType="webgl"),Se(o),Ae(o),_e();var a=o.gl;a.clearColor(0,0,0,0),a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA),this[Pe]=o}else this[je]=new R(e,this[Ie]);this[qe]=[1,0,0,0,1,0,0,0,1],this.updateResolution()}return l()(t,[{key:Ne,value:function(){var t=this[Pe]||this[je];if(this[Pe]){var e=this.canvas,r=e.width,n=e.height;t.uniforms.viewMatrix=this.viewMatrix,t.uniforms.projectionMatrix=this.projectionMatrix,t.uniforms.u_resolution=[r,n]}}},{key:"updateResolution",value:function(){var t=this.canvas,e=t.width,r=t.height,n=[1,0,0,0,1,0,-e/2,-r/2,1],i=[2/e,0,0,0,-2/r,0,0,0,1],o=h.mat3.multiply(Array.of(0,0,0,0,0,0,0,0,0),i,n);this.projectionMatrix=o,this[Pe]&&this[Pe].gl.viewport(0,0,e,r)}},{key:"createTexture",value:function(t,e){return(this[Pe]||this[je]).createTexture(t,e)}},{key:"loadTexture",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.useImageBitmap,n=void 0!==r&&r,i=this[Pe]||this[je];return i.loadTexture(t,{useImageBitmap:n})}},{key:"createText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.font,n=void 0===r?"16px arial":r,i=e.fillColor,o=void 0===i?null:i,a=e.strokeColor,s=void 0===a?null:a,u=e.strokeWidth,c=void 0===u?1:u;if(this[Pe]){var l=y.a.createText(t,{font:n,fillColor:o,strokeColor:s,strokeWidth:c});return{image:this.createTexture(l.image),rect:l.rect}}return{_img:{font:n,fillColor:o,strokeColor:s,strokeWidth:c,text:t}}}},{key:"createProgram",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.vertex,r=t.fragment,n=t.options;if(this[Pe]){var i=this[Pe].compileSync(r,e);return i._attribOpts=n,i}throw new Error("Context 2D cannot create webgl program.")}},{key:"createPassProgram",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.vertex,r=void 0===e?Le:e,n=t.fragment,i=void 0===n?De:n,o=t.options;return this.createProgram({vertex:r,fragment:i,options:o})}},{key:"useProgram",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this[Pe]){var r=Object.assign({},t._attribOpts,e);return this[Pe].useProgram(t,r)}throw new Error("Context 2D cannot use webgl program.")}},{key:"deleteTexture",value:function(t){return(this[Pe]||this[je]).deleteTexture(t)}},{key:"clear",value:function(){if(this[Pe]){var t=this[Pe].gl;t.clear(t.COLOR_BUFFER_BIT)}else{var e;(e=this[je]).clear.apply(e,arguments)}}},{key:"drawMeshCloud",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.clear,n=void 0!==r&&r,i=e.program,o=void 0===i?null:i,a=this[Pe]||this[je],s=o||t.program;if(this[Pe]){var u=a.gl;if(n&&u.clear(u.COLOR_BUFFER_BIT),s)a.program!==s&&this.useProgram(s,{a_color:{type:"UNSIGNED_BYTE",normalize:!0},a_fillCloudColor:{type:"UNSIGNED_BYTE",normalize:!0},a_strokeCloudColor:{type:"UNSIGNED_BYTE",normalize:!0},a_frameIndex:{type:"UNSIGNED_BYTE",normalize:!1}});else{var c=t.mesh.meshData,l=!!c.uniforms.u_texSampler,f=!!c.uniforms.u_filterFlag,h=!!c.uniforms.u_radialGradientVector,d=t.hasCloudColor,p=t.hasCloudFilter,v=!!c.uniforms.u_clipSampler;Ee(a,{hasTexture:l,hasFilter:f,hasGradient:h,hasCloudColor:d,hasCloudFilter:p,hasClipPath:v})}this[Ne](),a.setMeshData([t.meshData]),t.beforeRender&&t.beforeRender(u,t),Ue(a),t.afterRender&&t.afterRender(u,t)}else a.setTransform(this.globalTransformMatrix),a.drawMeshCloud(t,{clear:n,hook:!1})}},{key:"drawMeshes",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.clear,i=void 0!==n&&n,o=r.program,a=void 0===o?null:o,s=this[Pe]||this[je];this[Pe]?function(){var r=s.fbo,n=at(e,t,null==a),o=s.gl;i&&o.clear(o.COLOR_BUFFER_BIT);var u=!Jt(e.globalTransformMatrix);e._drawCalls=0;var c,l=Oe(n);try{var f=function(){var n=c.value;e._drawCalls++;var l=a||n.program;if(n instanceof et)e.drawMeshCloud(n,{clear:i,program:l});else{var f=e.canvas,h=f.width,d=f.height;if(n.beforeRender&&n.beforeRender(o,n),n.pass.length&&(e.fbo&&e.fbo.width===h&&e.fbo.height===d||(e.fbo={width:h,height:d,target:s.createFBO(),buffer:s.createFBO(),swap:function(){var t=[this.buffer,this.target];this.target=t[0],this.buffer=t[1]}}),s.bindFBO(e.fbo.target)),!l&&n.filterCanvas){Ae(s,{hasTexture:!0});var p=e.filterContext;if(!p)p=y.a.createCanvas(h,d).getContext("2d"),e.filterContext=p;var v=t[n.packIndex],g=v.filter,m=t[n.packIndex+1],b=t[n.packIndex-1];b&&b.filterCanvas&&b.filter===g||m&&m.filterCanvas&&m.filter===g?(u&&p.save(),S(v,p,!1),u&&p.restore(),m&&m.filterCanvas&&v.filter===m.filter||(M(p,g),e[Ne](),Be(s,p,h,d))):(u?(p.save(),S(v,p,!1),p.restore(),M(p,g)):S(v,p,!0),e[Ne](),Be(s,p,h,d))}else{if(l)s.program!==l&&e.useProgram(l,{a_color:{type:"UNSIGNED_BYTE",normalize:!0}});else{var x=!!n.uniforms.u_texSampler,w=!!n.uniforms.u_filterFlag,k=!!n.uniforms.u_radialGradientVector,A=!!n.uniforms.u_clipSampler;Ae(s,{hasTexture:x,hasFilter:w,hasGradient:k,hasClipPath:A})}n.filterCanvas&&console.warn("User program ignored some filter effects."),e[Ne](),s.setMeshData([n]),Ue(s)}if(n.pass.length){var R=n.pass.length;n.pass.forEach((function(t,i){t.blend=n.enableBlend,t.setTexture(s.fbo.texture),i===R-1?s.bindFBO(r):(e.fbo.swap(),s.bindFBO(e.fbo.target)),t.program?s.useProgram(t.program):(e.defaultPassProgram=e.defaultPassProgram||e.createPassProgram(),s.useProgram(e.defaultPassProgram)),s.setMeshData([t.meshData]),o.clear(o.COLOR_BUFFER_BIT),Ue(s)}))}n.afterRender&&n.afterRender(o,n)}};for(l.s();!(c=l.n()).done;)f()}catch(t){l.e(t)}finally{l.f()}}():(s.setTransform(this.globalTransformMatrix),s.drawMeshes(t,{clear:i}))}},{key:"drawImage",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=r.length;if(i<2)throw new TypeError("Failed to execute 'drawImage' on 'Renderer': 3 arguments required, but only ".concat(r.length+1," present."));if(2!==i&&4!==i&&8!==i)throw new TypeError("Failed to execute 'drawImage' on 'Renderer': Valid arities are: [3, 5, 9], but ".concat(r.length+1," arguments provided."));var o=null,a=null;2===i?o=[r[0],r[1],t.width,t.height]:4===i?o=r:8===i&&(a=r.slice(0,4),o=r.slice(4));var s=this.createTexture(t),u=this.canvas,c=u.width,l=u.height,f=new jt;f.rect(o[0],o[1],c,l);var h=new Me(f,{width:c,height:l});h.setTexture(s,{rect:o,srcRect:a}),this.drawMeshes([h]),this.deleteTexture(s)}},{key:"setGlobalTransform",value:function(){return this[qe]=[arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0,arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0,arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5],1],this}},{key:"globalTransform",value:function(){for(var t=this[qe],e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this[qe]=h.mat3.multiply(Array.of(0,0,0,0,0,0,0,0,0),t,r),this}},{key:"globalTranslate",value:function(t,e){var r=h.mat3.create();return r=h.mat3.translate(Array.of(0,0,0,0,0,0,0,0,0),r,[t,e]),this.globalTransform.apply(this,a()(r))}},{key:"globalRotate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0],r=i()(e,2),n=r[0],o=r[1],s=h.mat3.create();return s=h.mat3.translate(Array.of(0,0,0,0,0,0,0,0,0),s,[n,o]),s=h.mat3.rotate(Array.of(0,0,0,0,0,0,0,0,0),s,t),s=h.mat3.translate(Array.of(0,0,0,0,0,0,0,0,0),s,[-n,-o]),this.globalTransform.apply(this,a()(s))}},{key:"globalScale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],n=i()(r,2),o=n[0],s=n[1],u=h.mat3.create();return u=h.mat3.translate(Array.of(0,0,0,0,0,0,0,0,0),u,[o,s]),u=h.mat3.scale(Array.of(0,0,0,0,0,0,0,0,0),u,[t,e]),u=h.mat3.translate(Array.of(0,0,0,0,0,0,0,0,0),u,[-o,-s]),this.globalTransform.apply(this,a()(u))}},{key:"globalSkew",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],n=i()(r,2),o=n[0],s=n[1],u=h.mat3.create();return u=h.mat3.translate(Array.of(0,0,0,0,0,0,0,0,0),u,[o,s]),u=h.mat3.multiply(Array.of(0,0,0,0,0,0,0,0,0),u,h.mat3.fromValues(1,Math.tan(e),Math.tan(t),1,0,0)),u=h.mat3.translate(Array.of(0,0,0,0,0,0,0,0,0),u,[-o,-s]),this.globalTransform.apply(this,a()(u))}},{key:"transformPoint",value:function(t,e,r){var n=this.globalTransformMatrix;return r&&(n=h.mat3.multiply(Array.of(0,0,0,0,0,0,0,0,0),n,r)),[t*n[0]+e*n[2]+n[4],t*n[1]+e*n[3]+n[5]]}},{key:"canvas",get:function(){return this[Fe]}},{key:"canvasRenderer",get:function(){return this[je]}},{key:"glRenderer",get:function(){return this[Pe]}},{key:"isWebGL2",get:function(){return this[Pe]&&this[Pe].isWebGL2}},{key:"options",get:function(){return this[Ie]}},{key:"globalTransformMatrix",get:function(){var t=this[qe];return[t[0],t[1],t[3],t[4],t[6],t[7]]}},{key:"viewMatrix",get:function(){return this[qe]}}]),t}();r(0).glMatrix.setMatrixArrayType(Array)},function(t,e,r){"use strict";r.d(e,"b",(function(){return M})),r.d(e,"c",(function(){return k})),r.d(e,"d",(function(){return A})),r.d(e,"e",(function(){return R})),r.d(e,"a",(function(){return _}));var n=r(2),i=r.n(n),o=r(36),a=r.n(o),s=r(8),u=r.n(s),c=r(7),l=r.n(c),f=r(1),h=r.n(f),d=r(103),p=r.n(d),v=r(5),g=r.n(v),y=r(6),m=r.n(y),b=r(35),x=r.n(b);function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h()(t);if(e){var i=h()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var M=function(){function t(e){var r=e.vector,n=e.colors;if(g()(this,t),!Array.isArray(r)||4!==r.length&&6!==r.length&&3!==r.length)throw new TypeError("Invalid gradient");this.vector=r,this.colors=n.map((function(t){return{offset:t.offset,color:k(t.color)}}))}return m()(t,[{key:"toString",value:function(){return JSON.stringify({vector:this.vector,colors:this.colors})}}]),t}();function k(t){if(null==t)return t;if(t||(t="transparent"),t instanceof M)return t;var e=x()(t);if(!e||!e.length)throw new TypeError("Invalid color value.");return"rgba(".concat(e.join(),")")}function S(t,e,r){var n=t.boundingBox[0];if(r.vector){var i=r.vector,o=r.colors;4===i.length?(i=[i[0]+n[0],i[1]+n[1],i[2]+n[0],i[3]+n[1]],t.setLinearGradient({vector:i,colors:o,type:e})):3===i.length?(i=[i[0]+n[0],i[1]+n[1],i[2]],t.setCircularGradient({vector:i,colors:o,type:e})):(i=[i[0]+n[0],i[1]+n[1],i[2],i[3]+n[0],i[4]+n[1],i[5]],t.setRadialGradient({vector:i,colors:o,type:e}))}else t.gradient&&t.gradient[e]&&(delete t.gradient[e],delete t.uniforms.u_radialGradientVector)}function A(t,e){var r=e.color,n=e.rule,i=void 0===n?"nonzero":n;return S(t,"fill",r),r.vector||t.setFill({color:r,rule:i}),t}function R(t,e){var r=e.color,n=e.lineWidth,i=e.lineCap,o=e.lineJoin,a=e.lineDash,s=e.lineDashOffset,u=e.miterLimit,c=e.roundSegments;S(t,"stroke",r),r.vector&&(r=[0,0,0,1]),t.setStroke({color:r,thickness:n,cap:i,join:o,miterLimit:u,lineDash:a,lineDashOffset:s,roundSegments:c})}var _=function(t){u()(r,t);var e=w(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(g()(this,r),Array.isArray(n)){var c=n,f=i()(c,4);n=f[0],o=f[1],s=f[2],u=f[3]}if("string"==typeof n){var h=x()(n),d=i()(h,4);n=d[0],o=d[1],s=d[2],u=d[3],n/=255,o/=255,s/=255}return t=e.call(this,n,o,s,u),l()(t,a()(t))}return m()(r,[{key:"fromColor",value:function(t){return"string"==typeof t&&((t=x()(t))[0]/=255,t[1]/=255,t[2]/=255),this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this}},{key:"r",get:function(){return Math.round(255*this[0])},set:function(t){this[0]=t/255}},{key:"g",get:function(){return Math.round(255*this[1])},set:function(t){this[1]=t/255}},{key:"b",get:function(){return Math.round(255*this[2])},set:function(t){this[2]=t/255}},{key:"a",get:function(){return this[3]},set:function(t){this[3]=t}},{key:"hex",get:function(){var t,e="0".concat(this.r.toString(16)).slice(-2),r="0".concat(this.g.toString(16)).slice(-2),n="0".concat(this.b.toString(16)).slice(-2);return this.a<1&&(t=Math.round(255*this[3]),t="0".concat(t.toString(16)).slice(-2)),"#".concat(e).concat(r).concat(n).concat(t||"")}},{key:"rgba",get:function(){return"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.a,")")}}]),r}(p()(Array))},function(t,e,r){t.exports=r(161)},function(t,e){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(112),i=r(10);function o(t,e,r,a){return(o="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,o){var a,s=n(t,e);if(s){if((a=Object.getOwnPropertyDescriptor(s,e)).set)return a.set.call(o,r),!0;if(!a.writable)return!1}if(a=Object.getOwnPropertyDescriptor(o,e)){if(!a.writable)return!1;a.value=r,Object.defineProperty(o,e,a)}else i(o,e,r);return!0})(t,e,r,a)}t.exports=function(t,e,r,n,i){if(!o(t,e,r,n||t)&&i)throw new Error("failed to set property");return r}},function(t,e,r){"use strict";(function(t,n){r.d(e,"b",(function(){return i})),r.d(e,"a",(function(){return o}));var i,o,a=r(2),s=r.n(a);r(0).glMatrix.setMatrixArrayType(Array),void 0!==n&&"function"==typeof n.requestAnimationFrame?(i=n.requestAnimationFrame,o=n.cancelAnimationFrame):(i=function(e){return setTimeout((function(){e(function(){if("undefined"!=typeof performance&&performance.now)return performance.now();if(void 0!==t&&t.hrtime){var e=t.hrtime(),r=s()(e,2);return 1e3*r[0]+1e-6*r[1]}return Date.now?Date.now():(new Date).getTime()}())}),16)},o=function(t){return clearTimeout(t)})}).call(this,r(177),r(78))},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(90)("wks"),i=r(69),o=r(19).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e,r){"use strict";r.d(e,"f",(function(){return h})),r.d(e,"a",(function(){return d})),r.d(e,"b",(function(){return g})),r.d(e,"c",(function(){return y})),r.d(e,"d",(function(){return b})),r.d(e,"e",(function(){return x}));var n=r(2),i=r.n(n),o=r(15),a=r.n(o),s=r(25),u=r.n(s),c=r(13),l=r(4);r(0).glMatrix.setMatrixArrayType(Array);var f={};function h(t,e){if(f[t])return f[t];var r=c.a.loadImage(t,{alias:e,useImageBitmap:!1});return null!=r?r:t}function d(t,e,r){return p.apply(this,arguments)}function p(){return(p=u()(a.a.mark((function t(e,r,n){var i,o,s,u,c,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r,"string"==typeof r&&(i=h(r)),!i||"function"!=typeof i.then){t.next=6;break}return t.next=5,i;case 5:i=t.sent;case 6:return r===e.attributes.texture&&(i&&i.image&&(i.sourceRect&&(e.attributes.sourceRect=i.sourceRect),e.textureImageRotated=!!i.rotated,i=i.image),o=e.attributes,s=o.width,u=o.height,c=o.textureRect,l=e.textureImage,e.textureImage=i,!n||l===i||c||null!=s&&null!=u||e.updateContours(),e.forceUpdate()),t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var v=Symbol("textureMap");function g(t,e){if(e[v]=e[v]||new Map,e[v].has(t))return e[v].get(t);var r=e.createTexture(t);return/^blob:/.test(t.src)||"function"==typeof t.getContext||e[v].set(t,r),r}function y(t,e){if(e[v]&&e[v].has(t)){var r=e[v].get(t);return e.deleteTexture(r),e[v].delete(t),!0}return!1}var m=Symbol("textureContext");function b(t,e){var r=t.textureImage instanceof String?String(t.textureImage):t.textureImage,n=t.textureImageRotated,i=e.texture,o=t.renderer;if(r){var a=t.originalContentRect,s=t.attributes.textureRect,u=t.attributes.textureRepeat,c=t.attributes.sourceRect;if(!i||t[m]&&t[m]!==o||i.image!==r||i.options.repeat!==u||!Object(l.a)(i.options.rect,s)||!Object(l.a)(i.options.srcRect,c)){var f=g(r,o);s?(s[0]+=a[0],s[1]+=a[1]):s=a;var h=null;!i||o[v].has(i.image)||i.options&&i.options.hidden||(h=e.uniforms.u_texSampler),e.setTexture(f,{rect:s,repeat:u,srcRect:c,rotated:n}),h&&h.delete&&h.delete(),t[m]=o}}else if(i){var d=null;o[v].has(i.image)||i.options&&i.options.hidden||(d=e.uniforms.u_texSampler),e.setTexture(null),d&&d.delete&&d.delete()}}function x(t,e){return w.apply(this,arguments)}function w(){return(w=u()(a.a.mark((function t(e,r){var n,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof r){t.next=7;break}return t.next=3,fetch(r,{method:"GET",mode:"cors",cache:"default"});case 3:return n=t.sent,t.next=6,n.json();case 6:r=t.sent;case 7:return t.next=9,h(e);case 9:return o=t.sent,s=r.frames,Object.entries(s).forEach((function(t){var e=i()(t,2),r=e[0],n=e[1],a=n.frame,s=[a.x,a.y,a.w,a.h],u=n.rotated;u&&(s=[s[0],s[1],s[3],s[2]]),f[r]={image:o,sourceRect:s,rotated:u}})),t.abrupt("return",o);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},function(t,e,r){var n=r(19),i=r(16),o=r(39),a=r(40),s=r(45),u=function(t,e,r){var c,l,f,h=t&u.F,d=t&u.G,p=t&u.S,v=t&u.P,g=t&u.B,y=t&u.W,m=d?i:i[e]||(i[e]={}),b=m.prototype,x=d?n:p?n[e]:(n[e]||{}).prototype;for(c in d&&(r=e),r)(l=!h&&x&&void 0!==x[c])&&s(m,c)||(f=l?x[c]:r[c],m[c]=d&&"function"!=typeof x[c]?r[c]:g&&l?o(f,n):y&&x[c]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[c]=f,t&u.R&&b&&!b[c]&&a(b,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timeline=e.Effects=e.Easings=e.Animator=void 0;var n=s(r(113)),i=s(r(132)),o=r(100),a=s(r(225));function s(t){return t&&t.__esModule?t:{default:t}}e.Animator=a.default,e.Easings=o.Easings,e.Effects=i.default,e.Timeline=n.default},function(t,e,r){"use strict";r.d(e,"b",(function(){return d})),r.d(e,"a",(function(){return p}));var n=r(2),i=r.n(n),o=r(14),a=r(12);r(0).glMatrix.setMatrixArrayType(Array);var s=r(245);function u(t){return 1===t.nodeType||a.a.isSpriteNode(t.nodeName)}function c(t){return Array.from(t.childNodes||[])}function l(t){return a.a.isSpriteNode(t.nodeName)?t.parent||t.canvas||t.container:t.parentElement}var f={isTag:u,existsOne:function(t,e){return e.some((function(e){return!!u(e)&&(t(e)||f.existsOne(t,c(e)))}))},getSiblings:function(t){var e=l(t);return e&&c(e)},getChildren:c,getParent:l,getAttributeValue:function(t,e){if(1===t.nodeType&&"class"===e||"id"===e)return t[e];if(this.hasAttrib(t,e)){var r=t.attributes[e];return Array.isArray(r)&&(r="[".concat(r.join(),"]")),String(r)}},hasAttrib:function(t,e){return null!=t.attributes[e]},removeSubsets:function(t){for(var e,r,n,i=t.length;--i>-1;){for(e=r=t[i],t[i]=null,n=!0;r;){if(t.indexOf(r)>-1){n=!1,t.splice(i,1);break}r=l(r)}n&&(t[i]=e)}return t},getName:function(t){return t.tagName?t.tagName.toLowerCase():null},findOne:function t(e,r){for(var n=null,i=0,o=r.length;i<o&&!n;i++)if(e(r[i]))n=r[i];else{var a=c(r[i]);a&&a.length>0&&(n=t(e,a))}return n},findAll:function t(e,r){for(var n=[],i=0,o=r.length;i<o;i++)if(u(r[i])){e(r[i])&&n.push(r[i]);var a=c(r[i]);a&&(n=n.concat(t(e,a)))}return n},getText:function t(e){return Array.isArray(e)?e.map(t).join(""):u(e)?t(c(e)):3===e.nodeType?e.nodeValue:a.a.isSpriteNode(e.nodeName)?e.text:""}};function h(t){if("string"!=typeof t)return t;var e=t.match(/\[(bgcolor|fillColor|strokeColor|color)\s*=\s*['"]?\w+['"]?\]/g);return e&&(e=e.map((function(t){var e=t.slice(1,-1).split("="),r=Object(o.c)(e[1].replace(/['"]/g,""));return[t,"[".concat(e[0],'="').concat(r,'"]')]}))).forEach((function(e){var r=i()(e,2),n=r[0],o=r[1];t=t.replace(n,o)})),(e=t.match(/\[\w+\s*=\s*['"]\[.+?\]['"]\]/g))&&(e=e.map((function(t){var e=t.slice(1,-1).split("="),r=e[1].slice(2,-2).split(/,/g).map((function(t){return t.trim()}));return[t,"[".concat(e[0],'="[').concat(r,']"]')]}))).forEach((function(e){var r=i()(e,2),n=r[0],o=r[1];t=t.replace(n,o)})),t}function d(t,e){return s.selectAll(h(t),e,{adapter:f})}function p(t,e){return s.selectOne(h(t),e,{adapter:f})}},function(t,e){function r(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}},function(t,e,r){t.exports=!r(44)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,r){"use strict";function n(t){return"rgba(".concat(t.map((function(t,e){return e<3?Math.round(255*t):t})).join(),")")}r.d(e,"a",(function(){return n})),r(0).glMatrix.setMatrixArrayType(Array)},function(t,e,r){var n=r(37),i=r(115),o=r(86),a=Object.defineProperty;e.f=r(26)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return T}));var n=r(3),i=r.n(n),o=r(5),a=r.n(o),s=r(6),u=r.n(s),c=r(9),l=r.n(c),f=r(8),h=r.n(f),d=r(7),p=r.n(d),v=r(1),g=r.n(v),y=r(10),m=r.n(y),b=r(13),x=r(54),w=r.n(x),M=r(38),k=r(33),S=r(14),A=r(21),R=r(12),_=r(74);function E(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g()(t);if(e){var i=g()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var O=Symbol("mesh"),T=function(t){h()(r,t);var e=E(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a()(this,r),"string"==typeof n&&(n={d:n}),(t=e.call(this,n)).effects={d:function(t,e,r,n,o){var a=(r-n)/(o-n);if(a<=0)return t;if(a>=1)return e;var s=w.a._preprocessing(w.a.path2shapes(t),w.a.path2shapes(e)),u=w.a._lerp.apply(w.a,i()(s).concat([a]))[0];return u.reduce((function(t,e){return"".concat(t).concat(e.slice(2).join(" ")," ")}),"M".concat(u[0][0]," ").concat(u[0][1],"C")).trim()}},t}return u()(r,[{key:"draw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l()(g()(r.prototype),"draw",this).call(this,t);var e=this.mesh;return e&&Object(A.d)(this,e),t}},{key:"getBoundingClientRect",value:function(){var t=null;return this.mesh&&(t=this.mesh.boundingBox),Object(_.a)(t,this.renderMatrix)}},{key:"getPathLength",value:function(){return this.mesh?this.mesh.getTotalLength():0}},{key:"getPointAtLength",value:function(t){if(this.mesh){var e=this.mesh.getPointAtLength(t);if(e)return[e.x,e.y]}return[0,0]}},{key:"onPropertyChange",value:function(t,e,n){if(l()(g()(r.prototype),"onPropertyChange",this).call(this,t,e,n),"d"!==t&&"normalize"!==t||this.updateContours(),this[O]&&("fillColor"===t||"fillRule"===t)){var i=this.attributes,o=i.fillColor,a=i.fillRule;Object(S.d)(this[O],{color:o,rule:a})}if(this[O]&&("strokeColor"===t||"lineWidth"===t||"lineCap"===t||"lineJoin"===t||"lineDash"===t||"lineDashOffset"===t||"roundSegments"===t)){var s=this.attributes,u=s.strokeColor,c=s.lineWidth;if(u&&c>0){var f=this.attributes,h=f.lineCap,d=f.lineJoin,p=f.lineDash,v=f.lineDashOffset,y=f.miterLimit,m=f.roundSegments;Object(S.e)(this[O],{color:u,lineCap:h,lineJoin:d,lineWidth:c,lineDash:p,lineDashOffset:v,miterLimit:y,roundSegments:m})}}this[O]&&"clipPath"===t&&this[O].setClipPath(e),"texture"===t&&Object(A.a)(this,e)}},{key:"updateContours",value:function(){var t;(this.path=new b.b,this.path.addPath(this.attributes.d),this.attributes.normalize)&&(t=this.path).normalize.apply(t,i()(this.path.boundingCenter))}},{key:"isVisible",get:function(){return!!this.d}},{key:"mesh",get:function(){if("none"===this.attributes.display)return null;var t=this.path;if(t){var e,r=this[O];if(r)r.path!==t&&(r.contours=t.contours,r.path=t);else{(r=new b.c(this.path)).path=t;var n=this.attributes.fillColor,o=this.attributes.fillRule;n&&Object(S.d)(r,{color:n,rule:o});var a=this.attributes.lineWidth,s=this.attributes.strokeColor;if(s&&a>0){var u=this.attributes,c=u.lineCap,l=u.lineJoin,f=u.miterLimit,h=u.lineDash,d=u.lineDashOffset,p=u.roundSegments;Object(S.e)(r,{color:s,lineWidth:a,lineCap:c,lineJoin:l,miterLimit:f,lineDash:h,lineDashOffset:d,roundSegments:p})}this[O]=r;var v=this.attributes.clipPath;v&&this[O].setClipPath(v)}var g=this.opacity;return r.getOpacity()!==g&&r.setOpacity(g),(e=r).setTransform.apply(e,i()(this.renderMatrix)),r}return null}},{key:"originalContentRect",get:function(){if(this.path){var t=this.path.boundingBox;return[t[0][0],t[0][1],t[1][0]-t[0][0],t[1][1]-t[0][1]]}return[0,0,0,0]}},{key:"originalClientRect",get:function(){if(this.mesh){var t=this.mesh.boundingBox;return[t[0][0],t[0][1],t[1][0]-t[0][0],t[1][1]-t[0][1]]}return[0,0,0,0]}},{key:"originalClientCenter",get:function(){return this.mesh?this.mesh.boundingCenter:[0,0]}},{key:"d",set:function(t){this.attributes.d=t},get:function(){return this.attributes.d}}]),r}(M.a);m()(T,"Attr",k.a),R.a.registerNode(T,"path")},function(t,e,r){"use strict";r.d(e,"a",(function(){return w}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(9),u=r.n(s),c=r(8),l=r.n(c),f=r(7),h=r.n(f),d=r(1),p=r.n(d),v=r(10),g=r.n(v),y=r(30),m=r(12),b=r(34);function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var w=function(t){l()(r,t);var e=x(r);function r(){return i()(this,r),e.apply(this,arguments)}return a()(r,[{key:"isVisible",get:function(){return this.attributes.points.length>0&&u()(p()(r.prototype),"isVisible",this)}}]),r}(y.a);g()(w,"Attr",b.a),m.a.registerNode(w,"polyline")},function(t,e,r){"use strict";(function(t){var n=r(46),i=r.n(n),o=r(3),a=r.n(o),s=r(77),u=r(51),c=r(27);r(0).glMatrix.setMatrixArrayType(Array);var l={};var f=!1;if("object"===("undefined"==typeof navigator?"undefined":i()(navigator))&&"string"==typeof navigator.userAgent){var h=navigator.userAgent.toLowerCase().match(/chrome\/(\d+)/);h&&(f=Number(h[1])<70)}function d(e,r){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.offscreen||!f&&!1!==i.offscreen;return"function"==typeof t.createCanvas?n=t.createCanvas(e,r,i):o&&"function"==typeof OffscreenCanvas?n=new OffscreenCanvas(e,r):((n=document.createElement("canvas")).width=e,n.height=r),n}var p={createCanvas:d,createText:function(t,e){var r,n=e.font,i=e.fillColor,o=e.strokeColor,s=e.strokeWidth,f=e.ratio,h=void 0===f?1:f,p=e.textCanvas,v=e.cachable,g=void 0!==v&&v;if(g){r=[t,n,String(i),String(o),String(s)].join("###");var y=l[r];if(y)return y}p||(p=d(1,1));var m=p.getContext("2d");m.save(),m.font=n;var b=m.measureText(t).width;m.restore();var x=Object(u.a)(n),w=Math.max(x.pxLineHeight,1.13*x.pxHeight);/italic|oblique/.test(n)&&(b+=w*Math.tan(15*Math.PI/180)),i||o||(i="#000");var M=m.canvas,k=Math.ceil(b),S=Math.ceil(w);M.width=Math.round(k*h),M.height=Math.round(S*h),m.save(),m.font=function(t,e){var r=t.style,n=t.variant,i=t.weight,o=t.stretch,a=t.size,s=t.pxLineHeight,u=t.family;return"".concat(r," ").concat(n," ").concat(i," ").concat(o," ").concat(a*e,"px/").concat(s*e,"px ").concat(u)}(x,h),m.textAlign="center",m.textBaseline="middle";var A=.5*M.height+.05*x.pxHeight*h,R=.5*M.width;if(i){if(Array.isArray(i))i=Object(c.a)(i);else if(i.vector){var _,E=i,O=E.vector,T=E.colors;_=6===O.length?m.createRadialGradient.apply(m,a()(O)):m.createLinearGradient.apply(m,a()(O)),T.forEach((function(t){var e=t.offset,r=t.color;_.addColorStop(e,r)})),i=_}m.fillStyle=i,m.fillText(t,R,A)}if(o){if(m.lineWidth=s*h,Array.isArray(o))o=Object(c.a)(o);else if(o.vector){var C,L=o,D=L.vector,P=L.colors;C=6===D.length?m.createRadialGradient.apply(m,a()(D)):m.createLinearGradient.apply(m,a()(D)),P.forEach((function(t){var e=t.offset,r=t.color;C.addColorStop(e,r)})),o=C}m.strokeStyle=o,m.strokeText(t,R,A)}m.restore();var j={image:p,rect:[0,0,k,S]};return g&&(l[r]=j),j},loadImage:s.a.loadImage};e.a=p}).call(this,r(78))},function(t,e,r){"use strict";r.d(e,"a",(function(){return x}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(8),u=r.n(s),c=r(7),l=r.n(c),f=r(1),h=r.n(f),d=r(53),p=r(14),v=r(4);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h()(t);if(e){var i=h()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var y=Symbol.for("spritejs_setAttributeDefault"),m=Symbol.for("spritejs_setAttribute"),b=Symbol.for("spritejs_getAttribute"),x=function(t){u()(r,t);var e=g(r);function r(t){var n;return i()(this,r),(n=e.call(this,t))[y]({d:"",normalize:!1,fillColor:void 0,fillRule:"nonzero",strokeColor:void 0,lineWidth:1,lineJoin:"miter",lineCap:"butt",roundSegments:20,lineDash:void 0,lineDashOffset:0,miterLimit:10,texture:void 0,textureRect:void 0,textureRepeat:!1,sourceRect:void 0,clipPath:void 0}),n}return a()(r,[{key:"d",get:function(){return this[b]("d")},set:function(t){this[m]("d",t)}},{key:"normalize",get:function(){return this[b]("normalize")},set:function(t){this[m]("normalize",!!t)}},{key:"fillColor",get:function(){return this[b]("fillColor")},set:function(t){this[m]("fillColor",Object(p.c)(t))}},{key:"fillRule",get:function(){return this[b]("fillRule")},set:function(t){if(null!=t&&"nonzero"!==t&&"evenodd"!==t)throw new TypeError("Invalid fill rule.");this[m]("fillRule",t)}},{key:"strokeColor",get:function(){return this[b]("strokeColor")},set:function(t){this[m]("strokeColor",Object(p.c)(t))}},{key:"lineWidth",get:function(){return this[b]("lineWidth")},set:function(t){this[m]("lineWidth",Object(v.d)(t))}},{key:"lineJoin",get:function(){return this[b]("lineJoin")},set:function(t){if(null!=t&&"miter"!==t&&"bevel"!==t&&"round"!==t)throw new TypeError("Invalid lineJoin type.");this[m]("lineJoin",t)}},{key:"lineCap",get:function(){return this[b]("lineCap")},set:function(t){if(null!=t&&"butt"!==t&&"square"!==t&&"round"!==t)throw new TypeError("Invalid lineCap type.");this[m]("lineCap",t)}},{key:"lineDash",get:function(){return this[b]("lineDash")},set:function(t){null==(t=Object(v.c)(t,!0))||Array.isArray(t)||(t=[t]),this[m]("lineDash",t?t.map(v.d):null)}},{key:"lineDashOffset",get:function(){return this[b]("lineDashOffset")},set:function(t){this[m]("lineDashOffset",Object(v.d)(t))}},{key:"miterLimit",get:function(){return this[b]("miterLimit")},set:function(t){this[m]("miterLimit",Object(v.d)(t))}},{key:"roundSegments",get:function(){return this[b]("roundSegments")},set:function(t){this[m]("roundSegments",t)}},{key:"texture",get:function(){return this[b]("texture")},set:function(t){this[m]("texture",t)}},{key:"textureRect",get:function(){return this[b]("textureRect")},set:function(t){this[m]("textureRect",t)}},{key:"sourceRect",get:function(){return this[b]("sourceRect")},set:function(t){this[m]("sourceRect",t)}},{key:"textureRepeat",get:function(){return this[b]("textureRepeat")},set:function(t){this[m]("textureRepeat",!!t)}},{key:"clipPath",get:function(){return this[b]("clipPath")},set:function(t){this[m]("clipPath",t)}}]),r}(d.a)},function(t,e,r){"use strict";r.d(e,"a",(function(){return A}));var n=r(3),i=r.n(n),o=r(5),a=r.n(o),s=r(6),u=r.n(s),c=r(8),l=r.n(c),f=r(7),h=r.n(f),d=r(1),p=r.n(d),v=r(33),g=r(4),y=r(2),m=r.n(y);function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array),r(0).glMatrix.setMatrixArrayType(Array);var x=Symbol.for("spritejs_setAttributeDefault"),w=Symbol.for("spritejs_setAttribute"),M=Symbol.for("spritejs_getAttribute"),k=Symbol.for("spritejs_declareAlias");function S(t){for(var e=t.points,r=t.smooth,n=t.smoothRange,i=t.close,o=[],a=0;a<e.length;a+=2)o.push([e[a],e[a+1]]);var s="";return r?s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];function r(e){var r,n,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.168,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.168;if(t[e].x!==t[e+1].x&&t[e].y!==t[e+1].y||(a=0,s=0),e<1?(r=t[0].x+(t[1].x-t[0].x)*a,n=t[0].y+(t[1].y-t[0].y)*a):(r=t[e].x+(t[e+1].x-t[e-1].x)*a,n=t[e].y+(t[e+1].y-t[e-1].y)*a),e>t.length-3){var u=t.length-1;i=t[u].x-(t[u].x-t[u-1].x)*s,o=t[u].y-(t[u].y-t[u-1].y)*s}else i=t[e+1].x-(t[e+2].x-t[e].x)*s,o=t[e+1].y-(t[e+2].y-t[e].y)*s;return[{x:r,y:n},{x:i,y:o}]}t=t.map((function(t){var e=m()(t,2);return{x:e[0],y:e[1]}}));var n="",i=0;return t.forEach((function(t,o){if(0===o)n+="M".concat(t.x," ").concat(t.y);else{for(;o>e[i];)i++;if(i%2){var a=r(o-1),s=m()(a,2),u=s[0],c=s[1];n+="C".concat([u.x,u.y,c.x,c.y,t.x,t.y].join(" "))}else n+="L".concat(t.x," ").concat(t.y)}})),n}(o,n):o.length&&(s="M".concat(o.map((function(t){return t.join(" ")})).join("L"))),s&&i&&(s+="Z"),s}var A=function(t){l()(r,t);var e=b(r);function r(t){var n;return a()(this,r),(n=e.call(this,t))[x]({points:[],smooth:!1,smoothRange:[0],closeType:"none"}),n[k]("close"),n}return u()(r,[{key:"d",get:function(){return this[M]("d")},set:function(t){}},{key:"close",get:function(){return"none"!==this.closeType},set:function(t){t=t?"normal":"none",this.closeType=t}},{key:"closeType",get:function(){return this[M]("closeType")},set:function(t){if(null!=t&&"none"!==t&&"normal"!==t)throw new TypeError("Invalid closeType type.");if(this[w]("closeType",t)){var e=S(this);this[w]("d",e)}}},{key:"smooth",get:function(){return this[M]("smooth")},set:function(t){if(this[w]("smooth",t)){var e=S(this);this[w]("d",e)}}},{key:"smoothRange",get:function(){return this[M]("smoothRange")},set:function(t){if(t&&!Array.isArray(t)&&(t=[t]),this[w]("smoothRange",t)&&this.smooth){var e=S(this);this[w]("d",e)}}},{key:"points",get:function(){return this[M]("points")},set:function(t){if(t=Object(g.c)(t),Array.isArray(t)&&(t=t.reduce((function(t,e){return Array.isArray(e)?[].concat(i()(t),i()(e.map((function(t){return Object(g.d)(t)})))):[].concat(i()(t),[Object(g.d)(e)])}),[])),this[w]("points",t)){var e=S(this);this[w]("d",e)}}}]),r}(v.a)},function(t,e,r){"use strict";var n=r(162),i=r(166),o=r(168);t.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=o(r.values[0],0,255),e[1]=o(r.values[1],0,255),e[2]=o(r.values[2],0,255),"h"===r.space[0]&&(e=i.rgb(e)),e.push(o(r.alpha,0,1)),e):[]}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,r){var n=r(29);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return $}));var n=r(46),i=r.n(n),o=r(3),a=r.n(o),s=r(2),u=r.n(s),c=r(5),l=r.n(c),f=r(6),h=r.n(f),d=r(10),p=r.n(d),v=r(0),g=r(53),y=r(157),m=r.n(y),b=r(9),x=r.n(b),w=r(8),M=r.n(w),k=r(7),S=r.n(k),A=r(1),R=r.n(A),_=r(23),E=r(35),O=r.n(E),T=r(18),C=r(4);function L(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=R()(t);if(e){var i=R()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return S()(this,r)}}function D(t){if("string"==typeof t){if(t=t.trim(),/^[0-9.]+%$/.test(t))return parseFloat(t)/100;if(/^([\d.]+)(px|pt|pc|in|cm|mm|em|ex|rem|q|vw|vh|vmax|vmin)$/.test(t))return Object(C.b)(t)}return t}function P(t,e,r,n,i){return"string"==typeof t&&(t=O()(t)),"string"==typeof e&&(e=O()(e)),_.Effects.default(t,e,r,n,i)}r(0).glMatrix.setMatrixArrayType(Array),_.Effects.default=function(t,e,r,n,i){return Array.isArray(t)&&Array.isArray(e)?t.map((function(t,o){return t+(r-n)/(i-n)*(e[o]-t)})):"number"==typeof t&&"number"==typeof e?t+(r-n)/(i-n)*(e-t):r-n>i-r?e:t},_.Effects.fillColor=P,_.Effects.strokeColor=P,_.Effects.bgcolor=P,_.Effects.borderColor=P,_.Effects.text=function(t,e,r,n,i){return _.Effects.default(t,e,r,n,i)};var j=function(t){M()(r,t);var e=L(r);function r(t,n,i){var o;l()(this,r);var a=t.attr();return Object.entries(a).forEach((function(t){var e=u()(t,2),r=e[0],n=e[1];a[r]=_.Effects[r]?n:D(n)})),n=n.map((function(t){var e=m()({},t),r={};return Object.entries(e).forEach((function(t){var e=u()(t,2),n=e[0],i=e[1];r[n]=_.Effects[n]?i:D(i)})),r})),(o=e.call(this,a,n,i)).target=t,o.setter=function(t,e){e.attr(t)},o}return h()(r,[{key:"finish",value:function(){x()(R()(r.prototype),"finish",this).call(this),Object(T.a)(this.requestId),this.setter(this.frame,this.target)}},{key:"play",value:function(){if(this.target.parent&&"running"!==this.playState){x()(R()(r.prototype),"play",this).call(this),this.setter(this.frame,this.target);var t=this;this.ready.then((function(){t.setter(t.frame,t.target),t.requestId=Object(T.b)((function e(){var r=t.target;if("undefined"!=typeof document&&document.documentElement&&document.documentElement.contains&&r.layer&&r.layer.canvas&&!document.documentElement.contains(r.layer.canvas))t.cancel();else{var n=t.playState;t.setter(t.frame,t.target),"idle"!==n&&("running"===n?t.requestId=Object(T.b)(e):("paused"===n||"pending"===n&&t.timeline.currentTime<0)&&t.ready.then((function(){t.setter(t.frame,t.target),t.requestId=Object(T.b)(e)})))}}))}))}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Object(T.a)(this.requestId),t?(this.setter(this.frame,this.target),x()(R()(r.prototype),"cancel",this).call(this)):(x()(R()(r.prototype),"cancel",this).call(this),this.setter(this.frame,this.target))}},{key:"playState",get:function(){return this.target.parent?x()(R()(r.prototype),"playState",this):"idle"}},{key:"finished",get:function(){var t=this;return x()(R()(r.prototype),"finished",this).then((function(){var e=t;return new Promise((function(t){!function r(){e.setter(e.frame,e.target);var n=e.playState;"finished"===n||"idle"===n?(Object(T.a)(e.requestId),t()):Object(T.b)(r)}()}))}))}}]),r}(_.Animator),I=r(12),q=r(47);function N(t,e){t.clearFilter(),e&&e.forEach((function(e){var r=e.type,n=e.args,i=r;"drop-shadow"===i?i="dropShadow":"hue-rotate"===i&&(i="hueRotate"),t[i].apply(t,a()(n))}))}function F(t,e){if(e){var r=t.getListeners("beforerender"),n=t.getListeners("afterrender");r.length&&!e.beforeRender?e.beforeRender=function(e){t.dispatchEvent({type:"beforerender",detail:{context:e}})}:r.length||(e.beforeRender=null),n.length&&!e.afterRender?e.afterRender=function(e){t.dispatchEvent({type:"afterrender",detail:{context:e}})}:n.length||(e.afterRender=null)}}function U(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}r(0).glMatrix.setMatrixArrayType(Array),r(0).glMatrix.setMatrixArrayType(Array),r(0).glMatrix.setMatrixArrayType(Array);var B=Symbol.for("spritejs_changedAttrs"),V=Symbol.for("spritejs_attributes"),z=Symbol("resolution"),G=Symbol("animations"),H=Symbol("eventListeners"),W=Symbol("captureEventListeners"),Y=Symbol("filters"),X=Symbol("display"),J=Symbol("program"),Q=Symbol("shaderAttrs"),Z=Symbol("uniforms"),$=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,t),this.attributes=new this.constructor.Attr(this),this[z]={width:300,height:150},Object.assign(this.attributes,e),this[G]=new Set,this[H]={},this[W]={}}return h()(t,[{key:"activateAnimations",value:function(){var t=this.layer;if(t){var e=this[G];e.forEach((function(r){r.baseTimeline=t.timeline,r.play(),r.finished.then((function(){e.delete(r)}))}));var r=this.children;r&&r.forEach((function(t){t.activateAnimations&&t.activateAnimations()}))}}},{key:"addEventListener",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"mousewheel"===t&&(t="wheel"),"boolean"==typeof r&&(r={capture:r});var n=r,i=n.capture,o=n.once,a=i?W:H;return this[a][t]=this[a][t]||[],this[a][t].push({listener:e,once:o}),this}},{key:"animate",value:function(t,e){var r=this,n=new j(this,t,e);return this.effects&&n.applyEffects(this.effects),this.layer&&(n.baseTimeline=this.layer.timeline,n.play(),n.finished.then((function(){r[G].delete(n)}))),this[G].add(n),n}},{key:"attr",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)return this.attributes[V];if(e.length>1){var n=e[0],i=e[1];return"function"==typeof i&&(i=i(this.attr(n))),this.setAttribute(n,i),this}return"string"==typeof e[0]?this.getAttribute(e[0]):(Object.assign(this.attributes,e[0]),this)}},{key:"cloneNode",value:function(){var t=new this.constructor,e=this.attributes[B];return t.attr(e),t}},{key:"connect",value:function(t,e){Object.defineProperty(this,"parent",{value:t,writable:!1,configurable:!0}),Object.defineProperty(this,"zOrder",{value:e,writable:!1,configurable:!0}),t.timeline&&this.activateAnimations(),this.setResolution(t.getResolution()),this.forceUpdate(),this.dispatchEvent({type:"append",detail:{parent:t,zOrder:e}})}},{key:"contains",value:function(t){for(;t&&this!==t;)t=t.parent;return!!t}},{key:"deactivateAnimations",value:function(){this[G].forEach((function(t){return t.cancel()}));var t=this.children;t&&t.forEach((function(t){t.deactivateAnimations&&t.deactivateAnimations()}))}},{key:"disconnect",value:function(){var t=this.parent,e=this.zOrder;delete this.parent,delete this.zOrder,this.deactivateAnimations(),this.dispatchEvent({type:"remove",detail:{parent:t,zOrder:e}}),t&&t.forceUpdate()}},{key:"dispatchEvent",value:function(t){var e=this;t instanceof q.a||(t=new q.a(t)),t.target=this;var r=t.type;"mousewheel"===r&&(r="wheel");for(var n=[this],i=this.parent;t.bubbles&&i;)n.push(i),i=i.parent;for(var o=n.length-1;o>=0;o--){var a=n[o],s=a[W]&&a[W][r];if(s&&s.length&&(t.currentTarget=a,s.forEach((function(r){var i=r.listener,o=r.once;i.call(e,t),o&&n.removeEventListener(i)})),delete t.currentTarget),!t.bubbles&&t.cancelBubble)break}if(!t.cancelBubble)for(var u=0;u<n.length;u++){var c=n[u],l=c[H]&&c[H][r];if(l&&l.length&&(t.currentTarget=c,l.forEach((function(r){var i=r.listener,o=r.once;i.call(e,t),o&&n.removeEventListener(i)})),delete t.currentTarget),!t.bubbles||t.cancelBubble)break}}},{key:"dispatchPointerEvent",value:function(t){var e=t.x,r=t.y;return!!this.isPointCollision(e,r)&&(this.dispatchEvent(t),!0)}},{key:"draw",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=this.mesh;if(r){if(N(r,this.filters),e.push(r),this[J]){r.setProgram(this[J]);var n=this[Q];n&&Object.entries(n).forEach((function(t){var e=u()(t,2),n=e[0],i=e[1];r.setAttribute(n,i)}));var i=this[Z];if(this[Z]){var o={};Object.entries(i).forEach((function(e){var r=u()(e,2),n=r[0],i=r[1];"function"==typeof i&&(i=i(t,n)),o[n]=i})),r.setUniforms(o)}}F(this,r)}return e}},{key:"forceUpdate",value:function(){this.parent&&this.parent.forceUpdate()}},{key:"getAttribute",value:function(t){return this.attributes[t]}},{key:"getListeners",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.capture,n=void 0!==r&&r,i=n?W:H;return a()(this[i][t]||[])}},{key:"getNodeNearBy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(!this.parent)return null;if(0===t)return this;var e=this.parent.children,r=e.indexOf(this);return e[r+t]}},{key:"getWorldPosition",value:function(t,e){var r=this.renderMatrix;return[t*r[0]+e*r[2]+r[4],t*r[1]+e*r[3]+r[5]]}},{key:"getOffsetPosition",value:function(t,e){var r=v.mat2d.invert(Array.of(0,0,0,0,0,0),this.renderMatrix);return[t*r[0]+e*r[2]+r[4],t*r[1]+e*r[3]+r[5]]}},{key:"getResolution",value:function(){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?U(Object(r),!0).forEach((function(e){p()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},this[z])}},{key:"isPointCollision",value:function(t,e){if(!this.mesh)return!1;var r=this.attributes.pointerEvents;if("none"===r)return!1;if("all"!==r&&!this.isVisible)return!1;var n="both";return"visibleFill"===r&&(n="fill"),"visibleStroke"===r&&(n="stroke"),this.mesh.isPointCollision(t,e,n)}},{key:"onPropertyChange",value:function(t,e,r){"id"!==t&&"name"!==t&&"className"!==t&&"pointerEvents"!==t&&"passEvents"!==t&&this.forceUpdate(),"filter"===t&&(this[Y]=function(t){if(!(t=t.trim())||"none"===t)return null;var e=/^(?:(url|blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(([^()]*(?:\(.*\))*[^()]*)\))+$/i,r=t.match(/(?:(url|blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(([^()]*(?:\(.*\))*[^()]*)\))+?/gi),n=[];return r&&r.forEach((function(t){var r=t.match(e);if(!r)throw new TypeError("Invalid fitler string.");var i=u()(r,3),o=i[1],a=i[2];o=o.toLowerCase(),a=a.trim().match(/([^( )]+|([^( )]+\(.*\)))(?=\s|$)/g).map((function(t,e){var r;return r="url"===o||"drop-shadow"===o&&3===e?t:Object(C.d)(t),/%$/.test(t)&&(r/=100),r})),n.push({type:o,args:a})})),n}(e)),"zIndex"===t&&this.parent&&this.parent.reorder()}},{key:"setAttribute",value:function(t,e){"attrs"===t&&this.attr(e),this.attributes[t]=e}},{key:"setMouseCapture",value:function(){this.layer&&(this.layer.__mouseCapturedTarget=this)}},{key:"setProgram",value:function(t){this[J]=t,this.forceUpdate()}},{key:"setShaderAttribute",value:function(t,e){this[Q]=this[Q]||{},this[Q][t]=e,this.forceUpdate()}},{key:"setUniforms",value:function(t){this[Z]=this[Z]||{},Object.assign(this[Z],t),this.forceUpdate()}},{key:"setResolution",value:function(t){var e=t.width,r=t.height,n=this[z],i=n.width,o=n.height;i===e&&o===r||(this[z]={width:e,height:r},this.forceUpdate(),this.dispatchEvent({type:"resolutionchange",detail:{width:e,height:r}}))}},{key:"show",value:function(){"none"===this.attributes.display&&(this.attributes.display=this[X]||"")}},{key:"hide",value:function(){"none"!==this.attributes.display&&(this[X]=this.attributes.display,this.attributes.display="none")}},{key:"releaseMouseCapture",value:function(){this.layer&&this.layer.__mouseCapturedTarget===this&&(this.layer.__mouseCapturedTarget=null)}},{key:"remove",value:function(){return!(!this.parent||!this.parent.removeChild)&&(this.parent.removeChild(this),!0)}},{key:"removeAllListeners",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof e&&(e={capture:e});var r=e.capture,n=r?W:H;return this[n][t]&&(this[n][t]=[]),this}},{key:"removeAttribute",value:function(t){this.setAttribute(t,null)}},{key:"removeEventListener",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"boolean"==typeof r&&(r={capture:r});var n=r.capture,i=n?W:H;if(this[i][t]){var o=this[i][t];if(o)for(var a=0;a<o.length;a++){var s=o[a].listener;if(s===e){this[i][t].splice(a,1);break}}}return this}},{key:"transition",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"linear",n=this,o=Symbol("animation");r=r||"linear";var a=0;return"object"===i()(t)&&(a=t.delay||0,t=t.duration),e={},p()(e,o,null),p()(e,"cancel",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this[o];e&&e.cancel(t)})),p()(e,"end",(function(){var t=this[o];!t||"running"!==t.playState&&"pending"!==t.playState||t.finish()})),p()(e,"reverse",(function(){var t=this[o];if(t)if("running"===t.playState||"pending"===t.playState)t.playbackRate=-t.playbackRate;else{var e=t.timing.direction;t.timing.direction="reverse"===e?"normal":"reverse",t.play()}return t.finished})),p()(e,"attr",(function(e,i){return this.end(),"string"==typeof e&&(e=p()({},e,i)),Object.entries(e).forEach((function(t){var r=u()(t,2),i=r[0],o=r[1];"function"==typeof o&&(e[i]=o(n.attr(i)))})),this[o]=n.animate([e],{duration:1e3*t,delay:1e3*a,fill:"forwards",easing:r}),this[o].finished})),e}},{key:"updateContours",value:function(){}},{key:"ancestors",get:function(){for(var t=this.parent,e=[];t;)e.push(t),t=t.parent;return e}},{key:"animations",get:function(){return this[G]}},{key:"filters",get:function(){return this[Y]||this.parent&&this.parent.filters}},{key:"isVisible",get:function(){return!1}},{key:"layer",get:function(){return this.parent?this.parent.layer:null}},{key:"localMatrix",get:function(){var t=this.transformMatrix,e=this.attributes,r=e.x,n=e.y;return t[4]+=r,t[5]+=n,t}},{key:"opacity",get:function(){var t=this.attributes.opacity;return this.parent&&null!=this.parent.opacity&&(t*=this.parent.opacity),t}},{key:"parentNode",get:function(){return this.parent}},{key:"nextSibling",get:function(){return this.getNodeNearBy(1)}},{key:"previousSibling",get:function(){return this.getNodeNearBy(-1)}},{key:"program",get:function(){return this[J]}},{key:"renderer",get:function(){return this.parent?this.parent.renderer:null}},{key:"renderMatrix",get:function(){if(this.__cacheRenderMatrix)return this.__cacheRenderMatrix;var t=this.localMatrix,e=this.parent;if(e){var r=e.__cacheRenderMatrix||e.renderMatrix;r&&(t=v.mat2d.multiply(Array.of(0,0,0,0,0,0),r,t))}return t}},{key:"worldScaling",get:function(){var t=this.renderMatrix;return[Math.hypot(t[0],t[1]),Math.hypot(t[2],t[3])]}},{key:"worldRotation",get:function(){var t=this.renderMatrix;return Math.atan2(t[1],t[3])}},{key:"worldPosition",get:function(){var t=this.renderMatrix;return[t[4],t[5]]}},{key:"uniforms",get:function(){return this[Z]}},{key:"className",get:function(){return this.attributes.className},set:function(t){this.attributes.className=t}},{key:"id",get:function(){return this.attributes.id},set:function(t){this.attributes.id=t}},{key:"name",get:function(){return this.attributes.name},set:function(t){this.attributes.name=t}},{key:"zIndex",get:function(){return this.attributes.zIndex},set:function(t){this.attributes.zIndex=t}},{key:"mesh",get:function(){return null}},{key:"shaderAttrs",get:function(){return this[Q]||{}}}]),t}();p()($,"Attr",g.a),I.a.registerNode($,"node")},function(t,e,r){var n=r(57);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(28),i=r(58);t.exports=r(26)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return T}));var n=r(2),i=r.n(n),o=r(3),a=r.n(o),s=r(5),u=r.n(s),c=r(6),l=r.n(c),f=r(9),h=r.n(f),d=r(8),p=r.n(d),v=r(7),g=r.n(v),y=r(1),m=r.n(y),b=r(10),x=r.n(b),w=r(13),M=r(38),k=r(42),S=r(14);function A(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"leftTop",a=.5522848,s=n/2*a,u=i/2*a,c=e+n,l=r+i,f=e+n/2,h=r+i/2;"leftTop"===o?(t.moveTo(e,h),t.bezierCurveTo(e,h-u,f-s,r,f,r)):"rightTop"===o?t.bezierCurveTo(f+s,r,c,h-u,c,h):"rightBottom"===o?t.bezierCurveTo(c,h+u,f+s,l,f,l):"leftBottom"===o&&t.bezierCurveTo(f-s,l,e,h+u,e,h)}r(0).glMatrix.setMatrixArrayType(Array);var R=r(12),_=r(74);function E(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=m()(t);if(e){var i=m()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var O=Symbol("mesh"),T=function(t){p()(r,t);var e=E(r);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u()(this,r),e.call(this,t)}return l()(r,[{key:"getBoundingClientRect",value:function(){var t=null;if(this.mesh){t=a()(this.mesh.boundingBox);var e=this.attributes.borderWidth;e&&(t[0]=[t[0][0]-e,t[0][1]-e],t[1]=[t[1][0]+e,t[1][1]+e])}return Object(_.a)(t,this.renderMatrix)}},{key:"onPropertyChange",value:function(t,e,n){if(h()(m()(r.prototype),"onPropertyChange",this).call(this,t,e,n),("anchorX"===t||"anchorY"===t||"boxSizing"===t||"width"===t||"height"===t||"borderWidth"===t||"paddingLeft"===t||"paddingRight"===t||"paddingTop"===t||"paddingBottom"===t||/^border(TopLeft|TopRight|BottomRight|BottomLeft)Radius$/.test(t))&&this.updateContours(),this[O]&&"clipPath"===t&&this[O].setClipPath(e),this[O]&&"bgcolor"===t&&Object(S.d)(this[O],{color:e}),this[O]&&("borderColor"===t||"borderWidth"===t||"borderDash"===t||"borderDashOffset"===t)){var i=this.attributes,o=i.borderColor,a=i.borderWidth,s=i.borderDash,u=i.borderDashOffset;Object(S.e)(this[O],{color:o,lineWidth:a,lineDash:s,lineDashOffset:u})}}},{key:"updateContours",value:function(){var t=this.attributes,e=t.anchorX,r=t.anchorY,n=t.borderWidth,o=t.borderRadius,a=i()(this.borderSize,2),s=a[0],u=a[1],c=this.offsetSize,l=.5*n,f=-e*c[0]+l,h=-r*c[1]+l;this.clientBox=new w.b,function(t,e,r){var n=i()(e,4),o=n[0],a=n[1],s=n[2],u=n[3];if(!r||Array.isArray(r)&&r.every((function(t){return 0===t})))t.beginPath(),t.rect(o,a,s,u);else{"number"==typeof r&&(r=Array(8).fill(r));var c=r.map((function(t,e){return e%2?Math.min(t,u/2):Math.min(t,s/2)})),l=i()(c,8),f=l[0],h=l[1],d=l[2],p=l[3],v=l[4],g=l[5],y=l[6],m=l[7];t.beginPath(),t.moveTo(o,a+h),A(t,o,a,2*f,2*h,"leftTop"),t.lineTo(o+s-d,a),A(t,o+s-2*d,a,2*d,2*p,"rightTop"),t.lineTo(o+s,a+u-g),A(t,o+s-2*v,a+u-2*g,2*v,2*g,"rightBottom"),t.lineTo(o+y,a+u),A(t,o,a+u-2*m,2*y,2*m,"leftBottom"),t.closePath()}}(this.clientBox,[f,h,s,u],o)}},{key:"borderSize",get:function(){var t=this.attributes,e=t.paddingTop,r=t.paddingRight,n=t.paddingBottom,o=t.paddingLeft,a=t.borderWidth,s=i()(this.contentSize,2);return[o+s[0]+r+a,e+s[1]+n+a]}},{key:"clientSize",get:function(){var t=this.attributes,e=t.paddingTop,r=t.paddingRight,n=t.paddingBottom,o=t.paddingLeft,a=i()(this.contentSize,2);return[o+a[0]+r,e+a[1]+n]}},{key:"contentSize",get:function(){var t=this.attributes,e=t.width,r=t.height,n=t.boxSizing,i=t.paddingTop,o=t.paddingRight,a=t.paddingBottom,s=t.paddingLeft;if(e=e||0,r=r||0,"border-box"===n){var u=2*this.attributes.borderWidth;e-=u+o+s,r-=u+i+a,e=Math.max(0,e),r=Math.max(0,r)}return[e,r]}},{key:"hasBorder",get:function(){return this.attributes.borderWidth>0}},{key:"isVisible",get:function(){var t=i()(this.borderSize,2),e=t[0],r=t[1];return e>0&&r>0}},{key:"mesh",get:function(){if("none"===this.attributes.display)return null;var t=this.clientBox;if(t){var e,r=this[O];if(r)r.box!==t&&(r.contours=t.contours,r.box=t);else{(r=new w.c(t)).box=t;var n=this.attributes.bgcolor;if(Object(S.d)(r,{color:n}),this.hasBorder){var i=this.attributes,o=i.borderColor,s=i.borderWidth,u=i.borderDash,c=i.borderDashOffset;Object(S.e)(r,{color:o,lineWidth:s,lineDash:u,lineDashOffset:c})}this[O]=r;var l=this.attributes.clipPath;l&&this[O].setClipPath(l)}var f=this.opacity;return r.getOpacity()!==f&&r.setOpacity(f),(e=r).setTransform.apply(e,a()(this.renderMatrix)),r}return null}},{key:"offsetSize",get:function(){var t=this.attributes,e=t.paddingTop,r=t.paddingRight,n=t.paddingBottom,o=t.paddingLeft,a=t.borderWidth,s=i()(this.contentSize,2),u=2*a;return[o+s[0]+r+u,e+s[1]+n+u]}},{key:"originalClientRect",get:function(){if(this.mesh){var t=this.mesh.boundingBox;return[t[0][0],t[0][1],t[1][0]-t[0][0],t[1][1]-t[0][1]]}return[0,0,0,0]}},{key:"originalContentRect",get:function(){var t=i()(this.originalClientRect,4),e=t[0],r=t[1],n=t[2],o=t[3],a=this.attributes.padding;return[e+a[0],r+a[1],n-a[0]-a[2],o-a[1]-a[3]]}}]),r}(M.a);x()(T,"Attr",k.a),R.a.registerNode(T,"block")},function(t,e,r){"use strict";r.d(e,"a",(function(){return k}));var n=r(3),i=r.n(n),o=r(5),a=r.n(o),s=r(6),u=r.n(s),c=r(8),l=r.n(c),f=r(7),h=r.n(f),d=r(1),p=r.n(d),v=r(53),g=r(4),y=r(14);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var b=Symbol.for("spritejs_setAttribute"),x=Symbol.for("spritejs_getAttribute"),w=Symbol.for("spritejs_setAttributeDefault"),M=Symbol.for("spritejs_declareAlias"),k=function(t){l()(r,t);var e=m(r);function r(t){var n;return a()(this,r),(n=e.call(this,t))[w]({anchorX:0,anchorY:0,width:void 0,height:void 0,borderWidth:0,borderColor:"rgba(0,0,0,1)",borderDash:void 0,borderDashOffset:0,borderTopLeftRadius:[0,0],borderTopRightRadius:[0,0],borderBottomRightRadius:[0,0],borderBottomLeftRadius:[0,0],bgcolor:"rgba(0,0,0,0)",paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,boxSizing:"content-box",clipPath:void 0}),n[M]("anchor","size","border","borderRadius","padding"),n}return u()(r,[{key:"anchorX",get:function(){return this[x]("anchorX")},set:function(t){this[b]("anchorX",Object(g.d)(t))}},{key:"anchorY",get:function(){return this[x]("anchorY")},set:function(t){this[b]("anchorY",Object(g.d)(t))}},{key:"anchor",get:function(){return[this.anchorX,this.anchorY]},set:function(t){t=Object(g.c)(t),Array.isArray(t)||(t=[t,t]),this.anchorX=t[0],this.anchorY=t[1]}},{key:"width",get:function(){return this[x]("width")},set:function(t){this[b]("width",Object(g.d)(t))}},{key:"height",get:function(){return this[x]("height")},set:function(t){this[b]("height",Object(g.d)(t))}},{key:"size",get:function(){return[this.width,this.height]},set:function(t){t=Object(g.c)(t),Array.isArray(t)||(t=[t,t]),this.width=t[0],this.height=t[1]}},{key:"borderWidth",get:function(){return this[x]("borderWidth")},set:function(t){this[b]("borderWidth",Object(g.d)(t))}},{key:"borderColor",get:function(){return this[x]("borderColor")},set:function(t){this[b]("borderColor",Object(y.c)(t))}},{key:"border",get:function(){return[this.borderWidth,this.borderColor]},set:function(t){t=Object(g.c)(t),Array.isArray(t)||(t=[t]),this.borderWidth=t[0],null!=t[1]&&(this.borderColor=t[1])}},{key:"borderDash",get:function(){return this[x]("borderDash")},set:function(t){null==(t=Object(g.c)(t,!0))||Array.isArray(t)||(t=[t]),this[b]("borderDash",t.map(g.d))}},{key:"borderDashOffset",get:function(){return this[x]("borderDashOffset")},set:function(t){this[b]("borderDashOffset",Object(g.d)(t))}},{key:"borderTopLeftRadius",get:function(){return this[x]("borderTopLeftRadius")},set:function(t){t=Object(g.c)(t,!0),Array.isArray(t)||(t=[t,t]),this[b]("borderTopLeftRadius",t.map(g.d))}},{key:"borderTopRightRadius",get:function(){return this[x]("borderTopRightRadius")},set:function(t){t=Object(g.c)(t,!0),Array.isArray(t)||(t=[t,t]),this[b]("borderTopRightRadius",t.map(g.d))}},{key:"borderBottomRightRadius",get:function(){return this[x]("borderBottomRightRadius")},set:function(t){t=Object(g.c)(t,!0),Array.isArray(t)||(t=[t,t]),this[b]("borderBottomRightRadius",t.map(g.d))}},{key:"borderBottomLeftRadius",get:function(){return this[x]("borderBottomLeftRadius")},set:function(t){t=Object(g.c)(t,!0),Array.isArray(t)||(t=[t,t]),this[b]("borderBottomLeftRadius",t.map(g.d))}},{key:"borderRadius",get:function(){return[].concat(i()(this.borderTopLeftRadius),i()(this.borderTopRightRadius),i()(this.borderBottomRightRadius),i()(this.borderBottomLeftRadius))},set:function(t){if(t=Object(g.c)(t),Array.isArray(t)){if(2===t.length)t=[t[0],t[1],t[0],t[1],t[0],t[1],t[0],t[1]];else if(4===t.length)t=[t[0],t[1],t[2],t[3],t[0],t[1],t[2],t[3]];else if(6===t.length)t=[t[0],t[1],t[2],t[3],t[4],t[5],t[2],t[3]];else if(8!==t.length)throw new TypeError("Invalid borderRadius value.")}else t=Array(8).fill(t);this.borderTopLeftRadius=[t[0],t[1]],this.borderTopRightRadius=[t[2],t[3]],this.borderBottomRightRadius=[t[4],t[5]],this.borderBottomLeftRadius=[t[6],t[7]]}},{key:"bgcolor",get:function(){return this[x]("bgcolor")},set:function(t){this[b]("bgcolor",Object(y.c)(t))}},{key:"paddingTop",get:function(){return this[x]("paddingTop")},set:function(t){this[b]("paddingTop",Object(g.d)(t))}},{key:"paddingRight",get:function(){return this[x]("paddingRight")},set:function(t){this[b]("paddingRight",Object(g.d)(t))}},{key:"paddingBottom",get:function(){return this[x]("paddingBottom")},set:function(t){this[b]("paddingBottom",Object(g.d)(t))}},{key:"paddingLeft",get:function(){return this[x]("paddingLeft")},set:function(t){this[b]("paddingLeft",Object(g.d)(t))}},{key:"padding",get:function(){return[this.paddingTop,this.paddingRight,this.paddingBottom,this.paddingLeft]},set:function(t){t=Object(g.c)(t),Array.isArray(t)?2===t.length?t=[t[0],t[1],t[0],t[1]]:3===t.length&&(t=[t[0],t[1],t[2],t[1]]):t=[t,t,t,t],this.paddingTop=t[0],this.paddingRight=t[1],this.paddingBottom=t[2],this.paddingLeft=t[3]}},{key:"clipPath",get:function(){return this[x]("clipPath")},set:function(t){this[b]("clipPath",t)}},{key:"boxSizing",get:function(){return this[x]("boxSizing")},set:function(t){if(null!=t&&"border-box"!==t&&"content-box"!==t)throw new TypeError("Invalid boxSizing type.");this[b]("boxSizing",t)}}]),r}(v.a)},function(t,e,r){var n=r(82),i=r(83);t.exports=function(t){return n(i(t))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o);r(0).glMatrix.setMatrixArrayType(Array);var s=Symbol("type"),u=Symbol("bubbles"),c=Symbol("originalEvent"),l=Symbol("detail"),f=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bubbles,o=void 0===n?null:n;if(i()(this,t),"string"==typeof e?(this[s]=e,this[u]=!!o):(this[s]=e.type,this[c]=e,this[u]=null!=o?!!o:!!e.bubbles,e.detail&&(this[l]=e.detail)),!this[s])throw new TypeError("Invalid event type.");this.cancelBubble=!1}return a()(t,[{key:"setOriginalEvent",value:function(t){this[c]=t}},{key:"stopPropagation",value:function(){this.cancelBubble=!0}},{key:"originalEvent",get:function(){return this[c]}},{key:"type",get:function(){return this[s]}},{key:"bubbles",get:function(){return this[u]}},{key:"detail",get:function(){return this[l]}}]),t}()},function(t,e){t.exports={}},function(t,e,r){var n=r(117),i=r(91);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(83);t.exports=function(t){return Object(n(t))}},function(t,e,r){"use strict";function n(t,e){if("string"==typeof t){var r=t.trim().match(/^([\d.]+)(px|pt|pc|in|cm|mm|em|ex|rem|q|vw|vh|vmax|vmin|%)$/);t=r?{size:parseFloat(r[1]),unit:r[2]}:{size:parseInt(t,10),unit:"px"}}var i=t,o=i.size,a=i.unit;if("pt"===a)o/=.75;else if("pc"===a)o*=16;else if("in"===a)o*=96;else if("cm"===a)o*=96/2.54;else if("mm"===a)o*=96/25.4;else if("em"===a||"rem"===a||"ex"===a){if(!e&&"function"==typeof getComputedStyle&&"undefined"!=typeof document)e=n(getComputedStyle(document.documentElement).fontSize,16);o*=e,"ex"===a&&(o/=2)}else if("q"===a)o*=96/25.4/4;else if("vw"===a||"vh"===a){if("undefined"!=typeof document)o*=("vw"===a?document.documentElement.clientWidth:document.documentElement.clientHeight)/100}else if(("vmax"===a||"vmin"===a)&&"undefined"!=typeof document){var s=document.documentElement.clientWidth,u=document.documentElement.clientHeight;o*="vmax"===a?Math.max(s,u)/100:Math.min(s,u)/100}return o}r.d(e,"a",(function(){return f})),r(0).glMatrix.setMatrixArrayType(Array);var i="px|pt|pc|in|cm|mm|em|ex|rem|q|vw|vh|vmax|vmin|%",o="'([^']+)'|\"([^\"]+)\"|([\\w-]|[一-龥])+",a=new RegExp("(".concat("bold|bolder|lighter|[1-9]00",") +"),"i"),s=new RegExp("(".concat("italic|oblique",") +"),"i"),u=new RegExp("(".concat("small-caps",") +"),"i"),c=new RegExp("(".concat("ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",") +"),"i"),l=new RegExp("([\\d\\.]+)("+i+")(?:\\/([\\d\\.]+)("+i+"))? *((?:"+o+")( *, *(?:"+o+"))*)");function f(t,e){var r=l.exec(t);if(r){var i=parseFloat(r[3]),o={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(r[1]),unit:r[2],lineHeight:Number.isFinite(i)?i:void 0,lineHeightUnit:r[4],family:r[5].replace(/ *, */g,",")},f=t.substring(0,r.index),h=a.exec(f),d=s.exec(f),p=u.exec(f),v=c.exec(f);return h&&(o.weight=h[1]),d&&(o.style=d[1]),p&&(o.variant=p[1]),v&&(o.stretch=v[1]),o.pxHeight=n({size:o.size,unit:o.unit},e),o.pxLineHeight=n({size:o.lineHeight||o.size,unit:o.lineHeightUnit||o.unit},e),o}}},function(t,e,r){var n=r(174);t.exports=function(t,e){if(null==t)return{};var r,i,o=n(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}},function(t,e,r){"use strict";r.d(e,"a",(function(){return C}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(3),u=r.n(s),c=r(2),l=r.n(c),f=r(0),h=r(13),d=r(4);r(0).glMatrix.setMatrixArrayType(Array);var p=Symbol.for("spritejs_setAttributeDefault"),v=Symbol.for("spritejs_declareAlias"),g=Symbol.for("spritejs_setAttribute"),y=Symbol.for("spritejs_getAttribute"),m=Symbol.for("spritejs_attributes"),b=Symbol.for("spritejs_changedAttrs"),x=Symbol("subject"),w=Symbol("attr"),M=Symbol("default"),k=Symbol("alias");var S=Symbol("transformMatrix"),A=Symbol("transforms"),R=Symbol("changedAttrs"),_=Symbol("lastChangedAttr"),E=Symbol("offsetFigure");function O(t,e,r){var n=t[w][e];if(t[g](e,r,!1)||t[_]!==e){var i=t[A];i.has(e)&&i.delete(e),r&&("rotate"===e&&(r=Math.PI*r/180),"scale"===e&&(r=r.map((function(t){var e=1e-5;return Math.abs(t)>e?t:1/t>0?e:-e}))),i.set(e,r)),t[S]=null,t[x].onPropertyChange(e,r,n,t)}}function T(t){var e=t[E],r=t.offsetDistance*e.getTotalLength(),n=e.getPointAtLength(r);if(n){var i=t[A],o=t.offsetRotate;o="auto"===o?n.angle:"reverse"===o?Math.PI+n.angle:Math.PI*o/180,i.set("offsetRotate",o),i.set("offsetTranslate",[n.x,n.y]),t[S]=null}}var C=function(){function t(e){var r=this;i()(this,t),this[x]=e,this[w]={},this[S]=f.mat2d.fromValues(1,0,0,1,0,0),this[A]=new Map,this[M]={},this[k]=[],Object.defineProperty(e,"transformMatrix",{get:function(){var t,e,n,i,o,a;return r[S]||(r[S]=(t=r[A],e=r.transformOrigin,n=l()(e,2),i=n[0],o=n[1],a=f.mat2d.fromValues(1,0,0,1,0,0),u()(t).forEach((function(t){var e=l()(t,2),r=e[0],n=e[1];if((i||o)&&(a=f.mat2d.translate(Array.of(0,0,0,0,0,0),a,[i,o])),"matrix"===r)a=f.mat2d.multiply(a,a,n);else if("offsetTranslate"===r)a[4]+=n[0],a[5]+=n[1];else if("offsetRotate"===r)a=f.mat2d.rotate(Array.of(0,0,0,0,0,0),a,n);else if("skew"===r){var s=l()(n,2),u=s[0],c=s[1];a=f.mat2d.multiply(a,a,f.mat2d.fromValues(1,Math.tan(c),Math.tan(u),1,0,0))}else f.mat2d[r](a,a,n);(i||o)&&(a=f.mat2d.translate(Array.of(0,0,0,0,0,0),a,[-i,-o]))})),a)),u()(r[S])}}),this[p]({id:"",name:"",className:"",x:0,y:0,transformOrigin:[0,0],transform:"",translate:[0,0],rotate:0,scale:[1,1],skew:[0,0],opacity:1,zIndex:0,offsetPath:void 0,offsetDistance:0,offsetRotate:"auto",pointerEvents:"visible",filter:"none",display:""}),this[v]("class","pos"),this[R]=new Set,this[E]=new h.b({scale:5,simplify:0})}return a()(t,null,[{key:"setDefault",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return t[p].apply(t,r)}},{key:"declareAlias",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return t[v].apply(t,r)}},{key:"setAttribute",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return t[g].apply(t,r)}},{key:"getAttribute",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return t[y].apply(t,r)}},{key:"getAttributes",value:function(t){return t[m]}},{key:"getChangedAttributes",value:function(t){return t[b]}}]),a()(t,[{key:p,value:function(t){Object.assign(this[M],t),Object.assign(this[w],t)}},{key:v,value:function(){var t;(t=this[k]).push.apply(t,arguments)}},{key:g,value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this[w][t],i=this[x];return null==e&&(e=this[M][t]),!Object(d.a)(n,e)&&(this[w][t]=e,this[R].has(t)&&this[R].delete(t),this[R].add(t),this[_]=t,r&&i.onPropertyChange(t,e,n,this),!0)}},{key:y,value:function(t){return this[w][t]}},{key:b,get:function(){var t=this,e={};return u()(this[R]).forEach((function(r){e[r]=t[w][r]})),e}},{key:m,get:function(){for(var t=Object.assign({},this[w]),e=0;e<this[k].length;e++){var r=this[k][e];t[r]=this[r]}return t}},{key:"id",set:function(t){this[g]("id",t)},get:function(){return this[y]("id")}},{key:"name",set:function(t){this[g]("name",t)},get:function(){return this[y]("name")}},{key:"className",set:function(t){this[g]("className",t)},get:function(){return this[y]("className")}},{key:"class",set:function(t){this.className=t},get:function(){return this.className}},{key:"x",get:function(){return this[y]("x")},set:function(t){this[g]("x",Object(d.d)(t))}},{key:"y",get:function(){return this[y]("y")},set:function(t){this[g]("y",Object(d.d)(t))}},{key:"pos",get:function(){return[this.x,this.y]},set:function(t){t=Object(d.c)(t),Array.isArray(t)||(t=[t,t]),this.x=t[0],this.y=t[1]}},{key:"transform",get:function(){return this[y]("transform")},set:function(t){var e=null;if(Array.isArray(t)&&(e=t,t="matrix(".concat(t.map(d.d).join(),")")),"string"==typeof t)t=t.replace(/\s*,\s*/g,",");else if(null!=t)throw new TypeError("Invalid transform value.");if(this[g]("transform",t)){var r=this[A];if(r.has("matrix")&&r.delete("matrix"),e)r.set("matrix",e);else if(t){var n=t.match(/(matrix|translate|rotate|scale|skew)\([^()]+\)/g);if(!n)throw new TypeError("Invalid transform value.");for(var i=f.mat2d.fromValues(1,0,0,1,0,0),o=0;o<n.length;o++){var a=n[o].match(/^(matrix|translate|rotate|scale|skew)\(([^()]+)\)/);if(a){var s=l()(a,3),u=s[1],c=s[2];c="rotate"===u?Math.PI*parseFloat(c)/180:c.trim().split(/[\s,]+/).map((function(t){return Object(d.d)(t)})),"matrix"===u?i=f.mat2d.multiply(i,i,c):"skew"===u?i=f.mat2d.multiply(i,i,f.mat2d.fromValues(1,Math.tan(c[1]),Math.tan(c[0]),1,0,0)):f.mat2d[u](i,i,c),r.set("matrix",i)}}}this[S]=null}}},{key:"transformOrigin",get:function(){return this[y]("transformOrigin")},set:function(t){null==(t=Object(d.c)(t,!0))||Array.isArray(t)||(t=[t,t]),this[g]("transformOrigin",t)&&(this[S]=null)}},{key:"rotate",get:function(){return this[y]("rotate")},set:function(t){O(this,"rotate",t)}},{key:"translate",get:function(){return this[y]("translate")},set:function(t){null==(t=Object(d.c)(t,!0))||Array.isArray(t)||(t=[t,t]),O(this,"translate",t)}},{key:"scale",get:function(){return this[y]("scale")},set:function(t){null==(t=Object(d.c)(t,!0))||Array.isArray(t)||(t=[t,t]),O(this,"scale",t)}},{key:"skew",get:function(){return this[y]("skew")},set:function(t){null==(t=Object(d.c)(t,!0))||Array.isArray(t)||(t=[t,t]),O(this,"skew",t)}},{key:"opacity",get:function(){return this[y]("opacity")},set:function(t){null!=t&&(t=Number(t)),this[g]("opacity",t)}},{key:"zIndex",get:function(){return this[y]("zIndex")},set:function(t){null!=t&&(t=Number(t)),this[g]("zIndex",t)}},{key:"offsetPath",get:function(){return this[y]("offsetPath")},set:function(t){this[g]("offsetPath",t)&&(this[E].beginPath(),null!=t&&this[E].addPath(t),T(this))}},{key:"offsetDistance",get:function(){return this[y]("offsetDistance")},set:function(t){this[g]("offsetDistance",Object(d.d)(t))&&T(this)}},{key:"offsetRotate",get:function(){return this[y]("offsetRotate")},set:function(t){this[g]("offsetRotate",t),T(this)}},{key:"pointerEvents",get:function(){return this[y]("pointerEvents")},set:function(t){if(null!=t&&"none"!==t&&"visible"!==t&&"visibleFill"!==t&&"visibleStroke"!==t&&"all"!==t)throw new TypeError("Invalid pointerEvents type.");this[g]("pointerEvents",t)}},{key:"filter",get:function(){return this[y]("filter")},set:function(t){this[g]("filter",t)}},{key:"display",get:function(){return this[y]("display")},set:function(t){this[g]("display",t)}},{key:"offset",set:function(t){}}]),t}()},function(t,e,r){t.exports=function(){"use strict";var t=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},e=2*Math.PI,r=function(t,e,r,n,i,o,a){var s=t.x,u=t.y;return{x:n*(s*=e)-i*(u*=r)+o,y:i*s+n*u+a}},n=function(t,e){var r=4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:o+a*r,y:a-o*r},{x:o,y:a}]},i=function(t,e,r,n){var i=t*n-e*r<0?-1:1,o=(t*r+e*n)/(Math.sqrt(t*t+e*e)*Math.sqrt(t*t+e*e));return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},o=function(o){var a=o.px,s=o.py,u=o.cx,c=o.cy,l=o.rx,f=o.ry,h=o.xAxisRotation,d=void 0===h?0:h,p=o.largeArcFlag,v=void 0===p?0:p,g=o.sweepFlag,y=void 0===g?0:g,m=[];if(0===l||0===f)return[];var b=Math.sin(d*e/360),x=Math.cos(d*e/360),w=x*(a-u)/2+b*(s-c)/2,M=-b*(a-u)/2+x*(s-c)/2;if(0===w&&0===M)return[];l=Math.abs(l),f=Math.abs(f);var k=Math.pow(w,2)/Math.pow(l,2)+Math.pow(M,2)/Math.pow(f,2);k>1&&(l*=Math.sqrt(k),f*=Math.sqrt(k));var S=function(t,r,n,o,a,s,u,c,l,f,h,d){var p=Math.pow(a,2),v=Math.pow(s,2),g=Math.pow(h,2),y=Math.pow(d,2),m=p*v-p*y-v*g;m<0&&(m=0),m/=p*y+v*g;var b=(m=Math.sqrt(m)*(u===c?-1:1))*a/s*d,x=m*-s/a*h,w=f*b-l*x+(t+n)/2,M=l*b+f*x+(r+o)/2,k=(h-b)/a,S=(d-x)/s,A=(-h-b)/a,R=(-d-x)/s,_=i(1,0,k,S),E=i(k,S,A,R);return 0===c&&E>0&&(E-=e),1===c&&E<0&&(E+=e),[w,M,_,E]}(a,s,u,c,l,f,v,y,b,x,w,M),A=t(S,4),R=A[0],_=A[1],E=A[2],O=A[3],T=Math.max(Math.ceil(Math.abs(O)/(e/4)),1);O/=T;for(var C=0;C<T;C++)m.push(n(E,O)),E+=O;return m.map((function(t){var e=r(t[0],l,f,x,b,R,_),n=e.x,i=e.y,o=r(t[1],l,f,x,b,R,_),a=o.x,s=o.y,u=r(t[2],l,f,x,b,R,_);return{x1:n,y1:i,x2:a,y2:s,x:u.x,y:u.y}}))},a={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},s=/([astvzqmhlc])([^astvzqmhlc]*)/gi,u=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function c(t){var e=t[0][0],r=t[0][1],n=e,i=r;return t.forEach((function(t){var o=t[0],a=t[2],s=t[4],u=t[6],c=t[1],l=t[3],f=t[5],h=t[7];e=Math.min(e,o,a,s,u),r=Math.min(r,c,l,f,h),n=Math.max(n,o,a,s,u),i=Math.max(i,c,l,f,h)})),[e,r,n,i]}var l={};function f(t,e,r,n,i,o,a,s,u,c){var l=(r-t)*u+t,f=(n-e)*u+e,h=(i-r)*u+r,d=(o-n)*u+n,p=(h-l)*u+l,v=(d-f)*u+f,g=(((a-i)*u+i-h)*u+h-p)*u+p,y=(((s-o)*u+o-d)*u+d-v)*u+v;return c?[g,y,p,v,l,f,t,e]:[t,e,l,f,p,v,g,y]}function h(t,e){for(var r=function(e){var r=t[t.length-1],n=[];r.forEach((function(t){n.push(t.slice(0))})),t.push(n)},n=0;n<e;n++)r()}return l.parser=function(t){var e=[];return t.replace(s,(function(t,r,n){var i=r.toLowerCase();for(n=function(t){var e=t.match(u);return e?e.map(Number):[]}(n),"m"==i&&n.length>2&&(e.push([r].concat(n.splice(0,2))),i="l",r="m"==r?"l":"L");;){if(n.length==a[i])return n.unshift(r),e.push(n);if(n.length<a[i])throw new Error("malformed path data");e.push([r].concat(n.splice(0,a[i])))}})),e},l.lerpCurve=function(t,e,r){return l.lerpPoints(t[0],t[1],e[0],e[1],r).concat(l.lerpPoints(t[2],t[3],e[2],e[3],r)).concat(l.lerpPoints(t[4],t[5],e[4],e[5],r)).concat(l.lerpPoints(t[6],t[7],e[6],e[7],r))},l.lerpPoints=function(t,e,r,n,i){return[t+(r-t)*i,e+(n-e)*i]},l.q2b=function(t,e,r,n,i,o){return[t,e,(t+2*r)/3,(e+2*n)/3,(i+2*r)/3,(o+2*n)/3,i,o]},l.path2shapes=function(t){for(var e=l.parser(t),r=0,n=0,i=0,a=e.length,s=[],u=null,c=void 0,f=void 0,h=void 0,d=void 0,p=void 0,v=void 0,g=void 0;i<a;i++){var y=e[i],m=y[0],b=e[i-1];switch(m){case"m":s[p=s.length]=[],u=s[p],r+=y[1],n+=y[2];break;case"M":s[p=s.length]=[],u=s[p],r=y[1],n=y[2];break;case"l":u.push([r,n,r,n,r,n,r+y[1],n+y[2]]),r+=y[1],n+=y[2];break;case"L":u.push([r,n,y[1],y[2],y[1],y[2],y[1],y[2]]),r=y[1],n=y[2];break;case"h":u.push([r,n,r,n,r,n,r+y[1],n]),r+=y[1];break;case"H":u.push([r,n,y[1],n,y[1],n,y[1],n]),r=y[1];break;case"v":u.push([r,n,r,n,r,n,r,n+y[1]]),n+=y[1];break;case"V":u.push([r,n,r,y[1],r,y[1],r,y[1]]),n=y[1];break;case"C":u.push([r,n,y[1],y[2],y[3],y[4],y[5],y[6]]),r=y[5],n=y[6];break;case"S":"C"===b[0]||"c"===b[0]?u.push([r,n,r+b[5]-b[3],n+b[6]-b[4],y[1],y[2],y[3],y[4]]):"S"!==b[0]&&"s"!==b[0]||u.push([r,n,r+b[3]-b[1],n+b[4]-b[2],y[1],y[2],y[3],y[4]]),r=y[3],n=y[4];break;case"c":u.push([r,n,r+y[1],n+y[2],r+y[3],n+y[4],r+y[5],n+y[6]]),r+=y[5],n+=y[6];break;case"s":"C"===b[0]||"c"===b[0]?u.push([r,n,r+b[5]-b[3],n+b[6]-b[4],r+y[1],n+y[2],r+y[3],n+y[4]]):"S"!==b[0]&&"s"!==b[0]||u.push([r,n,r+b[3]-b[1],n+b[4]-b[2],r+y[1],n+y[2],r+y[3],n+y[4]]),r+=y[3],n+=y[4];break;case"a":g=(v=o({rx:y[1],ry:y[2],px:r,py:n,xAxisRotation:y[3],largeArcFlag:y[4],sweepFlag:y[5],cx:r+y[6],cy:n+y[7]}))[v.length-1],v.forEach((function(t,e){0===e?u.push([r,n,t.x1,t.y1,t.x2,t.y2,t.x,t.y]):u.push([v[e-1].x,v[e-1].y,t.x1,t.y1,t.x2,t.y2,t.x,t.y])})),r=g.x,n=g.y;break;case"A":g=(v=o({rx:y[1],ry:y[2],px:r,py:n,xAxisRotation:y[3],largeArcFlag:y[4],sweepFlag:y[5],cx:y[6],cy:y[7]}))[v.length-1],v.forEach((function(t,e){0===e?u.push([r,n,t.x1,t.y1,t.x2,t.y2,t.x,t.y]):u.push([v[e-1].x,v[e-1].y,t.x1,t.y1,t.x2,t.y2,t.x,t.y])})),r=g.x,n=g.y;break;case"Q":u.push(l.q2b(r,n,y[1],y[2],y[3],y[4])),r=y[3],n=y[4];break;case"q":u.push(l.q2b(r,n,r+y[1],n+y[2],y[3]+r,y[4]+n)),r+=y[3],n+=y[4];break;case"T":"Q"===b[0]||"q"===b[0]?(h=r+b[3]-b[1],d=n+b[4]-b[2],u.push(l.q2b(r,n,h,d,y[1],y[2]))):"T"!==b[0]&&"t"!==b[0]||(u.push(l.q2b(r,n,r+r-h,n+n-d,y[1],y[2])),h=r+r-h,d=n+n-d),r=y[1],n=y[2];break;case"t":"Q"===b[0]||"q"===b[0]?(h=r+b[3]-b[1],d=n+b[4]-b[2],u.push(l.q2b(r,n,h,d,r+y[1],n+y[2]))):"T"!==b[0]&&"t"!==b[0]||(u.push(l.q2b(r,n,r+r-h,n+n-d,r+y[1],n+y[2])),h=r+r-h,d=n+n-d),r+=y[1],n+=y[2];break;case"Z":case"z":c=u[0][0],f=u[0][1],u.push([r,n,c,f,c,f,c,f])}}return s},l._upCurves=function(t,e){for(var r=0,n=0,i=t.length;r<e;r++)t.push(t[n].slice(0)),++n>i-1&&(n-=i)},l._splitCurves=function(t,e){for(var r,n,i,o,a,s,u,c,l,h=0,d=0;h<e;h++){var p=t[d],v=(r=p[0],n=p[1],i=p[2],o=p[3],a=p[4],s=p[5],u=p[6],c=p[7],{left:f(r,n,i,o,a,s,u,c,l=.5),right:f(u,c,a,s,i,o,r,n,1-l,!0)});t.splice(d,1),t.splice(d,0,v.left,v.right),(d+=2)>=t.length-1&&(d=0)}},l.lerp=function(t,e,r){return l._lerp(l.path2shapes(t),l.path2shapes(e),r)},l.MIM_CURVES_COUNT=100,l._preprocessing=function(t,e){var r=t.length,n=e.length,i=JSON.parse(JSON.stringify(t)),o=JSON.parse(JSON.stringify(e));return r>n?h(o,r-n):r<n&&h(i,n-r),(i=function(t,e){var r=function(t){for(var e=[],r=0;r<t;r++)e.push(r);return n=[],i=[],function t(e){var r,o;for(r=0;r<e.length;r++)o=e.splice(r,1)[0],i.push(o),0==e.length&&n.push(i.slice()),t(e),e.splice(r,0,o),i.pop();return n}(e);var n,i}(t.length),n=[];r.forEach((function(r){var i=0;r.forEach((function(r){var n,o;i+=(n=c(t[r]),o=c(e[r]),Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2))+Math.sqrt(Math.pow(n[2]-o[2],2)+Math.pow(n[3]-o[3],2)))})),n.push({index:r,distance:i})})),n.sort((function(t,e){return t.distance-e.distance}));var i=[];return n[0].index.forEach((function(e){i.push(t[e])})),i}(i,o)).forEach((function(t,e){var r=t.length,n=o[e].length;r>n?r<l.MIM_CURVES_COUNT?(l._splitCurves(t,l.MIM_CURVES_COUNT-r),l._splitCurves(o[e],l.MIM_CURVES_COUNT-n)):l._splitCurves(o[e],r-n):r<n&&(n<l.MIM_CURVES_COUNT?(l._splitCurves(t,l.MIM_CURVES_COUNT-r),l._splitCurves(o[e],l.MIM_CURVES_COUNT-n)):l._splitCurves(t,n-r))})),i.forEach((function(t,e){i[e]=function(t,e){var r=function(t){for(var e=[],r=0;r<t;r++){for(var n=[],i=0;i<t;i++){var o=i+r;o>t-1&&(o-=t),n[o]=i}e.push(n)}return e}(t.length),n=[];r.forEach((function(r){var i=0,o=0;r.forEach((function(r){var n,a,s,u,c,l,f,h,d,p,v,g,y,m,b,x,w,M;i+=(n=t[r],a=e[o++],s=n[0],u=n[2],c=n[4],l=n[6],f=n[1],h=n[3],d=n[5],p=n[7],v=a[0],g=a[2],y=a[4],m=a[6],b=a[1],x=a[3],w=a[5],M=a[7],Math.sqrt(Math.pow(v-s,2)+Math.pow(b-f,2))+Math.sqrt(Math.pow(g-u,2)+Math.pow(x-h,2))+Math.sqrt(Math.pow(y-c,2)+Math.pow(w-d,2))+Math.sqrt(Math.pow(m-l,2)+Math.pow(M-p,2)))})),n.push({index:r,distance:i})})),n.sort((function(t,e){return t.distance-e.distance}));var i=[];return n[0].index.forEach((function(e){i.push(t[e])})),i}(t,o[e])})),[i,o]},l._lerp=function(t,e,r){var n=[];return t.forEach((function(t,i){var o=[];t.forEach((function(t,n){o.push(l.lerpCurve(t,e[i][n],r))})),n.push(o)})),n},l.animate=function(t){var e=l.path2shapes(t.from),r=l.path2shapes(t.to),n=l._preprocessing(e,r),i=new Date,o=t.end||function(){},a=t.progress||function(){},s=t.begin||function(){},u=t.easing||function(t){return t},c=null,f=null,h=t.time;s(e),function t(){var e=new Date-i;if(e>=h)return a(f=r,1),o(f),void cancelAnimationFrame(c);var s=u(e/h);f=l._lerp(n[0],n[1],s),a(f,s),c=requestAnimationFrame(t)}()},l}()},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(28).f,i=r(45),o=r(20)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){"use strict";var n=r(187)(!0);r(84)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){var n=r(39),i=r(120),o=r(121),a=r(37),s=r(68),u=r(92),c={},l={};(e=t.exports=function(t,e,r,f,h){var d,p,v,g,y=h?function(){return t}:u(t),m=n(r,f,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(d=s(t.length);d>b;b++)if((g=e?m(a(p=t[b])[0],p[1]):m(t[b]))===c||g===l)return g}else for(v=y.call(t);!(p=v.next()).done;)if((g=i(v,m,p.value,e))===c||g===l)return g}).BREAK=c,e.RETURN=l},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return C}));var n=r(3),i=r.n(n),o=r(5),a=r.n(o),s=r(6),u=r.n(s),c=r(9),l=r.n(c),f=r(8),h=r.n(f),d=r(7),p=r.n(d),v=r(1),g=r.n(v),y=r(10),m=r.n(y),b=r(13),x=r(41),w=r(42);function M(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g()(t);if(e){var i=g()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var k=function(t){h()(r,t);var e=M(r);function r(){return a()(this,r),e.apply(this,arguments)}return r}(w.a),S=r(12),A=r(24);function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g()(t);if(e){var i=g()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var _=Symbol("zOrder"),E=Symbol("ordered"),O=Symbol("children"),T=Symbol("sealed"),C=function(t){h()(r,t);var e=R(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a()(this,r),(t=e.call(this,n))[O]=[],t[E]=null,t[_]=0,t}return u()(r,[{key:"append",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.map((function(e){return t.appendChild(e)}))}},{key:"appendChild",value:function(t){return t.remove(),this[O].push(t),t.connect(this,this[_]++),this[E]&&(this[E].length&&t.zIndex<this[E][this[E].length-1].zIndex?this.reorder():this[E].push(t)),t}},{key:"cloneNode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=l()(g()(r.prototype),"cloneNode",this).call(this);return t&&this[O].forEach((function(r){var n=r.cloneNode(t);e.appendChild(n)})),e}},{key:"dispatchPointerEvent",value:function(t){for(var e=this.orderedChildren,n=e.length-1;n>=0;n--){if(e[n].dispatchPointerEvent(t))return!0}return l()(g()(r.prototype),"dispatchPointerEvent",this).call(this,t)}},{key:"draw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(this.__cacheRenderMatrix=this.renderMatrix,l()(g()(r.prototype),"draw",this).call(this,t),!this[T]&&"none"!==this.attributes.display)for(var e=this.orderedChildren,n=0;n<e.length;n++){var i=e[n];i.draw(t)}return this.__cacheRenderMatrix=null,t}},{key:"getElementById",value:function(t){return Object(A.a)("#".concat(t),this)}},{key:"getElementsByClassName",value:function(t){return Object(A.b)(".".concat(t),this)}},{key:"getElementsByName",value:function(t){return Object(A.b)('[name="'.concat(t,'"]'),this)}},{key:"getElementsByTagName",value:function(t){return Object(A.b)(t,this)}},{key:"insertBefore",value:function(t,e){if(null==e)return this.appendChild(t);t.remove();var r=this[O].indexOf(e);if(r<0)throw new Error("Invalid reference node.");for(var n=e.zOrder,i=r;i<this[O].length;i++){var o=this[O][i].zOrder,a=this[O][i];delete a.zOrder,Object.defineProperty(a,"zOrder",{value:o+1,writable:!1,configurable:!0})}if(this[O].splice(r,0,t),t.connect(this,n),this[E])if(t.zIndex!==e.zIndex)this.reorder();else{var s=this[E].indexOf(e);this[E].splice(s,0,t)}return t}},{key:"querySelector",value:function(t){return Object(A.a)(t,this)}},{key:"querySelectorAll",value:function(t){return Object(A.b)(t,this)}},{key:"replaceChild",value:function(t,e){t.remove();var r=this[O].indexOf(e);if(r<0)throw new Error("Invalid reference node.");if(this[O][r]=t,t.connect(this,e.zOrder),this[E])if(t.zIndex!==e.zIndex)this.reorder();else{var n=this[E].indexOf(e);this[E][n]=t}return e.disconnect(this),t}},{key:"removeAllChildren",value:function(){for(var t=this[O],e=t.length-1;e>=0;e--)t[e].remove()}},{key:"removeChild",value:function(t){var e=this[O].indexOf(t);if(e>=0){if(this[O].splice(e,1),this[E]){var r=this[E].indexOf(t);this[E].splice(r,1)}return t.disconnect(this),t}return null}},{key:"reorder",value:function(){this[E]=null}},{key:"seal",value:function(){function t(t,e){for(var r=[],n=0;n<t.length;n++){for(var o=i()(t[n]),a=1;a<o.length;a+=2){var s=o[a],u=o[a+1];o[a]=s*e[0]+u*e[2]+e[4],o[a+1]=s*e[1]+u*e[3]+e[5]}r.push(o)}return r}for(var e=this.orderedChildren,n=new b.b,o=this.localMatrix,a=0;a<e.length;a++){var s=e[a];if(s instanceof r&&(s=s.seal()),s.clientBox){var u=s.clientBox.contours.path;u=t(u,s.localMatrix),n.addPath(u)}if(s.path){var c=s.path.contours.path;c=t(c,s.localMatrix),n.addPath(c)}}return this[T]=!0,this.clientBox=n,{clientBox:n,localMatrix:o}}},{key:"setResolution",value:function(t){var e=t.width,n=t.height;l()(g()(r.prototype),"setResolution",this).call(this,{width:e,height:n}),this[O].forEach((function(t){t.setResolution({width:e,height:n})}))}},{key:"updateContours",value:function(){this[T]||l()(g()(r.prototype),"updateContours",this).call(this)}},{key:"childNodes",get:function(){return this[O]}},{key:"children",get:function(){return this[O]}},{key:"orderedChildren",get:function(){return this[E]||(this[E]=i()(this[O]),this[E].sort((function(t,e){return t.zIndex-e.zIndex||t.zOrder-e.zOrder}))),this[E]}}]),r}(x.a);m()(C,"Attr",k),S.a.registerNode(C,"group")},function(t,e,r){"use strict";r.d(e,"a",(function(){return j}));var n=r(52),i=r.n(n),o=r(2),a=r.n(o),s=r(5),u=r.n(s),c=r(6),l=r.n(c),f=r(9),h=r.n(f),d=r(8),p=r.n(d),v=r(7),g=r.n(v),y=r(1),m=r.n(y),b=r(13),x=r(23),w=r(18),M=r(64),k=r(12),S=r(21);function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=m()(t);if(e){var i=m()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var R={antialias:!0,autoRender:!0,alpha:!0},_=Symbol("autoRender"),E=Symbol("renderer"),O=Symbol("timeline"),T=Symbol("prepareRender"),C=Symbol("tickRender"),L=Symbol("pass"),D=Symbol("fbo"),P=Symbol("tickers"),j=function(t){p()(r,t);var e=A(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(u()(this,r),t=e.call(this),!n.canvas){var i=t.getResolution(),o=i.width,a=i.height,s=b.a.createCanvas(o,a,{offscreen:!!n.offscreen,id:n.id,extra:n.extra});s.style&&(s.style.position="absolute"),s.dataset&&(s.dataset.layerId=n.id),s.contextType&&(n.contextType=s.contextType),n.canvas=s}var c=n.canvas,l=Object.assign({},R,n);t[_]=l.autoRender,delete n.autoRender;var f=l.Renderer||b.e;return t[E]=new f(c,l),t.options=n,t.id=n.id,t[L]=[],t.setResolution(c),t.canvas=c,t[O]=new x.Timeline,t.__mouseCapturedTarget=null,t}return l()(r,[{key:"forceContextLoss",value:function(){var t=this.renderer.glRenderer;if(t){var e=t.getExtension("WEBGL_lose_context");if(e)return e.loseContext(),!0}return!1}},{key:"addPass",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.vertex,r=t.fragment,n=t.options,i=t.uniforms;if(this.renderer.glRenderer){var o=this.getResolution(),a=o.width,s=o.height,u=this.renderer.createPassProgram({vertex:e,fragment:r,options:n}),c=new b.b;c.rect(0,0,a/this.displayRatio,s/this.displayRatio);var l=new b.c(c);return l.setUniforms(i),l.setProgram(u),this[L].push(l),this.forceUpdate(),l}return null}},{key:"deleteTexture",value:function(t){return Object(S.c)(t,this.renderer)}},{key:"dispatchPointerEvent",value:function(t){var e=t.type;if("mousedown"===e||"mouseup"===e||"mousemove"===e){var n=this.__mouseCapturedTarget;if(n){if(n.layer===this)return n.dispatchEvent(t),!0;this.__mouseCapturedTarget=null}}return h()(m()(r.prototype),"dispatchPointerEvent",this).call(this,t)}},{key:"forceUpdate",value:function(){var t=this;if(!this[T])if(this.parent&&this.parent.hasOffscreenCanvas){this.parent.forceUpdate();var e=null,r=new Promise((function(t){e=t}));r._resolve=e,this[T]=r}else{var n=null,i=null,o=new Promise((function(e){n=e,t[_]&&(i=Object(w.b)((function(){delete o._requestID,t.render()})))}));o._resolve=n,o._requestID=i,this[T]=o}}},{key:"getFBO",value:function(){var t=this.renderer.glRenderer,e=this.getResolution(),r=e.width,n=e.height;return!t||this[D]&&this[D].width===r&&this[D].height===n?this[D]?this[D]:null:(this[D]={width:r,height:n,target:t.createFBO(),buffer:t.createFBO(),swap:function(){var t=[this.buffer,this.target];this.target=t[0],this.buffer=t[1]}},this[D])}},{key:"onPropertyChange",value:function(t,e,n){h()(m()(r.prototype),"onPropertyChange",this).call(this,t,e,n),"zIndex"===t&&(this.canvas.style.zIndex=e)}},{key:"_prepareRenderFinished",value:function(){this[T]&&(this[T]._requestID&&Object(w.a)(this[T]._requestID),this[T]._resolve(),delete this[T])}},{key:"render",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.clear,n=void 0===r||r,i=this[L].length?this.getFBO():null;i&&this.renderer.glRenderer.bindFBO(i.target),n&&this[E].clear();var o=this.draw();if(o&&o.length&&(this.renderer.drawMeshes(o),this.canvas.draw&&this.canvas.draw()),i){var a=this.renderer.glRenderer,s=this[L].length,u=this.getResolution(),c=u.width,l=u.height,f=[0,0,c/this.displayRatio,l/this.displayRatio];this[L].forEach((function(e,r){e.blend=!0,e.setTexture(i.target.texture,{rect:f}),r===s-1?a.bindFBO(null):(i.swap(),a.bindFBO(i.target)),t[E].clear(),t.renderer.drawMeshes([e])}))}this._prepareRenderFinished()}},{key:"setResolution",value:function(t){var e=this,n=t.width,i=t.height,o=this.renderer,s=o.globalTransformMatrix,u=s[4],c=s[5],l=s[0],f=this.getResolution(),d=f.width,p=f.height;d===n&&p===i||(h()(m()(r.prototype),"setResolution",this).call(this,{width:n,height:i}),this.canvas&&(this.canvas.width=n,this.canvas.height=i,o.updateResolution&&o.updateResolution()),this.attributes.size=[n,i],this[L].length&&this[L].forEach((function(t){var r=new b.b;r.rect(0,0,n/e.displayRatio,i/e.displayRatio),t.contours=r.contours})));var v=a()(this.renderOffset,2),g=v[0],y=v[1],x=this.displayRatio;u===g&&c===y&&l===x||(o.setGlobalTransform(x,0,0,x,g,y),this.forceUpdate())}},{key:"tick",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.duration,o=void 0===n?1/0:n,a=i()(r,["duration"]),s=this.timeline.fork(a),u=this;this[P]=this[P]||[],this[P].push({handler:e,duration:o});var c=function e(){var r=null,n=null,i=function(){var r=t[P].map((function(t){var e=t.handler,r=t.duration,n=Math.min(1,s.currentTime/r);return{value:e?e(s.currentTime,n):null,p:n}}));u[_]&&!u[C]&&(u[C]=Promise.resolve().then((function(){u.render(),delete u[C];for(var n=r.length-1;n>=0;n--){var i=r[n],o=i.value,a=i.p;(!1===o||a>=1)&&t[P].splice(n,1)}t[P].length>0&&e()})))};if(t[T]&&"ticker"!==t[T]._type&&(Object(w.a)(t[T]._requestID),delete t[T]),!t[T]){var o=new Promise((function(t){r=t,n=Object(w.b)(i)}));o._resolve=r,o._requestID=n,o._type="ticker",t[T]=o}};c()}},{key:"toGlobalPos",value:function(t,e){var r=this.getResolution(),n=r.width,i=r.height,o=this.renderOffset,a=[this.canvas.clientWidth,this.canvas.clientHeight];t=t*a[0]/n+o[0],e=e*a[1]/i+o[1];var s=this.displayRatio;return[t*s,e*s]}},{key:"toLocalPos",value:function(t,e){var r=this.getResolution(),n=r.width,i=r.height,o=this.renderOffset,a=[this.canvas.clientWidth,this.canvas.clientHeight];t=t*n/a[0]-o[0],e=e*i/a[1]-o[1];var s=this.displayRatio;return[t/s,e/s]}},{key:"autoRender",get:function(){return this[_]}},{key:"displayRatio",get:function(){return this.parent&&this.parent.options?this.parent.options.displayRatio:1}},{key:"height",get:function(){return this.getResolution().height/this.displayRatio}},{key:"gl",get:function(){return this.renderer.glRenderer?this.renderer.glRenderer.gl:null}},{key:"layer",get:function(){return this}},{key:"offscreen",get:function(){return!!this.options.offscreen||this.canvas._offscreen}},{key:"pass",get:function(){return this[L]}},{key:"prepareRender",get:function(){return this[T]?this[T]:Promise.resolve()}},{key:"renderer",get:function(){return this[E]}},{key:"renderOffset",get:function(){if(this.parent&&this.parent.options){var t=this.parent.options;return[t.left,t.top]}return[0|this.options.left,0|this.options.top]}},{key:"timeline",get:function(){return this[O]}},{key:"width",get:function(){return this.getResolution().width/this.displayRatio}}]),r}(M.a);k.a.registerNode(j,"layer")},function(t,e,r){"use strict";t.exports=function(t){var e=t.length;if(0===e)return[[],[]];for(var r=t[0].length,n=t[0].slice(),i=t[0].slice(),o=1;o<e;++o)for(var a=t[o],s=0;s<r;++s){var u=a[s];n[s]=Math.min(n[s],u),i[s]=Math.max(i[s],u)}return[n,i]}},function(t,e,r){r(180);for(var n=r(19),i=r(40),o=r(48),a=r(20)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=n[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},function(t,e,r){var n=r(88),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){var n=r(55),i=r(20)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,r){"use strict";r.d(e,"a",(function(){return A}));var n=r(2),i=r.n(n),o=r(5),a=r.n(o),s=r(6),u=r.n(s),c=r(9),l=r.n(c),f=r(8),h=r.n(f),d=r(7),p=r.n(d),v=r(1),g=r.n(v),y=r(10),m=r.n(y),b=r(21),x=r(41),w=r(75),M=r(12);function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g()(t);if(e){var i=g()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var S=Symbol("textureTask"),A=function(t){h()(r,t);var e=k(r);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a()(this,r),"string"==typeof t&&(t={texture:t}),e.call(this,t)}return u()(r,[{key:"draw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l()(g()(r.prototype),"draw",this).call(this,t);var e=this.mesh;return e&&Object(b.d)(this,e),t}},{key:"onPropertyChange",value:function(t,e,n){if(l()(g()(r.prototype),"onPropertyChange",this).call(this,t,e,n),"texture"===t&&(this[S]=Object(b.a)(this,e,!0)),"textureRect"===t){var i=this.attributes,o=i.width,a=i.height;null!=o&&null!=a||this.updateContours()}}},{key:"contentSize",get:function(){var t=l()(g()(r.prototype),"contentSize",this),e=i()(t,2),n=e[0],o=e[1],a=this.attributes,s=a.width,u=a.height;if(null==s||null==u){var c=this.textureImage,f=this.attributes.textureRect,h=this.attributes.sourceRect;if(f)null==s&&(n=f[0]+f[2]),null==u&&(o=f[1]+f[3]);else if(h){var d=this.layer?this.layer.displayRatio:1;null==s&&(n=h[2]/d),null==u&&(o=h[3]/d)}else if(c){var p=this.layer?this.layer.displayRatio:1;null==s&&(n=c.width/p),null==u&&(o=c.height/p)}}return[n,o]}},{key:"textureImageReady",get:function(){return this[S]||Promise.resolve()}}]),r}(x.a);m()(A,"Attr",w.a),M.a.registerNode(A,"sprite")},function(t,e,r){"use strict";r.d(e,"a",(function(){return w}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(9),u=r.n(s),c=r(8),l=r.n(c),f=r(7),h=r.n(f),d=r(1),p=r.n(d),v=r(10),g=r.n(v),y=r(30),m=r(12),b=r(76);function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var w=function(t){l()(r,t);var e=x(r);function r(){return i()(this,r),e.apply(this,arguments)}return a()(r,[{key:"isVisible",get:function(){var t=this.attributes,e=t.radiusX,n=t.radiusY,i=t.startAngle,o=t.endAngle;return e>0&&n>0&&i!==o&&u()(p()(r.prototype),"isVisible",this)}}]),r}(y.a);g()(w,"Attr",b.a),m.a.registerNode(w,"ellipse")},function(t,e,r){r(0).glMatrix.setMatrixArrayType(Array);var n=r(169),i=r(11).copy,o=r(171);function a(t,e,r){return t[0]=e,t[1]=r,t}var s=[0,0],u=[0,0],c=[0,0];t.exports=function(t,e,r){var l=[],f=[],h=[0,0];return t.forEach((function(t,r,o){if("M"===t[0])i(h,t.slice(1)),f.length>0&&(l.push(f),f=[]);else{if("C"!==t[0])throw new Error("illegal type in SVG: "+t[0]);!function(t,e,r,i){n(r,a(s,i[1],i[2]),a(u,i[3],i[4]),a(c,i[5],i[6]),e,t)}(f,e,h,t),a(h,t[5],t[6])}})),f.length>0&&l.push(f),l.map((function(t){return o(t,r||0)}))}},function(t,e,r){"use strict";var n=r(2),i=r.n(n);r(0).glMatrix.setMatrixArrayType(Array),e.a=function(t,e){if(!t)return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0};var r=i()(t,2),n=i()(r[0],2),o=n[0],a=n[1],s=i()(r[1],2),u=s[0],c=s[1],l=o*e[0]+a*e[2]+e[4],f=o*e[1]+a*e[3]+e[5],h=u*e[0]+a*e[2]+e[4],d=u*e[1]+a*e[3]+e[5],p=u*e[0]+c*e[2]+e[4],v=u*e[1]+c*e[3]+e[5],g=o*e[0]+c*e[2]+e[4],y=o*e[1]+c*e[3]+e[5],m=Math.min(l,h,p,g),b=Math.min(f,d,v,y),x=Math.max(l,h,p,g),w=Math.max(f,d,v,y);return{x:m,y:b,width:x-m,height:w-b,left:m,top:b,right:x,bottom:w}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return m}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(8),u=r.n(s),c=r(7),l=r.n(c),f=r(1),h=r.n(f),d=r(42);function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h()(t);if(e){var i=h()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var v=Symbol.for("spritejs_setAttributeDefault"),g=Symbol.for("spritejs_setAttribute"),y=Symbol.for("spritejs_getAttribute"),m=function(t){u()(r,t);var e=p(r);function r(t){var n;return i()(this,r),(n=e.call(this,t))[v]({texture:void 0,textureRect:void 0,textureRepeat:!1,sourceRect:void 0}),n}return a()(r,[{key:"texture",get:function(){return this[y]("texture")},set:function(t){this[g]("texture",t)}},{key:"textureRect",get:function(){return this[y]("textureRect")},set:function(t){this[g]("textureRect",t)}},{key:"sourceRect",get:function(){return this[y]("sourceRect")},set:function(t){this[g]("sourceRect",t)}},{key:"textureRepeat",get:function(){return this[y]("textureRepeat")},set:function(t){this[g]("textureRepeat",!!t)}}]),r}(d.a)},function(t,e,r){"use strict";r.d(e,"a",(function(){return M}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(8),u=r.n(s),c=r(7),l=r.n(c),f=r(1),h=r.n(f),d=r(13),p=r(33),v=r(4);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h()(t);if(e){var i=h()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var y=Symbol.for("spritejs_setAttributeDefault"),m=Symbol.for("spritejs_setAttribute"),b=Symbol.for("spritejs_getAttribute"),x=Symbol.for("spritejs_declareAlias");function w(t){var e=t.radiusX,r=t.radiusY,n=t.startAngle,i=t.endAngle,o=t.direction,a=t.closeType,s="anitclockwise"===o,u=new d.b;return"sector"===a&&u.moveTo(0,0),u.ellipse(0,0,e,r,0,Math.PI*n/180,Math.PI*i/180,s),"none"!==a&&u.closePath(),u.path.reduce((function(t,e){return t+e.join(" ")}),"")}var M=function(t){u()(r,t);var e=g(r);function r(t){var n;return i()(this,r),(n=e.call(this,t))[y]({radiusX:0,radiusY:0,startAngle:0,endAngle:360,direction:"clockwise",closeType:"none"}),n[x]("radius","angle"),n}return a()(r,[{key:"d",get:function(){return this[b]("d")},set:function(t){}},{key:"radiusX",get:function(){return this[b]("radiusX")},set:function(t){if(t=Object(v.d)(t),this[m]("radiusX",t)){var e=w(this);this[m]("d",e)}}},{key:"radiusY",get:function(){return this[b]("radiusY")},set:function(t){if(t=Object(v.d)(t),this[m]("radiusY",t)){var e=w(this);this[m]("d",e)}}},{key:"radius",get:function(){return[this.radiusX,this.radiusY]},set:function(t){t=Object(v.c)(t,!0),Array.isArray(t)||(t=[t,t]),this.radiusX=t[0],this.radiusY=t[1]}},{key:"angle",get:function(){return[this.startAngle,this.endAngle]},set:function(t){t=Object(v.c)(t),Array.isArray(t)||(t=[t,t]),this.startAngle=t[0],this.endAngle=t[1]}},{key:"direction",get:function(){return this[b]("direction")},set:function(t){if(null!=t&&"clockwise"!==t&&"anticlockwise"!==t)throw new TypeError("Invalid direction type.");this[m]("direction",t)}},{key:"startAngle",get:function(){return this[b]("startAngle")},set:function(t){if(t=Object(v.d)(t),this[m]("startAngle",t)){var e=w(this);this[m]("d",e)}}},{key:"endAngle",get:function(){return this[b]("endAngle")},set:function(t){if(t=Object(v.d)(t),this[m]("endAngle",t)){var e=w(this);this[m]("d",e)}}},{key:"closeType",get:function(){return this[b]("closeType")},set:function(t){if(null!=t&&"none"!==t&&"sector"!==t&&"normal"!==t)throw new TypeError("Invalid closeType type.");if(this[m]("closeType",t)){var e=w(this);this[m]("d",e)}}}]),r}(p.a)},function(t,e,r){"use strict";var n=r(15),i=r.n(n),o=r(25),a=r.n(o),s=r(2),u=r.n(s),c=r(3),l=r.n(c),f=r(5),h=r.n(f),d=r(6),p=r.n(d),v=r(10),g=r.n(v),y=r(46),m=r.n(y);function b(t,e){var r=function(t,e){for(var r=["webgl","experimental-webgl","webkit-3d","moz-webgl"],n=null,i=0;i<r.length;++i){try{n=t.getContext(r[i],e)}catch(t){}if(n)break}return n}(t,e);if(!r)throw new Error("Sorry, your browser doesn't support WebGL.");return r}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Float32Array,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(r&&!(r instanceof e))throw new TypeError("Wrong buffer type.");if(null==t)return t;if(t instanceof e)return t;if(null==t[0]||null==t[0].length)return r?(r.set(t,0),r):new e(t);var n=t[0].length,i=t.length;r||(r=new e(n*i));for(var o=0,a=0;a<i;a++)for(var s=0;s<n;s++)r[o++]=t[a][s];return r}r(0).glMatrix.setMatrixArrayType(Array);var w={};var M={};function k(){return(k=a()(i.a.mark((function t(e){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!M[e]){t.next=2;break}return t.abrupt("return",M[e]);case 2:return t.next=4,fetch(e);case 4:if(!((r=t.sent).status>=200&&r.status<300)){t.next=11;break}return t.next=8,r.text();case 8:return n=t.sent,M[e]=n,t.abrupt("return",n);case 11:throw new Error("Shader loaded error.");case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var S="#ifdef GL_ES\nprecision mediump float;\n#endif\n\nvoid main() {\n  gl_FragColor = vec4(0.0, 0.0, 0.0, 0.1);\n}";r(0).glMatrix.setMatrixArrayType(Array);var A={};function R(t,e,r){return t.activeTexture(t.TEXTURE0+r),Array.isArray(e._img)?t.bindTexture(t.TEXTURE_CUBE_MAP,e):t.bindTexture(t.TEXTURE_2D,e),e}var _={int:"1i",ivec2:"2i",ivec3:"3i",ivec4:"4i",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",mat2:"Matrix2fv",mat3:"Matrix3fv",mat4:"Matrix4fv",sampler1D:"sampler1D",sampler2D:"sampler2D",sampler3D:"sampler3D",samplerCube:"samplerCube",sampler1DShadow:"sampler1DShadow",sampler2DShadow:"sampler2DShadow",sampler2DRect:"sampler2DRect",sampler2DRectShadow:"sampler2DRectShadow"},E=function(){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h()(this,t),this.options=Object.assign({},t.defaultOptions,n),this.canvas=e,this.options.webgl2&&(r=e.getContext("webgl2",this.options)),null==r&&(r=b(e,this.options),this.aia_ext=r.getExtension("ANGLE_instanced_arrays")),this.gl=r,r.viewport(0,0,e.width,e.height),r.clearColor(0,0,0,0),r.blendFuncSeparate(r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA),this.programs=[],this._events={}}var e,r,n;return p()(t,null,[{key:"addLibs",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(A,t)}},{key:"FLOAT",value:function(t,e){return x(t,Float32Array,e)}},{key:"UNSIGNED_BYTE",value:function(t,e){return x(t,Uint8Array,e)}},{key:"UNSIGNED_SHORT",value:function(t,e){return x(t,Uint16Array,e)}},{key:"BYTE",value:function(t,e){return x(t,Int8Array,e)}},{key:"SHORT",value:function(t,e){return x(t,Int16Array,e)}}]),p()(t,[{key:"_declareUniform",value:function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1f",i=this.gl,o=i.getUniformLocation(t,e),a=this;if(/^sampler/.test(n)){var s=t._samplerMap,u=t._bindTextures;Object.defineProperty(t.uniforms,e,{get:function(){return r},set:function(t){r=t;var n=null!=s[e]?s[e]:u.length;u[n]=t,R(i,t,n),s[e]||(s[e]=n,i.uniform1i(o,n)),a.options.autoUpdate&&a.update()},configurable:!1,enumerable:!0})}else{var c=0===n.indexOf("Matrix"),f=!c&&/v$/.test(n),h=i["uniform".concat(n)].bind(i);Object.defineProperty(t.uniforms,e,{get:function(){return r},set:function(t){r=t,"number"==typeof t&&(t=[t]),c?h(o,!1,t):f?h(o,t):h.apply(void 0,[o].concat(l()(t))),a.options.autoUpdate&&a.update()},configurable:!1,enumerable:!0})}}},{key:"_draw",value:function(){var e=this,r=this.program;r.meshData.forEach((function(n,i){var o=n.positions,a=n.cells,s=n.instanceCount,c=n.cellsCount,l=n.attributes,f=n.uniforms,h=n.textureCoord,d=n.enableBlend,p=e.gl,v=null!=n.mode?n.mode:p.TRIANGLES;"string"==typeof v&&(v=p[v]),d?p.enable(p.BLEND):p.disable(p.BLEND),p.bindBuffer(p.ARRAY_BUFFER,r._buffers.verticesBuffer),p.bufferData(p.ARRAY_BUFFER,o,p.STATIC_DRAW),a&&(p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,r._buffers.cellsBuffer),p.bufferData(p.ELEMENT_ARRAY_BUFFER,a,p.STATIC_DRAW));var g,y=[];if(l&&Object.values(l).forEach((function(t){var n=t.name,i=t.data,o=t.divisor;if(p.bindBuffer(p.ARRAY_BUFFER,r._buffers[n]),p.bufferData(p.ARRAY_BUFFER,i,p.STATIC_DRAW),null!=o){var a=p.getAttribLocation(r,n);a>=0&&(p.enableVertexAttribArray(a),y.push(a),p.vertexAttribDivisor?p.vertexAttribDivisor(a,o):e.aia_ext&&e.aia_ext.vertexAttribDivisorANGLE(a,o))}})),f&&Object.entries(f).forEach((function(t){var r=u()(t,2),n=r[0],i=r[1];e.uniforms[n]=i})),!a){var m=r._dimension;g=o.length/m}if(r._enableTextures&&r._buffers.texCoordBuffer){var b=h||function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=[],n=t.length,i=0;i<n;i++)i%e<2&&r.push(.5*(t[i]+1));return r}(o,r._dimension);p.bindBuffer(p.ARRAY_BUFFER,r._buffers.texCoordBuffer),p.bufferData(p.ARRAY_BUFFER,t.FLOAT(b),p.STATIC_DRAW)}null!=s?(a?p.drawElementsInstanced?p.drawElementsInstanced(v,c,p.UNSIGNED_SHORT,0,s):e.aia_ext&&e.aia_ext.drawElementsInstancedANGLE(v,c,p.UNSIGNED_SHORT,0,s):p.drawArraysInstanced?p.drawArraysInstanced(v,0,g,s):e.aia_ext.drawArraysInstancedANGLE(v,0,g,s),y.forEach((function(t){p.vertexAttribDivisor?p.vertexAttribDivisor(t,null):e.aia_ext&&e.aia_ext.vertexAttribDivisorANGLE(t,null)}))):a?p.drawElements(v,c,p.UNSIGNED_SHORT,0):p.drawArrays(v,0,g)}))}},{key:"deleteProgram",value:function(t){var e=this.gl;this.program===t&&(this.startRender=!1,this._renderFrameID&&(cancelAnimationFrame(this._renderFrameID),delete this._renderFrameID),e.useProgram(null));var r=this.programs.indexOf(t);r>=0&&this.programs.splice(r,1),function(t,e){var r=e._buffers;Object.values(r).forEach((function(e){t.deleteBuffer(e)})),e._buffers={}}(e,t),e.deleteProgram(t)}},{key:"setMeshData",value:function(e){var r=this;Array.isArray(e)||(e=[e]);var n=this.program;n.meshData=e.map((function(e){var i=e.mode,o=e.positions,a=e.instanceCount,s=e.cells,c=e.cellsCount,l=e.attributes,f=e.uniforms,h=e.textureCoord,d=e.enableBlend,p={positions:t.FLOAT(o),uniforms:f,enableBlend:!!d,textureCoord:t.FLOAT(h)};if(s&&(p.cells=t.USHORT(s),p.cellsCount=c||p.cells.length),null!=i&&(p.mode=i),null!=a){if(!r.isWebGL2&&!r.aia_ext)throw new Error("Cannot use instanceCount in this rendering context, use webgl2 context instead.");p.instanceCount=a}if(l){var v={};Object.entries(l).forEach((function(e){var i=u()(e,2),o=i[0],a=i[1];if(n._attribute[o]){if("ignored"!==n._attribute[o]){var s=n._attribute[o],c=s.name,l=s.type,f=a.data||a;if(Array.isArray(f)&&(f=t[l](f)),v[o]={name:c,data:f},null!=a.divisor){if(!r.isWebGL2&&!r.aia_ext)throw new Error("Cannot use divisor in this rendering context, use webgl2 context instead.");v[o].divisor=a.divisor}}}else n._attribute[o]="ignored"})),p.attributes=v}return p})),this.options.autoUpdate&&this.update()}},{key:"createProgram",value:function(t,e){var r=this,n=/^\s*uniform\s+sampler/gm.test(t);null==t&&(t=S),null==e&&(e=n?"attribute vec4 a_vertexPosition;\nattribute vec2 a_vertexTextureCoord;\nvarying vec2 vTextureCoord;\n\nvoid main() {\n  gl_PointSize = 1.0;\n  gl_Position = a_vertexPosition;\n  vTextureCoord = a_vertexTextureCoord;\n}":"attribute vec3 a_vertexPosition;\n\nvoid main() {\n  gl_PointSize = 1.0;\n  gl_Position = vec4(a_vertexPosition, 1);\n}");var i=this.gl,o=function(t,e,r){var n=t.createShader(t.VERTEX_SHADER);if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS)){var i="Vertex shader failed to compile.  The error log is:".concat(t.getShaderInfoLog(n));throw new Error(i)}var o=t.createShader(t.FRAGMENT_SHADER);if(t.shaderSource(o,r),t.compileShader(o),!t.getShaderParameter(o,t.COMPILE_STATUS)){var a="Fragment shader failed to compile.  The error log is:".concat(t.getShaderInfoLog(o));throw new Error(a)}var s=t.createProgram();if(t.attachShader(s,n),t.attachShader(s,o),t.linkProgram(s),!t.getProgramParameter(s,t.LINK_STATUS)){var u="Shader program failed to link.  The error log is:".concat(t.getProgramInfoLog(s));throw new Error(u)}return t.deleteShader(n),t.deleteShader(o),s}(i,e,t);o.shaderText={vertexShader:e,fragmentShader:t},o._buffers={},o._attribute={},o.uniforms={},o._samplerMap={},o._bindTextures=[];var a=new RegExp("(?:attribute|in) vec(\\d) ".concat(this.options.vertexPosition),"im"),s=e.match(a);s&&(o._dimension=Number(s[1]));var c=new RegExp("(?:attribute|in) vec(\\d) ".concat(this.options.vertexTextureCoord),"im");(s=e.match(c))&&(o._texCoordSize=Number(s[1]));if(s=e.match(/^\s*(?:attribute|in) (\w+?)(\d*) (\w+)/gim))for(var l=0;l<s.length;l++){var f=s[l].match(/^\s*(?:attribute|in) (\w+?)(\d*) (\w+)/im);if(f&&f[3]!==this.options.vertexPosition&&f[3]!==this.options.vertexTextureCoord){var h=u()(f,4),d=h[1],p=h[2],v=h[3];"mat"===d&&(p=Math.pow(p,2)),o._buffers[v]=i.createBuffer(),o._attribute[v]={name:v,type:d,size:Number(p)||1}}}var g=/^\s*uniform\s+(\w+)\s+(\w+)(\[\d+\])?/gm;(s=(s=e.match(g)||[]).concat(t.match(g)||[])).forEach((function(t){var e=t.match(/^\s*uniform\s+(\w+)\s+(\w+)(\[\d+\])?/).slice(1),n=u()(e,3),i=n[0],a=n[1],s=n[2];s=!!s,0!==(i=_[i]).indexOf("Matrix")&&s&&(i+="v"),r._declareUniform(o,a,i)})),o._buffers.verticesBuffer=i.createBuffer(),o._buffers.cellsBuffer=i.createBuffer();var y=i.getAttribLocation(o,this.options.vertexTextureCoord);return o._enableTextures=y>=0,o._enableTextures&&(o._buffers.texCoordBuffer=i.createBuffer()),this.programs.push(o),o}},{key:"useProgram",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.startRender=!1,this._renderFrameID&&(cancelAnimationFrame(this._renderFrameID),delete this._renderFrameID);var r=this.gl;r.useProgram(t);var n=t._dimension;r.bindBuffer(r.ARRAY_BUFFER,t._buffers.verticesBuffer);var i=r.getAttribLocation(t,this.options.vertexPosition);if(r.vertexAttribPointer(i,n,r.FLOAT,!1,0,0),r.enableVertexAttribArray(i),t._enableTextures){r.bindBuffer(r.ARRAY_BUFFER,t._buffers.texCoordBuffer);var o=r.getAttribLocation(t,this.options.vertexTextureCoord);r.vertexAttribPointer(o,t._texCoordSize||2,r.FLOAT,!1,0,0),r.enableVertexAttribArray(o)}if(Object.entries(t._attribute).forEach((function(n){var i=u()(n,2),o=i[0],a=i[1];if("ignored"!==a){var s=a.size,c=e[o]||{},l=!!c.normalize,f=c.type||"FLOAT",h=c.key||o;"UBYTE"===f&&(f="UNSIGNED_BYTE"),"USHORT"===f&&(f="UNSIGNED_SHORT"),a.type=f,h&&h!==o&&(t._attribute[h]=a),r.bindBuffer(r.ARRAY_BUFFER,t._buffers[o]);var d=r.getAttribLocation(t,o);d>=0&&(r.vertexAttribPointer(d,s,r[f],l,0,0),r.enableVertexAttribArray(d))}})),!t.meshData){var a=[[-1,-1,0,1].slice(0,n),[1,-1,0,1].slice(0,n),[1,1,0,1].slice(0,n),[-1,1,0,1].slice(0,n)],s=[[0,1,3],[3,1,2]];this.setMeshData({positions:a,cells:s})}return t}},{key:"compileSync",value:function(t,e){var r={};function n(t){var e=[],i=(t=t.replace(/^\s*/gm,"")).match(/^#pragma\s+include\s+.*/gm);if(i){for(var o=0;o<i.length;o++){var a=i[o].match(/(?:<|")(.*)(?:>|")/);if(a){var s=0===a[0].indexOf("<")?"lib":"link",u=a[1];if("graph"===u&&(u="graphics"),r[u])e.push("/* included ".concat(u," */"));else if(r[u]=!0,"lib"===s){var c=n(A[u]);e.push(c)}else if("link"===s)throw new Error("Cannot load external links synchronously. Use compile instead of compileSync.")}}e.forEach((function(e){t=t.replace(/^#pragma\s+include\s+.*/m,e)}))}return t}var i=n(t=t||S),o=e?n(e):null;return this.createProgram(i,o)}},{key:"compile",value:(n=a()(i.a.mark((function e(r,n){var o,s,u,c,l,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=function(){return(u=a()(i.a.mark((function e(r){var n,a,u,c,l,f,h,d,p;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=r.replace(/^\s*/gm,""),n=[],!(a=r.match(/^#pragma\s+include\s+.*/gm))){e.next=36;break}u=0;case 5:if(!(u<a.length)){e.next=35;break}if(c=a[u],!(l=c.match(/(?:<|")(.*)(?:>|")/))){e.next=32;break}if(f=0===l[0].indexOf("<")?"lib":"link","graph"===(h=l[1])&&(h="graphics"),o[h]){e.next=31;break}if(o[h]=!0,"lib"!==f){e.next=21;break}return e.next=17,s(A[h]);case 17:d=e.sent,n.push(d),e.next=29;break;case 21:if("link"!==f){e.next=29;break}return e.next=24,t.fetchShader(h);case 24:return p=e.sent,e.next=27,s(p);case 27:p=e.sent,n.push(p);case 29:e.next=32;break;case 31:n.push("/* included ".concat(h," */"));case 32:u++,e.next=5;break;case 35:n.forEach((function(t){r=r.replace(/^#pragma\s+include\s+.*/m,t)}));case 36:return e.abrupt("return",r);case 37:case"end":return e.stop()}}),e)})))).apply(this,arguments)},s=function(t){return u.apply(this,arguments)},r=r||S,o={},e.next=6,s(r);case 6:if(c=e.sent,!n){e.next=13;break}return e.next=10,s(n);case 10:e.t0=e.sent,e.next=14;break;case 13:e.t0=null;case 14:return l=e.t0,f=this.createProgram(c,l),e.abrupt("return",f);case 17:case"end":return e.stop()}}),e,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"load",value:(r=a()(i.a.mark((function e(r){var n,o=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:null,e.next=3,t.fetchShader(r);case 3:if(r=e.sent,!n){e.next=8;break}return e.next=7,t.fetchShader(n);case 7:n=e.sent;case 8:return e.abrupt("return",this.compile(r,n));case 9:case"end":return e.stop()}}),e,this)}))),function(t){return r.apply(this,arguments)})},{key:"createTexture",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.wrapS,i=void 0===n?this.gl.CLAMP_TO_EDGE:n,o=r.wrapT,a=void 0===o?this.gl.CLAMP_TO_EDGE:o,s=r.minFilter,u=void 0===s?this.gl.LINEAR:s,c=r.magFilter,l=void 0===c?this.gl.LINEAR:c,f=this.gl,h=Array.isArray(e)?f.TEXTURE_CUBE_MAP:f.TEXTURE_2D;this._max_texture_image_units=this._max_texture_image_units||f.getParameter(f.MAX_COMBINED_TEXTURE_IMAGE_UNITS),f.activeTexture(f.TEXTURE0+this._max_texture_image_units-1);var d=f.createTexture();f.bindTexture(h,d),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,!0);var p=this.canvas,v=p.width,g=p.height;if(e)if(h===f.TEXTURE_CUBE_MAP)for(var y=0;y<6;y++)f.texImage2D(f.TEXTURE_CUBE_MAP_POSITIVE_X+y,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,e[y]);else f.texImage2D(h,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,e);else if(h===f.TEXTURE_CUBE_MAP)for(var m=0;m<6;m++)this.gl.texImage2D(this.gl.TEXTURE_CUBE_MAP_POSITIVE_X+m,0,f.RGBA,v,g,0,f.RGBA,f.UNSIGNED_BYTE,null);else f.texImage2D(h,0,f.RGBA,v,g,0,f.RGBA,f.UNSIGNED_BYTE,null);return f.texParameteri(h,f.TEXTURE_MIN_FILTER,u),f.texParameteri(h,f.TEXTURE_MAG_FILTER,l),f.texParameteri(h,f.TEXTURE_WRAP_S,i),f.texParameteri(h,f.TEXTURE_WRAP_T,a),h===f.TEXTURE_CUBE_MAP&&(e.width=e[0].width,e.height=e[0].height),f.bindTexture(h,null),d._img=e||{width:v,height:g},d.delete=function(){t.deleteTexture(d)},d}},{key:"deleteTexture",value:function(t){var e=t._img;this.gl.deleteTexture(t),"function"==typeof e.close&&e.close()}},{key:"loadTexture",value:(e=a()(i.a.mark((function e(r){var n,o,a,s,u=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},o=n.useImageBitmap,a=void 0===o||o,e.next=3,t.loadImage(r,{useImageBitmap:a});case 3:return s=e.sent,e.abrupt("return",this.createTexture(s));case 5:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"createFBO",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.color,r=void 0===e?1:e,n=t.blend,i=void 0!==n&&n,o=t.depth,a=void 0===o?!1!==this.options.depth:o,s=t.stencil,u=void 0===s?!!this.options.stencil:s,c=this.gl,l=c.createFramebuffer();c.bindFramebuffer(c.FRAMEBUFFER,l);for(var f=[],h=0;h<r;h++){var d=this.createTexture();c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0+h,c.TEXTURE_2D,d,0),f.push(d)}l.textures=f,l.texture=f[0],l.blend=i;var p=this.canvas,v=p.width,g=p.height;return a&&!u&&(l.depthBuffer=c.createRenderbuffer(),c.bindRenderbuffer(c.RENDERBUFFER,l.depthBuffer),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,v,g),c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,l.depthBuffer)),u&&!a&&(l.stencilBuffer=c.createRenderbuffer(),c.bindRenderbuffer(c.RENDERBUFFER,l.stencilBuffer),c.renderbufferStorage(c.RENDERBUFFER,c.STENCIL_INDEX8,v,g),c.framebufferRenderbuffer(c.FRAMEBUFFER,c.STENCIL_ATTACHMENT,c.RENDERBUFFER,l.stencilBuffer)),a&&u&&(l.depthStencilBuffer=c.createRenderbuffer(),c.bindRenderbuffer(c.RENDERBUFFER,l.depthStencilBuffer),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_STENCIL,v,g),c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_STENCIL_ATTACHMENT,c.RENDERBUFFER,l.depthStencilBuffer)),c.bindFramebuffer(c.FRAMEBUFFER,null),l}},{key:"bindFBO",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.fbo=t}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.clearBuffer;this.startRender=!0;var e=this.gl,r=this.program;r||(r=this.createProgram(),this.useProgram(r)),this.fbo&&e.bindFramebuffer(e.FRAMEBUFFER,this.fbo);var n=this.options.depth;n&&e.enable(e.DEPTH_TEST),this.gl.clear(this.gl.COLOR_BUFFER_BIT|(n?this.gl.DEPTH_BUFFER_BIT:0)|(this.options.stencil?this.gl.STENCIL_BUFFER_BIT:0));var i=this._renderFrameID;this._draw(),this.fbo&&e.bindFramebuffer(e.FRAMEBUFFER,null),this._renderFrameID===i&&(this._renderFrameID=null)}},{key:"update",value:function(){this.startRender&&null==this._renderFrameID&&(this._renderFrameID=requestAnimationFrame(this.render.bind(this)))}},{key:"program",get:function(){var t=this.gl;return t.getParameter(t.CURRENT_PROGRAM)}},{key:"isWebGL2",get:function(){return"undefined"!=typeof WebGL2RenderingContext&&this.gl instanceof WebGL2RenderingContext}},{key:"enableTextures",get:function(){return this.program&&this.program._enableTextures}},{key:"uniforms",get:function(){var t=this.program;if(!t||!t.uniforms)throw Error("No avaliable program.");return t.uniforms}}]),t}();g()(E,"defaultOptions",{preserveDrawingBuffer:!0,autoUpdate:!0,vertexPosition:"a_vertexPosition",vertexTextureCoord:"a_vertexTextureCoord",webgl2:!1}),g()(E,"UBYTE",E.UNSIGNED_BYTE),g()(E,"USHORT",E.UNSIGNED_SHORT),g()(E,"fetchShader",(function(t){return k.apply(this,arguments)})),g()(E,"loadImage",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.useImageBitmap,n=void 0===r||r,i=e.alias,o=void 0===i?null:i;if(!w[t])if("function"==typeof Image){var a=new Image;"string"!=typeof t||"object"===("undefined"==typeof location?"undefined":m()(location))&&/^file:/.test(location.href)||/^data:/.test(t)||(a.crossOrigin="anonymous"),w[t]=new Promise((function(e){a.onload=function(){n&&"function"==typeof createImageBitmap?createImageBitmap(a,{imageOrientation:"flipY"}).then((function(r){w[t]=r,o&&(w[o]=r),e(r)})):(w[t]=a,o&&(w[o]=a),e(a))},a.src=t})),o&&(w[o]=w[t])}else if("function"==typeof fetch)return fetch(t,{method:"GET",mode:"cors",cache:"default"}).then((function(t){return t.blob()})).then((function(e){return createImageBitmap(e,{imageOrientation:"flipY"}).then((function(e){return w[t]=e,o&&(w[o]=e),e}))}));return w[t]})),r(0).glMatrix.setMatrixArrayType(Array);e.a=E},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(109);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(e,n)}t.exports=r},function(t,e,r){"use strict";e.__esModule=!0;var n=o(r(178)),i=o(r(189));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if(Array.isArray(t))return t;if((0,n.default)(Object(t)))return function(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var s,u=(0,i.default)(t);!(n=(s=u.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw a}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e,r){var n=r(55);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,r){"use strict";var n=r(56),i=r(22),o=r(116),a=r(40),s=r(48),u=r(182),c=r(59),l=r(186),f=r(20)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,r,p,v,g,y){u(r,e,p);var m,b,x,w=function(t){if(!h&&t in A)return A[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},M=e+" Iterator",k="values"==v,S=!1,A=t.prototype,R=A[f]||A["@@iterator"]||v&&A[v],_=R||w(v),E=v?k?w("entries"):_:void 0,O="Array"==e&&A.entries||R;if(O&&(x=l(O.call(new t)))!==Object.prototype&&x.next&&(c(x,M,!0),n||"function"==typeof x[f]||a(x,f,d)),k&&R&&"values"!==R.name&&(S=!0,_=function(){return R.call(this)}),n&&!y||!h&&!S&&A[f]||a(A,f,_),s[e]=_,s[M]=d,v)if(m={values:k?_:w("values"),keys:g?_:w("keys"),entries:E},y)for(b in m)b in A||o(A,b,m[b]);else i(i.P+i.F*(h||S),e,m);return m}},function(t,e,r){var n=r(29),i=r(19).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,r){var n=r(29);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(37),i=r(183),o=r(91),a=r(89)("IE_PROTO"),s=function(){},u=function(){var t,e=r(85)("iframe"),n=o.length;for(e.style.display="none",r(118).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[o[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[a]=t):r=u(),void 0===e?r:i(r,e)}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(90)("keys"),i=r(69);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(16),i=r(19),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(56)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(70),i=r(20)("iterator"),o=r(48);t.exports=r(16).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e){},function(t,e,r){var n=r(40);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){var n=r(69)("meta"),i=r(29),o=r(45),a=r(28).f,s=0,u=Object.isExtensible||function(){return!0},c=!r(44)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[n].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!o(t,n)&&l(t),t}}},function(t,e,r){t.exports={default:r(210),__esModule:!0}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(19),i=r(16),o=r(56),a=r(130),s=r(28).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseEasing=e.Easings=void 0;var n=a(r(81)),i=a(r(119)),o=a(r(123));function a(t){return t&&t.__esModule?t:{default:t}}var s=r(224),u=new o.default;function c(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=u.get(e);return n||(n=s.apply(void 0,e),u.set(e,n),n)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return function(r,n){for(var i=1;i<n.length;i++){var o=n[i].offset;if(r<=o){var a=n[i-1].offset,s=o,u=1/t,c=(r-a)/(s-a)/u;return u*(c="end"===e?Math.floor(c):Math.ceil(c))*(s-a)+a}}return 0}}var f={linear:function(t){return t},ease:c(.25,.1,.25,1),"ease-in":c(.42,0,1,1),"ease-out":c(0,0,.58,1),"ease-in-out":c(.42,0,.58,1),"step-start":l(1,"start"),"step-end":l(1,"end")};e.Easings=f,e.parseEasing=function(t){return"string"==typeof t?t=f[t]?f[t]:function(t){var e=/^cubic-bezier\((.*)\)/,r=t.match(e);if(r){var o=r[1].trim();return o=o.split(",").map((function(t){return parseFloat(t.trim())})),c.apply(void 0,(0,i.default)(o))}if(e=/^steps\((.*)\)/,r=t.match(e)){var a=r[1].trim(),s=a=a.split(",").map((function(t){return t.trim()})),u=(0,n.default)(s,2),f=u[0],h=u[1];return l(parseInt(f,10),h)}return t}(t):"cubic-bezier"===t.type?t=c.apply(void 0,(0,i.default)(t.value)):"steps"===t.type&&(t=l(t.step,t.pos)),t}},function(t,e,r){"use strict";var n=r(57);function i(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new i(t)}},function(t,e){t.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(t){return"tag"===t.type||"script"===t.type||"style"===t.type}}},function(t,e,r){var n=r(1),i=r(80),o=r(242),a=r(243);function s(e){var r="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return a(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},s(e)}t.exports=s},function(t,e){t.exports=function(t){var e=[];return t.replace(n,(function(t,n,o){var a=n.toLowerCase();for(o=function(t){var e=t.match(i);return e?e.map(Number):[]}(o),"m"==a&&o.length>2&&(e.push([n].concat(o.splice(0,2))),a="l",n="m"==n?"l":"L");;){if(o.length==r[a])return o.unshift(n),e.push(o);if(o.length<r[a])throw new Error("malformed path data");e.push([n].concat(o.splice(0,r[a])))}})),e};var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},n=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},function(t,e){t.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var o=(t=t.slice())[0],a=o.toUpperCase();if(o!=a)switch(t[0]=a,o){case"a":t[6]+=n,t[7]+=i;break;case"v":t[1]+=i;break;case"h":t[1]+=n;break;default:for(var s=1;s<t.length;)t[s++]+=n,t[s++]+=i}switch(a){case"Z":n=e,i=r;break;case"H":n=t[1];break;case"V":i=t[1];break;case"M":n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},function(t,e,r){r(0).glMatrix.setMatrixArrayType(Array);var n=r(175),i=r(176);t.exports=function(t,e){if(e=e||{},0===(t=t.filter((function(t){return t.length>2}))).length)return{positions:[],cells:[]};"number"!=typeof e.vertexSize&&(e.vertexSize=t[0][0].length),t=t.map((function(t){return t.reduce((function(t,e){return t.concat(e)}))}));for(var r="evenodd"===e.rule?n.WINDING_ODD:n.WINDING_NONZERO,o=n.tesselate(i({contours:t,windingRule:r,elementType:n.POLYGONS,polySize:3,vertexSize:2},e)),a=[],s=0;s<o.vertices.length;s+=e.vertexSize){var u=o.vertices.slice(s,s+e.vertexSize);a.push(u)}var c=[];for(s=0;s<o.elements.length;s+=3){var l=o.elements[s],f=o.elements[s+1],h=o.elements[s+2];c.push([l,f,h])}return{positions:a,cells:c}}},function(t,e,r){"use strict";var n=r(10),i=r.n(n),o=r(5),a=r.n(o),s=r(6),u=r.n(s),c=r(8),l=r.n(c),f=r(7),h=r.n(f),d=r(1),p=r.n(d),v=r(103),g=r.n(v),y=r(13);function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var x=Symbol("inited"),w=null;"function"==typeof Worker&&(w=function(t){l()(r,t);var e=b(r);function r(t){var n;if(a()(this,r),!0===t.worker&&(t.worker="./".concat(t.id,".worker.js")),(n=e.call(this,t.worker)).options=t,!t.canvas){var i=n.getResolution(),o=i.width,s=i.height,u=y.a.createCanvas(o,s,{offscreen:!1});u.style&&(u.style.position="absolute"),u.dataset&&(u.dataset.layerId=t.id),t.canvas=u}return n.canvas=t.canvas,n}return u()(r,[{key:"setResolution",value:function(t){var e=t.width,r=t.height;if(this[x])this.postMessage({type:"resolution_change",width:e,height:r});else{this.canvas.width=e,this.canvas.height=r;var n=this.options,o=n.canvas.transferControlToOffscreen(),a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){i()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},n);delete a.container,a.canvas=o,this.postMessage({type:"create",options:a},[o]),this[x]=!0}}},{key:"getResolution",value:function(){if(this.canvas){var t=this.canvas;return{width:t.width,height:t.height}}return{width:300,height:150}}},{key:"remove",value:function(){return!(!this.parent||!this.parent.removeChild)&&(this.parent.removeChild(this),!0)}},{key:"connect",value:function(t,e){Object.defineProperty(this,"parent",{value:t,writable:!1,configurable:!0}),Object.defineProperty(this,"zOrder",{value:e,writable:!1,configurable:!0})}},{key:"disconnect",value:function(){delete this.parent,delete this.zOrder}},{key:"dispatchPointerEvent",value:function(t){this.postMessage({type:"event",event:{cancelBubble:t.cancelBubble,bubbles:t.bubbles,detail:t.detail,identifier:t.identifier,layerX:t.layerX,layerY:t.layerY,originalX:t.originalX,originalY:t.originalY,type:t.type,x:t.x,y:t.y}})}},{key:"id",get:function(){return this.options.id}}]),r}(g()(Worker))),e.a=w},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t,e,r){var n=r(1);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=f(r(81)),i=f(r(119)),o=f(r(123)),a=f(r(97)),s=f(r(127)),u=f(r(128)),c=f(r(129)),l=r(223);function f(t){return t&&t.__esModule?t:{default:t}}var h=(0,l.createNowTime)(),d={originTime:0,playbackRate:1},p=(0,c.default)("timeMark"),v=(0,c.default)("playbackRate"),g=(0,c.default)("timers"),y=(0,c.default)("originTime"),m=(0,c.default)("setTimer"),b=(0,c.default)("parent"),x=function(){function t(e,r){(0,s.default)(this,t),e instanceof t&&(r=e,e={}),e=(0,a.default)({},d,e),r&&(this[b]=r);var n=e.nowtime||h;if(r)Object.defineProperty(this,"globalTime",{get:function(){return r.currentTime}});else{var i=n();Object.defineProperty(this,"globalTime",{get:function(){return n()-i}})}this[p]=[{globalTime:this.globalTime,localTime:-e.originTime,entropy:-e.originTime,playbackRate:e.playbackRate,globalEntropy:0}],this[b]&&(this[p][0].globalEntropy=this[b].entropy),this[y]=e.originTime,this[v]=e.playbackRate,this[g]=new o.default}return(0,u.default)(t,[{key:"markTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.time,r=void 0===e?this.currentTime:e,n=t.entropy,i=void 0===n?this.entropy:n,o=t.playbackRate,a=void 0===o?this.playbackRate:o,s={globalTime:this.globalTime,localTime:r,entropy:i,playbackRate:a,globalEntropy:this.globalEntropy};this[p].push(s)}},{key:"fork",value:function(e){return new t(e,this)}},{key:"seekGlobalTime",value:function(t){var e=this.seekTimeMark(t),r=this[p][e],n=r.entropy,i=r.playbackRate;return r.globalTime+(t-n)/Math.abs(i)}},{key:"seekLocalTime",value:function(t){var e=this.seekTimeMark(t),r=this[p][e],n=r.localTime,i=r.entropy;return r.playbackRate>0?n+(t-i):n-(t-i)}},{key:"seekTimeMark",value:function(t){var e=this[p],r=0,n=e.length-1;if(t<=e[r].entropy)return r;if(t>=e[n].entropy)return n;for(var i=Math.floor((r+n)/2);i>r&&i<n;){if(t===e[i].entropy)return i;t<e[i].entropy?n=i:t>e[i].entropy&&(r=i),i=Math.floor((r+n)/2)}return r}},{key:"updateTimers",value:function(){var t=this;[].concat((0,i.default)(this[g])).forEach((function(e){var r=(0,n.default)(e,2),i=r[0],o=r[1];t[m](o.handler,o.time,i)}))}},{key:"clearTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=this[g].get(t);e&&null!=e.timerID&&(this[b]?this[b].clearTimeout(e.timerID):clearTimeout(e.timerID)),this[g].delete(t)}))},{key:"clearInterval",value:function(t){return this.clearTimeout(t)}},{key:"clear",value:function(){var t=this,e=this[g];[].concat((0,i.default)(e.keys())).forEach((function(e){t.clearTimeout(e)}))}},{key:"setTimeout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0};return this[m](t,e)}},{key:"setInterval",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0},r=this,n=this[m]((function i(){r[m](i,e,n),t()}),e);return n}},{key:m,value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,c.default)("timerID");e=(0,l.formatDelay)(e);var i=this[g].get(n),o=void 0,a=null,s=void 0,u=void 0;i?(this.clearTimeout(n),o=e.isEntropy?(e.delay-(this.entropy-i.startEntropy))/Math.abs(this.playbackRate):(e.delay-(this.currentTime-i.startTime))/this.playbackRate,s=i.startTime,u=i.startEntropy):(o=e.delay/(e.isEntropy?Math.abs(this.playbackRate):this.playbackRate),s=this.currentTime,u=this.entropy);var f=this[b],h=f?f.setTimeout.bind(f):setTimeout,d=e.heading;return!f&&!1===d&&o<0&&(o=1/0),(isFinite(o)||f)&&(o=Math.ceil(o),h!==setTimeout&&(o={delay:o,heading:d}),a=h((function(){r[g].delete(n),t()}),o)),this[g].set(n,{timerID:a,handler:t,time:e,startTime:s,startEntropy:u}),n}},{key:"parent",get:function(){return this[b]}},{key:"lastTimeMark",get:function(){return this[p][this[p].length-1]}},{key:"currentTime",get:function(){var t=this.lastTimeMark,e=t.localTime,r=t.globalTime;return e+(this.globalTime-r)*this.playbackRate},set:function(t){var e=this,r=this.currentTime,o=t,a=this[g];this.markTime({time:t}),[].concat((0,i.default)(a)).forEach((function(t){var i=(0,n.default)(t,2),s=i[0],u=i[1];if(a.has(s)){var c=u.time,l=c.isEntropy,f=c.delay,h=c.heading,d=u.handler,p=u.startTime;if(l)0===f&&(d(),e.clearTimeout(s));else{var v=p+f;(0===f||!1!==h&&(o-r)*f<=0||r<=v&&v<=o||r>=v&&v>=o)&&(d(),e.clearTimeout(s))}}})),this.updateTimers()}},{key:"entropy",get:function(){var t=this.lastTimeMark,e=t.entropy,r=t.globalEntropy;return e+Math.abs((this.globalEntropy-r)*this.playbackRate)},set:function(t){if(this.entropy>t){var e=this.seekTimeMark(t);this[p].length=e+1}this.markTime({entropy:t}),this.updateTimers()}},{key:"globalEntropy",get:function(){return this[b]?this[b].entropy:this.globalTime}},{key:"playbackRate",get:function(){return this[v]},set:function(t){t!==this.playbackRate&&(this.markTime({playbackRate:t}),this[v]=t,this.updateTimers())}},{key:"paused",get:function(){if(0===this.playbackRate)return!0;for(var t=this.parent;t;){if(0===t.playbackRate)return!0;t=t.parent}return!1}}]),t}();e.default=x},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){t.exports=!r(26)&&!r(44)((function(){return 7!=Object.defineProperty(r(85)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){t.exports=r(40)},function(t,e,r){var n=r(45),i=r(43),o=r(184)(!1),a=r(89)("IE_PROTO");t.exports=function(t,e){var r,s=i(t),u=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~o(c,r)||c.push(r));return c}},function(t,e,r){var n=r(19).document;t.exports=n&&n.documentElement},function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(192),o=(n=i)&&n.__esModule?n:{default:n};e.default=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return(0,o.default)(t)}},function(t,e,r){var n=r(37);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(48),i=r(20)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},function(t,e,r){var n=r(20)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},function(t,e,r){t.exports={default:r(196),__esModule:!0}},function(t,e,r){"use strict";var n=r(19),i=r(16),o=r(28),a=r(26),s=r(20)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(29);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,r){var n=r(55);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(213),o=(n=i)&&n.__esModule?n:{default:n};e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,o.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){t.exports={default:r(216),__esModule:!0}},function(t,e,r){e.f=r(20)},function(t,e,r){var n=r(117),i=r(91).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={default:function(t,e,r,n,i){return"number"==typeof t&&"number"==typeof e?t+(r-n)/(i-n)*(e-t):r-n>i-r?e:t}}},function(t,e,r){t.exports={default:r(226),__esModule:!0}},function(t,e,r){var n=r(37),i=r(57),o=r(20)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(39),s=r(228),u=r(118),c=r(85),l=r(19),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,g=0,y={},m=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){m.call(t.data)};h&&d||(h=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return y[++g]=function(){s("function"==typeof t?t:Function(t),e)},n(g),g},d=function(t){delete y[t]},"process"==r(55)(f)?n=function(t){f.nextTick(a(m,t,1))}:v&&v.now?n=function(t){v.now(a(m,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:h,clear:d}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(37),i=r(29),o=r(101);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){"use strict";r.d(e,"a",(function(){return E}));var n=r(3),i=r.n(n),o=r(2),a=r.n(o),s=r(5),u=r.n(s),c=r(6),l=r.n(c),f=r(36),h=r.n(f),d=r(9),p=r.n(d),v=r(8),g=r.n(v),y=r(7),m=r.n(y),b=r(1),x=r.n(b),w=r(13),M=r(21),k=r(38),S=r(12);function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=x()(t);if(e){var i=x()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var R=Symbol("amount"),_=Symbol("meshCloud"),E=function(t){g()(r,t);var e=A(r);function r(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return u()(this,r),(n=e.call(this)).meshNode=t,t.connect(h()(n)),n[R]=i,n[_]=null,n}return l()(r,[{key:"brightness",value:function(t,e){this.meshCloud&&(this.meshCloud.brightness(t,e),this.forceUpdate())}},{key:"contrast",value:function(t,e){this.meshCloud&&(this.meshCloud.contrast(t,e),this.forceUpdate())}},{key:"delete",value:function(t){this.meshCloud&&(this.meshCloud.delete(t),this[R]--,this.forceUpdate())}},{key:"draw",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(p()(x()(r.prototype),"draw",this).call(this,e),this.meshCloud){if(this.program){this.meshCloud.setProgram(this.program);var n=this.shaderAttrs;n&&Object.entries(n).forEach((function(e){var r=a()(e,2),n=r[0],i=r[1];t.meshCloud.mesh.setAttribute(n,i)}));var i=this.uniforms;if(this.uniforms){var o={};Object.entries(i).forEach((function(e){var r=a()(e,2),n=r[0],i=r[1];"function"==typeof i&&(i=i(t,n)),o[n]=i})),this.meshCloud.mesh.setUniforms(o)}}this.meshNode.textureImage&&Object(M.d)(this.meshNode,this.meshNode.mesh),e.push(this.meshCloud)}return e}},{key:"getTransform",value:function(t){if(this.meshCloud)return this.meshCloud.getTransform(t)}},{key:"grayscale",value:function(t,e){this.meshCloud&&(this.meshCloud.grayscale(t,e),this.forceUpdate())}},{key:"hueRotate",value:function(t,e){this.meshCloud&&(this.meshCloud.hueRotate(t,e),this.forceUpdate())}},{key:"invert",value:function(t,e){this.meshCloud&&(this.meshCloud.invert(t,e),this.forceUpdate())}},{key:"isPointCollision",value:function(t,e){if(!this.meshCloud)return!1;var r=this.attributes.pointerEvents;if("none"===r)return!1;if("all"!==r&&!this.isVisible)return!1;var n="both";"visibleFill"===r&&(n="fill"),"visibleStroke"===r&&(n="stroke");for(var i=0;i<this[R];i++)if(!this.meshCloud.isPointCollision(i,[t,e],n))return!1;return!0}},{key:"setOpacity",value:function(t,e){this.meshCloud&&(this.meshCloud.opacity(t,e),this.forceUpdate())}},{key:"rotate",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],n=a()(r,2),i=n[0],o=n[1],s=Math.PI*e/180;if(this.meshCloud){var u=this.meshNode.attributes,c=u.x,l=u.y;this.meshCloud.rotate(t,s,[i+c,o+l]),this.forceUpdate()}}},{key:"saturate",value:function(t,e){this.meshCloud&&(this.meshCloud.saturate(t,e),this.forceUpdate())}},{key:"scale",value:function(t,e){var r=a()(e,2),n=r[0],i=r[1],o=void 0===i?n:i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],u=a()(s,2),c=u[0],l=u[1];if(this.meshCloud){var f=this.meshNode.attributes,h=f.x,d=f.y,p=1e-5;Math.abs(n)<p&&(n=1/n>0?p:-p),Math.abs(o)<p&&(o=1/o>0?p:-p),this.meshCloud.scale(t,[n,o],[c+h,l+d]),this.forceUpdate()}}},{key:"setColorTransform",value:function(t,e){this.meshCloud&&(this.meshCloud.setColorTransform(t,e),this.forceUpdate())}},{key:"setFillColor",value:function(t,e){this.meshCloud&&(Array.isArray(e)&&((e=i()(e))[0]/=255,e[1]/=255,e[2]/=255),this.meshCloud.setFillColor(t,e),this.forceUpdate())}},{key:"sepia",value:function(t,e){this.meshCloud&&(this.meshCloud.sepia(t,e),this.forceUpdate())}},{key:"setResolution",value:function(t){var e=t.width,n=t.height;p()(x()(r.prototype),"setResolution",this).call(this,{width:e,height:n}),this.meshNode.setResolution({width:e,height:n})}},{key:"setStrokeColor",value:function(t,e){this.meshCloud&&(Array.isArray(e)&&((e=i()(e))[0]/=255,e[1]/=255,e[2]/=255),this.meshCloud.setStrokeColor(t,e),this.forceUpdate())}},{key:"setTransform",value:function(t,e){this.meshCloud&&(this.meshCloud.setTransform(t,e),this.forceUpdate())}},{key:"skew",value:function(t,e){var r=a()(e,2),n=r[0],i=r[1],o=void 0===i?n:i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],u=a()(s,2),c=u[0],l=u[1];if(this.meshCloud){var f=this.meshNode.attributes,h=f.x,d=f.y;this.meshCloud.skew(t,[n,o],[c+h,l+d]),this.forceUpdate()}}},{key:"transform",value:function(t,e){this.meshCloud&&(this.meshCloud.transform(t,e),this.forceUpdate())}},{key:"transformColor",value:function(t,e){this.meshCloud&&(this.meshCloud.transformColor(t,e),this.forceUpdate())}},{key:"translate",value:function(t,e){var r=a()(e,2),n=r[0],i=r[1];this.meshCloud&&(this.meshCloud.translate(t,[n,i]),this.forceUpdate())}},{key:"updateMesh",value:function(){this[_]&&(this[_].mesh=this.meshNode.mesh,this.forceUpdate())}},{key:"meshCloud",get:function(){var t=this.meshNode,e=this[R];return!this[_]&&t.mesh&&(this[_]=new w.d(t.mesh,e)),this[_]}},{key:"isVisible",get:function(){return!!this.meshNode&&this.meshNode.isVisible}},{key:"amount",get:function(){return this[R]},set:function(t){this[R]=t,this[_]&&(this[_].amount=t)}}]),r}(k.a);S.a.registerNode(E,"cloud")},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var i=n(r(140)),o=n(r(251)),a=n(r(141)),s=n(r(252));function u(t){var e=Object.keys(t).join("|"),r=l(t),n=new RegExp("&(?:"+(e+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(t){return String(t).replace(n,r)}}e.decodeXML=u(a.default),e.decodeHTMLStrict=u(i.default);var c=function(t,e){return t<e?1:-1};function l(t){return function(e){if("#"===e.charAt(1)){var r=e.charAt(2);return"X"===r||"x"===r?s.default(parseInt(e.substr(3),16)):s.default(parseInt(e.substr(2),10))}return t[e.slice(1,-1)]}}e.decodeHTML=function(){for(var t=Object.keys(o.default).sort(c),e=Object.keys(i.default).sort(c),r=0,n=0;r<e.length;r++)t[n]===e[r]?(e[r]+=";?",n++):e[r]+=";";var a=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=l(i.default);function u(t){return";"!==t.substr(-1)&&(t+=";"),s(t)}return function(t){return String(t).replace(a,u)}}()},function(t){t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ﬃ","fflig":"ﬀ","ffllig":"ﬄ","Ffr":"𝔉","ffr":"𝔣","filig":"ﬁ","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"ﬂ","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"Ĳ","ijlig":"ĳ","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ŉ","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},function(t){t.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.escape=e.encodeHTML=e.encodeXML=void 0;var i=u(n(r(141)).default),o=c(i);e.encodeXML=h(i,o);var a=u(n(r(140)).default),s=c(a);function u(t){return Object.keys(t).sort().reduce((function(e,r){return e[t[r]]="&"+r+";",e}),{})}function c(t){for(var e=[],r=[],n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];1===o.length?e.push("\\"+o):r.push(o)}e.sort();for(var a=0;a<e.length-1;a++){for(var s=a;s<e.length-1&&e[s].charCodeAt(1)+1===e[s+1].charCodeAt(1);)s+=1;var u=1+s-a;u<3||e.splice(a,u,e[a]+"-"+e[s])}return r.unshift("["+e.join("")+"]"),new RegExp(r.join("|"),"g")}e.encodeHTML=h(a,s);var l=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;function f(t){return"&#x"+t.codePointAt(0).toString(16).toUpperCase()+";"}function h(t,e){return function(r){return r.replace(e,(function(e){return t[e]})).replace(l,f)}}var d=c(i);e.escape=function(t){return t.replace(d,f).replace(l,f)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r=[];if(""!==(t=function t(e,r,i){var h=[],g=!1;function y(){var t=r.match(n);if(!t)throw new Error("Expected name, found "+r);var e=t[0];return r=r.substr(e.length),d(e)}function m(t){for(;p(r.charAt(t));)t++;r=r.substr(t)}function b(t){for(var e=0;"\\"===r.charAt(--t);)e++;return 1==(1&e)}m(0);for(;""!==r;){var x=r.charAt(0);if(p(x))g=!0,m(1);else if(x in s)h.push({type:s[x]}),g=!1,m(1);else if(","===x){if(0===h.length)throw new Error("Empty sub-selector");e.push(h),h=[],g=!1,m(1)}else if(g&&(h.length>0&&h.push({type:"descendant"}),g=!1),"*"===x)r=r.substr(1),h.push({type:"universal"});else if(x in u){var w=u[x],M=w[0],k=w[1];r=r.substr(1),h.push({type:"attribute",name:M,action:k,value:y(),ignoreCase:!1})}else if("["===x){if(r=r.substr(1),!(R=r.match(o)))throw new Error("Malformed attribute selector: "+r);r=r.substr(R[0].length);var S=d(R[1]);i&&("lowerCaseAttributeNames"in i?!i.lowerCaseAttributeNames:i.xmlMode)||(S=S.toLowerCase()),h.push({type:"attribute",name:S,action:a[R[2]],value:d(R[4]||R[5]||""),ignoreCase:!!R[6]})}else if(":"===x){if(":"===r.charAt(1)){r=r.substr(2),h.push({type:"pseudo-element",name:y().toLowerCase()});continue}r=r.substr(1);var A=y().toLowerCase(),R=null;if("("===r.charAt(0))if(c.has(A)){var _=r.charAt(1),E=f.has(_);if(r=r.substr(E?2:1),r=t(R=[],r,i),E){if(r.charAt(0)!==_)throw new Error("Unmatched quotes in :"+A);r=r.substr(1)}if(")"!==r.charAt(0))throw new Error("Missing closing parenthesis in :"+A+" ("+r+")");r=r.substr(1)}else{for(var O=1,T=1;T>0&&O<r.length;O++)"("!==r.charAt(O)||b(O)?")"!==r.charAt(O)||b(O)||T--:T++;if(T)throw new Error("Parenthesis not matched");if(R=r.substr(1,O-2),r=r.substr(O),l.has(A))(_=R.charAt(0))===R.slice(-1)&&f.has(_)&&(R=R.slice(1,-1)),R=d(R)}h.push({type:"pseudo",name:A,data:R})}else{if(!n.test(r))return h.length&&"descendant"===h[h.length-1].type&&h.pop(),v(e,h),r;var C=y();i&&("lowerCaseTags"in i?!i.lowerCaseTags:i.xmlMode)||(C=C.toLowerCase()),h.push({type:"tag",name:C})}}return v(e,h),r}(r,""+t,e)))throw new Error("Unmatched selector: "+t);return r};var n=/^[^\\]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,i=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,o=/^\s*((?:\\.|[\w\u00b0-\uFFFF-])+)\s*(?:(\S?)=\s*(?:(['"])([^]*?)\3|(#?(?:\\.|[\w\u00b0-\uFFFF-])*)|)|)\s*(i)?\]/,a={undefined:"exists","":"equals","~":"element","^":"start",$:"end","*":"any","!":"not","|":"hyphen"},s={">":"child","<":"parent","~":"sibling","+":"adjacent"},u={"#":["id","equals"],".":["class","element"]},c=new Set(["has","not","matches"]),l=new Set(["contains","icontains"]),f=new Set(['"',"'"]);function h(t,e,r){var n=parseInt(e,16)-65536;return n!=n||r?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}function d(t){return t.replace(i,h)}function p(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function v(t,e){if(t.length>0&&0===e.length)throw new Error("Empty sub-selector");t.push(e)}},function(t){t.exports=JSON.parse('{"universal":50,"tag":30,"attribute":1,"pseudo":0,"descendant":-1,"child":-1,"parent":-1,"sibling":-1,"adjacent":-1}')},function(t,e,r){var n=r(63).falseFunc,i=/[-[\]{}()*+?.,\\^$|#\s]/g,o={__proto__:null,equals:function(t,e,r){var n=e.name,i=e.value,o=r.adapter;return e.ignoreCase?(i=i.toLowerCase(),function(e){var r=o.getAttributeValue(e,n);return null!=r&&r.toLowerCase()===i&&t(e)}):function(e){return o.getAttributeValue(e,n)===i&&t(e)}},hyphen:function(t,e,r){var n=e.name,i=e.value,o=i.length,a=r.adapter;return e.ignoreCase?(i=i.toLowerCase(),function(e){var r=a.getAttributeValue(e,n);return null!=r&&(r.length===o||"-"===r.charAt(o))&&r.substr(0,o).toLowerCase()===i&&t(e)}):function(e){var r=a.getAttributeValue(e,n);return null!=r&&r.substr(0,o)===i&&(r.length===o||"-"===r.charAt(o))&&t(e)}},element:function(t,e,r){var o=e.name,a=e.value,s=r.adapter;if(/\s/.test(a))return n;var u="(?:^|\\s)"+(a=a.replace(i,"\\$&"))+"(?:$|\\s)",c=e.ignoreCase?"i":"",l=new RegExp(u,c);return function(e){var r=s.getAttributeValue(e,o);return null!=r&&l.test(r)&&t(e)}},exists:function(t,e,r){var n=e.name,i=r.adapter;return function(e){return i.hasAttrib(e,n)&&t(e)}},start:function(t,e,r){var i=e.name,o=e.value,a=o.length,s=r.adapter;return 0===a?n:e.ignoreCase?(o=o.toLowerCase(),function(e){var r=s.getAttributeValue(e,i);return null!=r&&r.substr(0,a).toLowerCase()===o&&t(e)}):function(e){var r=s.getAttributeValue(e,i);return null!=r&&r.substr(0,a)===o&&t(e)}},end:function(t,e,r){var i=e.name,o=e.value,a=-o.length,s=r.adapter;return 0===a?n:e.ignoreCase?(o=o.toLowerCase(),function(e){var r=s.getAttributeValue(e,i);return null!=r&&r.substr(a).toLowerCase()===o&&t(e)}):function(e){var r=s.getAttributeValue(e,i);return null!=r&&r.substr(a)===o&&t(e)}},any:function(t,e,r){var o=e.name,a=e.value,s=r.adapter;if(""===a)return n;if(e.ignoreCase){var u=new RegExp(a.replace(i,"\\$&"),"i");return function(e){var r=s.getAttributeValue(e,o);return null!=r&&u.test(r)&&t(e)}}return function(e){var r=s.getAttributeValue(e,o);return null!=r&&r.indexOf(a)>=0&&t(e)}},not:function(t,e,r){var n=e.name,i=e.value,o=r.adapter;return""===i?function(e){return!!o.getAttributeValue(e,n)&&t(e)}:e.ignoreCase?(i=i.toLowerCase(),function(e){var r=o.getAttributeValue(e,n);return null!=r&&r.toLowerCase()!==i&&t(e)}):function(e){return o.getAttributeValue(e,n)!==i&&t(e)}}};t.exports={compile:function(t,e,r){if(r&&r.strict&&(e.ignoreCase||"not"===e.action))throw new Error("Unsupported attribute selector");return o[e.action](t,e,r)},rules:o}},function(t,e,r){var n=r(265),i=r(63),o=r(145),a=i.trueFunc,s=i.falseFunc,u=o.rules.equals;function c(t,e){var r={name:t,value:e};return function(t,e,n){return u(t,r,n)}}function l(t,e){return function(r){return!!e.getParent(r)&&t(r)}}var f={contains:function(t,e,r){var n=r.adapter;return function(r){return t(r)&&n.getText(r).indexOf(e)>=0}},icontains:function(t,e,r){var n=e.toLowerCase(),i=r.adapter;return function(e){return t(e)&&i.getText(e).toLowerCase().indexOf(n)>=0}},"nth-child":function(t,e,r){var i=n(e),o=r.adapter;return i===s?i:i===a?l(t,o):function(e){for(var r=o.getSiblings(e),n=0,a=0;n<r.length;n++)if(o.isTag(r[n])){if(r[n]===e)break;a++}return i(a)&&t(e)}},"nth-last-child":function(t,e,r){var i=n(e),o=r.adapter;return i===s?i:i===a?l(t,o):function(e){for(var r=o.getSiblings(e),n=0,a=r.length-1;a>=0;a--)if(o.isTag(r[a])){if(r[a]===e)break;n++}return i(n)&&t(e)}},"nth-of-type":function(t,e,r){var i=n(e),o=r.adapter;return i===s?i:i===a?l(t,o):function(e){for(var r=o.getSiblings(e),n=0,a=0;a<r.length;a++)if(o.isTag(r[a])){if(r[a]===e)break;o.getName(r[a])===o.getName(e)&&n++}return i(n)&&t(e)}},"nth-last-of-type":function(t,e,r){var i=n(e),o=r.adapter;return i===s?i:i===a?l(t,o):function(e){for(var r=o.getSiblings(e),n=0,a=r.length-1;a>=0;a--)if(o.isTag(r[a])){if(r[a]===e)break;o.getName(r[a])===o.getName(e)&&n++}return i(n)&&t(e)}},root:function(t,e,r){var n=r.adapter;return function(e){return!n.getParent(e)&&t(e)}},scope:function(t,e,r,n){var i=r.adapter;if(!n||0===n.length)return f.root(t,e,r);return 1===n.length?function(e){return r=n[0],o=e,("function"==typeof i.equals?i.equals(r,o):r===o)&&t(e);var r,o}:function(e){return n.indexOf(e)>=0&&t(e)}},checkbox:c("type","checkbox"),file:c("type","file"),password:c("type","password"),radio:c("type","radio"),reset:c("type","reset"),image:c("type","image"),submit:c("type","submit"),hover:function(t,e,r){var n=r.adapter;return"function"==typeof n.isHovered?function(e){return t(e)&&n.isHovered(e)}:s},visited:function(t,e,r){var n=r.adapter;return"function"==typeof n.isVisited?function(e){return t(e)&&n.isVisited(e)}:s},active:function(t,e,r){var n=r.adapter;return"function"==typeof n.isActive?function(e){return t(e)&&n.isActive(e)}:s}};var h={empty:function(t,e){return!e.getChildren(t).some((function(t){return e.isTag(t)||"text"===t.type}))},"first-child":function(t,e){return function(t,e){for(var r=0;t&&r<t.length;r++)if(e.isTag(t[r]))return t[r]}(e.getSiblings(t),e)===t},"last-child":function(t,e){for(var r=e.getSiblings(t),n=r.length-1;n>=0;n--){if(r[n]===t)return!0;if(e.isTag(r[n]))break}return!1},"first-of-type":function(t,e){for(var r=e.getSiblings(t),n=0;n<r.length;n++)if(e.isTag(r[n])){if(r[n]===t)return!0;if(e.getName(r[n])===e.getName(t))break}return!1},"last-of-type":function(t,e){for(var r=e.getSiblings(t),n=r.length-1;n>=0;n--)if(e.isTag(r[n])){if(r[n]===t)return!0;if(e.getName(r[n])===e.getName(t))break}return!1},"only-of-type":function(t,e){for(var r=e.getSiblings(t),n=0,i=r.length;n<i;n++)if(e.isTag(r[n])){if(r[n]===t)continue;if(e.getName(r[n])===e.getName(t))return!1}return!0},"only-child":function(t,e){for(var r=e.getSiblings(t),n=0;n<r.length;n++)if(e.isTag(r[n])&&r[n]!==t)return!1;return!0},link:function(t,e){return e.hasAttrib(t,"href")},selected:function(t,e){if(e.hasAttrib(t,"selected"))return!0;if("option"!==e.getName(t))return!1;var r=e.getParent(t);if(!r||"select"!==e.getName(r)||e.hasAttrib(r,"multiple"))return!1;for(var n=e.getChildren(r),i=!1,o=0;o<n.length;o++)if(e.isTag(n[o]))if(n[o]===t)i=!0;else{if(!i)return!1;if(e.hasAttrib(n[o],"selected"))return!1}return i},disabled:function(t,e){return e.hasAttrib(t,"disabled")},enabled:function(t,e){return!e.hasAttrib(t,"disabled")},checked:function(t,e){return e.hasAttrib(t,"checked")||h.selected(t,e)},required:function(t,e){return e.hasAttrib(t,"required")},optional:function(t,e){return!e.hasAttrib(t,"required")},parent:function(t,e){return!h.empty(t,e)},header:d(["h1","h2","h3","h4","h5","h6"]),button:function(t,e){var r=e.getName(t);return"button"===r||"input"===r&&"button"===e.getAttributeValue(t,"type")},input:d(["input","textarea","select","button"]),text:function(t,e){var r;return"input"===e.getName(t)&&(!(r=e.getAttributeValue(t,"type"))||"text"===r.toLowerCase())}};function d(t){if("undefined"!=typeof Set){var e=new Set(t);return function(t,r){return e.has(r.getName(t))}}return function(e,r){return t.indexOf(r.getName(e))>=0}}var p=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;t.exports={compile:function(t,e,r,n){var i=e.name,o=e.data,u=r.adapter;if(r&&r.strict&&!p.test(i))throw new Error(":"+i+" isn't part of CSS3");if("function"==typeof f[i])return f[i](t,o,r,n);if("function"==typeof h[i]){var c=h[i];return function(t,e,r){if(null===r){if(t.length>2&&"scope"!==e)throw new Error("pseudo-selector :"+e+" requires an argument")}else if(2===t.length)throw new Error("pseudo-selector :"+e+" doesn't have any arguments")}(c,i,o),c===s?c:t===a?function(t){return c(t,u,o)}:function(e){return c(e,u,o)&&t(e)}}throw new Error("unmatched pseudo-class :"+i)},filters:f,pseudos:h}},function(t,e,r){"use strict";r.d(e,"a",(function(){return O}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(9),u=r.n(s),c=r(8),l=r.n(c),f=r(7),h=r.n(f),d=r(1),p=r.n(d),v=r(10),g=r.n(v),y=r(30),m=r(12),b=r(33),x=r(4);function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var M=Symbol.for("spritejs_setAttributeDefault"),k=Symbol.for("spritejs_setAttribute"),S=Symbol.for("spritejs_getAttribute"),A=Symbol.for("spritejs_declareAlias");function R(t){var e=t.width,r=t.height;return"M".concat(0," ",0,"L",e," ",0,"L").concat(e," ").concat(r,"L",0," ").concat(r,"Z")}var _=function(t){l()(r,t);var e=w(r);function r(t){var n;return i()(this,r),(n=e.call(this,t))[M]({width:0,height:0}),n[A]("size"),n}return a()(r,[{key:"d",get:function(){return this[S]("d")},set:function(t){}},{key:"width",get:function(){return this[S]("width")},set:function(t){if(t=Object(x.d)(t),this[k]("width",t)){var e=R(this);this[k]("d",e)}}},{key:"height",get:function(){return this[S]("height")},set:function(t){if(t=Object(x.d)(t),this[k]("height",t)){var e=R(this);this[k]("d",e)}}},{key:"size",get:function(){return[this.width,this.height]},set:function(t){t=Object(x.c)(t),Array.isArray(t)||(t=[t,t]),this.width=t[0],this.height=t[1]}}]),r}(b.a);function E(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var O=function(t){l()(r,t);var e=E(r);function r(){return i()(this,r),e.apply(this,arguments)}return a()(r,[{key:"isVisible",get:function(){var t=this.attributes,e=t.width,n=t.height;return e>0&&n>0&&u()(p()(r.prototype),"isVisible",this)}}]),r}(y.a);g()(O,"Attr",_),m.a.registerNode(O,"rect")},function(t,e,r){"use strict";r.d(e,"a",(function(){return L}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(9),u=r.n(s),c=r(8),l=r.n(c),f=r(7),h=r.n(f),d=r(1),p=r.n(d),v=r(10),g=r.n(v),y=r(31),m=r(12),b=r(17),x=r.n(b),w=r(2),M=r.n(w),k=r(34),S=r(4);function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var R=Symbol.for("spritejs_setAttributeDefault"),_=Symbol.for("spritejs_setAttribute"),E=Symbol.for("spritejs_getAttribute");function O(t){var e=M()(t.sides,2),r=e[0],n=e[1],i=t.angle%360;return i<0&&(i+=360),i=Math.PI*i/180,[0,0,r,0,n*Math.cos(i),n*Math.sin(i)]}var T=function(t){l()(r,t);var e=A(r);function r(t){var n;return i()(this,r),(n=e.call(this,t))[R]({sides:[0,0],angle:60,closeType:"normal"}),n}return a()(r,[{key:"points",get:function(){return u()(p()(r.prototype),"points",this)},set:function(t){}},{key:"sides",get:function(){return this[E]("sides")},set:function(t){if(null==(t=Object(S.c)(t,!0))||Array.isArray(t)||(t=[t,t]),this[_]("sides",t)){var e=O(this);x()(p()(r.prototype),"points",e,this,!0)}}},{key:"angle",get:function(){return this[E]("angle")},set:function(t){if(t=Object(S.d)(t),this[_]("angle",t)){var e=O(this);x()(p()(r.prototype),"points",e,this,!0)}}}]),r}(k.a);function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var L=function(t){l()(r,t);var e=C(r);function r(){return i()(this,r),e.apply(this,arguments)}return a()(r,[{key:"isVisible",get:function(){var t=this.attributes.sides;return t[0]>0&&t[1]>0&&u()(p()(r.prototype),"isVisible",this)}}]),r}(y.a);g()(L,"Attr",T),m.a.registerNode(L,"triangle")},function(t,e,r){"use strict";r.d(e,"a",(function(){return L}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(9),u=r.n(s),c=r(8),l=r.n(c),f=r(7),h=r.n(f),d=r(1),p=r.n(d),v=r(10),g=r.n(v),y=r(31),m=r(12),b=r(17),x=r.n(b),w=r(2),M=r.n(w),k=r(34),S=r(4);function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var R=Symbol.for("spritejs_setAttributeDefault"),_=Symbol.for("spritejs_setAttribute"),E=Symbol.for("spritejs_getAttribute");function O(t){var e=M()(t.sides,2),r=e[0],n=e[1],i=t.angle%360;i<0&&(i+=360),i=Math.PI*i/180;var o=n*Math.cos(i),a=n*Math.sin(i);return[0,0,r,0,o+r,a,o,a]}var T=function(t){l()(r,t);var e=A(r);function r(t){var n;return i()(this,r),(n=e.call(this,t))[R]({sides:[0,0],angle:90,closeType:"normal"}),n}return a()(r,[{key:"points",get:function(){return u()(p()(r.prototype),"points",this)},set:function(t){}},{key:"sides",get:function(){return this[E]("sides")},set:function(t){if(null==(t=Object(S.c)(t,!0))||Array.isArray(t)||(t=[t,t]),this[_]("sides",t)){var e=O(this);x()(p()(r.prototype),"points",e,this,!0)}}},{key:"angle",get:function(){return this[E]("angle")},set:function(t){if(t=Object(S.d)(t),this[_]("angle",t)){var e=O(this);x()(p()(r.prototype),"points",e,this,!0)}}}]),r}(k.a);function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var L=function(t){l()(r,t);var e=C(r);function r(){return i()(this,r),e.apply(this,arguments)}return a()(r,[{key:"isVisible",get:function(){var t=this.attributes.sides;return t[0]>0&&t[1]>0&&u()(p()(r.prototype),"isVisible",this)}}]),r}(y.a);g()(L,"Attr",T),m.a.registerNode(L,"parallel")},function(t,e,r){"use strict";r.d(e,"a",(function(){return T}));var n=r(5),i=r.n(n),o=r(8),a=r.n(o),s=r(7),u=r.n(s),c=r(1),l=r.n(c),f=r(10),h=r.n(f),d=r(31),p=r(12),v=r(6),g=r.n(v),y=r(17),m=r.n(y),b=r(9),x=r.n(b),w=r(34),M=r(4);function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l()(t);if(e){var i=l()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var S=Symbol.for("spritejs_setAttributeDefault"),A=Symbol.for("spritejs_setAttribute"),R=Symbol.for("spritejs_getAttribute");function _(t){var e=t.edges,r=t.radius,n=t.offsetAngle,i=Math.PI*n/180-.5*Math.PI;if(e<3||r<=0)return[];for(var o=[],a=0;a<e;a++){var s=2*a*Math.PI/e+i,u=r*Math.cos(s),c=r*Math.sin(s);o.push(u,c)}return o}var E=function(t){a()(r,t);var e=k(r);function r(t){var n;return i()(this,r),(n=e.call(this,t))[S]({edges:3,radius:0,offsetAngle:0,closeType:"normal"}),n}return g()(r,[{key:"points",get:function(){return x()(l()(r.prototype),"points",this)},set:function(t){}},{key:"edges",get:function(){return this[R]("edges")},set:function(t){if(t=Object(M.d)(t),this[A]("edges",t)){var e=_(this);m()(l()(r.prototype),"points",e,this,!0)}}},{key:"radius",get:function(){return this[R]("radius")},set:function(t){if(t=Object(M.d)(t),this[A]("radius",t)){var e=_(this);m()(l()(r.prototype),"points",e,this,!0)}}},{key:"offsetAngle",get:function(){return this[R]("offsetAngle")},set:function(t){if(t=Object(M.d)(t),this[A]("offsetAngle",t)){var e=_(this);m()(l()(r.prototype),"points",e,this,!0)}}}]),r}(w.a);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l()(t);if(e){var i=l()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var T=function(t){a()(r,t);var e=O(r);function r(){return i()(this,r),e.apply(this,arguments)}return r}(d.a);h()(T,"Attr",E),p.a.registerNode(T,"regular")},function(t,e,r){"use strict";r.d(e,"a",(function(){return T}));var n=r(5),i=r.n(n),o=r(8),a=r.n(o),s=r(7),u=r.n(s),c=r(1),l=r.n(c),f=r(10),h=r.n(f),d=r(31),p=r(12),v=r(6),g=r.n(v),y=r(17),m=r.n(y),b=r(9),x=r.n(b),w=r(34),M=r(4);function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l()(t);if(e){var i=l()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var S=Symbol.for("spritejs_setAttributeDefault"),A=Symbol.for("spritejs_setAttribute"),R=Symbol.for("spritejs_getAttribute");function _(t){var e=t.angles,r=t.innerRadius,n=t.outerRadius,i=t.offsetAngle,o=Math.PI*i/180-.5*Math.PI;if(e<3||r<=0||n<=0)return[];for(var a=[],s=0;s<2*e;s++){var u=s*Math.PI/e+o,c=s%2?r:n,l=c*Math.cos(u),f=c*Math.sin(u);a.push(l,f)}return a}var E=function(t){a()(r,t);var e=k(r);function r(t){var n;return i()(this,r),(n=e.call(this,t))[S]({angles:5,innerRadius:0,outerRadius:0,offsetAngle:0,closeType:"normal"}),n}return g()(r,[{key:"points",get:function(){return x()(l()(r.prototype),"points",this)},set:function(t){}},{key:"angles",get:function(){return this[R]("angles")},set:function(t){if(t=Object(M.d)(t),this[A]("angles",t)){var e=_(this);m()(l()(r.prototype),"points",e,this,!0)}}},{key:"innerRadius",get:function(){return this[R]("innerRadius")},set:function(t){if(t=Object(M.d)(t),this[A]("innerRadius",t)){var e=_(this);m()(l()(r.prototype),"points",e,this,!0)}}},{key:"outerRadius",get:function(){return this[R]("outerRadius")},set:function(t){if(t=Object(M.d)(t),this[A]("outerRadius",t)){var e=_(this);m()(l()(r.prototype),"points",e,this,!0)}}},{key:"radius",get:function(){return[this.innerRadius,this.outerRadius]},set:function(t){t=Object(M.c)(t,!0),Array.isArray(t)||(t=[t,t]),this.innerRadius=t[0],this.outerRadius=t[1]}},{key:"offsetAngle",get:function(){return this[R]("offsetAngle")},set:function(t){if(t=Object(M.d)(t),this[A]("offsetAngle",t)){var e=_(this);m()(l()(r.prototype),"points",e,this,!0)}}}]),r}(w.a);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l()(t);if(e){var i=l()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var T=function(t){a()(r,t);var e=O(r);function r(){return i()(this,r),e.apply(this,arguments)}return r}(d.a);h()(T,"Attr",E),p.a.registerNode(T,"star")},function(t,e,r){"use strict";r.d(e,"a",(function(){return R}));var n=r(5),i=r.n(n),o=r(8),a=r.n(o),s=r(7),u=r.n(s),c=r(1),l=r.n(c),f=r(10),h=r.n(f),d=r(72),p=r(12),v=r(6),g=r.n(v),y=r(17),m=r.n(y),b=r(9),x=r.n(b),w=r(76),M=r(4);function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l()(t);if(e){var i=l()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var S=function(t){a()(r,t);var e=k(r);function r(){return i()(this,r),e.apply(this,arguments)}return g()(r,[{key:"radius",get:function(){return x()(l()(r.prototype),"radiusX",this)},set:function(t){t=Object(M.d)(t),m()(l()(r.prototype),"radiusX",t,this,!0),m()(l()(r.prototype),"radiusY",t,this,!0)}}]),r}(w.a);function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l()(t);if(e){var i=l()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var R=function(t){a()(r,t);var e=A(r);function r(){return i()(this,r),e.apply(this,arguments)}return r}(d.a);h()(R,"Attr",S),p.a.registerNode(R,"arc")},function(t,e,r){"use strict";r.d(e,"a",(function(){return T}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),s=r(9),u=r.n(s),c=r(8),l=r.n(c),f=r(7),h=r.n(f),d=r(1),p=r.n(d),v=r(10),g=r.n(v),y=r(30),m=r(12),b=r(13),x=r(33),w=r(4);function M(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var k=Symbol.for("spritejs_setAttributeDefault"),S=Symbol.for("spritejs_setAttribute"),A=Symbol.for("spritejs_getAttribute"),R=Symbol.for("spritejs_declareAlias");function _(t){var e=t.innerRadius,r=t.outerRadius,n=t.startAngle,i=t.endAngle,o=new b.b;if(n=Math.PI*n/180,i=Math.PI*i/180,e>r){var a=[r,e];e=a[0],r=a[1]}if(e<=0&&o.moveTo(0,0),o.arc(0,0,r,n,i,!1),e>0){var s=2*Math.PI;i<n&&(i=n+s+(i-n)%s),i-n>=s&&(i=n+s-1e-6),o.arc(0,0,e,i,n,!0)}return o.closePath(),o.path.reduce((function(t,e){return t+e.join(" ")}),"")}var E=function(t){l()(r,t);var e=M(r);function r(t){var n;return i()(this,r),(n=e.call(this,t))[k]({innerRadius:0,outerRadius:0,startAngle:0,endAngle:360}),n[R]("radius","angle"),n}return a()(r,[{key:"d",get:function(){return this[A]("d")},set:function(t){}},{key:"innerRadius",get:function(){return this[A]("innerRadius")},set:function(t){if(t=Object(w.d)(t),this[S]("innerRadius",t)){var e=_(this);this[S]("d",e)}}},{key:"outerRadius",get:function(){return this[A]("outerRadius")},set:function(t){if(t=Object(w.d)(t),this[S]("outerRadius",t)){var e=_(this);this[S]("d",e)}}},{key:"radius",get:function(){return[this.innerRadius,this.outerRadius]},set:function(t){t=Object(w.c)(t,!0),Array.isArray(t)||(t=[t,t]),this.innerRadius=t[0],this.outerRadius=t[1]}},{key:"startAngle",get:function(){return this[A]("startAngle")},set:function(t){if(t=Object(w.d)(t),this[S]("startAngle",t)){var e=_(this);this[S]("d",e)}}},{key:"endAngle",get:function(){return this[A]("endAngle")},set:function(t){if(t=Object(w.d)(t),this[S]("endAngle",t)){var e=_(this);this[S]("d",e)}}},{key:"angle",get:function(){return[this.startAngle,this.endAngle]},set:function(t){t=Object(w.c)(t),Array.isArray(t)||(t=[t,t]),this.startAngle=t[0],this.endAngle=t[1]}}]),r}(x.a);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p()(t);if(e){var i=p()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var T=function(t){l()(r,t);var e=O(r);function r(){return i()(this,r),e.apply(this,arguments)}return a()(r,[{key:"isVisible",get:function(){var t=this.attributes,e=t.innerRadius,n=t.outerRadius,i=t.startAngle,o=t.endAngle;return(e>0||n>0)&&i!==o&&u()(p()(r.prototype),"isVisible",this)}}]),r}(y.a);g()(T,"Attr",E),m.a.registerNode(T,"ring")},function(t,e,r){"use strict";r.d(e,"a",(function(){return N}));var n=r(2),i=r.n(n),o=r(5),a=r.n(o),s=r(6),u=r.n(s),c=r(9),l=r.n(c),f=r(8),h=r.n(f),d=r(7),p=r.n(d),v=r(1),g=r.n(v),y=r(10),m=r.n(y),b=r(13),x=r(21),w=r(41),M=r(4),k=r(14),S=r(42);function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g()(t);if(e){var i=g()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var R=Symbol.for("spritejs_setAttributeDefault"),_=Symbol.for("spritejs_setAttribute"),E=Symbol.for("spritejs_getAttribute"),O=Symbol.for("spritejs_declareAlias"),T=function(t){h()(r,t);var e=A(r);function r(t){var n;return a()(this,r),(n=e.call(this,t))[R]({text:"",fontSize:16,fontFamily:"Helvetica,Arial,sans-serif",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",fontStretch:"normal",lineHeight:"",textAlign:"left",strokeColor:void 0,strokeWidth:1,fillColor:void 0,verticalAlign:"middle"}),n[O]("font"),n}return u()(r,[{key:"text",get:function(){return this[E]("text")||" "},set:function(t){this[_]("text",t)}},{key:"fontSize",get:function(){return this[E]("fontSize")},set:function(t){this[_]("fontSize",Object(M.d)(t))}},{key:"fontFamily",get:function(){return this[E]("fontFamily")},set:function(t){this[_]("fontFamily",t)}},{key:"fontStyle",get:function(){return this[E]("fontStyle")},set:function(t){this[_]("fontStyle",t)}},{key:"fontVariant",get:function(){return this[E]("fontVariant")},set:function(t){this[_]("fontVariant",t)}},{key:"fontWeight",get:function(){return this[E]("fontWeight")},set:function(t){this[_]("fontWeight",t)}},{key:"fontStretch",get:function(){return this[E]("fontStretch")},set:function(t){this[_]("fontStretch",t)}},{key:"lineHeight",get:function(){return this[E]("lineHeight")||this.fontSize},set:function(t){this[_]("lineHeight",Object(M.d)(t))}},{key:"textAlign",get:function(){return this[E]("textAlign")},set:function(t){this[_]("textAlign",t)}},{key:"strokeColor",get:function(){return this[E]("strokeColor")},set:function(t){this[_]("strokeColor",Object(k.c)(t))}},{key:"strokeWidth",get:function(){return this[E]("strokeWidth")},set:function(t){this[_]("strokeWidth",Object(M.d)(t))}},{key:"verticalAlign",get:function(){return this[E]("verticalAlign")},set:function(t){this[_]("verticalAlign",t)}},{key:"fillColor",get:function(){return this[E]("fillColor")},set:function(t){this[_]("fillColor",Object(k.c)(t))}},{key:"font",get:function(){var t=this.fontStyle,e=this.fontVariant,r=this.fontWeight,n=this.fontStretch,i=this.fontSize,o=this.lineHeight,a=this.fontFamily;return"".concat(t," ").concat(e," ").concat(r," ").concat(n," ").concat(i,"px/").concat(o,"px ").concat(a)},set:function(t){if(null==t)this.fontStyle=null,this.fontVariant=null,this.fontWeight=null,this.fontStretch=null,this.fontSize=null,this.lineHeight=null,this.fontFamily=null;else{var e=Object(b.f)(t);this.fontStyle=e.style,this.fontVariant=e.variant,this.fontWeight=e.weight,this.fontStretch=e.stretch,this.fontSize=Object(M.d)("".concat(e.size).concat(e.unit)),e.lineHeight&&(this.lineHeight=e.pxLineHeight),this.fontFamily=e.family}}}]),r}(S.a),C=r(12);function L(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g()(t);if(e){var i=g()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var D=Symbol("textImage"),P=Symbol("textImageTask"),j=Symbol("textureContext"),I=Symbol("updateTextureRect"),q=Symbol("textCanvas"),N=function(t){h()(r,t);var e=L(r);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a()(this,r),"string"==typeof t&&(t={text:t}),e.call(this,t)}return u()(r,[{key:"draw",value:function(t){l()(g()(r.prototype),"draw",this).call(this,t);var e=this.mesh;if(e){var n=this[D];if(n){var o=e.texture;if(!o||this[j]&&this[j]!==this.renderer||n.needsUpdate?(n.needsUpdate=!1,Object(x.c)(n.image,this.renderer),o=Object(x.b)(n.image,this.renderer),this[I]=!0):o=e.uniforms.u_texSampler,this[I]){var a=n.rect.slice(2),s=i()(a,2),u=s[0],c=s[1],f=i()(this.contentSize,2),h=f[0],d=(f[1],this.attributes.textAlign),p=this.attributes.verticalAlign,v=0;"center"===d?v=(h-u)/2:"right"!==d&&"end"!==d||(v=h-u);var y=this.attributes.fontSize,m=this.attributes.lineHeight,b=0;"top"===p?b=(y-m)/2:"bottom"===p&&(b=(m-y)/2);var w=this.attributes,M=w.paddingLeft,k=w.paddingTop,S=this.attributes.borderWidth;v+=M+S,b+=k+S;var A=this.attributes,R=A.anchorX,_=A.anchorY;v-=this.clientSize[0]*R,b-=this.clientSize[1]*_,e.setTexture(o,{rect:[v,b,u,c]}),this[I]=!1,this[j]=this.renderer}}}return t}},{key:"onPropertyChange",value:function(t,e,n){"text"===t||"fontSize"===t||"fontFamily"===t||"fontStyle"===t||"fontVariant"===t||"fontWeight"===t||"fontStretch"===t||"lineHeight"===t||"strokeColor"===t||"fillColor"===t||"strokeWidth"===t?this.updateText():("textAlign"!==t&&"verticalAlign"!==t||(this[I]=!0),l()(g()(r.prototype),"onPropertyChange",this).call(this,t,e,n))}},{key:"updateContours",value:function(){l()(g()(r.prototype),"updateContours",this).call(this),this[I]=!0}},{key:"updateText",value:function(){var t=this;this[P]||(this[P]=Promise.resolve().then((function(){t[P]=null;var e=t.attributes,r=e.text,n=e.font,i=e.fillColor,o=e.strokeColor,a=e.strokeWidth,s=t.layer?t.layer.displayRatio:1;return t[q]=t[q]||b.a.createCanvas(1,1),t[D]=b.a.createText(r,{font:n,fillColor:i,strokeColor:o,strokeWidth:a,parseFont:b.f,ratio:s,textCanvas:t[q]}),t[D].needsUpdate=!0,t.updateContours(),t.forceUpdate(),t[D]})))}},{key:"contentSize",get:function(){var t=l()(g()(r.prototype),"contentSize",this),e=i()(t,2),n=e[0],o=e[1],a=this.attributes,s=a.width,u=a.height;if(null==s||null==u){var c=this[D];c&&(null==s&&(n=c.rect[2]),null==u&&(o=c.rect[3]))}return[n,o]}},{key:"text",get:function(){return this.attributes.text},set:function(t){this.attributes.text=t}},{key:"textContent",get:function(){return this.attributes.text},set:function(t){this.attributes.text=t}},{key:"textImage",get:function(){return this[D]||{}}},{key:"textImageReady",get:function(){return this[P]||Promise.resolve()}}]),r}(w.a);m()(N,"Attr",T),C.a.registerNode(N,"label")},function(t,e,r){"use strict";r.d(e,"a",(function(){return F}));var n=r(2),i=r.n(n),o=r(52),a=r.n(o),s=r(5),u=r.n(s),c=r(6),l=r.n(c),f=r(36),h=r.n(f),d=r(9),p=r.n(d),v=r(8),g=r.n(v),y=r(7),m=r.n(y),b=r(1),x=r.n(b),w=r(10),M=r.n(w),k=r(71),S=r(75);function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=x()(t);if(e){var i=x()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var R=Symbol.for("spritejs_getAttribute"),_=Symbol.for("spritejs_setAttribute"),E=Symbol.for("spritejs_setAttributeDefault"),O=function(t){g()(r,t);var e=A(r);function r(t){var n;return u()(this,r),(n=e.call(this,t))[E]({passEvents:!1,flexible:!1}),n}return l()(r,[{key:"texture",get:function(){return this[R]("texture")},set:function(t){}},{key:"passEvents",get:function(){return this[R]("passEvents")},set:function(t){return this[_]("passEvents",t)}},{key:"flexible",get:function(){return this[R]("flexible")},set:function(t){return this[_]("flexible",t)}}]),r}(S.a),T=r(12),C=r(24),L=r(4);function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=x()(t);if(e){var i=x()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var P="http://www.w3.org/2000/svg",j=Symbol.for("spritejs_setAttribute"),I=Symbol("root"),q=Symbol("task");function N(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t[I];if(r&&r.children[0]){var n=t.svg,i=t.layer?t.layer.displayRatio:1;if(!n.hasAttribute("data-original-width")){var o=n.getAttribute("width");o=o?Object(L.b)(o):300;var a=n.getAttribute("height");a=a?Object(L.b)(a):150,n.hasAttribute("viewBox")||n.setAttribute("viewBox","0 0 ".concat(Math.round(o)," ").concat(Math.round(a))),n.setAttribute("data-original-width",o),n.setAttribute("data-original-height",a)}var s=t.attributes.width||Number(n.getAttribute("data-original-width")),u=t.attributes.height||Number(n.getAttribute("data-original-height"));if(s*=i,u*=i,e&&t.attributes.flexible){var c=t.attributes.scale[0];if(s*=c,u*=c,n.setAttribute("width",s),n.setAttribute("height",u),s&&u&&t.textureImage){var l=t.textureImage.width,f=t.textureImage.height,h=t.clientSize;t.attributes.textureRect=[0,0,Math.round(h[0]*l/s),Math.round(h[1]*f/u)]}}else t[q]||(n.setAttribute("width",s),n.setAttribute("height",u),t[q]=Promise.resolve().then((function(){delete t[q];var e=r.innerHTML,n=new Blob([e],{type:"image/svg+xml"}),i=URL.createObjectURL(n),o=new Image;o.onload=function(){o.width&&o.height?(t.attributes[j]("texture",o),t.attributes.flexible&&(t.attributes.textureRect=null)):t.attributes[j]("texture",null)},o.src=i})))}}var F=function(t){g()(r,t);var e=D(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,r),"string"==typeof n&&(n={svgText:n});var i=n,o=i.svgText,s=a()(i,["svgText"]);if((t=e.call(this,s))[I]=document.createElement("div"),o){t[I].innerHTML=o;var c=t[I].children[0];c?c.setAttribute("xmlns",P):(fetch(o).then((function(t){return t.text()})).then((function(e){t[I].innerHTML=e,t.observer&&!t.attributes.flexible||N(h()(t))})),o=null)}if(!o){var l=document.createElementNS(P,"svg");l.setAttribute("xmlns",P),t[I].appendChild(l)}if("function"==typeof MutationObserver){var f=new MutationObserver((function(e){N(h()(t),!1)}));f.observe(t[I],{attributes:!0,subtree:!0,characterData:!0,childList:!0}),t.observer=f}return t}return l()(r,[{key:"setResolution",value:function(t){var e=t.width,n=t.height;p()(x()(r.prototype),"setResolution",this).call(this,{width:e,height:n}),N(this)}},{key:"dispatchPointerEvent",value:function(t){var e=p()(x()(r.prototype),"dispatchPointerEvent",this).call(this,t);if(e&&this.attributes.passEvents&&"function"==typeof MouseEvent){var n=t.x,o=t.y,a=this.getOffsetPosition(n,o),s=i()(a,2),u=s[0],c=s[1],l=t.originalEvent,f=this.attributes.anchor,h=this.clientSize;u=(u+f[0]*h[0])/2,c=(c+f[1]*h[1])/2;var d=t.type;if(d===l.type){var v=null;if(l instanceof MouseEvent)v=new MouseEvent(d,{screenX:u,screenY:c,clientX:u,clientY:c,bubbles:l.bubbles,button:l.button,buttons:l.buttons,cancelBubble:l.cancelBubble,cancelable:l.cancelable,currentTarget:l.currentTarget,fromElement:l.fromElement,relatedTarget:l.relatedTarget,returnValue:l.returnValue,srcElement:l.srcElement,target:l.target,toElement:l.toElement,which:l.witch});else if(l instanceof TouchEvent){for(var g=null,y=l.changedTouches||[l],m=0;m<y.length;m++){var b=y[m];if(t.identifier===b.identifier){g=b;break}}if(g){var w=new Touch({identifier:g.identifier,target:g.target,clientX:u,clientY:c,screenX:u,screenY:c,pageX:u,pageY:c,radiusX:g.radiusX,radiusY:g.radiusY,rotationAngle:g.rotationAngle,force:g.force});v=new TouchEvent(d,{cancelable:l.cancelable,bubbles:l.bubbles,composed:l.composed,touches:[w],targetTouches:[w],changedTouches:[w]})}}else v=l;v&&this.svg.dispatchEvent(v)}}return e}},{key:"getElementById",value:function(t){return Object(C.a)("#".concat(t),this)}},{key:"getElementsByClassName",value:function(t){return Object(C.b)(".".concat(t),this)}},{key:"getElementsByName",value:function(t){return Object(C.b)('[name="'.concat(t,'"]'),this)}},{key:"getElementsByTagName",value:function(t){return Object(C.b)(t,this)}},{key:"querySelector",value:function(t){return Object(C.a)(t,this)}},{key:"querySelectorAll",value:function(t){return Object(C.b)(t,this)}},{key:"onPropertyChange",value:function(t,e,n){p()(x()(r.prototype),"onPropertyChange",this).call(this,t,e,n),"flexible"===t&&N(this),!this.attributes.flexible||"width"!==t&&"height"!==t&&"scale"!==t&&"transform"!==t||N(this)}},{key:"children",get:function(){return[this.svg]}},{key:"childNodes",get:function(){return[this.svg]}},{key:"svg",get:function(){return this[I]?this[I].children[0]:null}}]),r}(k.a);M()(F,"Attr",O),T.a.registerNode(F,"spritesvg")},function(t,e,r){var n=r(108),i=r(111),o=r(79),a=r(110);t.exports=function(t){return n(t)||i(t)||o(t)||a()}},function(t,e){function r(){return t.exports=r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},r.apply(this,arguments)}t.exports=r},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}},function(t,e,r){var n=r(109);t.exports=function(t){if(Array.isArray(t))return n(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof f?e:f,o=Object.create(i.prototype),a=new k(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return A()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l={};function f(){}function h(){}function d(){}var p={};p[i]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==e&&r.call(g,i)&&(p=g);var y=d.prototype=f.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var n;this._invoke=function(i,o){function a(){return new e((function(n,a){!function n(i,o,a,s){var u=c(t[i],t,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}(i,o,n,a)}))}return n=n?n.then(a,a):a()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=c(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=y.constructor=d,d.constructor=h,h.displayName=s(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},m(b.prototype),b.prototype[o]=function(){return this},t.AsyncIterator=b,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new b(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(y),s(y,a,"Generator"),y[i]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";(function(e){var n=r(163),i=r(164),o=r(165);t.exports=function(t){var r,s,u=[],c=1;if("string"==typeof t)if(n[t])u=n[t].slice(),s="rgb";else if("transparent"===t)c=0,s="rgb",u=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var l=(d=t.slice(1)).length;c=1,l<=4?(u=[parseInt(d[0]+d[0],16),parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16)],4===l&&(c=parseInt(d[3]+d[3],16)/255)):(u=[parseInt(d[0]+d[1],16),parseInt(d[2]+d[3],16),parseInt(d[4]+d[5],16)],8===l&&(c=parseInt(d[6]+d[7],16)/255)),u[0]||(u[0]=0),u[1]||(u[1]=0),u[2]||(u[2]=0),s="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=r[1],h="rgb"===f,d=f.replace(/a$/,"");s=d;l="cmyk"===d?4:"gray"===d?1:3;u=r[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===l?parseFloat(t)/100:"rgb"===d?255*parseFloat(t)/100:parseFloat(t);if("h"===d[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==a[t])return a[t]}return parseFloat(t)})),f===d&&u.push(1),c=h||void 0===u[l]?1:u[l],u=u.slice(0,l)}else t.length>10&&/[0-9](?:\s|\/)/.test(t)&&(u=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(t))if(i(t)){var p=o(t.r,t.red,t.R,null);null!==p?(s="rgb",u=[p,o(t.g,t.green,t.G),o(t.b,t.blue,t.B)]):(s="hsl",u=[o(t.h,t.hue,t.H),o(t.s,t.saturation,t.S),o(t.l,t.lightness,t.L,t.b,t.brightness)]),c=o(t.a,t.alpha,t.opacity,1),null!=t.opacity&&(c/=100)}else(Array.isArray(t)||e.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(t))&&(u=[t[0],t[1],t[2]],s="rgb",c=4===t.length?t[3]:1);else s="rgb",u=[t>>>16,(65280&t)>>>8,255&t];return{space:s,values:u,alpha:c}};var a={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,r(78))},function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,r){"use strict";var n=Object.prototype.toString;t.exports=function(t){var e;return"[object Object]"===n.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},function(t,e){t.exports=function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},function(t,e,r){"use strict";var n=r(167);t.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,r,n,i,o,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return[o=255*u,o,o];e=2*u-(r=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0?n++:n>1&&n--,o=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[c]=255*o;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(n,i,o),s=Math.max(n,i,o),u=s-a;return s===a?e=0:n===s?e=(i-o)/u:i===s?e=2+(o-n)/u:o===s&&(e=4+(n-i)/u),(e=Math.min(60*e,360))<0&&(e+=360),r=(a+s)/2,[e,100*(s===a?0:r<=.5?u/(s+a):u/(2-s-a)),100*r]}},function(t,e,r){"use strict";t.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},function(t,e){t.exports=function(t,e,r){return e<r?t<e?e:t>r?r:t:t<r?r:t>e?e:t}},function(t,e,r){t.exports=r(170)()},function(t,e){function r(t){return[t[0],t[1]]}function n(t,e){return[t,e]}t.exports=function(t){var e="number"==typeof(t=t||{}).recursion?t.recursion:8,i="number"==typeof t.epsilon?t.epsilon:1.1920929e-7,o="number"==typeof t.pathEpsilon?t.pathEpsilon:1,a="number"==typeof t.angleEpsilon?t.angleEpsilon:.01,s=t.angleTolerance||0,u=t.cuspLimit||0;return function(t,c,l,f,h,d){d||(d=[]);var p=o/(h="number"==typeof h?h:1);return function(t,o,c,l,f,h){f.push(r(t));var d=t[0],p=t[1],v=o[0],g=o[1],y=c[0],m=c[1],b=l[0],x=l[1];(function t(r,o,c,l,f,h,d,p,v,g,y){if(y>e)return;var m=Math.PI,b=(r+c)/2,x=(o+l)/2,w=(c+f)/2,M=(l+h)/2,k=(f+d)/2,S=(h+p)/2,A=(b+w)/2,R=(x+M)/2,_=(w+k)/2,E=(M+S)/2,O=(A+_)/2,T=(R+E)/2;if(y>0){var C,L,D=d-r,P=p-o,j=Math.abs((c-d)*P-(l-p)*D),I=Math.abs((f-d)*P-(h-p)*D);if(j>i&&I>i){if((j+I)*(j+I)<=g*(D*D+P*P)){if(s<a)return void v.push(n(O,T));var q=Math.atan2(h-l,f-c);if(C=Math.abs(q-Math.atan2(l-o,c-r)),L=Math.abs(Math.atan2(p-h,d-f)-q),C>=m&&(C=2*m-C),L>=m&&(L=2*m-L),C+L<s)return void v.push(n(O,T));if(0!==u){if(C>u)return void v.push(n(c,l));if(L>u)return void v.push(n(f,h))}}}else if(j>i){if(j*j<=g*(D*D+P*P)){if(s<a)return void v.push(n(O,T));if((C=Math.abs(Math.atan2(h-l,f-c)-Math.atan2(l-o,c-r)))>=m&&(C=2*m-C),C<s)return v.push(n(c,l)),void v.push(n(f,h));if(0!==u&&C>u)return void v.push(n(c,l))}}else if(I>i){if(I*I<=g*(D*D+P*P)){if(s<a)return void v.push(n(O,T));if((C=Math.abs(Math.atan2(p-h,d-f)-Math.atan2(h-l,f-c)))>=m&&(C=2*m-C),C<s)return v.push(n(c,l)),void v.push(n(f,h));if(0!==u&&C>u)return void v.push(n(f,h))}}else if((D=O-(r+d)/2)*D+(P=T-(o+p)/2)*P<=g)return void v.push(n(O,T))}t(r,o,b,x,A,R,O,T,v,g,y+1),t(O,T,_,E,k,S,d,p,v,g,y+1)})(d,p,v,g,y,m,b,x,f,h,0),f.push(r(l))}(t,c,l,f,d,p*=p),d}}},function(t,e,r){var n=r(172),i=r(173);t.exports=function(t,e){return t=n(t,e),t=i(t,e)},t.exports.radialDistance=n,t.exports.douglasPeucker=i},function(t,e){t.exports=function(t,e){if(t.length<=1)return t;for(var r,n,i,o,a,s=(e="number"==typeof e?e:1)*e,u=t[0],c=[u],l=1,f=t.length;l<f;l++)r=t[l],i=u,o=void 0,a=void 0,o=(n=r)[0]-i[0],a=n[1]-i[1],o*o+a*a>s&&(c.push(r),u=r);return u!==r&&c.push(r),c}},function(t,e){function r(t,e,r){var n=e[0],i=e[1],o=r[0]-n,a=r[1]-i;if(0!==o||0!==a){var s=((t[0]-n)*o+(t[1]-i)*a)/(o*o+a*a);s>1?(n=r[0],i=r[1]):s>0&&(n+=o*s,i+=a*s)}return(o=t[0]-n)*o+(a=t[1]-i)*a}t.exports=function(t,e){if(t.length<=1)return t;var n=(e="number"==typeof e?e:1)*e,i=t.length-1,o=[t[0]];return function t(e,n,i,o,a){for(var s,u=o,c=n+1;c<i;c++){var l=r(e[c],e[n],e[i]);l>u&&(s=c,u=l)}u>o&&(s-n>1&&t(e,n,s,o,a),a.push(e[s]),i-s>1&&t(e,s,i,o,a))}(t,0,i,n,o),o.push(t[i]),o}},function(t,e){t.exports=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}},function(t,e,r){"use strict";r(0).glMatrix.setMatrixArrayType(Array);var n={},i={};t.exports=n,n.WINDING_ODD=0,n.WINDING_NONZERO=1,n.WINDING_POSITIVE=2,n.WINDING_NEGATIVE=3,n.WINDING_ABS_GEQ_TWO=4,n.POLYGONS=0,n.CONNECTED_POLYGONS=1,n.BOUNDARY_CONTOURS=2,n.tesselate=function(t){for(var e=t.debug||!1,r=new y,i=0;i<t.contours.length;i++)r.addContour(t.vertexSize||2,t.contours[i]);return r.tesselate(t.windingRule||n.WINDING_ODD,t.elementType||n.POLYGONS,t.polySize||3,t.vertexSize||2,t.normal||[0,0,1]),{vertices:r.vertices,vertexIndices:r.vertexIndices,vertexCount:r.vertexCount,elements:r.elements,elementCount:r.elementCount,mesh:e?r.mesh:void 0}};var o=function(t){if(!t)throw"Assertion Failed!"};function a(){this.next=null,this.prev=null,this.anEdge=null,this.coords=[0,0,0],this.s=0,this.t=0,this.pqHandle=0,this.n=0,this.idx=0}function s(){this.next=null,this.prev=null,this.anEdge=null,this.trail=null,this.n=0,this.marked=!1,this.inside=!1}function u(t){this.next=null,this.Sym=null,this.Onext=null,this.Lnext=null,this.Org=null,this.Lface=null,this.activeRegion=null,this.winding=0,this.side=t}function c(){var t=new a,e=new s,r=new u(0),n=new u(1);t.next=t.prev=t,t.anEdge=null,e.next=e.prev=e,e.anEdge=null,e.trail=null,e.marked=!1,e.inside=!1,r.next=r,r.Sym=n,r.Onext=null,r.Lnext=null,r.Org=null,r.Lface=null,r.winding=0,r.activeRegion=null,n.next=n,n.Sym=r,n.Onext=null,n.Lnext=null,n.Org=null,n.Lface=null,n.winding=0,n.activeRegion=null,this.vHead=t,this.fHead=e,this.eHead=r,this.eHeadSym=n}function l(){this.key=null,this.next=null,this.prev=null}function f(t,e){this.head=new l,this.head.next=this.head,this.head.prev=this.head,this.frame=t,this.leq=e}function h(){this.handle=null}function d(){this.key=null,this.node=null}function p(t,e){var r;for(this.size=0,this.max=t,this.nodes=[],this.nodes.length=t+1,r=0;r<this.nodes.length;r++)this.nodes[r]=new h;for(this.handles=[],this.handles.length=t+1,r=0;r<this.handles.length;r++)this.handles[r]=new d;this.initialized=!1,this.freeList=0,this.leq=e,this.nodes[1].handle=1,this.handles[1].key=null}function v(){this.eUp=null,this.nodeUp=null,this.windingNumber=0,this.inside=!1,this.sentinel=!1,this.dirty=!1,this.fixUpperEdge=!1}u.prototype={get Rface(){return this.Sym.Lface},set Rface(t){this.Sym.Lface=t},get Dst(){return this.Sym.Org},set Dst(t){this.Sym.Org=t},get Oprev(){return this.Sym.Lnext},set Oprev(t){this.Sym.Lnext=t},get Lprev(){return this.Onext.Sym},set Lprev(t){this.Onext.Sym=t},get Dprev(){return this.Lnext.Sym},set Dprev(t){this.Lnext.Sym=t},get Rprev(){return this.Sym.Onext},set Rprev(t){this.Sym.Onext=t},get Dnext(){return this.Sym.Onext.Sym},set Dnext(t){this.Sym.Onext.Sym=t},get Rnext(){return this.Sym.Lnext.Sym},set Rnext(t){this.Sym.Lnext.Sym=t}},c.prototype={makeEdge_:function(t){var e=new u(0),r=new u(1);t.Sym.side<t.side&&(t=t.Sym);var n=t.Sym.next;return r.next=n,n.Sym.next=e,e.next=t,t.Sym.next=r,e.Sym=r,e.Onext=e,e.Lnext=r,e.Org=null,e.Lface=null,e.winding=0,e.activeRegion=null,r.Sym=e,r.Onext=r,r.Lnext=e,r.Org=null,r.Lface=null,r.winding=0,r.activeRegion=null,e},splice_:function(t,e){var r=t.Onext,n=e.Onext;r.Sym.Lnext=e,n.Sym.Lnext=t,t.Onext=n,e.Onext=r},makeVertex_:function(t,e,r){var n=t;o(null!==n);var i=r.prev;n.prev=i,i.next=n,n.next=r,r.prev=n,n.anEdge=e;var a=e;do{a.Org=n,a=a.Onext}while(a!==e)},makeFace_:function(t,e,r){var n=t;o(null!==n);var i=r.prev;n.prev=i,i.next=n,n.next=r,r.prev=n,n.anEdge=e,n.trail=null,n.marked=!1,n.inside=r.inside;var a=e;do{a.Lface=n,a=a.Lnext}while(a!==e)},killEdge_:function(t){t.Sym.side<t.side&&(t=t.Sym);var e=t.next,r=t.Sym.next;e.Sym.next=r,r.Sym.next=e},killVertex_:function(t,e){var r=t.anEdge,n=r;do{n.Org=e,n=n.Onext}while(n!==r);var i=t.prev,o=t.next;o.prev=i,i.next=o},killFace_:function(t,e){var r=t.anEdge,n=r;do{n.Lface=e,n=n.Lnext}while(n!==r);var i=t.prev,o=t.next;o.prev=i,i.next=o},makeEdge:function(){var t=new a,e=new a,r=new s,n=this.makeEdge_(this.eHead);return this.makeVertex_(t,n,this.vHead),this.makeVertex_(e,n.Sym,this.vHead),this.makeFace_(r,n,this.fHead),n},splice:function(t,e){var r=!1,n=!1;if(t!==e){if(e.Org!==t.Org&&(n=!0,this.killVertex_(e.Org,t.Org)),e.Lface!==t.Lface&&(r=!0,this.killFace_(e.Lface,t.Lface)),this.splice_(e,t),!n){var i=new a;this.makeVertex_(i,e,t.Org),t.Org.anEdge=t}if(!r){var o=new s;this.makeFace_(o,e,t.Lface),t.Lface.anEdge=t}}},delete:function(t){var e=t.Sym,r=!1;if(t.Lface!==t.Rface&&(r=!0,this.killFace_(t.Lface,t.Rface)),t.Onext===t)this.killVertex_(t.Org,null);else if(t.Rface.anEdge=t.Oprev,t.Org.anEdge=t.Onext,this.splice_(t,t.Oprev),!r){var n=new s;this.makeFace_(n,t,t.Lface)}e.Onext===e?(this.killVertex_(e.Org,null),this.killFace_(e.Lface,null)):(t.Lface.anEdge=e.Oprev,e.Org.anEdge=e.Onext,this.splice_(e,e.Oprev)),this.killEdge_(t)},addEdgeVertex:function(t){var e=this.makeEdge_(t),r=e.Sym;this.splice_(e,t.Lnext),e.Org=t.Dst;var n=new a;return this.makeVertex_(n,r,e.Org),e.Lface=r.Lface=t.Lface,e},splitEdge:function(t,e){var r=this.addEdgeVertex(t).Sym;return this.splice_(t.Sym,t.Sym.Oprev),this.splice_(t.Sym,r),t.Dst=r.Org,r.Dst.anEdge=r.Sym,r.Rface=t.Rface,r.winding=t.winding,r.Sym.winding=t.Sym.winding,r},connect:function(t,e){var r=!1,n=this.makeEdge_(t),i=n.Sym;if(e.Lface!==t.Lface&&(r=!0,this.killFace_(e.Lface,t.Lface)),this.splice_(n,t.Lnext),this.splice_(i,e),n.Org=t.Dst,i.Org=e.Org,n.Lface=i.Lface=t.Lface,t.Lface.anEdge=i,!r){var o=new s;this.makeFace_(o,n,t.Lface)}return n},zapFace:function(t){var e,r,n,i,o,a=t.anEdge;r=a.Lnext;do{r=(e=r).Lnext,e.Lface=null,null===e.Rface&&(e.Onext===e?this.killVertex_(e.Org,null):(e.Org.anEdge=e.Onext,this.splice_(e,e.Oprev)),(n=e.Sym).Onext===n?this.killVertex_(n.Org,null):(n.Org.anEdge=n.Onext,this.splice_(n,n.Oprev)),this.killEdge_(e))}while(e!=a);i=t.prev,(o=t.next).prev=i,i.next=o},countFaceVerts_:function(t){var e=t.anEdge,r=0;do{r++,e=e.Lnext}while(e!==t.anEdge);return r},mergeConvexFaces:function(t){var e,r,n,o,a;for(e=this.fHead.next;e!==this.fHead;e=e.next)if(e.inside)for(a=(r=e.anEdge).Org;n=r.Lnext,(o=r.Sym)&&o.Lface&&o.Lface.inside&&this.countFaceVerts_(e)+this.countFaceVerts_(o.Lface)-2<=t&&i.vertCCW(r.Lprev.Org,r.Org,o.Lnext.Lnext.Org)&&i.vertCCW(o.Lprev.Org,o.Org,r.Lnext.Lnext.Org)&&(n=o.Lnext,this.delete(o),r=null,o=null),!r||r.Lnext.Org!==a;)r=n;return!0},check:function(){var t,e,r,n,i,a,s=this.fHead,u=this.vHead,c=this.eHead;for(e=s,e=s;(t=e.next)!==s;e=t){o(t.prev===e),i=t.anEdge;do{o(i.Sym!==i),o(i.Sym.Sym===i),o(i.Lnext.Onext.Sym===i),o(i.Onext.Sym.Lnext===i),o(i.Lface===t),i=i.Lnext}while(i!==t.anEdge)}for(o(t.prev===e&&null===t.anEdge),n=u,n=u;(r=n.next)!==u;n=r){o(r.prev===n),i=r.anEdge;do{o(i.Sym!==i),o(i.Sym.Sym===i),o(i.Lnext.Onext.Sym===i),o(i.Onext.Sym.Lnext===i),o(i.Org===r),i=i.Onext}while(i!==r.anEdge)}for(o(r.prev===n&&null===r.anEdge),a=c,a=c;(i=a.next)!==c;a=i)o(i.Sym.next===a.Sym),o(i.Sym!==i),o(i.Sym.Sym===i),o(null!==i.Org),o(null!==i.Dst),o(i.Lnext.Onext.Sym===i),o(i.Onext.Sym.Lnext===i);o(i.Sym.next===a.Sym&&i.Sym===this.eHeadSym&&i.Sym.Sym===i&&null===i.Org&&null===i.Dst&&null===i.Lface&&null===i.Rface)}},i.vertEq=function(t,e){return t.s===e.s&&t.t===e.t},i.vertLeq=function(t,e){return t.s<e.s||t.s===e.s&&t.t<=e.t},i.transLeq=function(t,e){return t.t<e.t||t.t===e.t&&t.s<=e.s},i.edgeGoesLeft=function(t){return i.vertLeq(t.Dst,t.Org)},i.edgeGoesRight=function(t){return i.vertLeq(t.Org,t.Dst)},i.vertL1dist=function(t,e){return Math.abs(t.s-e.s)+Math.abs(t.t-e.t)},i.edgeEval=function(t,e,r){o(i.vertLeq(t,e)&&i.vertLeq(e,r));var n=e.s-t.s,a=r.s-e.s;return n+a>0?n<a?e.t-t.t+(t.t-r.t)*(n/(n+a)):e.t-r.t+(r.t-t.t)*(a/(n+a)):0},i.edgeSign=function(t,e,r){o(i.vertLeq(t,e)&&i.vertLeq(e,r));var n=e.s-t.s,a=r.s-e.s;return n+a>0?(e.t-r.t)*n+(e.t-t.t)*a:0},i.transEval=function(t,e,r){o(i.transLeq(t,e)&&i.transLeq(e,r));var n=e.t-t.t,a=r.t-e.t;return n+a>0?n<a?e.s-t.s+(t.s-r.s)*(n/(n+a)):e.s-r.s+(r.s-t.s)*(a/(n+a)):0},i.transSign=function(t,e,r){o(i.transLeq(t,e)&&i.transLeq(e,r));var n=e.t-t.t,a=r.t-e.t;return n+a>0?(e.s-r.s)*n+(e.s-t.s)*a:0},i.vertCCW=function(t,e,r){return t.s*(e.t-r.t)+e.s*(r.t-t.t)+r.s*(t.t-e.t)>=0},i.interpolate=function(t,e,r,n){return(t=t<0?0:t)<=(r=r<0?0:r)?0===r?(e+n)/2:e+t/(t+r)*(n-e):n+r/(t+r)*(e-n)},i.intersect=function(t,e,r,n,o){var a,s,u;i.vertLeq(t,e)||(u=t,t=e,e=u),i.vertLeq(r,n)||(u=r,r=n,n=u),i.vertLeq(t,r)||(u=t,t=r,r=u,u=e,e=n,n=u),i.vertLeq(r,e)?i.vertLeq(e,n)?((a=i.edgeEval(t,r,e))+(s=i.edgeEval(r,e,n))<0&&(a=-a,s=-s),o.s=i.interpolate(a,r.s,s,e.s)):((a=i.edgeSign(t,r,e))+(s=-i.edgeSign(t,n,e))<0&&(a=-a,s=-s),o.s=i.interpolate(a,r.s,s,n.s)):o.s=(r.s+e.s)/2,i.transLeq(t,e)||(u=t,t=e,e=u),i.transLeq(r,n)||(u=r,r=n,n=u),i.transLeq(t,r)||(u=t,t=r,r=u,u=e,e=n,n=u),i.transLeq(r,e)?i.transLeq(e,n)?((a=i.transEval(t,r,e))+(s=i.transEval(r,e,n))<0&&(a=-a,s=-s),o.t=i.interpolate(a,r.t,s,e.t)):((a=i.transSign(t,r,e))+(s=-i.transSign(t,n,e))<0&&(a=-a,s=-s),o.t=i.interpolate(a,r.t,s,n.t)):o.t=(r.t+e.t)/2},f.prototype={min:function(){return this.head.next},max:function(){return this.head.prev},insert:function(t){return this.insertBefore(this.head,t)},search:function(t){var e=this.head;do{e=e.next}while(null!==e.key&&!this.leq(this.frame,t,e.key));return e},insertBefore:function(t,e){do{t=t.prev}while(null!==t.key&&!this.leq(this.frame,t.key,e));var r=new l;return r.key=e,r.next=t.next,t.next.prev=r,r.prev=t,t.next=r,r},delete:function(t){t.next.prev=t.prev,t.prev.next=t.next}},p.prototype={floatDown_:function(t){var e,r,n,i=this.nodes,a=this.handles;for(e=i[t].handle;;){if((n=t<<1)<this.size&&this.leq(a[i[n+1].handle].key,a[i[n].handle].key)&&++n,o(n<=this.max),r=i[n].handle,n>this.size||this.leq(a[e].key,a[r].key)){i[t].handle=e,a[e].node=t;break}i[t].handle=r,a[r].node=t,t=n}},floatUp_:function(t){var e,r,n,i=this.nodes,o=this.handles;for(e=i[t].handle;;){if(r=i[n=t>>1].handle,0===n||this.leq(o[r].key,o[e].key)){i[t].handle=e,o[e].node=t;break}i[t].handle=r,o[r].node=t,t=n}},init:function(){for(var t=this.size;t>=1;--t)this.floatDown_(t);this.initialized=!0},min:function(){return this.handles[this.nodes[1].handle].key},insert:function(t){var e,r;if(2*(e=++this.size)>this.max){var n,i;for(this.max*=2,i=this.nodes.length,this.nodes.length=this.max+1,n=i;n<this.nodes.length;n++)this.nodes[n]=new h;for(i=this.handles.length,this.handles.length=this.max+1,n=i;n<this.handles.length;n++)this.handles[n]=new d}return 0===this.freeList?r=e:(r=this.freeList,this.freeList=this.handles[r].node),this.nodes[e].handle=r,this.handles[r].node=e,this.handles[r].key=t,this.initialized&&this.floatUp_(e),r},extractMin:function(){var t=this.nodes,e=this.handles,r=t[1].handle,n=e[r].key;return this.size>0&&(t[1].handle=t[this.size].handle,e[t[1].handle].node=1,e[r].key=null,e[r].node=this.freeList,this.freeList=r,--this.size,this.size>0&&this.floatDown_(1)),n},delete:function(t){var e,r=this.nodes,n=this.handles;o(t>=1&&t<=this.max&&null!==n[t].key),r[e=n[t].node].handle=r[this.size].handle,n[r[e].handle].node=e,--this.size,e<=this.size&&(e<=1||this.leq(n[r[e>>1].handle].key,n[r[e].handle].key)?this.floatDown_(e):this.floatUp_(e)),n[t].key=null,n[t].node=this.freeList,this.freeList=t}};var g={};function y(){this.mesh=null,this.normal=[0,0,0],this.sUnit=[0,0,0],this.tUnit=[0,0,0],this.bmin=[0,0],this.bmax=[0,0],this.windingRule=n.WINDING_ODD,this.dict=null,this.pq=null,this.event=null,this.vertexIndexCounter=0,this.vertices=[],this.vertexIndices=[],this.vertexCount=0,this.elements=[],this.elementCount=0}g.regionBelow=function(t){return t.nodeUp.prev.key},g.regionAbove=function(t){return t.nodeUp.next.key},g.debugEvent=function(t){},g.addWinding=function(t,e){t.winding+=e.winding,t.Sym.winding+=e.Sym.winding},g.edgeLeq=function(t,e,r){var n=t.event,o=e.eUp,a=r.eUp;return o.Dst===n?a.Dst===n?i.vertLeq(o.Org,a.Org)?i.edgeSign(a.Dst,o.Org,a.Org)<=0:i.edgeSign(o.Dst,a.Org,o.Org)>=0:i.edgeSign(a.Dst,n,a.Org)<=0:a.Dst===n?i.edgeSign(o.Dst,n,o.Org)>=0:i.edgeEval(o.Dst,n,o.Org)>=i.edgeEval(a.Dst,n,a.Org)},g.deleteRegion=function(t,e){e.fixUpperEdge&&o(0===e.eUp.winding),e.eUp.activeRegion=null,t.dict.delete(e.nodeUp)},g.fixUpperEdge=function(t,e,r){o(e.fixUpperEdge),t.mesh.delete(e.eUp),e.fixUpperEdge=!1,e.eUp=r,r.activeRegion=e},g.topLeftRegion=function(t,e){var r,n=e.eUp.Org;do{e=g.regionAbove(e)}while(e.eUp.Org===n);if(e.fixUpperEdge){if(null===(r=t.mesh.connect(g.regionBelow(e).eUp.Sym,e.eUp.Lnext)))return null;g.fixUpperEdge(t,e,r),e=g.regionAbove(e)}return e},g.topRightRegion=function(t){var e=t.eUp.Dst;do{t=g.regionAbove(t)}while(t.eUp.Dst===e);return t},g.addRegionBelow=function(t,e,r){var n=new v;return n.eUp=r,n.nodeUp=t.dict.insertBefore(e.nodeUp,n),n.fixUpperEdge=!1,n.sentinel=!1,n.dirty=!1,r.activeRegion=n,n},g.isWindingInside=function(t,e){switch(t.windingRule){case n.WINDING_ODD:return 0!=(1&e);case n.WINDING_NONZERO:return 0!==e;case n.WINDING_POSITIVE:return e>0;case n.WINDING_NEGATIVE:return e<0;case n.WINDING_ABS_GEQ_TWO:return e>=2||e<=-2}return o(!1),!1},g.computeWinding=function(t,e){e.windingNumber=g.regionAbove(e).windingNumber+e.eUp.winding,e.inside=g.isWindingInside(t,e.windingNumber)},g.finishRegion=function(t,e){var r=e.eUp,n=r.Lface;n.inside=e.inside,n.anEdge=r,g.deleteRegion(t,e)},g.finishLeftRegions=function(t,e,r){for(var n,i=null,o=e,a=e.eUp;o!==r;){if(o.fixUpperEdge=!1,(n=(i=g.regionBelow(o)).eUp).Org!=a.Org){if(!i.fixUpperEdge){g.finishRegion(t,o);break}n=t.mesh.connect(a.Lprev,n.Sym),g.fixUpperEdge(t,i,n)}a.Onext!==n&&(t.mesh.splice(n.Oprev,n),t.mesh.splice(a,n)),g.finishRegion(t,o),a=i.eUp,o=i}return a},g.addRightEdges=function(t,e,r,n,a,s){var u,c,l,f,h=!0;l=r;do{o(i.vertLeq(l.Org,l.Dst)),g.addRegionBelow(t,e,l.Sym),l=l.Onext}while(l!==n);for(null===a&&(a=g.regionBelow(e).eUp.Rprev),c=e,f=a;(l=(u=g.regionBelow(c)).eUp.Sym).Org===f.Org;)l.Onext!==f&&(t.mesh.splice(l.Oprev,l),t.mesh.splice(f.Oprev,l)),u.windingNumber=c.windingNumber-l.winding,u.inside=g.isWindingInside(t,u.windingNumber),c.dirty=!0,!h&&g.checkForRightSplice(t,c)&&(g.addWinding(l,f),g.deleteRegion(t,c),t.mesh.delete(f)),h=!1,c=u,f=l;c.dirty=!0,o(c.windingNumber-l.winding===u.windingNumber),s&&g.walkDirtyRegions(t,c)},g.spliceMergeVertices=function(t,e,r){t.mesh.splice(e,r)},g.vertexWeights=function(t,e,r){var n=i.vertL1dist(e,t),o=i.vertL1dist(r,t),a=.5*o/(n+o),s=.5*n/(n+o);t.coords[0]+=a*e.coords[0]+s*r.coords[0],t.coords[1]+=a*e.coords[1]+s*r.coords[1],t.coords[2]+=a*e.coords[2]+s*r.coords[2]},g.getIntersectData=function(t,e,r,n,i,o){e.coords[0]=e.coords[1]=e.coords[2]=0,e.idx=-1,g.vertexWeights(e,r,n),g.vertexWeights(e,i,o)},g.checkForRightSplice=function(t,e){var r=g.regionBelow(e),n=e.eUp,o=r.eUp;if(i.vertLeq(n.Org,o.Org)){if(i.edgeSign(o.Dst,n.Org,o.Org)>0)return!1;i.vertEq(n.Org,o.Org)?n.Org!==o.Org&&(t.pq.delete(n.Org.pqHandle),g.spliceMergeVertices(t,o.Oprev,n)):(t.mesh.splitEdge(o.Sym),t.mesh.splice(n,o.Oprev),e.dirty=r.dirty=!0)}else{if(i.edgeSign(n.Dst,o.Org,n.Org)<0)return!1;g.regionAbove(e).dirty=e.dirty=!0,t.mesh.splitEdge(n.Sym),t.mesh.splice(o.Oprev,n)}return!0},g.checkForLeftSplice=function(t,e){var r,n=g.regionBelow(e),a=e.eUp,s=n.eUp;if(o(!i.vertEq(a.Dst,s.Dst)),i.vertLeq(a.Dst,s.Dst)){if(i.edgeSign(a.Dst,s.Dst,a.Org)<0)return!1;g.regionAbove(e).dirty=e.dirty=!0,r=t.mesh.splitEdge(a),t.mesh.splice(s.Sym,r),r.Lface.inside=e.inside}else{if(i.edgeSign(s.Dst,a.Dst,s.Org)>0)return!1;e.dirty=n.dirty=!0,r=t.mesh.splitEdge(s),t.mesh.splice(a.Lnext,s.Sym),r.Rface.inside=e.inside}return!0},g.checkForIntersect=function(t,e){var r,n,s=g.regionBelow(e),u=e.eUp,c=s.eUp,l=u.Org,f=c.Org,h=u.Dst,d=c.Dst,p=new a;if(o(!i.vertEq(d,h)),o(i.edgeSign(h,t.event,l)<=0),o(i.edgeSign(d,t.event,f)>=0),o(l!==t.event&&f!==t.event),o(!e.fixUpperEdge&&!s.fixUpperEdge),l===f)return!1;if(Math.min(l.t,h.t)>Math.max(f.t,d.t))return!1;if(i.vertLeq(l,f)){if(i.edgeSign(d,l,f)>0)return!1}else if(i.edgeSign(h,f,l)<0)return!1;return g.debugEvent(t),i.intersect(h,l,d,f,p),o(Math.min(l.t,h.t)<=p.t),o(p.t<=Math.max(f.t,d.t)),o(Math.min(d.s,h.s)<=p.s),o(p.s<=Math.max(f.s,l.s)),i.vertLeq(p,t.event)&&(p.s=t.event.s,p.t=t.event.t),r=i.vertLeq(l,f)?l:f,i.vertLeq(r,p)&&(p.s=r.s,p.t=r.t),i.vertEq(p,l)||i.vertEq(p,f)?(g.checkForRightSplice(t,e),!1):!i.vertEq(h,t.event)&&i.edgeSign(h,t.event,p)>=0||!i.vertEq(d,t.event)&&i.edgeSign(d,t.event,p)<=0?d===t.event?(t.mesh.splitEdge(u.Sym),t.mesh.splice(c.Sym,u),e=g.topLeftRegion(t,e),u=g.regionBelow(e).eUp,g.finishLeftRegions(t,g.regionBelow(e),s),g.addRightEdges(t,e,u.Oprev,u,u,!0),!0):h===t.event?(t.mesh.splitEdge(c.Sym),t.mesh.splice(u.Lnext,c.Oprev),s=e,e=g.topRightRegion(e),n=g.regionBelow(e).eUp.Rprev,s.eUp=c.Oprev,c=g.finishLeftRegions(t,s,null),g.addRightEdges(t,e,c.Onext,u.Rprev,n,!0),!0):(i.edgeSign(h,t.event,p)>=0&&(g.regionAbove(e).dirty=e.dirty=!0,t.mesh.splitEdge(u.Sym),u.Org.s=t.event.s,u.Org.t=t.event.t),i.edgeSign(d,t.event,p)<=0&&(e.dirty=s.dirty=!0,t.mesh.splitEdge(c.Sym),c.Org.s=t.event.s,c.Org.t=t.event.t),!1):(t.mesh.splitEdge(u.Sym),t.mesh.splitEdge(c.Sym),t.mesh.splice(c.Oprev,u),u.Org.s=p.s,u.Org.t=p.t,u.Org.pqHandle=t.pq.insert(u.Org),g.getIntersectData(t,u.Org,l,h,f,d),g.regionAbove(e).dirty=e.dirty=s.dirty=!0,!1)},g.walkDirtyRegions=function(t,e){for(var r,n,i=g.regionBelow(e);;){for(;i.dirty;)e=i,i=g.regionBelow(i);if(!e.dirty&&(i=e,null===(e=g.regionAbove(e))||!e.dirty))return;if(e.dirty=!1,r=e.eUp,n=i.eUp,r.Dst!==n.Dst&&g.checkForLeftSplice(t,e)&&(i.fixUpperEdge?(g.deleteRegion(t,i),t.mesh.delete(n),n=(i=g.regionBelow(e)).eUp):e.fixUpperEdge&&(g.deleteRegion(t,e),t.mesh.delete(r),r=(e=g.regionAbove(i)).eUp)),r.Org!==n.Org)if(r.Dst===n.Dst||e.fixUpperEdge||i.fixUpperEdge||r.Dst!==t.event&&n.Dst!==t.event)g.checkForRightSplice(t,e);else if(g.checkForIntersect(t,e))return;r.Org===n.Org&&r.Dst===n.Dst&&(g.addWinding(n,r),g.deleteRegion(t,e),t.mesh.delete(r),e=g.regionAbove(i))}},g.connectRightVertex=function(t,e,r){var n,o=r.Onext,a=g.regionBelow(e),s=e.eUp,u=a.eUp,c=!1;s.Dst!==u.Dst&&g.checkForIntersect(t,e),i.vertEq(s.Org,t.event)&&(t.mesh.splice(o.Oprev,s),e=g.topLeftRegion(t,e),o=g.regionBelow(e).eUp,g.finishLeftRegions(t,g.regionBelow(e),a),c=!0),i.vertEq(u.Org,t.event)&&(t.mesh.splice(r,u.Oprev),r=g.finishLeftRegions(t,a,null),c=!0),c?g.addRightEdges(t,e,r.Onext,o,o,!0):(n=i.vertLeq(u.Org,s.Org)?u.Oprev:s,n=t.mesh.connect(r.Lprev,n),g.addRightEdges(t,e,n,n.Onext,n.Onext,!1),n.Sym.activeRegion.fixUpperEdge=!0,g.walkDirtyRegions(t,e))},g.connectLeftDegenerate=function(t,e,r){var n,a,s,u,c;return n=e.eUp,i.vertEq(n.Org,r)?(o(!1),void g.spliceMergeVertices(t,n,r.anEdge)):i.vertEq(n.Dst,r)?(o(!1),e=g.topRightRegion(e),a=u=(s=(c=g.regionBelow(e)).eUp.Sym).Onext,c.fixUpperEdge&&(o(a!==s),g.deleteRegion(t,c),t.mesh.delete(s),s=a.Oprev),t.mesh.splice(r.anEdge,s),i.edgeGoesLeft(a)||(a=null),void g.addRightEdges(t,e,s.Onext,u,a,!0)):(t.mesh.splitEdge(n.Sym),e.fixUpperEdge&&(t.mesh.delete(n.Onext),e.fixUpperEdge=!1),t.mesh.splice(r.anEdge,n),void g.sweepEvent(t,r))},g.connectLeftVertex=function(t,e){var r,n,o,a,s,u,c=new v;if(c.eUp=e.anEdge.Sym,r=t.dict.search(c).key,n=g.regionBelow(r))if(a=r.eUp,s=n.eUp,0!==i.edgeSign(a.Dst,e,a.Org))if(o=i.vertLeq(s.Dst,a.Dst)?r:n,r.inside||o.fixUpperEdge){if(o===r)u=t.mesh.connect(e.anEdge.Sym,a.Lnext);else u=t.mesh.connect(s.Dnext,e.anEdge).Sym;o.fixUpperEdge?g.fixUpperEdge(t,o,u):g.computeWinding(t,g.addRegionBelow(t,r,u)),g.sweepEvent(t,e)}else g.addRightEdges(t,r,e.anEdge,e.anEdge,null,!0);else g.connectLeftDegenerate(t,r,e)},g.sweepEvent=function(t,e){t.event=e,g.debugEvent(t);for(var r=e.anEdge;null===r.activeRegion;)if((r=r.Onext)===e.anEdge)return void g.connectLeftVertex(t,e);var n=g.topLeftRegion(t,r.activeRegion);o(null!==n);var i=g.regionBelow(n),a=i.eUp,s=g.finishLeftRegions(t,i,null);s.Onext===a?g.connectRightVertex(t,n,s):g.addRightEdges(t,n,s.Onext,a,a,!0)},g.addSentinel=function(t,e,r,n){var i=new v,o=t.mesh.makeEdge();o.Org.s=r,o.Org.t=n,o.Dst.s=e,o.Dst.t=n,t.event=o.Dst,i.eUp=o,i.windingNumber=0,i.inside=!1,i.fixUpperEdge=!1,i.sentinel=!0,i.dirty=!1,i.nodeUp=t.dict.insert(i)},g.initEdgeDict=function(t){t.dict=new f(t,g.edgeLeq);var e=t.bmax[0]-t.bmin[0],r=t.bmax[1]-t.bmin[1],n=t.bmin[0]-e,i=t.bmax[0]+e,o=t.bmin[1]-r,a=t.bmax[1]+r;g.addSentinel(t,n,i,o),g.addSentinel(t,n,i,a)},g.doneEdgeDict=function(t){for(var e,r=0;null!==(e=t.dict.min().key);)e.sentinel||(o(e.fixUpperEdge),o(1==++r)),o(0===e.windingNumber),g.deleteRegion(t,e)},g.removeDegenerateEdges=function(t){var e,r,n,o=t.mesh.eHead;for(e=o.next;e!==o;e=r)r=e.next,n=e.Lnext,i.vertEq(e.Org,e.Dst)&&e.Lnext.Lnext!==e&&(g.spliceMergeVertices(t,n,e),t.mesh.delete(e),n=(e=n).Lnext),n.Lnext===e&&(n!==e&&(n!==r&&n!==r.Sym||(r=r.next),t.mesh.delete(n)),e!==r&&e!==r.Sym||(r=r.next),t.mesh.delete(e))},g.initPriorityQ=function(t){var e,r,n,o=0;for(r=(n=t.mesh.vHead).next;r!==n;r=r.next)o++;for(o+=8,e=t.pq=new p(o,i.vertLeq),r=(n=t.mesh.vHead).next;r!==n;r=r.next)r.pqHandle=e.insert(r);return r===n&&(e.init(),!0)},g.donePriorityQ=function(t){t.pq=null},g.removeDegenerateFaces=function(t,e){var r,n,i;for(r=e.fHead.next;r!==e.fHead;r=n)n=r.next,i=r.anEdge,o(i.Lnext!==i),i.Lnext.Lnext===i&&(g.addWinding(i.Onext,i),t.mesh.delete(i));return!0},g.computeInterior=function(t){var e,r;if(g.removeDegenerateEdges(t),!g.initPriorityQ(t))return!1;for(g.initEdgeDict(t);null!==(e=t.pq.extractMin());){for(;null!==(r=t.pq.min())&&i.vertEq(r,e);)r=t.pq.extractMin(),g.spliceMergeVertices(t,e.anEdge,r.anEdge);g.sweepEvent(t,e)}return t.event=t.dict.min().key.eUp.Org,g.debugEvent(t),g.doneEdgeDict(t),g.donePriorityQ(t),!!g.removeDegenerateFaces(t,t.mesh)&&(t.mesh.check(),!0)},y.prototype={dot_:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},normalize_:function(t){var e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2];o(e>0),e=Math.sqrt(e),t[0]/=e,t[1]/=e,t[2]/=e},longAxis_:function(t){var e=0;return Math.abs(t[1])>Math.abs(t[0])&&(e=1),Math.abs(t[2])>Math.abs(t[e])&&(e=2),e},computeNormal_:function(t){var e,r,n,i,o,a,s,u=[0,0,0],c=[0,0,0],l=[0,0,0],f=[0,0,0],h=[0,0,0],d=[null,null,null],p=[null,null,null],v=this.mesh.vHead;for(e=v.next,s=0;s<3;++s)i=e.coords[s],c[s]=i,p[s]=e,u[s]=i,d[s]=e;for(e=v.next;e!==v;e=e.next)for(s=0;s<3;++s)(i=e.coords[s])<c[s]&&(c[s]=i,p[s]=e),i>u[s]&&(u[s]=i,d[s]=e);if(s=0,u[1]-c[1]>u[0]-c[0]&&(s=1),u[2]-c[2]>u[s]-c[s]&&(s=2),c[s]>=u[s])return t[0]=0,t[1]=0,void(t[2]=1);for(a=0,r=p[s],n=d[s],l[0]=r.coords[0]-n.coords[0],l[1]=r.coords[1]-n.coords[1],l[2]=r.coords[2]-n.coords[2],e=v.next;e!==v;e=e.next)f[0]=e.coords[0]-n.coords[0],f[1]=e.coords[1]-n.coords[1],f[2]=e.coords[2]-n.coords[2],h[0]=l[1]*f[2]-l[2]*f[1],h[1]=l[2]*f[0]-l[0]*f[2],h[2]=l[0]*f[1]-l[1]*f[0],(o=h[0]*h[0]+h[1]*h[1]+h[2]*h[2])>a&&(a=o,t[0]=h[0],t[1]=h[1],t[2]=h[2]);a<=0&&(t[0]=t[1]=t[2]=0,t[this.longAxis_(l)]=1)},checkOrientation_:function(){var t,e,r,n,i=this.mesh.fHead,o=this.mesh.vHead;for(t=0,e=i.next;e!==i;e=e.next)if(!((n=e.anEdge).winding<=0))do{t+=(n.Org.s-n.Dst.s)*(n.Org.t+n.Dst.t),n=n.Lnext}while(n!==e.anEdge);if(t<0){for(r=o.next;r!==o;r=r.next)r.t=-r.t;this.tUnit[0]=-this.tUnit[0],this.tUnit[1]=-this.tUnit[1],this.tUnit[2]=-this.tUnit[2]}},projectPolygon_:function(){var t,e,r,n,i,o=this.mesh.vHead,a=[0,0,0],s=!1;for(a[0]=this.normal[0],a[1]=this.normal[1],a[2]=this.normal[2],0===a[0]&&0===a[1]&&0===a[2]&&(this.computeNormal_(a),s=!0),e=this.sUnit,r=this.tUnit,e[n=this.longAxis_(a)]=0,e[(n+1)%3]=1,e[(n+2)%3]=0,r[n]=0,r[(n+1)%3]=0,r[(n+2)%3]=a[n]>0?1:-1,t=o.next;t!==o;t=t.next)t.s=this.dot_(t.coords,e),t.t=this.dot_(t.coords,r);for(s&&this.checkOrientation_(),i=!0,t=o.next;t!==o;t=t.next)i?(this.bmin[0]=this.bmax[0]=t.s,this.bmin[1]=this.bmax[1]=t.t,i=!1):(t.s<this.bmin[0]&&(this.bmin[0]=t.s),t.s>this.bmax[0]&&(this.bmax[0]=t.s),t.t<this.bmin[1]&&(this.bmin[1]=t.t),t.t>this.bmax[1]&&(this.bmax[1]=t.t))},addWinding_:function(t,e){t.winding+=e.winding,t.Sym.winding+=e.Sym.winding},tessellateMonoRegion_:function(t,e){var r,n;for(r=e.anEdge,o(r.Lnext!==r&&r.Lnext.Lnext!==r);i.vertLeq(r.Dst,r.Org);r=r.Lprev);for(;i.vertLeq(r.Org,r.Dst);r=r.Lnext);for(n=r.Lprev;r.Lnext!==n;)if(i.vertLeq(r.Dst,n.Org)){for(;n.Lnext!==r&&(i.edgeGoesLeft(n.Lnext)||i.edgeSign(n.Org,n.Dst,n.Lnext.Dst)<=0);){n=t.connect(n.Lnext,n).Sym}n=n.Lprev}else{for(;n.Lnext!==r&&(i.edgeGoesRight(r.Lprev)||i.edgeSign(r.Dst,r.Org,r.Lprev.Org)>=0);){r=t.connect(r,r.Lprev).Sym}r=r.Lnext}for(o(n.Lnext!==r);n.Lnext.Lnext!==r;){n=t.connect(n.Lnext,n).Sym}return!0},tessellateInterior_:function(t){var e,r;for(e=t.fHead.next;e!==t.fHead;e=r)if(r=e.next,e.inside&&!this.tessellateMonoRegion_(t,e))return!1;return!0},discardExterior_:function(t){var e,r;for(e=t.fHead.next;e!==t.fHead;e=r)r=e.next,e.inside||t.zapFace(e)},setWindingNumber_:function(t,e,r){var n,i;for(n=t.eHead.next;n!==t.eHead;n=i)i=n.next,n.Rface.inside!==n.Lface.inside?n.winding=n.Lface.inside?e:-e:r?t.delete(n):n.winding=0},getNeighbourFace_:function(t){return t.Rface&&t.Rface.inside?t.Rface.n:-1},outputPolymesh_:function(t,e,r,i){var a,s,u,c,l,f=0,h=0;for(r>3&&t.mergeConvexFaces(r),a=t.vHead.next;a!==t.vHead;a=a.next)a.n=-1;for(s=t.fHead.next;s!==t.fHead;s=s.next)if(s.n=-1,s.inside){u=s.anEdge,c=0;do{-1===(a=u.Org).n&&(a.n=h,h++),c++,u=u.Lnext}while(u!==s.anEdge);o(c<=r),s.n=f,++f}for(this.elementCount=f,e===n.CONNECTED_POLYGONS&&(f*=2),this.elements=[],this.elements.length=f*r,this.vertexCount=h,this.vertices=[],this.vertices.length=h*i,this.vertexIndices=[],this.vertexIndices.length=h,a=t.vHead.next;a!==t.vHead;a=a.next)if(-1!==a.n){var d=a.n*i;this.vertices[d+0]=a.coords[0],this.vertices[d+1]=a.coords[1],i>2&&(this.vertices[d+2]=a.coords[2]),this.vertexIndices[a.n]=a.idx}var p=0;for(s=t.fHead.next;s!==t.fHead;s=s.next)if(s.inside){u=s.anEdge,c=0;do{a=u.Org,this.elements[p++]=a.n,c++,u=u.Lnext}while(u!==s.anEdge);for(l=c;l<r;++l)this.elements[p++]=-1;if(e===n.CONNECTED_POLYGONS){u=s.anEdge;do{this.elements[p++]=this.getNeighbourFace_(u),u=u.Lnext}while(u!==s.anEdge);for(l=c;l<r;++l)this.elements[p++]=-1}}},outputContours_:function(t,e){var r,n,i,o=0,a=0;for(this.vertexCount=0,this.elementCount=0,r=t.fHead.next;r!==t.fHead;r=r.next)if(r.inside){i=n=r.anEdge;do{this.vertexCount++,n=n.Lnext}while(n!==i);this.elementCount++}this.elements=[],this.elements.length=2*this.elementCount,this.vertices=[],this.vertices.length=this.vertexCount*e,this.vertexIndices=[],this.vertexIndices.length=this.vertexCount;var s=0,u=0,c=0;for(o=0,r=t.fHead.next;r!==t.fHead;r=r.next)if(r.inside){a=0,i=n=r.anEdge;do{this.vertices[s++]=n.Org.coords[0],this.vertices[s++]=n.Org.coords[1],e>2&&(this.vertices[s++]=n.Org.coords[2]),this.vertexIndices[u++]=n.Org.idx,a++,n=n.Lnext}while(n!==i);this.elements[c++]=o,this.elements[c++]=a,o+=a}},addContour:function(t,e){var r,n;for(null===this.mesh&&(this.mesh=new c),t<2&&(t=2),t>3&&(t=3),r=null,n=0;n<e.length;n+=t)null===r?(r=this.mesh.makeEdge(),this.mesh.splice(r,r.Sym)):(this.mesh.splitEdge(r),r=r.Lnext),r.Org.coords[0]=e[n+0],r.Org.coords[1]=e[n+1],r.Org.coords[2]=t>2?e[n+2]:0,r.Org.idx=this.vertexIndexCounter++,r.winding=1,r.Sym.winding=-1},tesselate:function(t,e,r,i,o){if(this.vertices=[],this.elements=[],this.vertexIndices=[],this.vertexIndexCounter=0,o&&(this.normal[0]=o[0],this.normal[1]=o[1],this.normal[2]=o[2]),this.windingRule=t,i<2&&(i=2),i>3&&(i=3),!this.mesh)return!1;this.projectPolygon_(),g.computeInterior(this);var a=this.mesh;return e===n.BOUNDARY_CONTOURS?this.setWindingNumber_(a,1,!0):this.tessellateInterior_(a),a.check(),e===n.BOUNDARY_CONTOURS?this.outputContours_(a,i):this.outputPolymesh_(a,e,r,i),!0}}},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t};var r=Object.prototype.hasOwnProperty},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var t=s(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new p(t,e)),1!==c.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){t.exports={default:r(179),__esModule:!0}},function(t,e,r){r(67),r(60),t.exports=r(188)},function(t,e,r){"use strict";var n=r(181),i=r(114),o=r(48),a=r(43);t.exports=r(84)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e,r){"use strict";var n=r(87),i=r(58),o=r(59),a={};r(40)(a,r(20)("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(28),i=r(37),o=r(49);t.exports=r(26)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),s=a.length,u=0;s>u;)n.f(t,r=a[u++],e[r]);return t}},function(t,e,r){var n=r(43),i=r(68),o=r(185);t.exports=function(t){return function(e,r,a){var s,u=n(e),c=i(u.length),l=o(a,c);if(t&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},function(t,e,r){var n=r(88),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},function(t,e,r){var n=r(45),i=r(50),o=r(89)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){var n=r(88),i=r(83);t.exports=function(t){return function(e,r){var o,a,s=String(i(e)),u=n(r),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(t,e,r){var n=r(70),i=r(20)("iterator"),o=r(48);t.exports=r(16).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(n(e))}},function(t,e,r){t.exports={default:r(190),__esModule:!0}},function(t,e,r){r(67),r(60),t.exports=r(191)},function(t,e,r){var n=r(37),i=r(92);t.exports=r(16).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},function(t,e,r){t.exports={default:r(193),__esModule:!0}},function(t,e,r){r(60),r(194),t.exports=r(16).Array.from},function(t,e,r){"use strict";var n=r(39),i=r(22),o=r(50),a=r(120),s=r(121),u=r(68),c=r(195),l=r(92);i(i.S+i.F*!r(122)((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,i,f,h=o(t),d="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,y=0,m=l(h);if(g&&(v=n(v,p>2?arguments[2]:void 0,2)),null==m||d==Array&&s(m))for(r=new d(e=u(h.length));e>y;y++)c(r,y,g?v(h[y],y):h[y]);else for(f=m.call(h),r=new d;!(i=f.next()).done;y++)c(r,y,g?a(f,v,[i.value,y],!0):i.value);return r.length=y,r}})},function(t,e,r){"use strict";var n=r(28),i=r(58);t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},function(t,e,r){r(93),r(60),r(67),r(197),r(203),r(206),r(208),t.exports=r(16).Map},function(t,e,r){"use strict";var n=r(198),i=r(125);t.exports=r(199)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=n.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(i(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,r){"use strict";var n=r(28).f,i=r(87),o=r(94),a=r(39),s=r(95),u=r(61),c=r(84),l=r(114),f=r(124),h=r(26),d=r(96).fastKey,p=r(125),v=h?"_s":"size",g=function(t,e){var r,n=d(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};t.exports={getConstructor:function(t,e,r,c){var l=t((function(t,n){s(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,null!=n&&u(n,r,t[c],t)}));return o(l.prototype,{clear:function(){for(var t=p(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var r=p(this,e),n=g(r,t);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[v]--}return!!n},forEach:function(t){p(this,e);for(var r,n=a(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!g(p(this,e),t)}}),h&&n(l.prototype,"size",{get:function(){return p(this,e)[v]}}),l},def:function(t,e,r){var n,i,o=g(t,e);return o?o.v=r:(t._l=o={i:i=d(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,e,r){c(t,e,(function(t,r){this._t=p(t,e),this._k=r,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))}),r?"entries":"values",!r,!0),f(e)}}},function(t,e,r){"use strict";var n=r(19),i=r(22),o=r(96),a=r(44),s=r(40),u=r(94),c=r(61),l=r(95),f=r(29),h=r(59),d=r(28).f,p=r(200)(0),v=r(26);t.exports=function(t,e,r,g,y,m){var b=n[t],x=b,w=y?"set":"add",M=x&&x.prototype,k={};return v&&"function"==typeof x&&(m||M.forEach&&!a((function(){(new x).entries().next()})))?(x=e((function(e,r){l(e,x,t,"_c"),e._c=new b,null!=r&&c(r,y,e[w],e)})),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(t){var e="add"==t||"set"==t;!(t in M)||m&&"clear"==t||s(x.prototype,t,(function(r,n){if(l(this,x,t),!e&&m&&!f(r))return"get"==t&&void 0;var i=this._c[t](0===r?0:r,n);return e?this:i}))})),m||d(x.prototype,"size",{get:function(){return this._c.size}})):(x=g.getConstructor(e,t,y,w),u(x.prototype,r),o.NEED=!0),h(x,t),k[t]=x,i(i.G+i.W+i.F,k),m||g.setStrong(x,t,y),x}},function(t,e,r){var n=r(39),i=r(82),o=r(50),a=r(68),s=r(201);t.exports=function(t,e){var r=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,d=e||s;return function(e,s,p){for(var v,g,y=o(e),m=i(y),b=n(s,p,3),x=a(m.length),w=0,M=r?d(e,x):u?d(e,0):void 0;x>w;w++)if((h||w in m)&&(g=b(v=m[w],w,y),t))if(r)M[w]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:M.push(v)}else if(l)return!1;return f?-1:c||l?l:M}}},function(t,e,r){var n=r(202);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,r){var n=r(29),i=r(126),o=r(20)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){var n=r(22);n(n.P+n.R,"Map",{toJSON:r(204)("Map")})},function(t,e,r){var n=r(70),i=r(205);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,r){var n=r(61);t.exports=function(t,e){var r=[];return n(t,!1,r.push,r,e),r}},function(t,e,r){r(207)("Map")},function(t,e,r){"use strict";var n=r(22);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,r){r(209)("Map")},function(t,e,r){"use strict";var n=r(22),i=r(57),o=r(39),a=r(61);t.exports=function(t){n(n.S,t,{from:function(t){var e,r,n,s,u=arguments[1];return i(this),(e=void 0!==u)&&i(u),null==t?new this:(r=[],e?(n=0,s=o(u,arguments[2],2),a(t,!1,(function(t){r.push(s(t,n++))}))):a(t,!1,r.push,r),new this(r))}})}},function(t,e,r){r(211),t.exports=r(16).Object.assign},function(t,e,r){var n=r(22);n(n.S+n.F,"Object",{assign:r(212)})},function(t,e,r){"use strict";var n=r(26),i=r(49),o=r(98),a=r(62),s=r(50),u=r(82),c=Object.assign;t.exports=!c||r(44)((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=c({},t)[r]||Object.keys(c({},e)).join("")!=n}))?function(t,e){for(var r=s(t),c=arguments.length,l=1,f=o.f,h=a.f;c>l;)for(var d,p=u(arguments[l++]),v=f?i(p).concat(f(p)):i(p),g=v.length,y=0;g>y;)d=v[y++],n&&!h.call(p,d)||(r[d]=p[d]);return r}:c},function(t,e,r){t.exports={default:r(214),__esModule:!0}},function(t,e,r){r(215);var n=r(16).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){var n=r(22);n(n.S+n.F*!r(26),"Object",{defineProperty:r(28).f})},function(t,e,r){r(217),r(93),r(221),r(222),t.exports=r(16).Symbol},function(t,e,r){"use strict";var n=r(19),i=r(45),o=r(26),a=r(22),s=r(116),u=r(96).KEY,c=r(44),l=r(90),f=r(59),h=r(69),d=r(20),p=r(130),v=r(99),g=r(218),y=r(126),m=r(37),b=r(29),x=r(50),w=r(43),M=r(86),k=r(58),S=r(87),A=r(219),R=r(220),_=r(98),E=r(28),O=r(49),T=R.f,C=E.f,L=A.f,D=n.Symbol,P=n.JSON,j=P&&P.stringify,I=d("_hidden"),q=d("toPrimitive"),N={}.propertyIsEnumerable,F=l("symbol-registry"),U=l("symbols"),B=l("op-symbols"),V=Object.prototype,z="function"==typeof D&&!!_.f,G=n.QObject,H=!G||!G.prototype||!G.prototype.findChild,W=o&&c((function(){return 7!=S(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=T(V,e);n&&delete V[e],C(t,e,r),n&&t!==V&&C(V,e,n)}:C,Y=function(t){var e=U[t]=S(D.prototype);return e._k=t,e},X=z&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},J=function(t,e,r){return t===V&&J(B,e,r),m(t),e=M(e,!0),m(r),i(U,e)?(r.enumerable?(i(t,I)&&t[I][e]&&(t[I][e]=!1),r=S(r,{enumerable:k(0,!1)})):(i(t,I)||C(t,I,k(1,{})),t[I][e]=!0),W(t,e,r)):C(t,e,r)},Q=function(t,e){m(t);for(var r,n=g(e=w(e)),i=0,o=n.length;o>i;)J(t,r=n[i++],e[r]);return t},Z=function(t){var e=N.call(this,t=M(t,!0));return!(this===V&&i(U,t)&&!i(B,t))&&(!(e||!i(this,t)||!i(U,t)||i(this,I)&&this[I][t])||e)},$=function(t,e){if(t=w(t),e=M(e,!0),t!==V||!i(U,e)||i(B,e)){var r=T(t,e);return!r||!i(U,e)||i(t,I)&&t[I][e]||(r.enumerable=!0),r}},K=function(t){for(var e,r=L(w(t)),n=[],o=0;r.length>o;)i(U,e=r[o++])||e==I||e==u||n.push(e);return n},tt=function(t){for(var e,r=t===V,n=L(r?B:w(t)),o=[],a=0;n.length>a;)!i(U,e=n[a++])||r&&!i(V,e)||o.push(U[e]);return o};z||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(r){this===V&&e.call(B,r),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),W(this,t,k(1,r))};return o&&H&&W(V,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),R.f=$,E.f=J,r(131).f=A.f=K,r(62).f=Z,_.f=tt,o&&!r(56)&&s(V,"propertyIsEnumerable",Z,!0),p.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!z,{Symbol:D});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)d(et[rt++]);for(var nt=O(d.store),it=0;nt.length>it;)v(nt[it++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=D(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!z,"Object",{create:function(t,e){return void 0===e?S(t):Q(S(t),e)},defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:$,getOwnPropertyNames:K,getOwnPropertySymbols:tt});var ot=c((function(){_.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return _.f(x(t))}}),P&&a(a.S+a.F*(!z||c((function(){var t=D();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!X(t))return y(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!X(e))return e}),n[1]=e,j.apply(P,n)}}),D.prototype[q]||r(40)(D.prototype,q,D.prototype.valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},function(t,e,r){var n=r(49),i=r(98),o=r(62);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,s=r(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,r){var n=r(43),i=r(131).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},function(t,e,r){var n=r(62),i=r(58),o=r(43),a=r(86),s=r(45),u=r(115),c=Object.getOwnPropertyDescriptor;e.f=r(26)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e,r){r(99)("asyncIterator")},function(t,e,r){r(99)("observable")},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createNowTime=function(){var t=null;t=Date.now?Date.now:function(){return(new Date).getTime()};return t},e.formatDelay=function(t){"number"==typeof t?t={delay:t}:"entropy"in t&&(t={delay:t.entropy,isEntropy:!0});return t}},function(t,e){var r="function"==typeof Float32Array;function n(t,e){return 1-3*e+3*t}function i(t,e){return 3*e-6*t}function o(t){return 3*t}function a(t,e,r){return((n(e,r)*t+i(e,r))*t+o(e))*t}function s(t,e,r){return 3*n(e,r)*t*t+2*i(e,r)*t+o(e)}function u(t){return t}t.exports=function(t,e,n,i){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===i)return u;for(var o=r?new Float32Array(11):new Array(11),c=0;c<11;++c)o[c]=a(.1*c,t,n);function l(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=.1;--i;var u=r+.1*((e-o[i])/(o[i+1]-o[i])),c=s(u,t,n);return c>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=s(e,r,n);if(0===o)return e;e-=(a(e,r,n)-t)/o}return e}(e,u,t,n):0===c?u:function(t,e,r,n,i){var o,s,u=0;do{(o=a(s=e+(r-e)/2,n,i)-t)>0?r=s:e=s}while(Math.abs(o)>1e-7&&++u<10);return s}(e,r,r+.1,t,n)}return function(t){return 0===t?0:1===t?1:a(l(t),e,i)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=h(r(133)),i=h(r(233)),o=h(r(97)),a=h(r(127)),s=h(r(128)),u=h(r(129)),c=h(r(113)),l=r(237),f=r(100);function h(t){return t&&t.__esModule?t:{default:t}}var d=(0,u.default)("timing"),p=(0,u.default)("keyframes"),v=(0,u.default)("initState"),g=(0,u.default)("readyDefer"),y=(0,u.default)("finishedDefer"),m=(0,u.default)("effects"),b=(0,u.default)("activeReadyTimer"),x=(0,u.default)("activeFinishTimer"),w=(0,u.default)("removeDefer"),M={delay:0,endDelay:0,fill:"auto",iterations:1,playbackRate:1,direction:"normal",easing:"linear",effect:null},k=function(){function t(e,r,n){var s=this;if((0,a.default)(this,t),Array.isArray(e)){var u=[e[0],e,r];e=u[0],r=u[1],n=u[2]}"number"==typeof n&&(n={duration:n}),this[d]=(0,o.default)({},M,n),this[d].easing=(0,f.parseEasing)(this[d].easing),this[p]=(0,l.calculateFramesOffset)(r);var c=this[p][this[p].length-1];this[v]={},(0,i.default)(c).forEach((function(t){Object.prototype.hasOwnProperty.call(e,t)&&"easing"!==t&&"offset"!==t&&(s[v][t]=e[t])})),this[p]=this[p].map((function(t){return(0,o.default)({},s[v],t)})),0!==this[p][0].offset&&this[p].unshift((0,o.default)({},this[v],{offset:0})),c.offset<1&&this[p].push((0,o.default)({},c,{offset:1})),this[m]={},this.timeline=null}return(0,s.default)(t,[{key:"pause",value:function(){this.timeline.playbackRate=0}},{key:b,value:function(){var t=this;this[g]&&!this[g].timerID&&(this.timeline.currentTime<0?this[g].timerID=this.timeline.setTimeout((function(){t[g].resolve(),delete t[g]}),{delay:-this.timeline.currentTime,heading:!1}):this[g].timerID=this.timeline.setTimeout((function(){t[g].resolve(),delete t[g]}),{delay:0,isEntropy:!0}))}},{key:x,value:function(){var t=this,e=this[d],r=e.duration,n=e.iterations,i=e.endDelay,o=Math.ceil(r*n+i-this.timeline.currentTime)+1;this[y]&&!this[y].timerID&&(this[y].timerID=this.timeline.setTimeout((function(){t[y].resolve(),t[w](g),t[w](y)}),{delay:o,heading:!1}),this[y].reverseTimerID=this.timeline.setTimeout((function(){t[y].resolve(),t[w](g),t[w](y),t.timeline=null}),{delay:-this[d].delay-1,heading:!1}))}},{key:"play",value:function(){if("finished"===this.playState&&this.cancel(),"idle"===this.playState){if(this.playbackRate<=0)return;var t=this[d],e=t.delay,r=t.playbackRate,n=t.timeline;this.timeline=new c.default({originTime:e,playbackRate:r},n),this[b](),this[x]()}else"paused"===this.playState&&(this.timeline.playbackRate=this.playbackRate,this[b]())}},{key:w,value:function(t){var e=this[t],r=this.timeline;e&&r&&(r.clearTimeout(e.timerID),e.reverseTimerID&&r.clearTimeout(e.reverseTimerID)),delete this[t]}},{key:"cancel",value:function(){this[w](g),this[w](y),this.timeline=null}},{key:"finish",value:function(){this.timeline&&(this.timeline.currentTime=1/0/this.playbackRate),this[w](g),this[w](y)}},{key:"applyEffects",value:function(t){return(0,o.default)(this[m],t)}},{key:"playbackRate",get:function(){return this[d].playbackRate},set:function(t){this.timeline&&(this.timeline.playbackRate=t),this[d].playbackRate=t}},{key:"playState",get:function(){var t=this.timeline,e=this[d],r=e.iterations,n=e.duration,i=e.endDelay,o="running";if(null==t)o="idle";else if(t.paused)o="paused";else if(t.currentTime<0)o="pending";else{var a=t.currentTime-r*n;a>0&&a<i?o="pending":a>=i&&(o="finished")}return o}},{key:"progress",get:function(){if(!this.timeline)return 0;var t=this[d],e=t.duration,r=t.iterations,n=this.timeline,i=this.playState,o=void 0;if("idle"===i)o=0;else if("paused"===i&&n.currentTime<0)o=0;else if("pending"===i)if(n.currentTime<0)o=0;else{var a=n.seekLocalTime(r*e);o=(0,l.periodicity)(a,e)[1]/e}else"running"!==i&&"paused"!==i||(o=(0,l.periodicity)(n.currentTime,e)[1]/e);return"finished"===i&&(o=(0,l.periodicity)(r,1)[1]),o}},{key:"frame",get:function(){var t=this.playState,e=this[v],r=this[d].fill;if("idle"===t)return e;var n=this.timeline.currentTime,i=this[p].slice(0),o=(0,l.getProgress)(this.timeline,this[d],this.progress),a=o.p,s=o.inverted,u=e;return n<0&&"pending"===t?"backwards"!==r&&"both"!==r||(u=s?i[i.length-1]:i[0]):("pending"!==t&&"finished"!==t||"forwards"===r||"both"===r)&&(u=(0,l.getCurrentFrame)(this[d],i,this[m],a)),u}},{key:"timing",get:function(){return this[d]}},{key:"effects",get:function(){return this[m]}},{key:"baseTimeline",set:function(t){this[d].timeline=t},get:function(){return this[d].timeline}},{key:"ready",get:function(){return this[g]?this[g].promise:this.timeline&&this.timeline.currentTime>=0&&"paused"!==this.playState?n.default.resolve():(this[g]=(0,l.defer)(),this.timeline&&this[b](),this[g]?this[g].promise:n.default.resolve())}},{key:"finished",get:function(){return"finished"===this.playState?n.default.resolve():(this[y]||(this[y]=(0,l.defer)(),this.timeline&&this[x]()),this[y].promise)}}]),t}();e.default=k},function(t,e,r){r(93),r(60),r(67),r(227),r(231),r(232),t.exports=r(16).Promise},function(t,e,r){"use strict";var n,i,o,a,s=r(56),u=r(19),c=r(39),l=r(70),f=r(22),h=r(29),d=r(57),p=r(95),v=r(61),g=r(134),y=r(135).set,m=r(229)(),b=r(101),x=r(136),w=r(230),M=r(137),k=u.TypeError,S=u.process,A=S&&S.versions,R=A&&A.v8||"",_=u.Promise,E="process"==l(S),O=function(){},T=i=b.f,C=!!function(){try{var t=_.resolve(1),e=(t.constructor={})[r(20)("species")]=function(t){t(O,O)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==R.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},D=function(t,e){if(!t._n){t._n=!0;var r=t._c;m((function(){for(var n=t._v,i=1==t._s,o=0,a=function(e){var r,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&I(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?c(k("Promise-chain cycle")):(o=L(r))?o.call(r,u,c):u(r)):c(n)}catch(t){l&&!a&&l.exit(),c(t)}};r.length>o;)a(r[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)}))}},P=function(t){y.call(u,(function(){var e,r,n,i=t._v,o=j(t);if(o&&(e=x((function(){E?S.emit("unhandledRejection",i,t):(r=u.onunhandledrejection)?r({promise:t,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)})),t._h=E||j(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){y.call(u,(function(){var e;E?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},q=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),D(e,!0))},N=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw k("Promise can't be resolved itself");(e=L(t))?m((function(){var n={_w:r,_d:!1};try{e.call(t,c(N,n,1),c(q,n,1))}catch(t){q.call(n,t)}})):(r._v=t,r._s=1,D(r,!1))}catch(t){q.call({_w:r,_d:!1},t)}}};C||(_=function(t){p(this,_,"Promise","_h"),d(t),n.call(this);try{t(c(N,this,1),c(q,this,1))}catch(t){q.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(94)(_.prototype,{then:function(t,e){var r=T(g(this,_));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=E?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&D(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=c(N,t,1),this.reject=c(q,t,1)},b.f=T=function(t){return t===_||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!C,{Promise:_}),r(59)(_,"Promise"),r(124)("Promise"),a=r(16).Promise,f(f.S+f.F*!C,"Promise",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!C),"Promise",{resolve:function(t){return M(s&&this===a?_:this,t)}}),f(f.S+f.F*!(C&&r(122)((function(t){_.all(t).catch(O)}))),"Promise",{all:function(t){var e=this,r=T(e),n=r.resolve,i=r.reject,o=x((function(){var r=[],o=0,a=1;v(t,!1,(function(t){var s=o++,u=!1;r.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,r[s]=t,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=T(e),n=r.reject,i=x((function(){v(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(19),i=r(135).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(55)(a);t.exports=function(){var t,e,r,c=function(){var n,i;for(u&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(c)}}else r=function(){i.call(n,c)};else{var f=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e,r){var n=r(19).navigator;t.exports=n&&n.userAgent||""},function(t,e,r){"use strict";var n=r(22),i=r(16),o=r(19),a=r(134),s=r(137);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then((function(){return r}))}:t,r?function(r){return s(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){"use strict";var n=r(22),i=r(101),o=r(136);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){t.exports={default:r(234),__esModule:!0}},function(t,e,r){r(235),t.exports=r(16).Object.keys},function(t,e,r){var n=r(50),i=r(49);r(236)("keys",(function(){return function(t){return i(n(t))}}))},function(t,e,r){var n=r(22),i=r(16),o=r(44);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=c(r(81)),i=c(r(238)),o=c(r(97)),a=c(r(133));e.defer=function(){var t={};return t.promise=new a.default((function(e,r){t.resolve=e,t.reject=r})),t},e.periodicity=function(t,e){var r=Math.floor(t/e),n=t-r*e;0===n&&r>0&&(n=e,r--);return[r,n]},e.calculateFramesOffset=function(t){var e=(t=t.slice(0))[0],r=t[t.length-1];r.offset=r.offset||1,e.offset=e.offset||0;for(var n=0,i=-1,a=0;a<t.length;a++){var u=t[a];if(null!=u.offset){var c=a-i;if(c>1)for(var l=(u.offset-n)/c,f=0;f<c-1;f++)t[i+f+1].offset=n+l*(f+1);n=u.offset,i=a}if(null!=u.easing&&(u.easing=(0,s.parseEasing)(u.easing)),a>0){var h=null!=t[a].easing;t[a]=(0,o.default)({},t[a-1],t[a]),h||delete t[a].easing}}return t},e.getProgress=function(t,e,r){var n=t.currentTime,i=e.direction,o=e.duration,a=!1;if("reverse"===i)r=1-r,a=!0;else if("alternate"===i||"alternate-reverse"===i){var s=Math.floor(n/o);1===r&&s--,s%2^"alternate-reverse"===i&&(r=1-r,a=!0)}return{p:r,inverted:a}},e.getCurrentFrame=function(t,e,r,n){var i=t.easing,a=t.effect;a||(r=(0,o.default)({},u.default,r));var s={};n=i(n,e);for(var c=1;c<e.length;c++){var f=e[c],h=f.offset;if(h>=n||c===e.length-1){var d=e[c-1],p=d.offset,v=d.easing,g=n;if(v){var y=h-p;g=v((n-p)/y)*y+p}s=a?a(d,f,g,p,h):l(d,f,r,g);break}}return s};var s=r(100),u=c(r(132));function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e,r,o){var a={};return(0,i.default)(e).forEach((function(i){var s=(0,n.default)(i,2),u=s[0],c=s[1];if("offset"!==u&&"easing"!==u){var l=(r[u]||r.default)(t[u],c,o,t.offset,e.offset);null!=l&&(a[u]=l)}})),a}},function(t,e,r){t.exports={default:r(239),__esModule:!0}},function(t,e,r){r(240),t.exports=r(16).Object.entries},function(t,e,r){var n=r(22),i=r(241)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},function(t,e,r){var n=r(26),i=r(49),o=r(43),a=r(62).f;t.exports=function(t){return function(e){for(var r,s=o(e),u=i(s),c=u.length,l=0,f=[];c>l;)r=u[l++],n&&!a.call(s,r)||f.push(t?[r,s[r]]:s[r]);return f}}},function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}},function(t,e,r){var n=r(80),i=r(244);function o(e,r,a){return i()?t.exports=o=Reflect.construct:t.exports=o=function(t,e,r){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return r&&n(o,r.prototype),o},o.apply(null,arguments)}t.exports=o},function(t,e){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}},function(t,e,r){"use strict";t.exports=d;var n=r(246),i=r(63).falseFunc,o=r(260);function a(t){return function(e,r,i){return(r=r||{}).adapter=r.adapter||n,t(e,r,i)}}var s=a(o),u=a(o.compileUnsafe);function c(t){return function(e,r,i){return(i=i||{}).adapter=i.adapter||n,"function"!=typeof e&&(e=u(e,i,r)),e.shouldTestNextSiblings&&(r=function(t,e){Array.isArray(t)||(t=[t]);for(var r=t.slice(0),n=0,i=t.length;n<i;n++){var o=l(r[n],e);r.push.apply(r,o)}return r}(i&&i.context||r,i.adapter)),r=Array.isArray(r)?i.adapter.removeSubsets(r):i.adapter.getChildren(r),t(e,r,i)}}function l(t,e){var r=e.getSiblings(t);if(!Array.isArray(r))return[];for(r=r.slice(0);r.shift()!==t;);return r}var f=c((function(t,e,r){return t!==i&&e&&0!==e.length?r.adapter.findAll(t,e):[]})),h=c((function(t,e,r){return t!==i&&e&&0!==e.length?r.adapter.findOne(t,e):null}));function d(t,e,r){return f(t,e,r)}d.compile=s,d.filters=o.Pseudos.filters,d.pseudos=o.Pseudos.pseudos,d.selectAll=f,d.selectOne=h,d.is=function(t,e,r){return(r=r||{}).adapter=r.adapter||n,("function"==typeof e?e:s(e,r))(t)},d.parse=s,d.iterate=f,d._compileUnsafe=u,d._compileToken=o.compileToken},function(t,e,r){var n=t.exports;[r(247),r(255),r(256),r(257),r(258),r(259)].forEach((function(t){Object.keys(t).forEach((function(e){n[e]=t[e].bind(n)}))}))},function(t,e,r){var n=r(102),i=r(248),o=n.isTag;t.exports={getInnerHTML:function(t,e){return t.children?t.children.map((function(t){return i(t,e)})).join(""):""},getOuterHTML:i,getText:function t(e){return Array.isArray(e)?e.map(t).join(""):o(e)?"br"===e.name?"\n":t(e.children):e.type===n.CDATA?t(e.children):e.type===n.Text?e.data:""}}},function(t,e,r){var n=r(249),i=r(250),o=r(254);o.elementNames.__proto__=null,o.attributeNames.__proto__=null;var a={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},u=t.exports=function(t,e){Array.isArray(t)||t.cheerio||(t=[t]),e=e||{};for(var r="",i=0;i<t.length;i++){var o=t[i];"root"===o.type?r+=u(o.children,e):n.isTag(o)?r+=l(o,e):o.type===n.Directive?r+=f(o):o.type===n.Comment?r+=p(o):o.type===n.CDATA?r+=d(o):r+=h(o,e)}return r},c=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function l(t,e){"foreign"===e.xmlMode&&(t.name=o.elementNames[t.name]||t.name,t.parent&&c.indexOf(t.parent.name)>=0&&(e=Object.assign({},e,{xmlMode:!1}))),!e.xmlMode&&["svg","math"].indexOf(t.name)>=0&&(e=Object.assign({},e,{xmlMode:"foreign"}));var r="<"+t.name,n=function(t,e){if(t){var r,n="";for(var a in t)r=t[a],n&&(n+=" "),"foreign"===e.xmlMode&&(a=o.attributeNames[a]||a),n+=a,(null!==r&&""!==r||e.xmlMode)&&(n+='="'+(e.decodeEntities?i.encodeXML(r):r.replace(/\"/g,"&quot;"))+'"');return n}}(t.attribs,e);return n&&(r+=" "+n),!e.xmlMode||t.children&&0!==t.children.length?(r+=">",t.children&&(r+=u(t.children,e)),s[t.name]&&!e.xmlMode||(r+="</"+t.name+">")):r+="/>",r}function f(t){return"<"+t.data+">"}function h(t,e){var r=t.data||"";return!e.decodeEntities||t.parent&&t.parent.name in a||(r=i.encodeXML(r)),r}function d(t){return"<![CDATA["+t.children[0].data+"]]>"}function p(t){return"\x3c!--"+t.data+"--\x3e"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTag=function(t){return"tag"===t.type||"script"===t.type||"style"===t.type},e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encode=e.decodeStrict=e.decode=void 0;var n=r(139),i=r(142);e.decode=function(t,e){return(!e||e<=0?n.decodeXML:n.decodeHTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?n.decodeXML:n.decodeHTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?i.encodeXML:i.encodeHTML)(t)};var o=r(142);Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var a=r(139);Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})},function(t){t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(253));e.default=function(t){if(t>=55296&&t<=57343||t>1114111)return"�";t in i.default&&(t=i.default[t]);var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)}},function(t){t.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(t){t.exports=JSON.parse('{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}')},function(t,e){var r=e.getChildren=function(t){return t.children},n=e.getParent=function(t){return t.parent};e.getSiblings=function(t){var e=n(t);return e?r(e):[t]},e.getAttributeValue=function(t,e){return t.attribs&&t.attribs[e]},e.hasAttrib=function(t,e){return!!t.attribs&&hasOwnProperty.call(t.attribs,e)},e.getName=function(t){return t.name}},function(t,e){e.removeElement=function(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}},e.replaceElement=function(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var i=e.parent=t.parent;if(i){var o=i.children;o[o.lastIndexOf(t)]=e}},e.appendChild=function(t,e){if(e.parent=t,1!==t.children.push(e)){var r=t.children[t.children.length-2];r.next=e,e.prev=r,e.next=null}},e.append=function(t,e){var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var i=r.children;i.splice(i.lastIndexOf(n),0,e)}}else r&&r.children.push(e)},e.prepend=function(t,e){var r=t.parent;if(r){var n=r.children;n.splice(n.lastIndexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}},function(t,e,r){var n=r(102).isTag;function i(t,e,r,n){for(var o,a=[],s=0,u=e.length;s<u&&!(t(e[s])&&(a.push(e[s]),--n<=0))&&(o=e[s].children,!(r&&o&&o.length>0&&(o=i(t,o,r,n),a=a.concat(o),(n-=o.length)<=0)));s++);return a}t.exports={filter:function(t,e,r,n){Array.isArray(e)||(e=[e]);"number"==typeof n&&isFinite(n)||(n=1/0);return i(t,e,!1!==r,n)},find:i,findOneChild:function(t,e){for(var r=0,n=e.length;r<n;r++)if(t(e[r]))return e[r];return null},findOne:function t(e,r){for(var i=null,o=0,a=r.length;o<a&&!i;o++)n(r[o])&&(e(r[o])?i=r[o]:r[o].children.length>0&&(i=t(e,r[o].children)));return i},existsOne:function t(e,r){for(var i=0,o=r.length;i<o;i++)if(n(r[i])&&(e(r[i])||r[i].children.length>0&&t(e,r[i].children)))return!0;return!1},findAll:function(t,e){var r=[],i=e.slice();for(;i.length;){var o=i.shift();n(o)&&(o.children&&o.children.length>0&&i.unshift.apply(i,o.children),t(o)&&r.push(o))}return r}}},function(t,e,r){var n=r(102),i=e.isTag=n.isTag;e.testElement=function(t,e){for(var r in t)if(t.hasOwnProperty(r)){if("tag_name"===r){if(!i(e)||!t.tag_name(e.name))return!1}else if("tag_type"===r){if(!t.tag_type(e.type))return!1}else if("tag_contains"===r){if(i(e)||!t.tag_contains(e.data))return!1}else if(!e.attribs||!t[r](e.attribs[r]))return!1}else;return!0};var o={tag_name:function(t){return"function"==typeof t?function(e){return i(e)&&t(e.name)}:"*"===t?i:function(e){return i(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return!i(e)&&t(e.data)}:function(e){return!i(e)&&e.data===t}}};function a(t,e){return"function"==typeof e?function(r){return r.attribs&&e(r.attribs[t])}:function(r){return r.attribs&&r.attribs[t]===e}}function s(t,e){return function(r){return t(r)||e(r)}}e.getElements=function(t,e,r,n){var i=Object.keys(t).map((function(e){var r=t[e];return e in o?o[e](r):a(e,r)}));return 0===i.length?[]:this.filter(i.reduce(s),e,r,n)},e.getElementById=function(t,e,r){return Array.isArray(e)||(e=[e]),this.findOne(a("id",t),e,!1!==r)},e.getElementsByTagName=function(t,e,r,n){return this.filter(o.tag_name(t),e,r,n)},e.getElementsByTagType=function(t,e,r,n){return this.filter(o.tag_type(t),e,r,n)}},function(t,e){e.removeSubsets=function(t){for(var e,r,n,i=t.length;--i>-1;){for(e=r=t[i],t[i]=null,n=!0;r;){if(t.indexOf(r)>-1){n=!1,t.splice(i,1);break}r=r.parent}n&&(t[i]=e)}return t};var r=1,n=2,i=4,o=8,a=16,s=e.compareDocumentPosition=function(t,e){var s,u,c,l,f,h,d=[],p=[];if(t===e)return 0;for(s=t;s;)d.unshift(s),s=s.parent;for(s=e;s;)p.unshift(s),s=s.parent;for(h=0;d[h]===p[h];)h++;return 0===h?r:(c=(u=d[h-1]).children,l=d[h],f=p[h],c.indexOf(l)>c.indexOf(f)?u===e?i|a:i:u===t?n|o:n)};e.uniqueSort=function(t){var e,r,o=t.length;for(t=t.slice();--o>-1;)e=t[o],(r=t.indexOf(e))>-1&&r<o&&t.splice(o,1);return t.sort((function(t,e){var r=s(t,e);return r&n?-1:r&i?1:0})),t}},function(t,e,r){t.exports=h;var n=r(261).parse,i=r(63),o=r(263),a=r(144),s=r(264),u=r(146),c=i.trueFunc,l=i.falseFunc,f=u.filters;function h(t,e,r){return d(p(t,e,r),e)}function d(t,e){var r=e.adapter;return function(e){return r.isTag(e)&&t(e)}}function p(t,e,r){return x(n(t,e),e,r)}function v(t){return"pseudo"===t.type&&("scope"===t.name||Array.isArray(t.data)&&t.data.some((function(t){return t.some(v)})))}var g={type:"descendant"},y={type:"_flexibleDescendant"},m={type:"pseudo",name:"scope"},b={};function x(t,e,r){(t=t.filter((function(t){return t.length>0}))).forEach(o);var n=Array.isArray(r);(r=e&&e.context||r)&&!n&&(r=[r]),function(t,e,r){var n=e.adapter,i=!!r&&!!r.length&&r.every((function(t){return t===b||!!n.getParent(t)}));t.forEach((function(t){if(t.length>0&&w(t[0])&&"descendant"!==t[0].type);else{if(!i||(Array.isArray(t)?t.some(v):v(t)))return;t.unshift(g)}t.unshift(m)}))}(t,e,r);var i=!1,a=t.map((function(t){if(t[0]&&t[1]&&"scope"===t[0].name){var o=t[1].type;n&&"descendant"===o?t[1]=y:"adjacent"!==o&&"sibling"!==o||(i=!0)}return function(t,e,r){return t.reduce((function(t,n){if(t===l)return t;if(!(n.type in s))throw new Error("Rule type "+n.type+" is not supported by css-select");return s[n.type](t,n,e,r)}),e&&e.rootFunc||c)}(t,e,r)})).reduce(M,l);return a.shouldTestNextSiblings=i,a}function w(t){return a[t.type]<0}function M(t,e){return e===l||t===c?t:t===l||e===c?e:function(r){return t(r)||e(r)}}function k(t){return t.some(w)}f.not=function(t,e,r,n){var i={xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict),adapter:r.adapter};if(i.strict&&(e.length>1||e.some(k)))throw new Error("complex selectors in :not aren't allowed in strict mode");var o=x(e,i,n);return o===l?t:o===c?l:function(e){return!o(e)&&t(e)}},f.has=function(t,e,r){var n=r.adapter,i={xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict),adapter:n},o=e.some(k)?[b]:null,a=x(e,i,o);return a===l?l:a===c?function(e){return n.getChildren(e).some(n.isTag)&&t(e)}:(a=d(a,r),o?function(e){return t(e)&&(o[0]=e,n.existsOne(a,n.getChildren(e)))}:function(e){return t(e)&&n.existsOne(a,n.getChildren(e))})},f.matches=function(t,e,r,n){return x(e,{xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict),rootFunc:t,adapter:r.adapter},n)},h.compileToken=x,h.compileUnsafe=p,h.Pseudos=u},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(143),e);var o=r(143);Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return o.default}});var a=r(262);Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={equals:"",element:"~",start:"^",end:"$",any:"*",not:"!",hyphen:"|"};function i(t){return t.map(o).join(", ")}function o(t){return t.map(a).join("")}function a(t){switch(t.type){case"child":return" > ";case"parent":return" < ";case"sibling":return" ~ ";case"adjacent":return" + ";case"descendant":return" ";case"universal":return"*";case"tag":return t.name;case"pseudo-element":return"::"+t.name;case"pseudo":return null===t.data?":"+t.name:"string"==typeof t.data?":"+t.name+"("+t.data+")":":"+t.name+"("+i(t.data)+")";case"attribute":return"exists"===t.action?"["+t.name+"]":"id"!==t.name||"equals"!==t.action||t.ignoreCase?"class"!==t.name||"element"!==t.action||t.ignoreCase?"["+t.name+n[t.action]+"='"+t.value+"'"+(t.ignoreCase?"i":"")+"]":"."+t.value:"#"+t.value;default:throw new Error("Unknown type")}}e.default=i},function(t,e,r){t.exports=function(t){for(var e=t.map(o),r=1;r<t.length;r++){var n=e[r];if(!(n<0))for(var i=r-1;i>=0&&n<e[i];i--){var a=t[i+1];t[i+1]=t[i],t[i]=a,e[i+1]=e[i],e[i]=n}}};var n=r(144),i={__proto__:null,exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function o(t){var e=n[t.type];if(e===n.attribute)(e=i[t.action])===i.equals&&"id"===t.name&&(e=9),t.ignoreCase&&(e>>=1);else if(e===n.pseudo)if(t.data)if("has"===t.name||"contains"===t.name)e=0;else if("matches"===t.name||"not"===t.name){e=0;for(var r=0;r<t.data.length;r++)if(1===t.data[r].length){var a=o(t.data[r][0]);if(0===a){e=0;break}a>e&&(e=a)}t.data.length>1&&e>0&&(e-=1)}else e=1;else e=3;return e}},function(t,e,r){var n=r(145),i=r(146);t.exports={__proto__:null,attribute:n.compile,pseudo:i.compile,tag:function(t,e,r){var n=e.name,i=r.adapter;return function(e){return i.getName(e)===n&&t(e)}},descendant:function(t,e,r){var n="undefined"!=typeof WeakSet?new WeakSet:null,i=r.adapter;return function(e){for(var r=!1;!r&&(e=i.getParent(e));)n&&n.has(e)||!(r=t(e))&&n&&n.add(e);return r}},_flexibleDescendant:function(t,e,r){var n=r.adapter;return function(e){for(var r=t(e);!r&&(e=n.getParent(e));)r=t(e);return r}},parent:function(t,e,r){if(r&&r.strict)throw new Error("Parent selector isn't part of CSS3");var n=r.adapter;return function(t){return n.getChildren(t).some(i)};function i(e){return n.isTag(e)&&t(e)}},child:function(t,e,r){var n=r.adapter;return function(e){var r=n.getParent(e);return!!r&&t(r)}},sibling:function(t,e,r){var n=r.adapter;return function(e){for(var r=n.getSiblings(e),i=0;i<r.length;i++)if(n.isTag(r[i])){if(r[i]===e)break;if(t(r[i]))return!0}return!1}},adjacent:function(t,e,r){var n=r.adapter;return function(e){for(var r,i=n.getSiblings(e),o=0;o<i.length;o++)if(n.isTag(i[o])){if(i[o]===e)break;r=i[o]}return!!r&&t(r)}},universal:function(t){return t}}},function(t,e,r){var n=r(266),i=r(267);t.exports=function(t){return i(n(t))},t.exports.parse=n,t.exports.compile=i},function(t,e){t.exports=function(t){if("even"===(t=t.trim().toLowerCase()))return[2,0];if("odd"===t)return[2,1];var e,n=t.match(r);if(!n)throw new SyntaxError("n-th rule couldn't be parsed ('"+t+"')");return n[1]?(e=parseInt(n[1],10),isNaN(e)&&(e="-"===n[1].charAt(0)?-1:1)):e=0,[e,n[3]?parseInt((n[2]||"")+n[3],10):0]};var r=/^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/},function(t,e,r){t.exports=function(t){var e=t[0],r=t[1]-1;if(r<0&&e<=0)return o;if(-1===e)return function(t){return t<=r};if(0===e)return function(t){return t===r};if(1===e)return r<0?i:function(t){return t>=r};var n=r%e;n<0&&(n+=e);if(e>1)return function(t){return t>=r&&t%e===n};return e*=-1,function(t){return t<=r&&t%e===n}};var n=r(63),i=n.trueFunc,o=n.falseFunc},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return G}));var n=r(15),i=r.n(n),o=r(25),a=r.n(o),s=r(5),u=r.n(s),c=r(6),l=r.n(c),f=r(36),h=r.n(f),d=r(9),p=r.n(d),v=r(8),g=r.n(v),y=r(7),m=r.n(y),b=r(1),x=r.n(b),w=r(3),M=r.n(w),k=r(2),S=r.n(k),A=r(13),R=r(18),_=r(38),E=r(65),O=r(107),T=r(64),C=r(269),L=r(47),D=r(21),P=r(12);function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=x()(t);if(e){var i=x()(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m()(this,r)}}r(0).glMatrix.setMatrixArrayType(Array);var I=Symbol("enteredTargets");function q(t){return t.id=t.id||"_layer".concat(Math.random().toString(36).slice(2,12)),t.dataset||(t.dataset={}),t.dataset.layerId=t.id,t.connect=function(e,r){t.parent=e,Object.defineProperty(t,"zOrder",{value:r,writable:!1,configurable:!0})},t.disconnect=function(e){delete t.zOrder},t.canvas=t,t.getResolution=function(){return{width:0,height:0}},t.setResolution=function(){return!1},t.options={handleEvent:!1},t}function N(t,e){for(var r=t.children,n=null,i=0;i<r.length;i++){var o=r[i];if(e!==o&&null==n||(n=o),n&&n!==e&&!n.offscreen)return n.canvas}return null}function F(t,e){var r=S()(t.renderOffset,2),n=r[0],i=r[1],o=t.getResolution(),a=o.width,s=o.height,u=t.displayRatio;t.renderer.drawImage(e.canvas,-n/u,-i/u,a/u,s/u)}var U={};function B(t){var e=t.container,r=t.options,n=r.left,i=r.top,o=r.displayRatio;e.addEventListener("mouseleave",(function(e){var r=t[I];if(r.size){var n=new L.a("mouseleave");n.setOriginalEvent(e),M()(r).forEach((function(t){t.dispatchEvent(n)})),t[I].clear()}}),{passive:!0}),["mousedown","mouseup","mousemove","mousewheel","wheel","touchstart","touchend","touchmove","touchcancel","click","dblclick","longpress","tap"].forEach((function(r){e.addEventListener(r,(function(e){var r=t.orderedChildren;Object(C.a)(e,{offsetLeft:n,offsetTop:i,displayRatio:o}).forEach((function(n){var i=n.identifier;if("touchmove"===n.type||"touchend"===n.type){var o=U[i];o&&o.dispatchEvent(n),"touchend"===n.type&&delete U[i]}else{for(var a=r.length-1;a>=0;a--){var s=r[a];if(!1!==s.options.handleEvent){if(s.dispatchPointerEvent(n)&&n.target!==s)break;n.cancelBubble=!1}}if(n.target===r[0])for(var u=r.length-1;u>=0;u--){var c=r[u];if(!1!==c.options.handleEvent){n.target=c;break}}}var l=n.target;if("touchstart"===n.type&&(U[i]=n.target),"mousemove"===n.type){var f,h=t[I];if(l){var d=l.ancestors||[];f=new Set([l].concat(M()(d)))}else f=new Set;var p=Object.entries(e);if(!h.has(l)&&l){var v=new L.a("mouseenter");v.setOriginalEvent(e),p.forEach((function(t){var e=S()(t,2),r=e[0],n=e[1];v[r]=n})),h.add(l),l.dispatchEvent(v);var g=l.ancestors;g&&g.forEach((function(t){t instanceof _.a&&!h.has(t)&&(h.add(t),t.dispatchEvent(v))}))}var y=new L.a("mouseleave");y.setOriginalEvent(e),p.forEach((function(t){var e=S()(t,2),r=e[0],n=e[1];y[r]=n})),M()(h).forEach((function(t){f.has(t)||(h.delete(t),t.dispatchEvent(y))}))}}))}),{passive:!0})}))}function V(t,e){if(e&&e.style){var r=t.width,n=t.height,i=t.mode,o=t.container,a=o.clientWidth,s=o.clientHeight;r=r||a,n=n||s,"static"===i?(e.style.width="".concat(r,"px"),e.style.height="".concat(n,"px")):(e.style.top="0",e.style.left="0",e.style.width="".concat(a,"px"),e.style.height="".concat(s,"px"),e.style.transform="",e.style.webkitTransform="")}}var z=Symbol("offscreenLayerCount"),G=function(e){g()(o,e);var r,n=j(o);function o(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(u()(this,o),e=n.call(this),!r.container){if("function"!=typeof A.a.Container)throw new Error("No container specified.");r.container=new A.a.Container(r.width||300,r.height||150)}if(e.container=r.container,e.container.style&&(e.container.style.overflow||(e.container.style.overflow="hidden"),e.container.style.position||(e.container.style.position="relative")),e.options=r,r.displayRatio=r.displayRatio||1,r.mode=r.mode||"scale",r.left=0,r.top=0,r.autoResize=!1!==r.autoResize,r.autoResize&&t.addEventListener){var i=h()(e);t.addEventListener("resize",(function e(){"undefined"!=typeof document&&document.contains(i.container)?i.resize():t.removeEventListener("resize",e)}))}return e[I]=new Set,e.setResolution(r),B(h()(e)),e[z]=0,e}return l()(o,[{key:"appendChild",value:function(t){t instanceof E.a||t instanceof O.a||q(t);var e=p()(x()(o.prototype),"appendChild",this).call(this,t),r=t.canvas;return t.offscreen?this[z]++:this.container.appendChild(r),V(this.options,r),t.setResolution(this.getResolution()),e}},{key:"forceUpdate",value:function(){var t=this;this.hasOffscreenCanvas&&!this._requestID&&(this._requestID=Object(R.b)((function(){delete t._requestID,t.render()})))}},{key:"insertBefore",value:function(t,e){t instanceof E.a||t instanceof O.a||q(t);var r=p()(x()(o.prototype),"insertBefore",this).call(this,t,e),n=t.canvas;if(!t.offscreen){var i=N(this,t);this.container.insertBefore(n,i)}return V(this.options,n),t.setResolution(this.getResolution()),r}},{key:"layer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=Object.assign({},this.options,e)).id=t;for(var r=this.orderedChildren,n=0;n<r.length;n++)if(r[n].id===t)return r[n];var i,o=e.worker;return i=o?new O.a(e):new E.a(e),this.appendChild(i),i}},{key:"preload",value:(r=a()(i.a.mark((function t(){var e,r,n,o,a,s,u,c,l=this,f=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=f.length,r=new Array(e),n=0;n<e;n++)r[n]=f[n];for(o=[],a=[],s=[],u=function(t){var e=r[t],n=void 0;if("string"==typeof e)n=Object(D.f)(e);else if(Array.isArray(e))n=D.e.apply(void 0,M()(e));else{var i=e.id,u=e.src;n=Object(D.f)(u,i)}n instanceof Promise||(n=Promise.resolve(n)),a.push(n.then((function(e){o.push(e),s[t]=e;var n=new L.a({type:"preload",detail:{current:e,loaded:o,resources:r}});l.dispatchEvent(n)})))},c=0;c<r.length;c++)u(c);return t.next=6,Promise.all(a);case 6:return t.abrupt("return",s);case 7:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"removeChild",value:function(t){var e=p()(x()(o.prototype),"removeChild",this).call(this,t);if(e){t._prepareRenderFinished&&t._prepareRenderFinished();var r=t.canvas;r&&r.remove&&r.remove(),t.offscreen&&this[z]--}return e}},{key:"render",value:function(){for(var t=this.orderedChildren,e=null,r=[],n=0;n<t.length;n++){var i=t[n],o=r.length>0;if(i instanceof E.a&&!i.offscreen)if(i.autoRender)if(e=i,o){i.renderer.clear();for(var a=0;a<r.length;a++){var s=r[a];s.render(),F(i,s)}r.length=0,i.render({clear:!1})}else i.prepareRender&&i.render();else o&&(console.warn("Some offscreen canvas will not be rendered."),r.length=0);else i.offscreen?e?(i.prepareRender&&i.render(),F(e,i)):r.push(i):i instanceof O.a&&o&&(console.warn("Some offscreen canvas will not be rendered."),r.length=0)}}},{key:"replaceChild",value:function(t,e){var r=p()(x()(o.prototype),"replaceChild",this).call(this,t,e);e.canvas.remove&&e.canvas.remove(),e.offscreen&&this[z]--;var n=t.canvas;if(!t.offscreen){var i=N(this,t);this.container.insertBefore(n,i)}return V(this.options,n),t.setResolution(this.getResolution()),r}},{key:"resize",value:function(){var t=this.options;this.children.forEach((function(e){V(t,e.canvas)})),this.setResolution(t),this.dispatchEvent({type:"resize"})}},{key:"setResolution",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.width,r=t.height,n=this.container,i=n.clientWidth,a=n.clientHeight;null!=e&&null!=r||(e=null==e?i:e,r=null==r?a:r);var s=this.options,u=s.mode,c=s.displayRatio;if(e*=c,r*=c,this.options.left=0,this.options.top=0,"stickyHeight"===u||"stickyLeft"===u||"stickyRight"===u){var l=e;e=i*r/a,"stickyHeight"===u&&(this.options.left=.5*(e-l)),"stickyRight"===u&&(this.options.left=e-l)}else if("stickyWidth"===u||"stickyTop"===u||"stickyBottom"===u){var f=r;r=a*e/i,"stickyWidth"===u&&(this.options.top=.5*(r-f)),"stickyBottom"===u&&(this.options.top=r-f)}p()(x()(o.prototype),"setResolution",this).call(this,{width:e,height:r})}},{key:"snapshot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.offscreen,r=void 0!==e&&e,n=t.layers,i=r?"snapshotOffScreenCanvas":"snapshotCanvas",o=this.getResolution(),a=o.width,s=o.height;this[i]=this[i]||A.a.createCanvas(a,s,{offscreen:r});var u=this[i].getContext("2d");n=n||this.orderedChildren,u.clearRect(0,0,a,s);for(var c=0;c<n.length;c++){var l=n[c];if(!l.options.ignoreSnapshot){l.render&&l.render();var f=l.canvas;f&&f!==l&&u.drawImage(f,0,0,a,s)}}return this[i]}},{key:"hasOffscreenCanvas",get:function(){return this[z]>0}},{key:"displayRatio",set:function(t){this.options.displayRatio!==t&&(this.options.displayRatio=t,this.resize())},get:function(){return this.options.displayRatio}},{key:"height",set:function(t){this.options.height!==t&&(this.options.height=t,this.resize())},get:function(){return this.options.height}},{key:"mode",set:function(t){this.options.mode!==t&&(this.options.mode=t,this.resize())},get:function(){return this.options.mode}},{key:"width",set:function(t){this.options.width!==t&&(this.options.width=t,this.resize())},get:function(){return this.options.width}}]),o}(T.a);P.a.registerNode(G,"scene")}).call(this,r(78))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(47);function i(t){for(var e,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.offsetTop,a=void 0===o?0:o,s=i.offsetLeft,u=void 0===s?0:s,c=i.displayRatio,l=void 0===c?1:c,f=[],h=t.target.getBoundingClientRect(),d=h.left,p=h.top,v=h.width,g=h.height,y=t.target.width,m=t.target.height,b=t.changedTouches||[t],x=0;x<b.length;x++){var w=b[x],M=w.identifier,k=w.clientX,S=w.clientY;null!=k&&null!=S&&f.push({x:Math.round((0|k)-d),y:Math.round((0|S)-p),identifier:M})}f.length<=0&&f.push({x:e,y:r});var A=[];return f.forEach((function(i){null!=i.x&&null!=i.y&&(e=(i.x*y/v-u)/l,r=(i.y*m/g-a)/l);var o=new n.a(t);Object.defineProperties(o,{layerX:{value:e},layerY:{value:r},originalX:{value:i.x},originalY:{value:i.y},x:{value:e},y:{value:r},identifier:{value:i.identifier}}),A.push(o)})),A}r(0).glMatrix.setMatrixArrayType(Array)},function(t,e,r){"use strict";r.r(e),r.d(e,"version",(function(){return L})),r.d(e,"helpers",(function(){return C})),r.d(e,"createElement",(function(){return E})),r.d(e,"isSpriteNode",(function(){return O})),r.d(e,"registerNode",(function(){return T}));var n=r(13);r.d(e,"ENV",(function(){return n.a}));var i=r(18);r.d(e,"requestAnimationFrame",(function(){return i.b})),r.d(e,"cancelAnimationFrame",(function(){return i.a}));var o=r(38);r.d(e,"Node",(function(){return o.a}));var a=r(138);r.d(e,"Cloud",(function(){return a.a}));var s=r(41);r.d(e,"Block",(function(){return s.a}));var u=r(71);r.d(e,"Sprite",(function(){return u.a}));var c=r(30);r.d(e,"Path",(function(){return c.a}));var l=r(147);r.d(e,"Rect",(function(){return l.a}));var f=r(148);r.d(e,"Triangle",(function(){return f.a}));var h=r(149);r.d(e,"Parallel",(function(){return h.a}));var d=r(150);r.d(e,"Regular",(function(){return d.a}));var p=r(151);r.d(e,"Star",(function(){return p.a}));var v=r(72);r.d(e,"Ellipse",(function(){return v.a}));var g=r(152);r.d(e,"Arc",(function(){return g.a}));var y=r(153);r.d(e,"Ring",(function(){return y.a}));var m=r(31);r.d(e,"Polyline",(function(){return m.a}));var b=r(154);r.d(e,"Label",(function(){return b.a}));var x=r(64);r.d(e,"Group",(function(){return x.a}));var w=r(65);r.d(e,"Layer",(function(){return w.a}));var M=r(155);r.d(e,"SpriteSvg",(function(){return M.a}));var k=r(107);r.d(e,"LayerWorker",(function(){return k.a}));var S=r(268);r.d(e,"Scene",(function(){return S.a}));var A=r(12),R=r(14);r.d(e,"Color",(function(){return R.a})),r.d(e,"Gradient",(function(){return R.b}));var _=r(4);r(0).glMatrix.setMatrixArrayType(Array);var E=A.a.createElement,O=A.a.isSpriteNode,T=A.a.registerNode,C={parseColor:R.c,sizeToPixel:_.b,toArray:_.c,toString:_.e,toNumber:_.d},L="3.7.27"}])}));