Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@deck.gl/google-maps

Package Overview
Dependencies
Maintainers
6
Versions
400
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deck.gl/google-maps - npm Package Compare versions

Comparing version 8.9.2 to 8.9.3

2

dist.min.js

@@ -7,4 +7,4 @@ (function webpackUniversalModuleDefinition(root, factory) {

else root['deck'] = factory();})(globalThis, function () {
"use strict";var __exports__=(()=>{var Oe=Object.create;var er=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty;var F=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Le=(r,t)=>{for(var a in t)er(r,a,{get:t[a],enumerable:!0})},rr=(r,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of Ee(t))!we.call(r,e)&&e!==a&&er(r,e,{get:()=>t[e],enumerable:!(n=_e(t,e))||n.enumerable});return r},I=(r,t,a)=>(rr(r,t,"default"),a&&rr(a,t,"default")),Y=(r,t,a)=>(a=r!=null?Oe(Re(r)):{},rr(t||!r||!r.__esModule?er(a,"default",{value:r,enumerable:!0}):a,r)),Pe=r=>rr(er({},"__esModule",{value:!0}),r);var tr=F((yt,_r)=>{_r.exports=globalThis.deck});var wr=F((gt,Rr)=>{function Ae(r,t){if(r==null)return{};var a={},n=Object.keys(r),e,i;for(i=0;i<n.length;i++)e=n[i],!(t.indexOf(e)>=0)&&(a[e]=r[e]);return a}Rr.exports=Ae});var Pr=F((dt,Lr)=>{var Se=wr();function Te(r,t){if(r==null)return{};var a=Se(r,t),n,e;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(e=0;e<i.length;e++)n=i[e],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(a[n]=r[n])}return a}Lr.exports=Te});var Sr=F((kt,Ar)=>{function ze(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}Ar.exports=ze});var Nr=F((Ot,zr)=>{function Tr(r,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Ne(r,t,a){return t&&Tr(r.prototype,t),a&&Tr(r,a),r}zr.exports=Ne});var vr=F((_t,br)=>{function be(r,t,a){return t in r?Object.defineProperty(r,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[t]=a,r}br.exports=be});var jr=F((Et,Cr)=>{Cr.exports=globalThis.luma});var J={};Le(J,{GoogleMapsOverlay:()=>ke});var V={},Er=Y(tr());I(V,Y(tr()));if(!Er.Layer)throw new Error("@deck.gl/core is not found");I(J,V);var Me=Y(Pr()),ge=Y(Sr()),de=Y(Nr()),X=Y(vr()),K=Y(jr());var ve=Y(vr()),pe=Y(tr());function b(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function qr(r,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function C(r,t,a){return t&&qr(r.prototype,t),a&&qr(r,a),r}function U(r,t){return U=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},U(r,t)}function j(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&U(r,t)}function B(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(a){return typeof a}:B=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},B(r)}function pr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function q(r,t){if(t&&(B(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pr(r)}function R(r){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},R(r)}function nr(r,t){if(!r)throw new Error("math.gl assertion ".concat(t))}var Vt=1/Math.PI*180,Dt=1/180*Math.PI,L={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function Vr(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.precision,n=a===void 0?L.precision:a;return r=Ce(r),"".concat(parseFloat(r.toPrecision(n)))}function $(r){return Array.isArray(r)||ArrayBuffer.isView(r)&&!(r instanceof DataView)}function ur(r,t,a){var n=L.EPSILON;a&&(L.EPSILON=a);try{if(r===t)return!0;if($(r)&&$(t)){if(r.length!==t.length)return!1;for(var e=0;e<r.length;++e)if(!ur(r[e],t[e]))return!1;return!0}return r&&r.equals?r.equals(t):t&&t.equals?t.equals(r):typeof r=="number"&&typeof t=="number"?Math.abs(r-t)<=L.EPSILON*Math.max(1,Math.abs(r),Math.abs(t)):!1}finally{L.EPSILON=n}}function Ce(r){return Math.round(r/L.EPSILON)*L.EPSILON}function je(r){var t=qe();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function qe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ve(r){function t(){var a=Reflect.construct(r,Array.from(arguments));return Object.setPrototypeOf(a,Object.getPrototypeOf(this)),a}return t.prototype=Object.create(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r,t}var ar=function(r){j(a,r);var t=je(a);function a(){return b(this,a),t.apply(this,arguments)}return C(a,[{key:"clone",value:function(){return new this.constructor().copy(this)}},{key:"fromArray",value:function(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=0;s<this.ELEMENTS;++s)this[s]=e[s+i];return this.check()}},{key:"toArray",value:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=0;s<this.ELEMENTS;++s)e[i+s]=this[s];return e}},{key:"from",value:function(e){return Array.isArray(e)?this.copy(e):this.fromObject(e)}},{key:"to",value:function(e){return e===this?this:$(e)?this.toArray(e):this.toObject(e)}},{key:"toTarget",value:function(e){return e?this.to(e):this}},{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toString",value:function(){return this.formatString(L)}},{key:"formatString",value:function(e){for(var i="",s=0;s<this.ELEMENTS;++s)i+=(s>0?", ":"")+Vr(this[s],e);return"".concat(e.printTypes?this.constructor.name:"","[").concat(i,"]")}},{key:"equals",value:function(e){if(!e||this.length!==e.length)return!1;for(var i=0;i<this.ELEMENTS;++i)if(!ur(this[i],e[i]))return!1;return!0}},{key:"exactEquals",value:function(e){if(!e||this.length!==e.length)return!1;for(var i=0;i<this.ELEMENTS;++i)if(this[i]!==e[i])return!1;return!0}},{key:"negate",value:function(){for(var e=0;e<this.ELEMENTS;++e)this[e]=-this[e];return this.check()}},{key:"lerp",value:function(e,i,s){if(s===void 0)return this.lerp(this,e,i);for(var c=0;c<this.ELEMENTS;++c){var f=e[c];this[c]=f+s*(i[c]-f)}return this.check()}},{key:"min",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=Math.min(e[i],this[i]);return this.check()}},{key:"max",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=Math.max(e[i],this[i]);return this.check()}},{key:"clamp",value:function(e,i){for(var s=0;s<this.ELEMENTS;++s)this[s]=Math.min(Math.max(this[s],e[s]),i[s]);return this.check()}},{key:"add",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]+=h[o];return this.check()}},{key:"subtract",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]-=h[o];return this.check()}},{key:"scale",value:function(e){if(typeof e=="number")for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;else for(var s=0;s<this.ELEMENTS&&s<e.length;++s)this[s]*=e[s];return this.check()}},{key:"multiplyByScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;return this.check()}},{key:"check",value:function(){if(L.debug&&!this.validate())throw new Error("math.gl: ".concat(this.constructor.name," some fields set to invalid numbers'"));return this}},{key:"validate",value:function(){for(var e=this.length===this.ELEMENTS,i=0;i<this.ELEMENTS;++i)e=e&&Number.isFinite(this[i]);return e}},{key:"sub",value:function(e){return this.subtract(e)}},{key:"setScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=e;return this.check()}},{key:"addScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]+=e;return this.check()}},{key:"subScalar",value:function(e){return this.addScalar(-e)}},{key:"multiplyScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;return this.check()}},{key:"divideScalar",value:function(e){return this.multiplyByScalar(1/e)}},{key:"clampScalar",value:function(e,i){for(var s=0;s<this.ELEMENTS;++s)this[s]=Math.min(Math.max(this[s],e),i);return this.check()}},{key:"elements",get:function(){return this}}]),a}(Ve(Array));function De(r,t){if(r.length!==t)return!1;for(var a=0;a<r.length;++a)if(!Number.isFinite(r[a]))return!1;return!0}function N(r){if(!Number.isFinite(r))throw new Error("Invalid number ".concat(r));return r}function ir(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(L.debug&&!De(r,t))throw new Error("math.gl: ".concat(a," some fields set to invalid numbers'"));return r}function Ye(r){var t=Ie();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Ie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Dr=function(r){j(a,r);var t=Ye(a);function a(){return b(this,a),t.apply(this,arguments)}return C(a,[{key:"x",get:function(){return this[0]},set:function(e){this[0]=N(e)}},{key:"y",get:function(){return this[1]},set:function(e){this[1]=N(e)}},{key:"len",value:function(){return Math.sqrt(this.lengthSquared())}},{key:"magnitude",value:function(){return this.len()}},{key:"lengthSquared",value:function(){for(var e=0,i=0;i<this.ELEMENTS;++i)e+=this[i]*this[i];return e}},{key:"magnitudeSquared",value:function(){return this.lengthSquared()}},{key:"distance",value:function(e){return Math.sqrt(this.distanceSquared(e))}},{key:"distanceSquared",value:function(e){for(var i=0,s=0;s<this.ELEMENTS;++s){var c=this[s]-e[s];i+=c*c}return N(i)}},{key:"dot",value:function(e){for(var i=0,s=0;s<this.ELEMENTS;++s)i+=this[s]*e[s];return N(i)}},{key:"normalize",value:function(){var e=this.magnitude();if(e!==0)for(var i=0;i<this.ELEMENTS;++i)this[i]/=e;return this.check()}},{key:"multiply",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]*=h[o];return this.check()}},{key:"divide",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]/=h[o];return this.check()}},{key:"lengthSq",value:function(){return this.lengthSquared()}},{key:"distanceTo",value:function(e){return this.distance(e)}},{key:"distanceToSquared",value:function(e){return this.distanceSquared(e)}},{key:"getComponent",value:function(e){return nr(e>=0&&e<this.ELEMENTS,"index is out of range"),N(this[e])}},{key:"setComponent",value:function(e,i){return nr(e>=0&&e<this.ELEMENTS,"index is out of range"),this[e]=i,this.check()}},{key:"addVectors",value:function(e,i){return this.copy(e).add(i)}},{key:"subVectors",value:function(e,i){return this.copy(e).subtract(i)}},{key:"multiplyVectors",value:function(e,i){return this.copy(e).multiply(i)}},{key:"addScaledVector",value:function(e,i){return this.add(new this.constructor(e).multiplyScalar(i))}}]),a}(ar);var W=1e-6,D=typeof Float32Array<"u"?Float32Array:Array;var sn=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var r=0,t=arguments.length;t--;)r+=arguments[t]*arguments[t];return Math.sqrt(r)});function We(){var r=new D(2);return D!=Float32Array&&(r[0]=0,r[1]=0),r}function Ir(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[2]*e,r[1]=a[1]*n+a[3]*e,r}function Wr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[2]*e+a[4],r[1]=a[1]*n+a[3]*e+a[5],r}function Fr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[3]*e+a[6],r[1]=a[1]*n+a[4]*e+a[7],r}function cr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[4]*e+a[12],r[1]=a[1]*n+a[5]*e+a[13],r}var cn=function(){var r=We();return function(t,a,n,e,i,s){var c,f;for(a||(a=2),n||(n=0),e?f=Math.min(e*a+n,t.length):f=t.length,c=n;c<f;c+=a)r[0]=t[c],r[1]=t[c+1],i(r,r,s),t[c]=r[0],t[c+1]=r[1];return t}}();function fr(r,t,a){var n=t[0],e=t[1],i=a[3]*n+a[7]*e||1;return r[0]=(a[0]*n+a[4]*e)/i,r[1]=(a[1]*n+a[5]*e)/i,r}function Zr(r,t,a){var n=t[0],e=t[1],i=t[2],s=a[3]*n+a[7]*e+a[11]*i||1;return r[0]=(a[0]*n+a[4]*e+a[8]*i)/s,r[1]=(a[1]*n+a[5]*e+a[9]*i)/s,r[2]=(a[2]*n+a[6]*e+a[10]*i)/s,r}function Fe(r){var t=Be();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Be(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Q=function(r){j(a,r);var t=Fe(a);function a(){var n,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return b(this,a),n=t.call(this,2),$(e)&&arguments.length===1?n.copy(e):(L.debug&&(N(e),N(i)),n[0]=e,n[1]=i),n}return C(a,[{key:"set",value:function(e,i){return this[0]=e,this[1]=i,this.check()}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this.check()}},{key:"fromObject",value:function(e){return L.debug&&(N(e.x),N(e.y)),this[0]=e.x,this[1]=e.y,this.check()}},{key:"toObject",value:function(e){return e.x=this[0],e.y=this[1],e}},{key:"ELEMENTS",get:function(){return 2}},{key:"horizontalAngle",value:function(){return Math.atan2(this.y,this.x)}},{key:"verticalAngle",value:function(){return Math.atan2(this.x,this.y)}},{key:"transform",value:function(e){return this.transformAsPoint(e)}},{key:"transformAsPoint",value:function(e){return cr(this,this,e),this.check()}},{key:"transformAsVector",value:function(e){return fr(this,this,e),this.check()}},{key:"transformByMatrix3",value:function(e){return Fr(this,this,e),this.check()}},{key:"transformByMatrix2x3",value:function(e){return Wr(this,this,e),this.check()}},{key:"transformByMatrix2",value:function(e){return Ir(this,this,e),this.check()}}]),a}(Dr);function Ze(){var r=new D(3);return D!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Kr(r,t,a){var n=t[0],e=t[1],i=t[2],s=a[3]*n+a[7]*e+a[11]*i+a[15];return s=s||1,r[0]=(a[0]*n+a[4]*e+a[8]*i+a[12])/s,r[1]=(a[1]*n+a[5]*e+a[9]*i+a[13])/s,r[2]=(a[2]*n+a[6]*e+a[10]*i+a[14])/s,r}var gn=function(){var r=Ze();return function(t,a,n,e,i,s){var c,f;for(a||(a=3),n||(n=0),e?f=Math.min(e*a+n,t.length):f=t.length,c=n;c<f;c+=a)r[0]=t[c],r[1]=t[c+1],r[2]=t[c+2],i(r,r,s),t[c]=r[0],t[c+1]=r[1],t[c+2]=r[2];return t}}();function $e(r){var t=Xe();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Xe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var $r=function(r){j(a,r);var t=$e(a);function a(){return b(this,a),t.apply(this,arguments)}return C(a,[{key:"toString",value:function(){var e="[";if(L.printRowMajor){e+="row-major:";for(var i=0;i<this.RANK;++i)for(var s=0;s<this.RANK;++s)e+=" ".concat(this[s*this.RANK+i])}else{e+="column-major:";for(var c=0;c<this.ELEMENTS;++c)e+=" ".concat(this[c])}return e+="]",e}},{key:"getElementIndex",value:function(e,i){return i*this.RANK+e}},{key:"getElement",value:function(e,i){return this[i*this.RANK+e]}},{key:"setElement",value:function(e,i,s){return this[i*this.RANK+e]=N(s),this}},{key:"getColumn",value:function(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Array(this.RANK).fill(-0),s=e*this.RANK,c=0;c<this.RANK;++c)i[c]=this[s+c];return i}},{key:"setColumn",value:function(e,i){for(var s=e*this.RANK,c=0;c<this.RANK;++c)this[s+c]=i[c];return this}}]),a}(ar);function Ge(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Xr(r,t){if(r===t){var a=t[1],n=t[2],e=t[3],i=t[6],s=t[7],c=t[11];r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=a,r[6]=t[9],r[7]=t[13],r[8]=n,r[9]=i,r[11]=t[14],r[12]=e,r[13]=s,r[14]=c}else r[0]=t[0],r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=t[1],r[5]=t[5],r[6]=t[9],r[7]=t[13],r[8]=t[2],r[9]=t[6],r[10]=t[10],r[11]=t[14],r[12]=t[3],r[13]=t[7],r[14]=t[11],r[15]=t[15];return r}function Gr(r,t){var a=t[0],n=t[1],e=t[2],i=t[3],s=t[4],c=t[5],f=t[6],h=t[7],o=t[8],l=t[9],v=t[10],p=t[11],u=t[12],y=t[13],x=t[14],g=t[15],O=a*c-n*s,m=a*f-e*s,M=a*h-i*s,d=n*f-e*c,k=n*h-i*c,A=e*h-i*f,E=o*y-l*u,S=o*x-v*u,P=o*g-p*u,w=l*x-v*y,T=l*g-p*y,z=v*g-p*x,_=O*z-m*T+M*w+d*P-k*S+A*E;return _?(_=1/_,r[0]=(c*z-f*T+h*w)*_,r[1]=(e*T-n*z-i*w)*_,r[2]=(y*A-x*k+g*d)*_,r[3]=(v*k-l*A-p*d)*_,r[4]=(f*P-s*z-h*S)*_,r[5]=(a*z-e*P+i*S)*_,r[6]=(x*M-u*A-g*m)*_,r[7]=(o*A-v*M+p*m)*_,r[8]=(s*T-c*P+h*E)*_,r[9]=(n*P-a*T-i*E)*_,r[10]=(u*k-y*M+g*O)*_,r[11]=(l*M-o*k-p*O)*_,r[12]=(c*S-s*w-f*E)*_,r[13]=(a*w-n*S+e*E)*_,r[14]=(y*m-u*d-x*O)*_,r[15]=(o*d-l*m+v*O)*_,r):null}function Ur(r){var t=r[0],a=r[1],n=r[2],e=r[3],i=r[4],s=r[5],c=r[6],f=r[7],h=r[8],o=r[9],l=r[10],v=r[11],p=r[12],u=r[13],y=r[14],x=r[15],g=t*s-a*i,O=t*c-n*i,m=t*f-e*i,M=a*c-n*s,d=a*f-e*s,k=n*f-e*c,A=h*u-o*p,E=h*y-l*p,S=h*x-v*p,P=o*y-l*u,w=o*x-v*u,T=l*x-v*y;return g*T-O*w+m*P+M*S-d*E+k*A}function xr(r,t,a){var n=t[0],e=t[1],i=t[2],s=t[3],c=t[4],f=t[5],h=t[6],o=t[7],l=t[8],v=t[9],p=t[10],u=t[11],y=t[12],x=t[13],g=t[14],O=t[15],m=a[0],M=a[1],d=a[2],k=a[3];return r[0]=m*n+M*c+d*l+k*y,r[1]=m*e+M*f+d*v+k*x,r[2]=m*i+M*h+d*p+k*g,r[3]=m*s+M*o+d*u+k*O,m=a[4],M=a[5],d=a[6],k=a[7],r[4]=m*n+M*c+d*l+k*y,r[5]=m*e+M*f+d*v+k*x,r[6]=m*i+M*h+d*p+k*g,r[7]=m*s+M*o+d*u+k*O,m=a[8],M=a[9],d=a[10],k=a[11],r[8]=m*n+M*c+d*l+k*y,r[9]=m*e+M*f+d*v+k*x,r[10]=m*i+M*h+d*p+k*g,r[11]=m*s+M*o+d*u+k*O,m=a[12],M=a[13],d=a[14],k=a[15],r[12]=m*n+M*c+d*l+k*y,r[13]=m*e+M*f+d*v+k*x,r[14]=m*i+M*h+d*p+k*g,r[15]=m*s+M*o+d*u+k*O,r}function Qr(r,t,a){var n=a[0],e=a[1],i=a[2],s,c,f,h,o,l,v,p,u,y,x,g;return t===r?(r[12]=t[0]*n+t[4]*e+t[8]*i+t[12],r[13]=t[1]*n+t[5]*e+t[9]*i+t[13],r[14]=t[2]*n+t[6]*e+t[10]*i+t[14],r[15]=t[3]*n+t[7]*e+t[11]*i+t[15]):(s=t[0],c=t[1],f=t[2],h=t[3],o=t[4],l=t[5],v=t[6],p=t[7],u=t[8],y=t[9],x=t[10],g=t[11],r[0]=s,r[1]=c,r[2]=f,r[3]=h,r[4]=o,r[5]=l,r[6]=v,r[7]=p,r[8]=u,r[9]=y,r[10]=x,r[11]=g,r[12]=s*n+o*e+u*i+t[12],r[13]=c*n+l*e+y*i+t[13],r[14]=f*n+v*e+x*i+t[14],r[15]=h*n+p*e+g*i+t[15]),r}function Hr(r,t,a){var n=a[0],e=a[1],i=a[2];return r[0]=t[0]*n,r[1]=t[1]*n,r[2]=t[2]*n,r[3]=t[3]*n,r[4]=t[4]*e,r[5]=t[5]*e,r[6]=t[6]*e,r[7]=t[7]*e,r[8]=t[8]*i,r[9]=t[9]*i,r[10]=t[10]*i,r[11]=t[11]*i,r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15],r}function Jr(r,t,a,n){var e=n[0],i=n[1],s=n[2],c=Math.hypot(e,i,s),f,h,o,l,v,p,u,y,x,g,O,m,M,d,k,A,E,S,P,w,T,z,_,G;return c<W?null:(c=1/c,e*=c,i*=c,s*=c,f=Math.sin(a),h=Math.cos(a),o=1-h,l=t[0],v=t[1],p=t[2],u=t[3],y=t[4],x=t[5],g=t[6],O=t[7],m=t[8],M=t[9],d=t[10],k=t[11],A=e*e*o+h,E=i*e*o+s*f,S=s*e*o-i*f,P=e*i*o-s*f,w=i*i*o+h,T=s*i*o+e*f,z=e*s*o+i*f,_=i*s*o-e*f,G=s*s*o+h,r[0]=l*A+y*E+m*S,r[1]=v*A+x*E+M*S,r[2]=p*A+g*E+d*S,r[3]=u*A+O*E+k*S,r[4]=l*P+y*w+m*T,r[5]=v*P+x*w+M*T,r[6]=p*P+g*w+d*T,r[7]=u*P+O*w+k*T,r[8]=l*z+y*_+m*G,r[9]=v*z+x*_+M*G,r[10]=p*z+g*_+d*G,r[11]=u*z+O*_+k*G,t!==r&&(r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r)}function re(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[4],s=t[5],c=t[6],f=t[7],h=t[8],o=t[9],l=t[10],v=t[11];return t!==r&&(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[4]=i*e+h*n,r[5]=s*e+o*n,r[6]=c*e+l*n,r[7]=f*e+v*n,r[8]=h*e-i*n,r[9]=o*e-s*n,r[10]=l*e-c*n,r[11]=v*e-f*n,r}function ee(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[0],s=t[1],c=t[2],f=t[3],h=t[8],o=t[9],l=t[10],v=t[11];return t!==r&&(r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=i*e-h*n,r[1]=s*e-o*n,r[2]=c*e-l*n,r[3]=f*e-v*n,r[8]=i*n+h*e,r[9]=s*n+o*e,r[10]=c*n+l*e,r[11]=f*n+v*e,r}function te(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[0],s=t[1],c=t[2],f=t[3],h=t[4],o=t[5],l=t[6],v=t[7];return t!==r&&(r[8]=t[8],r[9]=t[9],r[10]=t[10],r[11]=t[11],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=i*e+h*n,r[1]=s*e+o*n,r[2]=c*e+l*n,r[3]=f*e+v*n,r[4]=h*e-i*n,r[5]=o*e-s*n,r[6]=l*e-c*n,r[7]=v*e-f*n,r}function ne(r,t){var a=t[0],n=t[1],e=t[2],i=t[3],s=a+a,c=n+n,f=e+e,h=a*s,o=n*s,l=n*c,v=e*s,p=e*c,u=e*f,y=i*s,x=i*c,g=i*f;return r[0]=1-l-u,r[1]=o+g,r[2]=v-x,r[3]=0,r[4]=o-g,r[5]=1-h-u,r[6]=p+y,r[7]=0,r[8]=v+x,r[9]=p-y,r[10]=1-h-l,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function ae(r,t,a,n,e,i,s){var c=1/(a-t),f=1/(e-n),h=1/(i-s);return r[0]=i*2*c,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i*2*f,r[6]=0,r[7]=0,r[8]=(a+t)*c,r[9]=(e+n)*f,r[10]=(s+i)*h,r[11]=-1,r[12]=0,r[13]=0,r[14]=s*i*2*h,r[15]=0,r}function Ue(r,t,a,n,e){var i=1/Math.tan(t/2),s;return r[0]=i/a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,e!=null&&e!==1/0?(s=1/(n-e),r[10]=(e+n)*s,r[14]=2*e*n*s):(r[10]=-1,r[14]=-2*n),r}var ie=Ue;function Qe(r,t,a,n,e,i,s){var c=1/(t-a),f=1/(n-e),h=1/(i-s);return r[0]=-2*c,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*f,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*h,r[11]=0,r[12]=(t+a)*c,r[13]=(e+n)*f,r[14]=(s+i)*h,r[15]=1,r}var se=Qe;function ce(r,t,a,n){var e,i,s,c,f,h,o,l,v,p,u=t[0],y=t[1],x=t[2],g=n[0],O=n[1],m=n[2],M=a[0],d=a[1],k=a[2];return Math.abs(u-M)<W&&Math.abs(y-d)<W&&Math.abs(x-k)<W?Ge(r):(o=u-M,l=y-d,v=x-k,p=1/Math.hypot(o,l,v),o*=p,l*=p,v*=p,e=O*v-m*l,i=m*o-g*v,s=g*l-O*o,p=Math.hypot(e,i,s),p?(p=1/p,e*=p,i*=p,s*=p):(e=0,i=0,s=0),c=l*s-v*i,f=v*e-o*s,h=o*i-l*e,p=Math.hypot(c,f,h),p?(p=1/p,c*=p,f*=p,h*=p):(c=0,f=0,h=0),r[0]=e,r[1]=c,r[2]=o,r[3]=0,r[4]=i,r[5]=f,r[6]=l,r[7]=0,r[8]=s,r[9]=h,r[10]=v,r[11]=0,r[12]=-(e*u+i*y+s*x),r[13]=-(c*u+f*y+h*x),r[14]=-(o*u+l*y+v*x),r[15]=1,r)}function Je(){var r=new D(4);return D!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[3]=0),r}function fe(r,t,a){var n=t[0],e=t[1],i=t[2],s=t[3];return r[0]=a[0]*n+a[4]*e+a[8]*i+a[12]*s,r[1]=a[1]*n+a[5]*e+a[9]*i+a[13]*s,r[2]=a[2]*n+a[6]*e+a[10]*i+a[14]*s,r[3]=a[3]*n+a[7]*e+a[11]*i+a[15]*s,r}var An=function(){var r=Je();return function(t,a,n,e,i,s){var c,f;for(a||(a=4),n||(n=0),e?f=Math.min(e*a+n,t.length):f=t.length,c=n;c<f;c+=a)r[0]=t[c],r[1]=t[c+1],r[2]=t[c+2],r[3]=t[c+3],i(r,r,s),t[c]=r[0],t[c+1]=r[1],t[c+2]=r[2],t[c+3]=r[3];return t}}();function et(r){var t=tt();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function tt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Mr;(function(r){r[r.COL0ROW0=0]="COL0ROW0",r[r.COL0ROW1=1]="COL0ROW1",r[r.COL0ROW2=2]="COL0ROW2",r[r.COL0ROW3=3]="COL0ROW3",r[r.COL1ROW0=4]="COL1ROW0",r[r.COL1ROW1=5]="COL1ROW1",r[r.COL1ROW2=6]="COL1ROW2",r[r.COL1ROW3=7]="COL1ROW3",r[r.COL2ROW0=8]="COL2ROW0",r[r.COL2ROW1=9]="COL2ROW1",r[r.COL2ROW2=10]="COL2ROW2",r[r.COL2ROW3=11]="COL2ROW3",r[r.COL3ROW0=12]="COL3ROW0",r[r.COL3ROW1=13]="COL3ROW1",r[r.COL3ROW2=14]="COL3ROW2",r[r.COL3ROW3=15]="COL3ROW3"})(Mr||(Mr={}));var nt=45*Math.PI/180,at=1,mr=.1,yr=500,it=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),H=function(r){j(a,r);var t=et(a);function a(n){var e;return b(this,a),e=t.call(this,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),arguments.length===1&&Array.isArray(n)?e.copy(n):e.identity(),e}return C(a,[{key:"ELEMENTS",get:function(){return 16}},{key:"RANK",get:function(){return 4}},{key:"INDICES",get:function(){return Mr}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this[9]=e[9],this[10]=e[10],this[11]=e[11],this[12]=e[12],this[13]=e[13],this[14]=e[14],this[15]=e[15],this.check()}},{key:"set",value:function(e,i,s,c,f,h,o,l,v,p,u,y,x,g,O,m){return this[0]=e,this[1]=i,this[2]=s,this[3]=c,this[4]=f,this[5]=h,this[6]=o,this[7]=l,this[8]=v,this[9]=p,this[10]=u,this[11]=y,this[12]=x,this[13]=g,this[14]=O,this[15]=m,this.check()}},{key:"setRowMajor",value:function(e,i,s,c,f,h,o,l,v,p,u,y,x,g,O,m){return this[0]=e,this[1]=f,this[2]=v,this[3]=x,this[4]=i,this[5]=h,this[6]=p,this[7]=g,this[8]=s,this[9]=o,this[10]=u,this[11]=O,this[12]=c,this[13]=l,this[14]=y,this[15]=m,this.check()}},{key:"toRowMajor",value:function(e){return e[0]=this[0],e[1]=this[4],e[2]=this[8],e[3]=this[12],e[4]=this[1],e[5]=this[5],e[6]=this[9],e[7]=this[13],e[8]=this[2],e[9]=this[6],e[10]=this[10],e[11]=this[14],e[12]=this[3],e[13]=this[7],e[14]=this[11],e[15]=this[15],e}},{key:"identity",value:function(){return this.copy(it)}},{key:"fromObject",value:function(e){return this.check()}},{key:"fromQuaternion",value:function(e){return ne(this,e),this.check()}},{key:"frustum",value:function(e){var i=e.left,s=e.right,c=e.bottom,f=e.top,h=e.near,o=h===void 0?mr:h,l=e.far,v=l===void 0?yr:l;return v===1/0?ft(this,i,s,c,f,o):ae(this,i,s,c,f,o,v),this.check()}},{key:"lookAt",value:function(e){var i=e.eye,s=e.center,c=s===void 0?[0,0,0]:s,f=e.up,h=f===void 0?[0,1,0]:f;return ce(this,i,c,h),this.check()}},{key:"ortho",value:function(e){var i=e.left,s=e.right,c=e.bottom,f=e.top,h=e.near,o=h===void 0?mr:h,l=e.far,v=l===void 0?yr:l;return se(this,i,s,c,f,o,v),this.check()}},{key:"orthographic",value:function(e){var i=e.fovy,s=i===void 0?nt:i,c=e.aspect,f=c===void 0?at:c,h=e.focalDistance,o=h===void 0?1:h,l=e.near,v=l===void 0?mr:l,p=e.far,u=p===void 0?yr:p;oe(s);var y=s/2,x=o*Math.tan(y),g=x*f;return this.ortho({left:-g,right:g,bottom:-x,top:x,near:v,far:u})}},{key:"perspective",value:function(e){var i=e.fovy,s=i===void 0?45*Math.PI/180:i,c=e.aspect,f=c===void 0?1:c,h=e.near,o=h===void 0?.1:h,l=e.far,v=l===void 0?500:l;return oe(s),ie(this,s,f,o,v),this.check()}},{key:"determinant",value:function(){return Ur(this)}},{key:"getScale",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),e[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),e[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),e}},{key:"getTranslation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=this[12],e[1]=this[13],e[2]=this[14],e}},{key:"getRotation",value:function(e,i){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],i=i||[-0,-0,-0];var s=this.getScale(i),c=1/s[0],f=1/s[1],h=1/s[2];return e[0]=this[0]*c,e[1]=this[1]*f,e[2]=this[2]*h,e[3]=0,e[4]=this[4]*c,e[5]=this[5]*f,e[6]=this[6]*h,e[7]=0,e[8]=this[8]*c,e[9]=this[9]*f,e[10]=this[10]*h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{key:"getRotationMatrix3",value:function(e,i){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0],i=i||[-0,-0,-0];var s=this.getScale(i),c=1/s[0],f=1/s[1],h=1/s[2];return e[0]=this[0]*c,e[1]=this[1]*f,e[2]=this[2]*h,e[3]=this[4]*c,e[4]=this[5]*f,e[5]=this[6]*h,e[6]=this[8]*c,e[7]=this[9]*f,e[8]=this[10]*h,e}},{key:"transpose",value:function(){return Xr(this,this),this.check()}},{key:"invert",value:function(){return Gr(this,this),this.check()}},{key:"multiplyLeft",value:function(e){return xr(this,e,this),this.check()}},{key:"multiplyRight",value:function(e){return xr(this,this,e),this.check()}},{key:"rotateX",value:function(e){return re(this,this,e),this.check()}},{key:"rotateY",value:function(e){return ee(this,this,e),this.check()}},{key:"rotateZ",value:function(e){return te(this,this,e),this.check()}},{key:"rotateXYZ",value:function(e){return this.rotateX(e[0]).rotateY(e[1]).rotateZ(e[2])}},{key:"rotateAxis",value:function(e,i){return Jr(this,this,e,i),this.check()}},{key:"scale",value:function(e){return Hr(this,this,Array.isArray(e)?e:[e,e,e]),this.check()}},{key:"translate",value:function(e){return Qr(this,this,e),this.check()}},{key:"transform",value:function(e,i){return e.length===4?(i=fe(i||[-0,-0,-0,-0],e,this),ir(i,4),i):this.transformAsPoint(e,i)}},{key:"transformAsPoint",value:function(e,i){var s=e.length,c;switch(s){case 2:c=cr(i||[-0,-0],e,this);break;case 3:c=Kr(i||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return ir(c,e.length),c}},{key:"transformAsVector",value:function(e,i){var s;switch(e.length){case 2:s=fr(i||[-0,-0],e,this);break;case 3:s=Zr(i||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return ir(s,e.length),s}},{key:"transformPoint",value:function(e,i){return this.transformAsPoint(e,i)}},{key:"transformVector",value:function(e,i){return this.transformAsPoint(e,i)}},{key:"transformDirection",value:function(e,i){return this.transformAsVector(e,i)}},{key:"makeRotationX",value:function(e){return this.identity().rotateX(e)}},{key:"makeTranslation",value:function(e,i,s){return this.identity().translate([e,i,s])}}],[{key:"IDENTITY",get:function(){return ct()}},{key:"ZERO",get:function(){return st()}}]),a}($r);var or,hr;function st(){return or||(or=new H([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(or)),or}function ct(){return hr||(hr=new H,Object.freeze(hr)),hr}function oe(r){if(r>Math.PI*2)throw Error("expected radians")}function ft(r,t,a,n,e,i){var s=2*i/(a-t),c=2*i/(e-n),f=(a+t)/(a-t),h=(e+n)/(e-n),o=-1,l=-1,v=-2*i;return r[0]=s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=c,r[6]=0,r[7]=0,r[8]=f,r[9]=h,r[10]=o,r[11]=l,r[12]=0,r[13]=0,r[14]=v,r[15]=0,r}function he(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),a.push.apply(a,n)}return a}function le(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?he(Object(a),!0).forEach(function(n){(0,ve.default)(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):he(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}var gr=85.05113;function kr(r,t,a,n){if(a){if(a.userData._googleMap===r)return a;lr(a)}var e={click:null,dblclick:null,mousemove:null,mouseout:null},i=new pe.Deck(le(le({},n),{},{useDevicePixels:n.interleaved?!0:n.useDevicePixels,style:n.interleaved?null:{pointerEvents:"none"},parent:ot(t,n.style),initialViewState:{longitude:0,latitude:0,zoom:1},controller:!1})),s=function(h){e[h]=r.addListener(h,function(o){return lt(i,h,o)})};for(var c in e)s(c);return i.userData._googleMap=r,i.userData._eventListeners=e,i}function ot(r,t){var a=document.createElement("div");if(a.style.position="absolute",Object.assign(a.style,t),"getPanes"in r){var n;(n=r.getPanes())===null||n===void 0||n.overlayLayer.appendChild(a)}else{var e;(e=r.getMap())===null||e===void 0||e.getDiv().appendChild(a)}return a}function lr(r){var t=r.userData._eventListeners;for(var a in t)t[a]&&t[a].remove();r.finalize()}function ue(r,t){var a=xe(r),n=a.width,e=a.height,i=t.getProjection(),s=r.getBounds();if(!s)return{width:n,height:e,left:0,top:0};var c=s.getNorthEast(),f=s.getSouthWest(),h=i.fromLatLngToDivPixel(c),o=i.fromLatLngToDivPixel(f),l=dr(i,n/2,e/2),v=new google.maps.LatLng(0,l[0]),p=i.fromLatLngToContainerPixel(v),u=i.fromLatLngToDivPixel(v);if(!h||!o||!u||!p)return{width:n,height:e,left:0,top:0};var y=Math.round(u.x-p.x),x=u.y-p.y,g=dr(i,n/2,0),O=dr(i,n/2,e),m=l[1],M=l[0];if(Math.abs(m)>gr){m=m>0?gr:-gr;var d=new google.maps.LatLng(m,M),k=i.fromLatLngToContainerPixel(d);x+=k.y-e/2}x=Math.round(x);var A=new Q(g).sub(O),E=180*A.verticalAngle()/Math.PI;E<0&&(E+=360);var S=r.getHeading()||0,P=r.getZoom()-1,w;if(E===0)w=e?(o.y-h.y)/e:1;else if(E===S){var T=new Q([h.x,h.y]).sub([o.x,o.y]).len(),z=new Q([n,-e]).len();w=z?T/z:1}return P+=Math.log2(w||1),{width:n,height:e,left:y,top:x,zoom:P,bearing:E,pitch:r.getTilt(),latitude:m,longitude:M}}function Or(r,t){var a=xe(r),n=a.width,e=a.height,i=t.getCameraParams(),s=i.center,c=i.heading,f=i.tilt,h=i.zoom,o=25,l=e?n/e:1,v=.75,p=3e14,u=new H().perspective({fovy:o*Math.PI/180,aspect:l,near:v,far:p}),y=.5*u[5];return{width:n,height:e,viewState:{altitude:y,bearing:c,latitude:s.lat(),longitude:s.lng(),pitch:f,projectionMatrix:u,repeat:!0,zoom:h-1}}}function xe(r){var t=r.getDiv().firstChild;return{width:t.offsetWidth,height:t.offsetHeight}}function dr(r,t,a){var n=new google.maps.Point(t,a),e=r.fromContainerPixelToLatLng(n);return[e.lng(),e.lat()]}function ht(r,t){if(r.pixel)return r.pixel;var a=t.getViewports()[0].project([r.latLng.lng(),r.latLng.lat()]);return{x:a[0],y:a[1]}}function lt(r,t,a){var n={type:t,offsetCenter:ht(a,r),srcEvent:a};switch(t){case"click":n.tapCount=1,r._onPointerDown(n),r._onEvent(n);break;case"dblclick":n.type="click",n.tapCount=2,r._onEvent(n);break;case"mousemove":n.type="pointermove",r._onPointerMove(n);break;case"mouseout":n.type="pointerleave",r._onPointerMove(n);break;default:return}}var vt=["width","height","left","top"];function me(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),a.push.apply(a,n)}return a}function Z(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?me(Object(a),!0).forEach(function(n){(0,X.default)(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):me(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}var pt=function(){return!1},ut={depthMask:!0,depthTest:!0,blend:!0,blendFunc:[770,771,1,771],blendEquation:32774};function ye(){}var xt={interleaved:!0},ke=function(){function r(t){(0,ge.default)(this,r),(0,X.default)(this,"props",{}),(0,X.default)(this,"_map",null),(0,X.default)(this,"_deck",null),(0,X.default)(this,"_overlay",null),this.setProps(Z(Z({},xt),t))}return(0,de.default)(r,[{key:"setMap",value:function(a){var n=this;if(a!==this._map){if(this._map){var e;(e=this._overlay)===null||e===void 0||e.setMap(null),this._map=null}if(a){this._map=a;var i=google.maps.RenderingType.UNINITIALIZED,s=a.getRenderingType();s!==i?this._createOverlay(a):a.addListener("renderingtype_changed",function(){n._createOverlay(a)})}}}},{key:"setProps",value:function(a){if(Object.assign(this.props,a),this._deck){if(a.style){var n=this._deck.canvas.parentElement.style;Object.assign(n,a.style),a.style=null}this._deck.setProps(a)}}},{key:"pickObject",value:function(a){return this._deck&&this._deck.pickObject(a)}},{key:"pickMultipleObjects",value:function(a){return this._deck&&this._deck.pickMultipleObjects(a)}},{key:"pickObjects",value:function(a){return this._deck&&this._deck.pickObjects(a)}},{key:"finalize",value:function(){this.setMap(null),this._deck&&(lr(this._deck),this._deck=null)}},{key:"_createOverlay",value:function(a){var n=this.props.interleaved,e=google.maps.RenderingType,i=e.VECTOR,s=e.UNINITIALIZED,c=a.getRenderingType();if(c!==s){var f=c===i&&google.maps.WebGLOverlayView,h=f?google.maps.WebGLOverlayView:google.maps.OverlayView,o=new h;o instanceof google.maps.WebGLOverlayView?(n?(o.onAdd=ye,o.onContextRestored=this._onContextRestored.bind(this),o.onDraw=this._onDrawVectorInterleaved.bind(this)):(o.onAdd=this._onAdd.bind(this),o.onContextRestored=ye,o.onDraw=this._onDrawVectorOverlay.bind(this)),o.onContextLost=this._onContextLost.bind(this)):(o.onAdd=this._onAdd.bind(this),o.draw=this._onDrawRaster.bind(this)),o.onRemove=this._onRemove.bind(this),this._overlay=o,this._overlay.setMap(a)}}},{key:"_onAdd",value:function(){this._deck=kr(this._map,this._overlay,this._deck,this.props)}},{key:"_onContextRestored",value:function(a){var n=this,e=a.gl;if(!(!this._map||!this._overlay)){var i=function(){n._overlay&&n._overlay.requestRedraw()},s=kr(this._map,this._overlay,this._deck,Z({gl:e,_customRender:i},this.props));this._deck=s;var c=s.animationLoop;c._renderFrame=function(){var f=e.getParameter(34964);(0,K.withParameters)(e,{},function(){c.onRender()}),e.bindBuffer(34962,f)}}}},{key:"_onContextLost",value:function(){this._deck&&(lr(this._deck),this._deck=null)}},{key:"_onRemove",value:function(){var a;(a=this._deck)===null||a===void 0||a.setProps({layerFilter:pt})}},{key:"_onDrawRaster",value:function(){if(!(!this._deck||!this._map)){var a=this._deck,n=ue(this._map,this._overlay),e=n.width,i=n.height,s=n.left,c=n.top,f=(0,Me.default)(n,vt),h=a.canvas.parentElement.style;h.left="".concat(s,"px"),h.top="".concat(c,"px");var o=1e4;a.setProps({width:e,height:i,viewState:Z({altitude:o,repeat:!0},f)}),a.redraw()}}},{key:"_onDrawVectorInterleaved",value:function(a){var n=a.gl,e=a.transformer;if(!(!this._deck||!this._map)){var i=this._deck;if(i.setProps(Z(Z({},Or(this._map,e)),{},{width:null,height:null})),i.isInitialized){var s=(0,K.getParameters)(n,36006);i.setProps({_framebuffer:s}),i.needsRedraw({clearRedrawFlags:!0}),(0,K.setParameters)(n,{viewport:[0,0,n.canvas.width,n.canvas.height],scissor:[0,0,n.canvas.width,n.canvas.height],stencilFunc:[519,0,255,519,0,255]}),(0,K.withParameters)(n,ut,function(){i._drawLayers("google-vector",{clearCanvas:!1})})}}}},{key:"_onDrawVectorOverlay",value:function(a){var n=a.transformer;if(!(!this._deck||!this._map)){var e=this._deck;e.setProps(Z({},Or(this._map,n))),e.redraw()}}}]),r}();return Pe(J);})();
"use strict";var __exports__=(()=>{var Oe=Object.create;var er=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty;var F=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Le=(r,t)=>{for(var a in t)er(r,a,{get:t[a],enumerable:!0})},rr=(r,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of Ee(t))!we.call(r,e)&&e!==a&&er(r,e,{get:()=>t[e],enumerable:!(n=_e(t,e))||n.enumerable});return r},I=(r,t,a)=>(rr(r,t,"default"),a&&rr(a,t,"default")),Y=(r,t,a)=>(a=r!=null?Oe(Re(r)):{},rr(t||!r||!r.__esModule?er(a,"default",{value:r,enumerable:!0}):a,r)),Pe=r=>rr(er({},"__esModule",{value:!0}),r);var tr=F((yt,_r)=>{_r.exports=globalThis.deck});var wr=F((Mt,Rr)=>{function Ae(r,t){if(r==null)return{};var a={},n=Object.keys(r),e,i;for(i=0;i<n.length;i++)e=n[i],!(t.indexOf(e)>=0)&&(a[e]=r[e]);return a}Rr.exports=Ae});var Pr=F((dt,Lr)=>{var Se=wr();function Te(r,t){if(r==null)return{};var a=Se(r,t),n,e;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(e=0;e<i.length;e++)n=i[e],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(a[n]=r[n])}return a}Lr.exports=Te});var Sr=F((kt,Ar)=>{function ze(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}Ar.exports=ze});var Nr=F((Ot,zr)=>{function Tr(r,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Ne(r,t,a){return t&&Tr(r.prototype,t),a&&Tr(r,a),r}zr.exports=Ne});var vr=F((_t,br)=>{function be(r,t,a){return t in r?Object.defineProperty(r,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[t]=a,r}br.exports=be});var jr=F((Et,Cr)=>{Cr.exports=globalThis.luma});var J={};Le(J,{GoogleMapsOverlay:()=>ke});var V={},Er=Y(tr());I(V,Y(tr()));if(!Er.Layer)throw new Error("@deck.gl/core is not found");I(J,V);var ge=Y(Pr()),Me=Y(Sr()),de=Y(Nr()),X=Y(vr()),K=Y(jr());var ve=Y(vr()),pe=Y(tr());function b(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function qr(r,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function C(r,t,a){return t&&qr(r.prototype,t),a&&qr(r,a),r}function U(r,t){return U=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},U(r,t)}function j(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&U(r,t)}function B(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(a){return typeof a}:B=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},B(r)}function pr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function q(r,t){if(t&&(B(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pr(r)}function R(r){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},R(r)}function nr(r,t){if(!r)throw new Error("math.gl assertion ".concat(t))}var Vt=1/Math.PI*180,Dt=1/180*Math.PI,L={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function Vr(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.precision,n=a===void 0?L.precision:a;return r=Ce(r),"".concat(parseFloat(r.toPrecision(n)))}function $(r){return Array.isArray(r)||ArrayBuffer.isView(r)&&!(r instanceof DataView)}function ur(r,t,a){var n=L.EPSILON;a&&(L.EPSILON=a);try{if(r===t)return!0;if($(r)&&$(t)){if(r.length!==t.length)return!1;for(var e=0;e<r.length;++e)if(!ur(r[e],t[e]))return!1;return!0}return r&&r.equals?r.equals(t):t&&t.equals?t.equals(r):typeof r=="number"&&typeof t=="number"?Math.abs(r-t)<=L.EPSILON*Math.max(1,Math.abs(r),Math.abs(t)):!1}finally{L.EPSILON=n}}function Ce(r){return Math.round(r/L.EPSILON)*L.EPSILON}function je(r){var t=qe();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function qe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ve(r){function t(){var a=Reflect.construct(r,Array.from(arguments));return Object.setPrototypeOf(a,Object.getPrototypeOf(this)),a}return t.prototype=Object.create(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r,t}var ar=function(r){j(a,r);var t=je(a);function a(){return b(this,a),t.apply(this,arguments)}return C(a,[{key:"clone",value:function(){return new this.constructor().copy(this)}},{key:"fromArray",value:function(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=0;s<this.ELEMENTS;++s)this[s]=e[s+i];return this.check()}},{key:"toArray",value:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=0;s<this.ELEMENTS;++s)e[i+s]=this[s];return e}},{key:"from",value:function(e){return Array.isArray(e)?this.copy(e):this.fromObject(e)}},{key:"to",value:function(e){return e===this?this:$(e)?this.toArray(e):this.toObject(e)}},{key:"toTarget",value:function(e){return e?this.to(e):this}},{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toString",value:function(){return this.formatString(L)}},{key:"formatString",value:function(e){for(var i="",s=0;s<this.ELEMENTS;++s)i+=(s>0?", ":"")+Vr(this[s],e);return"".concat(e.printTypes?this.constructor.name:"","[").concat(i,"]")}},{key:"equals",value:function(e){if(!e||this.length!==e.length)return!1;for(var i=0;i<this.ELEMENTS;++i)if(!ur(this[i],e[i]))return!1;return!0}},{key:"exactEquals",value:function(e){if(!e||this.length!==e.length)return!1;for(var i=0;i<this.ELEMENTS;++i)if(this[i]!==e[i])return!1;return!0}},{key:"negate",value:function(){for(var e=0;e<this.ELEMENTS;++e)this[e]=-this[e];return this.check()}},{key:"lerp",value:function(e,i,s){if(s===void 0)return this.lerp(this,e,i);for(var c=0;c<this.ELEMENTS;++c){var f=e[c];this[c]=f+s*(i[c]-f)}return this.check()}},{key:"min",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=Math.min(e[i],this[i]);return this.check()}},{key:"max",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=Math.max(e[i],this[i]);return this.check()}},{key:"clamp",value:function(e,i){for(var s=0;s<this.ELEMENTS;++s)this[s]=Math.min(Math.max(this[s],e[s]),i[s]);return this.check()}},{key:"add",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]+=h[o];return this.check()}},{key:"subtract",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]-=h[o];return this.check()}},{key:"scale",value:function(e){if(typeof e=="number")for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;else for(var s=0;s<this.ELEMENTS&&s<e.length;++s)this[s]*=e[s];return this.check()}},{key:"multiplyByScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;return this.check()}},{key:"check",value:function(){if(L.debug&&!this.validate())throw new Error("math.gl: ".concat(this.constructor.name," some fields set to invalid numbers'"));return this}},{key:"validate",value:function(){for(var e=this.length===this.ELEMENTS,i=0;i<this.ELEMENTS;++i)e=e&&Number.isFinite(this[i]);return e}},{key:"sub",value:function(e){return this.subtract(e)}},{key:"setScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=e;return this.check()}},{key:"addScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]+=e;return this.check()}},{key:"subScalar",value:function(e){return this.addScalar(-e)}},{key:"multiplyScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;return this.check()}},{key:"divideScalar",value:function(e){return this.multiplyByScalar(1/e)}},{key:"clampScalar",value:function(e,i){for(var s=0;s<this.ELEMENTS;++s)this[s]=Math.min(Math.max(this[s],e),i);return this.check()}},{key:"elements",get:function(){return this}}]),a}(Ve(Array));function De(r,t){if(r.length!==t)return!1;for(var a=0;a<r.length;++a)if(!Number.isFinite(r[a]))return!1;return!0}function N(r){if(!Number.isFinite(r))throw new Error("Invalid number ".concat(r));return r}function ir(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(L.debug&&!De(r,t))throw new Error("math.gl: ".concat(a," some fields set to invalid numbers'"));return r}function Ye(r){var t=Ie();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Ie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Dr=function(r){j(a,r);var t=Ye(a);function a(){return b(this,a),t.apply(this,arguments)}return C(a,[{key:"x",get:function(){return this[0]},set:function(e){this[0]=N(e)}},{key:"y",get:function(){return this[1]},set:function(e){this[1]=N(e)}},{key:"len",value:function(){return Math.sqrt(this.lengthSquared())}},{key:"magnitude",value:function(){return this.len()}},{key:"lengthSquared",value:function(){for(var e=0,i=0;i<this.ELEMENTS;++i)e+=this[i]*this[i];return e}},{key:"magnitudeSquared",value:function(){return this.lengthSquared()}},{key:"distance",value:function(e){return Math.sqrt(this.distanceSquared(e))}},{key:"distanceSquared",value:function(e){for(var i=0,s=0;s<this.ELEMENTS;++s){var c=this[s]-e[s];i+=c*c}return N(i)}},{key:"dot",value:function(e){for(var i=0,s=0;s<this.ELEMENTS;++s)i+=this[s]*e[s];return N(i)}},{key:"normalize",value:function(){var e=this.magnitude();if(e!==0)for(var i=0;i<this.ELEMENTS;++i)this[i]/=e;return this.check()}},{key:"multiply",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]*=h[o];return this.check()}},{key:"divide",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,f=i;c<f.length;c++)for(var h=f[c],o=0;o<this.ELEMENTS;++o)this[o]/=h[o];return this.check()}},{key:"lengthSq",value:function(){return this.lengthSquared()}},{key:"distanceTo",value:function(e){return this.distance(e)}},{key:"distanceToSquared",value:function(e){return this.distanceSquared(e)}},{key:"getComponent",value:function(e){return nr(e>=0&&e<this.ELEMENTS,"index is out of range"),N(this[e])}},{key:"setComponent",value:function(e,i){return nr(e>=0&&e<this.ELEMENTS,"index is out of range"),this[e]=i,this.check()}},{key:"addVectors",value:function(e,i){return this.copy(e).add(i)}},{key:"subVectors",value:function(e,i){return this.copy(e).subtract(i)}},{key:"multiplyVectors",value:function(e,i){return this.copy(e).multiply(i)}},{key:"addScaledVector",value:function(e,i){return this.add(new this.constructor(e).multiplyScalar(i))}}]),a}(ar);var W=1e-6,D=typeof Float32Array<"u"?Float32Array:Array;var sn=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var r=0,t=arguments.length;t--;)r+=arguments[t]*arguments[t];return Math.sqrt(r)});function We(){var r=new D(2);return D!=Float32Array&&(r[0]=0,r[1]=0),r}function Ir(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[2]*e,r[1]=a[1]*n+a[3]*e,r}function Wr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[2]*e+a[4],r[1]=a[1]*n+a[3]*e+a[5],r}function Fr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[3]*e+a[6],r[1]=a[1]*n+a[4]*e+a[7],r}function cr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[4]*e+a[12],r[1]=a[1]*n+a[5]*e+a[13],r}var cn=function(){var r=We();return function(t,a,n,e,i,s){var c,f;for(a||(a=2),n||(n=0),e?f=Math.min(e*a+n,t.length):f=t.length,c=n;c<f;c+=a)r[0]=t[c],r[1]=t[c+1],i(r,r,s),t[c]=r[0],t[c+1]=r[1];return t}}();function fr(r,t,a){var n=t[0],e=t[1],i=a[3]*n+a[7]*e||1;return r[0]=(a[0]*n+a[4]*e)/i,r[1]=(a[1]*n+a[5]*e)/i,r}function Zr(r,t,a){var n=t[0],e=t[1],i=t[2],s=a[3]*n+a[7]*e+a[11]*i||1;return r[0]=(a[0]*n+a[4]*e+a[8]*i)/s,r[1]=(a[1]*n+a[5]*e+a[9]*i)/s,r[2]=(a[2]*n+a[6]*e+a[10]*i)/s,r}function Fe(r){var t=Be();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Be(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Q=function(r){j(a,r);var t=Fe(a);function a(){var n,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return b(this,a),n=t.call(this,2),$(e)&&arguments.length===1?n.copy(e):(L.debug&&(N(e),N(i)),n[0]=e,n[1]=i),n}return C(a,[{key:"set",value:function(e,i){return this[0]=e,this[1]=i,this.check()}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this.check()}},{key:"fromObject",value:function(e){return L.debug&&(N(e.x),N(e.y)),this[0]=e.x,this[1]=e.y,this.check()}},{key:"toObject",value:function(e){return e.x=this[0],e.y=this[1],e}},{key:"ELEMENTS",get:function(){return 2}},{key:"horizontalAngle",value:function(){return Math.atan2(this.y,this.x)}},{key:"verticalAngle",value:function(){return Math.atan2(this.x,this.y)}},{key:"transform",value:function(e){return this.transformAsPoint(e)}},{key:"transformAsPoint",value:function(e){return cr(this,this,e),this.check()}},{key:"transformAsVector",value:function(e){return fr(this,this,e),this.check()}},{key:"transformByMatrix3",value:function(e){return Fr(this,this,e),this.check()}},{key:"transformByMatrix2x3",value:function(e){return Wr(this,this,e),this.check()}},{key:"transformByMatrix2",value:function(e){return Ir(this,this,e),this.check()}}]),a}(Dr);function Ze(){var r=new D(3);return D!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Kr(r,t,a){var n=t[0],e=t[1],i=t[2],s=a[3]*n+a[7]*e+a[11]*i+a[15];return s=s||1,r[0]=(a[0]*n+a[4]*e+a[8]*i+a[12])/s,r[1]=(a[1]*n+a[5]*e+a[9]*i+a[13])/s,r[2]=(a[2]*n+a[6]*e+a[10]*i+a[14])/s,r}var Mn=function(){var r=Ze();return function(t,a,n,e,i,s){var c,f;for(a||(a=3),n||(n=0),e?f=Math.min(e*a+n,t.length):f=t.length,c=n;c<f;c+=a)r[0]=t[c],r[1]=t[c+1],r[2]=t[c+2],i(r,r,s),t[c]=r[0],t[c+1]=r[1],t[c+2]=r[2];return t}}();function $e(r){var t=Xe();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Xe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var $r=function(r){j(a,r);var t=$e(a);function a(){return b(this,a),t.apply(this,arguments)}return C(a,[{key:"toString",value:function(){var e="[";if(L.printRowMajor){e+="row-major:";for(var i=0;i<this.RANK;++i)for(var s=0;s<this.RANK;++s)e+=" ".concat(this[s*this.RANK+i])}else{e+="column-major:";for(var c=0;c<this.ELEMENTS;++c)e+=" ".concat(this[c])}return e+="]",e}},{key:"getElementIndex",value:function(e,i){return i*this.RANK+e}},{key:"getElement",value:function(e,i){return this[i*this.RANK+e]}},{key:"setElement",value:function(e,i,s){return this[i*this.RANK+e]=N(s),this}},{key:"getColumn",value:function(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Array(this.RANK).fill(-0),s=e*this.RANK,c=0;c<this.RANK;++c)i[c]=this[s+c];return i}},{key:"setColumn",value:function(e,i){for(var s=e*this.RANK,c=0;c<this.RANK;++c)this[s+c]=i[c];return this}}]),a}(ar);function Ge(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Xr(r,t){if(r===t){var a=t[1],n=t[2],e=t[3],i=t[6],s=t[7],c=t[11];r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=a,r[6]=t[9],r[7]=t[13],r[8]=n,r[9]=i,r[11]=t[14],r[12]=e,r[13]=s,r[14]=c}else r[0]=t[0],r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=t[1],r[5]=t[5],r[6]=t[9],r[7]=t[13],r[8]=t[2],r[9]=t[6],r[10]=t[10],r[11]=t[14],r[12]=t[3],r[13]=t[7],r[14]=t[11],r[15]=t[15];return r}function Gr(r,t){var a=t[0],n=t[1],e=t[2],i=t[3],s=t[4],c=t[5],f=t[6],h=t[7],o=t[8],l=t[9],v=t[10],p=t[11],u=t[12],y=t[13],x=t[14],M=t[15],O=a*c-n*s,m=a*f-e*s,g=a*h-i*s,d=n*f-e*c,k=n*h-i*c,A=e*h-i*f,E=o*y-l*u,S=o*x-v*u,P=o*M-p*u,w=l*x-v*y,T=l*M-p*y,z=v*M-p*x,_=O*z-m*T+g*w+d*P-k*S+A*E;return _?(_=1/_,r[0]=(c*z-f*T+h*w)*_,r[1]=(e*T-n*z-i*w)*_,r[2]=(y*A-x*k+M*d)*_,r[3]=(v*k-l*A-p*d)*_,r[4]=(f*P-s*z-h*S)*_,r[5]=(a*z-e*P+i*S)*_,r[6]=(x*g-u*A-M*m)*_,r[7]=(o*A-v*g+p*m)*_,r[8]=(s*T-c*P+h*E)*_,r[9]=(n*P-a*T-i*E)*_,r[10]=(u*k-y*g+M*O)*_,r[11]=(l*g-o*k-p*O)*_,r[12]=(c*S-s*w-f*E)*_,r[13]=(a*w-n*S+e*E)*_,r[14]=(y*m-u*d-x*O)*_,r[15]=(o*d-l*m+v*O)*_,r):null}function Ur(r){var t=r[0],a=r[1],n=r[2],e=r[3],i=r[4],s=r[5],c=r[6],f=r[7],h=r[8],o=r[9],l=r[10],v=r[11],p=r[12],u=r[13],y=r[14],x=r[15],M=t*s-a*i,O=t*c-n*i,m=t*f-e*i,g=a*c-n*s,d=a*f-e*s,k=n*f-e*c,A=h*u-o*p,E=h*y-l*p,S=h*x-v*p,P=o*y-l*u,w=o*x-v*u,T=l*x-v*y;return M*T-O*w+m*P+g*S-d*E+k*A}function xr(r,t,a){var n=t[0],e=t[1],i=t[2],s=t[3],c=t[4],f=t[5],h=t[6],o=t[7],l=t[8],v=t[9],p=t[10],u=t[11],y=t[12],x=t[13],M=t[14],O=t[15],m=a[0],g=a[1],d=a[2],k=a[3];return r[0]=m*n+g*c+d*l+k*y,r[1]=m*e+g*f+d*v+k*x,r[2]=m*i+g*h+d*p+k*M,r[3]=m*s+g*o+d*u+k*O,m=a[4],g=a[5],d=a[6],k=a[7],r[4]=m*n+g*c+d*l+k*y,r[5]=m*e+g*f+d*v+k*x,r[6]=m*i+g*h+d*p+k*M,r[7]=m*s+g*o+d*u+k*O,m=a[8],g=a[9],d=a[10],k=a[11],r[8]=m*n+g*c+d*l+k*y,r[9]=m*e+g*f+d*v+k*x,r[10]=m*i+g*h+d*p+k*M,r[11]=m*s+g*o+d*u+k*O,m=a[12],g=a[13],d=a[14],k=a[15],r[12]=m*n+g*c+d*l+k*y,r[13]=m*e+g*f+d*v+k*x,r[14]=m*i+g*h+d*p+k*M,r[15]=m*s+g*o+d*u+k*O,r}function Qr(r,t,a){var n=a[0],e=a[1],i=a[2],s,c,f,h,o,l,v,p,u,y,x,M;return t===r?(r[12]=t[0]*n+t[4]*e+t[8]*i+t[12],r[13]=t[1]*n+t[5]*e+t[9]*i+t[13],r[14]=t[2]*n+t[6]*e+t[10]*i+t[14],r[15]=t[3]*n+t[7]*e+t[11]*i+t[15]):(s=t[0],c=t[1],f=t[2],h=t[3],o=t[4],l=t[5],v=t[6],p=t[7],u=t[8],y=t[9],x=t[10],M=t[11],r[0]=s,r[1]=c,r[2]=f,r[3]=h,r[4]=o,r[5]=l,r[6]=v,r[7]=p,r[8]=u,r[9]=y,r[10]=x,r[11]=M,r[12]=s*n+o*e+u*i+t[12],r[13]=c*n+l*e+y*i+t[13],r[14]=f*n+v*e+x*i+t[14],r[15]=h*n+p*e+M*i+t[15]),r}function Hr(r,t,a){var n=a[0],e=a[1],i=a[2];return r[0]=t[0]*n,r[1]=t[1]*n,r[2]=t[2]*n,r[3]=t[3]*n,r[4]=t[4]*e,r[5]=t[5]*e,r[6]=t[6]*e,r[7]=t[7]*e,r[8]=t[8]*i,r[9]=t[9]*i,r[10]=t[10]*i,r[11]=t[11]*i,r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15],r}function Jr(r,t,a,n){var e=n[0],i=n[1],s=n[2],c=Math.hypot(e,i,s),f,h,o,l,v,p,u,y,x,M,O,m,g,d,k,A,E,S,P,w,T,z,_,G;return c<W?null:(c=1/c,e*=c,i*=c,s*=c,f=Math.sin(a),h=Math.cos(a),o=1-h,l=t[0],v=t[1],p=t[2],u=t[3],y=t[4],x=t[5],M=t[6],O=t[7],m=t[8],g=t[9],d=t[10],k=t[11],A=e*e*o+h,E=i*e*o+s*f,S=s*e*o-i*f,P=e*i*o-s*f,w=i*i*o+h,T=s*i*o+e*f,z=e*s*o+i*f,_=i*s*o-e*f,G=s*s*o+h,r[0]=l*A+y*E+m*S,r[1]=v*A+x*E+g*S,r[2]=p*A+M*E+d*S,r[3]=u*A+O*E+k*S,r[4]=l*P+y*w+m*T,r[5]=v*P+x*w+g*T,r[6]=p*P+M*w+d*T,r[7]=u*P+O*w+k*T,r[8]=l*z+y*_+m*G,r[9]=v*z+x*_+g*G,r[10]=p*z+M*_+d*G,r[11]=u*z+O*_+k*G,t!==r&&(r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r)}function re(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[4],s=t[5],c=t[6],f=t[7],h=t[8],o=t[9],l=t[10],v=t[11];return t!==r&&(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[4]=i*e+h*n,r[5]=s*e+o*n,r[6]=c*e+l*n,r[7]=f*e+v*n,r[8]=h*e-i*n,r[9]=o*e-s*n,r[10]=l*e-c*n,r[11]=v*e-f*n,r}function ee(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[0],s=t[1],c=t[2],f=t[3],h=t[8],o=t[9],l=t[10],v=t[11];return t!==r&&(r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=i*e-h*n,r[1]=s*e-o*n,r[2]=c*e-l*n,r[3]=f*e-v*n,r[8]=i*n+h*e,r[9]=s*n+o*e,r[10]=c*n+l*e,r[11]=f*n+v*e,r}function te(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[0],s=t[1],c=t[2],f=t[3],h=t[4],o=t[5],l=t[6],v=t[7];return t!==r&&(r[8]=t[8],r[9]=t[9],r[10]=t[10],r[11]=t[11],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=i*e+h*n,r[1]=s*e+o*n,r[2]=c*e+l*n,r[3]=f*e+v*n,r[4]=h*e-i*n,r[5]=o*e-s*n,r[6]=l*e-c*n,r[7]=v*e-f*n,r}function ne(r,t){var a=t[0],n=t[1],e=t[2],i=t[3],s=a+a,c=n+n,f=e+e,h=a*s,o=n*s,l=n*c,v=e*s,p=e*c,u=e*f,y=i*s,x=i*c,M=i*f;return r[0]=1-l-u,r[1]=o+M,r[2]=v-x,r[3]=0,r[4]=o-M,r[5]=1-h-u,r[6]=p+y,r[7]=0,r[8]=v+x,r[9]=p-y,r[10]=1-h-l,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function ae(r,t,a,n,e,i,s){var c=1/(a-t),f=1/(e-n),h=1/(i-s);return r[0]=i*2*c,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i*2*f,r[6]=0,r[7]=0,r[8]=(a+t)*c,r[9]=(e+n)*f,r[10]=(s+i)*h,r[11]=-1,r[12]=0,r[13]=0,r[14]=s*i*2*h,r[15]=0,r}function Ue(r,t,a,n,e){var i=1/Math.tan(t/2),s;return r[0]=i/a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,e!=null&&e!==1/0?(s=1/(n-e),r[10]=(e+n)*s,r[14]=2*e*n*s):(r[10]=-1,r[14]=-2*n),r}var ie=Ue;function Qe(r,t,a,n,e,i,s){var c=1/(t-a),f=1/(n-e),h=1/(i-s);return r[0]=-2*c,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*f,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*h,r[11]=0,r[12]=(t+a)*c,r[13]=(e+n)*f,r[14]=(s+i)*h,r[15]=1,r}var se=Qe;function ce(r,t,a,n){var e,i,s,c,f,h,o,l,v,p,u=t[0],y=t[1],x=t[2],M=n[0],O=n[1],m=n[2],g=a[0],d=a[1],k=a[2];return Math.abs(u-g)<W&&Math.abs(y-d)<W&&Math.abs(x-k)<W?Ge(r):(o=u-g,l=y-d,v=x-k,p=1/Math.hypot(o,l,v),o*=p,l*=p,v*=p,e=O*v-m*l,i=m*o-M*v,s=M*l-O*o,p=Math.hypot(e,i,s),p?(p=1/p,e*=p,i*=p,s*=p):(e=0,i=0,s=0),c=l*s-v*i,f=v*e-o*s,h=o*i-l*e,p=Math.hypot(c,f,h),p?(p=1/p,c*=p,f*=p,h*=p):(c=0,f=0,h=0),r[0]=e,r[1]=c,r[2]=o,r[3]=0,r[4]=i,r[5]=f,r[6]=l,r[7]=0,r[8]=s,r[9]=h,r[10]=v,r[11]=0,r[12]=-(e*u+i*y+s*x),r[13]=-(c*u+f*y+h*x),r[14]=-(o*u+l*y+v*x),r[15]=1,r)}function Je(){var r=new D(4);return D!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[3]=0),r}function fe(r,t,a){var n=t[0],e=t[1],i=t[2],s=t[3];return r[0]=a[0]*n+a[4]*e+a[8]*i+a[12]*s,r[1]=a[1]*n+a[5]*e+a[9]*i+a[13]*s,r[2]=a[2]*n+a[6]*e+a[10]*i+a[14]*s,r[3]=a[3]*n+a[7]*e+a[11]*i+a[15]*s,r}var An=function(){var r=Je();return function(t,a,n,e,i,s){var c,f;for(a||(a=4),n||(n=0),e?f=Math.min(e*a+n,t.length):f=t.length,c=n;c<f;c+=a)r[0]=t[c],r[1]=t[c+1],r[2]=t[c+2],r[3]=t[c+3],i(r,r,s),t[c]=r[0],t[c+1]=r[1],t[c+2]=r[2],t[c+3]=r[3];return t}}();function et(r){var t=tt();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function tt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var gr;(function(r){r[r.COL0ROW0=0]="COL0ROW0",r[r.COL0ROW1=1]="COL0ROW1",r[r.COL0ROW2=2]="COL0ROW2",r[r.COL0ROW3=3]="COL0ROW3",r[r.COL1ROW0=4]="COL1ROW0",r[r.COL1ROW1=5]="COL1ROW1",r[r.COL1ROW2=6]="COL1ROW2",r[r.COL1ROW3=7]="COL1ROW3",r[r.COL2ROW0=8]="COL2ROW0",r[r.COL2ROW1=9]="COL2ROW1",r[r.COL2ROW2=10]="COL2ROW2",r[r.COL2ROW3=11]="COL2ROW3",r[r.COL3ROW0=12]="COL3ROW0",r[r.COL3ROW1=13]="COL3ROW1",r[r.COL3ROW2=14]="COL3ROW2",r[r.COL3ROW3=15]="COL3ROW3"})(gr||(gr={}));var nt=45*Math.PI/180,at=1,mr=.1,yr=500,it=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),H=function(r){j(a,r);var t=et(a);function a(n){var e;return b(this,a),e=t.call(this,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),arguments.length===1&&Array.isArray(n)?e.copy(n):e.identity(),e}return C(a,[{key:"ELEMENTS",get:function(){return 16}},{key:"RANK",get:function(){return 4}},{key:"INDICES",get:function(){return gr}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this[9]=e[9],this[10]=e[10],this[11]=e[11],this[12]=e[12],this[13]=e[13],this[14]=e[14],this[15]=e[15],this.check()}},{key:"set",value:function(e,i,s,c,f,h,o,l,v,p,u,y,x,M,O,m){return this[0]=e,this[1]=i,this[2]=s,this[3]=c,this[4]=f,this[5]=h,this[6]=o,this[7]=l,this[8]=v,this[9]=p,this[10]=u,this[11]=y,this[12]=x,this[13]=M,this[14]=O,this[15]=m,this.check()}},{key:"setRowMajor",value:function(e,i,s,c,f,h,o,l,v,p,u,y,x,M,O,m){return this[0]=e,this[1]=f,this[2]=v,this[3]=x,this[4]=i,this[5]=h,this[6]=p,this[7]=M,this[8]=s,this[9]=o,this[10]=u,this[11]=O,this[12]=c,this[13]=l,this[14]=y,this[15]=m,this.check()}},{key:"toRowMajor",value:function(e){return e[0]=this[0],e[1]=this[4],e[2]=this[8],e[3]=this[12],e[4]=this[1],e[5]=this[5],e[6]=this[9],e[7]=this[13],e[8]=this[2],e[9]=this[6],e[10]=this[10],e[11]=this[14],e[12]=this[3],e[13]=this[7],e[14]=this[11],e[15]=this[15],e}},{key:"identity",value:function(){return this.copy(it)}},{key:"fromObject",value:function(e){return this.check()}},{key:"fromQuaternion",value:function(e){return ne(this,e),this.check()}},{key:"frustum",value:function(e){var i=e.left,s=e.right,c=e.bottom,f=e.top,h=e.near,o=h===void 0?mr:h,l=e.far,v=l===void 0?yr:l;return v===1/0?ft(this,i,s,c,f,o):ae(this,i,s,c,f,o,v),this.check()}},{key:"lookAt",value:function(e){var i=e.eye,s=e.center,c=s===void 0?[0,0,0]:s,f=e.up,h=f===void 0?[0,1,0]:f;return ce(this,i,c,h),this.check()}},{key:"ortho",value:function(e){var i=e.left,s=e.right,c=e.bottom,f=e.top,h=e.near,o=h===void 0?mr:h,l=e.far,v=l===void 0?yr:l;return se(this,i,s,c,f,o,v),this.check()}},{key:"orthographic",value:function(e){var i=e.fovy,s=i===void 0?nt:i,c=e.aspect,f=c===void 0?at:c,h=e.focalDistance,o=h===void 0?1:h,l=e.near,v=l===void 0?mr:l,p=e.far,u=p===void 0?yr:p;oe(s);var y=s/2,x=o*Math.tan(y),M=x*f;return this.ortho({left:-M,right:M,bottom:-x,top:x,near:v,far:u})}},{key:"perspective",value:function(e){var i=e.fovy,s=i===void 0?45*Math.PI/180:i,c=e.aspect,f=c===void 0?1:c,h=e.near,o=h===void 0?.1:h,l=e.far,v=l===void 0?500:l;return oe(s),ie(this,s,f,o,v),this.check()}},{key:"determinant",value:function(){return Ur(this)}},{key:"getScale",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),e[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),e[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),e}},{key:"getTranslation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=this[12],e[1]=this[13],e[2]=this[14],e}},{key:"getRotation",value:function(e,i){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],i=i||[-0,-0,-0];var s=this.getScale(i),c=1/s[0],f=1/s[1],h=1/s[2];return e[0]=this[0]*c,e[1]=this[1]*f,e[2]=this[2]*h,e[3]=0,e[4]=this[4]*c,e[5]=this[5]*f,e[6]=this[6]*h,e[7]=0,e[8]=this[8]*c,e[9]=this[9]*f,e[10]=this[10]*h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{key:"getRotationMatrix3",value:function(e,i){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0],i=i||[-0,-0,-0];var s=this.getScale(i),c=1/s[0],f=1/s[1],h=1/s[2];return e[0]=this[0]*c,e[1]=this[1]*f,e[2]=this[2]*h,e[3]=this[4]*c,e[4]=this[5]*f,e[5]=this[6]*h,e[6]=this[8]*c,e[7]=this[9]*f,e[8]=this[10]*h,e}},{key:"transpose",value:function(){return Xr(this,this),this.check()}},{key:"invert",value:function(){return Gr(this,this),this.check()}},{key:"multiplyLeft",value:function(e){return xr(this,e,this),this.check()}},{key:"multiplyRight",value:function(e){return xr(this,this,e),this.check()}},{key:"rotateX",value:function(e){return re(this,this,e),this.check()}},{key:"rotateY",value:function(e){return ee(this,this,e),this.check()}},{key:"rotateZ",value:function(e){return te(this,this,e),this.check()}},{key:"rotateXYZ",value:function(e){return this.rotateX(e[0]).rotateY(e[1]).rotateZ(e[2])}},{key:"rotateAxis",value:function(e,i){return Jr(this,this,e,i),this.check()}},{key:"scale",value:function(e){return Hr(this,this,Array.isArray(e)?e:[e,e,e]),this.check()}},{key:"translate",value:function(e){return Qr(this,this,e),this.check()}},{key:"transform",value:function(e,i){return e.length===4?(i=fe(i||[-0,-0,-0,-0],e,this),ir(i,4),i):this.transformAsPoint(e,i)}},{key:"transformAsPoint",value:function(e,i){var s=e.length,c;switch(s){case 2:c=cr(i||[-0,-0],e,this);break;case 3:c=Kr(i||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return ir(c,e.length),c}},{key:"transformAsVector",value:function(e,i){var s;switch(e.length){case 2:s=fr(i||[-0,-0],e,this);break;case 3:s=Zr(i||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return ir(s,e.length),s}},{key:"transformPoint",value:function(e,i){return this.transformAsPoint(e,i)}},{key:"transformVector",value:function(e,i){return this.transformAsPoint(e,i)}},{key:"transformDirection",value:function(e,i){return this.transformAsVector(e,i)}},{key:"makeRotationX",value:function(e){return this.identity().rotateX(e)}},{key:"makeTranslation",value:function(e,i,s){return this.identity().translate([e,i,s])}}],[{key:"IDENTITY",get:function(){return ct()}},{key:"ZERO",get:function(){return st()}}]),a}($r);var or,hr;function st(){return or||(or=new H([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(or)),or}function ct(){return hr||(hr=new H,Object.freeze(hr)),hr}function oe(r){if(r>Math.PI*2)throw Error("expected radians")}function ft(r,t,a,n,e,i){var s=2*i/(a-t),c=2*i/(e-n),f=(a+t)/(a-t),h=(e+n)/(e-n),o=-1,l=-1,v=-2*i;return r[0]=s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=c,r[6]=0,r[7]=0,r[8]=f,r[9]=h,r[10]=o,r[11]=l,r[12]=0,r[13]=0,r[14]=v,r[15]=0,r}function he(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),a.push.apply(a,n)}return a}function le(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?he(Object(a),!0).forEach(function(n){(0,ve.default)(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):he(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}var Mr=85.05113;function kr(r,t,a,n){if(a){if(a.userData._googleMap===r)return a;lr(a)}var e={click:null,rightclick:null,dblclick:null,mousemove:null,mouseout:null},i=new pe.Deck(le(le({},n),{},{useDevicePixels:n.interleaved?!0:n.useDevicePixels,style:n.interleaved?null:{pointerEvents:"none"},parent:ot(t,n.style),initialViewState:{longitude:0,latitude:0,zoom:1},controller:!1})),s=function(h){e[h]=r.addListener(h,function(o){return lt(i,h,o)})};for(var c in e)s(c);return i.userData._googleMap=r,i.userData._eventListeners=e,i}function ot(r,t){var a=document.createElement("div");if(a.style.position="absolute",Object.assign(a.style,t),"getPanes"in r){var n;(n=r.getPanes())===null||n===void 0||n.overlayLayer.appendChild(a)}else{var e;(e=r.getMap())===null||e===void 0||e.getDiv().appendChild(a)}return a}function lr(r){var t=r.userData._eventListeners;for(var a in t)t[a]&&t[a].remove();r.finalize()}function ue(r,t){var a=xe(r),n=a.width,e=a.height,i=t.getProjection(),s=r.getBounds();if(!s)return{width:n,height:e,left:0,top:0};var c=s.getNorthEast(),f=s.getSouthWest(),h=i.fromLatLngToDivPixel(c),o=i.fromLatLngToDivPixel(f),l=dr(i,n/2,e/2),v=new google.maps.LatLng(0,l[0]),p=i.fromLatLngToContainerPixel(v),u=i.fromLatLngToDivPixel(v);if(!h||!o||!u||!p)return{width:n,height:e,left:0,top:0};var y=Math.round(u.x-p.x),x=u.y-p.y,M=dr(i,n/2,0),O=dr(i,n/2,e),m=l[1],g=l[0];if(Math.abs(m)>Mr){m=m>0?Mr:-Mr;var d=new google.maps.LatLng(m,g),k=i.fromLatLngToContainerPixel(d);x+=k.y-e/2}x=Math.round(x);var A=new Q(M).sub(O),E=180*A.verticalAngle()/Math.PI;E<0&&(E+=360);var S=r.getHeading()||0,P=r.getZoom()-1,w;if(E===0)w=e?(o.y-h.y)/e:1;else if(E===S){var T=new Q([h.x,h.y]).sub([o.x,o.y]).len(),z=new Q([n,-e]).len();w=z?T/z:1}return P+=Math.log2(w||1),{width:n,height:e,left:y,top:x,zoom:P,bearing:E,pitch:r.getTilt(),latitude:m,longitude:g}}function Or(r,t){var a=xe(r),n=a.width,e=a.height,i=t.getCameraParams(),s=i.center,c=i.heading,f=i.tilt,h=i.zoom,o=25,l=e?n/e:1,v=.75,p=3e14,u=new H().perspective({fovy:o*Math.PI/180,aspect:l,near:v,far:p}),y=.5*u[5];return{width:n,height:e,viewState:{altitude:y,bearing:c,latitude:s.lat(),longitude:s.lng(),pitch:f,projectionMatrix:u,repeat:!0,zoom:h-1}}}function xe(r){var t=r.getDiv().firstChild;return{width:t.offsetWidth,height:t.offsetHeight}}function dr(r,t,a){var n=new google.maps.Point(t,a),e=r.fromContainerPixelToLatLng(n);return[e.lng(),e.lat()]}function ht(r,t){if(r.pixel)return r.pixel;var a=t.getViewports()[0].project([r.latLng.lng(),r.latLng.lat()]);return{x:a[0],y:a[1]}}function lt(r,t,a){var n={type:t,offsetCenter:ht(a,r),srcEvent:a};switch(t){case"click":case"rightclick":n.type="click",n.tapCount=1,r._onPointerDown(n),r._onEvent(n);break;case"dblclick":n.type="click",n.tapCount=2,r._onEvent(n);break;case"mousemove":n.type="pointermove",r._onPointerMove(n);break;case"mouseout":n.type="pointerleave",r._onPointerMove(n);break;default:return}}var vt=["width","height","left","top"];function me(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),a.push.apply(a,n)}return a}function Z(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?me(Object(a),!0).forEach(function(n){(0,X.default)(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):me(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}var pt=function(){return!1},ut={depthMask:!0,depthTest:!0,blend:!0,blendFunc:[770,771,1,771],blendEquation:32774};function ye(){}var xt={interleaved:!0},ke=function(){function r(t){(0,Me.default)(this,r),(0,X.default)(this,"props",{}),(0,X.default)(this,"_map",null),(0,X.default)(this,"_deck",null),(0,X.default)(this,"_overlay",null),this.setProps(Z(Z({},xt),t))}return(0,de.default)(r,[{key:"setMap",value:function(a){var n=this;if(a!==this._map){if(this._map){var e;(e=this._overlay)===null||e===void 0||e.setMap(null),this._map=null}if(a){this._map=a;var i=google.maps.RenderingType.UNINITIALIZED,s=a.getRenderingType();s!==i?this._createOverlay(a):a.addListener("renderingtype_changed",function(){n._createOverlay(a)})}}}},{key:"setProps",value:function(a){if(Object.assign(this.props,a),this._deck){if(a.style){var n=this._deck.canvas.parentElement.style;Object.assign(n,a.style),a.style=null}this._deck.setProps(a)}}},{key:"pickObject",value:function(a){return this._deck&&this._deck.pickObject(a)}},{key:"pickMultipleObjects",value:function(a){return this._deck&&this._deck.pickMultipleObjects(a)}},{key:"pickObjects",value:function(a){return this._deck&&this._deck.pickObjects(a)}},{key:"finalize",value:function(){this.setMap(null),this._deck&&(lr(this._deck),this._deck=null)}},{key:"_createOverlay",value:function(a){var n=this.props.interleaved,e=google.maps.RenderingType,i=e.VECTOR,s=e.UNINITIALIZED,c=a.getRenderingType();if(c!==s){var f=c===i&&google.maps.WebGLOverlayView,h=f?google.maps.WebGLOverlayView:google.maps.OverlayView,o=new h;o instanceof google.maps.WebGLOverlayView?(n?(o.onAdd=ye,o.onContextRestored=this._onContextRestored.bind(this),o.onDraw=this._onDrawVectorInterleaved.bind(this)):(o.onAdd=this._onAdd.bind(this),o.onContextRestored=ye,o.onDraw=this._onDrawVectorOverlay.bind(this)),o.onContextLost=this._onContextLost.bind(this)):(o.onAdd=this._onAdd.bind(this),o.draw=this._onDrawRaster.bind(this)),o.onRemove=this._onRemove.bind(this),this._overlay=o,this._overlay.setMap(a)}}},{key:"_onAdd",value:function(){this._deck=kr(this._map,this._overlay,this._deck,this.props)}},{key:"_onContextRestored",value:function(a){var n=this,e=a.gl;if(!(!this._map||!this._overlay)){var i=function(){n._overlay&&n._overlay.requestRedraw()},s=kr(this._map,this._overlay,this._deck,Z({gl:e,_customRender:i},this.props));this._deck=s;var c=s.animationLoop;c._renderFrame=function(){var f=e.getParameter(34964);(0,K.withParameters)(e,{},function(){c.onRender()}),e.bindBuffer(34962,f)}}}},{key:"_onContextLost",value:function(){this._deck&&(lr(this._deck),this._deck=null)}},{key:"_onRemove",value:function(){var a;(a=this._deck)===null||a===void 0||a.setProps({layerFilter:pt})}},{key:"_onDrawRaster",value:function(){if(!(!this._deck||!this._map)){var a=this._deck,n=ue(this._map,this._overlay),e=n.width,i=n.height,s=n.left,c=n.top,f=(0,ge.default)(n,vt),h=a.canvas.parentElement.style;h.left="".concat(s,"px"),h.top="".concat(c,"px");var o=1e4;a.setProps({width:e,height:i,viewState:Z({altitude:o,repeat:!0},f)}),a.redraw()}}},{key:"_onDrawVectorInterleaved",value:function(a){var n=a.gl,e=a.transformer;if(!(!this._deck||!this._map)){var i=this._deck;if(i.setProps(Z(Z({},Or(this._map,e)),{},{width:null,height:null})),i.isInitialized){var s=(0,K.getParameters)(n,36006);i.setProps({_framebuffer:s}),i.needsRedraw({clearRedrawFlags:!0}),(0,K.setParameters)(n,{viewport:[0,0,n.canvas.width,n.canvas.height],scissor:[0,0,n.canvas.width,n.canvas.height],stencilFunc:[519,0,255,519,0,255]}),(0,K.withParameters)(n,ut,function(){i._drawLayers("google-vector",{clearCanvas:!1})})}}}},{key:"_onDrawVectorOverlay",value:function(a){var n=a.transformer;if(!(!this._deck||!this._map)){var e=this._deck;e.setProps(Z({},Or(this._map,n))),e.redraw()}}}]),r}();return Pe(J);})();
return __exports__;
});

@@ -36,2 +36,3 @@ "use strict";

click: null,
rightclick: null,
dblclick: null,

@@ -252,2 +253,4 @@ mousemove: null,

case 'click':
case 'rightclick':
mockEvent.type = 'click';
mockEvent.tapCount = 1;

@@ -254,0 +257,0 @@

@@ -15,2 +15,3 @@ import { Deck } from '@deck.gl/core';

click: null,
rightclick: null,
dblclick: null,

@@ -225,2 +226,4 @@ mousemove: null,

case 'click':
case 'rightclick':
mockEvent.type = 'click';
mockEvent.tapCount = 1;

@@ -227,0 +230,0 @@

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "8.9.2",
"version": "8.9.3",
"publishConfig": {

@@ -42,3 +42,3 @@ "access": "public"

},
"gitHead": "b43c2515c1fdac0a41fe653c98d6a315939ef0e1"
"gitHead": "6f194255993e10898d6bd01ea38935385d222dd4"
}

@@ -36,2 +36,3 @@ /* global google, document */

click: null,
rightclick: null,
dblclick: null,

@@ -297,2 +298,4 @@ mousemove: null,

case 'click':
case 'rightclick':
mockEvent.type = 'click';
mockEvent.tapCount = 1;

@@ -299,0 +302,0 @@ // Hack: because we do not listen to pointer down, perform picking now

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc