@deck.gl/geo-layers 8.10.0-alpha.5 → 8.10.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist.min.js +1 -1
  2. package/package.json +2 -2
package/dist.min.js CHANGED
@@ -59,7 +59,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
59
59
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Pb(e,t){if(e){if(typeof e=="string")return xb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xb(e,t)}}function xb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cs(e,t){t=t===void 0?e[0][0]:t;var r=Ob(e),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i[0]-t;a>180?i[0]-=360:a<-180&&(i[0]+=360)}}catch(o){r.e(o)}finally{r.f()}}function XR(e,t,r){var n=(0,Zi.cellToLatLng)(e),i=Eb(n,2),a=i[0],o=i[1],s=t.length;Cs(t,o);for(var u=t[0]===t[s-1]?s-1:s,f=0;f<u;f++)t[f][0]=dr(o,t[f][0],r),t[f][1]=dr(a,t[f][1],r)}function Bb(e,t,r){var n=e(t,r),i=(0,Zi.cellToLatLng)(n),a=Eb(i,2),o=a[0],s=a[1];return[s,o]}function rh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=(0,Zi.cellToBoundary)(e,!0);return t!==1?XR(e,r,t):Cs(r),r}function Cb(e){var t=new Float64Array(e.length*2),r=0,n=Ob(e),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;t[r++]=a[0],t[r++]=a[1]}}catch(o){n.e(o)}finally{n.f()}return t}function Mb(e,t){return YR(e)||KR(e,t)||Fb(e,t)||qR()}function qR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
60
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,s;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(u){a=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function YR(e){if(Array.isArray(e))return e}function $R(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fb(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
61
61
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Fb(e,t){if(e){if(typeof e=="string")return Ib(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ib(e,t)}}function Ib(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nh(e,t)}function nh(e,t){return nh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},nh(e,t)}function eF(e){var t=nF();return function(){var n=Ms(e),i;if(t){var a=Ms(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return tF(this,i)}}function tF(e,t){if(t&&(Qi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rF(e)}function rF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nF(){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 Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ms(e)}function Rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Is(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rb(Object(r),!0).forEach(function(n){iF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iF(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qi=function(r){return typeof r}:Qi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qi(e)}var aF=10;function oF(e,t){var r;return e==null?r=t:Qi(e)==="object"?r=Is(Is({},e),{},{coverage:t}):r={getHexagon:e,coverage:t},r}var sF=Is(Is({},ea.PolygonLayer.defaultProps),{},{highPrecision:"auto",coverage:{type:"number",min:0,max:1,value:1},centerHexagon:null,getHexagon:{type:"accessor",value:function(t){return t.hexagon}},extruded:!0}),Qr=function(e){QR(r,e);var t=eF(r);function r(){var i;ZR(this,r);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return i=t.call.apply(t,[this].concat(o)),i.state=void 0,i}var n=r.prototype;return n.initializeState=function(){r._checkH3Lib(),this.state={edgeLengthKM:0,resolution:-1}},n.shouldUpdateState=function(a){var o=a.changeFlags;return this._shouldUseHighPrecision()?o.propsOrDataChanged:o.somethingChanged},n.updateState=function(a){var o=a.props,s=a.changeFlags;if(o.highPrecision!==!0&&(s.dataChanged||s.updateTriggersChanged&&s.updateTriggersChanged.getHexagon)){var u=this._calculateH3DataProps();this.setState(u)}this._updateVertices(this.context.viewport)},n._calculateH3DataProps=function(){var a=-1,o=!1,s=!1,u=(0,Rs.createIterable)(this.props.data),f=u.iterable,c=u.objectInfo,l=$R(f),d;try{for(l.s();!(d=l.n()).done;){var h=d.value;c.index++;var p=this.props.getHexagon(h,c),m=(0,nt.getResolution)(p);if(a<0){if(a=m,!this.props.highPrecision)break}else if(a!==m){s=!0;break}if((0,nt.isPentagon)(p)){o=!0;break}}}catch(g){l.e(g)}finally{l.f()}return{resolution:a,edgeLengthKM:a>=0?(0,nt.getHexagonEdgeLengthAvg)(a,"km"):0,hasMultipleRes:s,hasPentagon:o}},n._shouldUseHighPrecision=function(){if(this.props.highPrecision==="auto"){var a=this.state,o=a.resolution,s=a.hasPentagon,u=a.hasMultipleRes,f=this.context.viewport;return Boolean(f?.resolution)||u||s||o>=0&&o<=5}return this.props.highPrecision},n._updateVertices=function(a){if(!this._shouldUseHighPrecision()){var o=this.state,s=o.resolution,u=o.edgeLengthKM,f=o.centerHex;if(!(s<0)){var c=this.props.centerHexagon||(0,nt.latLngToCell)(a.latitude,a.longitude,s);if(f!==c){if(f)try{var l=(0,nt.gridDistance)(f,c);if(l*u<aF)return}catch{}var d=a.distanceScales.unitsPerMeter,h=rh(c),p=(0,nt.cellToLatLng)(c),m=Mb(p,2),g=m[0],y=m[1],b=a.projectFlat([y,g]),A=Mb(b,2),S=A[0],O=A[1];h=h.map(function(w){var B=a.projectFlat(w);return[(B[0]-S)/d[0],(B[1]-O)/d[1]]}),this.setState({centerHex:c,vertices:h})}}}},n.renderLayers=function(){return this._shouldUseHighPrecision()?this._renderPolygonLayer():this._renderColumnLayer()},n._getForwardProps=function(){var a=this.props,o=a.elevationScale,s=a.material,u=a.coverage,f=a.extruded,c=a.wireframe,l=a.stroked,d=a.filled,h=a.lineWidthUnits,p=a.lineWidthScale,m=a.lineWidthMinPixels,g=a.lineWidthMaxPixels,y=a.getFillColor,b=a.getElevation,A=a.getLineColor,S=a.getLineWidth,O=a.transitions,w=a.updateTriggers;return{elevationScale:o,extruded:f,coverage:u,wireframe:c,stroked:l,filled:d,lineWidthUnits:h,lineWidthScale:p,lineWidthMinPixels:m,lineWidthMaxPixels:g,material:s,getElevation:b,getFillColor:y,getLineColor:A,getLineWidth:S,transitions:O,updateTriggers:{getFillColor:w.getFillColor,getElevation:w.getElevation,getLineColor:w.getLineColor,getLineWidth:w.getLineWidth}}},n._renderPolygonLayer=function(){var a=this.props,o=a.data,s=a.getHexagon,u=a.updateTriggers,f=a.coverage,c=this.getSubLayerClass("hexagon-cell-hifi",ea.PolygonLayer),l=this._getForwardProps();return l.updateTriggers.getPolygon=oF(u.getHexagon,f),new c(l,this.getSubLayerProps({id:"hexagon-cell-hifi",updateTriggers:l.updateTriggers}),{data:o,_normalize:!1,_windingOrder:"CCW",positionFormat:"XY",getPolygon:function(h,p){var m=s(h,p);return Cb(rh(m,f))}})},n._renderColumnLayer=function(){var a=this.props,o=a.data,s=a.getHexagon,u=a.updateTriggers,f=this.getSubLayerClass("hexagon-cell",ea.ColumnLayer),c=this._getForwardProps();return c.updateTriggers.getPosition=u.getHexagon,new f(c,this.getSubLayerProps({id:"hexagon-cell",flatShading:!0,updateTriggers:c.updateTriggers}),{data:o,diskResolution:6,radius:1,vertices:this.state.vertices,getPosition:Bb.bind(null,s)})},r}(Rs.CompositeLayer);Qr.defaultProps=sF;Qr.layerName="H3HexagonLayer";Qr._checkH3Lib=function(){};function Fs(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fs=function(r){return typeof r}:Fs=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fs(e)}function ih(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=uF(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
62
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function uF(e,t){if(e){if(typeof e=="string")return Lb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lb(e,t)}}function Lb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ah(e,t)}function ah(e,t){return ah=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ah(e,t)}function lF(e){var t=pF();return function(){var n=Ls(e),i;if(t){var a=Ls(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return hF(this,i)}}function hF(e,t){if(t&&(Fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dF(e)}function dF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pF(){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 Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}var mF={getHexagons:{type:"accessor",value:function(t){return t.hexagons}}},Ds=function(e){cF(r,e);var t=lF(r);function r(){return fF(this,r),t.apply(this,arguments)}var n=r.prototype;return n.initializeState=function(){Qr._checkH3Lib()},n.updateState=function(a){var o=a.props,s=a.changeFlags;if(s.dataChanged||s.updateTriggersChanged&&s.updateTriggersChanged.getHexagons){var u=o.data,f=o.getHexagons,c=[],l=(0,Gb.createIterable)(u),d=l.iterable,h=l.objectInfo,p=ih(d),m;try{for(p.s();!(m=p.n()).done;){var g=m.value;h.index++;var y=f(g,h),b=(0,Db.cellsToMultiPolygon)(y,!0),A=ih(b),S;try{for(A.s();!(S=A.n()).done;){var O=S.value,w=ih(O),B;try{for(w.s();!(B=w.n()).done;){var P=B.value;Cs(P)}}catch(x){w.e(x)}finally{w.f()}c.push(this.getSubLayerRow({polygon:O},g,h.index))}}catch(x){A.e(x)}finally{A.f()}}}catch(x){p.e(x)}finally{p.f()}this.setState({polygons:c})}},n.indexToBounds=function(){var a=this.props,o=a.getElevation,s=a.getFillColor,u=a.getLineColor,f=a.getLineWidth;return{data:this.state.polygons,getPolygon:function(l){return l.polygon},getElevation:this.getSubLayerAccessor(o),getFillColor:this.getSubLayerAccessor(s),getLineColor:this.getSubLayerAccessor(u),getLineWidth:this.getSubLayerAccessor(f)}},r}(rt);Ds.layerName="H3ClusterLayer";Ds.defaultProps=mF;var ax=q(oh()),Lr=q(dt()),ox=q(ht()),sx=q(Gs());function Hn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hn=function(r){return typeof r}:Hn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hn(e)}function sh(e){if(typeof window<"u"&&Hn(window.process)==="object"&&window.process.type==="renderer"||typeof process<"u"&&Hn(process.versions)==="object"&&Boolean(process.versions.electron))return!0;var t=(typeof navigator>"u"?"undefined":Hn(navigator))==="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent,r=e||t;return!!(r&&r.indexOf("Electron")>=0)}function Ns(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ns=function(r){return typeof r}:Ns=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ns(e)}function Ue(){var e=(typeof process>"u"?"undefined":Ns(process))==="object"&&String(process)==="[object process]"&&!process.browser;return!e||sh()}function Us(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Us=function(r){return typeof r}:Us=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Us(e)}var _r={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document,process:(typeof process>"u"?"undefined":Us(process))==="object"&&process};var vF=_r.self||_r.window||_r.global,Vn=_r.window||_r.self||_r.global,gF=_r.document||{},en=_r.process||{};var js="8.10.0-alpha.5",Yq=Ue();function yF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bF(e){try{var t=window[e],r="__storage_test__";return t.setItem(r,r),t.removeItem(r),t}catch{return null}}var jb=function(){function e(r){yF(this,e);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"sessionStorage";v(this,"storage",void 0),v(this,"id",void 0),v(this,"config",{}),this.storage=bF(i),this.id=r,this.config={},Object.assign(this.config,n),this._loadConfiguration()}var t=e.prototype;return t.getConfiguration=function(){return this.config},t.setConfiguration=function(n){return this.config={},this.updateConfiguration(n)},t.updateConfiguration=function(n){if(Object.assign(this.config,n),this.storage){var i=JSON.stringify(this.config);this.storage.setItem(this.id,i)}return this},t._loadConfiguration=function(){var n={};if(this.storage){var i=this.storage.getItem(this.id);n=i?JSON.parse(i):{}}return Object.assign(this.config,n),this},e}();function kb(e){var t;return e<10?t="".concat(e.toFixed(2),"ms"):e<100?t="".concat(e.toFixed(1),"ms"):e<1e3?t="".concat(e.toFixed(0),"ms"):t="".concat((e/1e3).toFixed(2),"s"),t}function Hb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8,r=Math.max(t-e.length,0);return"".concat(" ".repeat(r)).concat(e)}function ks(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:600,i=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>n&&(r=Math.min(r,n/e.width));var a=e.width*r,o=e.height*r,s=["font-size:1px;","padding:".concat(Math.floor(o/2),"px ").concat(Math.floor(a/2),"px;"),"line-height:".concat(o,"px;"),"background:url(".concat(i,");"),"background-size:".concat(a,"px ").concat(o,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),s]}var Hs;(function(e){e[e.BLACK=30]="BLACK",e[e.RED=31]="RED",e[e.GREEN=32]="GREEN",e[e.YELLOW=33]="YELLOW",e[e.BLUE=34]="BLUE",e[e.MAGENTA=35]="MAGENTA",e[e.CYAN=36]="CYAN",e[e.WHITE=37]="WHITE",e[e.BRIGHT_BLACK=90]="BRIGHT_BLACK",e[e.BRIGHT_RED=91]="BRIGHT_RED",e[e.BRIGHT_GREEN=92]="BRIGHT_GREEN",e[e.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",e[e.BRIGHT_BLUE=94]="BRIGHT_BLUE",e[e.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",e[e.BRIGHT_CYAN=96]="BRIGHT_CYAN",e[e.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Hs||(Hs={}));function Vb(e){return typeof e=="string"?Hs[e.toUpperCase()]||Hs.WHITE:e}function zb(e,t,r){return!Ue&&typeof e=="string"&&(t&&(t=Vb(t),e="\x1B[".concat(t,"m").concat(e,"\x1B[39m")),r&&(t=Vb(r),e="\x1B[".concat(r+10,"m").concat(e,"\x1B[49m"))),e}function _F(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=AF(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
62
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function uF(e,t){if(e){if(typeof e=="string")return Lb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lb(e,t)}}function Lb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ah(e,t)}function ah(e,t){return ah=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ah(e,t)}function lF(e){var t=pF();return function(){var n=Ls(e),i;if(t){var a=Ls(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return hF(this,i)}}function hF(e,t){if(t&&(Fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dF(e)}function dF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pF(){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 Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}var mF={getHexagons:{type:"accessor",value:function(t){return t.hexagons}}},Ds=function(e){cF(r,e);var t=lF(r);function r(){return fF(this,r),t.apply(this,arguments)}var n=r.prototype;return n.initializeState=function(){Qr._checkH3Lib()},n.updateState=function(a){var o=a.props,s=a.changeFlags;if(s.dataChanged||s.updateTriggersChanged&&s.updateTriggersChanged.getHexagons){var u=o.data,f=o.getHexagons,c=[],l=(0,Gb.createIterable)(u),d=l.iterable,h=l.objectInfo,p=ih(d),m;try{for(p.s();!(m=p.n()).done;){var g=m.value;h.index++;var y=f(g,h),b=(0,Db.cellsToMultiPolygon)(y,!0),A=ih(b),S;try{for(A.s();!(S=A.n()).done;){var O=S.value,w=ih(O),B;try{for(w.s();!(B=w.n()).done;){var P=B.value;Cs(P)}}catch(x){w.e(x)}finally{w.f()}c.push(this.getSubLayerRow({polygon:O},g,h.index))}}catch(x){A.e(x)}finally{A.f()}}}catch(x){p.e(x)}finally{p.f()}this.setState({polygons:c})}},n.indexToBounds=function(){var a=this.props,o=a.getElevation,s=a.getFillColor,u=a.getLineColor,f=a.getLineWidth;return{data:this.state.polygons,getPolygon:function(l){return l.polygon},getElevation:this.getSubLayerAccessor(o),getFillColor:this.getSubLayerAccessor(s),getLineColor:this.getSubLayerAccessor(u),getLineWidth:this.getSubLayerAccessor(f)}},r}(rt);Ds.layerName="H3ClusterLayer";Ds.defaultProps=mF;var ax=q(oh()),Lr=q(dt()),ox=q(ht()),sx=q(Gs());function Hn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hn=function(r){return typeof r}:Hn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hn(e)}function sh(e){if(typeof window<"u"&&Hn(window.process)==="object"&&window.process.type==="renderer"||typeof process<"u"&&Hn(process.versions)==="object"&&Boolean(process.versions.electron))return!0;var t=(typeof navigator>"u"?"undefined":Hn(navigator))==="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent,r=e||t;return!!(r&&r.indexOf("Electron")>=0)}function Ns(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ns=function(r){return typeof r}:Ns=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ns(e)}function Ue(){var e=(typeof process>"u"?"undefined":Ns(process))==="object"&&String(process)==="[object process]"&&!process.browser;return!e||sh()}function Us(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Us=function(r){return typeof r}:Us=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Us(e)}var _r={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document,process:(typeof process>"u"?"undefined":Us(process))==="object"&&process};var vF=_r.self||_r.window||_r.global,Vn=_r.window||_r.self||_r.global,gF=_r.document||{},en=_r.process||{};var js="8.10.0-alpha.6",Yq=Ue();function yF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bF(e){try{var t=window[e],r="__storage_test__";return t.setItem(r,r),t.removeItem(r),t}catch{return null}}var jb=function(){function e(r){yF(this,e);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"sessionStorage";v(this,"storage",void 0),v(this,"id",void 0),v(this,"config",{}),this.storage=bF(i),this.id=r,this.config={},Object.assign(this.config,n),this._loadConfiguration()}var t=e.prototype;return t.getConfiguration=function(){return this.config},t.setConfiguration=function(n){return this.config={},this.updateConfiguration(n)},t.updateConfiguration=function(n){if(Object.assign(this.config,n),this.storage){var i=JSON.stringify(this.config);this.storage.setItem(this.id,i)}return this},t._loadConfiguration=function(){var n={};if(this.storage){var i=this.storage.getItem(this.id);n=i?JSON.parse(i):{}}return Object.assign(this.config,n),this},e}();function kb(e){var t;return e<10?t="".concat(e.toFixed(2),"ms"):e<100?t="".concat(e.toFixed(1),"ms"):e<1e3?t="".concat(e.toFixed(0),"ms"):t="".concat((e/1e3).toFixed(2),"s"),t}function Hb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8,r=Math.max(t-e.length,0);return"".concat(" ".repeat(r)).concat(e)}function ks(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:600,i=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>n&&(r=Math.min(r,n/e.width));var a=e.width*r,o=e.height*r,s=["font-size:1px;","padding:".concat(Math.floor(o/2),"px ").concat(Math.floor(a/2),"px;"),"line-height:".concat(o,"px;"),"background:url(".concat(i,");"),"background-size:".concat(a,"px ").concat(o,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),s]}var Hs;(function(e){e[e.BLACK=30]="BLACK",e[e.RED=31]="RED",e[e.GREEN=32]="GREEN",e[e.YELLOW=33]="YELLOW",e[e.BLUE=34]="BLUE",e[e.MAGENTA=35]="MAGENTA",e[e.CYAN=36]="CYAN",e[e.WHITE=37]="WHITE",e[e.BRIGHT_BLACK=90]="BRIGHT_BLACK",e[e.BRIGHT_RED=91]="BRIGHT_RED",e[e.BRIGHT_GREEN=92]="BRIGHT_GREEN",e[e.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",e[e.BRIGHT_BLUE=94]="BRIGHT_BLUE",e[e.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",e[e.BRIGHT_CYAN=96]="BRIGHT_CYAN",e[e.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Hs||(Hs={}));function Vb(e){return typeof e=="string"?Hs[e.toUpperCase()]||Hs.WHITE:e}function zb(e,t,r){return!Ue&&typeof e=="string"&&(t&&(t=Vb(t),e="\x1B[".concat(t,"m").concat(e,"\x1B[39m")),r&&(t=Vb(r),e="\x1B[".concat(r+10,"m").concat(e,"\x1B[49m"))),e}function _F(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=AF(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
63
63
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function AF(e,t){if(e){if(typeof e=="string")return Wb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wb(e,t)}}function Wb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Jb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["constructor"],r=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(r),i=_F(n),a;try{var o=function(){var u=a.value;typeof e[u]=="function"&&(t.find(function(f){return u===f})||(e[u]=e[u].bind(e)))};for(i.s();!(a=i.n()).done;)o()}catch(s){i.e(s)}finally{i.f()}}function zn(e,t){if(!e)throw new Error(t||"Assertion failed")}function tn(){var e;if(Ue&&"performance"in Vn){var t,r;e=Vn===null||Vn===void 0||(t=Vn.performance)===null||t===void 0||(r=t.now)===null||r===void 0?void 0:r.call(t)}else if("hrtime"in en){var n,i=en===null||en===void 0||(n=en.hrtime)===null||n===void 0?void 0:n.call(en);e=i[0]*1e3+i[1]/1e6}else e=Date.now();return e}function Jn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jn=function(r){return typeof r}:Jn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jn(e)}function Vs(e){return xF(e)||wF(e)||SF(e)||TF()}function TF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
64
64
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SF(e,t){if(e){if(typeof e=="string")return uh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uh(e,t)}}function wF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xF(e){if(Array.isArray(e))return uh(e)}function uh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function EF(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function PF(e,t,r){return t&&Xb(e.prototype,t),r&&Xb(e,r),e}var Wn={debug:Ue&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},BF={enabled:!0,level:0};function it(){}var qb={},Kb={once:!0},Xn=function(){function e(){OF(this,e);var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{id:""},n=r.id;v(this,"id",void 0),v(this,"VERSION",js),v(this,"_startTs",tn()),v(this,"_deltaTs",tn()),v(this,"_storage",void 0),v(this,"userData",{}),v(this,"LOG_THROTTLE_TIMEOUT",0),this.id=n,this._storage=new jb("__probe-".concat(this.id,"__"),BF),this.userData={},this.timeStamp("".concat(this.id," started")),Jb(this),Object.seal(this)}var t=e.prototype;return t.isEnabled=function(){return this._storage.config.enabled},t.getLevel=function(){return this._storage.config.level},t.getTotal=function(){return Number((tn()-this._startTs).toPrecision(10))},t.getDelta=function(){return Number((tn()-this._deltaTs).toPrecision(10))},t.getPriority=function(){return this.level},t.enable=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this._storage.updateConfiguration({enabled:n}),this},t.setLevel=function(n){return this._storage.updateConfiguration({level:n}),this},t.get=function(n){return this._storage.config[n]},t.set=function(n,i){this._storage.updateConfiguration(EF({},n,i))},t.settings=function(){console.table?console.table(this._storage.config):console.log(this._storage.config)},t.assert=function(n,i){zn(n,i)},t.warn=function(n){return this._getLogFunction(0,n,Wn.warn,arguments,Kb)},t.error=function(n){return this._getLogFunction(0,n,Wn.error,arguments)},t.deprecated=function(n,i){return this.warn("`".concat(n,"` is deprecated and will be removed in a later version. Use `").concat(i,"` instead"))},t.removed=function(n,i){return this.error("`".concat(n,"` has been removed. Use `").concat(i,"` instead"))},t.probe=function(n,i){return this._getLogFunction(n,i,Wn.log,arguments,{time:!0,once:!0})},t.log=function(n,i){return this._getLogFunction(n,i,Wn.debug,arguments)},t.info=function(n,i){return this._getLogFunction(n,i,console.info,arguments)},t.once=function(n,i){for(var a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];return this._getLogFunction(n,i,Wn.debug||Wn.info,arguments,Kb)},t.table=function(n,i,a){return i?this._getLogFunction(n,i,console.table||it,a&&[a],{tag:RF(i)}):it},t.image=function(n){var i=n.logLevel,a=n.priority,o=n.image,s=n.message,u=s===void 0?"":s,f=n.scale,c=f===void 0?1:f;return this._shouldLog(i||a)?Ue?IF({image:o,message:u,scale:c}):MF({image:o,message:u,scale:c}):it},t.time=function(n,i){return this._getLogFunction(n,i,console.time?console.time:console.info)},t.timeEnd=function(n,i){return this._getLogFunction(n,i,console.timeEnd?console.timeEnd:console.info)},t.timeStamp=function(n,i){return this._getLogFunction(n,i,console.timeStamp||it)},t.group=function(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{collapsed:!1},o=Yb({logLevel:n,message:i,opts:a}),s=a.collapsed;return o.method=(s?console.groupCollapsed:console.group)||console.info,this._getLogFunction(o)},t.groupCollapsed=function(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.group(n,i,Object.assign({},a,{collapsed:!0}))},t.groupEnd=function(n){return this._getLogFunction(n,"",console.groupEnd||it)},t.withGroup=function(n,i,a){this.group(n,i)();try{a()}finally{this.groupEnd(n)()}},t.trace=function(){console.trace&&console.trace()},t._shouldLog=function(n){return this.isEnabled()&&this.getLevel()>=$b(n)},t._getLogFunction=function(n,i,a,o,s){if(this._shouldLog(n)){var u;s=Yb({logLevel:n,message:i,args:o,opts:s}),a=a||s.method,zn(a),s.total=this.getTotal(),s.delta=this.getDelta(),this._deltaTs=tn();var f=s.tag||s.message;if(s.once)if(!qb[f])qb[f]=tn();else return it;return i=CF(this.id,s.message,s),(u=a).bind.apply(u,[console,i].concat(Vs(s.args)))}return it},PF(e,[{key:"level",get:function(){return this.getLevel()},set:function(n){this.setLevel(n)}},{key:"priority",get:function(){return this.level},set:function(n){this.level=n}}]),e}();v(Xn,"VERSION",js);function $b(e){if(!e)return 0;var t;switch(Jn(e)){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return zn(Number.isFinite(t)&&t>=0),t}function Yb(e){var t=e.logLevel,r=e.message;e.logLevel=$b(t);for(var n=e.args?Array.from(e.args):[];n.length&&n.shift()!==r;);switch(Jn(t)){case"string":case"function":r!==void 0&&n.unshift(r),e.message=t;break;case"object":Object.assign(e,t);break;default:}typeof e.message=="function"&&(e.message=e.message());var i=Jn(e.message);return zn(i==="string"||i==="object"),Object.assign(e,{args:n},e.opts)}function CF(e,t,r){if(typeof t=="string"){var n=r.time?Hb(kb(r.total)):"";t=r.time?"".concat(e,": ").concat(n," ").concat(t):"".concat(e,": ").concat(t),t=zb(t,r.color,r.background)}return t}function MF(e){var t=e.image,r=e.message,n=r===void 0?"":r,i=e.scale,a=i===void 0?1:i,o=null;try{o=module.require("asciify-image")}catch{}return o?function(){return o(t,{fit:"box",width:"".concat(Math.round(80*a),"%")}).then(function(s){return console.log(s)})}:it}function IF(e){var t=e.image,r=e.message,n=r===void 0?"":r,i=e.scale,a=i===void 0?1:i;if(typeof t=="string"){var o=new Image;return o.onload=function(){var c,l=ks(o,n,a);(c=console).log.apply(c,Vs(l))},o.src=t,it}var s=t.nodeName||"";if(s.toLowerCase()==="img"){var u;return(u=console).log.apply(u,Vs(ks(t,n,a))),it}if(s.toLowerCase()==="canvas"){var f=new Image;return f.onload=function(){var c;return(c=console).log.apply(c,Vs(ks(f,n,a)))},f.src=t.toDataURL(),it}return it}function RF(e){for(var t in e)for(var r in e[t])return r||"untitled";return"empty"}var wK=new Xn({id:"@probe.gl/log"});var Q=new Xn({id:"luma.gl"});function Oe(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}var FF="Invalid WebGLRenderingContext";var LF="Requires WebGL2";function zs(e){return typeof WebGLRenderingContext<"u"&&e instanceof WebGLRenderingContext||typeof WebGL2RenderingContext<"u"&&e instanceof WebGL2RenderingContext?!0:Boolean(e&&Number.isFinite(e._version))}function ne(e){return typeof WebGL2RenderingContext<"u"&&e instanceof WebGL2RenderingContext?!0:Boolean(e&&e._version===2)}function fh(e){return ne(e)?e:null}function ta(e){return Oe(zs(e),FF),e}function Me(e){return Oe(ne(e),LF),e}var ra={};function DF(e){globalThis.console&&globalThis.console.error&&globalThis.console.error(e)}function GF(e){globalThis.console&&globalThis.console.log&&globalThis.console.log(e)}function NF(e,t){ra[e]=!0,t!==void 0&&DF(t)}function UF(e){var t=e.getError;e.getError=function(){var n;do n=t.apply(e),n!==0&&(ra[n]=!0);while(n!==0);for(n in ra)if(ra[n])return delete ra[n],parseInt(n,10);return 0}}var na=function e(t){var r=t.gl;this.ext=t,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(t.maxVertexAttribs);for(var n=0;n<this.attribs.length;n++){var i=new e.VertexAttrib(r);this.attribs[n]=i}this.maxAttrib=0};na.VertexAttrib=function(t){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()};na.VertexAttrib.prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};var rn=function(t){var r=this;this.gl=t,UF(t);var n=this.original={getParameter:t.getParameter,enableVertexAttribArray:t.enableVertexAttribArray,disableVertexAttribArray:t.disableVertexAttribArray,bindBuffer:t.bindBuffer,getVertexAttrib:t.getVertexAttrib,vertexAttribPointer:t.vertexAttribPointer};t.getParameter=function(a){return a===r.VERTEX_ARRAY_BINDING_OES?r.currentVertexArrayObject===r.defaultVertexArrayObject?null:r.currentVertexArrayObject:n.getParameter.apply(this,arguments)},t.enableVertexAttribArray=function(a){var o=r.currentVertexArrayObject;o.maxAttrib=Math.max(o.maxAttrib,a);var s=o.attribs[a];return s.enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},t.disableVertexAttribArray=function(a){var o=r.currentVertexArrayObject;o.maxAttrib=Math.max(o.maxAttrib,a);var s=o.attribs[a];return s.enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},t.bindBuffer=function(a,o){switch(a){case 34962:r.currentArrayBuffer=o;break;case 34963:r.currentVertexArrayObject.elementArrayBuffer=o;break;default:}return n.bindBuffer.apply(this,arguments)},t.getVertexAttrib=function(a,o){var s=r.currentVertexArrayObject,u=s.attribs[a];switch(o){case 34975:return u.buffer;case 34338:return u.enabled;case 34339:return u.size;case 34340:return u.stride;case 34341:return u.type;case 34922:return u.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},t.vertexAttribPointer=function(a,o,s,u,f,c){var l=r.currentVertexArrayObject;l.maxAttrib=Math.max(l.maxAttrib,a);var d=l.attribs[a];return d.buffer=r.currentArrayBuffer,d.size=o,d.type=s,d.normalized=u,d.stride=f,d.offset=c,d.recache(),n.vertexAttribPointer.apply(this,arguments)},t.instrumentExtension&&t.instrumentExtension(this,"OES_vertex_array_object"),t.canvas&&t.canvas.addEventListener("webglcontextrestored",function(){GF("OESVertexArrayObject emulation library context restored"),r.reset_()},!0),this.reset_()};rn.prototype.VERTEX_ARRAY_BINDING_OES=34229;rn.prototype.reset_=function(){var t=this.vertexArrayObjects!==void 0;if(t)for(var r=0;r<this.vertexArrayObjects.length;++r)this.vertexArrayObjects.isAlive=!1;var n=this.gl;this.maxVertexAttribs=n.getParameter(34921),this.defaultVertexArrayObject=new na(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)};rn.prototype.createVertexArrayOES=function(){var t=new na(this);return this.vertexArrayObjects.push(t),t};rn.prototype.deleteVertexArrayOES=function(t){t.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(t),1),this.currentVertexArrayObject===t&&this.bindVertexArrayOES(null)};rn.prototype.isVertexArrayOES=function(t){return!!(t&&t instanceof na&&t.hasBeenBound&&t.ext===this)};rn.prototype.bindVertexArrayOES=function(t){var r=this.gl;if(t&&!t.isAlive){NF(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject");return}var n=this.original,i=this.currentVertexArrayObject;this.currentVertexArrayObject=t||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;var a=this.currentVertexArrayObject;if(i!==a){(!i||a.elementArrayBuffer!==i.elementArrayBuffer)&&n.bindBuffer.call(r,34963,a.elementArrayBuffer);for(var o=this.currentArrayBuffer,s=Math.max(i?i.maxAttrib:0,a.maxAttrib),u=0;u<=s;u++){var f=a.attribs[u],c=i?i.attribs[u]:null;if((!i||f.enabled!==c.enabled)&&(f.enabled?n.enableVertexAttribArray.call(r,u):n.disableVertexAttribArray.call(r,u)),f.enabled){var l=!1;(!i||f.buffer!==c.buffer)&&(o!==f.buffer&&(n.bindBuffer.call(r,34962,f.buffer),o=f.buffer),l=!0),(l||f.cached!==c.cached)&&n.vertexAttribPointer.call(r,u,f.size,f.type,f.normalized,f.stride,f.offset)}}this.currentArrayBuffer!==o&&n.bindBuffer.call(r,34962,this.currentArrayBuffer)}};function Zb(e){if(typeof e.createVertexArray!="function"){var t=e.getSupportedExtensions;e.getSupportedExtensions=function(){var i=t.call(this)||[];return i.indexOf("OES_vertex_array_object")<0&&i.push("OES_vertex_array_object"),i};var r=e.getExtension;e.getExtension=function(i){var a=r.call(this,i);return a||(i!=="OES_vertex_array_object"?null:(e.__OESVertexArrayObject||(this.__OESVertexArrayObject=new rn(this)),this.__OESVertexArrayObject))}}}var K;function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qb="OES_element_index",e_="WEBGL_draw_buffers",jF="EXT_disjoint_timer_query",kF="EXT_disjoint_timer_query_webgl2",HF="EXT_texture_filter_anisotropic",t_="WEBGL_debug_renderer_info",VF=35723,zF=4352,WF=36795,JF=34047,XF=37445,qF=37446,pe=function(t){return ne(t)?void 0:0},KF=(K={},$(K,3074,function(t){return ne(t)?void 0:36064}),$(K,VF,function(e){return ne(e)?void 0:zF}),$(K,35977,pe),$(K,32937,pe),$(K,WF,function(e,t){var r=ne(e)?e.getExtension(kF):e.getExtension(jF);return r&&r.GPU_DISJOINT_EXT?t(r.GPU_DISJOINT_EXT):0}),$(K,XF,function(e,t){var r=e.getExtension(t_);return t(r&&r.UNMASKED_VENDOR_WEBGL||7936)}),$(K,qF,function(e,t){var r=e.getExtension(t_);return t(r&&r.UNMASKED_RENDERER_WEBGL||7937)}),$(K,JF,function(e,t){var r=e.luma.extensions[HF];return r?t(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1}),$(K,32883,pe),$(K,35071,pe),$(K,37447,pe),$(K,36063,function(t,r){if(!ne(t)){var n=t.getExtension(e_);return n?r(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}}),$(K,35379,pe),$(K,35374,pe),$(K,35377,pe),$(K,34852,function(t){if(!ne(t)){var r=t.getExtension(e_);return r?r.MAX_DRAW_BUFFERS_WEBGL:0}}),$(K,36203,function(t){return t.getExtension(Qb)?2147483647:65535}),$(K,33001,function(t){return t.getExtension(Qb)?16777216:65535}),$(K,33e3,function(t){return 16777216}),$(K,37157,pe),$(K,35373,pe),$(K,35657,pe),$(K,36183,pe),$(K,37137,pe),$(K,34045,pe),$(K,35978,pe),$(K,35979,pe),$(K,35968,pe),$(K,35376,pe),$(K,35375,pe),$(K,35659,pe),$(K,37154,pe),$(K,35371,pe),$(K,35658,pe),$(K,35076,pe),$(K,35077,pe),$(K,35380,pe),K);function r_(e,t,r){var n=KF[r],i=typeof n=="function"?n(e,t,r):n,a=i!==void 0?i:t(r);return a}var qn;function Ws(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var YF="OES_vertex_array_object",n_="ANGLE_instanced_arrays",$F="WEBGL_draw_buffers",ZF="EXT_disjoint_timer_query",QF="EXT_texture_filter_anisotropic",eL="VertexArray requires WebGL2 or OES_vertex_array_object extension";function tL(e,t){return{webgl2:ne(e),ext:e.getExtension(t)}}var ch=(qn={},Ws(qn,YF,{meta:{suffix:"OES"},createVertexArray:function(){Oe(!1,eL)},deleteVertexArray:function(){},bindVertexArray:function(){},isVertexArray:function(){return!1}}),Ws(qn,n_,{meta:{suffix:"ANGLE"},vertexAttribDivisor:function(t,r){Oe(r===0,"WebGL instanced rendering not supported")},drawElementsInstanced:function(){},drawArraysInstanced:function(){}}),Ws(qn,$F,{meta:{suffix:"WEBGL"},drawBuffers:function(){Oe(!1)}}),Ws(qn,ZF,{meta:{suffix:"EXT"},createQuery:function(){Oe(!1)},deleteQuery:function(){Oe(!1)},beginQuery:function(){Oe(!1)},endQuery:function(){},getQuery:function(t,r){return this.getQueryObject(t,r)},getQueryParameter:function(t,r){return this.getQueryObject(t,r)},getQueryObject:function(){}}),qn),Js={readBuffer:function(t,r,n){ne(t)&&r(n)},getVertexAttrib:function(t,r,n,i){var a=tL(t,n_),o=a.webgl2,s=a.ext,u;switch(i){case 35069:u=o?void 0:!1;break;case 35070:u=!o&&!s?0:void 0;break;default:}return u!==void 0?u:r(n,i)},getProgramParameter:function(t,r,n,i){if(!ne(t))switch(i){case 35967:return 35981;case 35971:return 0;case 35382:return 0;default:}return r(n,i)},getInternalformatParameter:function(t,r,n,i,a){if(!ne(t))switch(a){case 32937:return new Int32Array([0]);default:}return t.getInternalformatParameter(n,i,a)},getTexParameter:function(t,r,n,i){switch(i){case 34046:var a=t.luma.extensions,o=a[QF];i=o&&o.TEXTURE_MAX_ANISOTROPY_EXT||34046;break;default:}return r(n,i)},getParameter:r_,hint:function(t,r,n,i){return r(n,i)}};function a_(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=rL(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
65
65
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return a=f.done,f},e:function(f){o=!0,s=f},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function rL(e,t){if(e){if(typeof e=="string")return i_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i_(e,t)}}function i_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o_(e){e.luma=e.luma||{};var t=e.luma;return t.polyfilled||(Zb(e),nL(e),aL(e,ch),iL(e,{target:t,target2:e}),t.polyfilled=!0),e}globalThis.polyfillContext=o_;function nL(e){e.luma.extensions={};var t=e.getSupportedExtensions()||[],r=a_(t),n;try{for(r.s();!(n=r.n()).done;){var i=n.value;e.luma[i]=e.getExtension(i)}}catch(a){r.e(a)}finally{r.f()}}function iL(e,t){var r=t.target,n=t.target2;Object.keys(Js).forEach(function(i){if(typeof Js[i]=="function"){var a=e[i]?e[i].bind(e):function(){},o=Js[i].bind(null,e,a);r[i]=o,n[i]=o}})}function aL(e,t){var r=a_(Object.getOwnPropertyNames(t)),n;try{for(r.s();!(n=r.n()).done;){var i=n.value;i!=="overrides"&&oL(e,{extension:i,target:e.luma,target2:e})}}catch(a){r.e(a)}finally{r.f()}}function oL(e,t){var r=t.extension,n=t.target,i=t.target2,a=ch[r];Oe(a);for(var o=a.meta,s=o===void 0?{}:o,u=s.suffix,f=u===void 0?"":u,c=e.getExtension(r),l=function(){var m=h[d],g="".concat(m).concat(f),y=null;m==="meta"||typeof e[m]=="function"||(c&&typeof c[g]=="function"?y=function(){return c[g].apply(c,arguments)}:typeof a[m]=="function"&&(y=a[m].bind(n))),y&&(n[m]=y,i[m]=y)},d=0,h=Object.keys(a);d<h.length;d++)l()}var G,F,at;function lh(e,t){return fL(e)||uL(e,t)||u_(e,t)||sL()}function sL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@deck.gl/geo-layers",
3
3
  "description": "deck.gl layers supporting geospatial use cases and GIS formats",
4
4
  "license": "MIT",
5
- "version": "8.10.0-alpha.5",
5
+ "version": "8.10.0-alpha.6",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -56,5 +56,5 @@
56
56
  "@loaders.gl/core": "^3.4.13",
57
57
  "@luma.gl/core": "^8.0.0"
58
58
  },
59
- "gitHead": "7fce975a84ff492e83bcd2206bedd9ccd4264f50"
59
+ "gitHead": "2af5d552503d3dfc0359d123b39375ed743da516"
60
60
  }